!function(){"use strict";var e,t={7005:function(e,t,r){var o=r(1609),n=Symbol.for("react.element"),c=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),l=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var o,s={},i=null,u=null;for(o in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(u=t.ref),t)c.call(t,o)&&!a.hasOwnProperty(o)&&(s[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===s[o]&&(s[o]=t[o]);return{$$typeof:n,type:e,key:i,ref:u,props:s,_owner:l.current}}},9255:function(e,t,r){e.exports=r(7005)},9855:function(e,t,r){var o=window.wp.blocks,n=window.wp.primitives,c=r(9255),l=(0,c.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,c.jsx)(n.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"})}),a=window.wp.i18n,s=window.wp.blockEditor,i=window.wp.components,u=JSON.parse('{"UU":"surecart/product-quantity"}');(0,o.registerBlockType)(u.UU,{edit:e=>{let{attributes:t,setAttributes:r}=e;const{label:o}=t,{style:n}=(0,s.__experimentalUseBorderProps)(t),{style:c}=(0,s.__experimentalUseColorProps)(t),l=(0,s.useBlockProps)({style:{display:"block",...c?.color?{"--sc-input-label-color":c.color,"--sc-focus-ring-color-primary":c.color,"--sc-input-border-color-focus":c.color}:{}}});return React.createElement(React.Fragment,null,React.createElement(s.InspectorControls,null,React.createElement(i.PanelBody,{title:(0,a.__)("Attributes","surecart")},React.createElement(i.PanelRow,null,React.createElement(i.TextControl,{label:(0,a.__)("Label","surecart"),value:o,onChange:e=>r({label:e})})))),React.createElement("div",l,React.createElement("label",{className:"sc-form-label"},o),React.createElement("div",{className:"sc-input-group sc-quantity-selector",style:{...n?.borderRadius?{"border-radius":n.borderRadius}:{}}},React.createElement("div",{className:"sc-input-group-text sc-quantity-selector__decrease"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},React.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}))),React.createElement("input",{className:"sc-form-control sc-quantity-selector__control",value:0,type:"number"}),React.createElement("div",{className:"sc-input-group-text sc-quantity-selector__increase"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},React.createElement("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),React.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"}))))))},icon:l})},1609:function(e){e.exports=window.React}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var c=r[e]={exports:{}};return t[e](c,c.exports,o),c.exports}o.m=t,e=[],o.O=function(t,r,n,c){if(!r){var l=1/0;for(u=0;u<e.length;u++){r=e[u][0],n=e[u][1],c=e[u][2];for(var a=!0,s=0;s<r.length;s++)(!1&c||l>=c)&&Object.keys(o.O).every((function(e){return o.O[e](r[s])}))?r.splice(s--,1):(a=!1,c<l&&(l=c));if(a){e.splice(u--,1);var i=n();void 0!==i&&(t=i)}}return t}c=c||0;for(var u=e.length;u>0&&e[u-1][2]>c;u--)e[u]=e[u-1];e[u]=[r,n,c]},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={4600:0,6464:0};o.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,c,l=r[0],a=r[1],s=r[2],i=0;if(l.some((function(t){return 0!==e[t]}))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);if(s)var u=s(o)}for(t&&t(r);i<l.length;i++)c=l[i],o.o(e,c)&&e[c]&&e[c][0](),e[c]=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,[6464],(function(){return o(9855)}));n=o.O(n)}();