PageSourceSearch

https://beta.publisher.tonic.com/assets/User.cb6314e7.js

js tonic.com collected 2026-09-24 22:53:52 UTC 4,805 bytes, 2 lines download raw bytes

1import{D as N}from"./DetailsPageContainer.9e016739.js";import{d as P,u as y,m as A,o as m,f,w as g,b as l,t as c,e,h as u,T as h,ax as I,_ as x,a as p,dW as L,p as R,x as B,dw as T,a5 as C,aI as F,c as S,k as O,F as q}from"./index.dd9a1116.js";const z={class:"inputs"},H={class:"col"},W={class:"label subtle q-mb-sm"},Z=P({__name:"PersonalInformation",setup(k){const{t}=y(),s=A();return(v,o)=>(m(),f(N,{title:e(t)("setting.user.personal.title"),bordered:"","no-margin":""},{"left-block":g(()=>[l("p",null,c(e(t)("setting.user.personal.description")),1)]),"right-block":g(()=>{var n,i,_;return[l("div",z,[u(e(h),{modelValue:e(s).userEdited.firstName,"onUpdate:modelValue":o[0]||(o[0]=d=>e(s).userEdited.firstName=d),label:e(t)("setting.user.personal.label.name"),outlined:""},null,8,["modelValue","label"]),u(e(h),{modelValue:e(s).userEdited.lastName,"onUpdate:modelValue":o[1]||(o[1]=d=>e(s).userEdited.lastName=d),label:e(t)("setting.user.personal.label.lastName"),outlined:""},null,8,["modelValue","label"]),l("div",H,[l("p",W,c(e(t)("common.role")),1),e(s).isSubUser()?(m(),f(e(I),{key:0,label:(_=(i=(n=e(s).user)==null?void 0:n.subUserRole)==null?void 0:i.name)!=null?_:e(t)("setting.role.noRoleAssigned"),mini:""},null,8,["label"])):(m(),f(e(I),{key:1,label:"Account Owner",mini:""}))])])]}),_:1},8,["title"]))}});var j=x(Z,[["__scopeId","data-v-219e9766"]]);const G={class:"flex column gap-24"},J={class:"rules text-subtle"},w=16,K=P({__name:"ChangePasswordDialog",setup(k,{expose:t}){const{t:s}=y(),v=/[!@#$%^&*(),.?":{}|<>]/,o=p(null),n=p(""),i=p(""),_=p(!1),d=p(!1),U=new L(void 0,void 0,R),V=B(()=>n.value.trim().length<1||n.value.length<w||i.value.trim().length<1||i.value!==n.value),E=()=>{var r;n.value="",i.value="",_.value=!1,(r=o.value)==null||r.open($,void 0,void 0)},D=()=>{var r;(r=o.value)==null||r.close()},$=async()=>{d.value||(_.value=!0,!V.value&&(d.value=!0,await U.accountPasswordResetPost({password:n.value,confirmPassword:i.value}).then(r=>{C.positive({t:{key:"setting.user.password.notification.success"}}),D()}).catch(r=>{console.error(r),F.handleError(r),C.negative({t:{key:"setting.user.password.notification.error"}})}).finally(()=>{d.value=!1})))};return t({open:E,close:D}),(r,b)=>(m(),f(e(T),{ref_key:"changePasswordDialog",ref:o,type:"confirm",headline:e(s)("setting.user.password.modal.title"),"ok-button-label":e(s)("setting.user.password.modal.label.save"),"cancel-button-label":e(s)("common.cancel"),"ok-button-disabled":V.value||d.value,"prevent-close-by-ok":!0},{"dialog-content":g(()=>[l("div",G,[l("div",J,[l("p",null,c(e(s)("setting.user.password.modal.rules.description")),1),l("ul",null,[l("li",null,c(e(s)("setting.user.password.modal.rules.minLength",{min:w})),1),l("li",null,c(e(s)("setting.user.password.modal.rules.num")),1),l("li",null,c(e(s)("setting.user.password.modal.rules.letter")),1),l("li",null,c(e(s)("setting.user.password.modal.rules.special")),1)])]),l("div",null,[u(e(h),{modelValue:n.value,"onUpdate:modelValue":b[0]||(b[0]=a=>n.value=a),filled:"",icon:"lock",type:"password",name:"newPassword",label:e(s)("setting.user.password.modal.label.newPass"),rules:[a=>a&&a.trim().length>0||e(s)("validation.isEmpty",{field:e(s)("setting.user.password.modal.label.newPass")}),a=>!a||a.length>=w||e(s)("validation.minInputLength",{min:w,field:e(s)("setting.user.password.modal.label.newPass")}),a=>/[0-9]/.test(a)||e(s)("validation.atLeastNumber"),a=>/[a-zA-Z]/.test(a)||e(s)("validation.atLeastLetter"),a=>v.test(a)||e(s)("validation.atLeastSpecial")]},null,8,["modelValue","label","rules"]),u(e(h),{modelValue:i.value,"onUpdate:modelValue":b[1]||(b[1]=a=>i.value=a),filled:"",icon:"lock",type:"password",name:"repeatPassword",label:e(s)("setting.user.password.modal.label.repeat"),rules:[a=>a===n.value||e(s)("validation.isNotSame",{field:e(s)("setting.user.password.modal.label.repeat"),compareField:e(s)("setting.user.password.modal.label.newPass")})]},null,8,["modelValue","label","rules"])])])]),_:1},8,["headline","ok-button-label","cancel-button-label","ok-button-disabled"]))}});var M=x(K,[["__scopeId","data-v-32c3212f"]]);const Q=P({__name:"Password",setup(k){const{t}=y(),s=p(null),v=()=>{var o;(o=s.value)==null||o.open()};return(o,n)=>(m(),S(q,null,[u(N,{title:e(t)("setting.user.password.title"),bordered:"","no-margin":""},{"left-block":g(()=>[l("p",null,c(e(t)("setting.user.password.description")),1)]),"right-block":g(()=>[u(e(O),{label:e(t)("setting.user.password.btn"),outline:"",onOnClick:v},null,8,["label"])]),_:1},8,["title"]),u(M,{ref_key:"changePasswordDialogRef",ref:s},null,512)],64))}});const X={class:"content flex column gap-40"},Y=P({__name:"User",setup(k){return(t,s)=>(m(),S("div",X,[u(j),u(Q)]))}});var ae=x(Y,[["__scopeId","data-v-2501e633"]]);export{ae as default};
2//# sourceMappingURL=User.cb6314e7.js.map

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.