1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7930],{45977:function(o,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=r(91373);let i=(0,n.Z)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},84945:function(o,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/onboarding-rooms/join-room",function(){return r(81155)}])},81155:function(o,e,r){"use strict";r.r(e);var n=r(85893),i=r(36822),t=r(15861),a=r(98456),s=r(9008),l=r.n(s),d=r(67294),u=r(11163),c=r(9473),m=r(86501),g=r(50504),p=r(78057),h=r(70384),v=r(70970),w=r(95715),y=r(70441),f=r(88319);let x=()=>{let o=(0,u.useRouter)(),e=(0,w.a)(),r=(0,c.I0)(),[s,x]=(0,d.useState)("waiting"),_=(0,d.useRef)(!1);return(0,d.useEffect)(()=>{if(!o.isReady||e.loading||!e.user)return;let n=o.query.token;if("string"!=typeof n||!n){m.ZP.error("Missing or invalid room link."),x("error"),o.replace("/app/onboarding-rooms/my-rooms");return}_.current||(_.current=!0,x("claiming"),(async()=>{var e,i,t,a;try{let t=await g.ZP.post(p.Z.onboardingRoomShareClaim,{token:n});if(!(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.status))throw Error((null==t?void 0:null===(i=t.data)||void 0===i?void 0:i.message)||"Could not use this link");let a=t.data.data||{},{brandId:s,openSubmission:l,isBrandOwner:d}=a;s&&(window.localStorage.setItem("employer_brand_id",s),d?window.localStorage.removeItem(y.mj):window.localStorage.setItem(y.mj,s)),r((0,v.Wr)(s||null)),m.ZP.success(t.data.message||"Opening your onboarding room."),x("done");let u=l?encodeURIComponent(l):"";o.replace(u?"/app/onboarding-rooms/my-rooms?submission=".concat(u):"/app/onboarding-rooms/my-rooms")}catch(e){m.ZP.error((null==e?void 0:null===(t=e.response)||void 0===t?void 0:null===(a=t.data)||void 0===a?void 0:a.message)||(null==e?void 0:e.message)||"This link is invalid or expired."),x("error"),o.replace("/app/onboarding-rooms/my-rooms")}})())},[o.isReady,o.query.token,e.loading,e.user,r,o]),(0,n.jsxs)(f.Z,{children:[(0,n.jsx)(l(),{children:(0,n.jsx)("title",{children:(0,h.Mh)("Join onboarding room")})}),(0,n.jsx)(i.Z,{sx:{py:6,textAlign:"center"},children:"error"===s?(0,n.jsx)(t.Z,{color:"text.secondary",children:"Redirectingâ¦"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.Z,{sx:{mb:2}}),(0,n.jsx)(t.Z,{children:"waiting"===s?"Loadingâ¦":"Confirming your accessâ¦"})]})})]})};x.authGuard=!0,e.default=x}},function(o){o.O(0,[6310,7533,8491,1427,8515,3541,2881,8319,9774,2888,179],function(){return o(o.s=84945)}),_N_E=o.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.