import{n as I,t as r,q as d,A as i,v as l,E as T,x as u,a4 as N,a5 as c,z as p,B as v,C as P,y,_ as U}from"./C-p8iwFB.js";import{E as a}from"./0J232JST.js";const f=["id","value","type","name","inputmode","placeholder","disabled","autocomplete"],E={key:1,class:"append-text d-flex align-items-center justify-content-center px-24"},b=I({__name:"AtomTextInput",props:{id:{},value:{},placeholder:{},disabled:{type:[Boolean,null]},invalid:{},error:{},right:{type:Boolean},left:{type:Boolean},type:{},name:{},inputmode:{},autocomplete:{},backgroundGrey:{type:Boolean},appendIcon:{},appendText:{}},setup(g,{emit:m}){const t=m,s=(e,o)=>{const n=o.target.value||"";switch(e){case a.INPUT_CHANGE:t(a.INPUT_CHANGE,n);break;case a.INPUT_BLUR:t(a.INPUT_BLUR,n);break;case a.INPUT_ENTER:t(a.INPUT_ENTER,n);break;case a.INPUT_PASTE:t(a.INPUT_PASTE,n);break;case a.INPUT_KEYUP:t(a.INPUT_KEYUP,n);break}};return(e,o)=>(d(),r("div",{class:i(["input-container",e.invalid])},[l("div",{class:i(["wrapper d-flex",{error:e.error,"is-right":e.right,"is-left":e.left,"background-grey":e.backgroundGrey}])},[l("input",{id:e.id||void 0,class:"input",value:e.value,type:e.type,name:e.name,inputmode:e.inputmode,placeholder:e.placeholder||void 0,disabled:e.disabled||void 0,autocomplete:e.autocomplete||void 0,onInput:o[0]||(o[0]=n=>s(p(a).INPUT_CHANGE,n)),onBlur:o[1]||(o[1]=n=>s(p(a).INPUT_BLUR,n)),onPaste:o[2]||(o[2]=n=>s(p(a).INPUT_PASTE,n)),onKeyup:o[3]||(o[3]=N(c(n=>s(p(a).INPUT_ENTER,n),["prevent"]),["enter"]))},null,40,f),e.appendIcon?(d(),r("div",{key:e.appendIcon.name,class:i(["append-icon-wrapper d-flex align-items-center justify-content-center",e.appendIcon.state])},[v(P,{name:e.appendIcon.name},null,8,["name"])],2)):u("",!0),e.appendText?(d(),r("div",E,y(e.appendText),1)):u("",!0)],2),T(e.$slots,"default",{},void 0,!0)],2))}}),A=U(b,[["__scopeId","data-v-fb429fc0"]]);export{A}; //# sourceMappingURL=E7BClk0C.js.map