import{Dt as e,N as t,P as n,X as r,ht as i,j as a,n as o,nt as s,wt as c,z as l}from"./BasicIcon-Bnxm-DKk.js";import{o as u,t as d}from"./format-C72AoJ2H.js";var f={class:`form-group`},p={key:0,class:`form-label`},m=[`value`,`placeholder`,`disabled`],h={key:1,class:`input-error-text`},g={key:2,class:`form-hint`},_=o(l({__name:`CurrencyInput`,props:{modelValue:{},label:{},placeholder:{},hint:{},error:{},disabled:{type:Boolean}},emits:[`update:modelValue`],setup(o,{emit:l}){let _=o,v=l,y=i(``);s(()=>_.modelValue,e=>{let t=d(e??``);y.value=t?u(Number(t)):``},{immediate:!0});function b(e){let t=e.target,n=d(t.value);y.value=n?u(Number(n)):``,v(`update:modelValue`,n)}return(i,s)=>(r(),n(`div`,f,[o.label?(r(),n(`label`,p,e(o.label),1)):t(``,!0),a(`input`,{class:c([`input`,{"input-error":o.error}]),type:`text`,inputmode:`numeric`,dir:`ltr`,value:y.value,placeholder:o.placeholder,disabled:o.disabled,onInput:b},null,42,m),o.error?(r(),n(`p`,h,e(o.error),1)):o.hint?(r(),n(`p`,g,e(o.hint),1)):t(``,!0)]))}}),[[`__scopeId`,`data-v-1becf1bc`]]);export{_ as t};