!function(){"use strict";var e,t={2582:function(){var e=window.wp.blocks,t=window.wp.i18n,r=window.wp.blockEditor,n=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,r.useBlockProps)({style:{width:i}}),u=(0,r.__experimentalUseColorProps)(a),p=(0,n.__experimentalUseCustomUnits)({availableUnits:(0,r.useSettings)("spacing.units")||["%","px","em","rem"]});return React.createElement(React.Fragment,null,React.createElement(r.InspectorControls,null,React.createElement(n.PanelBody,{title:(0,t.__)("Custom Amount Settings")},React.createElement(n.__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(r.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",{className:"sc-input-group-text",id:"basic-addon1"},scData?.currency_symbol),React.createElement("input",{className:"sc-form-control",type:"number",step:"0.01",onWheel:e=>e.target.blur()}))))}})}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=function(t,r,a,l){if(!r){var o=1/0;for(u=0;u<e.length;u++){r=e[u][0],a=e[u][1],l=e[u][2];for(var c=!0,i=0;i<r.length;i++)(!1&l||o>=l)&&Object.keys(n.O).every((function(e){return n.O[e](r[i])}))?r.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]=[r,a,l]},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={2692:0,188:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var a,l,o=r[0],c=r[1],i=r[2],s=0;if(o.some((function(t){return 0!==e[t]}))){for(a in c)n.o(c,a)&&(n.m[a]=c[a]);if(i)var u=i(n)}for(t&&t(r);s<o.length;s++)l=o[s],n.o(e,l)&&e[l]&&e[l][0](),e[l]=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 a=n.O(void 0,[188],(function(){return n(2582)}));a=n.O(a)}();