!function(){"use strict";var t,e={7005:function(t,e,r){var n=r(1609),o=Symbol.for("react.element"),c=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};e.jsx=function(t,e,r){var n,a={},s=null,l=null;for(n in void 0!==r&&(s=""+r),void 0!==e.key&&(s=""+e.key),void 0!==e.ref&&(l=e.ref),e)c.call(e,n)&&!u.hasOwnProperty(n)&&(a[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===a[n]&&(a[n]=e[n]);return{$$typeof:o,type:t,key:s,ref:l,props:a,_owner:i.current}}},9255:function(t,e,r){t.exports=r(7005)},3472:function(t,e,r){var n=window.wp.blocks,o=window.wp.primitives,c=r(9255),i=(0,c.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,c.jsx)(o.Path,{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})}),u=window.wp.i18n,a=window.wp.blockEditor,s=window.wp.components,l=JSON.parse('{"UU":"surecart/product-quantity-control"}');(0,n.registerBlockType)(l.UU,{edit:t=>{let{attributes:e,setAttributes:r}=t;const{width:n}=e,o=(0,a.useBlockProps)({style:{...n?{"min-width":n}:void 0}}),c=(0,a.useInnerBlocksProps)(o,{allowedBlocks:["surecart/product-quantity-input-decrease","surecart/product-quantity-input","surecart/product-quantity-input-increase"],template:[["surecart/product-quantity-input-decrease",{}],["surecart/product-quantity-input",{}],["surecart/product-quantity-input-increase",{}]],templateLock:!1});return React.createElement(React.Fragment,null,React.createElement(a.InspectorControls,null,React.createElement(s.PanelBody,{title:(0,u.__)("Settings","surecart")},React.createElement(s.__experimentalUnitControl,{label:(0,u.__)("Width","surecart"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:t=>{t=0>parseFloat(t)?"0":t,r({width:t})}}))),React.createElement("div",c))},icon:i,save:function(){return React.createElement(a.InnerBlocks.Content,null)}})},1609:function(t){t.exports=window.React}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var c=r[t]={exports:{}};return e[t](c,c.exports,n),c.exports}n.m=e,t=[],n.O=function(e,r,o,c){if(!r){var i=1/0;for(l=0;l<t.length;l++){r=t[l][0],o=t[l][1],c=t[l][2];for(var u=!0,a=0;a<r.length;a++)(!1&c||i>=c)&&Object.keys(n.O).every((function(t){return n.O[t](r[a])}))?r.splice(a--,1):(u=!1,c<i&&(i=c));if(u){t.splice(l--,1);var s=o();void 0!==s&&(e=s)}}return e}c=c||0;for(var l=t.length;l>0&&t[l-1][2]>c;l--)t[l]=t[l-1];t[l]=[r,o,c]},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var t={9388:0,676:0};n.O.j=function(e){return 0===t[e]};var e=function(e,r){var o,c,i=r[0],u=r[1],a=r[2],s=0;if(i.some((function(e){return 0!==t[e]}))){for(o in u)n.o(u,o)&&(n.m[o]=u[o]);if(a)var l=a(n)}for(e&&e(r);s<i.length;s++)c=i[s],n.o(t,c)&&t[c]&&t[c][0](),t[c]=0;return n.O(l)},r=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}();var o=n.O(void 0,[676],(function(){return n(3472)}));o=n.O(o)}();