1"use strict";(self.webpackChunkdsers_mvp_accounts=self.webpackChunkdsers_mvp_accounts||[]).push([[396],{14920(t,e,n){n.r(e),n.d(e,{Aar:()=>y});n(14099);var c=n(44777),i=n(75025),s=n(81710),a=n(1059),l=n(42455),o=n(22125),r=n(7905),d=n(9921),u=n(87401),A=n(50714),_=n(74117),v=n(70579);const y=()=>{const{t:t}=(0,_.Bd)(),[e]=(0,u.useQueryParam)("code",u.StringParam),n=(0,o.GV)(a.c.selectors.selectUserInfo),{loading:y,data:I}=(0,d.A)(async()=>{if(!e)return"INVALID_INVATE_CODE";try{var t;const i=await l.Di.checkAgencyInivteCode(e);if(i.code||null===i||void 0===i||null===(t=i.data)||void 0===t||!t.isAvailable)return"INVALID_INVATE_CODE";var c;if(null!==n&&void 0!==n&&null!==(c=n.data)&&void 0!==c&&c.userId){return(await l.Di.activateAgencyForCurrentUser(e)).code?"ACTIVATE_FAILED":"ACTIVATE_SUCCESS"}window.location.href="/accounts/login?agency_invite_code=".concat(e),await(0,r.nR)()}catch(i){return"INVALID_INVATE_CODE"}});return(0,v.jsxs)(i.ob,{title:"Agency Activate Invite",children:[y?(0,v.jsx)(i.RD,{}):null,(0,v.jsx)("div",{style:{maxWidth:860,margin:"40px auto 0"},children:"ACTIVATE_FAILED"===I?(0,v.jsx)(c.Ay,{title:"Agency activate failed, please try again later.",status:"403",extra:(0,v.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"center"},children:(0,v.jsx)(s.A,{onClick:()=>{window.location.reload()},children:"Retry"},"retry")})}):null}),(0,v.jsx)("div",{children:"INVALID_INVATE_CODE"===I?(0,v.jsx)(c.Ay,{title:"The invitation link has expired. Please contact your supplier to generate a new link",status:"403"}):null}),(0,v.jsx)("div",{children:"ACTIVATE_SUCCESS"===I?(0,v.jsx)(c.Ay,{className:A.A.ResultInfo,title:t("accounts_accountsCommon_AgencyActivatedTitle"),subTitle:t("accounts_accountsCommon_AgencyActivatedContent"),status:"success",icon:(0,v.jsx)("img",{style:{width:"100px",height:"100px",marginBottom:"40px"},src:"https://img.dsers.com/marketing/success_icon.png"}),extra:(0,v.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",justifyContent:"center"},children:(0,v.jsx)(s.A,{onClick:()=>{window.location.href="https://www.dsers.com/application/"},children:t("accounts_accountsCommon_AgencyActivatedButton")},"enter")})}):null})]})}},50714(t,e,n){n.d(e,{A:()=>c});const c={ResultInfo:"AgencyActivateRedirect_ResultInfo__qZvrM"}}}]); 2//# sourceMappingURL=../../sourcemaps/static/js/396.bf5695b2.chunk.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.