!function(){"use strict";var e,t={7005:function(e,t,r){var n=r(1609),o=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var n,c={},a=null,u=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(c[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===c[n]&&(c[n]=t[n]);return{$$typeof:o,type:e,key:a,ref:u,props:c,_owner:s.current}}},9255:function(e,t,r){e.exports=r(7005)},3749:function(e,t,r){var n=window.wp.blocks,o=window.wp.primitives,i=r(9255),s=(0,i.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(o.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})}),l=window.wp.blockEditor,c=r(1609),a=r.n(c);function u(){return u=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},u.apply(null,arguments)}function f(e){let{name:t,...r}=e;const[n,o]=(0,c.useState)(null),i=window?.scData?.plugin_url+"/dist/icon-assets",s=/^[a-zA-Z0-9_-]+$/.test(t);if((0,c.useEffect)((()=>{s&&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,s]),!n)return null;const l=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={},v={};Object.entries(r).forEach((e=>{let[t,r]=e;f[t]?p[f[t]]=r:v[t]=r})),Object.keys(p).length>0&&l.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&&l.setAttribute(t,r)})),Object.entries(v).forEach((e=>{let[t,r]=e;if(null!=r){const e="className"===t?"class":t;l.setAttribute(e,r)}}));const d={};for(const e of l.attributes)d["class"===e.name?"className":e.name]=e.value;return a().createElement("svg",u({},d,{dangerouslySetInnerHTML:{__html:l.innerHTML}}))}window.wp.i18n;var p=JSON.parse('{"UU":"surecart/product-quick-view-close"}');(0,n.registerBlockType)(p.UU,{icon:s,edit:()=>{const e=(0,l.useBlockProps)({});return React.createElement("a",e,React.createElement(f,{name:"x"}))}})},1609:function(e){e.exports=window.React}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=function(t,r,o,i){if(!r){var s=1/0;for(u=0;u<e.length;u++){r=e[u][0],o=e[u][1],i=e[u][2];for(var l=!0,c=0;c<r.length;c++)(!1&i||s>=i)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(l=!1,i<s&&(s=i));if(l){e.splice(u--,1);var a=o();void 0!==a&&(t=a)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[r,o,i]},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={4025:0,9453:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,i,s=r[0],l=r[1],c=r[2],a=0;if(s.some((function(t){return 0!==e[t]}))){for(o in l)n.o(l,o)&&(n.m[o]=l[o]);if(c)var u=c(n)}for(t&&t(r);a<s.length;a++)i=s[a],n.o(e,i)&&e[i]&&e[i][0](),e[i]=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,[9453],(function(){return n(3749)}));o=n.O(o)}();