"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["AdminSettingProductsColorAddToCart-admin"],{"31mL":function(o,t,e){var n=e("oYSA"),a=e("ALIA"),l=e("qZpH"),p={name:"149qvms-CustomColorPickerCSS",styles:"margin-bottom:0!important;position:relative;.components-base-control__label{left:-9px;color:black;padding:3px 10px;margin-top:15px;position:relative;top:-24px;display:inline-block;}.component-color-indicator{margin-top:38px;right:0!important;}.components-color-palette__custom-color{align-items:center!important;}.components-circular-option-picker__dropdown-link-action .components-button{right:35px;top:1px;position:relative;};label:CustomColorPickerCSS;"},r={name:"13ned5d-stylesInner",styles:"margin-top:0;top:-25px;position:relative;padding-left:0;margin-bottom:-10px;label:stylesInner;"};t.Z=wp.element.memo((function(o){var t=o.settingName,e=o.help,i=void 0!==e&&e,s=o.label,c=void 0!==s&&s,m=React,d=m.useContext,u=m.useState,C=wp.components,b=C.ColorPalette,g=C.BaseControl,h=C.ColorIndicator,k=d(a.Z),v=(0,n.Z)(k,2),w=v[0],f=v[1],x=u(!1),Z=(0,n.Z)(x,2),_=Z[0],y=(Z[1],r),S=p;return(0,l.tZ)(g,{help:i,label:c,className:[_&&"shopwp-is-open","shopwp-color-picker"],css:S},w[t]&&(0,l.tZ)(h,{colorValue:w[t]}),(0,l.tZ)(b,{css:y,colors:[],value:w[t],onChange:function(o){f({type:"UPDATE_SETTING",payload:{key:t,value:o}})},clearable:!1}))}))},wqpf:function(o,t,e){e.r(t);var n=e("31mL");t.default=function(){return React.createElement(n.Z,{settingName:"addToCartColor",label:wp.i18n.__("Add to cart buttons","shopwp")})}}}]);