PageSourceSearch

https://www.usicsheffield.com/_next/static/chunks/8e485c15b973b3af.js

js usicsheffield.com collected 2026-10-07 03:22:27 UTC 60,152 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function s(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function a(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",a=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c=""),a&&"#"!==a[0]&&(a="#"+a),u&&"?"!==u[0]&&(u="?"+u),i=i.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${i}${u}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return a(e)}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return y},NormalizeError:function(){return b},PageNotFoundError:function(){return v},SP:function(){return p},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return j}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>a.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let p="u">typeof performance,g=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class b extends Error{}class v extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class y extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(18967),i=e.r(52817);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},useLinkStatus:function(){return v}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(90809),o=e.r(43476),a=s._(e.r(71645)),l=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),f=e.r(5550);e.r(33525);let h=e.r(91949),m=e.r(73668),p=e.r(9396);function g(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}function x(t){var r;let n,i,s,[l,x]=(0,a.useOptimistic)(h.IDLE_LINK_STATUS),v=(0,a.useRef)(null),{href:y,as:w,children:j,prefetch:k=null,passHref:_,replace:N,shallow:C,scroll:S,onClick:E,onMouseEnter:P,onTouchStart:O,legacyBehavior:I=!1,onNavigate:R,ref:M,unstable_dynamicOnHover:L,...A}=t;n=j,I&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let T=a.default.useContext(c.AppRouterContext),$=!1!==k,U=!1!==k?null===(r=k)||"auto"===r?p.FetchStrategy.PPR:p.FetchStrategy.Full:p.FetchStrategy.PPR,{href:z,as:D}=a.default.useMemo(()=>{let e=g(y);return{href:e,as:w?g(w):e}},[y,w]);if(I){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=a.default.Children.only(n)}let F=I?i&&"object"==typeof i&&i.ref:M,B=a.default.useCallback(e=>(null!==T&&(v.current=(0,h.mountLinkInstance)(e,z,T,U,$,x)),()=>{v.current&&((0,h.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,h.unmountPrefetchableInstance)(e)}),[$,z,T,U,x]),W={ref:(0,u.useMergedRef)(B,F),onClick(t){I||"function"!=typeof E||E(t),I&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!T||t.defaultPrevented||function(t,r,n,i,s,o,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);a.default.startTransition(()=>{d(n||r,s?"replace":"push",o??!0,i.current)})}}(t,z,D,v,N,S,R)},onMouseEnter(e){I||"function"!=typeof P||P(e),I&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),T&&$&&(0,h.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){I||"function"!=typeof O||O(e),I&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),T&&$&&(0,h.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(D)?W.href=D:I&&!_&&("a"!==i.type||"href"in i.props)||(W.href=(0,f.addBasePath)(D)),s=I?a.default.cloneElement(i,W):(0,o.jsx)("a",{...A,...W,children:n}),(0,o.jsx)(b.Provider,{value:l,children:s})}e.r(84508);let b=(0,a.createContext)(h.IDLE_LINK_STATUS),v=()=>(0,a.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},18581,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(71645);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=s(e,n)),t&&(i.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88143,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:n,blurDataURL:i,objectFit:s}){let o=r?40*r:e,a=n?40*n:t,l=o&&a?`viewBox='0 0 ${o} ${a}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${l}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${l?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${i}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},87690,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return s},imageConfigDefault:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},8927,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return c}}),e.r(33525);let n=e.r(43369),i=e.r(88143),s=e.r(87690),o=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c({src:e,sizes:t,unoptimized:r=!1,priority:c=!1,preload:u=!1,loading:d,className:f,quality:h,width:m,height:p,fill:g=!1,style:x,overrideSrc:b,onLoad:v,onLoadingComplete:y,placeholder:w="empty",blurDataURL:j,fetchPriority:k,decoding:_="async",layout:N,objectFit:C,objectPosition:S,lazyBoundary:E,lazyRoot:P,...O},I){var R;let M,L,A,{imgConf:T,showAltText:$,blurComplete:U,defaultLoader:z}=I,D=T||s.imageConfigDefault;if("allSizes"in D)M=D;else{let e=[...D.deviceSizes,...D.imageSizes].sort((e,t)=>e-t),t=D.deviceSizes.sort((e,t)=>e-t),r=D.qualities?.sort((e,t)=>e-t);M={...D,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===z)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let F=O.loader||z;delete O.loader,delete O.srcSet;let B="__next_img_default"in F;if(B){if("custom"===M.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=F;F=t=>{let{config:r,...n}=t;return e(n)}}if(N){"fill"===N&&(g=!0);
2let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[N];e&&(x={...x,...e});let r={responsive:"100vw",fill:"100vw"}[N];r&&!t&&(t=r)}let W="",q=l(m),H=l(p);if((R=e)&&"object"==typeof R&&(a(R)||void 0!==R.src)){let t=a(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(L=t.blurWidth,A=t.blurHeight,j=j||t.blurDataURL,W=t.src,!g)if(q||H){if(q&&!H){let e=q/t.width;H=Math.round(t.height*e)}else if(!q&&H){let e=H/t.height;q=Math.round(t.width*e)}}else q=t.width,H=t.height}let V=!c&&!u&&("lazy"===d||void 0===d);(!(e="string"==typeof e?e:W)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,V=!1),M.unoptimized&&(r=!0),B&&!M.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let G=l(h),J=Object.assign(g?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:S}:{},$?{}:{color:"transparent"},x),X=U||"empty"===w?null:"blur"===w?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:q,heightInt:H,blurWidth:L,blurHeight:A,blurDataURL:j||"",objectFit:J.objectFit})}")`:`url("${w}")`,Y=o.includes(J.objectFit)?"fill"===J.objectFit?"100% 100%":"cover":J.objectFit,K=X?{backgroundSize:Y,backgroundPosition:J.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},Q=function({config:e,src:t,unoptimized:r,width:i,quality:s,sizes:o,loader:a}){if(r){let e=(0,n.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")&&e){let r=t.includes("?")?"&":"?";t=`${t}${r}dpl=${e}`}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:c}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,o),u=l.length-1;return{sizes:o||"w"!==c?o:"100vw",srcSet:l.map((r,n)=>`${a({config:e,src:t,quality:s,width:r})} ${"w"===c?r:n+1}${c}`).join(", "),src:a({config:e,src:t,quality:s,width:l[u]})}}({config:M,src:e,unoptimized:r,width:q,quality:G,sizes:t,loader:F}),Z=V?"lazy":d;return{props:{...O,loading:Z,fetchPriority:k,width:q,height:H,decoding:_,className:f,style:{...J,...K},sizes:Q.sizes,srcSet:Q.srcSet,src:b||Q.src},meta:{unoptimized:r,preload:u||c,placeholder:w,fill:g}}}},98879,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(71645),i="u"<typeof window,s=i?()=>{}:n.useLayoutEffect,o=i?()=>{}:n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i&&(t?.mountedInstances?.add(e.children),a()),s(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),s(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},25633,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return p},defaultHead:function(){return d}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(55682),o=e.r(90809),a=e.r(43476),l=o._(e.r(71645)),c=s._(e.r(98879)),u=e.r(42732);function d(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>
2"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(33525);let h=["name","httpEquiv","charSet","itemProp"];function m(e){let t,r,n,i;return e.reduce(f,[]).reverse().concat(d().reverse()).filter((t=new Set,r=new Set,n=new Set,i={},e=>{let s=!0,o=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){o=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?s=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?s=!1:r.add(e.type);break;case"meta":for(let t=0,r=h.length;t<r;t++){let r=h[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?s=!1:n.add(r);else{let t=e.props[r],n=i[r]||new Set;("name"!==r||!o)&&n.has(t)?s=!1:(n.add(t),i[r]=n)}}}return s})).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let p=function({children:e}){let t=(0,l.useContext)(u.HeadManagerContext);return(0,a.jsx)(c.default,{reduceComponentsToState:m,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18556,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=e.r(55682)._(e.r(71645)),i=e.r(87690),s=n.default.createContext(i.imageConfigDefault)},65856,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(55682)._(e.r(71645)).default.createContext(null)},70965,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,0):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},1948,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return o}});let n=e.r(70965),i=e.r(43369);function s({config:e,src:t,width:r,quality:s}){if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let o=(0,n.findClosestQuality)(s,e),a=(0,i.getDeploymentId)();return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${o}${t.startsWith("/")&&a?`&dpl=${a}`:""}`}s.__next_img_default=!0;let o=s},5500,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return y}});let n=e.r(55682),i=e.r(90809),s=e.r(43476),o=i._(e.r(71645)),a=n._(e.r(74080)),l=n._(e.r(25633)),c=e.r(8927),u=e.r(87690),d=e.r(18556);e.r(33525);let f=e.r(65856),h=n._(e.r(1948)),m=e.r(18581),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1};function g(e,t,r,n,i,s,o){let a=e?.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function x(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let b=(0,o.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:i,decoding:a,className:l,style:c,fetchPriority:u,placeholder:d,loading:f,unoptimized:h,fill:p,onLoadRef:b,onLoadingCompleteRef:v,setBlurComplete:y,setShowAltText:w,sizesInput:j,onLoad:k,onError:_,...N},C)=>{let S=(0,o.useCallback)(e=>{e&&(_&&(e.src=e.src),e.complete&&g(e,d,b,v,y,h,j))},[e,d,b,v,y,_,h,j]),E=(0,m.useMergedRef)(C,S);return(0,s.jsx)("img",{...N,...x(u),loading:f,width:i,height:n,decoding:a,"data-nimg":p?"fill":"1",className:l,style:c,sizes:r,srcSet:t,src:e,ref:E,onLoad:e=>{g(e.currentTarget,d,b,v,y,h,j)},onError:e=>{w(!0),"empty"!==d&&y(!0),_&&_(e)}})});function v({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...x(t.fetchPriority)};return e&&a.default.preload?(a.default.preload(t.src,r),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let y=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(f.RouterContext),n=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=p||n||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
3e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:"u"<typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:a,onLoadingComplete:l}=e,m=(0,o.useRef)(a);(0,o.useEffect)(()=>{m.current=a},[a]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[x,y]=(0,o.useState)(!1),[w,j]=(0,o.useState)(!1),{props:k,meta:_}=(0,c.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:x,showAltText:w});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(b,{...k,unoptimized:_.unoptimized,placeholder:_.placeholder,fill:_.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:y,setShowAltText:j,sizesInput:e.sizes,ref:t}),_.preload?(0,s.jsx)(v,{isAppRouter:!r,imgAttributes:k}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},94909,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return u},getImageProps:function(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(55682),o=e.r(8927),a=e.r(5500),l=s._(e.r(1948));function c(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!0,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=a.Image},57688,(e,t,r)=>{t.exports=e.r(94909)},18566,(e,t,r)=>{t.exports=e.r(76562)},46090,e=>{"use strict";e.i(51718);var t=e.i(18357);async function r(){try{let e=(0,t.getAuth)().currentUser;if(!e)return{restricted:!1};await e.getIdToken(!0);let r=(await e.getIdTokenResult()).claims;if(!0===r.restricted)return{restricted:!0,reason:"string"==typeof r.restrictionReason?r.restrictionReason:"Your account has been restricted by an administrator."};return{restricted:!1}}catch(e){return console.error("Failed to check user restriction:",e),{restricted:!1}}}async function n(){try{await fetch("/api/auth/logout",{method:"POST",credentials:"include"})}catch(e){console.error("Failed to logout:",e)}}e.s(["checkUserRestriction",()=>r,"logoutAdmin",()=>n])},46417,e=>{"use strict";var t=e.i(43476),r=e.i(71645);class n extends r.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error:",e,t),console.error("Production error:",{error:e.message,stack:e.stack,componentStack:t.componentStack,timestamp:new Date().toISOString()}),this.props.onError?.(e,t)}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,t.jsx)("div",{className:"min-h-screen bg-gradient-to-b from-[#0A1219] to-[#18384D] flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"bg-white/10 backdrop-blur-sm border border-white/20 rounded-lg p-8 max-w-md w-full text-center",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-red-500/20 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,t.jsx)("svg",{className:"w-8 h-8 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),(0,t.jsx)("h2",{className:"text-xl font-bold text-white mb-2",children:"Something went wrong"}),(0,t.jsx)("p",{className:"text-gray-300 text-sm",children:"We're sorry, but something unexpected happened. Please try refreshing the page."})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("button",{onClick:()=>window.location.reload(),className:"w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200",children:"Refresh Page"}),(0,t.jsx)("button",{onClick:()=>window.history.back(),className:"w-full bg-gray-600 hover:bg-gray-700 text-white font-medium py-2 px-4 roun
3ded-md transition-colors duration-200",children:"Go Back"})]}),!1]})}):this.props.children}}function i(){let[e,t]=r.default.useState(null);return{error:e,handleError:r.default.useCallback(e=>{console.error("useErrorHandler caught error:",e),t(e)},[]),clearError:r.default.useCallback(()=>{t(null)},[])}}function s(e,r){return function(i){return(0,t.jsx)(n,{fallback:r,children:(0,t.jsx)(e,{...i})})}}e.s(["ErrorBoundary",()=>n,"useErrorHandler",()=>i,"withErrorBoundary",()=>s])},75254,e=>{"use strict";var t=e.i(71645);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,t.forwardRef)(({color:e="currentColor",size:n=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:a="",children:l,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...i,width:n,height:n,stroke:e,strokeWidth:o?24*Number(s)/Number(n):s,className:r("lucide",a),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(l)?l:[l]])),o=(e,i)=>{let o=(0,t.forwardRef)(({className:o,...a},l)=>(0,t.createElement)(s,{ref:l,iconNode:i,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...a}));return o.displayName=n(e),o};e.s(["default",()=>o],75254)},95740,e=>{"use strict";let t=(0,e.i(75254).default)("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);e.s(["UserCircle",()=>t],95740)},92270,e=>{"use strict";let t=(0,e.i(75254).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",()=>t],92270)},12810,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(18566);e.i(51718);var i=e.i(18357),s=e.i(46090);function o({isOpen:e,remainingSeconds:r,onStayLoggedIn:n,onLogout:i}){if(!e)return null;let s=Math.floor(r/60);return(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:(0,t.jsx)("div",{className:"bg-white rounded-lg shadow-xl max-w-md w-full mx-4 p-6",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100 mb-4",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-red-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),(0,t.jsx)("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Session Timeout Warning"}),(0,t.jsx)("p",{className:"text-sm text-gray-500 mb-4",children:"Your admin session will expire due to inactivity in:"}),(0,t.jsx)("p",{className:"text-xs text-gray-400 mb-4",children:"Note: Your session will remain active if you refresh the page or navigate between tabs."}),(0,t.jsxs)("div",{className:"text-3xl font-bold text-red-600 mb-6",children:[String(s).padStart(2,"0"),":",String(r%60).padStart(2,"0")]}),(0,t.jsx)("p",{className:"text-sm text-gray-600 mb-6",children:"You will be automatically logged out after 15 minutes of inactivity to protect your account security."}),(0,t.jsxs)("div",{className:"flex space-x-3",children:[(0,t.jsx)("button",{onClick:n,className:"flex-1 bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200",children:"Stay Logged In"}),(0,t.jsx)("button",{onClick:i,className:"flex-1 bg-gray-200 hover:bg-gray-300 text-gray-800 font-medium py-2 px-4 roun
3ded-md transition-colors duration-200",children:"Logout Now"})]})]})})})}let a=(0,r.createContext)(void 0);function l(){let e=(0,r.useContext)(a);if(void 0===e)throw Error("useAdminTimeoutContext must be used within an AdminTimeoutProvider");return e}function c({children:e}){let{isActive:l,timeRemaining:c,resetTimer:u,logout:d,showWarning:f,remainingSeconds:h}=function({timeoutMinutes:e=15,warningMinutes:t=2,onBeforeLogout:o,onTimeoutWarning:a}={}){let l=(0,n.useRouter)(),c=(0,i.getAuth)(),[u,d]=(0,r.useState)(!0),[f,h]=(0,r.useState)(60*e*1e3),[m,p]=(0,r.useState)(!1),[g,x]=(0,r.useState)(0),b=(0,r.useRef)(void 0),v=(0,r.useRef)(void 0),y=(0,r.useRef)(void 0),w=(0,r.useRef)(Date.now()),j=60*e*1e3,k=60*t*1e3,_=(0,r.useCallback)(async()=>{try{o&&o(),b.current&&clearTimeout(b.current),v.current&&clearTimeout(v.current),y.current&&clearInterval(y.current),await (0,i.signOut)(c),await (0,s.logoutAdmin)(),l.push("/admin-login")}catch(e){console.error("Error during admin logout:",e),l.push("/admin-login")}},[c,l,o]),N=(0,r.useCallback)(()=>{w.current=Date.now(),d(!0),p(!1),h(j),b.current&&clearTimeout(b.current),v.current&&clearTimeout(v.current),y.current&&clearInterval(y.current),v.current=setTimeout(()=>{p(!0),x(60*t),y.current=setInterval(()=>{x(e=>e<=1?(clearInterval(y.current),0):e-1)},1e3),a&&a(60*t)},j-k),b.current=setTimeout(async()=>{await _()},j)},[j,k,t,a,_]),C=(0,r.useCallback)(()=>{Date.now()-w.current>1e3&&N()},[N]);return(0,r.useEffect)(()=>{let e=["mousedown","mousemove","keypress","scroll","touchstart","touchmove","click"];e.forEach(e=>{document.addEventListener(e,C,!0)});let t=()=>{document.hidden?d(!1):N()};return document.addEventListener("visibilitychange",t),N(),()=>{e.forEach(e=>{document.removeEventListener(e,C,!0)}),document.removeEventListener("visibilitychange",t),b.current&&clearTimeout(b.current),v.current&&clearTimeout(v.current),y.current&&clearInterval(y.current)}},[C,N,_]),(0,r.useEffect)(()=>{if(!u)return;let e=setInterval(()=>{let t=Math.max(0,j-(Date.now()-w.current));h(t),0===t&&clearInterval(e)},1e3);return()=>clearInterval(e)},[u,j]),{isActive:u,timeRemaining:f,resetTimer:N,logout:_,showWarning:m,remainingSeconds:g}}({timeoutMinutes:15,warningMinutes:2,onBeforeLogout:()=>{console.log("[AdminTimeout] Admin session expired due to inactivity")},onTimeoutWarning:e=>{console.log(`[AdminTimeout] Warning: ${e} seconds until logout`)}});return(0,t.jsxs)(a.Provider,{value:{resetTimer:u,logout:d,isActive:l,timeRemaining:c},children:[e,(0,t.jsx)(o,{isOpen:f,remainingSeconds:h,onStayLoggedIn:u,onLogout:d})]})}e.s(["default",()=>c,"useAdminTimeoutContext",()=>l],12810)},57215,e=>{"use strict";var t=e.i(47167),r=e.i(71645),n=e.i(18566);function i(){return false}function s(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function o(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(n.current)e.route&&n.current(e.route);else{let r=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=e.scriptSrc?e.scriptSrc:i()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.3.1",e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),i()&&!1===e.debug&&(n.dataset.debug="false"),n.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(n),{setRoute:e=>{n.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(n.current=r.setRoute)}},[e.route]),null}function a(e){let i=(()=>
3{let e=(0,n.useParams)(),t=(0,n.useSearchParams)()||new URLSearchParams,r=(0,n.usePathname)();if(!e)return null;let i=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!i)return r;let o=r;try{let e=Object.entries(i);for(let[t,r]of e)if(!Array.isArray(r)){let e=s(r);e.test(o)&&(o=o.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=s(r.join("/"));e.test(o)&&(o=o.replace(e,`/[...${t}]`))}return o}catch(e){return r}})();return r.default.createElement(o,{route:i,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}function l(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(a,{...e}))}e.s(["SpeedInsights",()=>l])},8341,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},79520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return x}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(55682),o=e.r(90809),a=e.r(43476),l=s._(e.r(74080)),c=o._(e.r(71645)),u=e.r(42732),d=e.r(22737),f=e.r(8341),h=new Map,m=new Set,p=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:s,children:o="",strategy:a="afterInteractive",onError:c,stylesheets:u}=e,f=r||t;if(f&&m.has(f))return;if(h.has(t)){m.add(f),h.get(t).then(n,c);return}let p=()=>{i&&i(),m.add(f)},g=document.createElement("script"),x=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),p()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});s?(g.innerHTML=s.__html||"",p()):o?(g.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",p()):t&&(g.src=t,h.set(t,x)),(0,d.setAttributesFromProps)(g,e),"worker"===a&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",a),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(g)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>p(e))}):p(e)}function x(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function b(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:s="afterInteractive",onError:o,stylesheets:d,...h}=e,{updateScripts:g,scripts:x,getIsSsr:b,appDir:v,nonce:y}=(0,c.useContext)(u.HeadManagerContext);y=h.nonce||y;let w=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;w.current||(i&&e&&m.has(e)&&i(),w.current=!0)},[i,t,r]);let j=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!j.current){if("afterInteractive"===s)p(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>p(e))}));j.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(g?(x[s]=(x[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:o,...h,nonce:y}]),g(x)):b&&b()?m.add(t||r):b&&!b()&&p({...e,nonce:y}
3)),v){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!r)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...h,id:t}])})`}});else return l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:y,crossOrigin:h.crossOrigin}:{as:"script",nonce:y,crossOrigin:h.crossOrigin}),(0,a.jsx)("script",{nonce:y,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([r,{...h,id:t}])})`}});"afterInteractive"===s&&r&&l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:y,crossOrigin:h.crossOrigin}:{as:"script",nonce:y,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let v=b;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},4234,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(59141);let i=(0,r.createContext)(void 0);function s({children:e}){let r={db:n.db,auth:n.auth,analytics:n.analytics};return(0,t.jsx)(i.Provider,{value:r,children:e})}function o(){let e=(0,r.useContext)(i);if(void 0===e)throw Error("useFirebase must be used within a FirebaseProvider");return e}e.s(["FirebaseProvider",()=>s,"useFirebase",()=>o])},39505,e=>{"use strict";var t=e.i(43476),r=e.i(18566),n=e.i(71645),i=e.i(22016),s=e.i(57688),o=e.i(95740),a=e.i(75254);let l=(0,a.default)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]),c=(0,a.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var u=e.i(92270);let d=(0,a.default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.i(51718);var f=e.i(18357),h=e.i(59141);function m(){let[e,r]=(0,n.useState)(null),[i,a]=(0,n.useState)(!0),[m,p]=(0,n.useState)(!1),g=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=(0,h.getFirebaseAuth)();if(!e)return void a(!1);let t=(0,f.onAuthStateChanged)(e,e=>{r(e),a(!1)});return()=>t()},[]),(0,n.useEffect)(()=>{function e(e){g.current&&!g.current.contains(e.target)&&p(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let x=async()=>{try{let e=(0,h.getFirebaseAuth)();e&&await (0,f.signOut)(e)}catch(e){console.error("Sign out error:",e)}};return i?(0,t.jsx)("div",{className:"flex items-center space-x-2",children:(0,t.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500"})}):e?(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsxs)("span",{className:"text-gray-300 text-sm hidden sm:block",children:["Welcome, ",e.displayName||e.email||"User","!"]}),(0,t.jsxs)("div",{className:"relative",ref:g,children:[(0,t.jsxs)("button",{onClick:()=>p(!m),className:"flex items-center space-x-2 text-white hover:text-blue-200 transition-colors duration-200",children:[e.photoURL?(0,t.jsx)(s.default,{src:e.photoURL,alt:"Profile",width:40,height:40,className:"w-10 h-10 rounded-full",onError:e=>{let t=e.target;t.style.display="none",t.nextElementSibling?.classList.remove("hidden")}}):(0,t.jsx)(o.UserCircle,{className:"w-10 h-10"}),(0,t.jsx)(o.UserCircle,{className:"w-10 h-10 hidden"}),(0,t.jsx)("span",{className:"text-gray-300 text-sm sm:hidden",children:e.displayName||e.email||"User"}),(0,t.jsx)(c,{className:"w-4 h-4"})]}),m&&(0,t.jsx)("div",{className:"absolute right-0 mt-2 w-48 bg-white/10 backdrop-blur-sm border border-white/20 rounded-lg shadow-lg z-50",children:(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsxs)("div",{className:"px-4 py-2 text-sm text-gray-300 border-b border-white/10",children:[(0,t.jsx)("p",{className:"font-medium",children:e.displayName||e.email}),(0,t.jsx)("p",{className:"text-xs text-gray-400",children:"Signed in"})]}),(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsxs)("button",{onClick:()=>window.location.href="/my-profile",className:"w-full text-left px-4 py-2 text-sm text-white hover:bg-white/10 transition-colors duration-200 flex items-center space-x-2",children:[(0,t.jsx)(d,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"My Profile"})]}),(0,t.jsxs)("button",{onClick:x,className:"w-full text-left px-4 py-2 text-sm text-white hover:bg-white/10 transition-colors duration-200 flex items-center space-x-2",children:[(0,t.jsx)(u.LogOut,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Sign Out"})]})]})]})})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"hidden md:block relative",ref:g,children:[(0,t.jsxs)("button",{onClick:()=>p(!m),className:"flex items-center space-x-1 text-white hover:text-blue-200 transition-colors duration-200",children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:"My Profile"}),(0,t.jsx)(c,{className:"w-4 h-4"})]}),m&&(0,t.jsx)("div",{className:"absolute right-0 mt-2 w-48 bg-white/10 backdrop-blur-sm border border-white/20 rounded-lg shadow-lg z-50",children:(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsxs)("div",{className:"px-4 py-2 text-sm text-gray-300 border-b border-white/10",children:[(0,t.jsx)("p",{className:"font-medium",children:"Join USIC Forum"}),(0,t.jsx)("p",{className:"text-xs text-gray-400",children:"Sign in to participate"})]}),(0,t.jsx)("div",{className:"py-2",children:(0,t.jsxs)("button",{onClick:()=>window.location.href="/login",className:"w-full text-left px-4 py-2 text-sm text-white hover:bg-white/10 transition-colors duration-200 flex items-center space-x-2",children:[(0,t.jsx)(l,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Sign In"})]})})]})})]}),(0,t.jsx)("div",{className:"md:hidden space-y-2",children:(0,t.jsx)("button",{onClick:()=>window.location.href="/login",className:"block w-full text-left px-3 py-2 rounded-md text-base font-medium text-white hover:bg-[#234b64] hover:text-white transition-colors duration-200",children:"Sign In"})})]})}
3function p(){let[e,r]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1),[l,c]=(0,n.useState)(!1),u=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=()=>{window.scrollY>50?a(!0):a(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,n.useEffect)(()=>{let e=e=>{u.current&&!u.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,t.jsxs)("header",{className:`fixed w-full z-50 transition-all duration-300 ${o?"bg-[#18384D] shadow-md":"bg-transparent"}`,children:[(0,t.jsx)("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"flex justify-between items-center h-16",children:[(0,t.jsxs)("div",{className:"shrink-0 flex items-center space-x-3",children:[(0,t.jsx)(s.default,{src:"https://res.cloudinary.com/derjeh0m2/image/upload/v1758531324/1._USIC_Full_Logo_cr0kaw.svg",alt:"USIC Logo",width:60,height:60,className:"w-auto h-12",style:{filter:"invert(1)"}}),(0,t.jsx)(i.default,{href:"/",className:"font-bold text-xl md:text-2xl text-white",children:"USIC"})]}),(0,t.jsxs)("nav",{className:"hidden md:flex items-center space-x-6",children:[(0,t.jsx)(i.default,{href:"/",className:"text-white hover:text-blue-200 transition duration-300",children:"Home"}),(0,t.jsx)(i.default,{href:"/about",className:"text-white hover:text-blue-200 transition duration-300",children:"About Us"}),(0,t.jsx)(i.default,{href:"/events",className:"text-white hover:text-blue-200 transition duration-300",children:"Events"}),(0,t.jsxs)("div",{className:"relative",ref:u,children:[(0,t.jsxs)("button",{onClick:()=>c(!l),className:"flex items-center space-x-1 text-white hover:text-blue-200 transition duration-300",children:[(0,t.jsx)("span",{children:"Membership"}),(0,t.jsx)("svg",{className:`w-4 h-4 transition-transform duration-200 ${l?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),l&&(0,t.jsx)("div",{className:"absolute top-full left-0 mt-2 w-48 bg-white/10 backdrop-blur-sm border border-white/20 rounded-lg shadow-lg z-50",children:(0,t.jsxs)("div",{className:"py-2",children:[(0,t.jsx)(i.default,{href:"/membership",className:"block px-4 py-2 text-sm text-white hover:bg-white/10 transition-colors duration-200",onClick:()=>c(!1),children:"Journey"}),(0,t.jsx)(i.default,{href:"/pricing",className:"block px-4 py-2 text-sm text-white hover:bg-white/10 transition-colors duration-200",onClick:()=>c(!1),children:"Pricing"})]})})]}),(0,t.jsx)(i.default,{href:"/resources",className:"text-white hover:text-blue-200 transition duration-300",children:"Resources"}),(0,t.jsx)(i.default,{href:"/fundraising",className:"text-white hover:text-blue-200 transition duration-300",children:"Fundraising"}),(0,t.jsx)(i.default,{href:"/blog",className:"text-white hover:text-blue-200 transition duration-300",children:"Forum"}),(0,t.jsx)(i.default,{href:"/sponsors",className:"text-white hover:text-blue-200 transition duration-300",children:"Sponsors"}),(0,t.jsx)("div",{className:"ml-4",children:(0,t.jsx)(m,{})})]}),(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsxs)("button",{onClick:()=>{r(!e)},className:"inline-flex items-center justify-center p-2 rounded-md text-white hover:text-white hover:bg-[#234b64]/50 focus:outline-hidden focus:ring-2 focus:ring-inset focus:ring-white",children:[(0,t.jsx)("span",{className:"sr-only",children:"Open main menu"}),e?(0,t.jsx)("svg",{className:"block h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}):(0,t.jsx)("svg",{className:"block h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})]})})]})}),e&&(0,t.jsx)("div",{className:"md:hidden",children:(0,t.jsxs)("div",{className:"px-2 pt-2 pb-3 space-y-1 sm:px-3 bg-[#18384D] shadow-lg",children:[(0,t.jsx)(i.default,{href:"/",className:"block px-3 py-2 rounded-md text-base font-medium text-white hover:bg-[#234b64] hover:text-white",onClick:()=>r(!1),children:"Home"}),(0,t.jsx)(i.default,{href:"/about",className:"block px-3 py-2 rounded-md text-base font-medium text-white hover:bg-[#234b64] hover:text-white",onClick:()=>r(!1),children:"About Us"}),(0,t.jsx)(i.default,{href:"/events",className:"block px-3 py-2 rounded-md text-base font-medium text-white hover:bg-[#234b64] hover:text-white",onClick:()=>r(!1),children:"Events"}),(0,t.jsxs)("div",{className:"px-3 py-2",children:[(0,t.jsx)("div",{className:"text-base font-medium text-white mb-2",children:"Membership"}),(0,t.jsxs)("div",{className:"ml-4 space-y-1",children:[(0,t.jsx)(i.default,{href:"/membership",className:"block px-3 py-2 rounded-md text-sm text-blue-200 hover:bg-[#234b64] hover:text-white",onClick:()=>r(!1),children:"Journey"}),(0,t.jsx)(i.default,{href:"/pricing",className:"block px-3 py-2 rounded-md text-sm text-blue-200 hover:bg-[#234b64] hover:text-white",onClick:()=>r(!1),children:"Pricing"})]})]}),(0,t.jsx)(i.default,{href:"/resources",className:"block px-3 py-2 rounded-md text-base font-medium text-white hover:bg-[#234b64] hover:text-white",onClick:()=>r(!1),children:"Resources"}),(0,t.jsx)(i.default,{href:"/fundraising",className:"block px-3 py-2 rounded-md text-base font-medium text-white hover:bg-[#234b64] hover:text-white",onClick:()=>r(!1),children:"Fundraising"}),(0,t.jsx)(i.default,{href:"/blog",className:"block px-3 py-2 rounded-md text-base font-medium text-white hover:bg-[#234b64] hover:text-white",onClick:()=>r(!1),children:"Forum"}),(0,t.jsx)(i.default,{href:"/sponsors",className:"block px-3 py-2 rounded-md text-base font-medium text-white hover:bg-[#234b64] hover:text-white",onClick:()=>r(!1),children:"Sponsors"}),(0,t.jsx)("div",{className:"border-t border-white/10 pt-3 mt-3",children:(0,t.jsx)("div",{className:"px-3 py-2",children:(0,t.jsx)(m,{})})})]})})]})}let g=[{href:"/",label:"Home"},{href:"/about",label:"About Us"},{href:"/events",label:"Events"},{href:"/membership",label:"Membership"},{href:"/blog",label:"Forum"},{href:"/faq",label:"FAQ"}],x=[{href:"https://www.facebook.com/University.of.Sheffield.Islamic.Circle",label:"Facebook",icon:"M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987
3h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z"},{href:"https://www.instagram.com/usicsheffield",label:"Instagram",icon:"M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z"},{href:"https://twitter.com/usicsheffield",label:"Twitter",icon:"M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84"},{href:"https://www.youtube.com/usicsheffield",label:"YouTube",icon:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"}],b=({href:e,label:r,icon:n})=>(0,t.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-white hover:text-blue-200 transition-colors","aria-label":r,children:(0,t.jsx)("svg",{className:"h-6 w-6",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:n})})});function v(){return(0,t.jsx)("footer",{className:"bg-[#18384D] text-white",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 py-12 sm:px-6 lg:px-8",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-8",children:[(0,t.jsxs)("div",{className:"col-span-1 md:col-span-2",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold mb-4",children:"USIC"}),(0,t.jsx)("p",{className:"mb-4",children:"Founded in 1964, USIC represents Muslim students on campus and beyond by providing social and welfare support."}),(0,t.jsx)("p",{children:"University of Sheffield Islamic Circle"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-4",children:"Quick Links"}),(0,t.jsx)("ul",{className:"space-y-2",children:g.map(({href:e,label:r})=>(0,t.jsx)("li",{children:(0,t.jsx)(i.default,{href:e,className:"hover:text-blue-200 transition-colors",children:r})},e))})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-4",children:"Connect With Us"}),(0,t.jsx)("div",{className:"flex space-x-4 mb-4",children:x.map(({href:e,label:r,icon:n})=>(0,t.jsx)(b,{href:e,label:r,icon:n},e))}),(0,t.jsxs)("p",{children:["Email: ","[email protected]"]}
3)]})]}),(0,t.jsx)("div",{className:"mt-8 pt-8 border-t border-blue-800",children:(0,t.jsxs)("p",{className:"text-center",children:["Made by"," ",(0,t.jsx)("a",{href:"https://www.instagram.com/mikhailbuilds",target:"_blank",rel:"noopener noreferrer",className:"hover:text-blue-200 underline transition-colors",children:"@mikhailbuilds"}),". All rights reserved."]})})]})})}var y=e.i(12810);function w({children:e}){let n=(0,r.usePathname)(),i=n.startsWith("/admin"),s="/restricted"===n;return(0,t.jsxs)(y.default,{children:[!i&&!s&&(0,t.jsx)(p,{}),(0,t.jsx)("main",{className:"flex-grow overflow-x-hidden",children:e}),!i&&!s&&(0,t.jsx)(v,{})]})}e.s(["default",()=>w],39505)},47559,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let n="groupchat_modal_shown";function i({isOpen:e,onClose:r}){return e?(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",children:(0,t.jsx)("div",{className:"bg-white rounded-lg shadow-lg max-w-sm w-full p-6",children:(0,t.jsxs)("div",{className:"text-center space-y-4",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:"Join Our Community"}),(0,t.jsx)("p",{className:"text-sm text-gray-600 leading-relaxed",children:"Join our WhatsApp groupchats for 2026/27 students, one for brothers and one for sisters. Feel free to ask any questions regarding your course 📚, accommodation 🏡, Sheffield 🏙, the University, and all things USIC ☪️ !"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("button",{onClick:()=>{window.open("https://forms.gle/kZBaazWyj1Q9aQ339","_blank"),r()},className:"w-full bg-[#18384D] hover:bg-[#0A1219] text-white font-medium py-2.5 px-4 rounded-md transition-colors duration-200",children:"Join WhatsApp Community"}),(0,t.jsx)("button",{onClick:r,className:"w-full text-gray-500 hover:text-gray-700 text-sm py-2 transition-colors duration-200",children:"Not now"})]})]})})}):null}let s=(0,r.createContext)(void 0);function o(){let e=(0,r.useContext)(s);if(void 0===e)throw Error("useGroupchatModalContext must be used within a GroupchatModalProvider");return e}function a({children:e}){let{isModalOpen:o,closeModal:a,hasBeenShown:l}=function(){let[e,t]=(0,r.useState)(!1),[i,s]=(0,r.useState)(!1),o=(0,r.useRef)(void 0),a=()=>{try{let e=localStorage.getItem(n);if(!e)return!1;let{timestamp:t}=JSON.parse(e);return(Date.now()-t)/864e5<7}catch(e){return console.warn("Error checking groupchat modal history:",e),!1}};return(0,r.useEffect)(()=>a()?void s(!0):(o.current=setTimeout(()=>{a()||t(!0)},15e3),()=>{o.current&&clearTimeout(o.current)}),[]),{isModalOpen:e,closeModal:()=>{t(!1);try{let e={timestamp:Date.now(),version:"1.0"};localStorage.setItem(n,JSON.stringify(e)),s(!0)}catch(e){console.warn("Error storing groupchat modal history:",e)}},hasBeenShown:i}}();return(0,t.jsxs)(s.Provider,{value:{isModalOpen:o,closeModal:a,hasBeenShown:l},children:[e,(0,t.jsx)(i,{isOpen:o,onClose:a})]})}e.s(["default",()=>a,"useGroupchatModalContext",()=>o],47559)},96622,e=>{"use strict";var t=e.i(71645);e.i(51718);var r=e.i(18357),n=e.i(46090);function i(){return(0,t.useEffect)(()=>{let e=(0,r.getAuth)();return(0,r.onAuthStateChanged)(e,async t=>{if(t)try{if((await (0,n.checkUserRestriction)()).restricted){console.log("User is restricted, redirecting to restricted page"),await e.signOut(),localStorage.clear(),sessionStorage.clear(),window.location.href="/restricted";return}let t=setInterval(async()=>{try{(await (0,n.checkUserRestriction)()).restricted&&(console.log("User became restricted, redirecting to restricted page"),clearInterval(t),await e.signOut(),localStorage.clear(),sessionStorage.clear(),window.location.href="/restricted")}catch(e){console.error("Error checking restriction status:",e)}},3e4);return()=>clearInterval(t)}catch(e){console.error("Error in restriction check:",e)}})},[]),null}e.s(["default",()=>i],96622)}]);

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.