import{b as h,c as y}from"./chunk-4DM2YKGF.js";import{Sb as r,Tb as t,Ub as n,Vb as o,Vc as u,ab as i,ae as g,nb as c,pd as w,qc as d,sc as p}from"./chunk-PCDQIHDN.js";var I=(()=>{let s=class s{set password(l){this.passwordValidity=y.validate(l||"");let a=this.passwordValidity.isValid;this.isValid!==a&&(this.isValid=a,this.isValidChanged.emit(a))}constructor(){this.isValidChanged=u(),this.passwordValidity=new h}getRequirementIconKey(l){return l?"icon-mmt-check":"icon-mmt-close"}};s.\u0275fac=function(a){return new(a||s)},s.\u0275cmp=c({type:s,selectors:[["wv-password-validator"]],inputs:{password:"password"},outputs:{isValidChanged:"isValidChanged"},decls:20,vars:15,consts:[["data-test","password.output.requirement.length",1,"password-requirement"],[3,"ngClass"],["l10nTranslate",""],["data-test","password.output.requirement.numbers",1,"password-requirement"],["data-test","password.output.requirement.special-characters",1,"password-requirement"],["data-test","password.output.requirement.lowercase-characters",1,"password-requirement"],["data-test","password.output.requirement.uppercase-characters",1,"password-requirement"]],template:function(a,e){a&1&&(t(0,"div",0),o(1,"i",1),t(2,"span",2),p(3,"At least 8 characters"),n()(),t(4,"div",3),o(5,"i",1),t(6,"span",2),p(7,"Numbers"),n()(),t(8,"div",4),o(9,"i",1),t(10,"span",2),p(11,"Special characters"),n()(),t(12,"div",5),o(13,"i",1),t(14,"span",2),p(15,"Lowercase characters"),n()(),t(16,"div",6),o(17,"i",1),t(18,"span",2),p(19,"Uppercase characters"),n()()),a&2&&(d("valid",!e.passwordValidity.inputTooShort),i(),r("ngClass",e.getRequirementIconKey(!e.passwordValidity.inputTooShort)),i(3),d("valid",!e.passwordValidity.numbersMissing),i(),r("ngClass",e.getRequirementIconKey(!e.passwordValidity.numbersMissing)),i(3),d("valid",!e.passwordValidity.specialCharactersMissing),i(),r("ngClass",e.getRequirementIconKey(!e.passwordValidity.specialCharactersMissing)),i(3),d("valid",!e.passwordValidity.lowercaseCharactersMissing),i(),r("ngClass",e.getRequirementIconKey(!e.passwordValidity.lowercaseCharactersMissing)),i(3),d("valid",!e.passwordValidity.uppercaseCharactersMissing),i(),r("ngClass",e.getRequirementIconKey(!e.passwordValidity.uppercaseCharactersMissing)))},dependencies:[w,g],styles:[".password-requirement[_ngcontent-%COMP%]{text-align:center;margin:4px 0;opacity:.5}.password-requirement.valid[_ngcontent-%COMP%]{opacity:1}.password-requirement[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:8px}"]});let m=s;return m})();export{I as a};
