1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{3715:function(e,t,s){Promise.resolve().then(s.bind(s,4196)),Promise.resolve().then(s.bind(s,7502)),Promise.resolve().then(s.bind(s,6937)),Promise.resolve().then(s.t.bind(s,5878,23)),Promise.resolve().then(s.t.bind(s,2972,23)),Promise.resolve().then(s.t.bind(s,8003,23))},4196:function(e,t,s){"use strict";var n=s(7437),r=s(2265),a=s(7648),l=s(6937);t.default=()=>{let[e,t]=(0,r.useState)(!1),s=[{name:"Home",href:"/"},{name:"Blog",href:"/blog"},{name:"Archive",href:"/archive"},{name:"About",href:"/about"}];return(0,n.jsx)("header",{className:"bg-dark-card border-b border-gray-800 sticky top-0 z-50",children:(0,n.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,n.jsxs)("div",{className:"flex justify-between items-center h-16",children:[(0,n.jsxs)(a.default,{href:"/",className:"flex items-center space-x-2",children:[(0,n.jsx)("div",{className:"w-8 h-8 bg-gradient-to-r from-gaming-purple to-gaming-blue rounded-lg flex items-center justify-center",children:(0,n.jsx)("span",{className:"text-white font-bold text-lg",children:"N"})}),(0,n.jsx)("span",{className:"font-gaming text-xl font-bold gradient-text",children:"NowLoading.co"})]}),(0,n.jsx)("nav",{className:"hidden md:flex space-x-8",children:s.map(e=>(0,n.jsx)(a.default,{href:e.href,className:"text-gray-300 hover:text-gaming-purple transition-colors duration-200 font-medium",children:e.name},e.name))}),(0,n.jsx)("div",{className:"hidden md:flex items-center",children:(0,n.jsx)(l.SubscribeButton,{className:"gaming-button text-sm"})}),(0,n.jsx)("button",{onClick:()=>t(!e),className:"md:hidden text-gray-300 hover:text-white",children:(0,n.jsx)("svg",{className:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e?(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})]}),e&&(0,n.jsx)("div",{className:"md:hidden py-4 border-t border-gray-800",children:(0,n.jsxs)("nav",{className:"flex flex-col space-y-4",children:[s.map(e=>(0,n.jsx)(a.default,{href:e.href,className:"text-gray-300 hover:text-gaming-purple transition-colors duration-200 font-medium",onClick:()=>t(!1),children:e.name},e.name)),(0,n.jsx)("div",{className:"pt-4 border-t border-gray-800",children:(0,n.jsx)(l.SubscribeButton,{className:"gaming-button w-full"})})]})})]})})}},7502:function(e,t,s){"use strict";s.d(t,{default:function(){return r}});var n=s(7437);function r(e){let{targetId:t,children:s,className:r}=e;return(0,n.jsx)("button",{className:r,onClick:()=>{var e;null===(e=document.getElementById(t))||void 0===e||e.scrollIntoView({behavior:"smooth"})},children:s})}},6937:function(e,t,s){"use strict";s.r(t),s.d(t,{SubscribeButton:function(){return l},default:function(){return a}});var n=s(7437),r=s(2265);function a(e){let{placeholder:t="Enter your email",buttonText:s="Subscribe",buttonClassName:a="gaming-button",inputClassName:l="",containerClassName:i="flex flex-col sm:flex-row gap-4",onSuccess:o,onError:c}=e,[d,u]=(0,r.useState)(""),[m,h]=(0,r.useState)(!1),[b,x]=(0,r.useState)(""),[f,g]=(0,r.useState)(!1),p=async e=>{if(e.preventDefault(),!d||!d.includes("@")){let e="Please enter a valid email address";x(e),g(!1),null==c||c(e);return}h(!0),x("");try{let e=await fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d})}),t=await e.json();if(e.ok)x(t.message||"Successfully subscribed!"),g(!0),u(""),null==o||o();else{let e=t.error||"Failed to subscribe. Please try again.";x(e),g(!1),null==c||c(e)}}catch(t){let e="Network error. Please try again.";x(e),g(!1),null==c||c(e)}finally{h(!1)}};return(0,n.jsxs)("div",{children:[(0,n.jsxs)("form",{onSubmit:p,className:i,children:[(0,n.jsx)("input",{type:"email",value:d,onChange:e=>u(e.target.value),placeholder:t,disabled:m,className:"flex-1 px-4 py-3 rounded-lg border focus:outline-none focus:ring-2 disabled:opacity-50 ".concat(l),required:!0}),(0,n.jsx)("button",{type:"submit",disabled:m,className:"".concat(a," disabled:opacity-50 disabled:cursor-not-allowed"),children:m?"Subscribing...":s}
1)]}),b&&(0,n.jsx)("div",{className:"mt-3 text-sm ".concat(f?"text-green-400":"text-red-400"),children:b})]})}function l(e){let{className:t="gaming-button",onClick:s}=e,[l,i]=(0,r.useState)(!1);return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("button",{onClick:()=>{s?s():i(!l)},className:t,children:"Subscribe"}),l&&(0,n.jsxs)("div",{className:"absolute top-full right-0 mt-2 p-4 bg-dark-card border border-gray-700 rounded-lg shadow-lg z-50 min-w-80",children:[(0,n.jsx)("h3",{className:"text-white font-semibold mb-3",children:"Subscribe to Newsletter"}),(0,n.jsx)(a,{containerClassName:"flex flex-col gap-3",inputClassName:"bg-gray-800 text-white border-gray-700 focus:border-gaming-purple",buttonClassName:"gaming-button w-full",onSuccess:()=>{setTimeout(()=>i(!1),2e3)}}),(0,n.jsx)("button",{onClick:()=>i(!1),className:"absolute top-2 right-2 text-gray-400 hover:text-white",children:"â"})]})]})}}},function(e){e.O(0,[648,878,3,971,117,744],function(){return e(e.s=3715)}),_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.