!function(){"use strict";var e,t={7005:function(e,t,r){var o=r(1609),n=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var o,i={},s=null,u=null;for(o in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,o)&&!c.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:n,type:e,key:s,ref:u,props:i,_owner:l.current}}},9255:function(e,t,r){e.exports=r(7005)},6207:function(e,t,r){var o=window.wp.blocks,n=window.wp.primitives,a=r(9255),l=(0,a.jsx)(n.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)(n.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})}),c=window.wp.i18n,i=window.wp.blockEditor,s=e=>{let{attributes:t}=e;if(!t)return{};const{border:r,textColor:o,backgroundColor:n,padding:a}=t;return{...r?{borderBottom:"var(--sc-drawer-border)"}:{},...n?{backgroundColor:n}:{},...o?{color:o}:{color:"var(--sc-input-label-color)"},...a?.top?{paddingTop:a?.top}:{},...a?.bottom?{paddingBottom:a?.bottom}:{},...a?.left?{paddingLeft:a?.left}:{},...a?.right?{paddingRight:a?.right}:{}}},u=window.wp.components,d=e=>{let{attributes:t,setAttributes:r}=e;const{backgroundColor:o,textColor:n,padding:a,border:l}=t;return React.createElement(React.Fragment,null,React.createElement(i.PanelColorSettings,{title:(0,c.__)("Color Settings"),colorSettings:[{value:o,onChange:e=>r({backgroundColor:e}),label:(0,c.__)("Background Color","surecart")},{value:n,onChange:e=>r({textColor:e}),label:(0,c.__)("Text Color","surecart")}]}),React.createElement(u.PanelBody,{title:(0,c.__)("Spacing","surecart")},React.createElement(u.__experimentalBoxControl,{label:(0,c.__)("Padding","surecart"),values:a,resetValues:{top:"1.25em",right:"1.25em",bottom:"1.25em",left:"1.25em"},onChange:e=>r({padding:e})})),React.createElement(u.PanelBody,{title:(0,c.__)("Border","surecart")},React.createElement(u.PanelRow,null,React.createElement(u.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Bottom Border","surecart"),checked:l,onChange:e=>r({border:e})}))))},p=JSON.parse('{"UU":"surecart/slide-out-cart-message"}');(0,o.registerBlockType)(p.UU,{icon:l,edit:e=>{let{attributes:t,setAttributes:r}=e;const{text:o}=t,n=(0,i.useBlockProps)({style:{...s({attributes:t})}});return React.createElement(React.Fragment,null,React.createElement(i.InspectorControls,null,React.createElement(d,{attributes:t,setAttributes:r})),React.createElement("div",n,React.createElement(i.RichText,{"aria-label":(0,c.__)("Message Text","surecart"),placeholder:(0,c.__)("I.E. Free shipping on all orders…","surecart"),value:o,onChange:e=>r({text:e}),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/strikethrough"]})))}})},1609:function(e){e.exports=window.React}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=function(t,r,n,a){if(!r){var l=1/0;for(u=0;u<e.length;u++){r=e[u][0],n=e[u][1],a=e[u][2];for(var c=!0,i=0;i<r.length;i++)(!1&a||l>=a)&&Object.keys(o.O).every((function(e){return o.O[e](r[i])}))?r.splice(i--,1):(c=!1,a<l&&(l=a));if(c){e.splice(u--,1);var s=n();void 0!==s&&(t=s)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,n,a]},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={7461:0,25:0};o.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,a,l=r[0],c=r[1],i=r[2],s=0;if(l.some((function(t){return 0!==e[t]}))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);if(i)var u=i(o)}for(t&&t(r);s<l.length;s++)a=l[s],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(u)},r=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var n=o.O(void 0,[25],(function(){return o(6207)}));n=o.O(n)}();