!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,i={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var o,c={},p=null,s=null;for(o in void 0!==r&&(p=""+r),void 0!==t.key&&(p=""+t.key),void 0!==t.ref&&(s=t.ref),t)a.call(t,o)&&!i.hasOwnProperty(o)&&(c[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===c[o]&&(c[o]=t[o]);return{$$typeof:n,type:e,key:p,ref:s,props:c,_owner:l.current}}},9255:function(e,t,r){e.exports=r(7005)},7492:function(e,t,r){var o=window.wp.blocks,n=window.wp.primitives,a=r(9255),l=(0,a.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(n.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"})}),i=window.wp.blockEditor,c=window.wp.components,p=window.wp.i18n;const s=[["core/group",{style:{spacing:{margin:{bottom:"0.75em"}}},layout:{type:"flex",flexWrap:"nowrap",justifyContent:"space-between",verticalAlignment:"center"}},[["core/paragraph",{style:{typography:{fontStyle:"normal",fontWeight:"500"},spacing:{margin:{top:"0",bottom:"0"}}},content:(0,p.__)("Suggested for you","surecart")}],["surecart/cart-order-bump-pagination",{style:{spacing:{blockGap:"0.25em"}}},[["surecart/cart-order-bump-pagination-previous",{}],["surecart/cart-order-bump-pagination-next",{}]]]]],["surecart/cart-order-bump-template",{style:{spacing:{blockGap:"0.75em"}},layout:{type:"flex"}},[["core/group",{style:{border:{radius:"12px",width:"1px",color:"#e0e0e0"},spacing:{padding:{top:"0.75em",bottom:"0.75em",left:"0.75em",right:"1em"}},layout:{selfStretch:"fill",flexSize:null}},layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"center"}},[["surecart/cart-order-bump-image",{width:"72px",style:{border:{radius:"8px"},layout:{selfStretch:"fixed",flexSize:"72px"}}}],["core/group",{style:{layout:{selfStretch:"fill",flexSize:null},spacing:{blockGap:"2px"}},layout:{type:"flex",orientation:"vertical"}},[["surecart/cart-order-bump-title",{style:{typography:{fontSize:"15px",fontStyle:"normal",fontWeight:"600",lineHeight:"1.3"}}}],["surecart/cart-order-bump-description",{style:{typography:{fontSize:"13px",lineHeight:"1.3"},color:{text:"#6b7280"}}}],["core/group",{style:{spacing:{blockGap:"4px"}},layout:{type:"flex",flexWrap:"nowrap"}},[["surecart/cart-order-bump-scratch-amount",{style:{typography:{fontSize:"14px"}}}],["surecart/cart-order-bump-amount",{style:{typography:{fontSize:"14px",fontWeight:"500"}}}]]]]],["surecart/cart-order-bump-add-button",{style:{typography:{fontSize:"18px",fontWeight:"400",fontStyle:"normal"},border:{radius:{topLeft:"74.6%",topRight:"74.6%",bottomLeft:"74.6%",bottomRight:"74.6%"},width:"1px",color:"#d1d5db"},spacing:{padding:{top:"0.5em",bottom:"0.5em",left:"0.5em",right:"0.5em"}}}}]]]]]];var u=JSON.parse('{"UU":"surecart/cart-order-bumps"}');(0,o.registerBlockType)(u.UU,{icon:l,edit:e=>{let{attributes:t,setAttributes:r}=e;const{hideAddedItems:o}=t,n=(0,i.useBlockProps)(),a=(0,i.useInnerBlocksProps)(n,{template:s});return React.createElement(React.Fragment,null,React.createElement(i.InspectorControls,null,React.createElement(c.PanelBody,{title:(0,p.__)("Settings","surecart")},React.createElement(c.ToggleControl,{label:(0,p.__)("Hide added items","surecart"),help:(0,p.__)("When enabled, items already added to cart will be hidden from the recommendations.","surecart"),checked:o,onChange:e=>r({hideAddedItems:e})}))),React.createElement("div",a))},save:function(){return React.createElement(i.InnerBlocks.Content,null)}})},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(s=0;s<e.length;s++){r=e[s][0],n=e[s][1],a=e[s][2];for(var i=!0,c=0;c<r.length;c++)(!1&a||l>=a)&&Object.keys(o.O).every((function(e){return o.O[e](r[c])}))?r.splice(c--,1):(i=!1,a<l&&(l=a));if(i){e.splice(s--,1);var p=n();void 0!==p&&(t=p)}}return t}a=a||0;for(var s=e.length;s>0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[r,n,a]},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={3468:0,8052:0};o.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,a,l=r[0],i=r[1],c=r[2],p=0;if(l.some((function(t){return 0!==e[t]}))){for(n in i)o.o(i,n)&&(o.m[n]=i[n]);if(c)var s=c(o)}for(t&&t(r);p<l.length;p++)a=l[p],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(s)},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,[8052],(function(){return o(7492)}));n=o.O(n)}();