1import{r as b,j as e,a as f}from"./vendor-react-7bqd9trT.js";import{u as z}from"./vendor-react-intersection-observer-BFMLAWMv.js";import{B as I,E as O,g as W,d as B}from"./page-landing-DKfki2Pz.js";import{u as T}from"./page-karmatek-DbDAJV6Q.js";import{motion as s}from"./vendor-motion-l-em5LIF.js";import{L as $,u as K}from"./vendor-react-router-DzbgsJFY.js";import{s as H,k as R}from"./karmatekEventScheduleData-DRF3TIl8.js";import{T as P}from"./TypewriterTitle-Bqh92C19.js";import"./vendor-firebase-BCPHCsmI.js";import"./vendor-utils-DhxxFN3n.js";import"./vendor-bootstrap-BpANg-63.js";import"./vendor-classnames-CByt8XhG.js";import"./vendor-dom-helpers-DY4L_g-8.js";import"./vendor-@restart/hooks-CoIVq_i6.js";import"./vendor-@restart/ui-DspcyeEP.js";import"./vendor-react-transition-group-CMxBMox2.js";import"./vendor-@babel/runtime-G6YR9G09.js";import"./vendor-prop-types-CWBOqN5m.js";import"./vendor-motion-dom-ChnWIrzl.js";import"./vendor-motion-utils-z6cKkV6v.js";const _={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.35}}},v={hidden:{opacity:0,y:15},visible:{opacity:1,y:0,transition:{duration:.5,ease:[.22,1,.36,1]}}},h={hidden:{opacity:0,scale:.9},visible:{opacity:1,scale:1,transition:{duration:.4,ease:[.22,1,.36,1]}}},U=({id:a,title:u,subheading:r,description:o,date:p,time:t,location:l,mode:n,entryFee:i,prizePool:d,sponsor:x,backgroundImage:w,characterImage:V,reverse:y=!1,isAboveFold:k=!1})=>{const{ref:C,inView:g}=z({triggerOnce:!0,threshold:.15}),D=b.useRef(null),[m,F]=b.useState(()=>typeof window<"u"?window.innerWidth<800:!1),[N,E]=b.useState(!1),{displayedText:L}=T({text:u||"",enabled:g,speed:60});b.useEffect(()=>{let c;const j=()=>{clearTimeout(c),c=setTimeout(()=>{F(window.innerWidth<800)},150)};return window.addEventListener("resize",j,{passive:!0}),()=>{clearTimeout(c),window.removeEventListener("resize",j)}},[]);const M=c=>{C(c),D.current=c};return e.jsxs("section",{id:a,ref:M,className:`position-relative overflow-hidden rounded-4 mb-5 karmatek-showcase ${m?"d-flex flex-column":""} ${N?"is-powered":""}`,style:{minHeight:m?"auto":"750px",height:"auto"},children:[e.jsx("div",{className:"karmatek-showcase-rail","aria-hidden":"true"}),w&&e.jsx(s.img,{initial:{opacity:0,scale:1.05},animate:g?{opacity:.55,scale:1}:{},transition:{duration:.7,ease:[.22,1,.36,1]},className:"position-absolute w-100",src:w,alt:"","aria-hidden":"true",draggable:"false",loading:k?"eager":"lazy",fetchPriority:k?"high":void 0,decoding:"async",width:"1920",height:"1080",style:{bottom:0,height:"70%",objectFit:"cover",zIndex:1,pointerEvents:"none",aspectRatio:"16 / 9"}}),e.jsx(s.div,{initial:{opacity:0,x:m?0:y?-60:60,scale:.9},animate:g?{opacity:1,x:0,scale:1}:{},transition:{duration:.6,delay:.25,ease:[.22,1,.36,1]},className:m?"w-100 d-flex flex-column align-items-center justify-content-end pt-3 px-2":"position-absolute top-0 h-100",style:{zIndex:3,...m?{}:{width:"40%",[y?"left":"right"]:0,display:"flex",alignItems:"flex-end",justifyContent:y?"flex-start":"flex-end",overflow:"hidden"}},children:e.jsx("img",{src:V,alt:"character",draggable:"false",loading:k?"eager":"lazy",fetchPriority:k?"high":void 0,decoding:"async",width:"600",height:"800",style:{height:m?"clamp(200px, 40vh, 360px)":"100%",width:m?"auto":"100%",objectFit:"contain",pointerEvents:"none",aspectRatio:"3 / 4",willChange:"transform"}})}),e.jsx(s.div,{initial:{opacity:0,y:30},animate:g?{opacity:1,y:0}:{},transition:{duration:.6,delay:.15,ease:[.22,1,.36,1]},className:`w-100 ${m?"d-flex justify-content-center align-items-start p-3 p-md-4":"position-absolute top-0 start-0 h-100 d-flex align-items-center"}`,style:{zIndex:4,willChange:g?"auto":"transform, opacity",...m?{}:{padding:"2rem",justifyContent:y?"flex-end":"flex-start",paddingRight:y?"10%":"2rem",paddingLeft:y?"2rem":"10%"}},children:e.jsxs("div",{className:`text-white karmatek-power-card ${N?"is-powered":""}`,style:{maxWidth:m?"100%":"50%",minWidth:"280px",background:"linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.45))",backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",border:"1px solid rgba(255, 255, 255, 0.08)",borderRadius:"24px",boxShadow:"0 16px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1)",padding:m?"1.5rem":"2.5rem"},onClick:()=>E(c=>!c),role:"button","aria-pressed":N,tabIndex:0,onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),E(j=>!j))},children:[e.jsx(s.h2,{initial:{opacity:0}
1,animate:g?{opacity:1}:{},transition:{duration:.3,delay:.25},className:"fw-bold mb-3",style:{fontSize:"clamp(1.75rem, 5vw, 2.75rem)",textShadow:"0 2px 10px rgba(0,0,0,0.5)",letterSpacing:"-0.02em"},children:L}),e.jsxs(s.div,{variants:_,initial:"hidden",animate:g?"visible":"hidden",className:"d-flex flex-column",children:[r&&e.jsx(s.div,{variants:v,className:"text-info text-uppercase fw-semibold mb-3",style:{letterSpacing:"0.1em",fontSize:"0.9rem"},children:r}),o&&e.jsx(s.p,{variants:v,className:"mb-4",style:{fontSize:"clamp(1rem, 2.5vw, 1.15rem)",lineHeight:"1.7",color:"rgba(255,255,255,0.85)"},children:o}),e.jsxs("div",{className:"d-flex flex-column gap-3",children:[e.jsxs("div",{className:"d-flex flex-wrap align-items-center gap-2",children:[p&&e.jsx(s.span,{variants:h,className:"badge text-dark fw-bold px-3 py-2 rounded-pill",style:{fontSize:"clamp(0.85rem, 2.5vw, 0.95rem)",background:"linear-gradient(135deg,#22d3ee,#0ea5b9)",boxShadow:"0 4px 12px rgba(34, 211, 238, 0.25)"},children:p}),t&&e.jsx(s.span,{variants:h,className:"badge text-light px-3 py-2 rounded-pill",style:{background:"rgba(255,255,255,0.1)",border:"1px solid rgba(255,255,255,0.05)"},children:t}),(l||n)&&e.jsxs(s.span,{variants:h,className:"badge text-light px-3 py-2 rounded-pill",style:{background:"rgba(255,255,255,0.1)",border:"1px solid rgba(255,255,255,0.05)"},children:[n?`${n}`:"",n&&l?" ⢠":"",l||""]})]}),e.jsxs("div",{className:"d-flex flex-wrap align-items-center gap-2",children:[i&&e.jsxs(s.span,{variants:h,className:"badge text-light px-3 py-2 rounded-pill",style:{background:"rgba(0,0,0,0.5)",border:"1px solid rgba(255,255,255,0.1)"},children:["Entry: ",i]}),d&&e.jsxs(s.span,{variants:h,className:"badge text-light px-3 py-2 rounded-pill",style:{background:"rgba(0,0,0,0.5)",border:"1px solid rgba(255,255,255,0.1)"},children:["Prize Pool: ",d]}),x&&e.jsxs(s.span,{variants:h,className:"d-flex align-items-center gap-2",children:[e.jsx("small",{className:"text-secondary",style:{fontSize:"0.8rem"},children:"Sponsored by"}),e.jsx("span",{className:"badge text-white px-3 py-1.5 rounded-pill",style:{background:"linear-gradient(135deg,#0ea5b9,#0369a1)",fontWeight:700,border:"1px solid rgba(14, 165, 185, 0.3)"},children:x})]}),a&&e.jsx(s.div,{variants:h,className:"ms-1 mt-2 mt-sm-0",children:e.jsx($,{to:`/karmatek/event/${a}`,className:"text-decoration-none",children:e.jsx(I,{text:"View Details",gradient:"linear-gradient(90deg,#05a5ff,#00d4ff)"})})})]})]})]})]})})]})},q=H.filter(a=>a.karmatek&&a.type==="fun"),A=({events:a})=>{const u=K(),[r,o]=b.useState(!1),p=(a?.length?a:q).filter(t=>String(t.type||"").toLowerCase()==="fun");return b.useEffect(()=>{const t=()=>o(window.innerWidth<768);return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),e.jsxs("section",{className:"mt-4 mb-2 position-relative overflow-hidden rounded-4 karmatek-district karmatek-district--fun",children:[e.jsx("style",{children:` 2 .group:hover .card-overlay { opacity: 1 !important; } 3 @media (max-width: 767px) { .card-overlay { opacity: 1 !important; } } 4 `}),e.jsxs("div",{className:"position-relative z-1 text-white py-4 px-3",children:[e.jsx(P,{text:"Fun & Informals",className:"fw-bold mb-4 display-6 text-center karmatek-section-title",speed:35}),e.jsx(s.p,{className:"lead text-center text-secondary mb-5",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},children:"Karmatek isn't just about code and combat â join the fun side of the fest!"}),e.jsx("div",{className:"row justify-content-center",children:p.map((t,l)=>e.jsx(s.div,{className:"col-12 col-sm-6 col-md-4 col-lg-4 mb-4",initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:l*.1},children:e.jsx("div",{className:"rounded-4 text-center p-3 h-100 position-relative group karmatek-power-card",style:{background:`url(${t.eventImage}) center/cover no-repeat, #222`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",aspectRatio:"1 / 1",borderRadius:"20px",border:"1px solid rgba(255,255,255,0.1)",boxShadow:"0 0 10px rgba(0,0,0,0.2)",cursor:"pointer",overflow:"hidden",position:"relative"},onClick:()=>u(`/karmatek/event/${t.slug||t.id}`),"aria-label":`View details for ${t.name}`,children:e.jsxs("div",{className:"position-absolute top-0 start-0 w-100 h-100 d-flex flex-column justify-content-center align-items-center card-overlay",style:{background:"rgba(0, 0, 0, 0.6)",opacity:r?1:0,transition:"opacity 0.3s ease",color:"white",padding:"1rem"},children:[e.jsx("h6",{className:"fw-bold mb-2",children:t.name}),t.subheading&&e.jsx("div",{className:"text-info text-uppercase fw-semibold mb-1",children:t.subheading}),t.tagline&&e.jsx("p",{className:"small mb-2",children:t.tagline}),e.jsxs("div",{className:"d-flex flex-wrap gap-2 justify-content-center mb-3",children:[t.entryFee&&e.jsxs("span",{className:"badge bg-dark text-light",children:["Entry: ",t.entryFee]}),t.prizePool&&e.jsxs("span",{className:"badge bg-dark text-light",children:["Prize: ",t.prizePool]}),t.mode&&e.jsx("span",{className:"badge bg-secondary text-light",children:t.mode})]}),e.jsx("button",{className:"btn btn-outline-light","aria-label":`View details for ${t.name}`,onClick:n=>{n.stopPropagation(),u(`/karmatek/event/${t.slug||t.id}`)},children:"View Details"})]})})},t.id||t.slug||l))})]})]})},G=["robo-race","robo-soccer"],J=(R.days||[]).flatMap(a=>a.events||[]),Q=({event:a})=>{const{ref:u,inView:r}=z({triggerOnce:!0,threshold:.2}),[o,p]=b.useState(null),{displayedText:t}=T({text:a.name||"",enabled:r,speed:60}),l=a.startTime&&a.endTime?`${a.date}, ${a.startTime} â ${a.endTime}`:a.startTime?`${a.date}, ${a.startTime}`:a.date;return e.jsx("div",{ref:u,className:"col-12 col-sm-6 col-lg-6 d-flex mb-4",children:e.jsxs("div",{className:`rounded-4 shadow-lg text-white w-100 position-relative overflow-hidden karmatek-power-card ${o===a.id?"is-powered":""}`,style:{minHeight:"420px"},onClick:()=>p(n=>n===a.id?null:a.id),role:"button","aria-pressed":o===a.id,tabIndex:0,onKeyDown:n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),p(i=>i===a.id?null:a.id))},children:[a.backgroundImage&&e.jsx(s.div,{initial:{opacity:0,scale:1.05},animate:r?{opacity:1,scale:1}:{},transition:{duration:.7,ease:[.22,1,.36,1]},className:"position-absolute top-0 start-0 w-100 h-100",style:{backgroundImage:`url(${a.backgroundImage})`,backgroundSize:"cover",backgroundPosition:"center",zIndex:1}}),e.jsx("div",{className:"position-absolute top-0 start-0 w-100 h-100",style:{background:"linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4))",zIndex:2}}),e.jsxs(s.div,{initial:{opacity:0,y:30},animate:r?{opacity:1,y:0}:{},transition:{duration:.6,delay:.15,ease:[.22,1,.36,1]},className:"position-relative z-3 p-4 d-flex flex-column justify-content-between h-100",children:[e.jsxs("div",{children:[e.jsx(s.h3,{initial:{opacity:0}
4,animate:r?{opacity:1}:{},transition:{duration:.3,delay:.3},className:"fw-bold",children:t}),a.subheading&&e.jsx(s.div,{initial:{opacity:0,y:10},animate:r?{opacity:1,y:0}:{},transition:{duration:.4,delay:.4},className:"text-info text-uppercase fw-semibold",children:a.subheading}),a.tagline&&e.jsx(s.p,{initial:{opacity:0,y:10},animate:r?{opacity:1,y:0}:{},transition:{duration:.4,delay:.45},className:"mt-2",children:a.tagline})]}),e.jsxs("div",{className:"d-flex flex-column align-items-center gap-2 mt-3",children:[e.jsx(s.span,{initial:{opacity:0,scale:.95},animate:r?{opacity:1,scale:1}:{},transition:{duration:.3,delay:.5,ease:[.22,1,.36,1]},className:"badge bg-info text-dark px-3 py-2 rounded-pill fw-semibold",children:l}),e.jsxs(s.div,{initial:{opacity:0},animate:r?{opacity:1}:{},transition:{delay:.55},className:"d-flex flex-wrap gap-2 mt-2 w-100 justify-content-center",children:[a.entryFee&&e.jsxs(s.span,{initial:{opacity:0,scale:.95},animate:r?{opacity:1,scale:1}:{},transition:{duration:.3,delay:.55,ease:[.22,1,.36,1]},className:"badge bg-dark text-light px-3 py-2 rounded-pill",children:["Entry: ",a.entryFee]}),a.prizePool&&e.jsxs(s.span,{initial:{opacity:0,scale:.95},animate:r?{opacity:1,scale:1}:{},transition:{duration:.3,delay:.6,ease:[.22,1,.36,1]},className:"badge bg-dark text-light px-3 py-2 rounded-pill",children:["Prize: ",a.prizePool]}),a.mode&&e.jsx(s.span,{initial:{opacity:0,scale:.95},animate:r?{opacity:1,scale:1}:{},transition:{duration:.3,delay:.65,ease:[.22,1,.36,1]},className:"badge bg-secondary text-light px-3 py-2 rounded-pill",children:a.mode})]}),(a.slug||a.id)&&e.jsx(s.div,{initial:{opacity:0,scale:.95},animate:r?{opacity:1,scale:1}:{},transition:{duration:.3,delay:.7,ease:[.22,1,.36,1]},children:e.jsx($,{to:`/karmatek/event/${a.slug||a.id}`,"aria-label":`View details for ${a.name}`,className:"text-decoration-none",children:e.jsx(I,{text:"View Details"})})})]})]})]})},a.id||a.slug)},X=({events:a})=>{const r=(a?.length?a:J).filter(o=>G.includes(o.id));return e.jsx("section",{className:"text-center mt-5 mb-2 karmatek-district karmatek-district--robo",children:e.jsx("div",{className:"container",children:e.jsx("div",{className:"row justify-content-center",children:r.map(o=>e.jsx(Q,{event:o},o.id||o.slug))})})})},Y=new Set(["robo-race","robo-soccer"]),Z=a=>String(a.type||"").toLowerCase()==="fun",ee=a=>Y.has(String(a.id||"")),S=a=>a?.karmatek===!0,ae=(R.days||[]).flatMap(a=>a.events||[]),je=()=>{const[a,u]=f.useState(ae),[r,o]=f.useState(!1),[p,t]=f.useState(null);f.useEffect(()=>{let i=!0;return(async()=>{try{const x=await B({publishedOnly:!0,karmatekOnly:!0,sortDesc:!1});if(!i)return;const w=x.filter(S);w.length&&u(w)}catch(x){if(!i)return;t(x)}})(),()=>{i=!1}},[]);const l=f.useMemo(()=>a.filter(S),[a]),n=f.useMemo(()=>{const i=new Set;return l.filter(d=>!Z(d)&&!ee(d)).filter(d=>{const x=d.slug||d.id;return x?i.has(x)?!1:(i.add(x),!0):!0})},[l]);return e.jsxs("section",{className:"bg-black pt-5 pb-2 karmatek-district karmatek-district--events",children:[e.jsx("div",{className:"karmatek-sweep","aria-hidden":"true"}),e.jsxs("div",{className:"container",children:[e.jsx(P,{text:"Karmatek 2026 Events",className:"text-white fw-bold text-center mb-5 display-5 karmatek-section-title",speed:35}),p&&e.jsx("div",{className:"mb-4",role:"status",children:e.jsx(O,{...W(p)})}),r&&!n.length&&e.jsx("div",{className:"text-center text-muted mb-4",children:"Loading events..."}),n.map((i,d)=>e.jsx("div",{className:"mb-5",children:e.jsx(U,{id:i.slug,title:i.name,subheading:i.subheading,description:i.description||i.tagline,date:i.date,time:i.startTime&&i.endTime?`${i.startTime} â ${i.endTime}`:i.startTime,location:i.location,mode:i.mode,entryFee:i.entryFee,prizePool:i.prizePool,awards:i.awards,sponsor:i.sponsor||i.partner,backgroundImage:i.backgroundImage,characterImage:i.characterImage,reverse:d%2!==0,isAboveFold:d===0})},i.id)),e.jsx(X,{events:l}),e.jsx(A,{events:l})]})]})};export{je as default}; 5//# sourceMappingURL=KarmatekEvents-CxN90Ngk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.