!function(){"use strict";var e,t={7005:function(e,t,r){var n=r(1609),o=Symbol.for("react.element"),s=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),i=n.__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 n,l={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,n)&&!a.hasOwnProperty(n)&&(l[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===l[n]&&(l[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:l,_owner:i.current}}},9255:function(e,t,r){e.exports=r(7005)},375:function(e,t,r){var n=window.wp.blocks,o=window.wp.primitives,s=r(9255),i=(0,s.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(o.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),a=window.wp.i18n,l=window.wp.blockEditor,c=r(1609),u=r.n(c);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(null,arguments)}function p(e){let{name:t,...r}=e;const[n,o]=(0,c.useState)(null),s=window?.scData?.plugin_url+"/dist/icon-assets",i=/^[a-zA-Z0-9_-]+$/.test(t);if((0,c.useEffect)((()=>{i&&fetch(`${s}/${t}.svg`).then((e=>e.text())).then((e=>{const t=(new DOMParser).parseFromString(e,"image/svg+xml"),r=t?.documentElement;"svg"===r?.tagName?.toLowerCase()&&o(r)})).catch(console.error)}),[t,i]),!n)return null;const a=n.cloneNode(!0),l={fill:"fill",stroke:"stroke",strokeWidth:"stroke-width",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeOpacity:"stroke-opacity",strokeMiterlimit:"stroke-miterlimit",fillOpacity:"fill-opacity",fillRule:"fill-rule"},p={},d={};Object.entries(r).forEach((e=>{let[t,r]=e;l[t]?p[l[t]]=r:d[t]=r})),Object.keys(p).length>0&&a.querySelectorAll("path, circle, rect, ellipse, line, polyline, polygon").forEach((e=>{Object.entries(p).forEach((t=>{let[r,n]=t;null!=n&&e.setAttribute(r,n)}))})),Object.entries(p).forEach((e=>{let[t,r]=e;null!=r&&a.setAttribute(t,r)})),Object.entries(d).forEach((e=>{let[t,r]=e;if(null!=r){const e="className"===t?"class":t;a.setAttribute(e,r)}}));const v={};for(const e of a.attributes)v["class"===e.name?"className":e.name]=e.value;return u().createElement("svg",f({},v,{dangerouslySetInnerHTML:{__html:a.innerHTML}}))}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(null,arguments)}var v=JSON.parse('{"UU":"surecart/cart-order-bump-add-button"}');(0,n.registerBlockType)(v.UU,{icon:i,edit:()=>{const e=(0,l.useBlockProps)({className:"sc-cart-order-bump-add-button"});return React.createElement("div",d({},e,{role:"button",tabIndex:"0"}),React.createElement(p,{name:"plus"}))},__experimentalLabel:()=>(0,a.__)("Add Button","surecart")})},1609:function(e){e.exports=window.React}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var s=r[e]={exports:{}};return t[e](s,s.exports,n),s.exports}n.m=t,e=[],n.O=function(t,r,o,s){if(!r){var i=1/0;for(u=0;u<e.length;u++){r=e[u][0],o=e[u][1],s=e[u][2];for(var a=!0,l=0;l<r.length;l++)(!1&s||i>=s)&&Object.keys(n.O).every((function(e){return n.O[e](r[l])}))?r.splice(l--,1):(a=!1,s<i&&(i=s));if(a){e.splice(u--,1);var c=o();void 0!==c&&(t=c)}}return t}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[r,o,s]},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={7132:0,8564:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,s,i=r[0],a=r[1],l=r[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(l)var u=l(n)}for(t&&t(r);c<i.length;c++)s=i[c],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return n.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 o=n.O(void 0,[8564],(function(){return n(375)}));o=n.O(o)}();