!function(){"use strict";var e,t={3892:function(e,t,r){var n=window.wp.blocks,o=(window.wp.i18n,window.wp.blockEditor),s=window.React,a=r.n(s);function c(){return c=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},c.apply(null,arguments)}function i(e){let{name:t,...r}=e;const[n,o]=(0,s.useState)(null),i=window?.scData?.plugin_url+"/dist/icon-assets",l=/^[a-zA-Z0-9_-]+$/.test(t);if((0,s.useEffect)((()=>{l&&fetch(`${i}/${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,l]),!n)return null;const u=n.cloneNode(!0),f={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={},h={};Object.entries(r).forEach((e=>{let[t,r]=e;f[t]?p[f[t]]=r:h[t]=r})),Object.keys(p).length>0&&u.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&&u.setAttribute(t,r)})),Object.entries(h).forEach((e=>{let[t,r]=e;if(null!=r){const e="className"===t?"class":t;u.setAttribute(e,r)}}));const v={};for(const e of u.attributes)v["class"===e.name?"className":e.name]=e.value;return a().createElement("svg",c({},v,{dangerouslySetInnerHTML:{__html:u.innerHTML}}))}var l=JSON.parse('{"UU":"surecart/cart-icon"}');(0,n.registerBlockType)(l.UU,{edit:()=>{const e=(0,o.useBlockProps)({style:{fontSize:"16px",fontFamily:"var(--sc-font-sans)"}});return React.createElement("div",null,React.createElement("a",e,React.createElement("div",{class:"sc-cart-icon"},React.createElement(i,{name:"shopping-bag"})),React.createElement("span",{class:"sc-cart-count"},"2")))}})}},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 a=1/0;for(u=0;u<e.length;u++){r=e[u][0],o=e[u][1],s=e[u][2];for(var c=!0,i=0;i<r.length;i++)(!1&s||a>=s)&&Object.keys(n.O).every((function(e){return n.O[e](r[i])}))?r.splice(i--,1):(c=!1,s<a&&(a=s));if(c){e.splice(u--,1);var l=o();void 0!==l&&(t=l)}}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={4345:0,6717:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,s,a=r[0],c=r[1],i=r[2],l=0;if(a.some((function(t){return 0!==e[t]}))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(i)var u=i(n)}for(t&&t(r);l<a.length;l++)s=a[l],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,[6717],(function(){return n(3892)}));o=n.O(o)}();