PageSourceSearch

https://www.tryexponent.com/_next/static/chunks/pages/invite/[code]-44b2c7a78f2ba3c5.js

js tryexponent.com collected 2026-09-24 18:30:58 UTC 3,494 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9543],{3216:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>h});var a=s(6029),n=s(55729),i=s(81278),l=s(42911),c=s(13771),r=s(6932),o=s(57521),d=s(25961),m=s(16649),x=s(7531);let u=e=>{let{title:t,children:s}=e;return(0,a.jsxs)("div",{className:"h-screen",children:[(0,a.jsx)(l.A,{title:t,noindex:!0}),(0,a.jsx)("div",{className:"mx-auto py-20 px-8 flex flex-col items-center md:w-1/2 ",children:s})]})},h=()=>{let[e,t]=(0,n.useState)(!0),[s,l]=(0,n.useState)(!0),[h,b]=(0,n.useState)(null),[p,g]=(0,n.useState)(!1),[f,y]=(0,n.useState)(null),{tracker:v}=(0,o.st)(),{currentUser:j,hasSubscription:w,dispatch:N}=(0,o.Us)(),_=(0,i.useRouter)(),{query:{code:k,auto:A}}=_,S=(0,n.useCallback)(e=>{N({type:"updateSubscription",payload:{hasSubscription:!0,...(null==e?void 0:e.slug)in m.AIOrgAllowList&&{hasAiAccess:!0}}})},[N]);(0,n.useEffect)(()=>{k&&(async()=>{try{let e=await (0,d.Pue)(k);if(l(e.valid),b(e.org),e.valid&&A)try{let t=await (0,d.L33)(k);t&&S(e.org),g(t)}catch(e){y(e)}}catch(e){l(!1),y(e)}t(!1)})()},[k,A,S]),(0,n.useEffect)(()=>{v.viewInviteCodePage()},[v]);let E=async()=>{if(j)try{let e=await (0,d.L33)(k);e&&S(h),g(e)}catch(e){y(e)}else _.push("/signup?returnPath=".concat(encodeURIComponent("/invite/".concat(k,"?auto=1"))))};return e?(0,a.jsx)(u,{title:"Validating...",children:(0,a.jsx)(r.y,{})}):!p&&s?(0,a.jsx)(u,{title:"You've been invited to ".concat((0,x.JH)()),children:(0,a.jsxs)("div",{className:"max-w-lg flex flex-col justify-center text-center rounded-lg bg-white shadow px-4 py-5 sm:p-6",children:[(0,a.jsx)("h1",{className:"mb-5 text-xl md:text-2xl text-center font-bold text-gray-900",children:(null==h?void 0:h.name)?"".concat(null==h?void 0:h.name," invited you to join ").concat((0,x.JH)()):"You've been invited to join ".concat((0,x.JH)())}),(0,a.jsx)("p",{className:"mb-6 text-sm md:text-base text-center text-gray-500 font-medium leading-tight",children:(null==h?void 0:h.name)?"Get free access to premium features on ".concat((0,x.JH)()," thanks to ").concat(null==h?void 0:h.name,"."):"Get free access to premium features on ".concat((0,x.JH)(),".")}),(0,a.jsx)(c.Ay,{size:c.lO.LARGE,disabled:w,onClick:E,children:"Activate membership"}),w&&(0,a.jsx)("p",{className:"my-6 text-sm text-center font-medium leading-tight text-gray-500 md:text-base",children:"Looks like you’re already an ".concat((0,x.JH)()," member.\n              This is only valid for someone who does not yet have an ").concat((0,x.JH)()," membership.")})]})}):p||s?p?(0,a.jsxs)(u,{title:"You're In!",children:[(0,a.jsx)("h1",{className:"mb-5 text-xl text-center font-bold text-gray-900 md:text-4xl",children:"Success!"}),(0,a.jsx)("p",{className:"mb-6 text-sm font-medium leading-tight text-gray-500 md:text-base",children:"Your ".concat((0,x.JH)()," membership has been activated.")}),(0,a.jsx)(c.Ay,{size:c.lO.LARGE,href:"/",children:"Start exploring"})]}):null:(0,a.jsxs)(u,{title:"Invalid membership link",children:[(0,a.jsx)("p",{className:"mb-6 text-sm font-medium leading-tight text-gray-500 md:text-base",children:"Sorry, this doesn’t seem to be a valid membership link"}),f&&(0,a.jsx)("p",{className:"mb-6 text-sm font-medium leading-tight text-gray-500 md:text-base",children:f.message})]})}},64353:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/invite/[code]",function(){return s(3216)}])}},e=>{e.O(0,[6593,636,8792],()=>e(e.s=64353)),_N_E=e.O()}]);
2//# sourceMappingURL=[code]-44b2c7a78f2ba3c5.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.