PageSourceSearch

https://member.ufa356.guru/assets/1789559418326/rOuoQNgG.js

js ufa356.guru collected 2026-10-06 13:18:00 UTC 4,181 bytes, 1 lines download raw bytes

1import{C as I}from"./qF8I_tPr.js";import{d as V,r as a,l as O,G as Y,o as U,n as x,f as B,a as k,b as n,e as l,c as q,g as M,t as N,h as e,w as P,a9 as b,H as j,_ as G,at as H,A as L,J as W,Q as z,u as J,M as Q,P as X,R as K,B as Z}from"./zGN25SIG.js";import{_ as ee}from"./B_rfAPYF.js";import{_ as te}from"./Dzg3GZNq.js";import{_ as ae}from"./B9nXDqA2.js";import{_ as oe}from"./CivJAmq1.js";import{_ as ne}from"./D2WAcC-S.js";import"./BmwrrxPv.js";import"./CTTOQ1fF.js";import"./DuRGqVWg.js";const se={class:"space-y-6 px-5 pt-4 pb-32"},le={class:"flex items-start gap-2.5 px-1"},re={class:"text-[12px] text-white/40 leading-snug"},ue={class:"ui-section-divider"},ie={class:"ui-section-divider"},ce={class:"px-4 py-3"},me={class:"block text-[11px] text-white/40 mb-1.5 uppercase tracking-wider"},pe={class:"normal-case tracking-normal text-white/30 ml-1"},de={key:1,class:"flex justify-center"},fe=V({__name:"SetupProfileForm",emits:["on-save"],setup(C,{emit:h}){const _=h,y=a(null),f=a(null),r=a(null),u=a(""),c=a(""),m=a(""),p=a(""),d=a(""),R=a(!1),v=a(!1),{t:o}=O(),S=Y(()=>!v.value&&!!u.value&&!!c.value);async function $(){S.value&&(d.value="",await A())}const A=H(async()=>{try{v.value=!0;let s=p.value;if(s){const t=L(s);s=t.isValid()?t.format("DD/MM/YYYY"):""}await W.setupAccountSaveMyProfile({firstName:u.value,lastName:c.value,nickname:m.value,dob:s}
1),x().refreshProfile().catch(()=>{}),_("on-save")}catch{}finally{v.value=!1}},200,{maxWait:5e3});return U(async()=>{await x().refreshProfile().catch(()=>{});const s=x().userData||{};u.value=s.firstName||"",c.value=s.lastName||"",m.value=s.nickname||"",p.value=s.dob||""}),(s,t)=>{const g=ee,w=te,D=ae,E=oe,F=G,T=ne;return k(),B("div",se,[n("div",le,[t[6]||(t[6]=n("svg",{class:"w-4 h-4 mt-0.5 flex-shrink-0",viewBox:"0 0 16 16",fill:"none"},[n("circle",{cx:"8",cy:"8",r:"7.5",stroke:"#E3BB72","stroke-opacity":"0.5"}),n("path",{d:"M8 5v4M8 10.5v.5",stroke:"#E3BB72","stroke-width":"1.5","stroke-linecap":"round"})],-1)),n("span",re,N(e(o)("info.nameMustMatchBankAccount")),1)]),l(w,{label:`${e(o)("user.firstName")} & ${e(o)("user.lastName")}`,variant:"input"},{default:P(()=>[n("div",ue,[l(g,{ref_key:"firstNameRef",ref:y,modelValue:e(u),"onUpdate:modelValue":t[0]||(t[0]=i=>b(u)?u.value=i:null),label:e(o)("user.firstName"),inputmode:"text",autocomplete:"given-name",enterkeyhint:"next",onEnter:t[1]||(t[1]=i=>e(f)?.focus())},null,8,["modelValue","label"])]),l(g,{ref_key:"lastNameRef",ref:f,modelValue:e(c),"onUpdate:modelValue":t[2]||(t[2]=i=>b(c)?c.value=i:null),label:e(o)("user.lastName"),inputmode:"text",autocomplete:"family-name",enterkeyhint:"next",onEnter:t[3]||(t[3]=i=>e(r)?.focus())},null,8,["modelValue","label"])]),_:1},8,["label"]),l(w,{variant:"input"},{default:P(()=>[n("div",ie,[l(g,{ref_key:"nicknameRef",ref:r,modelValue:e(m),"onUpdate:modelValue":t[4]||(t[4]=i=>b(m)?m.value=i:null),label:`${e(o)("inputNicknamePlaceholder")} ${e(o)("labelOptional")}`,inputmode:"text",autocomplete:"nickname",enterkeyhint:"next",maxlength:20},null,8,["modelValue","label"])]),n("div",ce,[n("label",me,[j(N(e(o)("inputDobPlaceholder"))+" ",1),n("span",pe,N(e(o)("labelOptional")),1)]),l(D,{dob:e(p),"onUpdate:dob":t[5]||(t[5]=i=>b(p)?p.value=i:null),placeholder:e(o)("inputDobPlaceholder")},null,8,["dob","placeholder"])])]),_:1}),e(d)?(k(),q(E,{key:0,msg:e(d),type:"error"},null,8,["msg"])):M("",!0),l(F,{variant:"primary",label:e(o)("btn.save"),disabled:!e(S),loading:e(v),onClick:$},null,8,["label","disabled","loading"]),e(R)?(k(),B("div",de,[l(T)])):M("",!0)])}}}),_e=Object.assign(fe,{__name:"SetupProfileForm"}),we=V({__name:"setup-profile",setup(C){const{showMobileLayout:h}=z(),_=J(),y=Q(),f=_.query.returnMenu;let r=f||"/"+X.SETUP_ACCOUNT_INDEX;const u=_.query.afterAdd;r=u||r;function c(){m()}function m(){r.startsWith("/")||(r="/"+r),y.replace(r)}return a(!1),a(!1),x(),K(),U(()=>{window.scrollTo({top:0,behavior:"smooth"})}),(p,d)=>(k(),B("div",{class:Z(["bg-black nav-gap-h-full",{"mx-auto max-w-[436px]":e(h)}])},[l(I,{title:p.$t("progressBar.setupAccountSubProfile"),onBack:m},null,8,["title"]),l(_e,{onOnSave:c}),d[0]||(d[0]=n("div",{class:"pb-[100px]"},null,-1))],2))}});export{we 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.