1import{a0 as u}from"./DH8UUVDx.js";import{V as i,M as a,ac as l,Y as n,X as r,ah as f,aE as h,Z as c,S as g,a4 as v,T as y}from"./CR7AoSgS.js";import{_}from"#entry";import"./BDbHy1Cw.js";import"./5JIYIruf.js";import"./lJLXlcUT.js";import"./C6VA06jA.js";import"./C2zdcYYL.js";import"./Cirpkg8u.js";import"./C5EeRGv0.js";import"./DIuss_n5.js";import"./IUD6sLmJ.js";import"./DneBRVoK.js";import"./DK-XwjNs.js";import"./DAR0xSAx.js";const w={class:"o-field--password"},p=["for"],b={class:"u-relative"},k=["id","name","type","placeholder"],C={key:0,class:"o-field__error-msgs o-custom-tooltip align-right align-bottom"},S={key:0},P={key:1},V={key:2},x={key:3};function T(t,o,e,L,m,d){return i(),a("div",w,[e.label?(i(),a("label",{key:0,for:e.name},l(e.label),9,p)):n("",!0),e.forgotPasswordCallback?(i(),a("span",{key:1,class:"o-link o-link--system-secondary",onClick:o[0]||(o[0]=(...s)=>e.forgotPasswordCallback&&e.forgotPasswordCallback(...s))},l(t.$t("components.fields.field_password.forgot_password")),1)):n("",!0),r("div",b,[f(r("input",{"onUpdate:modelValue":o[1]||(o[1]=s=>e.v.$model=s),id:e.name,name:e.name,type:m.type,onChange:o[2]||(o[2]=(...s)=>d.onChange&&d.onChange(...s)),placeholder:e.placeholder,autocomplete:"new-password",class:c(e.formSubmitTouched&&e.v.$error?"error":"")},null,42,k),[[h,e.v.$model,void 0,{trim:!0}]]),r("i",{class:c(["o-icon o-icon--eye-off password-visibility-icon",{active:m.type==="text"}]),onClick:o[3]||(o[3]=(...s)=>d.changePasswordVisibility&&d.changePasswordVisibility(...s))},null,2),g(y,{name:"fade"},{default:v(()=>[e.formSubmitTouched&&e.v.$error?(i(),a("div",C,[e.v.required?.$invalid?(i(),a("div",S,l(t.$t("components.fields.field_password.required")),1)):n("",!0),e.v.minLength?.$invalid?(i(),a("div",P,l(t.$t("components.fields.field_password.min_length",{count:e.v.minLength.$params.min})),1)):n("",!0),e.v.maxLength?.$invalid?(i(),a("div",V,l(t.$t("components.fields.field_password.max_length",{count:e.v.maxLength.$params.max})),1)):n("",!0),e.v.sameAs?.$invalid?(i(),a("div",x,l(t.$t("components.fields.field_password.same_as")),1)):n("",!0)])):n("",!0)]),_:1})])])}const B={props:{v:{type:Object,default:()=>({})},id:String,name:String,placeholder:{type:String,default(){const{t}=u();return t("components.fields.field_password.placeholder")}},label:{type:String,default:null},formSubmitTouched:{type:Boolean,default:!0},forgotPasswordCallback:{type:Function,default:null}},emits:["on-change"],data(){return{type:"password"}}
1,methods:{changePasswordVisibility(){this.type=this.type==="text"?"password":"text"},onChange(t){this.$emit("on-change",t)}}},G=_(B,[["render",T]]);export{G 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.