PageSourceSearch

https://www.fightrealm.com/_next/static/chunks/pages/groups/join-263cfeed17118d74.js

js fightrealm.com collected 2026-09-24 14:44:16 UTC 5,919 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0e93432a-a87f-4bff-9d21-2d959f94b2a5",e._sentryDebugIdIdentifier="sentry-dbid-0e93432a-a87f-4bff-9d21-2d959f94b2a5")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6853],{20453:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/groups/join",function(){return n(88835)}])},54828:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(30137),i=n(93128),o=n(97582),s=n(85893),a=n(67294),l=n(9008),c=n.n(l),u=n(11163),d=n(67814),m=n(59417),g=n(23274),p=n(85838),f=n(86501),y=n(14522),h=n(12726),v=n(61153),x=n(33649);function j(e){var t,n,l,j,w,_,b=e.isLoggedIn,S=e.joinInviteSeo,I=null!==(t=null==S?void 0:S.canonicalUrl)&&void 0!==t?t:(0,v.BY)("/groups/join"),N=null!==(n=null==S?void 0:S.ogImageUrl)&&void 0!==n?n:(0,v.BY)("/img/preview/groups-preview.webp"),R=null===(l=null==S?void 0:S.usesDefaultOgImage)||void 0===l||l,k=null!==(j=null==S?void 0:S.title)&&void 0!==j?j:"Join a group | Fight Realm",E=null!==(w=null==S?void 0:S.description)&&void 0!==w?w:"Use your Fight Realm group invite to sign in and join a private fantasy group. Compete with your crew on picks and leaderboards.",F=null!==(_=null==S?void 0:S.ogImageAlt)&&void 0!==_?_:"Join a Fight Realm group with your invite",P=(0,u.useRouter)(),D=P.query.key,L=(0,a.useMemo)(function(){var e=Array.isArray(D)?D[0]:D;return"string"==typeof e?e.trim():""},[D]),O=(0,i._)((0,a.useState)(!1),2),J=O[0],U=O[1],Z=(0,i._)((0,a.useState)(!1),2),q=Z[0],G=Z[1],A=(0,a.useRef)(!1),C=(0,y.Z)(),M=C.groupsVisible,T=C.isLoading;if((0,a.useEffect)(function(){T||M||P.replace(p.ln.HOME)},[T,M,P]),(0,a.useEffect)(function(){if(P.isReady){if(!L){P.replace(p.ln.GROUPS);return}if(!b){try{sessionStorage.setItem(p.nq,L)}catch(e){}q||(G(!0),window.dispatchEvent(new Event("auth:required")));return}sessionStorage.removeItem(p.nq);try{var e,t=sessionStorage.getItem(p.FL),n=!1;try{var i=t?JSON.parse(t):null;(null==i?void 0:i.key)===L&&"number"==typeof(null==i?void 0:i.ts)&&Date.now()-i.ts<15e3&&(n=!0)}catch(e){}if(n)return;sessionStorage.setItem(p.FL,JSON.stringify({key:L,ts:Date.now()}))}catch(e){}A.current||(A.current=!0,U(!0),(e=(0,r._)(function(){var e,t,n;return(0,o.Jh)(this,function(i){switch(i.label){case 0:e=new Set,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,(0,g.a_)()];case 2:return t=i.sent(),n=(0,x.xT)(t),e=(0,x.L)(n),[3,4];case 3:return i.sent(),[3,4];case 4:var s;return[2,(0,g.Ky)(L).then((s=(0,r._)(function(t){var n;return(0,o.Jh)(this,function(r){switch(r.label){case 0:return[4,(0,x.r_)(t,L,e)];case 1:n=r.sent();try{sessionStorage.setItem(p.tY,"1")}catch(e){}return n?(f.ZP.success("Successfully joined the group!"),P.replace("/groups/".concat(n))):(f.ZP.success("Join request processed."),P.replace(p.ln.GROUPS)),[2]}})}),function(e){return s.apply(this,arguments)})).catch(function(e){try{sessionStorage.removeItem(p.FL)}catch(e){}var t,n,r,i,o,s,a,l=null!==(a=null!==(s=null!==(o=null==e?void 0:null===(t=e.response)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:n.detail)&&void 0!==o?o:null==e?void 0:null===(r=e.response)||void 0===r?void 0:null===(i=r.data)||void 0===i?void 0:i.error)&&void 0!==s?s:null==e?void 0:e.message)&&void 0!==a?a:"Failed to join group.";f.ZP.error(l),P.replace(p.ln.GROUPS)}).finally(function(){try{sessionStorage.removeItem(p.FL)}catch(e){}U(!1),A.current=!1})]}})}),function(){return e.apply(this,arguments)})())}},[P.isReady,L,b,P,q]),T||!M)return(0,s.jsx)(h.Z,{});var Y=P.isReady&&L&&!J&&!b;return(0,s.jsxs)(a.Fragment,{children:[(0,s.jsxs)(c(),{children:[(0,s.jsx)("title",{children:k}),(0,s.jsx)("meta",{name:"description",content:E}),(0,s.jsx)("link",{rel:"canonical",href:I}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{property:"og:url",content:I}),(0,s.jsx)("meta",{property:"og:title",content:k}),(0,s.jsx)("meta",{property:"og:description",content:E}),(0,s.jsx)("meta",{property:"og:site_name",content:"Fight Realm"}),(0,s.jsx)("meta",{property:"og:image",content:N}),R?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{property:"og:image:width",content:"1906"}),(0,s.jsx)("meta",{property:"og:image:height",content:"930"}),(0,s.jsx)("meta",{property:"og:image:type",content:"image/webp"})]}):null,(0,s.jsx)("meta",{property:"og:image:alt",content:F}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,s.jsx)("meta",{name:"twitter:domain",content:"fightrealm.com"}),(0,s.jsx)("meta",{name:"twitter:url",content:I}),(0,s.jsx)("meta",{name:"twitter:title",content:k}),(0,s.jsx)("meta",{name:"twitter:description",content:E}),(0,s.jsx)("meta",{name:"twitter:image",content:N}),(0,s.jsx)("meta",{name:"twitter:image:alt",content:F}),(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,s.jsxs)("div",{className:"flex min-h-[40vh] flex-col items-center justify-center px-4 py-12",children:[J&&(0,s.jsxs)("div",{className:"flex flex-col items-center gap-4 text-gray-400",children:[(0,s.jsx)(d.G,{icon:m.LM3,className:"h-10 w-10 animate-spin"}),(0,s.jsx)("p",{children:"Joining group..."})]}),Y&&(0,s.jsxs)("div",{className:"flex max-w-md flex-col items-center gap-4 text-center",children:[(0,s.jsx)(d.G,{icon:m.DD4,className:"h-12 w-12 text-gray-500"}),(0,s.jsx)("h1",{className:"text-xl font-semibold text-white",children:"Log in to join the group"}),(0,s.jsx)("p",{className:"text-gray-400",children:"Use the join key from your invite to join this group. Please log in or sign up to continue."})]})]})]},P.asPath)}},88835:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return i}});var r=n(54828),i=!0;t.default=r.Z}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=20453)}),_N_E=e.O()}]);
2//# sourceMappingURL=join-263cfeed17118d74.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.