PageSourceSearch

https://paradox-showcase.web.app/_next/static/chunks/app/page-f8f4c34645830f3a.js

js paradox-showcase.web.app collected 2026-10-03 12:32:29 UTC 37,980 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{1287:function(e,t,a){Promise.resolve().then(a.bind(a,7099))},7099:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return E}});var l=a(7437),r=a(2265),s=a(9842),o=a(5236),i=a(9854);let n=(0,o.C6)().length?(0,o.Mq)():(0,o.ZF)({apiKey:"AIzaSyDhXHwjN68TqLA6P3iclr8zpl8Nr3LJnn0",authDomain:"paradox-showcase.firebaseapp.com",projectId:"paradox-showcase",storageBucket:"paradox-showcase.firebasestorage.app",messagingSenderId:"576252588465",appId:"1:576252588465:web:ac0b24b6aece3ff2188d90",measurementId:"G-XTC2WCWS0S"}),d=(0,s.ad)(n);(0,i.cF)(n);var c=a(6648),m=a(2030),u=a(4622),h=a(6198),x=a(7151),p=a(4911);function w(e){var t,a,s;let{selectedYear:o,setSelectedYear:i,selectedCategory:n,setSelectedCategory:d,festData:c,isLoading:w,availableYears:f,fetchYearCategories:v}=e,b=!!(null===(t=c[o])||void 0===t?void 0:t.inauguration),g=!!(null===(a=c[o])||void 0===a?void 0:a.convocation),j=!!(null===(s=c[o])||void 0===s?void 0:s.workshops),y=["Overview"];b&&y.push("Inauguration"),g&&y.push("Convocation"),j&&y.push("Workshops"),y.push("Event Gallery");let N=e=>{switch(e){case"Overview":return(0,l.jsx)(m.Z,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 mr-1.5"});case"Inauguration":return(0,l.jsx)(u.Z,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 mr-1.5"});case"Convocation":return(0,l.jsx)(h.Z,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 mr-1.5"});case"Workshops":return(0,l.jsx)(x.Z,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 mr-1.5"});case"Event Gallery":return(0,l.jsx)(p.Z,{className:"w-3 h-3 sm:w-3.5 sm:h-3.5 mr-1.5"});default:return null}},k=!w&&f.length>0&&o&&void 0!==c[o],[_,C]=(0,r.useState)(!1),[S,E]=(0,r.useState)(!1),I=(0,r.useRef)(!1),z=(0,r.useRef)(null),T=(e,t)=>{I.current=!0,C(t),z.current&&clearTimeout(z.current),z.current=setTimeout(()=>{I.current=!1},1e3),e()};return(0,r.useEffect)(()=>{let e;let t=window.scrollY,a=()=>{cancelAnimationFrame(e),e=requestAnimationFrame(()=>{let e=window.scrollY;if(I.current){t=e;return}e>50?e>t?C(!0):e<t-5&&C(!1):C(!1),t=e})};return window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a),cancelAnimationFrame(e)}},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"fixed top-6 left-6 md:top-8 md:left-12 z-40 pointer-events-auto",children:(0,l.jsx)("a",{href:"#",className:"flex items-center group",children:(0,l.jsx)("img",{src:"/iitmbslogo.png",alt:"IITM BS Logo",className:"h-10 w-auto md:h-12 object-contain transition-transform duration-300 group-hover:scale-105 drop-shadow-md"})})}),(0,l.jsxs)("div",{className:"fixed top-6 left-1/2 -translate-x-1/2 md:top-8 z-40 pointer-events-auto flex flex-col items-center gap-2.5 max-w-[95vw]",children:[(0,l.jsxs)("div",{className:"relative flex flex-col items-center",children:[(0,l.jsx)("div",{className:"hidden md:flex items-center bg-white/5 backdrop-blur-xl border border-white/10 shadow-[0_8px_32px_rgba(0,0,0,0.3)] rounded-full p-0.5 sm:p-1 gap-0.5 sm:gap-1 transition-all duration-500 ease-in-out ".concat(_?"opacity-0 -translate-y-4 pointer-events-none":"opacity-100 translate-y-0"),children:f.map(e=>(0,l.jsx)("button",{onClick:()=>{o!==e&&(i(e),d("Overview")),T(()=>{window.scrollTo({top:0,behavior:"smooth"})},!1)},className:"font-sans text-[9px] sm:text-[10px] font-bold px-3 py-1.5 sm:px-4 sm:py-1.5 rounded-full transition-all duration-300 ".concat(o===e?"bg-white/20 text-white shadow-md border border-white/20":"text-white/60 hover:bg-white/10 hover:text-white border border-transparent"),children:e},e))}),(0,l.jsx)("div",{className:"md:hidden relative z-50 flex flex-col items-center transition-all duration-500 ease-in-out w-[120px] ".concat(_?"opacity-0 -translate-y-4 pointer-events-none":"opacity-100 translate-y-0"),children:(0,l.jsxs)("div",{className:"relative w-full",children:[(0,l.jsxs)("button",{onClick:()=>E(!S),className:"w-full flex items-center justify-between bg-white/10 backdrop-blur-xl border border-white/20 text-white font-sans text-[11px] font-bold rounded-full pl-4 pr-3 py-2 outline-none shadow-[0_8px_32px_rgba(0,0,0,0.3)] transition-all duration-300 active:scale-95",children:[(0,l.jsx)("span",{children:o}),(0,l.jsx)("svg",{className:"fill-current h-4 w-4 transition-transform duration-300 ".concat(S?"rotate-180":""),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,l.jsx)("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})})]}),(0,l.jsx)("div",{className:"absolute top-full left-0 w-full mt-2 bg-black/40 backdrop-blur-xl border border-white/20 rounded-2xl shadow-xl overflow-hidden transition-all duration-300 origin-top flex flex-col z-50 ".concat(S?"opacity-100 scale-y-100 pointer-events-auto":"opacity-0 scale-y-95 pointer-events-none"),children:f.map(e=>(0,l.jsx)("button",{onClick:()=>{o!==e&&(i(e),d("Overview")),E(!1),T(()=>{window.scrollTo({top:0,behavior:"smooth"})},!1)},className:"font-sans text-[11px] font-bold py-2.5 px-4 text-center transition-colors ".concat(o===e?"bg-white/20 text-white":"text-white/70 hover:bg-white/10 hover:text-white"),children:e},e))})]})})]}
1),k&&(0,l.jsx)("div",{className:"transition-all duration-500 ease-in-out ".concat(_?"opacity-0 -translate-y-4 pointer-events-none":"opacity-100 translate-y-0"),children:(0,l.jsx)("div",{className:"flex items-center bg-black/40 backdrop-blur-xl border border-white/15 shadow-[0_8px_32px_rgba(0,0,0,0.5)] rounded-full p-1 gap-1 overflow-x-auto [&::-webkit-scrollbar]:hidden",children:y.map(e=>(0,l.jsxs)("button",{onClick:()=>{d(e),"Event Gallery"===e&&v(o)},className:"flex items-center font-sans text-[10px] sm:text-xs font-semibold px-3 py-1.5 sm:px-4 sm:py-2 rounded-full whitespace-nowrap transition-all duration-300 ".concat(n===e?"bg-purple-600/40 text-white shadow-md border border-purple-400/40":"text-white/60 hover:bg-white/10 hover:text-white border border-transparent"),children:[N(e),e]},e))})})]})]})}var f=a(4887),v=a(3274),b=a(1106),g=a(3787),j=a(4697),y=a(518),N=a(7592),k=a(357);function _(e){var t,a,s,o,i,n,d,m,u,h,x,p,w,_,C,S,E,I,z,T,L,F;let{selectedYear:A,selectedCategory:P,festData:O,isLoading:Y,isCategoriesLoading:B}=e,[D,M]=(0,r.useState)(0),[Z,R]=(0,r.useState)(!1),J=(0,r.useRef)(null),W=(0,r.useRef)([]),[q,G]=(0,r.useState)(null),[U,X]=(0,r.useState)(""),[V,Q]=(0,r.useState)(""),[K,H]=(0,r.useState)([]),[$,ee]=(0,r.useState)(!1),et=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"";(0,r.useEffect)(()=>{var e,t,a,l;if(A&&(null===(e=O[A])||void 0===e?void 0:e.categories)){let e=Object.keys(O[A].categories)[0];!e||U&&O[A].categories[U]||(X(e),Q((null===(l=O[A].categories[e])||void 0===l?void 0:null===(a=l.events)||void 0===a?void 0:null===(t=a[0])||void 0===t?void 0:t.name)||""))}},[O,A,U]),(0,r.useEffect)(()=>{var e,t,a,l;(null===(l=O[A])||void 0===l?void 0:null===(a=l.categories)||void 0===a?void 0:null===(t=a[U])||void 0===t?void 0:null===(e=t.events)||void 0===e?void 0:e.length)>0&&Q(O[A].categories[U].events[0].name)},[U,O,A]);let ea=(0,r.useMemo)(()=>{var e,t,a;return(null===(a=O[A])||void 0===a?void 0:null===(t=a.categories)||void 0===t?void 0:null===(e=t[U])||void 0===e?void 0:e.events)?O[A].categories[U].events.find(e=>e.name===V):null},[O,A,U,V]),el=()=>{var e;(null==ea?void 0:null===(e=ea.images)||void 0===e?void 0:e.length)&&G(e=>0===e?ea.images.length-1:e-1)},er=()=>{var e;(null==ea?void 0:null===(e=ea.images)||void 0===e?void 0:e.length)&&G(e=>e===ea.images.length-1?0:e+1)};return(0,r.useEffect)(()=>{let e=e=>{null!==q&&("Escape"===e.key&&G(null),"ArrowLeft"===e.key&&el(),"ArrowRight"===e.key&&er())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[q,ea]),(0,r.useEffect)(()=>(null!==q?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[q]),(0,r.useEffect)(()=>{null!==q&&W.current[q]&&W.current[q].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[q]),(0,r.useEffect)(()=>{(async()=>{var e,t;let a=null===(e=O[A])||void 0===e?void 0:e.workshops;if("object"==typeof a&&null!==a&&(a=a.link||(null===(t=a.playlists)||void 0===t?void 0:t.link)||""),"Workshops"===P&&"string"==typeof a&&a.includes("list=")){ee(!0);try{let e=a.split("list=")[1].split("&")[0],t=k.env.NEXT_PUBLIC_YOUTUBE_API_KEY||"AIzaSyBQ2Erkfc5k5U0gDdaO4QEpkKIJCmPDpbc",l=await fetch("https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&playlistId=".concat(e,"&key=").concat(t));if(l.ok){let e=(await l.json()).items.filter(e=>"Private video"!==e.snippet.title&&"Deleted video"!==e.snippet.title);H(e)}}catch(e){console.error("Failed to fetch playlist via YouTube API",e)}finally{ee(!1)}}})()},[P,A,O]),(0,r.useEffect)(()=>{let e;R(!0);let t=()=>{J.current&&(cancelAnimationFrame(e),e=requestAnimationFrame(()=>{M(window.scrollY)}))};return window.addEventListener("scroll",t),()=>{window.removeEventListener("scroll",t),cancelAnimationFrame(e)}},[]),(0,l.jsxs)("div",{ref:J,className:"relative min-h-screen flex items-start justify-center overflow-hidden pt-4 md:pt-8 pb-16 px-6 md:px-12",children:[(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-[#0A0314] via-[#1A0A33] to-[#040108] z-[-2]"}),(0,l.jsx)("div",{className:"absolute top-0 left-0 -translate-x-1/4 -translate-y-1/4 w-[50vw] h-[50v
1w] max-w-[500px] max-h-[500px] bg-blue-500/40 rounded-full filter blur-[150px] pointer-events-none z-[-1] animate-pulse",style:{animationDuration:"7s"}}),(0,l.jsx)("div",{className:"absolute top-0 right-0 translate-x-1/4 -translate-y-1/4 w-[50vw] h-[50vw] max-w-[500px] max-h-[500px] bg-pink-500/40 rounded-full filter blur-[150px] pointer-events-none z-[-1] animate-pulse",style:{animationDuration:"8s",animationDelay:"2s"}}),(0,l.jsx)("div",{className:"relative z-10 max-w-7xl w-full grid grid-cols-1 lg:grid-cols-12 gap-12 items-center transition-transform duration-75 ease-out origin-center",children:(0,l.jsxs)("div",{className:"lg:col-span-12 text-center flex flex-col items-center justify-start w-full",style:{perspective:"1500px"},children:[(0,l.jsx)("div",{className:"w-full flex items-center justify-center z-0 relative pointer-events-none transition-all duration-700 ease-out overflow-hidden ".concat("Overview"===P?"opacity-100 max-h-[500px] mt-28 md:mt-24 mb-6 md:-mb-12 lg:-mb-16":"opacity-0 max-h-0 !mt-0 !mb-0"),style:{transform:"scale(".concat(Math.max(.4,1-.0025*D),")"),willChange:"transform, opacity"},children:Y?(0,l.jsx)("div",{className:"w-[90%] md:w-[55%] lg:w-[45%] max-w-4xl h-[100px] md:h-[200px] bg-white/5 animate-pulse rounded-2xl mx-auto"}):(0,l.jsx)("div",{className:"w-[90%] md:w-[55%] lg:w-[45%] max-w-4xl mx-auto drop-shadow-[0_20px_40px_rgba(0,0,0,0.6)] transition-all duration-700 ease-out flex-shrink-0 ".concat(Z&&"Overview"===P?"translate-y-0 scale-100 delay-300":"-translate-y-8 scale-95"),children:(0,l.jsx)(c.default,{src:2026===A?
1"/26wordmark.png":(null===(a=O[A])||void 0===a?void 0:null===(t=a.typography)||void 0===t?void 0:t.trim())?O[A].typography:"/26wordmark.png",alt:"".concat(A," Wordmark"),width:1200,height:400,priority:!0,className:"w-full h-auto"})})}),(0,l.jsxs)("div",{className:"relative w-full z-20 max-w-5xl lg:max-w-7xl mx-auto flex items-center justify-center pb-4 md:pb-6 transition-all ".concat("Overview"===P?"pt-8 md:pt-16 duration-75 ease-out":"pt-24 md:pt-28 duration-700 ease-in-out"),style:{transform:"Overview"===P?"rotateX(".concat(Math.max(0,25-.05*D),"deg) scale(").concat(Math.min(1,.85+3e-4*D),") translateZ(0)"):"rotateX(0deg) scale(1) translateZ(0)",transformOrigin:"top center",transformStyle:"preserve-3d",willChange:"transform"},children:[(0,l.jsxs)("div",{className:"absolute bottom-[20%] left-1/2 -translate-x-1/2 w-full max-w-7xl h-[210%] max-h-[1200px] min-h-[750px] pointer-events-none z-[-1] overflow-visible",children:[(0,l.jsx)("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-[80%] md:w-[55%] lg:w-[48%] h-full origin-bottom pointer-events-none",children:(0,l.jsx)("div",{className:"w-full h-full origin-bottom animate-ray-left bg-gradient-to-t from-white/75 via-white/30 to-transparent",style:{clipPath:"polygon(0 0, 100% 0, 58% 100%, 42% 100%)"}})}),(0,l.jsx)("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-[80%] md:w-[55%] lg:w-[48%] h-full origin-bottom pointer-events-none",children:(0,l.jsx)("div",{className:"w-full h-full origin-bottom animate-ray-right bg-gradient-to-t from-white/75 via-white/30 to-transparent",style:{clipPath:"polygon(0 0, 100% 0, 58% 100%, 42% 100%)"}})})]}),(0,l.jsx)("div",{id:"main-hero-card",className:"scroll-mt-28 md:scroll-mt-32 relative w-full p-2 md:p-3 bg-white/10 backdrop-blur-md border border-white/20 rounded-3xl shadow-[0_50px_100px_rgba(0,0,0,0.6)] transition-all duration-1000 delay-500 ease-out ".concat(Z?"opacity-100 translate-y-0":"opacity-0 translate-y-24"),children:"Workshops"===P?(0,l.jsx)("div",{className:"w-full flex items-center justify-center p-2 md:p-4 min-h-[400px]",children:$?(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center text-white/50 space-y-4",children:[(0,l.jsx)(v.Z,{className:"w-8 h-8 animate-spin"}),(0,l.jsx)("p",{className:"font-sans text-xs uppercase tracking-widest",children:"Loading Videos..."})]}):K.length>0?(0,l.jsx)("div",{className:"w-full grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-6",children:K.map((e,t)=>(0,l.jsx)("div",{className:"w-full aspect-video rounded-xl md:rounded-2xl overflow-hidden bg-black relative shadow-lg ring-1 ring-white/10 hover:ring-white/30 transition-all duration-300",children:(0,l.jsx)("iframe",{className:"absolute inset-0 w-full h-full pointer-events-auto",src:"https://www.youtube.com/embed/".concat(e.snippet.resourceId.videoId,"?controls=1"),title:e.snippet.title,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})},t))}):(0,l.jsx)("div",{className:"flex flex-col items-center justify-center text-white/50",children:(0,l.jsx)("p",{className:"font-sans text-xs uppercase tracking-widest",children:"No playlist found"})})}):"Event Gallery"===P?(0,l.jsx)("div",{className:"w-full flex flex-col items-center justify-start p-4 md:p-6 lg:p-8 bg-black/40 rounded-2xl min-h-[500px]",children:Y||B?(0,l.jsxs)("div",{className:"w-full h-full flex flex-col items-center justify-center pt-24 pb-32",children:[(0,l.jsx)(v.Z,{className:"w-10 h-10 text-white/50 animate-spin mb-4"}),(0,l.jsxs)("p",{className:"text-white/60 font-sans text-sm",children:["Loading memories from Paradox ",A,"..."]})]}):(null===(s=O[A])||void 0===s?void 0:s.categories)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"flex items-center bg-white/5 backdrop-blur-xl border border-white/10 rounded-full p-1 gap-1 mb-4 md:mb-6 mt-2",children:Object.keys(O[A].categories).map(e=>(0,l.jsx)("button",{onClick:()=>X(e),className:"font-sans text-[10px] md:text-xs font-bold px-4 py-2 rounded-full transition-all duration-300 ".concat(U===e?"bg-white/20 text-white shadow-md border border-white/20":"text-white/60 hover:bg-white/10 hover:text-white border border-transparent"),children:et(e)},e))}),(null===(i=O[A].categories[U])||void 0===i?void 0:null===(o=i.events)||void 0===o?void 0:o.length)>0&&(0,l.jsx)("div",{className:"flex items-center flex-wrap justify-center gap-2 mb-8",children:O[A].categories[U].events.map(e=>(0,l.jsx)("button",{onClick:()=>Q(e.name),className:"font-sans text-[9px] md:text-[11px] font-semibold px-3 py-1.5 rounded-full transition-all duration-300 ".concat(V===e.name?"bg-purple-500/30 text-purple-100 border border-purple-500/50":"bg-white/5 text-white/50 border border-white/5 hover:bg-white/10 hover:text-white"),children:e.name},e.name))}),(null==ea?void 0:null===(n=ea.images)||void 0===n?void 0:n.length)>0?(0,l.jsx)("div",{className:"w-full flex overflow-x-auto gap-4 pb-4 snap-x snap-mandatory [&::-webkit-scrollbar]:hidden [-ms-overflow-style:'none'] [scrollbar-width:'none']",children:ea.images.map((e,t)=>(0,l.jsxs)("div",{onClick:()=>G(t),className:"relative flex-none w-[85vw] sm:w-[50vw] md:w-[400px] aspect-[4/3] snap-center rounded-xl overflow-hidden shadow-[0_10px_20px_rgba(0,0,0,0.3)] border border-white/10 group cursor-pointer hover:border-white/30 transition-all duration-300",children:[(0,l.jsx)("div",{className:"absolute inset-0 bg-black/20 group-hover:bg-transparent transition-colors duration-500 z-10"}),(0,l.jsx)("div",{className:"absolute top-3 right-3 z-20 opacity-0 group-hover:opacity-100 transition-opacity duration-300 p-2 rounded-full bg-black/60 backdrop-blur-sm text-white/80 hover:text-white border border-white/20 pointer-events-none",children:(0,l.jsx)(b.Z,{className:"w-4 h-4"})}),(0,l.jsx)(c.default,{src:e,alt:"".concat(V," image ").concat(t),fill:!0,sizes:"(max-width: 768px) 85vw, (max-width: 1200px) 50vw, 400px",className:"object-cover group-hover:scale-105 transition-transform duration-700 ease-out relative z-0"})]},t))}):(0,l.jsx)("div",{className:"w-full flex items-center justify-center py-12",children:(0,l.jsxs)("p",{className:"text-white/40 text-xs font-sans italic",children:["No images uploaded for ",V," yet."]})})]}):(0,l.jsx)("div",{className:"w-full h-full flex flex-col items-center justify-center pt-24 pb-32",children:(0,l.jsxs)("p",{className:"text-white/60 font-sans text-sm",children:["No photos foun
1d for Paradox ",A," yet."]})})}):"Inauguration"===P&&(null===(d=O[A])||void 0===d?void 0:d.inauguration)?(0,l.jsx)("div",{className:"w-full h-auto aspect-[4/3] md:aspect-[16/7] lg:aspect-[21/9] rounded-2xl overflow-hidden bg-black relative shadow-lg ring-1 ring-white/10",children:(0,l.jsx)("iframe",{className:"absolute inset-0 w-full h-full pointer-events-auto",src:("string"==typeof O[A].inauguration?O[A].inauguration:(null===(m=O[A].inauguration)||void 0===m?void 0:m.link)||"").replace("watch?v=","embed/").split("&")[0]+"?controls=1",title:"Inauguration Video",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):"Convocation"===P&&(null===(u=O[A])||void 0===u?void 0:u.convocation)?(0,l.jsx)("div",{className:"w-full h-auto aspect-[4/3] md:aspect-[16/7] lg:aspect-[21/9] rounded-2xl overflow-hidden bg-black relative shadow-lg ring-1 ring-white/10",children:(0,l.jsx)("iframe",{className:"absolute inset-0 w-full h-full pointer-events-auto",src:("string"==typeof O[A].convocation?O[A].convocation:(null===(h=O[A].convocation)||void 0===h?void 0:h.link)||"").replace("watch?v=","embed/").split("&")[0]+"?controls=1",title:"Convocation Video",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):Y?(0,l.jsx)("div",{className:"w-full h-auto aspect-square md:aspect-[16/9] lg:aspect-[16/9] bg-white/5 animate-pulse rounded-2xl"}):(0,l.jsx)("div",{className:"relative w-full h-auto aspect-square md:aspect-[16/9] lg:aspect-[16/9] rounded-2xl",children:(0,l.jsx)(c.default,{src:2026===A?
1"/2026cover.jpg":(null===(x=O[A])||void 0===x?void 0:x.cover)
1||"https://paradox-showcase.web.app/2025.JPG",alt:"".concat(A," Showcase"),fill:!0,priority:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 100vw, 100vw",className:"object-cover object-center rounded-2xl relative z-10"})})})]}),(0,l.jsx)("div",{className:"relative w-full max-w-5xl lg:max-w-7xl mx-auto flex flex-col items-center justify-center pt-2 md:pt-4 pb-12 transition-opacity duration-500 ".concat("Overview"===P?"opacity-100":"opacity-0 hidden"),children:(0,l.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-3 gap-4 md:gap-6 transition-all duration-1000 delay-700 ease-out ".concat(Z?"opacity-100 translate-y-0":"opacity-0 translate-y-24"),children:[(0,l.jsx)("div",{className:"md:col-span-2 relative w-full p-6 md:p-8 lg:p-10 bg-white/10 backdrop-blur-md border border-white/20 rounded-2xl md:rounded-3xl shadow-[0_20px_40px_rgba(0,0,0,0.4)] hover:bg-white/15 transition-all duration-300 flex flex-col items-start justify-center text-left",children:Y?(0,l.jsxs)("div",{className:"w-full space-y-4 animate-pulse",children:[(0,l.jsx)("div",{className:"h-4 bg-white/10 rounded w-1/4 mb-4"}),(0,l.jsx)("div",{className:"h-6 bg-white/10 rounded w-full"}),(0,l.jsx)("div",{className:"h-6 bg-white/10 rounded w-5/6"}),(0,l.jsx)("div",{className:"h-6 bg-white/10 rounded w-4/6"})]}):(0,l.jsxs)("p",{className:"font-sans font-medium text-base sm:text-lg md:text-xl lg:text-2xl text-beige leading-relaxed",children:[(0,l.jsx)("span",{className:"font-bold uppercase tracking-wider text-purple-300 text-xs sm:text-sm block mb-2 sm:mb-4",children:(null===(p=O[A])||void 0===p?void 0:p.tagline)||"Paradox ".concat(A)}),(null===(w=O[A])||void 0===w?void 0:w.description)||"IIT Madras BS Degree students embarked on an 5-day adventure at the IITM campus from June 4th - June 8th, navigating through complex mysteries while safeguarding confidential academic records. The event combined workshops, cultural and sports event with immersive storytelling, creating an unforgettable learning experience."]})}),((null===(_=O[A])||void 0===_?void 0:_.logo)||Y)&&(0,l.jsxs)("div",{className:"relative w-full p-4 md:p-6 lg:p-8 bg-white/10 backdrop-blur-md border border-white/20 rounded-2xl md:rounded-3xl shadow-[0_20px_40px_rgba(0,0,0,0.4)] hover:bg-white/15 transition-all duration-300 flex flex-col items-center justify-center group",children:[(0,l.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-purple-500/10 to-transparent rounded-2xl md:rounded-3xl pointer-events-none"}),(0,l.jsx)("div",{className:"absolute top-4 left-5",children:(0,l.jsx)("span",{className:"font-bold uppercase tracking-wider text-purple-300/70 text-[10px] md:text-xs",children:"Logo"})}),(0,l.jsx)("div",{className:"relative w-full h-[160px] flex items-center justify-center p-4",children:Y?(0,l.jsx)("div",{className:"w-24 h-24 rounded-full bg-white/10 animate-pulse"}):(0,l.jsx)(c.default,{src:O[A].logo,alt:"Fest Logo",fill:!0,sizes:"(max-width: 768px) 100vw, 33vw",className:"object-contain filter drop-shadow-[0_10px_20px_rgba(0,0,0,0.5)] group-hover:scale-105 transition-transform duration-500"})})]}),((null===(C=O[A])||void 0===C?void 0:C.trailer)||(null===(S=O[A])||void 0===S?void 0:S.aftermovie)||Y)&&(0,l.jsxs)("div",{className:"md:col-span-3 w-full grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-6 mt-2 md:mt-4",children:[((null===(E=O[A])||void 0===E?void 0:E.trailer)||(null===(I=O[A])||void 0===I?void 0:I.teaser)||Y)&&(0,l.jsx)("div",{className:"relative w-full p-1.5 md:p-2 bg-white/10 backdrop-blur-md border border-white/20 rounded-2xl md:rounded-3xl shadow-[0_20px_40px_rgba(0,0,0,0.4)] hover:bg-white/15 transition-all duration-300 group overflow-hidden",children:(0,l.jsx)("div",{className:"w-full aspect-[4/3] md:aspect-[16/9] bg-black rounded-xl md:rounded-2xl overflow-hidden relative",children:Y?(0,l.jsx)("div",{className:"w-full h-full bg-white/5 animate-pulse"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("iframe",{src:((null===(z=O[A])||void 0===z?void 0:z.trailer)||(null===(T=O[A])||void 0===T?void 0:T.teaser)).replace("watch?v=","embed/").split("&")[0]+"?controls=1",title:"Trailer",className:"absolute inset-0 w-full h-full object-cover rounded-xl md:rounded-2xl border-none pointer-events-auto",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),(0,l.jsx)("div",{className:"absolute bottom-3 left-4 right-4 md:bottom-4 md:left-5 md:right-5 flex justify-between items-center text-white pointer-events-none",children:(0,l.jsx)("span",{className:"font-sans text-[9px] md:text-[11px] font-extrabold uppercase tracking-widest bg-black/50 px-2 py-1 rounded backdrop-blur-sm",children:"Trailer"})})]})})}),((null===(L=O[A])||void 0===L?void 0:L.aftermovie)||Y)&&(0,l.jsx)("div",{className:"relative w-full p-1.5 md:p-2 bg-white/10 backdrop-blur-md border border-white/20 rounded-2xl md:rounded-3xl shadow-[0_20px_40px_rgba(0,0,0,0.4)] hover:bg-white/15 transition-all duration-300 group overflow-hidden",children:(0,l.jsx)("div",{className:"w-full aspect-[4/3] md:aspect-[16/9] bg-black rounded-xl md:rounded-2xl overflow-hidden relative",children:Y?(0,l.jsx)("div",{className:"w-full h-full bg-white/5 animate-pulse"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("iframe",{src:O[A].aftermovie.replace("watch?v=","embed/").split("&")[0]+"?controls=1",title:"Aftermovie",className:"absolute inset-0 w-full h-full object-cover rounded-xl md:rounded-2xl border-none pointer-events-auto",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),(0,l.jsx)("div",{className:"absolute bottom-3 left-4 right-4 md:bottom-4 md:left-5 md:right-5 flex justify-between items-center text-white pointer-events-none",children:(0,l.jsx)("span",{className:"font-sans text-[9px] md:text-[11px] font-extrabold uppercase tracking-widest bg-black/50 px-2 py-1 rounded backdrop-blur-sm",children:"Aftermovie"})})]})})})]})]})})]})}),(0,l.jsx)("div",{className:"absolute bottom-0 left-6 right-6 h-[1px] bg-charcoal/5"}),Z&&null!==q&&(null==ea?void 0:null===(F=ea.images)||void 0===F?void 0:F[q])&&"undefined"!=typeof document&&(0,f.createPortal)((0,l.jsxs)("div",{className:"fixed inset-0 z-[99999] bg-black/85 backdrop-blur-2xl flex flex-col items-center justify-between p-4 md:p-8 select-none animate-fade-in",onClick:()=>G(null),children:[(0,l.jsxs)("div",{className:"w-full max-w-7xl flex items-center justify-between z-10 text-white py-3 px-4 bg-white/10 backdrop-blur-md rounded-2xl border border-white/15 mb-4",onClick:e=>e.stopPropagation(),children:[(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("h3",{className:"font-sans font-bold text-base md:text-xl text-white drop-shadow-md",children:V}),(0,l.jsxs)("p",{className:"font-sans text-xs md:text-sm text-white/60",children:["Photo ",q+1," of ",ea.images.length]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("a",{href:ea.images[q],target:"_blank",rel:"noopener noreferrer",className:"p-2.5 rounded-full bg-white/10 hover:bg-white/20 text-white/80 hover:text-white border border-white/15 transition-all duration-200",title:"Open full size in new tab",children:(0,l.jsx)(g.Z,{className:"w-4 h-4 md:w-5 md:h-5"})}),(0,l.jsx)("button",{onClick:()=>G(null),className:"p-2.5 rounded-full bg-white/10 hover:bg-white/20 text-white/80 hover:text-white border border-white/15 transition-all duration-200",title:"Close (Esc)",children:(0,l.jsx)(j.Z,{className:"w-4 h-4 md:w-5 md:h-5"})})]})]}),(0,l.jsxs)("div",{className:"relative flex-1 w-full max-w-6xl flex items-center justify-center my-4 overflow-hidden",onClick:e=>e.stopPropagation(),children:[ea.images.length>1&&(0,l.jsx)("button",{onClick:el,className:"absolute left-2 md:left-4 z-20 p-3 rounded-full bg-black/60 hover:bg-black/80 text-white/80 hover:text-white border border-white/20 backdrop-blur-md shadow-2xl transition-all duration-200 active:scale-95",title:"Previous photo (Left arrow)",children:(0,l.jsx)(y.Z,{className:"w-6 h-6"})}),(0,l.jsx)("div",{className:"relative w-full h-full max-h-[75vh] md:max-h-[80vh] flex items-center justify-center p-2",children:(0,l.jsx)("img",{src:ea.images[q],alt:"".concat(V," photo ").concat(q+1),className:"max-w-full max-h-[75vh] md:max-h-[80vh] w-auto h-auto object-contain rounded-xl md:rounded-2xl shadow-[0_25px_60px_rgba(0,0,0,0.8)] border border-white/10"})}),ea.images.length>1&&(0,l.jsx)("button",{onClick:er,className:"absolute right-2 md:right-4 z-20 p-3 rounded-full bg-black/60 hover:bg-black/80 text-white/80 hover:text-white border border-white/20 backdrop-blur-md shadow-2xl transition-all duration-200 active:scale-95",title:"Next p
1hoto (Right arrow)",children:(0,l.jsx)(N.Z,{className:"w-6 h-6"})})]}),ea.images.length>1&&(0,l.jsx)("div",{className:"w-full max-w-4xl flex items-center gap-2 overflow-x-auto py-3 px-6 scroll-smooth [&::-webkit-scrollbar]:hidden",style:{scrollbarWidth:"none",msOverflowStyle:"none",justifyContent:ea.images.length>8?"flex-start":"center"},onWheel:e=>{0!==e.deltaY&&(e.currentTarget.scrollLeft+=e.deltaY)},onClick:e=>e.stopPropagation(),children:ea.images.map((e,t)=>(0,l.jsx)("button",{ref:e=>W.current[t]=e,onClick:()=>G(t),className:"relative flex-none w-14 h-14 md:w-16 md:h-16 rounded-xl overflow-hidden border-2 transition-all duration-300 ".concat(q===t?"border-purple-400 scale-110 shadow-lg shadow-purple-500/40 opacity-100 z-10":"border-white/10 opacity-50 hover:opacity-90 hover:border-white/30"),children:(0,l.jsx)("img",{src:e,alt:"thumb ".concat(t),className:"w-full h-full object-cover"})},t))})]}),document.body)]})}var C=a(3872);function S(){return(0,l.jsx)("footer",{className:"w-full relative z-30 bg-[#130221] backdrop-blur-md border-t border-purple-900/50 pt-12 pb-8 mt-auto shadow-[0_20px_40px_rgba(0,0,0,0.6)]",children:(0,l.jsx)("div",{className:"max-w-7xl mx-auto px-6 md:px-12 w-full flex flex-col",children:(0,l.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-center md:items-start space-y-8 md:space-y-0 text-white/80",children:[(0,l.jsxs)("div",{className:"md:w-1/3 text-center md:text-left flex flex-col space-y-3",children:[(0,l.jsx)("h5",{className:"text-lg font-semibold tracking-wide text-white uppercase font-sans",children:"Contact Us"}),(0,l.jsxs)("p",{className:"text-sm font-light leading-relaxed text-white/60",children:["IITM BS Degree Office, 3rd Floor, ICSR Building,",(0,l.jsx)("br",{}),"IIT Madras, Chennai - 600036"]}),(0,l.jsxs)("a",{href:"mailto:[email protected]",className:"text-sm font-light text-white/80 hover:text-white transition-colors flex flex-col items-center md:items-start mt-2",children:[(0,l.jsxs)("span",{className:"flex items-center mb-1",children:[(0,l.jsx)(C.I7T,{className:"mr-2",size:12}),"7850999966 (Mon-Fri 9am-6pm)"]}),(0,l.jsx)("span",{children:"[email protected]"})]})]}),(0,l.jsxs)("div",{className:"md:w-1/3 flex justify-center space-x-3 items-center h-full",children:[(0,l.jsx)("a",{href:"https://www.facebook.com/iitmadrasbsdegree",target:"_blank",rel:"noopener noreferrer",className:"text-white hover:text-white/80 bg-white/5 hover:bg-white/10 transition-all duration-300 rounded-xl p-3 shadow-sm border border-white/5",children:(0,l.jsx)(C.tBk,{size:18})}),(0,l.jsx)("a",{href:"https://www.instagram.com/iitmadras_bs/",target:"_blank",rel:"noopener noreferrer",className:"text-white hover:text-white/80 bg-white/5 hover:bg-white/10 transition-all duration-300 rounded-xl p-3 shadow-sm border border-white/5",children:(0,l.jsx)(C.Zf_,{size:18})}),(0,l.jsx)("a",{href:"https://x.com/iitm_bs",target:"_blank",rel:"noopener noreferrer",className:"text-white hover:text-white/80 bg-white/5 hover:bg-white/10 transition-all duration-300 rounded-xl p-3 shadow-sm border border-white/5",children:(0,l.jsx)(C.LCd,{size:18})}),(0,l.jsx)("a",{href:"https://www.linkedin.com/company/iit-madras-bs-datascience-programme/",target:"_blank",rel:"noopener noreferrer",className:"text-white hover:text-white/80 bg-white/5 hover:bg-white/10 transition-all duration-300 rounded-xl p-3 shadow-sm border border-white/5",children:(0,l.jsx)(C.BUd,{size:18})}),(0,l.jsx)("a",{href:"https://api.whatsapp.com/message/IVROM2UN7XIJL1?autoload=1&app_absent=0",target:"_blank",rel:"noopener noreferrer",className:"text-white hover:text-white/80 bg-white/5 hover:bg-white/10 transition-all duration-300 rounded-xl p-3 shadow-sm border border-white/5",children:(0,l.jsx)(C.xpo,{size:18})})]}),(0,l.jsxs)("div",{className:"md:w-1/3 text-center md:text-right flex flex-col justify-end h-full space-y-3",children:[(0,l.jsx)("p",{className:"text-sm font-light text-white/60 uppercase tracking-widest mt-auto md:mt-0",children:"\xa9 IIT Madras. All rights reserved."}),(0,l.jsxs)("div",{className:"flex items-center justify-center md:justify-end space-x-3 text-xs text-white/50 font-light",children:[(0,l.jsx)("a",{href:"https://study.iitm.ac.in/ds/privacy_policy.html",target:"_blank",rel:"noopener noreferrer",className:"hover:text-white transition-colors",children:"Privacy Policy"}),(0,l.jsx)("span",{children:"|"}),(0,l.jsx)("a",{href:"https://study.iitm.ac.in/ds/tos.html",target:"_blank",rel:"noopener noreferrer",className:"hover:text-white transition-colors",children:"Terms of Service"})]})]})]})})})}function E(){let[e,t]=(0,r.useState)({}),[a,o]=(0,r.useState)([]),[i,n]=(0,r.useState)(!1),[c,m]=(0,r.useState)(null),[u,h]=(0,r.useState)(null),[x,p]=(0,r.useState)(0),[f,v]=(0,r.useState)("Overview"),[b,g]=(0,r.useState)(!1),j=(0,r.useCallback)(async()=>{try{n(!0);let e=(0,s.hJ)(d,"festYears"),t=(await (0,s.PL)(e)).docs.map(e=>parseInt(e.id,10)).filter(e=>!isNaN(e)).sort((e,t)=>
1t-e);o(t)}catch(e){console.error("Error fetching available years:",e)}finally{n(!1)}},[]),y=(0,r.useCallback)(async a=>{var l;if((null===(l=e[a])||void 0===l?void 0:l.description)===void 0)try{m(a);let e=(0,s.JU)(d,"festYears",a.toString()),l=await (0,s.QT)(e),r=l.exists()?l.data():{};t(e=>({...e,[a]:{...e[a],...r}}))}catch(e){console.error("Error fetching metadata for ".concat(a,":"),e)}finally{m(null)}},[e]),N=(0,r.useCallback)(async a=>{var l;if(!(null===(l=e[a])||void 0===l?void 0:l.categories))try{h(a);let e=(0,s.hJ)(d,"festYears/".concat(a,"/categories")),l=await (0,s.PL)(e),r={};for(let e of l.docs){let t=e.data(),l=(0,s.hJ)(d,"festYears/".concat(a,"/categories/").concat(e.id,"/events")),o=await (0,s.PL)(l);t.events=o.docs.map(e=>e.data()),r[e.id]={...t,id:e.id}}t(e=>({...e,[a]:{...e[a],categories:r}}))}catch(e){console.error("Error fetching categories for ".concat(a,":"),e)}finally{h(null)}},[e]);(0,r.useEffect)(()=>{j()},[j]),(0,r.useEffect)(()=>{a.length>0&&(0===x?p(a[0]):e[x]||c===x||y(x))},[a,x,y,e,c]),(0,r.useEffect)(()=>{let e;let t=t=>{cancelAnimationFrame(e),e=requestAnimationFrame(()=>{let e=document.getElementById("mouse-glow");e&&(e.style.background="radial-gradient(600px at ".concat(t.clientX,"px ").concat(t.clientY,"px, rgba(201, 123, 99, 0.07), transparent 80%)")),document.querySelectorAll(".magnetic-btn").forEach(e=>{let a=e.getBoundingClientRect(),l=a.left+a.width/2,r=a.top+a.height/2,s=t.clientX-l,o=t.clientY-r;120>Math.hypot(s,o)?e.style.transform="translate3d(".concat(.22*s,"px, ").concat(.22*o,"px, 0) scale(1.02)"):e.style.transform="translate3d(0, 0, 0) scale(1)"})})};window.addEventListener("mousemove",t);let a=new IntersectionObserver((e,t)=>{e.forEach(e=>{e.isIntersecting&&(e.target.classList.add("visible"),t.unobserve(e.target))})},{root:null,rootMargin:"0px -50px",threshold:.05});return document.querySelectorAll(".reveal-on-scroll, .clip-reveal, .clip-reveal-right, .split-line-content").forEach(e=>a.observe(e)),()=>{window.removeEventListener("mousemove",t),cancelAnimationFrame(e),a.disconnect()}},[]);let k=i||0===a.length||0===x||c===x;return(0,l.jsxs)(l.Fragment,{children:[b&&(0,l.jsx)("div",{className:"fixed inset-0 z-[9999] bg-black/80 flex items-center justify-center p-4 backdrop-blur-sm",children:(0,l.jsxs)("div",{className:"bg-[#0A0314] rounded-2xl p-6 max-w-5xl w-full h-[85vh] flex flex-col border border-white/20 shadow-2xl",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h2",{className:"text-white font-bold text-xl",children:"Raw Firebase Data Debugger"}),(0,l.jsxs)("p",{className:"text-white/50 text-sm",children:["Status: ",i||c?"Fetching from Firestore...":"Fetch Complete!"]})]}),(0,l.jsx)("button",{onClick:()=>g(!1),className:"px-4 py-2 bg-red-500/20 text-red-300 rounded-lg hover:bg-red-500/40 transition-colors",children:"Close Debugger"})]}),(0,l.jsx)("div",{className:"flex-1 bg-black overflow-auto p-4 rounded-xl border border-white/10",children:(0,l.jsx)("pre",{className:"text-green-400 text-xs sm:text-sm font-mono whitespace-pre-wrap break-all",children:0!==Object.keys(e).length||i||c?JSON.stringify(e,null,2):"ERROR: No data found in Firebase for the 'festYears' collection! Please check your database rules, or ensure data is created."})})]})}),k&&(0,l.jsxs)("div",{className:"fixed inset-0 overflow-hidden z-[100] bg-[#130221]/95 backdrop-blur-xl flex flex-col items-center justify-center transition-opacity duration-500",children:[(0,l.jsx)("style",{children:"\n            @keyframes curvyDraw {\n              0% { stroke-dashoffset: 400; }\n              50% { stroke-dashoffset: 0; }\n              100% { stroke-dashoffset: -400; }\n            }\n            .curvy-line-animate {\n              stroke-dasharray: 400;\n              animation: curvyDraw 3s ease-in-out infinite;\n            }\n          "}),(0,l.jsxs)("svg",{viewBox:"0 0 200 20",className:"w-64 md:w-80 h-10 mb-6",fill:"none",strokeWidth:"2.5",strokeLinecap:"round",children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"purpleGlow",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,l.jsx)("stop",{offset:"0%",stopColor:"#a85
15f7"}),(0,l.jsx)("stop",{offset:"50%",stopColor:"#d946ef"}),(0,l.jsx)("stop",{offset:"100%",stopColor:"#3b82f6"})]})}),(0,l.jsx)("path",{d:"M 0 10 Q 10 6 20 10 T 40 10 T 60 10 T 80 10 T 100 10 T 120 10 T 140 10 T 160 10 T 180 10 T 200 10",stroke:"url(#purpleGlow)",className:"curvy-line-animate"})]}),(0,l.jsx)("div",{className:"absolute bottom-0 w-full flex justify-center translate-y-[30%] pointer-events-none",children:(0,l.jsx)("h1",{className:"text-[9.5vw] font-sans font-black uppercase tracking-tighter whitespace-nowrap text-white/5 backdrop-blur-xl",style:{WebkitTextStroke:"2px rgba(255,255,255,0.15)"},children:"Paradox Showcase"})})]}),(0,l.jsx)(w,{selectedYear:x,setSelectedYear:p,selectedCategory:f,setSelectedCategory:v,festData:e,isLoading:i||c===x,availableYears:a,fetchYearCategories:N}),(0,l.jsx)("main",{className:"flex flex-col flex-1 relative",children:(0,l.jsx)(_,{selectedYear:x,selectedCategory:f,festData:e,isLoading:i||c===x,isCategoriesLoading:u===x})}),(0,l.jsx)(S,{})]})}}},function(e){e.O(0,[240,358,485,971,23,744],function(){return e(e.s=1287)}),_N_E=e.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.