1import{_ as h,b as R,c as d,o as r,d as O,e as S,g as a,w as p,a as s,t as l,a1 as E,a9 as A,a7 as T,F as M,as as f,Z as m,f as P,ap as L}from"./index-sUPB-bMu.js";const b={name:"CreatePasswordFields",props:{isOptional:{type:Boolean,default:!0},showPasswordFields:{type:Boolean,default:!0}},emits:["formData","createAccunt"],data(){return{inputs:{senha:null,senha_confirm:null},showPassword:!1,showPasswordConfirmation:!1,createAccount:!1}},computed:{passwordType(){return this.showPassword?"text":"password"},passwordConfirmationType(){return this.showPasswordConfirmation?"text":"password"}},watch:{inputs:{deep:!0,handler(){this.$emit("formData",{...this.inputs})}},createAccount(){this.$emit("createAccunt",this.createAccount)}},methods:{tooglePassword(){this.showPassword=!this.showPassword},tooglePasswordConfirmation(){this.showPasswordConfirmation=!this.showPasswordConfirmation}}},C={for:"create_account",class:"input-item__label"},I={class:"input-item__field--switch"},D={class:"field-switch__switch"},y={class:"switch-status"},F={class:"switch-true"},k={class:"switch-false"},v={class:"input-item__floated-label"},g=["innerHTML"],W=["type","placeholder"],N={class:"password-requirements"},B={class:"password-requirements__requirements"},$={class:"text"},U={class:"text"},H={class:"text"},G={class:"text"},Q={class:"input-item__floated-label"},q=["innerHTML"],V=["type","placeholder"];function Z(t,e,c,z,i,n){const _=R("Field"),u=R("SvgElement"),w=R("ErrorMessage");return r(),d("div",null,[c.isOptional?(r(),O(_,{key:"create-account-switch",name:"create_account",class:"input-item",as:"div",rules:"required"},{default:p(()=>[s("label",C,l(t.$t("FORM.LABEL.CREATE_ACCOUNT")),1),s("label",I,[E(s("input",A(t.field,{"onUpdate:modelValue":e[0]||(e[0]=o=>i.createAccount=o),class:"field-switch__input",type:"checkbox",name:"create_account"}),null,16),[[T,i.createAccount]]),s("span",D,[s("div",y,[s("span",F,l(t.$t("FORM.LABEL.YES")),1),s("span",k,l(t.$t("FORM.LABEL.NO")),1)])])])]),_:1})):S("",!0),a(L,{name:"slide-fade"},{default:p(()=>[!c.isOptional||i.createAccount&&c.showPasswordFields?(r(),d(M,{key:0},[a(_,{key:"password-input",name:t.$t("FORM.LABEL.PASSWORD"),class:"input-item",as:"div",rules:{required:!0,regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&#/.])[A-Za-z\d@$!%*?&#/.]{8,}$/},vid:"senha"},{default:p(()=>[s("div",v,[s("label",{for:"senha",class:"input-item__label input-item__label",innerHTML:`${t.$t("FORM.LABEL.PASSWORD")} *`},null,8,g),E(s("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>i.inputs.senha=o),type:n.passwordType,name:"senha",placeholder:t.$t("FORM.PLACEHOLDER.PASSWORD"),class:"input-item__field--normal input-item__field"},null,8,W),[[f,i.inputs.senha]]),i.showPassword?(r(),d("button",{key:1,class:"icon",type:"button",onClick:e[3]||(e[3]=(...o)=>n.tooglePassword&&n.tooglePassword(...o))},[a(u,{name:"PasswordShow",title:t.$t("REGISTER.TOOLTIP.PASSWORD_HIDE")},null,8,["title"])])):(r(),d("button",{key:0,class:"icon icon--hidden",type:"button",onClick:e[2]||(e[2]=(...o)=>n.tooglePassword&&n.tooglePassword(...o))},[a(u,{name:"PasswordHidden",title:t.$t("REGISTER.TOOLTIP.PASSWORD_SHOW")},null,8,["title"])]))]),a(w,{name:t.$t("FORM.LABEL.PASSWORD"),class:"input-item__feedback input-item__feedback--invalid"},null,8,["name"]),s("div",N,[a(u,{name:"Alert",title:"Alert",class:"password-requirements__icon"}),s("div",B,[m(l(t.$t("REGISTER.PASSWORD_REQUIREMENTS.TITLE"))+" ",1),e[11]||(e[11]=s("br",null,null,-1)),s("p",$,[e[7]||(e[7]=s("span",{class:"bold"},".",-1)),m(" "+l(t.$t("REGISTER.PASSWORD_REQUIREMENTS.REQUIREMENT_1")),1)]),s("p",U,[e[8]||(e[8]=s("span",{class:"bold"},".",-1)),m(" "+l(t.$t("REGISTER.PASSWORD_REQUIREMENTS.REQUIREMENT_2")),1)]),s("p",H,[e[9]||(e[9]=s("span",{class:"bold"},".",-1)),m(" "+l(t.$t("REGISTER.PASSWORD_REQUIREMENTS.REQUIREMENT_3")),1)]),s("p",G,[e[10]||(e[10]=s("span",{class:"bold"},".",-1)),m(" "+l(t.$t("REGISTER.PASSWORD_REQUIREMENTS.REQUIREMENT_4")),1)])])])]),_:1},8,["name"]),a(_,{key:"password-confirm-input",name:t.$t("FORM.LABEL.CONFIRM_PASSWORD"),class:"input-item",as:"div",rules:{required:!0,regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&#/.])[A-Za-z\d@$!%*?&#/.]{8,}$/,confirmed:`@${t.$t("FORM.LABEL.PASSWORD")}`}},{default:p(()=>[s("div",Q,[s("label",{for:"senha_confirm",class:"input-item__label input-item__label",innerHTML:`${t.$t("FORM.LABEL.CONFIRM_PASSWORD")} *`},null,8,q),E(s("input",{"onUpdate:modelValue":e[4]||(e[4]=o=>i.inputs.senha_confirm=o),type:n.passwordConfirmationType,name:"senha_confirm",placeholder:t.$t("FORM.PLACEHOLDER.CONFIRM_PASSWORD"),class:"input-item__field--normal input-item__field"},null,8,V),[[f,i.inputs.senha_confirm]]),i.showPasswordConfirmation?(r(),d("button",{key:1,class:"icon",type:"button",onClick:e[6]||(e[6]=P((...o)=>n.tooglePasswordConfirmation&&n.tooglePasswordConfirmation(...o),["prevent"]))},[a(u,{name:"PasswordShow",title:t.$t("REGISTER.TOOLTIP.PASSWORD_HIDE")},null,8,["title"])])):(r(),d("button",{key:0,class:"icon icon--hidden",type:"button",onClick:e[5]||(e[5]=P((...o)=>n.tooglePasswordConfirmation&&n.tooglePasswordConfirmation(...o),["prevent"]))},[a(u,{name:"PasswordHidden",title:t.$t("REGISTER.TOOLTIP.PASSWORD_SHOW")},null,8,["title"])]))]),a(w,{name:t.$t("FORM.LABEL.CONFIRM_PASSWORD"),class:"input-item__feedback input-item__feedback--invalid"},null,8,["name"])]),_:1},8,["name","rules"])],64)):S("",!0)]),_:1})])}const j=h(b,[["render",Z],["__scopeId","data-v-0e653643"]]);export{j 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.