!function(){"use strict";var r,n={7826:function(){var r=window.wp.blocks,n=(window.wp.i18n,window.wp.blockEditor);var e=JSON.parse('{"UU":"surecart/price-scratch-amount"}');(0,r.registerBlockType)(e.UU,{edit:()=>{const r=(0,n.useBlockProps)({className:"sc-price__amount"});return React.createElement("span",r,(r=>{let{amount:n,currency:e=scData?.currency||"usd",options:t={}}=r;const o=function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:scData?.currency;return["BIF","BYR","CLP","DJF","GNF","ISK","JPY","KMF","KRW","PYG","RWF","UGX","VND","VUV","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XDR","XOF","XPD","XPF","XPT","XTS"].includes(n?.toUpperCase())?r:r/100}(parseFloat(n),e),c=n%1==0?0:2;return`${new Intl.NumberFormat(void 0,{style:"currency",currency:e,minimumFractionDigits:c,...t}).format(parseFloat(o.toFixed(2)))}`})({amount:2e3,currency:scData?.currency}))}})}},e={};function t(r){var o=e[r];if(void 0!==o)return o.exports;var c=e[r]={exports:{}};return n[r](c,c.exports,t),c.exports}t.m=n,r=[],t.O=function(n,e,o,c){if(!e){var u=1/0;for(l=0;l<r.length;l++){e=r[l][0],o=r[l][1],c=r[l][2];for(var a=!0,i=0;i<e.length;i++)(!1&c||u>=c)&&Object.keys(t.O).every((function(r){return t.O[r](e[i])}))?e.splice(i--,1):(a=!1,c<u&&(u=c));if(a){r.splice(l--,1);var s=o();void 0!==s&&(n=s)}}return n}c=c||0;for(var l=r.length;l>0&&r[l-1][2]>c;l--)r[l]=r[l-1];r[l]=[e,o,c]},t.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},function(){var r={2886:0,7405:0};t.O.j=function(n){return 0===r[n]};var n=function(n,e){var o,c,u=e[0],a=e[1],i=e[2],s=0;if(u.some((function(n){return 0!==r[n]}))){for(o in a)t.o(a,o)&&(t.m[o]=a[o]);if(i)var l=i(t)}for(n&&n(e);s<u.length;s++)c=u[s],t.o(r,c)&&r[c]&&r[c][0](),r[c]=0;return t.O(l)},e=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];e.forEach(n.bind(null,0)),e.push=n.bind(null,e.push.bind(e))}();var o=t.O(void 0,[7405],(function(){return t(7826)}));o=t.O(o)}();