1import{g as c,o,c as a,j as k,w as y,k as _,a as e,m as g,v as h,q as V,P as b,Q as I,t as w,T as C}from"./entry.21ccf162.js";const B={class:"bag-donation-options"},x={key:0,class:"custom-input"},T={class:"input-wrap"},q=e("span",null,"+",-1),D=e("span",null,"ETH",-1),S={key:1,class:"bag-donation-options ul-reset"},$=["id","value","checked"],E=["for"],N=e("span",null,"Custom",-1),O=[N],j={__name:"BagDonationOptions",props:{modelValue:{type:String,required:!0},options:{type:Array,required:!0}},emits:["update:modelValue"],setup(m,{emit:l}){const p=s=>{l("update:modelValue",s.target.value)},n=c("0.01"),i=c(),d=c(!1),v=async()=>{l("update:modelValue",String(n.value)),d.value=!0,await new Promise(s=>setTimeout(s,50)),i.value&&i.value.focus()},f=()=>{l("update:modelValue",String(n.value))};return(s,u)=>(o(),a("div",B,[k(C,{name:"quick-fade",mode:"out-in"},{default:y(()=>[_(d)?(o(),a("div",x,[e("button",{onClick:u[0]||(u[0]=t=>d.value=!1)},"Back"),e("div",T,[q,g(e("input",{ref_key:"customValueInput",ref:i,onInput:f,"onUpdate:modelValue":u[1]||(u[1]=t=>V(n)?n.value=t:null),type:"number",min:"0.01",step:"0.01"},null,544),[[h,_(n)]]),D])])):(o(),a("ul",S,[(o(!0),a(b,null,I(m.options,(t,r)=>(o(),a("li",{key:t.value},[e("input",{type:"radio",name:"donation",id:`donation-${r}`,value:t.value,onInput:p,checked:r===0},null,40,$),e("label",{for:`donation-${r}`},[e("span",null,w(t.label),1)],8,E)]))),128)),e("li",null,[e("input",{type:"radio",name:"donation",id:"donation-custom",value:"0.01",onInput:p},null,32),e("label",{onClick:v,for:"donation-custom",class:"custom-label"},O)])]))]),_:1})]))}};export{j as default};
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.