!function(){"use strict";var e,t={2582:function(){var e=window.wp.blocks,t=window.wp.i18n,n=window.wp.blockEditor,r=window.wp.components,a=JSON.parse('{"UU":"surecart/product-selected-price-ad-hoc-amount"}');(0,e.registerBlockType)(a.UU,{edit:e=>{let{attributes:a,setAttributes:l}=e;const{label:o,width:c}=a,i=Number.isFinite(c)?c+"%":c,s=(0,n.useBlockProps)({style:{width:i}}),u=(0,n.__experimentalUseColorProps)(a),p=(0,r.__experimentalUseCustomUnits)({availableUnits:(0,n.useSettings)("spacing.units")||["%","px","em","rem"]});return React.createElement(React.Fragment,null,React.createElement(n.InspectorControls,null,React.createElement(r.PanelBody,{title:(0,t.__)("Custom Amount Settings")},React.createElement(r.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,t.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:c||"",onChange:e=>{e=0>parseFloat(e)?"0":e,l({width:e})},units:p}))),React.createElement("div",s,React.createElement(n.RichText,{tagName:"label",className:`sc-form-label ${u.className}`,"aria-label":(0,t.__)("Label text","surecart"),placeholder:(0,t.__)("Add label…","surecart"),value:o,onChange:e=>l({label:e}),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic"]}),React.createElement("div",{className:"sc-input-group"},React.createElement("span",{class:"sc-input-group-text",id:"basic-addon1"},scData?.currency_symbol),React.createElement("input",{class:"sc-form-control",type:"number",step:"0.01",onwheel:"this.blur()"}))))}})}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var l=n[e]={exports:{}};return t[e](l,l.exports,r),l.exports}r.m=t,e=[],r.O=function(t,n,a,l){if(!n){var o=1/0;for(u=0;u<e.length;u++){n=e[u][0],a=e[u][1],l=e[u][2];for(var c=!0,i=0;i<n.length;i++)(!1&l||o>=l)&&Object.keys(r.O).every((function(e){return r.O[e](n[i])}))?n.splice(i--,1):(c=!1,l<o&&(o=l));if(c){e.splice(u--,1);var s=a();void 0!==s&&(t=s)}}return t}l=l||0;for(var u=e.length;u>0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[n,a,l]},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={2692:0,188:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var a,l,o=n[0],c=n[1],i=n[2],s=0;if(o.some((function(t){return 0!==e[t]}))){for(a in c)r.o(c,a)&&(r.m[a]=c[a]);if(i)var u=i(r)}for(t&&t(n);s<o.length;s++)l=o[s],r.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return r.O(u)},n=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var a=r.O(void 0,[188],(function(){return r(2582)}));a=r.O(a)}();