1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97],{33145:function(e,r,t){t.d(r,{default:function(){return a.a}});var n=t(48461),a=t.n(n)},27648:function(e,r,t){t.d(r,{default:function(){return a.a}});var n=t(72972),a=t.n(n)},99376:function(e,r,t){var n=t(35475);t.o(n,"useParams")&&t.d(r,{useParams:function(){return n.useParams}}),t.o(n,"usePathname")&&t.d(r,{usePathname:function(){return n.usePathname}}),t.o(n,"useRouter")&&t.d(r,{useRouter:function(){return n.useRouter}}),t.o(n,"useSearchParams")&&t.d(r,{useSearchParams:function(){return n.useSearchParams}})},48461:function(e,r,t){Object.defineProperty(r,"__esModule",{value:!0}),function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{default:function(){return l},getImageProps:function(){return i}});let n=t(47043),a=t(55346),s=t(65878),o=n._(t(5084));function i(e){let{props:r}=(0,a.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,t]of Object.entries(r))void 0===t&&delete r[e];return{props:r}}let l=s.Image},96569:function(e,r,t){t.d(r,{Z:function(){return s}});var n=t(57437),a=t(2265);function s(e){let{playlistUrl:r,playerLibraryUrl:t,courseName:s,lessonName:o,initialPosition:i=0,onProgress:l}=e,c=(0,a.useRef)(null),d=(0,a.useRef)(null),u=(0,a.useRef)(),m=(0,a.useRef)(!1),[h,f]=(0,a.useState)(!0),[g,p]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=!0;m.current=!1,(async()=>{try{if(!window.jwplayer){await new Promise((e,r)=>{if(document.querySelector('script[src="'.concat(t,'"]'))){e();return}let n=document.createElement("script");n.src=t,n.async=!0,n.onload=()=>e(),n.onerror=e=>r(e),document.head.appendChild(n)});let e=0;for(;!window.jwplayer&&e<50;)await new Promise(e=>setTimeout(e,100)),e++;if(!window.jwplayer)throw Error("JWPlayer failed to load")}if(!e||!c.current)return;let n=window.jwplayer(c.current);if(!n||!n.setup)throw Error("JWPlayer not properly initialized");d.current=n,n.setup({playlist:r,width:"100%",aspectratio:"16:9",autostart:!1,controls:!0,displaytitle:!1,displaydescription:!1,stretching:"uniform"}),n.on("ready",()=>{f(!1),i>0&&!m.current&&(n.seek(i),m.current=!0)}),n.on("play",()=>{x()}),n.on("pause",()=>{b(),v()}),n.on("complete",()=>{if(b(),l){let e=n.getDuration();l(e,e)}}),n.on("error",e=>{console.error("JWPlayer error:",e),p("Failed to load video")})}catch(e){console.error("Error initializing player:",e),p("Failed to initialize video player")}})();let n=()=>v();return window.addEventListener("pagehide",n),()=>{if(e=!1,window.removeEventListener("pagehide",n),b(),v(),d.current&&"function"==typeof d.current.remove)try{d.current.remove()}catch(e){console.error("Error removing player:",e)}}},[r,t]);let x=()=>{u.current=setInterval(()=>{v()},1e4)},b=()=>{u.current&&clearInterval(u.current)},v=()=>{if(d.current&&l)try{let e=d.current.getPosition(),r=d.current.getDuration();l(e,r)}catch(e){console.error("Error saving progress:",e)}};return(0,n.jsxs)("div",{className:"relative bg-black",children:[g&&(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black text-white",children:(0,n.jsx)("p",{children:g})}),h&&!g&&(0,n.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-black text-white",children:(0,n.jsx)("p",{children:"Loading video..."})}),(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)("div",{ref:c,className:"w-full"})})]})}},58378:function(e,r,t){t.d(r,{Z:function(){return s}});var n=t(57437),a=t(2265);function s(e){let{courseSlug:r,eventName:t,startDate:s,endDate:o,userEmail:i,onSuccess:l,compact:c=!1,sessions:d,sponsors:u}=e,[m,h]=(0,a.useState)(""),[f,g]=(0,a.useState)(""),[p,x]=(0,a.useState)(i||""),[b,v]=(0,a.useState)(!1),[j,y]=(0,a.useState)(null),[w,N]=(0,a.useState)(!1),[k,C]=(0,a.useState)(!1),[S,P]=(0,a.useState)(""),[E]=(0,a.useState)(()=>Date.now());(0,a.useEffect)(()=>{i&&x(i)},[i]),(0,a.useEffect)(()=>{let e=setTimeout(async function(){if(p&&r)try{let e=await fetch("/api/event/register?courseSlug=".concat(encodeURIComponent(r),"&email=").concat(encodeURIComponent(p))),t=await e.json();C(t.registered)}catch(e){console.error("Failed to check registration status:",e)}},500);return()=>clearTimeout(e)},[p,r]);let L=async e=>{if(e.preventDefault(),y(null),S){N(!0);return}v(!0);try{let e=await fetch("/api/event/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({firstName:m,lastName:f,email:p,courseSlug:r,eventName:t,startDate:s,endDate:o,sessions:d,sponsors:u,_t:E})}),n=await e.json();if(!e.ok)throw Error(n.error||"Failed to register");N(!0),null==l||l()}catch(e){y(e instanceof Error?e.message:"Failed to register")}finally{v(!1)}};return k?c?(0,n.jsxs)("div",{className:"flex items-center gap-2 text-green-400",children:[(0,n.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,n.jsx)("span",{className:"font-medium",children:"You're registered! Check your email for details."})]}):(0,n.jsxs)("div",{className:"bg-green-50 border border-green-200 rounded-lg p-6 text-center",children:[(0,n.jsx)("svg",{className:"w-12 h-12 text-green-500 mx-auto mb-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,n.jsx)("h3",{className:"text-lg font-semibold text-green-800 mb-1",children:"You're Already Registered!"}),(0,n.jsx)("p",{className:"text-green-700 text-sm",children:"Check your email for event details and reminders."})]}):w?c?(0,n.jsxs)("div",{className:"flex items-center gap-2 text-green-400",children:[(0,n.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,n.jsx)("span",{className:"font-medium",children:"Registration complete! Check your email."})]}):(0,n.jsxs)("div",{className:"bg-green-50 border border-green-200 rounded-lg p-6 text-center",children:[(0,n.jsx)("svg",{className:"w-12 h-12 text-green-500 mx-auto mb-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,n.jsx)("h3",{className:"text-lg font-semibold text-green-800 mb-1",children:"Registration Complete!"}),(0,n.jsx)("p",{className:"text-green-700 text-sm",children:"Check your email for confirmation and event details."})]}):c?(0,n.jsxs)("form",{onSubmit:L,className:"space-y-3",children:[(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,n.jsx)("input",{type:"text",value:m,onChange:e=>h(e.target.value),required:!0,className:"w-full px-3 py-2.5 bg-white/10 border border-white/30 rounded-lg text-white placeholder-white/50 focus:ring-2 focus:ring-amber-500 focus:border-amber-500 outline-none transition",placeholder:"First name"}),(0,n.jsx)("input",{type:"text",value:f,onChange:e=>g(e.target.value),required:!0,className:"w-full px-3 py-2.5 bg-white/10 border border-white/30 rounded-lg text-white placeholder-white/50 focus:ring-2 focus:ring-amber-500 focus:border-amber-500 outline-none transition",placeholder:"Last name"})]}),(0,n.jsx)("input",{type:"email",value:p,onChange:e=>x(e.target.value),required:!0,className:"w-full px-3 py-2.5 bg-white/10 border border-white/30 rounded-lg text-white placeholder-white/50 focus:ring-2 focus:ring-amber-500 focus:border-amber-500 outline-none transition",placeholder:"Email address"}),(0,n.jsx)("div",{className:"absolute -left-[9999px]","aria-hidden":"true",children:(0,n.jsx)("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off",value:S,onChange:e=>P(e.target.value)})}),(0,n.jsx)("button",{type:"submit",disabled:b,className:"w-full px-5 py-2.5 bg-amber-500 text-black font-semibold rounded-lg hover:bg-amber-400 disabled:opacity-50 disabled:cursor-not-allowed transition flex items-center justify-center gap-2",children:b?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("svg",{className:"animate-spin h-4 w-4",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Registering..."]}):"Register Free"}),j&&(0,n.jsx)("div",{className:"text-red-400 text-sm",children:j})]}):(0,n.jsxs)("form",{onSubmit:L,className:"space-y-4",children:[(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"firstName",className:"block text-sm font-medium text-gray-700 mb-1",children:"First Name"}),(0,n.jsx)("input",{type:"text",id:"firstName",value:m,onChange:e=>h(e.target.value),required:!0,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-500 focus:border-amber-500 outline-none transition",placeholder:"John"})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"lastName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Last Name"}),(0,n.jsx)("input",{type:"text",id:"lastName",value:f,onChange:e=>g(e.target.value),required:!0,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-500 focus:border-amber-500 outline-none transition",placeholder:"Doe"})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-1",children:"Email Address"}),(0,n.jsx)("input",{type:"email",id:"email",value:p,onChange:e=>x(e.target.value),required:!0,className:"w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-500 focus:border-amber-500 outline-none transition",placeholder:"[email protected]"})]}),(0,n.jsx)("div",{className:"absolute -left-[9999px]","aria-hidden":"true",children:(0,n.jsx)("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off",value:S,onChange:e=>P(e.target.value)})}),j&&(0,n.jsx)("div",{className:"bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-lg text-sm",children:j}),(0,n.jsx)("button",{type:"submit",disabled:b,className:"w-full px-6 py-3 bg-amber-500 text-white font-semibold rounded-lg hover:bg-amber-600 disabled:opacity-50 disabled:cursor-not-allowed transition flex items-center justify-center gap-2",children:b?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("svg",{className:"animate-spin h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Registering..."]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 5v2m0 4v2m0 4v2M5 5a2 2 0 00-2 2v3a2 2 0 110 4v3a2 2 0 002 2h14a2 2 0 002-2v-3a2 2 0 110-4V7a2 2 0 00-2-2H5z"})}),"Register for Event"]})}),(0,n.jsx)("p",{className:"text-xs text-gray-500 text-center",children:"By registering, you agree to re
1ceive email communications from us and the sponsors."})]})}}}]);
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.