PageSourceSearch

https://www.enniskillenrfc.com/_next/static/chunks/3362.a85d4ab2f2091a10.js

js enniskillenrfc.com collected 2026-09-25 01:44:52 UTC 2,659 bytes, 4 lines download raw bytes

1
2!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]="c012156f-097c-53f0-821e-c11ecee2636b")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[981,2534,3362,7050],{7050:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var s=r(79621),n=r.n(s),a=r(24548),o=r.n(a),i=r(94369),h=r(72534);let l=e=>new Promise(t=>{if(e.session&&e.session.jwt)try{let{jwt:r}=e.session,{exp:s}=n().decode(r);if(Date.now()/1e3<s)o().info("checkToken: Token is valid, returning it"),t(r);else o().info("checkToken: Token has expired, attempting to refresh"),new Promise((t,s)=>{(0,i.A)("v2/auth/jwt/refresh",{method:"POST",headers:{...(0,h.default)(e),Authorization:`Bearer ${r}`}}).then(e=>{if(201===e.status)return e.json();throw Error(`Refresh failed with status code: ${e.status}`)}).then(e=>{let{token:r}=e;t(r)}).catch(e=>{s(e)})}).then(r=>{e.session.jwt=r,t(r)}).catch(r=>{o().error("checkToken: error refreshing token",{error:r}),delete e.session.jwt,t(null)})}catch(r){o().error("checkToken: error decoding token",{error:r}),delete e.session.jwt,t(null)}else o().info("checkToken: Session has no token to check"),t(null)})},24548:(e,t,r)=>{"use strict";r(99742).env.INTEGRATION_TESTING;e.exports={info:()=>null,error:()=>null}},72534:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var s=r(99742);let n=e=>{if(!e||!e.headers)return{};let t={};e.headers["user-agent"]&&(t["User-Agent"]=e.headers["user-agent"]);let r=s.env.NEXT_BUILD_ID||"dev",n=`${e.httpVersion||"1.1"} ClubWebsiteJS (${r})`;return t.Via=e.headers.via?`${e.headers.via}, ${n}`:n,t}},83362:(e,t,r)=>{"use strict";r.d(t,{makeAPIRequest:()=>h,makeIsomorphicApiRequest:()=>l});var s=r(11164),n=r(24548),a=r.n(n);r(7050);var o=r(94369),i=r(72534);let h=o.A,l=async(e,t,r)=>{if((0,s.default)()){let s=t||{};return r&&(s.headers={...(0,i.default)(r),...s.headers||{}}),h(e,s)}let n=`/api/${e.replace(/^\/+/,"")}`;a().info("Proxying API request",{url:n});let o=t||{};return o.headers=o.headers||{},o.headers["Content-Type"]="application/json",fetch(n,{credentials:"include",...o})}},84593:()=>{},94369:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var s=r(24548),n=r.n(s),a=r(99742);let o=async(e,t)=>{let r=t||{};return r.headers=r.headers||{},r.headers["Content-Type"]="application/json",r.headers["X-Api-Key"]=a.env.API_KEY,r.headers["X-Api-Secret"]=a.env.API_SECRET,n().info("making API request",{url:`https://${a.env.API_DOMAIN}/${e}`}),fetch(`https://${a.env.API_DOMAIN}/${e}`,r)}}}]);
4//# debugId=c012156f-097c-53f0-821e-c11ecee2636b

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.