import{r as t,h as s,a as i,H as o}from"./p-e97fde0a.js";import{i as r}from"./p-93127aa7.js";import{s as p,c as e,u as c}from"./p-dca5d4e5.js";import"./p-03631502.js";import"./p-9dbc54d6.js";import"./p-2f193d80.js";import"./p-53e7f7d7.js";import"./p-d3366af3.js";import"./p-401e165e.js";import"./p-830ab1a3.js";import"./p-ec182234.js";import"./p-3f6362a4.js";import"./p-95325ec5.js";import"./p-4df6e0c5.js";import"./p-2805073a.js";import"./p-1712c78c.js";import"./p-1f60f497.js";import"./p-75e76c8c.js";import"./p-dd3464cd.js";const a="";const n=a;const m=class{constructor(s){t(this,s);this.productId=undefined;this.value=undefined;this.label=undefined}state(){return p[this.productId]}render(){var t;const i=e(this.productId);const p=i.indexOf(this.value);if(!r(this.value,this.state().selectedPrice)||p<0)return s(o,{style:{display:"none"}});return s("sc-choice-container",{"show-control":"false",checked:this.state().ad_hoc_amount===this.value,onScChange:()=>c(this.productId,{ad_hoc_amount:this.value,custom_amount:null}),"aria-label":wp.i18n.sprintf(wp.i18n.__("%d of %d","surecart"),p+1,i.length),role:"button"},this.label?this.label:s("sc-format-number",{type:"currency",currency:(t=this.state().selectedPrice)===null||t===void 0?void 0:t.currency,value:this.value,"minimum-fraction-digits":"0"}))}get el(){return i(this)}};m.style=n;export{m as sc_product_donation_amount_choice};
//# sourceMappingURL=p-f934c544.entry.js.map