!function(){var t={};t=React;var e=e=>{let{control:o,customizerSetting:n,choices:i}=e,[a,r]=(0,t.useState)(e.value);o.updateComponentState=t=>{r(t)};let c=t=>{n.set(t.target.title)},l=i.size+2;return React.createElement("div",{className:"kirki-control-form",tabIndex:"1"},React.createElement("label",{className:"kirki-control-label"},React.createElement("span",{className:"customize-control-title"},e.label),React.createElement("span",{className:"customize-control-description description",dangerouslySetInnerHTML:{__html:e.description}})),React.createElement("div",{className:"customize-control-notifications-container",ref:e.setNotificationContainer}),React.createElement("button",{type:"button",className:"kirki-control-reset",onClick:()=>{""!==e.default&&void 0!==e.default?n.set(e.default):n.set(e.value)}},React.createElement("i",{className:"dashicons dashicons-image-rotate"})),React.createElement("ul",{className:"kirki-colors kirki-"+i.shape+"-colors"},i.colors.map((t,e)=>{let o=t===a?"kirki-color is-selected":"kirki-color";return React.createElement("li",{key:e.toString(),className:o,style:{width:l+"px",height:l+"px"}},React.createElement("div",{title:t,style:{backgroundColor:t},onClick:c}))})))};function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)({}).hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t}).apply(null,arguments)}let n=wp.customize.Control.extend({initialize:function(t,e){let o=this;o.setNotificationContainer=o.setNotificationContainer.bind(o),wp.customize.Control.prototype.initialize.call(o,t,e),wp.customize.control.bind("removed",function t(e){o===e&&(o.destroy(),o.container[0]&&o.container[0].remove?o.container[0].remove():o.container[0]&&o.container[0].parentNode&&o.container[0].parentNode.removeChild(o.container[0]),wp.customize.control.unbind("removed",t))})},setNotificationContainer:function(t){this.notifications.container=t,this.notifications.render()},renderContent:function(){var t;let n=React.createElement(e,o({},this.params,{control:this,customizerSetting:this.setting,setNotificationContainer:this.setNotificationContainer,value:this.params.value}));t=this.container[0],t&&(wp.element.createRoot?wp.element.createRoot(t).render(wp.element.reactNode):wp.element.render(n,t)),!1!==this.params.choices.allowCollapse&&this.container[0].classList.add("allowCollapse")},ready:function(){let t=this;t.setting.bind(e=>{t.updateComponentState(e)})},updateComponentState:t=>{},destroy:function(){ReactDOM.unmountComponentAtNode(this.container[0]),wp.customize.Control.prototype.destroy&&wp.customize.Control.prototype.destroy.call(this)}});wp.customize.controlConstructor["kirki-color-palette"]=n}();