!function(){"use strict";var e,n={9955:function(e,n,t){var r=window.wp.blocks,o=(window.wp.i18n,window.wp.blockEditor),c=window.React,a=t.n(c);function u(e){let{name:n,...t}=e;const[r,o]=(0,c.useState)(null),u=window?.scData?.plugin_url+"/dist/icon-assets";if((0,c.useEffect)((()=>{fetch(`${u}/${n}.svg`).then((e=>e.text())).then((e=>{const n=(new DOMParser).parseFromString(e,"image/svg+xml");o(n?.documentElement)})).catch(console.error)}),[n]),!r)return null;const i={...Array.from(r.attributes).reduce(((e,n)=>(e[n.name]=n.value,e)),{}),...t};return a().createElement(r.tagName,{...i,dangerouslySetInnerHTML:{__html:r.innerHTML}})}var i=JSON.parse('{"UU":"surecart/cart-icon"}');(0,r.registerBlockType)(i.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(u,{name:"shopping-bag"})),React.createElement("span",{class:"sc-cart-count"},"2")))}})}},t={};function r(e){var o=t[e];if(void 0!==o)return o.exports;var c=t[e]={exports:{}};return n[e](c,c.exports,r),c.exports}r.m=n,e=[],r.O=function(n,t,o,c){if(!t){var a=1/0;for(l=0;l<e.length;l++){t=e[l][0],o=e[l][1],c=e[l][2];for(var u=!0,i=0;i<t.length;i++)(!1&c||a>=c)&&Object.keys(r.O).every((function(e){return r.O[e](t[i])}))?t.splice(i--,1):(u=!1,c<a&&(a=c));if(u){e.splice(l--,1);var s=o();void 0!==s&&(n=s)}}return n}c=c||0;for(var l=e.length;l>0&&e[l-1][2]>c;l--)e[l]=e[l-1];e[l]=[t,o,c]},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={4345:0,6717:0};r.O.j=function(n){return 0===e[n]};var n=function(n,t){var o,c,a=t[0],u=t[1],i=t[2],s=0;if(a.some((function(n){return 0!==e[n]}))){for(o in u)r.o(u,o)&&(r.m[o]=u[o]);if(i)var l=i(r)}for(n&&n(t);s<a.length;s++)c=a[s],r.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return r.O(l)},t=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))}();var o=r.O(void 0,[6717],(function(){return r(9955)}));o=r.O(o)}();