!function(){"use strict";var e,r={9321:function(e,r,t){var n=window.wp.blocks,o=window.wp.primitives,c=t(1085),a=(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"})}),i=window.wp.blockEditor,s=window.wp.i18n,l=window.wp.coreData,u=window.wp.components,p=JSON.parse('{"UU":"surecart/product-list-price"}');(0,n.registerBlockType)(p.UU,{icon:a,edit:e=>{let{attributes:{show_range:r},setAttributes:t,context:{postId:n}}=e;const o=(0,i.useBlockProps)({className:"product-price"}),{record:{meta:{product:c}={}}={}}=(0,l.useEntityRecord)("postType","sc_product",n);return React.createElement(React.Fragment,null,React.createElement(i.InspectorControls,null,React.createElement(u.PanelBody,{title:(0,s.__)("Options","surecart")},React.createElement(u.ToggleControl,{label:(0,s.__)("Price Range","surecart"),help:(0,s.__)("Show a range of prices if multiple prices are available or has variable products.","surecart"),checked:r,onChange:e=>t({show_range:e})}))),React.createElement("div",o,c?.id?r?c?.range_display_amount:c?.display_amount:"$10"))}})},1513:function(e){var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var c,a,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var l in c=Object(arguments[s]))t.call(c,l)&&(i[l]=c[l]);if(r){a=r(c);for(var u=0;u<a.length;u++)n.call(c,a[u])&&(i[a[u]]=c[a[u]])}}return i}},3335:function(e,r,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 a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};r.jsx=function(e,r,t){var n,c={},l=null,u=null;for(n in void 0!==t&&(l=""+t),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(u=r.ref),r)i.call(r,n)&&!s.hasOwnProperty(n)&&(c[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===c[n]&&(c[n]=r[n]);return{$$typeof:o,type:e,key:l,ref:u,props:c,_owner:a.current}}},1085:function(e,r,t){e.exports=t(3335)},1609:function(e){e.exports=window.React}},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var c=t[e]={exports:{}};return r[e](c,c.exports,n),c.exports}n.m=r,e=[],n.O=function(r,t,o,c){if(!t){var a=1/0;for(u=0;u<e.length;u++){t=e[u][0],o=e[u][1],c=e[u][2];for(var i=!0,s=0;s<t.length;s++)(!1&c||a>=c)&&Object.keys(n.O).every((function(e){return n.O[e](t[s])}))?t.splice(s--,1):(i=!1,c<a&&(a=c));if(i){e.splice(u--,1);var l=o();void 0!==l&&(r=l)}}return r}c=c||0;for(var u=e.length;u>0&&e[u-1][2]>c;u--)e[u]=e[u-1];e[u]=[t,o,c]},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){var e={9904:0,9464:0};n.O.j=function(r){return 0===e[r]};var r=function(r,t){var o,c,a=t[0],i=t[1],s=t[2],l=0;if(a.some((function(r){return 0!==e[r]}))){for(o in i)n.o(i,o)&&(n.m[o]=i[o]);if(s)var u=s(n)}for(r&&r(t);l<a.length;l++)c=a[l],n.o(e,c)&&e[c]&&e[c][0](),e[c]=0;return n.O(u)},t=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))}();var o=n.O(void 0,[9464],(function(){return n(9321)}));o=n.O(o)}();