(("undefined"!==typeof self?self:this)["webpackJsonpwebform_plugin"]=("undefined"!==typeof self?self:this)["webpackJsonpwebform_plugin"]||[]).push([[4,8],{"0437":function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{ref:"colorpicker",staticClass:"input-group color-picker"},[o("span",{staticClass:"current-color",style:{"background-color":t.colorValue},on:{click:function(e){return t.togglePicker()}}}),t.displayPicker?o("chrome-picker",{attrs:{value:t.colors},on:{input:t.updateFromPicker}}):t._e()],1)},i=[],c=(o("fb6a"),o("ac1f"),o("1276"),o("5319"),o("d3b7"),o("25f0"),o("c345")),l={name:"colorpicker",props:["color"],components:{"chrome-picker":c["Chrome"]},data:function(){return{colors:{hex:"#000000"},colorValue:"",displayPicker:!1}},mounted:function(){this.setColor(this.color||"#000000")},methods:{setColor:function(t){this.updateColors(t),this.colorValue=t},updateColors:function(t){if("#"==t.slice(0,1))this.colors={hex:t};else if("rgba"==t.slice(0,4)){var e=t.replace(/^rgba?\(|\s+|\)$/g,"").split(","),o="#"+((1<<24)+(parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).slice(1);this.colors={hex:o,a:e[3]}}},showPicker:function(){document.addEventListener("click",this.documentClick),this.displayPicker=!0},hidePicker:function(){document.removeEventListener("click",this.documentClick),this.displayPicker=!1},togglePicker:function(){this.displayPicker?this.hidePicker():this.showPicker()},updateFromInput:function(){this.updateColors(this.colorValue)},updateFromPicker:function(t){this.colors=t,1==t.rgba.a?this.colorValue=t.hex:this.colorValue="rgba("+t.rgba.r+", "+t.rgba.g+", "+t.rgba.b+", "+t.rgba.a+")"},documentClick:function(t){var e=this.$refs.colorpicker,o=t.target;e===o||e.contains(o)||this.hidePicker()}},watch:{colorValue:function(t){t&&(this.updateColors(t),this.$emit("input",t))}}},s=l,n=(o("6132"),o("2877")),a=Object(n["a"])(s,r,i,!1,null,null,null);e["default"]=a.exports},"0644":function(t,e,o){var r=o("091f");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=o("499e").default;i("557e2e3d",r,!0,{sourceMap:!1,shadowMode:!1})},"091f":function(t,e,o){var r=o("24fb");e=r(!1),e.push([t.i,".current-color{display:inline-block;width:25px;height:25px;background-color:#000;cursor:pointer;border:1px solid #ccc}.vc-chrome{position:absolute;right:0;top:35px;z-index:9}.right-45>.vc-chrome{right:-100px!important}",""]),t.exports=e},5622:function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticStyle:{"padding-bottom":"10px"}},[o("div",{staticClass:"vb-body-right-option pointer option-head"},[t._v("Color")]),o("div",{staticClass:"container"},[o("div",{staticClass:"row"},[t.widgetStyle.textcolor?o("div",{staticClass:"col-md-6"},[t._m(0),o("ColorPicker",{staticClass:"right-45",attrs:{color:t.widgetStyle.textcolor},model:{value:t.widgetStyle.textcolor,callback:function(e){t.$set(t.widgetStyle,"textcolor",e)},expression:"widgetStyle.textcolor"}})],1):t._e(),t.widgetStyle.backgroundcolor?o("div",{staticClass:"col-md-6"},[t._m(1),o("div",[o("ColorPicker",{attrs:{color:t.widgetStyle.backgroundcolor},model:{value:t.widgetStyle.backgroundcolor,callback:function(e){t.$set(t.widgetStyle,"backgroundcolor",e)},expression:"widgetStyle.backgroundcolor"}})],1)]):t._e()]),o("div",{staticClass:"row"},[t.widgetStyle.texthovercolor?o("div",{staticClass:"col-md-6"},[t._m(2),o("ColorPicker",{staticClass:"right-45",attrs:{color:t.widgetStyle.texthovercolor},model:{value:t.widgetStyle.texthovercolor,callback:function(e){t.$set(t.widgetStyle,"texthovercolor",e)},expression:"widgetStyle.texthovercolor"}})],1):t._e()])])])},i=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("span",{staticClass:"font-12 right-45"},[t._v("Text Color")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("span",{staticClass:"font-12"},[t._v("Background Color")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("span",{staticClass:"font-12 right-45"},[t._v("Hover Color")])])}],c=o("0437"),l={props:{widgetStyle:Object},components:{ColorPicker:c["default"]},data:function(){return{}}},s=l,n=o("2877"),a=Object(n["a"])(s,r,i,!1,null,null,null);e["default"]=a.exports},6132:function(t,e,o){"use strict";o("0644")}}]);
//# sourceMappingURL=webform-plugin.umd.min.4.js.map