PageSourceSearch

https://shop.rigi.ch/_nuxt/password-input.GXvdaxGR.js

js rigi.ch collected 2026-09-24 18:10:55 UTC 4,933 bytes, 1 lines download raw bytes

1import{U as L,K as j,i as d,e as m,W as h,a7 as f,an as x,$ as R,a5 as T,a6 as F,T as t,Z as y,ao as b,a8 as U,b as E,a0 as B,aj as M,w as C,Y as N,f as I,X as W,r as w,cb as $,bB as A,a1 as g,aM as D}from"./entry.0po0D399.js";import{L as H}from"./link-btn.9bpXvjet.js";import z from"./input-text.si97lNd6.js";import{C as Z}from"./Checkbox.m0QvGhdH.js";const q={class:"j-checkbox-with-error"},K={__name:"CheckboxWithError",props:{label:{type:String,default:null},modelValue:{type:Boolean,required:!0},useHtml:{type:Boolean,default:!1},checkboxLeft:{type:Boolean,default:!1},hasError:{type:Boolean,default:!1},displayErrors:{type:Boolean,default:!1},errorTitle:{type:String,default:""},disabled:{type:Boolean,default:!1},useCloseIcon:{type:Boolean,default:!1},hideCheckboxes:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(l,{emit:n}){const i=l,u=n,{label:c,modelValue:o,useHtml:s,checkboxLeft:p,hasError:v,displayErrors:a,errorTitle:e,disabled:r,useCloseIcon:k,hideCheckboxes:V}=j(i),S=d(()=>({"j-checkbox--hidden":V.value})),P=d(()=>({label:c.value,modelValue:o.value,useHtml:s.value,checkboxLeft:p.value,hasError:v.value,disabled:r.value,useCloseIcon:k.value,"onUpdate:modelValue":_=>u("update:modelValue",_)}));return(_,te)=>(m(),h("div",q,[f(Z,R(P.value,{class:S.value}),{label:x(()=>[U(_.$slots,"label",{},void 0,!0)]),_:3},16,["class"]),T(y("div",{class:"error-message"},b(t(e)),513),[[F,t(e)&&t(a)&&!t(o)]])]))}},X=L(K,[["__scopeId","data-v-f37822fd"]]),Y={class:"validation-password__label"},G={class:"validation-password__label__text"},J=E({__name:"field-validation-check",props:{checked:{type:Boolean},text:{}},setup(l){return(n,i)=>(m(),h("div",Y,[y("span",{class:B(["validation-password__label__icon",{"james-icon-dismiss-circle":!n.checked,"james-icon-checkmark-circle-darkgreen":n.checked}])},null,2),y("div",G,b(n.text),1)]))}}),O=L(J,[["__scopeId","data-v-be462a4a"]]),Q=E({__name:"password-validation-checks",props:{value:{}},emits:["updateValidity"],setup(l,{emit:n}){const i=n,{t:u}=M(),c=d(()=>l.value.length>=8),o=d(()=>l.value.match(/\d/)!==null&&l.value.match(/[\W_]/)!==null),s=d(()=>l.value.match(/[a-z]/)!==null&&l.value.match(/[A-Z]/)!==null),p=d(()=>l.value.match(/(\d)\1{2,}|123|234|345|456|567|678|789|012|321|432|543|654|765|876|987|210/)===null),v=d(()=>[{checked:c.value,text:u("general.password_validation.min_max_characters")},{checked:s.value,text:u("general.password_validation.letters")},{checked:o.value,text:u("general.password_validation.special_chars")},{checked:p.value,text:u("general.password_validation.consecutive_digits")}]),a=d(()=>c.value&&o.value&&s.value&&p.value);return C(a,e=>
1{i("updateValidity",e)},{immediate:!0}),(e,r)=>(m(!0),h(W,null,N(t(v),(k,V)=>(m(),I(O,{key:V,text:k.text,checked:k.checked},null,8,["text","checked"]))),128))}}),ee={key:0,class:"validation-password"},ae={key:0,class:"error-message"},le={class:"password__actions"},se=E({__name:"password-input",props:{displayError:{type:Boolean,default:!1},expandValidation:{type:Boolean,default:!1},label:{},modelValue:{},showResetLink:{type:Boolean},resetLinkAlignSelfStart:{type:Boolean},errorMessage:{default:""},validate:{type:Boolean,default:!0},isValid:{type:Boolean,default:!0},autocomplete:{default:"new-password"},name:{default:"new-password"}},emits:["close","mounted","activateResetLink","updateValidity","update:modelValue"],setup(l,{emit:n}){const i=n;function u(){i("activateResetLink")}const c=w(!1),o=w(!1),s=w(l.modelValue),p=w(!1),v=d(()=>l.validate&&(!l.expandValidation||p.value||l.displayError));return C(()=>c.value,()=>{i("updateValidity",c.value)}),C(()=>s.value,()=>{i("update:modelValue",s.value)}),(a,e)=>(m(),h("div",{class:B({"show-validation":t(v)}),onFocusin:e[3]||(e[3]=r=>p.value=!0),onFocusout:e[4]||(e[4]=r=>p.value=!1)},[f(z,{id:"passwordInput",modelValue:t(s),"onUpdate:modelValue":e[0]||(e[0]=r=>$(s)?s.value=r:null),modelModifiers:{trim:!0},autocomplete:a.autocomplete,name:a.name,label:a.label,"is-valid":a.isValid,"display-errors":a.displayError,"error-title":"","use-password-icon":"",type:t(o)?"text":"password"},null,8,["modelValue","autocomplete","name","label","is-valid","display-errors","type"]),f(A,{name:"slide-down"},{default:x(()=>[t(v)?(m(),h("div",ee,[f(Q,{value:t(s),onUpdateValidity:e[1]||(e[1]=r=>c.value=r)},null,8,["value"])])):g("",!0)]),_:1}),a.displayError?(m(),h("div",ae,b(a.errorMessage),1)):g("",!0),y("div",le,[f(X,{modelValue:t(o),"onUpdate:modelValue":e[2]||(e[2]=r=>$(o)?o.value=r:null),label:a.$t("login-widget.show-password"),"checkbox-left":"","use-close-icon":"","data-cy":"showPassword"},null,8,["modelValue","label"]),a.showResetLink?(m(),I(H,{key:0,id:"forgotPassword_4414927",class:B([{"align-self-start":a.resetLinkAlignSelfStart},"reset-link"]),onClick:u},{default:x(()=>[D(b(a.$t("login-widget.reset-password")),1)]),_:1},8,["class"])):g("",!0)])],34))}}),ie=L(se,[["__scopeId","data-v-85973204"]]);export{ie as P,X as j};

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.