1import{j as i,C as S,R as me,e as Te}from"./vendor-antd-BBP9elV-.js";import{d as Ve,r as Le}from"./vendor-redux-KLK4bked.js";import{u as Ae,M as m}from"./vendor-intl-BdRQ4zCJ.js";import{P as G,B as U,H as Ne,M as Pe}from"./ra-packages-common-CvkwZ4BT.js";import{c as te,eL as M,E as O,dF as he,U as Ee,s as Me,l as X,d as Oe,S as we,W as Se,K as ze}from"./index-B5sQTxjn.js";import{b as ne,c as De,d as Be,a as Ge}from"./Profile-KHbWqC6V.js";import{B as We}from"./Breadcrumbs-C78SqGIG.js";import{P as Qe}from"./PageHead-E4LQXDHZ.js";import{H as Fe,F as He,G as Ke}from"./SocialLogin-tYYa4Qcz.js";import{C as ie}from"./Confirmation-Db_mDm9e.js";import{p as ve,a as ke,b as ge,c as be,d as fe,e as pe,f as qe,g as Je,h as Xe}from"./Profile.module-C-Zw7eyX.js";import{u as Ye}from"./vendor-router-qVASvVEu.js";import"./vendor-react-fAf-fo_p.js";import"./ra-packages-icons-CuBFMsoF.js";import"./ra-packages-feutils-BT9hW3Hl.js";import"./vendor-react-markdown-DTBd1y6J.js";import"./vendor-micromark-D3BnM3h_.js";import"./vendor-hashbase-DgZ-AY2q.js";import"./vendor-misc-1-GGAxc6aE.js";import"./react-intersection-observer-Cu_qKbcA.js";import"./vendor-apollo-CkY1D5Bj.js";import"./vendor-sentry-browser-BvxBMkSh.js";import"./withTranslatedRouter-35ow75dd.js";var ae={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateUserAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateUserAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"domain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"entityId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:189}};ae.loc.source={body:`mutation updateUserAccount($id: ID!, $userId: ID!, $password: String) { 2 updateUserAccount(id: $id, userId: $userId, password: $password) { 3 id 4 status 5 domain 6 entityId 7 } 8} 9`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Y(n,e){if(n.kind==="FragmentSpread")e.add(n.name.value);else if(n.kind==="VariableDefinition"){var a=n.type;a.kind==="NamedType"&&e.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(t){Y(t,e)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(t){Y(t,e)}),n.definitions&&n.definitions.forEach(function(t){Y(t,e)})}var xe={};(function(){ae.definitions.forEach(function(e){if(e.name){var a=new Set;Y(e,a),xe[e.name.value]=a}})})();function Ie(n,e){for(var a=0;a<n.definitions.length;a++){var t=n.definitions[a];if(t.name&&t.name.value==e)return t}}function Ze(n,e){var a={kind:n.kind,definitions:[Ie(n,e)]};n.hasOwnProperty("loc")&&(a.loc=n.loc);var t=xe[e]||new Set,c=new Set,o=new Set;for(t.forEach(function(s){o.add(s)});o.size>0;){var r=o;o=new Set,r.forEach(function(s){if(!c.has(s)){c.add(s);var l=xe[s]||new Set;l.forEach(function(u){o.add(u)})}})}return c.forEach(function(s){var l=Ie(n,s);l&&a.definitions.push(l)}),a}Ze(ae,"updateUserAccount");var oe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"createUserAccount"}
9,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"domain"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"password"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createUserAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}},{kind:"Argument",name:{kind:"Name",value:"domain"},value:{kind:"Variable",name:{kind:"Name",value:"domain"}}},{kind:"Argument",name:{kind:"Name",value:"password"},value:{kind:"Variable",name:{kind:"Name",value:"password"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"domain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"entityId"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:205}};oe.loc.source={body:`mutation createUserAccount($userId: ID!, $domain: String!, $password: String) { 10 createUserAccount(userId: $userId, domain: $domain, password: $password) { 11 id 12 status 13 domain 14 entityId 15 } 16} 17`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Z(n,e){if(n.kind==="FragmentSpread")e.add(n.name.value);else if(n.kind==="VariableDefinition"){var a=n.type;a.kind==="NamedType"&&e.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(t){Z(t,e)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(t){Z(t,e)}),n.definitions&&n.definitions.forEach(function(t){Z(t,e)})}var ye={};(function(){oe.definitions.forEach(function(e){if(e.name){var a=new Set;Z(e,a),ye[e.name.value]=a}})})();function Ue(n,e){for(var a=0;a<n.definitions.length;a++){var t=n.definitions[a];if(t.name&&t.name.value==e)return t}}function en(n,e){var a={kind:n.kind,definitions:[Ue(n,e)]};n.hasOwnProperty("loc")&&(a.loc=n.loc);var t=ye[e]||new Set,c=new Set,o=new Set;for(t.forEach(function(s){o.add(s)});o.size>0;){var r=o;o=new Set,r.forEach(function(s){if(!c.has(s)){c.add(s);var l=ye[s]||new Set;l.forEach(function(u){o.add(u)})}})}return c.forEach(function(s){var l=Ue(n,s);l&&a.definitions.push(l)}),a}en(oe,"createUserAccount");var se={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"deleteUserAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteUserAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"userId"},value:{kind:"Variable",name:{kind:"Name",value:"userId"}}}],directives:[]}]}}],loc:{start:0,end:101}};se.loc.source={body:`mutation deleteUserAccount($id: ID!, $userId: ID!) { 18 deleteUserAccount(id: $id, userId: $userId) 19} 20`,name:"GraphQL request",locationOffset:{line:1,column:1}};function ee(n,e){if(n.kind==="FragmentSpread")e.add(n.name.value);else if(n.kind==="VariableDefinition"){var a=n.type;a.kind==="NamedType"&&e.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(t){ee(t,e)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(t){ee(t,e)}),n.definitions&&n.definitions.forEach(function(t){ee(t,e)})}var je={};(function(){se.definitions.forEach(function(e){if(e.name){var a=new Set;ee(e,a),je[e.name.value]=a}})})();function Ce(n,e){for(var a=0;a<n.definitions.length;a++){var t=n.definitions[a];if(t.name&&t.name.value==e)return t}}function nn(n,e){var a={kind:n.kind,definitions:[Ce(n,e)]};n.hasOwnProperty("loc")&&(a.loc=n.loc);var t=je[e]||new Set,c=new Set,o=new Set;for(t.forEach(function(s){o.add(s)});o.size>0;){var r=o;o=new Set,r.forEach(function(s){if(!c.has(s)){c.add(s);var l=je[s]||new Set;l.forEach(function(u){o.add(u)})}})}
20return c.forEach(function(s){var l=Ce(n,s);l&&a.definitions.push(l)}),a}nn(se,"deleteUserAccount");function Re(n){const e=te.c(31),{title:a,linkText:t,account:c,user:o,hasRaAccount:r,onLoading:s,loading:l,refetchUser:u,createUserAccount:j,deleteUserAccount:d}=n,p=l===void 0?!1:l,v=Ae();let D;e[0]!==c||e[1]!==j||e[2]!==d||e[3]!==s||e[4]!==u||e[5]!==o.id?(D=b=>w=>{s(!0),j({variables:{userId:o.id,domain:M.account.domain.RISEART,password:w.password}}).then(()=>{O(()=>d({variables:{id:c.id,userId:o.id}}).then(()=>{O(()=>u().then(()=>{s(!1),b()}).catch(()=>s(!1)))}).catch(()=>s(!1)))}).catch(()=>s(!1))},e[0]=c,e[1]=j,e[2]=d,e[3]=s,e[4]=u,e[5]=o.id,e[6]=D):D=e[6];const A=D;let x;e[7]!==c||e[8]!==d||e[9]!==s||e[10]!==u||e[11]!==o.id?(x=b=>{s(!0),d({variables:{id:c.id,userId:o.id}}).then(()=>{O(()=>u().then(()=>{s(!1),b()}).catch(()=>s(!1)))}).catch(()=>s(!1))},e[7]=c,e[8]=d,e[9]=s,e[10]=u,e[11]=o.id,e[12]=x):x=e[12];const h=x;let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N=i.jsx(i.Fragment,{}),e[13]=N):N=e[13];const I=!r;let k;e[14]!==A||e[15]!==r||e[16]!==v||e[17]!==o?(k=b=>{const{handleClose:w}=b;return r?v.formatMessage({id:"components.me.account.unlinkConfirmationBody"}):i.jsxs("div",{className:ve,children:[i.jsx(G,{children:v.formatMessage({id:"components.me.account.createAccountDescription"})}),i.jsx(he,{className:ge,settings:ne.settings,fields:ne.fields,initialValues:o,onSubmit:A(w),buttonProps:{size:"medium",width:"auto"},submitActionLabel:v.formatMessage({id:"forms.common.save"}),intl:v,actionWrapperClassName:ke,additionalButton:()=>i.jsx(U,{type:"secondary",size:"medium",onClick:w,children:v.formatMessage({id:"forms.common.close"})})})]})},e[14]=A,e[15]=r,e[16]=v,e[17]=o,e[18]=k):k=e[18];let g;e[19]!==h||e[20]!==r?(g=r?{onConfirm:h}:null,e[19]=h,e[20]=r,e[21]=g):g=e[21];let f;e[22]!==t?(f=i.jsx(U,{type:"secondary",width:"container",size:"medium",className:be,children:t}),e[22]=t,e[23]=f):f=e[23];let y;return e[24]!==p||e[25]!==I||e[26]!==k||e[27]!==g||e[28]!==f||e[29]!==a?(y=i.jsx(ie,{closeComponent:N,title:a,hideFooter:I,loading:p,body:k,...g,children:f}),e[24]=p,e[25]=I,e[26]=k,e[27]=g,e[28]=f,e[29]=a,e[30]=y):y=e[30],y}function tn(n){const e=te.c(3),{setFacebookToken:a}=n;let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(m,{id:"components.auth.facebook_signin"}),e[0]=t):t=e[0];let c;return e[1]!==a?(c=i.jsx(He,{setToken:a,children:t}),e[1]=a,e[2]=c):c=e[2],c}function an(n){const e=te.c(3),{setGoogleToken:a}=n;let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(m,{id:"components.auth.google_signin"}),e[0]=t):t=e[0];let c;return e[1]!==a?(c=i.jsx(Ke,{setToken:a,text:"signup_with",children:t}),e[1]=a,e[2]=c):c=e[2],c}const on=Fe(tn),sn=Fe(an);function cn(n){const e=te.c(79),{user:a,data:t,loading:c,onLoading:o,refetchUser:r,updateUser:s,createUserAccount:l,updateUserAccount:u,deleteUserAccount:j}=n,d=c===void 0?!1:c,p=Ae();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v=Ee.byRouteKey("myAccount"),e[0]=v):v=e[0];const D=v;let A;e[1]!==o||e[2]!==r?(A=()=>{O(()=>r().then(()=>o(!1)).catch(()=>o(!1)))},e[1]=o,e[2]=r,e[3]=A):A=e[3];const x=A;let h;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=[16,16],e[4]=h):h=e[4];let N;e[5]===Symbol.for("react.memo_cache_sentinel")?(N=i.jsx(S,{xs:24,md:4,className:fe,children:i.jsx(m,{id:"components.me.account.emailLabel",children:gn})}),e[5]=N):N=e[5];const I=t.raAccount&&t.raAccount.entityId||a.email;let k;e[6]!==I?(k=i.jsx(S,{xs:24,md:8,children:I}),e[6]=I,e[7]=k):k=e[7];let g;e[8]!==p||e[9]!==d||e[10]!==o||e[11]!==r||e[12]!==s||e[13]!==a.id?(g=i.jsx(S,{xs:24,md:6,children:i.jsx(m,{id:"components.me.account.changeEmail",children:z=>i.jsx(ie,{closeComponent:i.jsx(i.Fragment,{}),hideFooter:!0,title:z,loading:d,body:ue=>{const{handleClose:B}=ue;return i.jsx("div",{className:ve,children:i.jsx(he,{className:ge,settings:De.settings,fields:De.fields,onSubmit:J=>{o(!0),s({variables:{id:a.id,inputUser:{email:J.email}}}).then(()=>{O(()=>r().then(()=>{o(!1),B()}).catch(()=>o(!1)))}).catch(()=>o(!1))},buttonProps:{size:"medium",width:"auto"},submitActionLabel:p.formatMessage({id:"forms.common.save"}),intl:p,actionWrapperClassName:ke,additionalButton:()=>i.jsx(U,{type:"secondary",size:"medium",onClick:B,children:p.formatMessage({id:"forms.common.close"})})})})},children:i.jsx(U,{type:"secondary",width:"container",size:"medium",className:be,children:z})})})}),e[8]=p,e[9]=d,e[10]=o,e[11]=r,e[12]=s,e[13]=a.id,e[14]=g):g=e[14];const f=t.raAccount?"components.me.account.changePassword":"components.me.account.setPassword";let y;e[15]!==l||e[16]!==t||e[17]!==p||e[18]!==d||e[19]!==o||e[20]!==r||e[21]!==u||e[22]!==a?(y=z=>i.jsx(ie,{closeComponent:i.jsx(i.Fragment,{}),hideFooter:!0,title:z,loading:d,body:ue=>{const{handleClose:B}=ue;return i.jsx("div",{className:ve,children:i.jsx(he,{className:ge,settings:ne.settings,fields:ne.fields,initialValues:a,customData:{countryCode:t&&t.countryCode},onSubmit:J=>{o(!0);const _e=t.raAccount?u:l,$e=t.raAccount?{id:t.raAccount.id,userId:a.id,password:J.password}:{userId:a.id,domain:M.account.domain.RISEART,password:J.password};_e({variables:$e}).then(()=>{B(),O(()=>r().then(()=>o(!1)).catch(()=>o(!1)))}).catch(()=>o(!1))},buttonProps:{size:"medium",width:"auto"},submitActionLabel:p.formatMessage({id:"forms.common.save"}),intl:p,actionWrapperClassName:ke,additionalButton:()=>i.jsx(U,{type:"secondary",size:"medium",onClick:B,children:p.formatMessage({id:"forms.common.close"})})})})},children:i.jsx(U,{type:"secondary",width:"container",size:"medium",className:be,children:z})}),e[15]=l,e[16]=t,e[17]=p,e[18]=d,e[19]=o,e[20]=r,e[21]=u,e[22]=a,e[23]=y):y=e[23];let b;e[24]!==y||e[25]!==f?(b=i.jsx(S,{xs:24,md:6,children:i.jsx(m,{id:f,children:y})}),e[24]=y,e[25]=f,e[26]=b):b=e[26];let w;e[27]!==b||e[28]!==k||e[29]!==g?(w=i.jsx("div",{className:pe,children:i.jsxs(me,{justify:"space-between",align:"middle",gutter:h,children:[N,k,g,b]})}),e[27]=b,e[28]=k,e[29]=g,e[30]=w):w=e[30];let W;e[31]===Symbol.for("react.memo_cache_sentinel")?(W=[16,16],e[31]=W):W=e[31];let Q;e[32]===Symbol.for("react.memo_cache_sentinel")?(Q=i.jsx(S,{xs:24,md:4,className:fe,children:i.jsx(m,{id:"components.me.account.facebook.label",children:kn})}),e[32]=Q):Q=e[32];const ce=t.fbAccount?"components.me.account.linked":"components.me.account.notLinked";let C;e[33]!==ce?(C=i.jsx("strong",{children:i.jsx(m,{id:ce,children:vn})}),e[33]=ce,e[34]=C):C=e[34];const re=t.fbAccount?"components.me.account.facebook.descriptionLinked":"components.me.account.facebook.descriptionUnlinked";let R;e[35]!==re?(R=i.jsx(G,{children:i.jsx(m,{id:re,children:hn})}),e[35]=re,e[36]=R):R=e[36];let E;e[37]!==C||e[38]!==R?(E=i.jsxs(S,{xs:24,md:12,children:[C,R]}),e[37]=C,e[38]=R,e[39]=E):E=e[39];let F;e[40]!==l||e[41]!==t.fbAccount||e[42]!==t.raAccount||e[43]!==j||e[44]!==x||e[45]!==d||e[46]!==o||e[47]!==r||e[48]!==a?(F=i.jsx(S,{xs:24,md:8,children:t.fbAccount?i.jsx(Re,{hasRaAccount:t.raAccount,account:t.fbAccount,user:a,loading:d,onLoading:o,title:i.jsx(m,{id:"components.me.account.unlinkTitle",values:{network:i.jsx(m,{id:"components.me.account.facebook.label"})},children:pn}),linkText:i.jsx(m,{id:"components.me.account.unlink",values:{network:i.jsx(m,{id:"components.me.account.facebook.label"})},children:fn}),refetchUser:r,createUserAccount:l,deleteUserAccount:j}):i.jsx(on,{authParams:{forward:D},linkAccount:!0,onLoadingChange:o,onComplete:x})}),e[40]=l,e[41]=t.fbAccount,e[42]=t.raAccount,e[43]=j,e[44]=x,e[45]=d,e[46]=o,e[47]=r,e[48]=a,e[49]=F):F=e[49];let _;e[50]!==E||e[51]!==F?(_=i.jsx("div",{className:pe,children:i.jsxs(me,{justify:"space-between",align:"middle",gutter:W,children:[Q,E,F]})}),e[50]=E,e[51]=F,e[52]=_):_=e[52];let H;e[53]===Symbol.for("react.memo_cache_sentinel")?(H=[16,16],e[53]=H):H=e[53];let K;e[54]===Symbol.for("react.memo_cache_sentinel")?(K=i.jsx(S,{xs:24,md:4,className:fe,children:i.jsx(m,{id:"components.me.account.google.label",children:mn})}),e[54]=K):K=e[54];const le=t.googleAccount?"components.me.account.linked":"components.me.account.notLinked";let $;e[55]!==le?($=i.jsx("strong",{children:i.jsx(m,{id:le,children:un})}),e[55]=le,e[56]=$):$=e[56];const de=t.googleAccount?"components.me.account.google.descriptionLinked":"components.me.account.google.descriptionUnlinked";let T;e[57]!==de?(T=i.jsx(G,{children:i.jsx(m,{id:de,children:dn})}),e[57]=de,e[58]=T):T=e[58];let V;e[59]!==$||e[60]!==T?(V=i.jsxs(S,{xs:24,md:12,children:[$,T]}),e[59]=$,e[60]=T,e[61]=V):V=e[61];let L;e[62]!==l||e[63]!==t.googleAccount||e[64]!==t.raAccount||e[65]!==j||e[66]!==x||e[67]!==d||e[68]!==o||e[69]!==r||e[70]!==a?(L=i.jsx(S,{xs:24,md:8,children:t.googleAccount?i.jsx(Re,{hasRaAccount:t.raAccount,account:t.googleAccount,user:a,loading:d,onLoading:o,title:i.jsx(m,{id:"components.me.account.unlinkTitle",values:{network:i.jsx(m,{id:"components.me.account.google.label"})},children:ln}),linkText:i.jsx(m,{id:"components.me.account.unlink",values:{network:i.jsx(m,{id:"components.me.account.google.label"})},children:rn}),refetchUser:r,createUserAccount:l,deleteUserAccount:j}):i.jsx(sn,{authParams:{forward:D},linkAccount:!0,onLoadingChange:o,onComplete:x})}),e[62]=l,e[63]=t.googleAccount,e[64]=t.raAccount,e[65]=j,e[66]=x,e[67]=d,e[68]=o,e[69]=r,e[70]=a,e[71]=L):L=e[71];let P;e[72]!==V||e[73]!==L?(P=i.jsx("div",{className:pe,children:i.jsxs(me,{justify:"space-between",align:"middle",gutter:H,children:[K,V,L]})}),e[72]=V,e[73]=L,e[74]=P):P=e[74];let q;return e[75]!==w||e[76]!==_||e[77]!==P?(q=i.jsxs("section",{children:[w,_,P]}),e[75]=w,e[76]=_,e[77]=P,e[78]=q):q=e[78],q}function rn(n){return n}function ln(n){return n}function dn(n){return n}function un(n){return n}function mn(n){return n}function fn(n){return n}function pn(n){return n}function hn(n){return n}function vn(n){return n}function kn(n){return n}function gn(n){return n}function zn(){const n=Ye(),{formatMessage:e}=Ae(),a=Ve(Me),[t,c]=Le.useState(!1),o=e({id:"components.me.account.title"}),[r,{loading:s}]=X(Be),[l,{loading:u}]=X(oe),[j,{loading:d}]=X(ae),[p,{loading:v}]=X(se),{data:D,loading:A,refetch:x}=Oe(Ge,{variables:{id:a},fetchPolicy:"network-only",skip:!a}),{readUser:h}=D||{},{[M.account.domain.RISEART]:N,[M.account.domain.GOOGLE]:I,[M.account.domain.FACEBOOK]:k}=h&&h.accounts&&h.accounts.reduce((f,{domain:y,...b})=>({...f,[y]:b}),{})||{},g=f=>async()=>{f({variables:{id:a,inputUser:{status:M.account.status.SUSPENDED}}}).then(()=>
20{n.push(Ee.byRouteKey("signout"))}).catch(()=>null)};return i.jsxs(i.Fragment,{children:[i.jsxs(we,{padding:"none",children:[i.jsx(Se,{sizes:"narrow",children:i.jsx(We,{links:[{isLink:!1,name:o}]})}),i.jsx(Qe,{children:i.jsx(Ne,{tag:"h2",align:"center",children:o})})]}),i.jsx(we,{children:i.jsx(Se,{sizes:"narrow",className:qe,children:i.jsx(ze,{isActive:!h||t||A||d||v||u||s,children:h?i.jsxs("div",{children:[i.jsx(cn,{data:{raAccount:N,googleAccount:I,fbAccount:k},onLoading:c,loading:t||A||d||v||u||s,user:h,refetchUser:x,updateUser:r,updateUserAccount:j,deleteUserAccount:p,createUserAccount:l}),h.canDeactivate?i.jsxs("section",{className:Je,children:[i.jsx(Ne,{tag:"h3",level:"3",align:"left",children:e({id:"components.me.account.deactivate.title"})}),i.jsx(G,{children:e({id:"components.me.account.deactivate.description1"})}),i.jsx(G,{children:e({id:"components.me.account.deactivate.description2"},{strong:f=>i.jsx("strong",{children:f})})}),i.jsx("div",{className:Xe,children:i.jsx(Pe,{maxWidth:Te,children:f=>i.jsx(ie,{title:e({id:"components.me.account.deactivate.title"}),body:()=>e({id:"components.me.account.deactivate.confirmation"}),onConfirm:g(r),loading:s,children:i.jsx(U,{size:"medium",width:f?"container":"auto",children:e({id:"components.me.account.deactivate.button"})})})})})]}):null]}):null})})})]})}export{zn as MeAccount};
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.