(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{476:function(t,e,o){var content=o(487);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(12).default)("15cfd218",content,!0,{sourceMap:!1})},480:function(t,e,o){"use strict";o.r(e);o(20);var r=o(0).a.extend({props:{value:String,clearable:Boolean},data:function(){return{colorValue:""}},watch:{value:function(t){this.colorValue=t||""},colorValue:function(t){t?/^#[0-9A-F]{6}$/i.test(t)&&this.$emit("input",t):this.$emit("input",null)}},created:function(){this.colorValue=this.value},methods:{selectColor:function(t){this.colorValue=t}}}),l=(o(486),o(2)),component=Object(l.a)(r,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"color-selector"},[o("w-input",{staticClass:"color-selector__input",attrs:{placeholder:"#000000","inner-icon-left":"mdi mdi-eyedropper-variant",color:"gray"},model:{value:t.colorValue,callback:function(e){t.colorValue=e},expression:"colorValue"}}),t._v(" "),o("div",{staticClass:"color-selector__palette"},t._l(t.$store.state.config.colorPalette,(function(e){return o("div",{key:e,staticClass:"color-selector__palette-color",style:{backgroundColor:e},on:{click:function(o){return t.selectColor(e)}}},[o("w-transition-scale-fade",[e==t.value?o("w-icon",[t._v("\n\t\t\t\t\tmdi mdi-check\n\t\t\t\t")]):t._e()],1)],1)})),0),t._v(" "),t.clearable?o("w-button",{attrs:{icon:"mdi mdi-cancel","bg-color":"error",max:7},on:{click:function(e){return t.$emit("input","")}}}):t._e()],1)}),[],!1,null,null,null);e.default=component.exports},486:function(t,e,o){"use strict";o(476)},487:function(t,e,o){var r=o(11)(!1);r.push([t.i,".color-selector{display:flex;align-items:center;grid-gap:.5rem;gap:.5rem;flex-wrap:wrap}.color-selector__input{max-width:110px;padding:0;margin:0}.color-selector__palette{display:flex;grid-gap:.5rem;gap:.5rem;flex-wrap:wrap}.color-selector__palette-color{border-radius:9999px;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;height:1.5rem;aspect-ratio:1/1;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#fff}",""]),t.exports=r}}]);