index.js
1 lines
| 1 | !function(){"use strict";var e,r,t,o,n,i,s,c={7005:function(e,r,t){var o=t(1609),n=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};r.jsx=function(e,r,t){var o,a={},l=null,p=null;for(o in void 0!==t&&(l=""+t),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(p=r.ref),r)i.call(r,o)&&!c.hasOwnProperty(o)&&(a[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===a[o]&&(a[o]=r[o]);return{$$typeof:n,type:e,key:l,ref:p,props:a,_owner:s.current}}},9255:function(e,r,t){e.exports=t(7005)},1609:function(e){e.exports=window.React}},a={};e=window.wp.blocks,r=window.wp.primitives,t=function e(r){var t=a[r];if(void 0!==t)return t.exports;var o=a[r]={exports:{}};return c[r](o,o.exports,e),o.exports}(9255),o=(0,t.jsx)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,t.jsx)(r.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"})}),n=window.wp.blockEditor,i=window.wp.i18n,s=JSON.parse('{"UU":"surecart/product-quantity-input-decrease"}'),(0,e.registerBlockType)(s.UU,{edit:()=>{const e=(0,n.useBlockProps)({role:"button",tabIndex:"0","aria-label":(0,i.__)("Decrease quantity by one.","surecart")});return React.createElement("div",e,React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},React.createElement("line",{x1:"5",y1:"12",x2:"19",y2:"12"})))},icon:o})}(); |