import{r as t,h as s,a as i,H as o}from"./p-9add63ef.js";import{i as r}from"./p-fb28f84f.js";import{s as e,c as p,u as a}from"./p-fff99551.js";import"./p-2b28ea49.js";import"./p-dd24e53c.js";import"./p-f2d66ed2.js";import"./p-b28405ea.js";import"./p-d3366af3.js";import"./p-401e165e.js";import"./p-830ab1a3.js";import"./p-ec182234.js";import"./p-3f6362a4.js";import"./p-31faf2b8.js";import"./p-610295e2.js";import"./p-7ec75b85.js";import"./p-e2e1fe1f.js";import"./p-efd935a6.js";import"./p-78468e45.js";import"./p-de31ba85.js";import"./p-8dccb656.js";import"./p-259c3935.js";const n="";const c=n;const m=class{constructor(s){t(this,s);this.productId=undefined;this.value=undefined;this.label=undefined}state(){return e[this.productId]}render(){var t;const i=p(this.productId);const e=i.indexOf(this.value);if(!r(this.value,this.state().selectedPrice)||e<0)return s(o,{style:{display:"none"}});return s("sc-choice-container",{"show-control":"false",checked:this.state().ad_hoc_amount===this.value,onScChange:()=>a(this.productId,{ad_hoc_amount:this.value,custom_amount:null}),"aria-label":wp.i18n.sprintf(wp.i18n.__("%d of %d","surecart"),e+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=c;export{m as sc_product_donation_amount_choice};
//# sourceMappingURL=p-5683b0bd.entry.js.map