1import{aK as m,aR as n,a_ as c,a$ as w,b0 as L,aU as s,aY as _,aS as u,br as q,b1 as I,bJ as p,aM as b,aL as k,bp as y,bb as C,bc as N,aT as d,aV as h,aZ as f,b8 as x,b4 as P,cA as A,aO as B,b2 as V}from"./B6htCAhx.js";import{_ as j}from"./DlAUqK2U.js";const O={class:"grid gap-3"},Q=["data-qa-selector"],D={class:"text-base-text font-medium"},T={class:"flex min-w-0 items-center gap-2"},F={class:"text-base-text font-semibold wrap-anywhere"},R=m({__name:"InfoList",props:{list:{}},setup(o){return(e,r)=>{const l=q;return n(),c("ul",O,[(n(!0),c(w,null,L(o.list,t=>(n(),c("li",{key:t.label,"data-qa-selector":t.qaSelector,class:"grid gap-1 text-sm md:grid-cols-[minmax(160px,45%)_1fr] md:gap-4"},[s("span",D,_(t.label),1),s("div",T,[s("span",F,_(t.data??"â"),1),t.to?(n(),u(l,{key:0,to:t.to,size:"xs",color:"primary",variant:"link",icon:"hugeicons:task-edit-02","aria-label":t.actionLabel,"data-qa-selector":t.actionQaSelector,class:"text-primary p-0"},null,8,["to","aria-label","data-qa-selector"])):I("",!0)])],8,Q))),128))])}}}),U=Object.assign(R,{__name:"InfoList"}),z={},E={class:"w-full"},H={class:"border-default mb-4 flex items-start justify-between border-b"},J={class:"text-base-text mb-2 text-xl font-semibold"};function K(o,e){return n(),c("section",E,[s("div",H,[s("h3",J,[p(o.$slots,"title")]),p(o.$slots,"btn")]),s("div",null,[p(o.$slots,"list")])])}const M=Object.assign(j(z,[["render",K]]),{__name:"ProfileSection"}),Y=m({__name:"PersonalInfo",setup(o){const{t:e}=b(),r=k(),{isAdditionalAppClientLimited:l}=y(),t=C(),{client:a}=N(t);function g(i){return i?A(i):void 0}const S=P(()=>{if(!a.value)return[];const i=g(a.value.passwordCreatedAt);return[{label:e("profile.name"),data:a.value.clientFullName,qaSelector:"field_client_full_name"},{label:e("profile.personal-number"),data:a.value.identificationNumber,qaSelector:"field_personal_number"},{label:e("profile.curp"),data:a.value.clientNationalIdentificator,qaSelector:"field_client_national_identificator"},{label:e("profile.mobile-nr"),data:a.value.info.mobilePhone.number,qaSelector:"field_mobile",...l.value?{}:{actionLabel:e("profile.change-phone-title"),actionQaSelector:"btn_profile_edit_mobile",to:r("profile-change-phone")}},{label:e("profile.e-mail"),data:a.value.email,qaSelector:"field_email",...l.value?{}:{actionLabel:e("profile.change-email-title"),actionQaSelector:"btn_profile_edit_email",to:r("profile-change-email")}},{label:e("profile.password"),data:i?`${e("profile.password-text")} ${i}`:void 0,qaSelector:"field_password",...l.value?{}:{actionLabel:e("profile.change-pass-title"),actionQaSelector:"btn_profile_edit_password",to:r("profile-change-password")}}]});return(i,W)=>{const v=U,$=M;return n(),u($,null,{title:d(()=>[x(_(f(e)("profile.personal-data-title")),1)]),list:d(()=>[h(v,{list:f(S)},null,8,["list"])]),_:1})}}}),Z=Object.assign(Y,{__name:"PersonalInfo"}),G={class:"max-w-[860px]"},te=m({__name:"profile",setup(o){const{t:e}=b();return B({title:e("profile.index-title")}),(r,l)=>{const t=Z,a=V;return n(),u(a,{name:"blank"},{title:d(()=>[x(_(f(e)("profile.index-title")),1)]),content:d(()=>[s("div",G,[h(t)])]),_:1})}}});
1export{te 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.