!function(){"use strict";var r,e={8379:function(r,e,t){var n=window.wp.blocks,o=window.wp.primitives,c=t(1085),i=(0,c.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,c.jsx)(o.Path,{d:"M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm-1.338 4.877c-.314.22-.412.452-.412.623 0 .171.098.403.412.623.312.218.783.377 1.338.377.825 0 1.605.233 2.198.648.59.414 1.052 1.057 1.052 1.852 0 .795-.461 1.438-1.052 1.852-.41.286-.907.486-1.448.582v.316a.75.75 0 01-1.5 0v-.316a3.64 3.64 0 01-1.448-.582c-.59-.414-1.052-1.057-1.052-1.852a.75.75 0 011.5 0c0 .171.098.403.412.623.312.218.783.377 1.338.377s1.026-.159 1.338-.377c.314-.22.412-.452.412-.623 0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377-.825 0-1.605-.233-2.198-.648-.59-.414-1.052-1.057-1.052-1.852 0-.795.461-1.438 1.052-1.852a3.64 3.64 0 011.448-.582V7.5a.75.75 0 011.5 0v.316c.54.096 1.039.296 1.448.582.59.414 1.052 1.057 1.052 1.852a.75.75 0 01-1.5 0c0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377s-1.026.159-1.338.377z"})}),a=window.wp.blockEditor,s=(window.wp.i18n,window.wp.coreData),u=JSON.parse('{"UU":"surecart/product-scratch-price"}');(0,n.registerBlockType)(u.UU,{icon:i,edit:r=>{let{context:{postId:e}}=r;const t=(0,a.useBlockProps)({className:"product-price"}),{record:{meta:{product:n}={}}={}}=(0,s.useEntityRecord)("postType","sc_product",e);return React.createElement("div",t,n?.scratch_display_amount)}})},1513:function(r){var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;r.exports=function(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(r){return e[r]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(r){n[r]=r})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(r){return!1}}()?Object.assign:function(r,o){for(var c,i,a=function(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}(r),s=1;s<arguments.length;s++){for(var u in c=Object(arguments[s]))t.call(c,u)&&(a[u]=c[u]);if(e){i=e(c);for(var f=0;f<i.length;f++)n.call(c,i[f])&&(a[i[f]]=c[i[f]])}}return a}},3335:function(r,e,t){t(1513);var n=t(1609),o=60103;if("function"==typeof Symbol&&Symbol.for){var c=Symbol.for;o=c("react.element"),c("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};e.jsx=function(r,e,t){var n,c={},u=null,f=null;for(n in void 0!==t&&(u=""+t),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(f=e.ref),e)a.call(e,n)&&!s.hasOwnProperty(n)&&(c[n]=e[n]);if(r&&r.defaultProps)for(n in e=r.defaultProps)void 0===c[n]&&(c[n]=e[n]);return{$$typeof:o,type:r,key:u,ref:f,props:c,_owner:i.current}}},1085:function(r,e,t){r.exports=t(3335)},1609:function(r){r.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var c=t[r]={exports:{}};return e[r](c,c.exports,n),c.exports}n.m=e,r=[],n.O=function(e,t,o,c){if(!t){var i=1/0;for(f=0;f<r.length;f++){t=r[f][0],o=r[f][1],c=r[f][2];for(var a=!0,s=0;s<t.length;s++)(!1&c||i>=c)&&Object.keys(n.O).every((function(r){return n.O[r](t[s])}))?t.splice(s--,1):(a=!1,c<i&&(i=c));if(a){r.splice(f--,1);var u=o();void 0!==u&&(e=u)}}return e}c=c||0;for(var f=r.length;f>0&&r[f-1][2]>c;f--)r[f]=r[f-1];r[f]=[t,o,c]},n.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},function(){var r={9281:0,9653:0};n.O.j=function(e){return 0===r[e]};var e=function(e,t){var o,c,i=t[0],a=t[1],s=t[2],u=0;if(i.some((function(e){return 0!==r[e]}))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(s)var f=s(n)}for(e&&e(t);u<i.length;u++)c=i[u],n.o(r,c)&&r[c]&&r[c][0](),r[c]=0;return n.O(f)},t=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))}();var o=n.O(void 0,[9653],(function(){return n(8379)}));o=n.O(o)}();