1import{d as c,r as n,A as w,e as u,L as v,k as i,f as d,M as B,aP as T,g as l,v as h,aQ as k,O as M,t as m,n as C,c as p}from"./2wZnQC37.js";const P=["for"],q={class:"u-input-text__input-wrapper"},A=["id","type","required","readonly"],I={key:1,class:"u-form__error-message"},j=c({__name:"InputText",props:{name:{},label:{},errorMessage:{},isValidated:{type:Boolean,default:!1},modelValue:{},required:{type:Boolean,default:!1},readonly:{type:Boolean},autofocus:{type:Boolean},inputAttrs:{default:{}},inputType:{default:"text"}},emits:["update:modelValue","change","blur"],setup(y,{emit:f}){const a=y,g=n(a.inputType==="password"),r=n(a.inputType),b=f;function V(){r.value=r.value==="password"?"text":"password"}const t=typeof a.modelValue!="object"?n(a.modelValue):a.modelValue;return w(t,e=>{b("update:modelValue",a.modelValue!=="object"?e:t)}),(e,s)=>(p(),u("div",{class:C(["u-input-text",{"u-input-text--error":e.isValidated&&!!e.errorMessage,"u-input-text--success":e.isValidated&&!e.errorMessage}])},[e.label?v(e.$slots,"label",{key:0,label:e.label,forName:e.name},()=>[d("label",{for:e.name,class:"u-input-text__label"},m(e.label),9,P)]):i("",!0),d("div",q,[B(d("input",h({id:e.name,type:l(r),"onUpdate:modelValue":s[0]||(s[0]=o=>M(t)?t.value=o:null),required:e.required,readonly:"readonly"in e?e.readonly:l(k)},e.inputAttrs,{onChange:s[1]||(s[1]=o=>e.$emit("change",o)),onBlur:s[2]||(s[2]=o=>e.$emit("blur",o))}),null,16,A),[[T,l(t)]]),l(g)?(p(),u("button",{key:0,"aria-label":"Passwort sichtbar machen",class:"u-input-text__toggle-password",onClick:V,type:"button"})):i("",!0)]),e.isValidated&&e.errorMessage?(p(),u("span",I,m(e.errorMessage),1)):i("",!0)],2))}}),N=Object.assign(j,{__name:"AtomsInputText"});export{N as _};
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.