1import{j as t,v as d,q as p,x as n,o as c,m,D as f,aO as z,C as h,H as w,M as b}from"./Bl0pM-6a.js";const D={key:0,class:"w-full card-secondary p-2 rounded-md gap-2 max-sm:flex-col max-sm:gap-4"},F={class:"flex justify-start items-center gap-4"},M={class:"text-primary"},q={key:0,class:"flex justify-start items-center gap-4"},E={class:"text-primary"},H={key:1,class:"flex justify-start items-center gap-4"},I={class:"text-primary"},Z={key:2,class:"flex justify-start items-center gap-4"},$={class:"text-primary"},G={key:3,class:"flex justify-start items-center gap-4"},J={class:"text-primary"},P={__name:"ValidateList",props:{password:{type:[String,Number],default:""},passwordConditions:{type:Object,default:()=>{}},showOnFocus:{type:Boolean,default:!1},focused:{type:Boolean,default:!1}},setup(o,{expose:j}){const e=o,N=t(()=>{var s,i,a,l,u;return[((s=e.passwordConditions)==null?void 0:s.min)>=4,(i=e.passwordConditions)==null?void 0:i.uppercase,(a=e.passwordConditions)==null?void 0:a.lowercase,(l=e.passwordConditions)==null?void 0:l.number,(u=e.passwordConditions)==null?void 0:u.symbols]}),B=t(()=>Object.values(N.value).reduce((s,i)=>s+(i?1:0),0)),v=t(()=>{var s;return e.password.length>=((s=e.passwordConditions)==null?void 0:s.min)}),y=t(()=>!!S(e.password)),g=t(()=>!!A(e.password)),C=t(()=>!!V(e.password)),k=t(()=>!!U(e.password)),_=t(()=>{const s=e.passwordConditions;return s?[v.value,s.uppercase?y.value:!0,s.lowercase?g.value:!0,s.number?C.value:!0,s.symbols?k.value:!0].every(Boolean):!1}),O=t(()=>B.value<=1?!1:e.showOnFocus?e.focused&&!_.value:!0);j({checkLength:v,checkUppercase:y,checkLowercase:g,checkNumbercase:C,checkSymbols:k,isAllConditionsMet:_});const S=s=>/[A-Z]/.test(s),A=s=>/[a-z]/.test(s),V=s=>/\d/.test(s),U=s=>/[!@#$%^&*()_+\-=\\[\]{};':"\\|,.<>\\/?]+/gm.test(s),r=s=>{if(s==="length")return v.value;if(s==="uppercase")return y.value;if(s==="lowercase")return g.value;if(s==="number")return C.value;if(s==="symbols")return k.value};return(s,i)=>{var l,u,x,L;const a=z;return n(O)?(b(),d("div",D,[c("div",F,[m(a,{name:"ri:checkbox-circle-fill",class:f(["w-5 h-5 bg-[var(--icon-inactive)]",{"!bg-[var(--success)]":r("length")}])},null,8,["class"]),c("p",M,h(("t"in s?s.t:n(w))("condition.beAtLeastCharacters",{min:o.passwordConditions.min})),1)]),(l=o.passwordConditions)!=null&&l.uppercase?(b(),d("div",q,[m(a,{name:"ri:checkbox-circle-fill",class:f(["w-5 h-5 bg-[var(--icon-inactive)]",{"!bg-[var(--success)]":r("uppercase")}])},null,8,["class"]),c("p",E,h(("t"in s?s.t:n(w))("condition.uppercaseLetter")),1)])):p("",!0),(u=o.passwordConditions)!=null&&u.lowercase?(b(),d("div",H,[m(a,{name:"ri:checkbox-circle-fill",class:f(["w-5 h-5 bg-[var(--icon-inactive)]",{"!bg-[var(--success)]":r("lowercase")}])},null,8,["class"]),c("p",I,h(("t"in s?s.t:n(w))("condition.lowercaseLetter")),1)])):p("",!0),(x=o.passwordConditions)!=null&&x.number?(b(),d("div",Z,[m(a,{name:"ri:checkbox-circle-fill",class:f(["w-5 h-5 bg-[var(--icon-inactive)]",{"!bg-[var(--success)]":r("number")}])},null,8,["class"]),c("p",$,h(("t"in s?s.t:n(w))("condition.atLeastOneNumber")),1)])):p("",!0),(L=o.passwordConditions)!=null&&L.symbols?(b(),d("div",G,[m(a,{name:"ri:checkbox-circle-fill",class:f(["w-5 h-5 bg-[var(--icon-inactive)]",{"!bg-[var(--success)]":r("symbols")}])},null,8,["class"]),c("p",J,h(("t"in s?s.t:n(w))("condition.atLeastSymbol")),1)])):p("",!0)])):p("",!0)}}};export{P 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.