-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathNcColorPicker-CaTCRl11.chunk.mjs
More file actions
864 lines (864 loc) Β· 103 KB
/
NcColorPicker-CaTCRl11.chunk.mjs
File metadata and controls
864 lines (864 loc) Β· 103 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
/*! third party licenses: js/vendor.LICENSE.txt */
import{c as gt,n as Ct,d as kt,u as St,b as Ft,e as At,f as Ot,h as Et,l as Mt,t as xt,N as jt,i as Lt,j as Pt,m as Bt,k as Dt,o as Nt,p as Rt,r as Tt,q as Ht}from"./logreader-main.mjs";import{d as mt,C as _t,a as wt}from"./colors-BmzDi7by-BUp7eygq.chunk.mjs";var bt={exports:{}},zt=bt.exports,yt;function $t(){return yt||(yt=1,function(z,X){(function(a,o){z.exports=o()})(typeof self<"u"?self:zt,function(){return function(a){function o(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return a[r].call(i.exports,i,i.exports,o),i.l=!0,i.exports}var e={};return o.m=a,o.c=e,o.d=function(r,i,s){o.o(r,i)||Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:s})},o.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(i,"a",i),i},o.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},o.p="",o(o.s=60)}([function(a,o){function e(i,s){var t=i[1]||"",f=i[3];if(!f)return t;if(s&&typeof btoa=="function"){var n=r(f);return[t].concat(f.sources.map(function(l){return"/*# sourceURL="+f.sourceRoot+l+" */"})).concat([n]).join(`
`)}return[t].join(`
`)}function r(i){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"}a.exports=function(i){var s=[];return s.toString=function(){return this.map(function(t){var f=e(t,i);return t[2]?"@media "+t[2]+"{"+f+"}":f}).join("")},s.i=function(t,f){typeof t=="string"&&(t=[[null,t,""]]);for(var n={},l=0;l<this.length;l++){var p=this[l][0];typeof p=="number"&&(n[p]=!0)}for(l=0;l<t.length;l++){var d=t[l];typeof d[0]=="number"&&n[d[0]]||(f&&!d[2]?d[2]=f:f&&(d[2]="("+d[2]+") and ("+f+")"),s.push(d))}},s}},function(a,o,e){function r(A){for(var j=0;j<A.length;j++){var L=A[j],O=p[L.id];if(O){O.refs++;for(var g=0;g<O.parts.length;g++)O.parts[g](L.parts[g]);for(;g<L.parts.length;g++)O.parts.push(s(L.parts[g]));O.parts.length>L.parts.length&&(O.parts.length=L.parts.length)}else{for(var M=[],g=0;g<L.parts.length;g++)M.push(s(L.parts[g]));p[L.id]={id:L.id,refs:1,parts:M}}}}function i(){var A=document.createElement("style");return A.type="text/css",d.appendChild(A),A}function s(A){var j,L,O=document.querySelector("style["+F+'~="'+A.id+'"]');if(O){if(v)return y;O.parentNode.removeChild(O)}if(T){var g=_++;O=b||(b=i()),j=t.bind(null,O,g,!1),L=t.bind(null,O,g,!0)}else O=i(),j=f.bind(null,O),L=function(){O.parentNode.removeChild(O)};return j(A),function(M){if(M){if(M.css===A.css&&M.media===A.media&&M.sourceMap===A.sourceMap)return;j(A=M)}else L()}}function t(A,j,L,O){var g=L?"":O.css;if(A.styleSheet)A.styleSheet.cssText=J(j,g);else{var M=document.createTextNode(g),B=A.childNodes;B[j]&&A.removeChild(B[j]),B.length?A.insertBefore(M,B[j]):A.appendChild(M)}}function f(A,j){var L=j.css,O=j.media,g=j.sourceMap;if(O&&A.setAttribute("media",O),w.ssrId&&A.setAttribute(F,j.id),g&&(L+=`
/*# sourceURL=`+g.sources[0]+" */",L+=`
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(g))))+" */"),A.styleSheet)A.styleSheet.cssText=L;else{for(;A.firstChild;)A.removeChild(A.firstChild);A.appendChild(document.createTextNode(L))}}var n=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=e(64),p={},d=n&&(document.head||document.getElementsByTagName("head")[0]),b=null,_=0,v=!1,y=function(){},w=null,F="data-vue-ssr-id",T=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());a.exports=function(A,j,L,O){v=L,w=O||{};var g=l(A,j);return r(g),function(M){for(var B=[],D=0;D<g.length;D++){var I=g[D],P=p[I.id];P.refs--,B.push(P)}M?(g=l(A,M),r(g)):g=[];for(var D=0;D<B.length;D++){var P=B[D];if(P.refs===0){for(var Y=0;Y<P.parts.length;Y++)P.parts[Y]();delete p[P.id]}}}};var J=function(){var A=[];return function(j,L){return A[j]=L,A.filter(Boolean).join(`
`)}}()},function(a,o){a.exports=function(e,r,i,s,t,f){var n,l=e=e||{},p=typeof e.default;p!=="object"&&p!=="function"||(n=e,l=e.default);var d=typeof l=="function"?l.options:l;r&&(d.render=r.render,d.staticRenderFns=r.staticRenderFns,d._compiled=!0),i&&(d.functional=!0),t&&(d._scopeId=t);var b;if(f?(b=function(y){y=y||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,y||typeof __VUE_SSR_CONTEXT__>"u"||(y=__VUE_SSR_CONTEXT__),s&&s.call(this,y),y&&y._registeredComponents&&y._registeredComponents.add(f)},d._ssrRegister=b):s&&(b=s),b){var _=d.functional,v=_?d.render:d.beforeCreate;_?(d._injectStyles=b,d.render=function(y,w){return b.call(w),v(y,w)}):d.beforeCreate=v?[].concat(v,b):[b]}return{esModule:n,exports:l,options:d}}},function(a,o,e){function r(t,f){var n,l=t&&t.a;!(n=t&&t.hsl?(0,s.default)(t.hsl):t&&t.hex&&t.hex.length>0?(0,s.default)(t.hex):t&&t.hsv?(0,s.default)(t.hsv):t&&t.rgba?(0,s.default)(t.rgba):t&&t.rgb?(0,s.default)(t.rgb):(0,s.default)(t))||n._a!==void 0&&n._a!==null||n.setAlpha(l||1);var p=n.toHsl(),d=n.toHsv();return p.s===0&&(d.h=p.h=t.h||t.hsl&&t.hsl.h||f||0),{hsl:p,hex:n.toHexString().toUpperCase(),hex8:n.toHex8String().toUpperCase(),rgba:n.toRgb(),hsv:d,oldHue:t.h||f||p.h,source:t.source,a:t.a||n.getAlpha()}}Object.defineProperty(o,"__esModule",{value:!0});var i=e(65),s=function(t){return t&&t.__esModule?t:{default:t}}(i);o.default={props:["value"],data:function(){return{val:r(this.value)}},computed:{colors:{get:function(){return this.val},set:function(t){this.val=t,this.$emit("input",t)}}},watch:{value:function(t){this.val=r(t)}},methods:{colorChange:function(t,f){this.oldHue=this.colors.hsl.h,this.colors=r(t,f||this.oldHue)},isValidHex:function(t){return(0,s.default)(t).isValid()},simpleCheckForValidColor:function(t){for(var f=["r","g","b","a","h","s","l","v"],n=0,l=0,p=0;p<f.length;p++){var d=f[p];t[d]&&(n++,isNaN(t[d])||l++)}if(n===l)return t},paletteUpperCase:function(t){return t.map(function(f){return f.toUpperCase()})},isTransparent:function(t){return(0,s.default)(t).getAlpha()===0}}}},function(a,o){var e=a.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(a,o,e){function r(d){e(66)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(36),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(68),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/common/EditableInput.vue",o.default=p.exports},function(a,o){var e={}.hasOwnProperty;a.exports=function(r,i){return e.call(r,i)}},function(a,o,e){var r=e(8),i=e(18);a.exports=e(9)?function(s,t,f){return r.f(s,t,i(1,f))}:function(s,t,f){return s[t]=f,s}},function(a,o,e){var r=e(16),i=e(42),s=e(25),t=Object.defineProperty;o.f=e(9)?Object.defineProperty:function(f,n,l){if(r(f),n=s(n,!0),r(l),i)try{return t(f,n,l)}catch{}if("get"in l||"set"in l)throw TypeError("Accessors not supported!");return"value"in l&&(f[n]=l.value),f}},function(a,o,e){a.exports=!e(17)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(a,o,e){var r=e(90),i=e(24);a.exports=function(s){return r(i(s))}},function(a,o,e){var r=e(29)("wks"),i=e(19),s=e(4).Symbol,t=typeof s=="function";(a.exports=function(f){return r[f]||(r[f]=t&&s[f]||(t?s:i)("Symbol."+f))}).store=r},function(a,o){a.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(a,o,e){function r(d){e(111)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(51),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(113),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/common/Hue.vue",o.default=p.exports},function(a,o){a.exports=!0},function(a,o){var e=a.exports={version:"2.6.11"};typeof __e=="number"&&(__e=e)},function(a,o,e){var r=e(12);a.exports=function(i){if(!r(i))throw TypeError(i+" is not an object!");return i}},function(a,o){a.exports=function(e){try{return!!e()}catch{return!0}}},function(a,o){a.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},function(a,o){var e=0,r=Math.random();a.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++e+r).toString(36))}},function(a,o,e){function r(d){e(123)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(54),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(127),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/common/Saturation.vue",o.default=p.exports},function(a,o,e){function r(d){e(128)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(55),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(133),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/common/Alpha.vue",o.default=p.exports},function(a,o,e){function r(d){e(130)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(56),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(132),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/common/Checkboard.vue",o.default=p.exports},function(a,o){var e=Math.ceil,r=Math.floor;a.exports=function(i){return isNaN(i=+i)?0:(i>0?r:e)(i)}},function(a,o){a.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(a,o,e){var r=e(12);a.exports=function(i,s){if(!r(i))return i;var t,f;if(s&&typeof(t=i.toString)=="function"&&!r(f=t.call(i))||typeof(t=i.valueOf)=="function"&&!r(f=t.call(i))||!s&&typeof(t=i.toString)=="function"&&!r(f=t.call(i)))return f;throw TypeError("Can't convert object to primitive value")}},function(a,o){a.exports={}},function(a,o,e){var r=e(46),i=e(30);a.exports=Object.keys||function(s){return r(s,i)}},function(a,o,e){var r=e(29)("keys"),i=e(19);a.exports=function(s){return r[s]||(r[s]=i(s))}},function(a,o,e){var r=e(15),i=e(4),s=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(a.exports=function(t,f){return s[t]||(s[t]=f!==void 0?f:{})})("versions",[]).push({version:r.version,mode:e(14)?"pure":"global",copyright:"Β© 2019 Denis Pushkarev (zloirock.ru)"})},function(a,o){a.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(a,o,e){var r=e(8).f,i=e(6),s=e(11)("toStringTag");a.exports=function(t,f,n){t&&!i(t=n?t:t.prototype,s)&&r(t,s,{configurable:!0,value:f})}},function(a,o,e){o.f=e(11)},function(a,o,e){var r=e(4),i=e(15),s=e(14),t=e(32),f=e(8).f;a.exports=function(n){var l=i.Symbol||(i.Symbol=s?{}:r.Symbol||{});n.charAt(0)=="_"||n in l||f(l,n,{value:t.f(n)})}},function(a,o){o.f={}.propertyIsEnumerable},function(a,o,e){function r(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(o,"__esModule",{value:!0});var i=e(3),s=r(i),t=e(5),f=r(t),n=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];o.default={name:"Compact",mixins:[s.default],props:{palette:{type:Array,default:function(){return n}}},components:{"ed-in":f.default},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(l){this.colorChange({hex:l,source:"hex"})}}}},function(a,o,e){Object.defineProperty(o,"__esModule",{value:!0}),o.default={name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get:function(){return this.value},set:function(r){if(!(this.max!==void 0&&+r>this.max))return r;this.$refs.input.value=this.max}},labelId:function(){return"input__label__"+this.label+"__"+Math.random().toString().slice(2,5)},labelSpanText:function(){return this.labelText||this.label}},methods:{update:function(r){this.handleChange(r.target.value)},handleChange:function(r){var i={};i[this.label]=r,i.hex===void 0&&i["#"]===void 0?this.$emit("change",i):r.length>5&&this.$emit("change",i)},handleKeyDown:function(r){var i=this.val,s=Number(i);if(s){var t=this.arrowOffset||1;r.keyCode===38&&(i=s+t,this.handleChange(i),r.preventDefault()),r.keyCode===40&&(i=s-t,this.handleChange(i),r.preventDefault())}}}}},function(a,o,e){Object.defineProperty(o,"__esModule",{value:!0});var r=e(3),i=function(t){return t&&t.__esModule?t:{default:t}}(r),s=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];o.default={name:"Grayscale",mixins:[i.default],props:{palette:{type:Array,default:function(){return s}}},components:{},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(t){this.colorChange({hex:t,source:"hex"})}}}},function(a,o,e){function r(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(o,"__esModule",{value:!0});var i=e(5),s=r(i),t=e(3),f=r(t);o.default={name:"Material",mixins:[f.default],components:{"ed-in":s.default},methods:{onChange:function(n){n&&(n.hex?this.isValidHex(n.hex)&&this.colorChange({hex:n.hex,source:"hex"}):(n.r||n.g||n.b)&&this.colorChange({r:n.r||this.colors.rgba.r,g:n.g||this.colors.rgba.g,b:n.b||this.colors.rgba.b,a:n.a||this.colors.rgba.a,source:"rgba"}))}}}},function(a,o,e){function r(p){return p&&p.__esModule?p:{default:p}}Object.defineProperty(o,"__esModule",{value:!0});var i=e(81),s=r(i),t=e(3),f=r(t),n=e(13),l=r(n);o.default={name:"Slider",mixins:[f.default],props:{swatches:{type:Array,default:function(){return[{s:.5,l:.8},{s:.5,l:.65},{s:.5,l:.5},{s:.5,l:.35},{s:.5,l:.2}]}}},components:{hue:l.default},computed:{normalizedSwatches:function(){return this.swatches.map(function(p){return(p===void 0?"undefined":(0,s.default)(p))!=="object"?{s:.5,l:p}:p})}},methods:{isActive:function(p,d){var b=this.colors.hsl;return b.l===1&&p.l===1||b.l===0&&p.l===0||Math.abs(b.l-p.l)<.01&&Math.abs(b.s-p.s)<.01},hueChange:function(p){this.colorChange(p)},handleSwClick:function(p,d){this.colorChange({h:this.colors.hsl.h,s:d.s,l:d.l,source:"hsl"})}}}},function(a,o,e){var r=e(14),i=e(41),s=e(44),t=e(7),f=e(26),n=e(88),l=e(31),p=e(95),d=e(11)("iterator"),b=!([].keys&&"next"in[].keys()),_=function(){return this};a.exports=function(v,y,w,F,T,J,A){n(w,y,F);var j,L,O,g=function(G){if(!b&&G in I)return I[G];switch(G){case"keys":case"values":return function(){return new w(this,G)}}return function(){return new w(this,G)}},M=y+" Iterator",B=T=="values",D=!1,I=v.prototype,P=I[d]||I["@@iterator"]||T&&I[T],Y=P||g(T),H=T?B?g("entries"):Y:void 0,lt=y=="Array"&&I.entries||P;if(lt&&(O=p(lt.call(new v)))!==Object.prototype&&O.next&&(l(O,M,!0),r||typeof O[d]=="function"||t(O,d,_)),B&&P&&P.name!=="values"&&(D=!0,Y=function(){return P.call(this)}),r&&!A||!b&&!D&&I[d]||t(I,d,Y),f[y]=Y,f[M]=_,T)if(j={values:B?Y:g("values"),keys:J?Y:g("keys"),entries:H},A)for(L in j)L in I||s(I,L,j[L]);else i(i.P+i.F*(b||D),y,j);return j}},function(a,o,e){var r=e(4),i=e(15),s=e(86),t=e(7),f=e(6),n=function(l,p,d){var b,_,v,y=l&n.F,w=l&n.G,F=l&n.S,T=l&n.P,J=l&n.B,A=l&n.W,j=w?i:i[p]||(i[p]={}),L=j.prototype,O=w?r:F?r[p]:(r[p]||{}).prototype;w&&(d=p);for(b in d)(_=!y&&O&&O[b]!==void 0)&&f(j,b)||(v=_?O[b]:d[b],j[b]=w&&typeof O[b]!="function"?d[b]:J&&_?s(v,r):A&&O[b]==v?function(g){var M=function(B,D,I){if(this instanceof g){switch(arguments.length){case 0:return new g;case 1:return new g(B);case 2:return new g(B,D)}return new g(B,D,I)}return g.apply(this,arguments)};return M.prototype=g.prototype,M}(v):T&&typeof v=="function"?s(Function.call,v):v,T&&((j.virtual||(j.virtual={}))[b]=v,l&n.R&&L&&!L[b]&&t(L,b,v)))};n.F=1,n.G=2,n.S=4,n.P=8,n.B=16,n.W=32,n.U=64,n.R=128,a.exports=n},function(a,o,e){a.exports=!e(9)&&!e(17)(function(){return Object.defineProperty(e(43)("div"),"a",{get:function(){return 7}}).a!=7})},function(a,o,e){var r=e(12),i=e(4).document,s=r(i)&&r(i.createElement);a.exports=function(t){return s?i.createElement(t):{}}},function(a,o,e){a.exports=e(7)},function(a,o,e){var r=e(16),i=e(89),s=e(30),t=e(28)("IE_PROTO"),f=function(){},n=function(){var l,p=e(43)("iframe"),d=s.length;for(p.style.display="none",e(94).appendChild(p),p.src="javascript:",l=p.contentWindow.document,l.open(),l.write("<script>document.F=Object<\/script>"),l.close(),n=l.F;d--;)delete n.prototype[s[d]];return n()};a.exports=Object.create||function(l,p){var d;return l!==null?(f.prototype=r(l),d=new f,f.prototype=null,d[t]=l):d=n(),p===void 0?d:i(d,p)}},function(a,o,e){var r=e(6),i=e(10),s=e(91)(!1),t=e(28)("IE_PROTO");a.exports=function(f,n){var l,p=i(f),d=0,b=[];for(l in p)l!=t&&r(p,l)&&b.push(l);for(;n.length>d;)r(p,l=n[d++])&&(~s(b,l)||b.push(l));return b}},function(a,o){var e={}.toString;a.exports=function(r){return e.call(r).slice(8,-1)}},function(a,o,e){var r=e(24);a.exports=function(i){return Object(r(i))}},function(a,o){o.f=Object.getOwnPropertySymbols},function(a,o,e){var r=e(46),i=e(30).concat("length","prototype");o.f=Object.getOwnPropertyNames||function(s){return r(s,i)}},function(a,o,e){Object.defineProperty(o,"__esModule",{value:!0}),o.default={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data:function(){return{oldHue:0,pullDirection:""}},computed:{colors:function(){var r=this.value.hsl.h;return r!==0&&r-this.oldHue>0&&(this.pullDirection="right"),r!==0&&r-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=r,this.value},directionClass:function(){return{"vc-hue--horizontal":this.direction==="horizontal","vc-hue--vertical":this.direction==="vertical"}},pointerTop:function(){return this.direction==="vertical"?this.colors.hsl.h===0&&this.pullDirection==="right"?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft:function(){return this.direction==="vertical"?0:this.colors.hsl.h===0&&this.pullDirection==="right"?"100%":100*this.colors.hsl.h/360+"%"}},methods:{handleChange:function(r,i){!i&&r.preventDefault();var s=this.$refs.container;if(s){var t,f,n=s.clientWidth,l=s.clientHeight,p=s.getBoundingClientRect().left+window.pageXOffset,d=s.getBoundingClientRect().top+window.pageYOffset,b=r.pageX||(r.touches?r.touches[0].pageX:0),_=r.pageY||(r.touches?r.touches[0].pageY:0),v=b-p,y=_-d;this.direction==="vertical"?(y<0?t=360:y>l?t=0:(f=-100*y/l+100,t=360*f/100),this.colors.hsl.h!==t&&this.$emit("change",{h:t,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(v<0?t=0:v>n?t=360:(f=100*v/n,t=360*f/100),this.colors.hsl.h!==t&&this.$emit("change",{h:t,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))}},handleMouseDown:function(r){this.handleChange(r,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(r){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(a,o,e){function r(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(o,"__esModule",{value:!0});var i=e(118),s=r(i),t=e(3),f=r(t),n=["red","pink","purple","deepPurple","indigo","blue","lightBlue","cyan","teal","green","lightGreen","lime","yellow","amber","orange","deepOrange","brown","blueGrey","black"],l=["900","700","500","300","100"],p=function(){var d=[];return n.forEach(function(b){var _=[];b.toLowerCase()==="black"||b.toLowerCase()==="white"?_=_.concat(["#000000","#FFFFFF"]):l.forEach(function(v){var y=s.default[b][v];_.push(y.toUpperCase())}),d.push(_)}),d}();o.default={name:"Swatches",mixins:[f.default],props:{palette:{type:Array,default:function(){return p}}},computed:{pick:function(){return this.colors.hex}},methods:{equal:function(d){return d.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(d){this.colorChange({hex:d,source:"hex"})}}}},function(a,o,e){function r(v){return v&&v.__esModule?v:{default:v}}Object.defineProperty(o,"__esModule",{value:!0});var i=e(3),s=r(i),t=e(5),f=r(t),n=e(20),l=r(n),p=e(13),d=r(p),b=e(21),_=r(b);o.default={name:"Photoshop",mixins:[s.default],props:{head:{type:String,default:"Color Picker"},disableFields:{type:Boolean,default:!1},hasResetButton:{type:Boolean,default:!1},acceptLabel:{type:String,default:"OK"},cancelLabel:{type:String,default:"Cancel"},resetLabel:{type:String,default:"Reset"},newLabel:{type:String,default:"new"},currentLabel:{type:String,default:"current"}},components:{saturation:l.default,hue:d.default,alpha:_.default,"ed-in":f.default},data:function(){return{currentColor:"#FFF"}},computed:{hsv:function(){var v=this.colors.hsv;return{h:v.h.toFixed(),s:(100*v.s).toFixed(),v:(100*v.v).toFixed()}},hex:function(){var v=this.colors.hex;return v&&v.replace("#","")}},created:function(){this.currentColor=this.colors.hex},methods:{childChange:function(v){this.colorChange(v)},inputChange:function(v){v&&(v["#"]?this.isValidHex(v["#"])&&this.colorChange({hex:v["#"],source:"hex"}):v.r||v.g||v.b||v.a?this.colorChange({r:v.r||this.colors.rgba.r,g:v.g||this.colors.rgba.g,b:v.b||this.colors.rgba.b,a:v.a||this.colors.rgba.a,source:"rgba"}):(v.h||v.s||v.v)&&this.colorChange({h:v.h||this.colors.hsv.h,s:v.s/100||this.colors.hsv.s,v:v.v/100||this.colors.hsv.v,source:"hsv"}))},clickCurrentColor:function(){this.colorChange({hex:this.currentColor,source:"hex"})},handleAccept:function(){this.$emit("ok")},handleCancel:function(){this.$emit("cancel")},handleReset:function(){this.$emit("reset")}}}},function(a,o,e){function r(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(o,"__esModule",{value:!0});var i=e(125),s=r(i),t=e(126),f=r(t);o.default={name:"Saturation",props:{value:Object},computed:{colors:function(){return this.value},bgColor:function(){return"hsl("+this.colors.hsv.h+", 100%, 50%)"},pointerTop:function(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft:function(){return 100*this.colors.hsv.s+"%"}},methods:{throttle:(0,f.default)(function(n,l){n(l)},20,{leading:!0,trailing:!1}),handleChange:function(n,l){!l&&n.preventDefault();var p=this.$refs.container;if(p){var d=p.clientWidth,b=p.clientHeight,_=p.getBoundingClientRect().left+window.pageXOffset,v=p.getBoundingClientRect().top+window.pageYOffset,y=n.pageX||(n.touches?n.touches[0].pageX:0),w=n.pageY||(n.touches?n.touches[0].pageY:0),F=(0,s.default)(y-_,0,d),T=(0,s.default)(w-v,0,b),J=F/d,A=(0,s.default)(-T/b+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:J,v:A,a:this.colors.hsv.a,source:"hsva"})}},onChange:function(n){this.$emit("change",n)},handleMouseDown:function(n){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(n){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(a,o,e){Object.defineProperty(o,"__esModule",{value:!0});var r=e(22),i=function(s){return s&&s.__esModule?s:{default:s}}(r);o.default={name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:i.default},computed:{colors:function(){return this.value},gradientColor:function(){var s=this.colors.rgba,t=[s.r,s.g,s.b].join(",");return"linear-gradient(to right, rgba("+t+", 0) 0%, rgba("+t+", 1) 100%)"}},methods:{handleChange:function(s,t){!t&&s.preventDefault();var f=this.$refs.container;if(f){var n,l=f.clientWidth,p=f.getBoundingClientRect().left+window.pageXOffset,d=s.pageX||(s.touches?s.touches[0].pageX:0),b=d-p;n=b<0?0:b>l?1:Math.round(100*b/l)/100,this.colors.a!==n&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:n,source:"rgba"})}},handleMouseDown:function(s){this.handleChange(s,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(){this.unbindEventListeners()},unbindEventListeners:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}}},function(a,o,e){function r(t,f,n){if(typeof document>"u")return null;var l=document.createElement("canvas");l.width=l.height=2*n;var p=l.getContext("2d");return p?(p.fillStyle=t,p.fillRect(0,0,l.width,l.height),p.fillStyle=f,p.fillRect(0,0,n,n),p.translate(n,n),p.fillRect(0,0,n,n),l.toDataURL()):null}function i(t,f,n){var l=t+","+f+","+n;if(s[l])return s[l];var p=r(t,f,n);return s[l]=p,p}Object.defineProperty(o,"__esModule",{value:!0});var s={};o.default={name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle:function(){return{"background-image":"url("+i(this.white,this.grey,this.size)+")"}}}}},function(a,o,e){function r(F){return F&&F.__esModule?F:{default:F}}Object.defineProperty(o,"__esModule",{value:!0});var i=e(3),s=r(i),t=e(5),f=r(t),n=e(20),l=r(n),p=e(13),d=r(p),b=e(21),_=r(b),v=e(22),y=r(v),w=["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF","rgba(0,0,0,0)"];o.default={name:"Sketch",mixins:[s.default],components:{saturation:l.default,hue:d.default,alpha:_.default,"ed-in":f.default,checkboard:y.default},props:{presetColors:{type:Array,default:function(){return w}},disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},computed:{hex:function(){var F=void 0;return F=this.colors.a<1?this.colors.hex8:this.colors.hex,F.replace("#","")},activeColor:function(){var F=this.colors.rgba;return"rgba("+[F.r,F.g,F.b,F.a].join(",")+")"}},methods:{handlePreset:function(F){this.colorChange({hex:F,source:"hex"})},childChange:function(F){this.colorChange(F)},inputChange:function(F){F&&(F.hex?this.isValidHex(F.hex)&&this.colorChange({hex:F.hex,source:"hex"}):(F.r||F.g||F.b||F.a)&&this.colorChange({r:F.r||this.colors.rgba.r,g:F.g||this.colors.rgba.g,b:F.b||this.colors.rgba.b,a:F.a||this.colors.rgba.a,source:"rgba"}))}}}},function(a,o,e){function r(w){return w&&w.__esModule?w:{default:w}}Object.defineProperty(o,"__esModule",{value:!0});var i=e(3),s=r(i),t=e(5),f=r(t),n=e(20),l=r(n),p=e(13),d=r(p),b=e(21),_=r(b),v=e(22),y=r(v);o.default={name:"Chrome",mixins:[s.default],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},components:{saturation:l.default,hue:d.default,alpha:_.default,"ed-in":f.default,checkboard:y.default},data:function(){return{fieldsIndex:0,highlight:!1}},computed:{hsl:function(){var w=this.colors.hsl,F=w.h,T=w.s,J=w.l;return{h:F.toFixed(),s:(100*T).toFixed()+"%",l:(100*J).toFixed()+"%"}},activeColor:function(){var w=this.colors.rgba;return"rgba("+[w.r,w.g,w.b,w.a].join(",")+")"},hasAlpha:function(){return this.colors.a<1}},methods:{childChange:function(w){this.colorChange(w)},inputChange:function(w){if(w){if(w.hex)this.isValidHex(w.hex)&&this.colorChange({hex:w.hex,source:"hex"});else if(w.r||w.g||w.b||w.a)this.colorChange({r:w.r||this.colors.rgba.r,g:w.g||this.colors.rgba.g,b:w.b||this.colors.rgba.b,a:w.a||this.colors.rgba.a,source:"rgba"});else if(w.h||w.s||w.l){var F=w.s?w.s.replace("%","")/100:this.colors.hsl.s,T=w.l?w.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:w.h||this.colors.hsl.h,s:F,l:T,source:"hsl"})}}},toggleViews:function(){if(this.fieldsIndex>=2)return void(this.fieldsIndex=0);this.fieldsIndex++},showHighlight:function(){this.highlight=!0},hideHighlight:function(){this.highlight=!1}}}},function(a,o,e){function r(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(o,"__esModule",{value:!0});var i=e(5),s=r(i),t=e(3),f=r(t),n=["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"];o.default={name:"Twitter",mixins:[f.default],components:{editableInput:s.default},props:{width:{type:[String,Number],default:276},defaultColors:{type:Array,default:function(){return n}},triangle:{default:"top-left",validator:function(l){return["hide","top-left","top-right"].includes(l)}}},computed:{hsv:function(){var l=this.colors.hsv;return{h:l.h.toFixed(),s:(100*l.s).toFixed(),v:(100*l.v).toFixed()}},hex:function(){var l=this.colors.hex;return l&&l.replace("#","")}},methods:{equal:function(l){return l.toLowerCase()===this.colors.hex.toLowerCase()},handlerClick:function(l){this.colorChange({hex:l,source:"hex"})},inputChange:function(l){l&&(l["#"]?this.isValidHex(l["#"])&&this.colorChange({hex:l["#"],source:"hex"}):l.r||l.g||l.b||l.a?this.colorChange({r:l.r||this.colors.rgba.r,g:l.g||this.colors.rgba.g,b:l.b||this.colors.rgba.b,a:l.a||this.colors.rgba.a,source:"rgba"}):(l.h||l.s||l.v)&&this.colorChange({h:l.h||this.colors.hsv.h,s:l.s/100||this.colors.hsv.s,v:l.v/100||this.colors.hsv.v,source:"hsv"}))}}}},function(a,o,e){function r(Z){return Z&&Z.__esModule?Z:{default:Z}}var i=e(61),s=r(i),t=e(70),f=r(t),n=e(74),l=r(n),p=e(78),d=r(p),b=e(115),_=r(b),v=e(120),y=r(v),w=e(135),F=r(w),T=e(139),J=r(T),A=e(143),j=r(A),L=e(21),O=r(L),g=e(22),M=r(g),B=e(5),D=r(B),I=e(13),P=r(I),Y=e(20),H=r(Y),lt=e(3),G=r(lt),K={version:"2.8.1",Compact:s.default,Grayscale:f.default,Twitter:j.default,Material:l.default,Slider:d.default,Swatches:_.default,Photoshop:y.default,Sketch:F.default,Chrome:J.default,Alpha:O.default,Checkboard:M.default,EditableInput:D.default,Hue:P.default,Saturation:H.default,ColorMixin:G.default};a.exports=K},function(a,o,e){function r(d){e(62)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(35),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(69),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/Compact.vue",o.default=p.exports},function(a,o,e){var r=e(63);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("6ce8a5a8",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-compact {
padding-top: 5px;
padding-left: 5px;
width: 245px;
border-radius: 2px;
box-sizing: border-box;
box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);
background-color: #fff;
}
.vc-compact-colors {
overflow: hidden;
padding: 0;
margin: 0;
}
.vc-compact-color-item {
list-style: none;
width: 15px;
height: 15px;
float: left;
margin-right: 5px;
margin-bottom: 5px;
position: relative;
cursor: pointer;
}
.vc-compact-color-item--white {
box-shadow: inset 0 0 0 1px #ddd;
}
.vc-compact-color-item--white .vc-compact-dot {
background: #000;
}
.vc-compact-dot {
position: absolute;
top: 5px;
right: 5px;
bottom: 5px;
left: 5px;
border-radius: 50%;
opacity: 1;
background: #fff;
}
`,""])},function(a,o){a.exports=function(e,r){for(var i=[],s={},t=0;t<r.length;t++){var f=r[t],n=f[0],l=f[1],p=f[2],d=f[3],b={id:e+":"+t,css:l,media:p,sourceMap:d};s[n]?s[n].parts.push(b):i.push(s[n]={id:n,parts:[b]})}return i}},function(a,o,e){var r;(function(i){function s(c,h){if(c=c||"",h=h||{},c instanceof s)return c;if(!(this instanceof s))return new s(c,h);var u=t(c);this._originalInput=c,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=E(100*this._a)/100,this._format=h.format||u.format,this._gradientType=h.gradientType,this._r<1&&(this._r=E(this._r)),this._g<1&&(this._g=E(this._g)),this._b<1&&(this._b=E(this._b)),this._ok=u.ok,this._tc_id=ft++}function t(c){var h={r:0,g:0,b:0},u=1,x=null,S=null,C=null,R=!1,U=!1;return typeof c=="string"&&(c=it(c)),typeof c=="object"&&(rt(c.r)&&rt(c.g)&&rt(c.b)?(h=f(c.r,c.g,c.b),R=!0,U=String(c.r).substr(-1)==="%"?"prgb":"rgb"):rt(c.h)&&rt(c.s)&&rt(c.v)?(x=Z(c.s),S=Z(c.v),h=d(c.h,x,S),R=!0,U="hsv"):rt(c.h)&&rt(c.s)&&rt(c.l)&&(x=Z(c.s),C=Z(c.l),h=l(c.h,x,C),R=!0,U="hsl"),c.hasOwnProperty("a")&&(u=c.a)),u=I(u),{ok:R,format:c.format||U,r:tt(255,N(h.r,0)),g:tt(255,N(h.g,0)),b:tt(255,N(h.b,0)),a:u}}function f(c,h,u){return{r:255*P(c,255),g:255*P(h,255),b:255*P(u,255)}}function n(c,h,u){c=P(c,255),h=P(h,255),u=P(u,255);var x,S,C=N(c,h,u),R=tt(c,h,u),U=(C+R)/2;if(C==R)x=S=0;else{var W=C-R;switch(S=U>.5?W/(2-C-R):W/(C+R),C){case c:x=(h-u)/W+(h<u?6:0);break;case h:x=(u-c)/W+2;break;case u:x=(c-h)/W+4}x/=6}return{h:x,s:S,l:U}}function l(c,h,u){function x(ct,m,k){return k<0&&(k+=1),k>1&&(k-=1),k<1/6?ct+6*(m-ct)*k:k<.5?m:k<2/3?ct+(m-ct)*(2/3-k)*6:ct}var S,C,R;if(c=P(c,360),h=P(h,100),u=P(u,100),h===0)S=C=R=u;else{var U=u<.5?u*(1+h):u+h-u*h,W=2*u-U;S=x(W,U,c+1/3),C=x(W,U,c),R=x(W,U,c-1/3)}return{r:255*S,g:255*C,b:255*R}}function p(c,h,u){c=P(c,255),h=P(h,255),u=P(u,255);var x,S,C=N(c,h,u),R=tt(c,h,u),U=C,W=C-R;if(S=C===0?0:W/C,C==R)x=0;else{switch(C){case c:x=(h-u)/W+(h<u?6:0);break;case h:x=(u-c)/W+2;break;case u:x=(c-h)/W+4}x/=6}return{h:x,s:S,v:U}}function d(c,h,u){c=6*P(c,360),h=P(h,100),u=P(u,100);var x=i.floor(c),S=c-x,C=u*(1-h),R=u*(1-S*h),U=u*(1-(1-S)*h),W=x%6;return{r:255*[u,R,C,C,U,u][W],g:255*[U,u,u,R,C,C][W],b:255*[C,C,U,u,u,R][W]}}function b(c,h,u,x){var S=[K(E(c).toString(16)),K(E(h).toString(16)),K(E(u).toString(16))];return x&&S[0].charAt(0)==S[0].charAt(1)&&S[1].charAt(0)==S[1].charAt(1)&&S[2].charAt(0)==S[2].charAt(1)?S[0].charAt(0)+S[1].charAt(0)+S[2].charAt(0):S.join("")}function _(c,h,u,x,S){var C=[K(E(c).toString(16)),K(E(h).toString(16)),K(E(u).toString(16)),K(V(x))];return S&&C[0].charAt(0)==C[0].charAt(1)&&C[1].charAt(0)==C[1].charAt(1)&&C[2].charAt(0)==C[2].charAt(1)&&C[3].charAt(0)==C[3].charAt(1)?C[0].charAt(0)+C[1].charAt(0)+C[2].charAt(0)+C[3].charAt(0):C.join("")}function v(c,h,u,x){return[K(V(x)),K(E(c).toString(16)),K(E(h).toString(16)),K(E(u).toString(16))].join("")}function y(c,h){h=h===0?0:h||10;var u=s(c).toHsl();return u.s-=h/100,u.s=Y(u.s),s(u)}function w(c,h){h=h===0?0:h||10;var u=s(c).toHsl();return u.s+=h/100,u.s=Y(u.s),s(u)}function F(c){return s(c).desaturate(100)}function T(c,h){h=h===0?0:h||10;var u=s(c).toHsl();return u.l+=h/100,u.l=Y(u.l),s(u)}function J(c,h){h=h===0?0:h||10;var u=s(c).toRgb();return u.r=N(0,tt(255,u.r-E(-h/100*255))),u.g=N(0,tt(255,u.g-E(-h/100*255))),u.b=N(0,tt(255,u.b-E(-h/100*255))),s(u)}function A(c,h){h=h===0?0:h||10;var u=s(c).toHsl();return u.l-=h/100,u.l=Y(u.l),s(u)}function j(c,h){var u=s(c).toHsl(),x=(u.h+h)%360;return u.h=x<0?360+x:x,s(u)}function L(c){var h=s(c).toHsl();return h.h=(h.h+180)%360,s(h)}function O(c){var h=s(c).toHsl(),u=h.h;return[s(c),s({h:(u+120)%360,s:h.s,l:h.l}),s({h:(u+240)%360,s:h.s,l:h.l})]}function g(c){var h=s(c).toHsl(),u=h.h;return[s(c),s({h:(u+90)%360,s:h.s,l:h.l}),s({h:(u+180)%360,s:h.s,l:h.l}),s({h:(u+270)%360,s:h.s,l:h.l})]}function M(c){var h=s(c).toHsl(),u=h.h;return[s(c),s({h:(u+72)%360,s:h.s,l:h.l}),s({h:(u+216)%360,s:h.s,l:h.l})]}function B(c,h,u){h=h||6,u=u||30;var x=s(c).toHsl(),S=360/u,C=[s(c)];for(x.h=(x.h-(S*h>>1)+720)%360;--h;)x.h=(x.h+S)%360,C.push(s(x));return C}function D(c,h){h=h||6;for(var u=s(c).toHsv(),x=u.h,S=u.s,C=u.v,R=[],U=1/h;h--;)R.push(s({h:x,s:S,v:C})),C=(C+U)%1;return R}function I(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function P(c,h){lt(c)&&(c="100%");var u=G(c);return c=tt(h,N(0,parseFloat(c))),u&&(c=parseInt(c*h,10)/100),i.abs(c-h)<1e-6?1:c%h/parseFloat(h)}function Y(c){return tt(1,N(0,c))}function H(c){return parseInt(c,16)}function lt(c){return typeof c=="string"&&c.indexOf(".")!=-1&&parseFloat(c)===1}function G(c){return typeof c=="string"&&c.indexOf("%")!=-1}function K(c){return c.length==1?"0"+c:""+c}function Z(c){return c<=1&&(c=100*c+"%"),c}function V(c){return i.round(255*parseFloat(c)).toString(16)}function ut(c){return H(c)/255}function rt(c){return!!at.CSS_UNIT.exec(c)}function it(c){c=c.replace(nt,"").replace(Q,"").toLowerCase();var h=!1;if(st[c])c=st[c],h=!0;else if(c=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var u;return(u=at.rgb.exec(c))?{r:u[1],g:u[2],b:u[3]}:(u=at.rgba.exec(c))?{r:u[1],g:u[2],b:u[3],a:u[4]}:(u=at.hsl.exec(c))?{h:u[1],s:u[2],l:u[3]}:(u=at.hsla.exec(c))?{h:u[1],s:u[2],l:u[3],a:u[4]}:(u=at.hsv.exec(c))?{h:u[1],s:u[2],v:u[3]}:(u=at.hsva.exec(c))?{h:u[1],s:u[2],v:u[3],a:u[4]}:(u=at.hex8.exec(c))?{r:H(u[1]),g:H(u[2]),b:H(u[3]),a:ut(u[4]),format:h?"name":"hex8"}:(u=at.hex6.exec(c))?{r:H(u[1]),g:H(u[2]),b:H(u[3]),format:h?"name":"hex"}:(u=at.hex4.exec(c))?{r:H(u[1]+""+u[1]),g:H(u[2]+""+u[2]),b:H(u[3]+""+u[3]),a:ut(u[4]+""+u[4]),format:h?"name":"hex8"}:!!(u=at.hex3.exec(c))&&{r:H(u[1]+""+u[1]),g:H(u[2]+""+u[2]),b:H(u[3]+""+u[3]),format:h?"name":"hex"}}function q(c){var h,u;return c=c||{level:"AA",size:"small"},h=(c.level||"AA").toUpperCase(),u=(c.size||"small").toLowerCase(),h!=="AA"&&h!=="AAA"&&(h="AA"),u!=="small"&&u!=="large"&&(u="small"),{level:h,size:u}}var nt=/^\s+/,Q=/\s+$/,ft=0,E=i.round,tt=i.min,N=i.max,ot=i.random;s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var c=this.toRgb();return(299*c.r+587*c.g+114*c.b)/1e3},getLuminance:function(){var c,h,u,x,S,C,R=this.toRgb();return c=R.r/255,h=R.g/255,u=R.b/255,x=c<=.03928?c/12.92:i.pow((c+.055)/1.055,2.4),S=h<=.03928?h/12.92:i.pow((h+.055)/1.055,2.4),C=u<=.03928?u/12.92:i.pow((u+.055)/1.055,2.4),.2126*x+.7152*S+.0722*C},setAlpha:function(c){return this._a=I(c),this._roundA=E(100*this._a)/100,this},toHsv:function(){var c=p(this._r,this._g,this._b);return{h:360*c.h,s:c.s,v:c.v,a:this._a}},toHsvString:function(){var c=p(this._r,this._g,this._b),h=E(360*c.h),u=E(100*c.s),x=E(100*c.v);return this._a==1?"hsv("+h+", "+u+"%, "+x+"%)":"hsva("+h+", "+u+"%, "+x+"%, "+this._roundA+")"},toHsl:function(){var c=n(this._r,this._g,this._b);return{h:360*c.h,s:c.s,l:c.l,a:this._a}},toHslString:function(){var c=n(this._r,this._g,this._b),h=E(360*c.h),u=E(100*c.s),x=E(100*c.l);return this._a==1?"hsl("+h+", "+u+"%, "+x+"%)":"hsla("+h+", "+u+"%, "+x+"%, "+this._roundA+")"},toHex:function(c){return b(this._r,this._g,this._b,c)},toHexString:function(c){return"#"+this.toHex(c)},toHex8:function(c){return _(this._r,this._g,this._b,this._a,c)},toHex8String:function(c){return"#"+this.toHex8(c)},toRgb:function(){return{r:E(this._r),g:E(this._g),b:E(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+E(this._r)+", "+E(this._g)+", "+E(this._b)+")":"rgba("+E(this._r)+", "+E(this._g)+", "+E(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:E(100*P(this._r,255))+"%",g:E(100*P(this._g,255))+"%",b:E(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+E(100*P(this._r,255))+"%, "+E(100*P(this._g,255))+"%, "+E(100*P(this._b,255))+"%)":"rgba("+E(100*P(this._r,255))+"%, "+E(100*P(this._g,255))+"%, "+E(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(pt[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(c){var h="#"+v(this._r,this._g,this._b,this._a),u=h,x=this._gradientType?"GradientType = 1, ":"";if(c){var S=s(c);u="#"+v(S._r,S._g,S._b,S._a)}return"progid:DXImageTransform.Microsoft.gradient("+x+"startColorstr="+h+",endColorstr="+u+")"},toString:function(c){var h=!!c;c=c||this._format;var u=!1,x=this._a<1&&this._a>=0;return h||!x||c!=="hex"&&c!=="hex6"&&c!=="hex3"&&c!=="hex4"&&c!=="hex8"&&c!=="name"?(c==="rgb"&&(u=this.toRgbString()),c==="prgb"&&(u=this.toPercentageRgbString()),c!=="hex"&&c!=="hex6"||(u=this.toHexString()),c==="hex3"&&(u=this.toHexString(!0)),c==="hex4"&&(u=this.toHex8String(!0)),c==="hex8"&&(u=this.toHex8String()),c==="name"&&(u=this.toName()),c==="hsl"&&(u=this.toHslString()),c==="hsv"&&(u=this.toHsvString()),u||this.toHexString()):c==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return s(this.toString())},_applyModification:function(c,h){var u=c.apply(null,[this].concat([].slice.call(h)));return this._r=u._r,this._g=u._g,this._b=u._b,this.setAlpha(u._a),this},lighten:function(){return this._applyModification(T,arguments)},brighten:function(){return this._applyModification(J,arguments)},darken:function(){return this._applyModification(A,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(F,arguments)},spin:function(){return this._applyModification(j,arguments)},_applyCombination:function(c,h){return c.apply(null,[this].concat([].slice.call(h)))},analogous:function(){return this._applyCombination(B,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(M,arguments)},triad:function(){return this._applyCombination(O,arguments)},tetrad:function(){return this._applyCombination(g,arguments)}},s.fromRatio=function(c,h){if(typeof c=="object"){var u={};for(var x in c)c.hasOwnProperty(x)&&(u[x]=x==="a"?c[x]:Z(c[x]));c=u}return s(c,h)},s.equals=function(c,h){return!(!c||!h)&&s(c).toRgbString()==s(h).toRgbString()},s.random=function(){return s.fromRatio({r:ot(),g:ot(),b:ot()})},s.mix=function(c,h,u){u=u===0?0:u||50;var x=s(c).toRgb(),S=s(h).toRgb(),C=u/100;return s({r:(S.r-x.r)*C+x.r,g:(S.g-x.g)*C+x.g,b:(S.b-x.b)*C+x.b,a:(S.a-x.a)*C+x.a})},s.readability=function(c,h){var u=s(c),x=s(h);return(i.max(u.getLuminance(),x.getLuminance())+.05)/(i.min(u.getLuminance(),x.getLuminance())+.05)},s.isReadable=function(c,h,u){var x,S,C=s.readability(c,h);switch(S=!1,x=q(u),x.level+x.size){case"AAsmall":case"AAAlarge":S=C>=4.5;break;case"AAlarge":S=C>=3;break;case"AAAsmall":S=C>=7}return S},s.mostReadable=function(c,h,u){var x,S,C,R,U=null,W=0;u=u||{},S=u.includeFallbackColors,C=u.level,R=u.size;for(var ct=0;ct<h.length;ct++)(x=s.readability(c,h[ct]))>W&&(W=x,U=s(h[ct]));return s.isReadable(c,U,{level:C,size:R})||!S?U:(u.includeFallbackColors=!1,s.mostReadable(c,["#fff","#000"],u))};var st=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},pt=s.hexNames=function(c){var h={};for(var u in c)c.hasOwnProperty(u)&&(h[c[u]]=u);return h}(st),at=function(){var c="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",h="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",u="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";return{CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+h),rgba:new RegExp("rgba"+u),hsl:new RegExp("hsl"+h),hsla:new RegExp("hsla"+u),hsv:new RegExp("hsv"+h),hsva:new RegExp("hsva"+u),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();a!==void 0&&a.exports?a.exports=s:(r=function(){return s}.call(o,e,o,a))!==void 0&&(a.exports=r)})(Math)},function(a,o,e){var r=e(67);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("0f73e73c",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-editable-input {
position: relative;
}
.vc-input__input {
padding: 0;
border: 0;
outline: none;
}
.vc-input__label {
text-transform: capitalize;
}
`,""])},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{staticClass:"vc-editable-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],ref:"input",staticClass:"vc-input__input",attrs:{"aria-labelledby":t.labelId},domProps:{value:t.val},on:{keydown:t.handleKeyDown,input:[function(l){l.target.composing||(t.val=l.target.value)},t.update]}}),t._v(" "),n("span",{staticClass:"vc-input__label",attrs:{for:t.label,id:t.labelId}},[t._v(t._s(t.labelSpanText))]),t._v(" "),n("span",{staticClass:"vc-input__desc"},[t._v(t._s(t.desc))])])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{staticClass:"vc-compact",attrs:{role:"application","aria-label":"Compact color picker"}},[n("ul",{staticClass:"vc-compact-colors",attrs:{role:"listbox"}},t._l(t.paletteUpperCase(t.palette),function(l){return n("li",{key:l,staticClass:"vc-compact-color-item",class:{"vc-compact-color-item--white":l==="#FFFFFF"},style:{background:l},attrs:{role:"option","aria-label":"color:"+l,"aria-selected":l===t.pick},on:{click:function(p){return t.handlerClick(l)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:l===t.pick,expression:"c === pick"}],staticClass:"vc-compact-dot"})])}),0)])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){function r(d){e(71)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(37),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(73),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/Grayscale.vue",o.default=p.exports},function(a,o,e){var r=e(72);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("21ddbb74",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-grayscale {
width: 125px;
border-radius: 2px;
box-shadow: 0 2px 15px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.16);
background-color: #fff;
}
.vc-grayscale-colors {
border-radius: 2px;
overflow: hidden;
padding: 0;
margin: 0;
}
.vc-grayscale-color-item {
list-style: none;
width: 25px;
height: 25px;
float: left;
position: relative;
cursor: pointer;
}
.vc-grayscale-color-item--white .vc-grayscale-dot {
background: #000;
}
.vc-grayscale-dot {
position: absolute;
top: 50%;
left: 50%;
width: 6px;
height: 6px;
margin: -3px 0 0 -2px;
border-radius: 50%;
opacity: 1;
background: #fff;
}
`,""])},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{staticClass:"vc-grayscale",attrs:{role:"application","aria-label":"Grayscale color picker"}},[n("ul",{staticClass:"vc-grayscale-colors",attrs:{role:"listbox"}},t._l(t.paletteUpperCase(t.palette),function(l){return n("li",{key:l,staticClass:"vc-grayscale-color-item",class:{"vc-grayscale-color-item--white":l=="#FFFFFF"},style:{background:l},attrs:{role:"option","aria-label":"Color:"+l,"aria-selected":l===t.pick},on:{click:function(p){return t.handlerClick(l)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:l===t.pick,expression:"c === pick"}],staticClass:"vc-grayscale-dot"})])}),0)])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){function r(d){e(75)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(38),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(77),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/Material.vue",o.default=p.exports},function(a,o,e){var r=e(76);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("1ff3af73",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-material {
width: 98px;
height: 98px;
padding: 16px;
font-family: "Roboto";
position: relative;
border-radius: 2px;
box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);
background-color: #fff;
}
.vc-material .vc-input__input {
width: 100%;
margin-top: 12px;
font-size: 15px;
color: #333;
height: 30px;
}
.vc-material .vc-input__label {
position: absolute;
top: 0;
left: 0;
font-size: 11px;
color: #999;
text-transform: capitalize;
}
.vc-material-hex {
border-bottom-width: 2px;
border-bottom-style: solid;
}
.vc-material-split {
display: flex;
margin-right: -10px;
padding-top: 11px;
}
.vc-material-third {
flex: 1;
padding-right: 10px;
}
`,""])},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{staticClass:"vc-material",attrs:{role:"application","aria-label":"Material color picker"}},[n("ed-in",{staticClass:"vc-material-hex",style:{borderColor:t.colors.hex},attrs:{label:"hex"},on:{change:t.onChange},model:{value:t.colors.hex,callback:function(l){t.$set(t.colors,"hex",l)},expression:"colors.hex"}}),t._v(" "),n("div",{staticClass:"vc-material-split"},[n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"r"},on:{change:t.onChange},model:{value:t.colors.rgba.r,callback:function(l){t.$set(t.colors.rgba,"r",l)},expression:"colors.rgba.r"}})],1),t._v(" "),n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"g"},on:{change:t.onChange},model:{value:t.colors.rgba.g,callback:function(l){t.$set(t.colors.rgba,"g",l)},expression:"colors.rgba.g"}})],1),t._v(" "),n("div",{staticClass:"vc-material-third"},[n("ed-in",{attrs:{label:"b"},on:{change:t.onChange},model:{value:t.colors.rgba.b,callback:function(l){t.$set(t.colors.rgba,"b",l)},expression:"colors.rgba.b"}})],1)])],1)},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){function r(d){e(79)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(39),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(114),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/Slider.vue",o.default=p.exports},function(a,o,e){var r=e(80);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("7982aa43",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-slider {
position: relative;
width: 410px;
}
.vc-slider-hue-warp {
height: 12px;
position: relative;
}
.vc-slider-hue-warp .vc-hue-picker {
width: 14px;
height: 14px;
border-radius: 6px;
transform: translate(-7px, -2px);
background-color: rgb(248, 248, 248);
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
}
.vc-slider-swatches {
display: flex;
margin-top: 20px;
}
.vc-slider-swatch {
margin-right: 1px;
flex: 1;
width: 20%;
}
.vc-slider-swatch:first-child {
margin-right: 1px;
}
.vc-slider-swatch:first-child .vc-slider-swatch-picker {
border-radius: 2px 0px 0px 2px;
}
.vc-slider-swatch:last-child {
margin-right: 0;
}
.vc-slider-swatch:last-child .vc-slider-swatch-picker {
border-radius: 0px 2px 2px 0px;
}
.vc-slider-swatch-picker {
cursor: pointer;
height: 12px;
}
.vc-slider-swatch:nth-child(n) .vc-slider-swatch-picker.vc-slider-swatch-picker--active {
transform: scaleY(1.8);
border-radius: 3.6px/2px;
}
.vc-slider-swatch-picker--white {
box-shadow: inset 0 0 0 1px #ddd;
}
.vc-slider-swatch-picker--active.vc-slider-swatch-picker--white {
box-shadow: inset 0 0 0 0.6px #ddd;
}
`,""])},function(a,o,e){function r(l){return l&&l.__esModule?l:{default:l}}o.__esModule=!0;var i=e(82),s=r(i),t=e(100),f=r(t),n=typeof f.default=="function"&&typeof s.default=="symbol"?function(l){return typeof l}:function(l){return l&&typeof f.default=="function"&&l.constructor===f.default&&l!==f.default.prototype?"symbol":typeof l};o.default=typeof f.default=="function"&&n(s.default)==="symbol"?function(l){return l===void 0?"undefined":n(l)}:function(l){return l&&typeof f.default=="function"&&l.constructor===f.default&&l!==f.default.prototype?"symbol":l===void 0?"undefined":n(l)}},function(a,o,e){a.exports={default:e(83),__esModule:!0}},function(a,o,e){e(84),e(96),a.exports=e(32).f("iterator")},function(a,o,e){var r=e(85)(!0);e(40)(String,"String",function(i){this._t=String(i),this._i=0},function(){var i,s=this._t,t=this._i;return t>=s.length?{value:void 0,done:!0}:(i=r(s,t),this._i+=i.length,{value:i,done:!1})})},function(a,o,e){var r=e(23),i=e(24);a.exports=function(s){return function(t,f){var n,l,p=String(i(t)),d=r(f),b=p.length;return d<0||d>=b?s?"":void 0:(n=p.charCodeAt(d),n<55296||n>56319||d+1===b||(l=p.charCodeAt(d+1))<56320||l>57343?s?p.charAt(d):n:s?p.slice(d,d+2):l-56320+(n-55296<<10)+65536)}}},function(a,o,e){var r=e(87);a.exports=function(i,s,t){if(r(i),s===void 0)return i;switch(t){case 1:return function(f){return i.call(s,f)};case 2:return function(f,n){return i.call(s,f,n)};case 3:return function(f,n,l){return i.call(s,f,n,l)}}return function(){return i.apply(s,arguments)}}},function(a,o){a.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(a,o,e){var r=e(45),i=e(18),s=e(31),t={};e(7)(t,e(11)("iterator"),function(){return this}),a.exports=function(f,n,l){f.prototype=r(t,{next:i(1,l)}),s(f,n+" Iterator")}},function(a,o,e){var r=e(8),i=e(16),s=e(27);a.exports=e(9)?Object.defineProperties:function(t,f){i(t);for(var n,l=s(f),p=l.length,d=0;p>d;)r.f(t,n=l[d++],f[n]);return t}},function(a,o,e){var r=e(47);a.exports=Object("z").propertyIsEnumerable(0)?Object:function(i){return r(i)=="String"?i.split(""):Object(i)}},function(a,o,e){var r=e(10),i=e(92),s=e(93);a.exports=function(t){return function(f,n,l){var p,d=r(f),b=i(d.length),_=s(l,b);if(t&&n!=n){for(;b>_;)if((p=d[_++])!=p)return!0}else for(;b>_;_++)if((t||_ in d)&&d[_]===n)return t||_||0;return!t&&-1}}},function(a,o,e){var r=e(23),i=Math.min;a.exports=function(s){return s>0?i(r(s),9007199254740991):0}},function(a,o,e){var r=e(23),i=Math.max,s=Math.min;a.exports=function(t,f){return t=r(t),t<0?i(t+f,0):s(t,f)}},function(a,o,e){var r=e(4).document;a.exports=r&&r.documentElement},function(a,o,e){var r=e(6),i=e(48),s=e(28)("IE_PROTO"),t=Object.prototype;a.exports=Object.getPrototypeOf||function(f){return f=i(f),r(f,s)?f[s]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?t:null}},function(a,o,e){e(97);for(var r=e(4),i=e(7),s=e(26),t=e(11)("toStringTag"),f="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),n=0;n<f.length;n++){var l=f[n],p=r[l],d=p&&p.prototype;d&&!d[t]&&i(d,t,l),s[l]=s.Array}},function(a,o,e){var r=e(98),i=e(99),s=e(26),t=e(10);a.exports=e(40)(Array,"Array",function(f,n){this._t=t(f),this._i=0,this._k=n},function(){var f=this._t,n=this._k,l=this._i++;return!f||l>=f.length?(this._t=void 0,i(1)):n=="keys"?i(0,l):n=="values"?i(0,f[l]):i(0,[l,f[l]])},"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},function(a,o){a.exports=function(){}},function(a,o){a.exports=function(e,r){return{value:r,done:!!e}}},function(a,o,e){a.exports={default:e(101),__esModule:!0}},function(a,o,e){e(102),e(108),e(109),e(110),a.exports=e(15).Symbol},function(a,o,e){var r=e(4),i=e(6),s=e(9),t=e(41),f=e(44),n=e(103).KEY,l=e(17),p=e(29),d=e(31),b=e(19),_=e(11),v=e(32),y=e(33),w=e(104),F=e(105),T=e(16),J=e(12),A=e(48),j=e(10),L=e(25),O=e(18),g=e(45),M=e(106),B=e(107),D=e(49),I=e(8),P=e(27),Y=B.f,H=I.f,lt=M.f,G=r.Symbol,K=r.JSON,Z=K&&K.stringify,V=_("_hidden"),ut=_("toPrimitive"),rt={}.propertyIsEnumerable,it=p("symbol-registry"),q=p("symbols"),nt=p("op-symbols"),Q=Object.prototype,ft=typeof G=="function"&&!!D.f,E=r.QObject,tt=!E||!E.prototype||!E.prototype.findChild,N=s&&l(function(){return g(H({},"a",{get:function(){return H(this,"a",{value:7}).a}})).a!=7})?function(m,k,$){var et=Y(Q,k);et&&delete Q[k],H(m,k,$),et&&m!==Q&&H(Q,k,et)}:H,ot=function(m){var k=q[m]=g(G.prototype);return k._k=m,k},st=ft&&typeof G.iterator=="symbol"?function(m){return typeof m=="symbol"}:function(m){return m instanceof G},pt=function(m,k,$){return m===Q&&pt(nt,k,$),T(m),k=L(k,!0),T($),i(q,k)?($.enumerable?(i(m,V)&&m[V][k]&&(m[V][k]=!1),$=g($,{enumerable:O(0,!1)})):(i(m,V)||H(m,V,O(1,{})),m[V][k]=!0),N(m,k,$)):H(m,k,$)},at=function(m,k){T(m);for(var $,et=w(k=j(k)),dt=0,ht=et.length;ht>dt;)pt(m,$=et[dt++],k[$]);return m},c=function(m,k){return k===void 0?g(m):at(g(m),k)},h=function(m){var k=rt.call(this,m=L(m,!0));return!(this===Q&&i(q,m)&&!i(nt,m))&&(!(k||!i(this,m)||!i(q,m)||i(this,V)&&this[V][m])||k)},u=function(m,k){if(m=j(m),k=L(k,!0),m!==Q||!i(q,k)||i(nt,k)){var $=Y(m,k);return!$||!i(q,k)||i(m,V)&&m[V][k]||($.enumerable=!0),$}},x=function(m){for(var k,$=lt(j(m)),et=[],dt=0;$.length>dt;)i(q,k=$[dt++])||k==V||k==n||et.push(k);return et},S=function(m){for(var k,$=m===Q,et=lt($?nt:j(m)),dt=[],ht=0;et.length>ht;)!i(q,k=et[ht++])||$&&!i(Q,k)||dt.push(q[k]);return dt};ft||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor!");var m=b(arguments.length>0?arguments[0]:void 0),k=function($){this===Q&&k.call(nt,$),i(this,V)&&i(this[V],m)&&(this[V][m]=!1),N(this,m,O(1,$))};return s&&tt&&N(Q,m,{configurable:!0,set:k}),ot(m)},f(G.prototype,"toString",function(){return this._k}),B.f=u,I.f=pt,e(50).f=M.f=x,e(34).f=h,D.f=S,s&&!e(14)&&f(Q,"propertyIsEnumerable",h,!0),v.f=function(m){return ot(_(m))}),t(t.G+t.W+t.F*!ft,{Symbol:G});for(var C="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),R=0;C.length>R;)_(C[R++]);for(var U=P(_.store),W=0;U.length>W;)y(U[W++]);t(t.S+t.F*!ft,"Symbol",{for:function(m){return i(it,m+="")?it[m]:it[m]=G(m)},keyFor:function(m){if(!st(m))throw TypeError(m+" is not a symbol!");for(var k in it)if(it[k]===m)return k},useSetter:function(){tt=!0},useSimple:function(){tt=!1}}),t(t.S+t.F*!ft,"Object",{create:c,defineProperty:pt,defineProperties:at,getOwnPropertyDescriptor:u,getOwnPropertyNames:x,getOwnPropertySymbols:S});var ct=l(function(){D.f(1)});t(t.S+t.F*ct,"Object",{getOwnPropertySymbols:function(m){return D.f(A(m))}}),K&&t(t.S+t.F*(!ft||l(function(){var m=G();return Z([m])!="[null]"||Z({a:m})!="{}"||Z(Object(m))!="{}"})),"JSON",{stringify:function(m){for(var k,$,et=[m],dt=1;arguments.length>dt;)et.push(arguments[dt++]);if($=k=et[1],(J(k)||m!==void 0)&&!st(m))return F(k)||(k=function(ht,vt){if(typeof $=="function"&&(vt=$.call(this,ht,vt)),!st(vt))return vt}),et[1]=k,Z.apply(K,et)}}),G.prototype[ut]||e(7)(G.prototype,ut,G.prototype.valueOf),d(G,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(a,o,e){var r=e(19)("meta"),i=e(12),s=e(6),t=e(8).f,f=0,n=Object.isExtensible||function(){return!0},l=!e(17)(function(){return n(Object.preventExtensions({}))}),p=function(y){t(y,r,{value:{i:"O"+ ++f,w:{}}})},d=function(y,w){if(!i(y))return typeof y=="symbol"?y:(typeof y=="string"?"S":"P")+y;if(!s(y,r)){if(!n(y))return"F";if(!w)return"E";p(y)}return y[r].i},b=function(y,w){if(!s(y,r)){if(!n(y))return!0;if(!w)return!1;p(y)}return y[r].w},_=function(y){return l&&v.NEED&&n(y)&&!s(y,r)&&p(y),y},v=a.exports={KEY:r,NEED:!1,fastKey:d,getWeak:b,onFreeze:_}},function(a,o,e){var r=e(27),i=e(49),s=e(34);a.exports=function(t){var f=r(t),n=i.f;if(n)for(var l,p=n(t),d=s.f,b=0;p.length>b;)d.call(t,l=p[b++])&&f.push(l);return f}},function(a,o,e){var r=e(47);a.exports=Array.isArray||function(i){return r(i)=="Array"}},function(a,o,e){var r=e(10),i=e(50).f,s={}.toString,t=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(n){try{return i(n)}catch{return t.slice()}};a.exports.f=function(n){return t&&s.call(n)=="[object Window]"?f(n):i(r(n))}},function(a,o,e){var r=e(34),i=e(18),s=e(10),t=e(25),f=e(6),n=e(42),l=Object.getOwnPropertyDescriptor;o.f=e(9)?l:function(p,d){if(p=s(p),d=t(d,!0),n)try{return l(p,d)}catch{}if(f(p,d))return i(!r.f.call(p,d),p[d])}},function(a,o){},function(a,o,e){e(33)("asyncIterator")},function(a,o,e){e(33)("observable")},function(a,o,e){var r=e(112);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("7c5f1a1c",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-hue {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
border-radius: 2px;
}
.vc-hue--horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.vc-hue--vertical {
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.vc-hue-container {
cursor: pointer;
margin: 0 2px;
position: relative;
height: 100%;
}
.vc-hue-pointer {
z-index: 2;
position: absolute;
}
.vc-hue-picker {
cursor: pointer;
margin-top: 1px;
width: 4px;
border-radius: 1px;
height: 8px;
box-shadow: 0 0 2px rgba(0, 0, 0, .6);
background: #fff;
transform: translateX(-2px) ;
}
`,""])},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{class:["vc-hue",t.directionClass]},[n("div",{ref:"container",staticClass:"vc-hue-container",attrs:{role:"slider","aria-valuenow":t.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360"},on:{mousedown:t.handleMouseDown,touchmove:t.handleChange,touchstart:t.handleChange}},[n("div",{staticClass:"vc-hue-pointer",style:{top:t.pointerTop,left:t.pointerLeft},attrs:{role:"presentation"}},[n("div",{staticClass:"vc-hue-picker"})])])])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{staticClass:"vc-slider",attrs:{role:"application","aria-label":"Slider color picker"}},[n("div",{staticClass:"vc-slider-hue-warp"},[n("hue",{on:{change:t.hueChange},model:{value:t.colors,callback:function(l){t.colors=l},expression:"colors"}})],1),t._v(" "),n("div",{staticClass:"vc-slider-swatches",attrs:{role:"group"}},t._l(t.normalizedSwatches,function(l,p){return n("div",{key:p,staticClass:"vc-slider-swatch",attrs:{"data-index":p,"aria-label":"color:"+t.colors.hex,role:"button"},on:{click:function(d){return t.handleSwClick(p,l)}}},[n("div",{staticClass:"vc-slider-swatch-picker",class:{"vc-slider-swatch-picker--active":t.isActive(l,p),"vc-slider-swatch-picker--white":l.l===1},style:{background:"hsl("+t.colors.hsl.h+", "+100*l.s+"%, "+100*l.l+"%)"}})])}),0)])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){function r(d){e(116)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(52),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(119),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/Swatches.vue",o.default=p.exports},function(a,o,e){var r=e(117);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("10f839a2",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-swatches {
width: 320px;
height: 240px;
overflow-y: scroll;
background-color: #fff;
box-shadow: 0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16);
}
.vc-swatches-box {
padding: 16px 0 6px 16px;
overflow: hidden;
}
.vc-swatches-color-group {
padding-bottom: 10px;
width: 40px;
float: left;
margin-right: 10px;
}
.vc-swatches-color-it {
box-sizing: border-box;
width: 40px;
height: 24px;
cursor: pointer;
background: #880e4f;
margin-bottom: 1px;
overflow: hidden;
-ms-border-radius: 2px 2px 0 0;
-moz-border-radius: 2px 2px 0 0;
-o-border-radius: 2px 2px 0 0;
-webkit-border-radius: 2px 2px 0 0;
border-radius: 2px 2px 0 0;
}
.vc-swatches-color--white {
border: 1px solid #DDD;
}
.vc-swatches-pick {
fill: rgb(255, 255, 255);
margin-left: 8px;
display: block;
}
.vc-swatches-color--white .vc-swatches-pick {
fill: rgb(51, 51, 51);
}
`,""])},function(a,o,e){Object.defineProperty(o,"__esModule",{value:!0}),e.d(o,"red",function(){return r}),e.d(o,"pink",function(){return i}),e.d(o,"purple",function(){return s}),e.d(o,"deepPurple",function(){return t}),e.d(o,"indigo",function(){return f}),e.d(o,"blue",function(){return n}),e.d(o,"lightBlue",function(){return l}),e.d(o,"cyan",function(){return p}),e.d(o,"teal",function(){return d}),e.d(o,"green",function(){return b}),e.d(o,"lightGreen",function(){return _}),e.d(o,"lime",function(){return v}),e.d(o,"yellow",function(){return y}),e.d(o,"amber",function(){return w}),e.d(o,"orange",function(){return F}),e.d(o,"deepOrange",function(){return T}),e.d(o,"brown",function(){return J}),e.d(o,"grey",function(){return A}),e.d(o,"blueGrey",function(){return j}),e.d(o,"darkText",function(){return L}),e.d(o,"lightText",function(){return O}),e.d(o,"darkIcons",function(){return g}),e.d(o,"lightIcons",function(){return M}),e.d(o,"white",function(){return B}),e.d(o,"black",function(){return D});var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},i={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},s={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},t={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},f={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},n={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},l={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},p={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},d={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},_={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},v={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},y={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},w={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},F={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},T={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},J={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},A={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},j={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},L={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},O={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},g={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},M={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},B="#ffffff",D="#000000";o.default={red:r,pink:i,purple:s,deepPurple:t,indigo:f,blue:n,lightBlue:l,cyan:p,teal:d,green:b,lightGreen:_,lime:v,yellow:y,amber:w,orange:F,deepOrange:T,brown:J,grey:A,blueGrey:j,darkText:L,lightText:O,darkIcons:g,lightIcons:M,white:B,black:D}},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{staticClass:"vc-swatches",attrs:{role:"application","aria-label":"Swatches color picker","data-pick":t.pick}},[n("div",{staticClass:"vc-swatches-box",attrs:{role:"listbox"}},t._l(t.palette,function(l,p){return n("div",{key:p,staticClass:"vc-swatches-color-group"},t._l(l,function(d){return n("div",{key:d,class:["vc-swatches-color-it",{"vc-swatches-color--white":d==="#FFFFFF"}],style:{background:d},attrs:{role:"option","aria-label":"Color:"+d,"aria-selected":t.equal(d),"data-color":d},on:{click:function(b){return t.handlerClick(d)}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.equal(d),expression:"equal(c)"}],staticClass:"vc-swatches-pick"},[n("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}})])])])}),0)}),0)])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){function r(d){e(121)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(53),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(134),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/Photoshop.vue",o.default=p.exports},function(a,o,e){var r=e(122);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("080365d4",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-photoshop {
background: #DCDCDC;
border-radius: 4px;
box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15);
box-sizing: initial;
width: 513px;
font-family: Roboto;
}
.vc-photoshop__disable-fields {
width: 390px;
}
.vc-ps-head {
background-image: linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%);
border-bottom: 1px solid #B1B1B1;
box-shadow: inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02);
height: 23px;
line-height: 24px;
border-radius: 4px 4px 0 0;
font-size: 13px;
color: #4D4D4D;
text-align: center;
}
.vc-ps-body {
padding: 15px;
display: flex;
}
.vc-ps-saturation-wrap {
width: 256px;
height: 256px;
position: relative;
border: 2px solid #B3B3B3;
border-bottom: 2px solid #F0F0F0;
overflow: hidden;
}
.vc-ps-saturation-wrap .vc-saturation-circle {
width: 12px;
height: 12px;
}
.vc-ps-hue-wrap {
position: relative;
height: 256px;
width: 19px;
margin-left: 10px;
border: 2px solid #B3B3B3;
border-bottom: 2px solid #F0F0F0;
}
.vc-ps-hue-pointer {
position: relative;
}
.vc-ps-hue-pointer--left,
.vc-ps-hue-pointer--right {
position: absolute;
width: 0;
height: 0;
border-style: solid;
border-width: 5px 0 5px 8px;
border-color: transparent transparent transparent #555;
}
.vc-ps-hue-pointer--left:after,
.vc-ps-hue-pointer--right:after {
content: "";
width: 0;
height: 0;
border-style: solid;
border-width: 4px 0 4px 6px;
border-color: transparent transparent transparent #fff;
position: absolute;
top: 1px;
left: 1px;
transform: translate(-8px, -5px);
}
.vc-ps-hue-pointer--left {
transform: translate(-13px, -4px);
}
.vc-ps-hue-pointer--right {
transform: translate(20px, -4px) rotate(180deg);
}
.vc-ps-controls {
width: 180px;
margin-left: 10px;
display: flex;
}
.vc-ps-controls__disable-fields {
width: auto;
}
.vc-ps-actions {
margin-left: 20px;
flex: 1;
}
.vc-ps-ac-btn {
cursor: pointer;
background-image: linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%);
border: 1px solid #878787;
border-radius: 2px;
height: 20px;
box-shadow: 0 1px 0 0 #EAEAEA;
font-size: 14px;
color: #000;
line-height: 20px;
text-align: center;
margin-bottom: 10px;
}
.vc-ps-previews {
width: 60px;
}
.vc-ps-previews__swatches {
border: 1px solid #B3B3B3;
border-bottom: 1px solid #F0F0F0;
margin-bottom: 2px;
margin-top: 1px;
}
.vc-ps-previews__pr-color {
height: 34px;
box-shadow: inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000;
}
.vc-ps-previews__label {
font-size: 14px;
color: #000;
text-align: center;
}
.vc-ps-fields {
padding-top: 5px;
padding-bottom: 9px;
width: 80px;
position: relative;
}
.vc-ps-fields .vc-input__input {
margin-left: 40%;
width: 40%;
height: 18px;
border: 1px solid #888888;
box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;
margin-bottom: 5px;
font-size: 13px;
padding-left: 3px;
margin-right: 10px;
}
.vc-ps-fields .vc-input__label, .vc-ps-fields .vc-input__desc {
top: 0;
text-transform: uppercase;
font-size: 13px;
height: 18px;
line-height: 22px;
position: absolute;
}
.vc-ps-fields .vc-input__label {
left: 0;
width: 34px;
}
.vc-ps-fields .vc-input__desc {
right: 0;
width: 0;
}
.vc-ps-fields__divider {
height: 5px;
}
.vc-ps-fields__hex .vc-input__input {
margin-left: 20%;
width: 80%;
height: 18px;
border: 1px solid #888888;
box-shadow: inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC;
margin-bottom: 6px;
font-size: 13px;
padding-left: 3px;
}
.vc-ps-fields__hex .vc-input__label {
position: absolute;
top: 0;
left: 0;
width: 14px;
text-transform: uppercase;
font-size: 13px;
height: 18px;
line-height: 22px;
}
`,""])},function(a,o,e){var r=e(124);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("b5380e52",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-saturation,
.vc-saturation--white,
.vc-saturation--black {
cursor: pointer;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.vc-saturation--white {
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.vc-saturation--black {
background: linear-gradient(to top, #000, rgba(0,0,0,0));
}
.vc-saturation-pointer {
cursor: pointer;
position: absolute;
}
.vc-saturation-circle {
cursor: head;
width: 4px;
height: 4px;
box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4);
border-radius: 50%;
transform: translate(-2px, -2px);
}
`,""])},function(a,o){function e(r,i,s){return i<s?r<i?i:r>s?s:r:r<s?s:r>i?i:r}a.exports=e},function(a,o){function e(g,M,B){function D(N){var ot=V,st=ut;return V=ut=void 0,Q=N,it=g.apply(st,ot)}function I(N){return Q=N,q=setTimeout(H,M),ft?D(N):it}function P(N){var ot=N-nt,st=N-Q,pt=M-ot;return E?L(pt,rt-st):pt}function Y(N){var ot=N-nt,st=N-Q;return nt===void 0||ot>=M||ot<0||E&&st>=rt}function H(){var N=O();if(Y(N))return lt(N);q=setTimeout(H,P(N))}function lt(N){return q=void 0,tt&&V?D(N):(V=ut=void 0,it)}function G(){q!==void 0&&clearTimeout(q),Q=0,V=nt=ut=q=void 0}function K(){return q===void 0?it:lt(O())}function Z(){var N=O(),ot=Y(N);if(V=arguments,ut=this,nt=N,ot){if(q===void 0)return I(nt);if(E)return q=setTimeout(H,M),D(nt)}return q===void 0&&(q=setTimeout(H,M)),it}var V,ut,rt,it,q,nt,Q=0,ft=!1,E=!1,tt=!0;if(typeof g!="function")throw new TypeError(n);return M=f(M)||0,i(B)&&(ft=!!B.leading,E="maxWait"in B,rt=E?j(f(B.maxWait)||0,M):rt,tt="trailing"in B?!!B.trailing:tt),Z.cancel=G,Z.flush=K,Z}function r(g,M,B){var D=!0,I=!0;if(typeof g!="function")throw new TypeError(n);return i(B)&&(D="leading"in B?!!B.leading:D,I="trailing"in B?!!B.trailing:I),e(g,M,{leading:D,maxWait:M,trailing:I})}function i(g){var M=typeof g;return!!g&&(M=="object"||M=="function")}function s(g){return!!g&&typeof g=="object"}function t(g){return typeof g=="symbol"||s(g)&&A.call(g)==p}function f(g){if(typeof g=="number")return g;if(t(g))return l;if(i(g)){var M=typeof g.valueOf=="function"?g.valueOf():g;g=i(M)?M+"":M}if(typeof g!="string")return g===0?g:+g;g=g.replace(d,"");var B=_.test(g);return B||v.test(g)?y(g.slice(2),B?2:8):b.test(g)?l:+g}var n="Expected a function",l=NaN,p="[object Symbol]",d=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,v=/^0o[0-7]+$/i,y=parseInt,w=typeof gt=="object"&>&>.Object===Object&>,F=typeof self=="object"&&self&&self.Object===Object&&self,T=w||F||Function("return this")(),J=Object.prototype,A=J.toString,j=Math.max,L=Math.min,O=function(){return T.Date.now()};a.exports=r},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{ref:"container",staticClass:"vc-saturation",style:{background:t.bgColor},on:{mousedown:t.handleMouseDown,touchmove:t.handleChange,touchstart:t.handleChange}},[n("div",{staticClass:"vc-saturation--white"}),t._v(" "),n("div",{staticClass:"vc-saturation--black"}),t._v(" "),n("div",{staticClass:"vc-saturation-pointer",style:{top:t.pointerTop,left:t.pointerLeft}},[n("div",{staticClass:"vc-saturation-circle"})])])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){var r=e(129);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("4dc1b086",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-alpha {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}
.vc-alpha-checkboard-wrap {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
overflow: hidden;
}
.vc-alpha-gradient {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}
.vc-alpha-container {
cursor: pointer;
position: relative;
z-index: 2;
height: 100%;
margin: 0 3px;
}
.vc-alpha-pointer {
z-index: 2;
position: absolute;
}
.vc-alpha-picker {
cursor: pointer;
width: 4px;
border-radius: 1px;
height: 8px;
box-shadow: 0 0 2px rgba(0, 0, 0, .6);
background: #fff;
margin-top: 1px;
transform: translateX(-2px);
}
`,""])},function(a,o,e){var r=e(131);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("7e15c05b",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-checkerboard {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
background-size: contain;
}
`,""])},function(a,o,e){var r=function(){var t=this,f=t.$createElement;return(t._self._c||f)("div",{staticClass:"vc-checkerboard",style:t.bgStyle})},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{staticClass:"vc-alpha"},[n("div",{staticClass:"vc-alpha-checkboard-wrap"},[n("checkboard")],1),t._v(" "),n("div",{staticClass:"vc-alpha-gradient",style:{background:t.gradientColor}}),t._v(" "),n("div",{ref:"container",staticClass:"vc-alpha-container",on:{mousedown:t.handleMouseDown,touchmove:t.handleChange,touchstart:t.handleChange}},[n("div",{staticClass:"vc-alpha-pointer",style:{left:100*t.colors.a+"%"}},[n("div",{staticClass:"vc-alpha-picker"})])])])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{class:["vc-photoshop",t.disableFields?"vc-photoshop__disable-fields":""],attrs:{role:"application","aria-label":"PhotoShop color picker"}},[n("div",{staticClass:"vc-ps-head",attrs:{role:"heading"}},[t._v(t._s(t.head))]),t._v(" "),n("div",{staticClass:"vc-ps-body"},[n("div",{staticClass:"vc-ps-saturation-wrap"},[n("saturation",{on:{change:t.childChange},model:{value:t.colors,callback:function(l){t.colors=l},expression:"colors"}})],1),t._v(" "),n("div",{staticClass:"vc-ps-hue-wrap"},[n("hue",{attrs:{direction:"vertical"},on:{change:t.childChange},model:{value:t.colors,callback:function(l){t.colors=l},expression:"colors"}},[n("div",{staticClass:"vc-ps-hue-pointer"},[n("i",{staticClass:"vc-ps-hue-pointer--left"}),n("i",{staticClass:"vc-ps-hue-pointer--right"})])])],1),t._v(" "),n("div",{class:["vc-ps-controls",t.disableFields?"vc-ps-controls__disable-fields":""]},[n("div",{staticClass:"vc-ps-previews"},[n("div",{staticClass:"vc-ps-previews__label"},[t._v(t._s(t.newLabel))]),t._v(" "),n("div",{staticClass:"vc-ps-previews__swatches"},[n("div",{staticClass:"vc-ps-previews__pr-color",style:{background:t.colors.hex},attrs:{"aria-label":"New color is "+t.colors.hex}}),t._v(" "),n("div",{staticClass:"vc-ps-previews__pr-color",style:{background:t.currentColor},attrs:{"aria-label":"Current color is "+t.currentColor},on:{click:t.clickCurrentColor}})]),t._v(" "),n("div",{staticClass:"vc-ps-previews__label"},[t._v(t._s(t.currentLabel))])]),t._v(" "),t.disableFields?t._e():n("div",{staticClass:"vc-ps-actions"},[n("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":t.acceptLabel},on:{click:t.handleAccept}},[t._v(t._s(t.acceptLabel))]),t._v(" "),n("div",{staticClass:"vc-ps-ac-btn",attrs:{role:"button","aria-label":t.cancelLabel},on:{click:t.handleCancel}},[t._v(t._s(t.cancelLabel))]),t._v(" "),n("div",{staticClass:"vc-ps-fields"},[n("ed-in",{attrs:{label:"h",desc:"Β°",value:t.hsv.h},on:{change:t.inputChange}}),t._v(" "),n("ed-in",{attrs:{label:"s",desc:"%",value:t.hsv.s,max:100},on:{change:t.inputChange}}),t._v(" "),n("ed-in",{attrs:{label:"v",desc:"%",value:t.hsv.v,max:100},on:{change:t.inputChange}}),t._v(" "),n("div",{staticClass:"vc-ps-fields__divider"}),t._v(" "),n("ed-in",{attrs:{label:"r",value:t.colors.rgba.r},on:{change:t.inputChange}}),t._v(" "),n("ed-in",{attrs:{label:"g",value:t.colors.rgba.g},on:{change:t.inputChange}}),t._v(" "),n("ed-in",{attrs:{label:"b",value:t.colors.rgba.b},on:{change:t.inputChange}}),t._v(" "),n("div",{staticClass:"vc-ps-fields__divider"}),t._v(" "),n("ed-in",{staticClass:"vc-ps-fields__hex",attrs:{label:"#",value:t.hex},on:{change:t.inputChange}})],1),t._v(" "),t.hasResetButton?n("div",{staticClass:"vc-ps-ac-btn",attrs:{"aria-label":"reset"},on:{click:t.handleReset}},[t._v(t._s(t.resetLabel))]):t._e()])])])])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){function r(d){e(136)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(57),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(138),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/Sketch.vue",o.default=p.exports},function(a,o,e){var r=e(137);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("612c6604",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-sketch {
position: relative;
width: 200px;
padding: 10px 10px 0;
box-sizing: initial;
background: #fff;
border-radius: 4px;
box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 8px 16px rgba(0, 0, 0, .15);
}
.vc-sketch-saturation-wrap {
width: 100%;
padding-bottom: 75%;
position: relative;
overflow: hidden;
}
.vc-sketch-controls {
display: flex;
}
.vc-sketch-sliders {
padding: 4px 0;
flex: 1;
}
.vc-sketch-sliders .vc-hue,
.vc-sketch-sliders .vc-alpha-gradient {
border-radius: 2px;
}
.vc-sketch-hue-wrap {
position: relative;
height: 10px;
}
.vc-sketch-alpha-wrap {
position: relative;
height: 10px;
margin-top: 4px;
overflow: hidden;
}
.vc-sketch-color-wrap {
width: 24px;
height: 24px;
position: relative;
margin-top: 4px;
margin-left: 4px;
border-radius: 3px;
}
.vc-sketch-active-color {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 2px;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), inset 0 0 4px rgba(0, 0, 0, .25);
z-index: 2;
}
.vc-sketch-color-wrap .vc-checkerboard {
background-size: auto;
}
.vc-sketch-field {
display: flex;
padding-top: 4px;
}
.vc-sketch-field .vc-input__input {
width: 90%;
padding: 4px 0 3px 10%;
border: none;
box-shadow: inset 0 0 0 1px #ccc;
font-size: 10px;
}
.vc-sketch-field .vc-input__label {
display: block;
text-align: center;
font-size: 11px;
color: #222;
padding-top: 3px;
padding-bottom: 4px;
text-transform: capitalize;
}
.vc-sketch-field--single {
flex: 1;
padding-left: 6px;
}
.vc-sketch-field--double {
flex: 2;
}
.vc-sketch-presets {
margin-right: -10px;
margin-left: -10px;
padding-left: 10px;
padding-top: 10px;
border-top: 1px solid #eee;
}
.vc-sketch-presets-color {
border-radius: 3px;
overflow: hidden;
position: relative;
display: inline-block;
margin: 0 10px 10px 0;
vertical-align: top;
cursor: pointer;
width: 16px;
height: 16px;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}
.vc-sketch-presets-color .vc-checkerboard {
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
border-radius: 3px;
}
.vc-sketch__disable-alpha .vc-sketch-color-wrap {
height: 10px;
}
`,""])},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{class:["vc-sketch",t.disableAlpha?"vc-sketch__disable-alpha":""],attrs:{role:"application","aria-label":"Sketch color picker"}},[n("div",{staticClass:"vc-sketch-saturation-wrap"},[n("saturation",{on:{change:t.childChange},model:{value:t.colors,callback:function(l){t.colors=l},expression:"colors"}})],1),t._v(" "),n("div",{staticClass:"vc-sketch-controls"},[n("div",{staticClass:"vc-sketch-sliders"},[n("div",{staticClass:"vc-sketch-hue-wrap"},[n("hue",{on:{change:t.childChange},model:{value:t.colors,callback:function(l){t.colors=l},expression:"colors"}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-sketch-alpha-wrap"},[n("alpha",{on:{change:t.childChange},model:{value:t.colors,callback:function(l){t.colors=l},expression:"colors"}})],1)]),t._v(" "),n("div",{staticClass:"vc-sketch-color-wrap"},[n("div",{staticClass:"vc-sketch-active-color",style:{background:t.activeColor},attrs:{"aria-label":"Current color is "+t.activeColor}}),t._v(" "),n("checkboard")],1)]),t._v(" "),t.disableFields?t._e():n("div",{staticClass:"vc-sketch-field"},[n("div",{staticClass:"vc-sketch-field--double"},[n("ed-in",{attrs:{label:"hex",value:t.hex},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"r",value:t.colors.rgba.r},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"g",value:t.colors.rgba.g},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"b",value:t.colors.rgba.b},on:{change:t.inputChange}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-sketch-field--single"},[n("ed-in",{attrs:{label:"a",value:t.colors.a,"arrow-offset":.01,max:1},on:{change:t.inputChange}})],1)]),t._v(" "),n("div",{staticClass:"vc-sketch-presets",attrs:{role:"group","aria-label":"A color preset, pick one to set as current color"}},[t._l(t.presetColors,function(l){return[t.isTransparent(l)?n("div",{key:l,staticClass:"vc-sketch-presets-color",attrs:{"aria-label":"Color:"+l},on:{click:function(p){return t.handlePreset(l)}}},[n("checkboard")],1):n("div",{key:l,staticClass:"vc-sketch-presets-color",style:{background:l},attrs:{"aria-label":"Color:"+l},on:{click:function(p){return t.handlePreset(l)}}})]})],2)])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){function r(d){e(140)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(58),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(142),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/Chrome.vue",o.default=p.exports},function(a,o,e){var r=e(141);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("1cd16048",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-chrome {
background: #fff;
border-radius: 2px;
box-shadow: 0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3);
box-sizing: initial;
width: 225px;
font-family: Menlo;
background-color: #fff;
}
.vc-chrome-controls {
display: flex;
}
.vc-chrome-color-wrap {
position: relative;
width: 36px;
}
.vc-chrome-active-color {
position: relative;
width: 30px;
height: 30px;
border-radius: 15px;
overflow: hidden;
z-index: 1;
}
.vc-chrome-color-wrap .vc-checkerboard {
width: 30px;
height: 30px;
border-radius: 15px;
background-size: auto;
}
.vc-chrome-sliders {
flex: 1;
}
.vc-chrome-fields-wrap {
display: flex;
padding-top: 16px;
}
.vc-chrome-fields {
display: flex;
margin-left: -6px;
flex: 1;
}
.vc-chrome-field {
padding-left: 6px;
width: 100%;
}
.vc-chrome-toggle-btn {
width: 32px;
text-align: right;
position: relative;
}
.vc-chrome-toggle-icon {
margin-right: -4px;
margin-top: 12px;
cursor: pointer;
position: relative;
z-index: 2;
}
.vc-chrome-toggle-icon-highlight {
position: absolute;
width: 24px;
height: 28px;
background: #eee;
border-radius: 4px;
top: 10px;
left: 12px;
}
.vc-chrome-hue-wrap {
position: relative;
height: 10px;
margin-bottom: 8px;
}
.vc-chrome-alpha-wrap {
position: relative;
height: 10px;
}
.vc-chrome-hue-wrap .vc-hue {
border-radius: 2px;
}
.vc-chrome-alpha-wrap .vc-alpha-gradient {
border-radius: 2px;
}
.vc-chrome-hue-wrap .vc-hue-picker, .vc-chrome-alpha-wrap .vc-alpha-picker {
width: 12px;
height: 12px;
border-radius: 6px;
transform: translate(-6px, -2px);
background-color: rgb(248, 248, 248);
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
}
.vc-chrome-body {
padding: 16px 16px 12px;
background-color: #fff;
}
.vc-chrome-saturation-wrap {
width: 100%;
padding-bottom: 55%;
position: relative;
border-radius: 2px 2px 0 0;
overflow: hidden;
}
.vc-chrome-saturation-wrap .vc-saturation-circle {
width: 12px;
height: 12px;
}
.vc-chrome-fields .vc-input__input {
font-size: 11px;
color: #333;
width: 100%;
border-radius: 2px;
border: none;
box-shadow: inset 0 0 0 1px #dadada;
height: 21px;
text-align: center;
}
.vc-chrome-fields .vc-input__label {
text-transform: uppercase;
font-size: 11px;
line-height: 11px;
color: #969696;
text-align: center;
display: block;
margin-top: 12px;
}
.vc-chrome__disable-alpha .vc-chrome-active-color {
width: 18px;
height: 18px;
}
.vc-chrome__disable-alpha .vc-chrome-color-wrap {
width: 30px;
}
.vc-chrome__disable-alpha .vc-chrome-hue-wrap {
margin-top: 4px;
margin-bottom: 4px;
}
`,""])},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{class:["vc-chrome",t.disableAlpha?"vc-chrome__disable-alpha":""],attrs:{role:"application","aria-label":"Chrome color picker"}},[n("div",{staticClass:"vc-chrome-saturation-wrap"},[n("saturation",{on:{change:t.childChange},model:{value:t.colors,callback:function(l){t.colors=l},expression:"colors"}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-body"},[n("div",{staticClass:"vc-chrome-controls"},[n("div",{staticClass:"vc-chrome-color-wrap"},[n("div",{staticClass:"vc-chrome-active-color",style:{background:t.activeColor},attrs:{"aria-label":"current color is "+t.colors.hex}}),t._v(" "),t.disableAlpha?t._e():n("checkboard")],1),t._v(" "),n("div",{staticClass:"vc-chrome-sliders"},[n("div",{staticClass:"vc-chrome-hue-wrap"},[n("hue",{on:{change:t.childChange},model:{value:t.colors,callback:function(l){t.colors=l},expression:"colors"}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-chrome-alpha-wrap"},[n("alpha",{on:{change:t.childChange},model:{value:t.colors,callback:function(l){t.colors=l},expression:"colors"}})],1)])]),t._v(" "),t.disableFields?t._e():n("div",{staticClass:"vc-chrome-fields-wrap"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.fieldsIndex===0,expression:"fieldsIndex === 0"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[t.hasAlpha?t._e():n("ed-in",{attrs:{label:"hex",value:t.colors.hex},on:{change:t.inputChange}}),t._v(" "),t.hasAlpha?n("ed-in",{attrs:{label:"hex",value:t.colors.hex8},on:{change:t.inputChange}}):t._e()],1)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.fieldsIndex===1,expression:"fieldsIndex === 1"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"r",value:t.colors.rgba.r},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"g",value:t.colors.rgba.g},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"b",value:t.colors.rgba.b},on:{change:t.inputChange}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"a",value:t.colors.a,"arrow-offset":.01,max:1},on:{change:t.inputChange}})],1)]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.fieldsIndex===2,expression:"fieldsIndex === 2"}],staticClass:"vc-chrome-fields"},[n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"h",value:t.hsl.h},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"s",value:t.hsl.s},on:{change:t.inputChange}})],1),t._v(" "),n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"l",value:t.hsl.l},on:{change:t.inputChange}})],1),t._v(" "),t.disableAlpha?t._e():n("div",{staticClass:"vc-chrome-field"},[n("ed-in",{attrs:{label:"a",value:t.colors.a,"arrow-offset":.01,max:1},on:{change:t.inputChange}})],1)]),t._v(" "),n("div",{staticClass:"vc-chrome-toggle-btn",attrs:{role:"button","aria-label":"Change another color definition"},on:{click:t.toggleViews}},[n("div",{staticClass:"vc-chrome-toggle-icon"},[n("svg",{staticStyle:{width:"24px",height:"24px"},attrs:{viewBox:"0 0 24 24"},on:{mouseover:t.showHighlight,mouseenter:t.showHighlight,mouseout:t.hideHighlight}},[n("path",{attrs:{fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}})])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.highlight,expression:"highlight"}],staticClass:"vc-chrome-toggle-icon-highlight"})])])])])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s},function(a,o,e){function r(d){e(144)}Object.defineProperty(o,"__esModule",{value:!0});var i=e(59),s=e.n(i);for(var t in i)t!=="default"&&function(d){e.d(o,d,function(){return i[d]})}(t);var f=e(146),n=e(2),l=r,p=n(s.a,f.a,!1,l,null,null);p.options.__file="src/components/Twitter.vue",o.default=p.exports},function(a,o,e){var r=e(145);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),e(1)("669a48a5",r,!1,{})},function(a,o,e){o=a.exports=e(0)(!1),o.push([a.i,`
.vc-twitter {
background: #fff;
border: 0 solid rgba(0,0,0,0.25);
box-shadow: 0 1px 4px rgba(0,0,0,0.25);
border-radius: 4px;
position: relative;
}
.vc-twitter-triangle {
width: 0px;
height: 0px;
border-style: solid;
border-width: 0 9px 10px 9px;
border-color: transparent transparent #fff transparent;
position: absolute;
}
.vc-twitter-triangle-shadow {
width: 0px;
height: 0px;
border-style: solid;
border-width: 0 9px 10px 9px;
border-color: transparent transparent rgba(0, 0, 0, .1) transparent;
position: absolute;
}
.vc-twitter-body {
padding: 15px 9px 9px 15px;
}
.vc-twitter .vc-editable-input {
position: relative;
}
.vc-twitter .vc-editable-input input {
width: 100px;
font-size: 14px;
color: #666;
border: 0px;
outline: none;
height: 28px;
box-shadow: inset 0 0 0 1px #F0F0F0;
box-sizing: content-box;
border-radius: 0 4px 4px 0;
float: left;
padding: 1px;
padding-left: 8px;
}
.vc-twitter .vc-editable-input span {
display: none;
}
.vc-twitter-hash {
background: #F0F0F0;
height: 30px;
width: 30px;
border-radius: 4px 0 0 4px;
float: left;
color: #98A1A4;
display: flex;
align-items: center;
justify-content: center;
}
.vc-twitter-swatch {
width: 30px;
height: 30px;
float: left;
border-radius: 4px;
margin: 0 6px 6px 0;
cursor: pointer;
position: relative;
outline: none;
}
.vc-twitter-clear {
clear: both;
}
.vc-twitter-hide-triangle .vc-twitter-triangle {
display: none;
}
.vc-twitter-hide-triangle .vc-twitter-triangle-shadow {
display: none;
}
.vc-twitter-top-left-triangle .vc-twitter-triangle{
top: -10px;
left: 12px;
}
.vc-twitter-top-left-triangle .vc-twitter-triangle-shadow{
top: -11px;
left: 12px;
}
.vc-twitter-top-right-triangle .vc-twitter-triangle{
top: -10px;
right: 12px;
}
.vc-twitter-top-right-triangle .vc-twitter-triangle-shadow{
top: -11px;
right: 12px;
}
`,""])},function(a,o,e){var r=function(){var t=this,f=t.$createElement,n=t._self._c||f;return n("div",{staticClass:"vc-twitter",class:{"vc-twitter-hide-triangle ":t.triangle==="hide","vc-twitter-top-left-triangle ":t.triangle==="top-left","vc-twitter-top-right-triangle ":t.triangle==="top-right"},style:{width:typeof t.width=="number"?t.width+"px":t.width}},[n("div",{staticClass:"vc-twitter-triangle-shadow"}),t._v(" "),n("div",{staticClass:"vc-twitter-triangle"}),t._v(" "),n("div",{staticClass:"vc-twitter-body"},[t._l(t.defaultColors,function(l,p){return n("span",{key:p,staticClass:"vc-twitter-swatch",style:{background:l,boxShadow:"0 0 4px "+(t.equal(l)?l:"transparent")},on:{click:function(d){return t.handlerClick(l)}}})}),t._v(" "),n("div",{staticClass:"vc-twitter-hash"},[t._v("#")]),t._v(" "),n("editable-input",{attrs:{label:"#",value:t.hex},on:{change:t.inputChange}}),t._v(" "),n("div",{staticClass:"vc-twitter-clear"})],2)])},i=[];r._withStripped=!0;var s={render:r,staticRenderFns:i};o.a=s}])})}(bt)),bt.exports}var It=$t();Tt(Ht);const Ut={model:{event:"update:modelValue",prop:"modelValue"}},Gt=kt({...Ut,__name:"NcColorPicker",props:{advancedFields:{type:Boolean},clearable:{type:Boolean},container:{default:"body"},modelValue:{default:""},value:{default:void 0},open:{type:Boolean},palette:{default:()=>[]},paletteOnly:{type:Boolean}},emits:["submit","close","update:modelValue","update:value"],setup(z,{emit:X}){const a=z,o=St("value","update:value",!0),e=Ft(a,"open",X,{passive:!0,eventName:"update:open"}),r=/^#([a-f0-9]{3}|[a-f0-9]{6})$/i,i=At(),s=Ot(!1),t=Et(()=>{let _=a.palette;for(const v of _)if(typeof v=="string"&&!v.match(r)||typeof v=="object"&&!v.color?.match(r)){Mt.error("[NcColorPicker] Invalid palette passed",{color:v}),_=[];break}return _.length===0&&(_=a.clearable?[...mt,_t,wt]:[...mt]),_.map(v=>({color:typeof v=="object"?v.color:v,name:typeof v=="object"&&v.name?v.name:xt("A color with a HEX value {hex}",{hex:typeof v=="string"?v:v.color})}))});function f(_){X("submit",o.value),_(),s.value=!1}function n(_){_=typeof _=="string"?_:_.color,a.clearable&&o.value===_?o.value=void 0:o.value=_}function l(_){o.value=_.hex}function p(_){return d(_)>.5?_t.color:wt.color}function d(_){const[v,y,w]=b(_);return(.2126*v+.7152*y+.0722*w)/255}function b(_){const v=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(_);return v?[parseInt(v[1],16),parseInt(v[2],16),parseInt(v[3],16)]:[0,0,0]}return{__sfc:!0,props:a,emit:X,currentColor:o,modelOpen:e,HEX_REGEX:r,id:i,advanced:s,normalizedPalette:t,handleConfirm:f,toggleColor:n,pickCustomColor:l,getContrastColor:p,calculateLuma:d,hexToRGB:b,mdiArrowLeft:Rt,mdiCheck:Nt,mdiCloseCircleOutline:Dt,mdiDotsHorizontal:Bt,Chrome:It.Chrome,NcButton:Pt,NcIconSvgWrapper:Lt,NcPopover:jt,t:xt}}});var Vt=function(){var z=this,X=z._self._c,a=z._self._setupProxy;return X(a.NcPopover,z._g(z._b({attrs:{shown:a.modelOpen,container:z.container,"popup-role":"dialog"},on:{"update:shown":function(o){a.modelOpen=o},"apply-hide":function(o){return a.emit("close")}},scopedSlots:z._u([{key:"trigger",fn:function(o){return[z._t("default",null,null,o)]}},{key:"default",fn:function(o){return[X("div",{staticClass:"color-picker",class:{"color-picker--advanced-fields":a.advanced&&z.advancedFields,"color-picker--clearable":z.clearable},attrs:{role:"dialog","aria-modal":"true","aria-label":a.t("Color picker")}},[X("Transition",{attrs:{name:"slide",mode:"out-in"}},[a.advanced?X(a.Chrome,{staticClass:"color-picker__advanced",attrs:{"disable-alpha":!0,"disable-fields":!z.advancedFields,value:a.currentColor??"#000000"},on:{input:a.pickCustomColor}}):X("div",{staticClass:"color-picker__simple"},[z._l(a.normalizedPalette,function({color:e,name:r},i){return X("label",{key:i,staticClass:"color-picker__simple-color-circle",class:{"color-picker__simple-color-circle--active":e===a.currentColor},style:{backgroundColor:e,color:a.getContrastColor(e)}},[X("span",{staticClass:"hidden-visually"},[z._v(" "+z._s(e)+" -- "+z._s(a.currentColor)+" ")]),e===a.currentColor?X(a.NcIconSvgWrapper,{attrs:{path:a.mdiCheck}}):z._e(),X("input",{staticClass:"hidden-visually",attrs:{type:"radio","aria-label":r,name:`color-picker-${a.id}`},domProps:{checked:e===a.currentColor},on:{click:function(s){return a.toggleColor(e)}}})],1)}),z.clearable?X("label",{staticClass:"color-picker__clear",attrs:{title:a.t("No color")}},[X(a.NcIconSvgWrapper,{attrs:{size:a.currentColor?28:34,path:a.mdiCloseCircleOutline}}),X("input",{staticClass:"hidden-visually",attrs:{type:"radio","aria-label":a.t("No color"),name:`color-picker-${a.id}`},domProps:{checked:!a.currentColor},on:{click:function(e){a.currentColor=void 0}}})],1):z._e()],2)],1),z.paletteOnly?z._e():X("div",{staticClass:"color-picker__navigation"},[a.advanced?X(a.NcButton,{attrs:{"aria-label":a.t("Back"),title:a.t("Back"),variant:"tertiary"},on:{click:function(e){a.advanced=!1}},scopedSlots:z._u([{key:"icon",fn:function(){return[X(a.NcIconSvgWrapper,{attrs:{directional:"",path:a.mdiArrowLeft}})]},proxy:!0}],null,!0)}):X(a.NcButton,{attrs:{"aria-label":a.t("More options"),title:a.t("More options"),variant:"tertiary"},on:{click:function(e){a.advanced=!0}},scopedSlots:z._u([{key:"icon",fn:function(){return[X(a.NcIconSvgWrapper,{attrs:{path:a.mdiDotsHorizontal}})]},proxy:!0}],null,!0)}),X(a.NcButton,{attrs:{variant:"primary"},on:{click:function(e){return a.handleConfirm(o.hide)}}},[z._v(" "+z._s(a.t("Choose"))+" ")])],1)],1)]}}],null,!0)},"NcPopover",z.$attrs,!1),z.$listeners))},Wt=[],Xt=Ct(Gt,Vt,Wt,!1,null,"01d41e75");const Jt=Xt.exports;export{Jt as default};
//# sourceMappingURL=NcColorPicker-CaTCRl11.chunk.mjs.map