1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ed1602b5-9af3-4249-852f-9960fb9e54c3",e._sentryDebugIdIdentifier="sentry-dbid-ed1602b5-9af3-4249-852f-9960fb9e54c3")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1685],{78935:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/invitation",function(){return i(72591)}])},72591:function(e,n,i){"use strict";i.r(n);var o=i(31549),s=i(42737),t=i(75432),l=i(61242),a=i(98438),d=i(61158),r=i(57704),c=i(44194);n.default=()=>{var e,n,i,u,v,f,p,m,h;let x=(0,r.useRouter)(),{token:b,org_id:w,role:g}=x.query,{logout:y,isLoggedIn:N,login:j}=(0,t.aC)(),{mutateAsync:k,isPending:_}=(0,s.P2f)(),{data:I}=(0,s.Afw)({id:"string"==typeof w?w:""},{enabled:"string"==typeof w,refetchOnWindowFocus:!1}),{data:C,isFetched:E}=(0,s.ZUJ)({token:"string"==typeof b?b:""},{enabled:"string"==typeof b,refetchOnWindowFocus:!1}),{me:P}=(0,t.Pi)(),S=null==C?void 0:null===(e=C.locateUser)||void 0===e?void 0:e.address,W=null==C?void 0:null===(n=C.locateUser)||void 0===n?void 0:n.token,z=null==I?void 0:null===(i=I.organization)||void 0===i?void 0:i.basicInfo.profileHandle,A=null==C?void 0:null===(u=C.locateUser)||void 0===u?void 0:u.status,D=g?(null==g?void 0:g.toString().toUpperCase().slice(0,1))+(null==g?void 0:g.toString().toLowerCase().slice(1)):"-",U=S&&N&&S!==(null==P?void 0:null===(v=P.privateInfo)||void 0===v?void 0:v.address),F=(0,c.useMemo)(()=>{var e;return!!E&&!!N&&(!S||S===(null==P?void 0:null===(e=P.privateInfo)||void 0===e?void 0:e.address))},[E,S,N,P]),O=()=>{if(!W){(0,l.Am)("Token Not Found","error");return}k({token:W}).then(e=>{var n,i,o;(null==e?void 0:null===(n=e.acceptInvite)||void 0===n?void 0:n.status)===s.nuK.Success?x.push("/"+z+"/admin"):(0,l.Am)(null!==(o=null==e?void 0:null===(i=e.acceptInvite)||void 0===i?void 0:i.status)&&void 0!==o?o:"Something Went Wrong","error")}).catch(e=>{(0,d.Tb)(e,{tags:{"link3-catch-error":"accept invitation error in invitation"}})})};return(0,c.useEffect)(()=>{F&&O()},[F]),(0,o.jsx)("div",{className:"w-full min-h-screen p-6",children:(0,o.jsxs)(l.Kq,{className:"w-full max-w-[760px] shadow-card-rest p-6 rounded-md gap-6 items-center mx-auto",children:[(0,o.jsx)(l.Ee,{src:"/invitation/cover.webp",className:"w-full max-w-[196px]"}),(0,o.jsxs)(l.Kq,{className:"gap-3 items-center",children:[(0,o.jsxs)(l.xv,{variant:"h2",bold:!0,children:["Welcome to join ",(null==I?void 0:null===(p=I.organization)||void 0===p?void 0:null===(f=p.basicInfo)||void 0===f?void 0:f.displayName)||"-","!"]}),(0,o.jsxs)(l.xv,{variant:"body2",children:["Become the ",(0,o.jsx)("span",{className:"font-[600] first-letter:uppercase",children:D})," of"," ",(0,o.jsx)("span",{className:"font-[600]",children:(null==I?void 0:null===(h=I.organization)||void 0===h?void 0:null===(m=h.basicInfo)||void 0===m?void 0:m.displayName)||"-"})," on Link3 now."]})]}),A===s.tD.Success?(0,o.jsxs)(l.kC,{className:"rounded-sm bg-bg-100 justify-center sm:min-w-[500px] p-3 sm:gap-20 gap-2 sm:flex-row flex-col",children:[S&&!F?(0,o.jsxs)(l.xv,{variant:"body4",className:"text-text-subtitle",children:["Your Link3 account is linked to an existing address:"," ",(0,o.jsxs)("span",{className:"font-[600]",children:[(0,a.FP)(S),(0,o.jsx)("br",{}),"Please connect your wallet to verify your address"]})]}):null,(0,o.jsx)(l.zx,{size:"medium",className:"shrink-0",onClick:()=>{U?y():j()},loading:F&&_,children:U?"Switch Account":"Connect Wallet"})]}):(0,o.jsx)(l.xv,{variant:"h3",className:"text-error",semiBold:!0,children:A})]})})}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=78935)}),_N_E=e.O()}]);
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.