1var f=Object.defineProperty;var v=(e,n,a)=>n in e?f(e,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[n]=a;var s=(e,n,a)=>v(e,typeof n!="symbol"?n+"":n,a);import{b7 as I,aB as o,aP as t}from"./store-hHMBOSZG.js";import j from"./AmountInputWithError-C47FlUwU.js";import{o as g}from"./application-BzAvrEXI.js";const A=g(class extends j{constructor(){super(...arguments);s(this,"componentDidMount",()=>{I(()=>{o.donateForm.amountInputShouldFocus&&(this.amountInput.focus(),this.amountInput.select(),o.donateForm.amountInputShouldFocus=!o.donateForm.amountInputShouldFocus)})});s(this,"amountLabelText",()=>this.props.withAmountButtons?o.donateForm.isSubscription?"Select an amount to give per month":"Select an amount to give":o.donateForm.isSubscription?"Enter an amount to give per month":"Enter an amount to give")}render(){const{focus:a,maxAmount:m,readOnly:i,withAmountButtons:p}=this.props,{amount:u,amountInputSubscriptionPeriod:c,campaignId:l,currencyName:d,isSubscription:h,currencyUnit:x,minimumAmount:F}=o.donateForm,b=`input-wrapper lh donate-amount ${l}${p?" with-amount-buttons":""}`;return t.jsx("div",{children:t.jsx("div",{className:"amount-wrapper",children:t.jsxs("div",{className:b,children:[t.jsx("label",{className:"form-label",htmlFor:"amount",children:this.amountLabelText()}),t.jsxs("div",{className:"input-field-container",children:[t.jsxs("div",{className:"pre-post-input-wrapper absolute w-full",children:[t.jsx("span",{className:"preinput",children:x}),t.jsxs("span",{className:"postinput uppercase",children:[t.jsx("span",{children:d}),c]})]}),t.jsx("input",{autoFocus:a,"data-amount":"true","data-parsley-currency":`${F},${m}`,"data-parsley-error-message":this.errorMsg(h,u),name:"amount",onChange:r=>o.donateForm.amount=parseFloat(r.target.value),readOnly:i,ref:r=>this.amountInput=r,required:"required",step:"0.01",type:"number",value:u||""})]})]})})})}});export{A as default}; 2//# sourceMappingURL=AmountInput-B0Kjhxh9.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.