PageSourceSearch

https://cdn5.12go.asia/nuxt/_nuxt/bh6mB8Xs.js

js 12go.asia collected 2026-09-24 17:17:22 UTC 3,389 bytes, 2 lines download raw bytes

1import{_ as j}from"./CtFw77vV.js";import{a as G,aU as R,a_ as z,cf as J,aV as O,c0 as Q,J as K,H as W,s as L,y as X,o as d,i as Y,j as l,n as w,w as r,t as m,h as o,v as _,k as b,m as h,F as Z,p as ee,c1 as te,N as E,cg as ae,_ as oe,V as se,r as ne}from"./R_C5MylW.js";import{_ as re}from"./D7Xjw_wg.js";import{_ as ie}from"./Ddyi-zp-.js";import{u as ce}from"./C038LCNj.js";const de={class:"container page","data-dd-privacy":"mask"},le={class:"form-wrapper"},me={class:"buttons"},fe={"data-dd-privacy":"mask"},_e=["innerHTML"],ue=G({__name:"profile",async setup(pe){let u,C;const{data:c,pending:F,error:D}=([u,C]=R(()=>z(J,"$gOMQ38nSPt")),u=await u,C(),u);if(D.value)throw O(D.value);const{notify:x}=Q(),{state:M,logout:T}=K(),{$eventBus:$,$t:f}=ee(),{sendProfilePushGa:I}=W(),p=L(!1),g=L(!1),P=L(),A=t=>{p.value=!0,te(t).then(e=>{x({text:e.message,type:"success",duration:5e3});const i=!!(t!=null&&t.email_marketing_consent);I({consent:i})}).catch(e=>{var i,n,y,v,k,a,s,B,S,N,U,V,q;(y=(n=(i=e==null?void 0:e.data)==null?void 0:i.data)==null?void 0:n.res)!=null&&y.message&&x({text:(a=(k=(v=e==null?void 0:e.data)==null?void 0:v.data)==null?void 0:k.res)==null?void 0:a.message,type:"danger",duration:5e3}),(S=(B=(s=e==null?void 0:e.data)==null?void 0:s.data)==null?void 0:B.res)!=null&&S.fields&&((q=P.value)==null||q.setErrors((V=(U=(N=e==null?void 0:e.data)==null?void 0:N.data)==null?void 0:U.res)==null?void 0:V.fields))}).finally(()=>{p.value=!1})};function H(){$.emit(E.showLoading),ae().then(()=>{T()}).catch(t=>{var e,i,n;$.emit(E.hideLoading),x({text:((n=(i=(e=t==null?void 0:t.data)==null?void 0:e.data)==null?void 0:i.res)==null?void 0:n.message)||f("form-ajax-error-title"),type:"danger",duration:5e3})})}return X(c,t=>{t!=null&&t.meta&&ce(t==null?void 0:t.meta)},{immediate:!0}),(t,e)=>{const i=j,n=oe,y=re,v=ie,k=se;return d(),Y(Z,null,[l("div",de,[w(v,null,{title:r(()=>{var a;return[l("h3",null,m((a=o(c))==null?void 0:a.meta.title),1)]}),default:r(()=>[l("div",le,[o(F)?(d(),_(i,{key:0,rows:6})):o(c)?(d(),_(y,{key:1,ref_key:"form",ref:P,fields:o(c).fields,onSubmit:A},{default:r(()=>[l("div",me,[w(n,{type:"submit",isLoading:o(p),variant:"primary","data-qa":"profile-btn-submit"},{default:r(()=>[b(m(o(f)("done")),1)]),_:1},8,["isLoading"]),o(M).role=="user"?(d(),_(n,{key:0,type:"button",isLoading:o(p),variant:"danger","data-qa":"profile-btn-remove",onClick:e[0]||(e[0]=a=>g.value=!0)},{default:r(()=>[b(m(o(f)("profile-btn-remove")),1)]),_:1},8,["isLoading"])):h("",!0)])]),_:1},8,["fields"])):h("",!0)])]),_:1})]),o(g)?(d(),_(k,{key:0,confirmation:"",onClose:e[2]||(e[2]=a=>g.value=!1)},{header:r(()=>{var a,s;return[l("h3",fe,m((s=(a=o(c))==null?void 0:a.body)==null?void 0:s.accountDeleteTitle),1)]}),footer:r(()=>{var a,s;return[w(n,{"data-qa":"profile-modal-btn-cancel",onClick:e[1]||(e[1]=B=>g.value=!1)},{default:r(()=>[b(m(o(f)("cancel")),1)]),_:1}),(s=(a=o(c))==null?void 0:a.body)!=null&&s.accountDeletePossible?(d(),_(n,{key:0,variant:"danger","data-qa":"profile-modal-btn-remove",onClick:H},{default:r(()=>[b(m(o(f)("profile-remove-remove-btn")),1)]),_:1})):h("",!0)]}),default:r(()=>{var a,s;return[l("div",{"data-dd-privacy":"mask",innerHTML:(s=(a=o(c))==null?void 0:a.body)==null?void 0:s.accountDeleteText},null,8,_e)]}),_:1})):h("",!0)],64)}}}),he=ne(ue,[["__scopeId","data-v-ac50cb11"]]);export{he as default};
2//# sourceMappingURL=bh6mB8Xs.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.