1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{803:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});var l=s(13514);let n=e=>{let{className:t,stroke:s}=e;return(0,l.jsxs)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,l.jsx)("g",{clipPath:"url(#clip0_3426_90984)",children:(0,l.jsx)("path",{d:"M12.5 1.5L1 13M12.5 13L1 1.5",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_3426_90984",children:(0,l.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(0 0.5)"})})})]})}},2729:(e,t,s)=>{"use strict";s.d(t,{Providers:()=>b});var l=s(13514),n=s(16204),r=s(26591),a=s(47241),i=s(48734),o=s(15138);let c="nollywood_sso_resume_attempted",d=()=>{try{return"1"===sessionStorage.getItem(c)}catch(e){return!1}},u=()=>{try{sessionStorage.removeItem(c)}catch(e){}},m=function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];(()=>{try{return"1"===localStorage.getItem("nollywood_sso_debug")}catch(e){return!1}})()&&console.info("[sso-sync]",...t)};function h(){let e=(0,o.useRef)(!1),t=(0,o.useRef)(0);return(0,o.useEffect)(()=>{let s,l,o=!1,h=()=>!0===i.Ay.__loaded&&!0===i.Ay.isFeatureEnabled(r.Jm),x=async s=>{if(o||e.current)return;let l=(0,a.EJ)(),r=h();if(!l&&!r)return void m(s,"skip: no sso session and flag off");if(window.location.pathname.startsWith("/auth/")||"hidden"===document.visibilityState)return;let i=Date.now();if(!(i-t.current<5e3)){t.current=i,e.current=!0;try{let e=(0,n.t6)();e&&u(),m(s,"probingâ¦",{hadSession:e,haveSsoSession:l,canAdopt:r});let{outcome:t,tokens:i,reason:h}=await (0,a.q3)();if(o)return;if(m("probe result:",t,null!=h?h:""),"authenticated"===t&&i)(0,n.yH)(i),u(),e||(m("adopted shared session â auth-change"),window.dispatchEvent(new Event("auth-change")));else if("interaction-required"===t)if(!r||e||d())m("interaction-required but not resuming",{canAdopt:r,hadSession:e,alreadyTried:d()});else{m("shared session needs consent â seamless resume via beginSso");
1try{sessionStorage.setItem(c,"1")}catch(e){}let e=window.location.pathname+window.location.search;(0,a.H$)(e)}else"no-session"===t&&e&&l&&((()=>{let{hostname:e}=window.location;return"localhost"===e||"127.0.0.1"===e||"[::1]"===e||e.endsWith(".localhost")})()?m("shared session reported ended â ignored on localhost (cross-site probe)"):(m("shared session ended â local logout"),(0,n.ri)()))}finally{e.current=!1}}};x("mount");let p=0,f=()=>{if(!o){if(!0===i.Ay.__loaded)return void x("posthog-loaded");p++>20||(s=setTimeout(f,500))}};f();let g=h();try{l=i.Ay.onFeatureFlags(()=>{let e=h(),t=e&&!g;g=e,t&&x("sso-flag-enabled")})}catch(e){}let w=()=>void x("focus"),v=()=>{"visible"===document.visibilityState&&x("visibility")};return window.addEventListener("focus",w),document.addEventListener("visibilitychange",v),()=>{o=!0,clearTimeout(s),null==l||l(),window.removeEventListener("focus",w),document.removeEventListener("visibilitychange",v)}},[]),null}var x=s(1292),p=s(70356),f=s(23469),g=s(77137),w=s(62718),v=s(40367),C=s(91762),j=s(83077),F=s(99301);function b(e){let{children:t}=e;return(0,l.jsx)(F.X,{client:j.S,children:(0,l.jsxs)(p.O,{children:[(0,l.jsx)(h,{}),(0,l.jsx)(x.f,{children:(0,l.jsx)(g.p,{children:(0,l.jsx)(f.L,{children:(0,l.jsx)(w.c,{children:(0,l.jsx)(v.J,{children:(0,l.jsx)(C.e,{children:t})})})})})})]})})}},4534:(e,t,s)=>{"use strict";s.d(t,{I:()=>n});var l=s(13514);let n=e=>{let{className:t,stroke:s="#C3C3C3"}=e;return(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,l.jsx)("path",{d:"M9.35395 21C10.0591 21.6224 10.9853 22 11.9998 22C13.0142 22 13.9405 21.6224 14.6456 21M17.9998 8C17.9998 6.4087 17.3676 4.88258 16.2424 3.75736C15.1172 2.63214 13.5911 2 11.9998 2C10.4085 2 8.88235 2.63214 7.75713 3.75736C6.63192 4.88258 5.99977 6.4087 5.99977 8C5.99977 11.0902 5.22024 13.206 4.34944 14.6054C3.6149 15.7859 3.24763 16.3761 3.2611 16.5408C3.27601 16.7231 3.31463 16.7926 3.46155 16.9016C3.59423 17 4.19237 17 5.38863 17H18.6109C19.8072 17 20.4053 17 20.538 16.9016C20.6849 16.7926 20.7235 16.7231 20.7384 16.5408C20.7519 16.3761 20.3846 15.7859 19.6501 14.6054C18.7793 13.206 17.9998 11.0902 17.9998 8Z",stroke:s,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}},5149:(e,t,s)=>{"use strict";s.d(t,{GN:()=>r,Ki:()=>l,Lv:()=>a,pb:()=>n});let l=e=>{let t=new URL(e).searchParams,s=t.get("requestId"),l=t.get("exchangeToken"),n=t.get("hasError"),r=t.get("status"),a="true"===n||"1"===n,i=t.get("error_description");return{requestId:s,exchangeToken:l,error:a?i||"OAuth error":null,status:r,errorDescription:i,isSuccess:!!(s&&l&&!a&&(!r||"success"===r)),isError:a}},n=()=>{{let e=new URL(window.location.href);e.searchParams.delete("requestId"),e.searchParams.delete("exchangeToken"),e.searchParams.delete("error"),e.searchParams.delete("hasError"),e.searchParams.delete("status"),e.searchParams.delete("error_description"),window.history.replaceState({},document.title,e.toString())}},r=e=>{localStorage.setItem("oauth_state",JSON.stringify(e))},a=()=>{{let e=localStorage.getItem("oauth_state");if(e){localStorage.removeItem("oauth_state");try{return JSON.parse(e)}catch(e){console.error("Error parsing OAuth state:",e)}}}return null}},9410:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});var l=s(13514);let n=e=>{let{className:t,fill:s="white"}=e;return(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,l.jsx)("path",{d:"M17.05 20.28C16.07 21.23 15 21.08 13.97 20.63C12.88 20.17 11.88 20.15 10.73 20.63C9.28998 21.25 8.52998 21.07 7.66998 20.28C2.78998 15.25 3.50998 7.59 9.04998 7.31C10.4 7.38 11.34 8.05 12.13 8.11C13.31 7.87 14.44 7.18 15.7 7.27C17.21 7.39 18.35 7.99 19.1 9.07C15.98 10.94 16.72 15.05 19.58 16.2C18.97 17.82 18.17 19.42 17.04 20.29L17.05 20.28ZM12.03 7.25C11.88 5.02 13.69 3.18 15.77 3C16.06 5.58 13.43 7.5 12.03 7.25Z",fill:s})})}},11973:(e,t,s)=>{"use strict";s.d(t,{H:()=>n});var l=s(13514);let n=e=>{let{className:t,stroke:s="#72B13A"}=e;return(0,l.jsx)("svg",{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,l.jsx)("path",{d:"M12.3327 1L4.99935 8.33333L1.66602 5",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}},18832:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,48245,23)),Promise.resolve().then(s.t.bind(s,60486,23)),Promise.resolve().then(s.t.bind(s,33263,23)),Promise.resolve().then(s.t.bind(s,43375,23)),Promise.resolve().then(s.t.bind(s,95982,23)),Promise.resolve().then(s.bind(s,2729)),Promise.resolve().then(s.bind(s,74307)),Promise.resolve().then(s.bind(s,66274)),Promise.resolve().then(s.bind(s,89740)),Promise.resolve().then(s.t.bind(s,32330,23))},23469:(e,t,s)=>{"use strict";s.d(t,{L:()=>i,d:()=>a});var l=s(13514),n=s(15138);let r=(0,n.createContext)(void 0),a=()=>{let e=(0,n.useContext)(r);if(void 0===e)throw Error("useMainCarousel must be used within a MainCarouselProvider");return e},i=e=>{let{children:t}
1=e,[s,a]=(0,n.useState)(0),[i,o]=(0,n.useState)([]);return(0,l.jsx)(r.Provider,{value:{currentSlide:s,setCurrentSlide:a,slides:i,setSlides:o},children:t})}},24273:(e,t,s)=>{"use strict";s.d(t,{f:()=>w,r:()=>g});var l=s(13514),n=s(4534),r=s(53324),a=s(82306),i=s(13756),o=s(63111),c=s(57610),d=s(56533),u=s(91512),m=s.n(u),h=s(94622),x=s(43322),p=s(10221);let f=e=>{let{category:t}=e,s=(e=>{switch(e){case h.a.SYSTEM:return"info";case h.a.SECURITY:return"shield";case h.a.REVIEW:return"star";case h.a.MODERATION:return"flag";case h.a.COMMUNITY:return"users";case h.a.GAMIFICATION:return"trophy";default:return"bell"}})(t),n={info:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),shield:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})}),star:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})}),flag:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"})}),users:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"})}),trophy:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"})}),bell:(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"})})};return n[s]||n.bell};function g(e){let{notification:t,onClick:s,onMarkAsRead:n,compact:r=!1}=e,a=(0,p.useRouter)(),i=(0,x.m)(new Date(t.createdAt),{addSuffix:!0});return(0,l.jsxs)("div",{onClick:()=>{var e;if(!t.isRead&&n&&n(t.id),s)return void s(t);let l=null==(e=t.actions)?void 0:e[0];if(l)try{let e=new URL(l.url,window.location.origin);e.origin===window.location.origin?a.push(e.pathname+e.search+e.hash):window.open(l.url,"_blank","noopener,noreferrer")}catch(e){a.push(l.url)}},className:"\n relative flex items-start gap-3 p-3 cursor-pointer transition-colors w-full\n border-l-2 ".concat((e=>{switch(e){case h.A.URGENT:return"border-l-red-500";case h.A.HIGH:return"border-l-orange-500";case h.A.NORMAL:return"border-l-[#72B13A]";case h.A.LOW:return"border-l-gray-500";default:return"border-l-transparent"}})(t.priority),"\n ").concat(t.isRead?"bg-transparent":"bg-[#72B13A]/5","\n hover:bg-[#FFFFFF0D]\n ").concat(r?"py-2":"py-3","\n "),children:[(0,l.jsx)("div",{className:"flex-shrink-0",children:t.imageUrl?(0,l.jsx)("img",{src:t.imageUrl,alt:"",className:"w-10 h-10 rounded-full object-cover"}):(0,l.jsx)("div",{className:"\n w-10 h-10 rounded-full flex items-center justify-center\n ".concat(t.isRead?"bg-[#FFFFFF0D]":"bg-[#72B13A]/20","\n "),children:(0,l.jsx)("span",{className:t.isRead?"text-[#FFFFFFBF]":"text-[#72B13A]",children:(0,l.jsx)(f,{category:t.category})})})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.jsx)("p",{className:"\n text-sm leading-tight\n ".concat(t.isRead?"text-[#FFFFFFBF] font-light":"text-white font-medium","\n "),children:t.title}),(0,l.jsx)("p",{className:"text-xs text-[#FFFFFF80] mt-1 ".concat(r?"line-clamp-1":"line-clamp-2"),children:t.message}),(0,l.jsx)("p",{className:"text-xs text-[#FFFFFF60] mt-1",children:i}),!r&&t.actions&&t.actions.length>0&&(0,l.jsx)("div",{className:"flex flex-wrap gap-2 mt-2",onClick:e=>e.stopPropagation(),children:t.actions.map((e,s)=>(0,l.jsx)("button",{onClick:s=>((e,s)=>{e.stopPropagation(),!t.isRead&&n&&n(t.id);try{let e=new URL(s.url,window.location.origin);e.origin===window.location.origin?a.push(e.pathname+e.search+e.hash):window.open(s.url,"_blank","noopener,noreferrer")}catch(e){a.push(s.url)}})(s,e),className:"text-xs px-3 py-1 rounded-full border border-[#72B13A] text-[#72B13A] hover:bg-[#72B13A]/10 transition-colors",children:e.label},s))})]}),!t.isRead&&(0,l.jsx)("div",{className:"flex-shrink-0",children:(0,l.jsx)("div",{className:"w-2 h-2 rounded-full bg-[#72B13A]"})})]})}function w(e){let{className:t=""}=e,{notifications:s,counts:u,isLoading:h,markAsRead:x,markAllAsRead:p}=(0,r.E$)(),f=async e=>{await x([e])},w=async()=>{await p()};return(0,l.jsxs)(a.W,{menuButton:(0,l.jsxs)(i.I,{className:"relative cursor-pointer bg-[#FFFFFF0D] rounded-full h-12 w-12 flex items-center justify-center flex-nowrap hover:bg-[#FFFFFF1A] transition-colors ".concat(t),children:[(0,l.jsx)(n.I,{className:"w-5 h-5",stroke:"white"}),u.unreadCount>0&&(0,l.jsx)("span",{className:"absolute -top-1 -right-1 min-w-5 h-5 px-1 flex items-center justify-center bg-[#72B13A] text-white text-xs font-medium rounded-full",children:u.unreadCount>99?"99+":u.unreadCount})]}),transition:!0,menuClassName:"!bg-[#151515] !border !border-[#FFFFFF0D] !rounded-lg !shadow-[0_1px_2px_rgba(255,255,255,0.08)_inset] !p-0 !min-w-80 !max-w-96",align:"end",children:[(0,l.jsxs)(o.j,{className:"!px-4 !py-3 !border-b !border-[#FFFFFF0D] flex items-center justify-between",children:[(0,l.jsx)("span",{className:"text-white text-sm font-medium",children:"Notifications"}),u.unreadCount>0&&(0,l.jsx)("button",{onClick:w,className:"text-[#72B13A] text-xs hover:text-[#8BC34A] transition-colors",children:"Mark all as read"})]}),(0,l.jsx)("div",{className:"max-h-96 overflow-y-auto",children:h?(0,l.jsx)("div",{className:"p-4 text-center",children:(0,l.jsx)("div",{className:"animate-pulse flex flex-col gap-3",children:[1,2,3].map(e=>(0,l.jsxs)("div",{className:"flex items-start gap-3",children:[(0,l.jsx)("div",{className:"w-10 h-10 rounded-full bg-[#FFFFFF0D]"}),(0,l.jsxs)("div",{className:"flex-1",children:[(0,l.jsx)("div",{className:"h-4 bg-[#FFFFFF0D] rounded w-3/4 mb-2"}),(0,l.jsx)("div",{className:"h-3 bg-[#FFFFFF0D] rounded w-1/2"})]})]},e))})}):0===s.length?(0,l.jsxs)("div",{className:"p-8 text-center",children:[(0,l.jsx)("div",{className:"w-12 h-12 mx-auto mb-3 rounded-full bg-[#FFFFFF0D] flex items-center justify-center",children:(0,l.jsx)(n.I,{className:"w-6 h-6",stroke:"#FFFFFF60"})}),(0,l.jsx)("p",{className:"text-[#FFFFFFBF] text-sm",children:"No notifications yet"}),(0,l.jsx)("p",{className:"text-[#FFFFFF60] text-xs mt-1",children:"We'll notify you when something arrives"})]}):s.slice(0,5).map(e=>(0,l.jsx)(c.D,{className:"!p-0 hover:!bg-transparent",children:(0,l.jsx)(g,{notification:e,onMarkAsRead:f,compact:!0})},e.id))}),s.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.N,{className:"!bg-[#FFFFFF0D] !m-0"}),(0,l.jsx)(c.D,{className:"!p-0 hover:!bg-transparent",children:(0,l.jsxs)(m(),{href:"/notifications",className:"block w-full px-4 py-3 text-center text-[#72B13A] text-sm hover:text-[#8BC34A] transition-colors",children:["View all notifications",u.totalCount>5&&(0,l.jsxs)("span",{className:"text-[#FFFFFF60] ml-1",children:["(",u.totalCount,")"]})]})})]})]})}},26638:(e,t,s)=>{"use strict";s.d(t,{p:()=>n});var l=s(13514);let n=e=>{let{className:t,fill:s="white"}=e;return(0,l.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,l.jsx)("path",{d:"M14.6734 7.53147C14.4156 7.53147 14.160
15 7.54462 13.9093 7.57036C13.658 7.5961 13.4102 7.63423 13.1666 7.6843C12.923 7.73437 12.6838 7.79636 12.4493 7.86954L11.7612 8.12222L11.106 8.43859L10.4877 8.8148L9.91 9.2469L9.37692 9.73113L8.89222 10.2637L8.45965 10.8408L8.08297 11.4585L7.76641 12.1129C7.67126 12.3368 7.58662 12.5663 7.51335 12.8005C7.44008 13.0348 7.37809 13.274 7.32792 13.5173C7.27776 13.7605 7.23963 14.0081 7.21379 14.2592C7.18796 14.5102 7.175 14.765 7.175 15.0226C7.175 15.2801 7.18815 15.5349 7.21379 15.786C7.23929 16.0351 7.27739 16.2827 7.32792 16.528C7.37809 16.7722 7.44008 17.0104 7.51335 17.2447C7.58662 17.4789 7.67116 17.7083 7.76641 17.9323L8.08297 18.5867L8.45965 19.2043L8.89222 19.7815L9.37692 20.3141L9.91 20.7983L10.4877 21.2304L11.106 21.6066L11.7612 21.923L12.4493 22.1757L13.1666 22.3609C13.4121 22.4114 13.6599 22.4495 13.9093 22.4749C14.1632 22.5008 14.4182 22.5138 14.6734 22.5137C14.9313 22.5137 15.1863 22.5006 15.4375 22.4749C15.6868 22.4495 15.9347 22.4114 16.1801 22.3609L16.8975 22.1757L17.5857 21.923L18.2408 21.6066L18.8591 21.2304L19.4368 20.7983L19.97 20.3141L20.4547 19.7815L20.8873 19.2043L21.264 18.5867L21.5805 17.9323L21.8336 17.2447C21.9068 17.0104 21.9688 16.7712 22.019 16.528L22.1331 15.7859C22.1589 15.5348 22.172 15.28 22.172 15.0225C22.172 14.7649 22.1589 14.5101 22.1331 14.2591C22.1076 14.01 22.0695 13.7624 22.019 13.5172C21.9688 13.2729 21.9068 13.0348 21.8336 12.8004L21.5805 12.1128L21.264 11.4584L20.8873 10.8407L20.4547 10.2636L19.97 9.73104L19.4368 9.24681L18.8591 8.81471L18.2408 8.4385L17.5857 8.12213L16.8975 7.86944L16.1801 7.6842L15.4375 7.57026C15.1836 7.54433 14.9286 7.53145 14.6734 7.53147ZM14.6734 10.1171C14.8439 10.1171 15.0121 10.1256 15.1778 10.1423L15.6663 10.2162L16.1381 10.3364L16.59 10.5006L17.0195 10.7063L17.4234 10.951L17.8011 11.2325L18.1492 11.5483L18.4653 11.896L18.7471 12.2733L18.9921 12.6778L19.1978 13.107C19.2596 13.254 19.3144 13.4045 19.3622 13.5585C19.4099 13.7125 19.45 13.8698 19.4824 14.03C19.5148 14.1903 19.5388 14.3534 19.5563 14.519L19.5815 15.023C19.5815 15.1933 19.573 15.3615 19.5563 15.5272C19.5396 15.6929 19.515 15.8559 19.4824 16.0161C19.4498 16.1763 19.4096 16.3336 19.3622 16.4877L19.1978 16.9391L18.9921 17.3684L18.7471 17.7728L18.4653 18.1501L18.1492 18.4979L17.8011 18.8137L17.4234 19.0952L17.0195 19.3399L16.59 19.5456L16.1381 19.7097L15.6663 19.8299L15.1778 19.9038C15.0102 19.9206 14.8418 19.929 14.6733 19.9289C14.5048 19.929 14.3364 19.9206 14.1687 19.9038L13.6802 19.8299C13.5199 19.7974 13.3625 19.7572 13.2083 19.7097L12.7565 19.5456L12.3269 19.3399L11.923 19.0952L11.5454 18.8137L11.1973 18.4979L10.8812 18.1501L10.5994 17.7728L10.3544 17.3684L10.1487 16.9391L9.9843 16.4877L9.86406 16.0161L9.79013 15.5272C9.77332 15.3596 9.76492 15.1914 9.76496 15.023C9.76492 14.8547 9.77332 14.6865 9.79013 14.519C9.80676 14.3534 9.83147 14.1902 9.86406 14.03C9.89633 13.871 9.93649 13.7136 9.98439 13.5586L10.1488 13.1071L10.3545 12.6779L10.5995 12.2734L10.8813 11.8961L11.1974 11.5484L11.5455 11.2326L11.9231 10.9511L12.327 10.7064L12.7566 10.5006C12.9044 10.4386 13.0553 10.3838 13.2085 10.3365L13.6804 10.2163C13.8408 10.1838 14.004 10.159 14.1689 10.1424C14.3366 10.1256 14.5049 10.1171 14.6734 10.1171Z",fill:s}),(0,l.jsx)("path",{d:"M22.476 5.40047C22.4164 5.40048 22.3569 5.40349 22.2977 5.40949C22.2385 5.41547 22.1796 5.42444 22.1212 5.43635C22.0629 5.44825 22.0051 5.46308 21.9483 5.48078C21.8914 5.4985 21.8354 5.51906 21.7806 5.54241C21.7258 5.56577 21.6721 5.59189 21.6199 5.62065C21.5676 5.64936 21.5168 5.68068 21.4677 5.71449C21.4186 5.74834 21.3711 5.78465 21.3256 5.82327C21.2801 5.86185 21.2365 5.9027 21.195 5.94567C21.1535 5.98866 21.1142 6.03371 21.0772 6.08065C21.0402 6.1276 21.0056 6.17638 20.9734 6.22681C20.9413 6.2772 20.9116 6.32918 20.8846 6.38256C20.8576 6.43597 20.8333 6.4907 20.8117 6.54657C20.7901 6.60242 20.7713 6.65932 20.7554 6.71706C20.7395 6.77479 20.7264 6.83329 20.7163 6.89234C20.7062 6.95137 20.699 7.01087 20.6948 7.07062C20.6918 7.11295 20.6903 7.15538 20.6903 7.19781C20.6903 7.25776 20.6933 7.31767 20.6992 7.37732C20.7052 7.43694 20.7141 7.49623 20.7259 7.55495C20.7377 7.61368 20.7525 7.67177 20.77 7.72901C20.7877 7.78627 20.8081 7.84261 20.8313 7.89781C20.8545 7.95303 20.8804 8.00705 20.909 8.05966C20.9375 8.11227 20.9686 8.1634 21.0023 8.21287C21.0359 8.26231 21.0719 8.31002 21.1103 8.35584C21.1486 8.40169 21.1892 8.44558 21.2319 8.48734C21.2746 8.52909 21.3194 8.56865 21.3661 8.60589C21.4127 8.64316 21.4612 8.67805 21.5113 8.71044C21.5614 8.74283 21.6131 8.77268 21.6662 8.79987C21.7192 8.82707 21.7736 8.85158 21.8291 8.87332C21.8845 8.89503 21.9411 8.91394 21.9984 8.92997C22.0558 8.94597 22.1139 8.95907 22.1726 8.96923C22.2312 8.97943 22.2904 8.98667 22.3497 8.99093C22.3918 8.99393 22.4339 8.99543 22.4761 8.99544C22.5356 8.99546 22.5951 8.99248 22.6544 8.98651C22.7136 8.98053 22.7725 8.97156 22.8309 8.95965C22.8892 8.94775 22.9469 8.93292 23.0038 8.91522C23.0607 8.8975 23.1166 8.87694 23.1715 8.8536C23.2263 8.83026 23.28 8.80417 23.3322 8.77544C23.3845 8.74671 23.4352 8.71535 23.4844 8.68151C23.5335 8.64769 23.581 8.61142 23.62
165 8.57283C23.672 8.53421 23.7156 8.49333 23.7571 8.45034C23.7985 8.40735 23.8379 8.36229 23.8749 8.31535C23.9119 8.2684 23.9465 8.21962 23.9787 8.16919C24.0108 8.11877 24.0404 8.06675 24.0674 8.01335C24.0945 7.95994 24.1188 7.9052 24.1404 7.84934C24.162 7.79349 24.1808 7.73659 24.1967 7.67885C24.2126 7.62112 24.2256 7.56262 24.2358 7.50357C24.2459 7.44454 24.2531 7.38503 24.2573 7.32528C24.2603 7.28295 24.2618 7.24053 24.2618 7.19809C24.2618 7.13818 24.2588 7.0783 24.2529 7.01868C24.2469 6.95906 24.238 6.89977 24.2262 6.84105C24.2144 6.78232 24.1996 6.72423 24.182 6.66699C24.1644 6.60973 24.144 6.55339 24.1208 6.49819C24.0976 6.44297 24.0717 6.38895 24.0431 6.33634C24.0146 6.28374 23.9834 6.2326 23.9498 6.18313C23.9162 6.13366 23.8801 6.08591 23.8417 6.04007C23.8034 5.99422 23.7628 5.95033 23.7202 5.90856C23.6774 5.86682 23.6327 5.82726 23.586 5.79002C23.5394 5.75278 23.4909 5.71792 23.4408 5.68556C23.3907 5.65317 23.339 5.62332 23.2859 5.59613C23.2328 5.56893 23.1785 5.54441 23.123 5.52268C23.0675 5.50097 23.011 5.48206 22.9536 5.46604C22.8963 5.45 22.8382 5.43687 22.7795 5.42668C22.7208 5.41651 22.6617 5.4093 22.6023 5.40507C22.5603 5.40207 22.5181 5.40047 22.476 5.40047Z",fill:s}),(0,l.jsx)("path",{d:"M13.2514 0.367461C12.4359 0.366146 11.7081 0.369527 11.0543 0.378732L9.30149 0.4257C8.78222 0.448244 8.32344 0.477643 7.91163 0.515687C7.70573 0.534661 7.51147 0.555891 7.32736 0.579281C7.15216 0.601363 6.97744 0.627076 6.8033 0.656402C6.63751 0.684583 6.48017 0.715016 6.32931 0.748081C6.17845 0.781146 6.03435 0.816842 5.89533 0.855167C5.75942 0.892644 5.62457 0.933866 5.49094 0.978786C5.36 1.02294 5.23225 1.06971 5.10609 1.11969C4.85378 1.21963 4.60768 1.33179 4.35424 1.45747C4.15923 1.55423 3.97907 1.6522 3.80792 1.7559C3.63677 1.85961 3.47464 1.96914 3.31589 2.08843C3.1524 2.21189 2.99482 2.34298 2.84368 2.48127C2.68568 2.62518 2.5243 2.78345 2.35663 2.96033C2.14593 3.18136 1.96286 3.38745 1.80035 3.5897C1.7191 3.69077 1.64301 3.79071 1.57134 3.89122C1.50046 3.99028 1.4327 4.09153 1.36816 4.19482C1.30428 4.29721 1.24379 4.40148 1.18592 4.50875C1.12716 4.61787 1.07162 4.7287 1.01938 4.84109C0.91248 5.07067 0.812721 5.3179 0.713151 5.59388C0.639282 5.79791 0.573137 6.00465 0.514855 6.21366C0.455395 6.42727 0.402509 6.65074 0.355354 6.89243C0.308199 7.13412 0.267056 7.39404 0.230891 7.68148C0.191919 7.99656 0.160786 8.31256 0.13752 8.62919C0.111218 8.97731 0.0894256 9.36037 0.071578 9.78674L0.0293076 11.2044L0.00657539 12.9325L0 15.0213L0.0192566 18.0589L0.0793746 20.3603L0.125684 21.2592L0.183548 22.0041C0.202097 22.2049 0.225305 22.4052 0.253154 22.6049C0.278516 22.7823 0.305757 22.9375 0.335064 23.0718C0.394532 23.3449 0.46485 23.6155 0.545853 23.883C0.623413 24.1391 0.712109 24.3918 0.811688 24.6401C0.909568 24.8834 1.01665 25.1181 1.13313 25.3439C1.24961 25.5697 1.37548 25.7867 1.51075 25.9951C1.64601 26.2036 1.79067 26.4035 1.9451 26.5948C2.09935 26.7862 2.26343 26.9694 2.43666 27.1438C2.61016 27.3185 2.79314 27.4848 2.98599 27.6428C3.18112 27.8026 3.38395 27.9527 3.59375 28.0927C3.78847 28.2229 3.98113 28.3421 4.1752 28.4515C4.36927 28.561 4.56503 28.6602 4.76624 28.7505C4.96744 28.8408 5.17372 28.922 5.38921 28.9951C5.6047 29.0682 5.8292 29.1332 6.06648 29.1909C6.30376 29.2486 6.55494 29.2992 6.82077 29.3433C7.08661 29.3875 7.37076 29.4253 7.67436 29.4579C7.97795 29.4905 8.30184 29.5175 8.64986 29.54C8.99789 29.5626 9.36987 29.5806 9.76957 29.5951C10.387 29.6174 11.3216 29.6305 12.3994 29.6355L15.8886 29.6284L19.1927 29.5821L20.449 29.5468L21.2674 29.5047C21.4431 29.4904 21.615 29.4735 21.7809 29.4537C21.9468 29.4339 22.1104 29.4113 22.2697 29.3855C22.429 29.3598 22.5848 29.331 22.7378 29.2991C22.889 29.2676 23.0395 29.2324 23.189 29.1936C23.3371 29.156 23.4831 29.1133 23.6275 29.0679C23.772 29.0226 23.915 28.9735 24.0571 28.9209C24.2 28.868 24.3417 28.8116 24.4819 28.7517C24.623 28.6916 24.764 28.6274 24.9055 28.5592C25.1228 28.4545 25.2977 28.3673 25.4513 28.2821C25.5957 28.2028 25.7349 28.1142 25.8678 28.0168C25.9989 27.9202 26.1293 27.8103 26.2796 27.6719C26.4299 27.5334 26.6002 27.3666 26.8111 27.1556C26.9964 26.9704 27.1527 26.8094 27.2875 26.6629C27.4223 26.5165 27.5359 26.3847 27.6354 26.2577C27.7304 26.1372 27.8188 26.0117 27.9003 25.8818C27.9799 25.7549 28.0532 25.6233 28.1278 25.4772C28.2402 25.2574 28.3401 25.0538 28.4297 24.8574C28.5166 24.6681 28.596 24.4755 28.6677 24.2799C28.7383 24.0859 28.7995 23.8885 28.851 23.6886C28.9039 23.4829 28.9496 23.2657 28.989 23.0275C29.0285 22.7892 29.0618 22.53 29.0908 22.2405C29.1197 21.951 29.1443 21.631 29.1659 21.2715L29.2232 20.0648L29.2724 18.564L29.3076 16.8919L29.3211 15.1436L29.2897 11.7099L29.2477 10.
11719L29.1904 8.85134L29.119 7.82182C29.0931 7.53532 29.0651 7.30969 29.0354 7.15714C29.0026 6.98858 28.9659 6.8208 28.9253 6.65393C28.8859 6.49156 28.8425 6.33016 28.7952 6.16989C28.7492 6.01374 28.6991 5.85879 28.6451 5.70519C28.5918 5.55349 28.5352 5.40498 28.4761 5.25966C28.4169 5.11435 28.3528 4.97241 28.2861 4.83348C28.2194 4.69455 28.1495 4.55901 28.0762 4.42656C28.0028 4.29411 27.9264 4.16495 27.8464 4.03898C27.7665 3.91302 27.6833 3.79024 27.5965 3.67076C27.5103 3.55166 27.4204 3.43528 27.327 3.32179C27.2339 3.20893 27.1374 3.09904 27.0375 2.99227C26.9376 2.88564 26.8345 2.7822 26.7281 2.6821C26.6217 2.58197 26.5121 2.48502 26.399 2.39128C26.2855 2.29722 26.1691 2.20672 26.0499 2.1199C25.9295 2.0322 25.8065 1.94818 25.6809 1.86797C25.5537 1.78662 25.4241 1.70906 25.2922 1.63539C25.1581 1.56048 25.0218 1.48944 24.8836 1.42234C24.6542 1.31084 24.4421 1.21193 24.2339 1.1242C24.0292 1.03712 23.8205 0.959792 23.6085 0.89246C23.3952 0.825296 23.1733 0.767715 22.929 0.718024C22.6848 0.668332 22.4185 0.626907 22.1171 0.591682C21.8156 0.556456 21.4791 0.527995 21.0941 0.504323C20.7092 0.480652 20.2762 0.462051 19.7819 0.447022L18.1017 0.409449L15.9753 0.384368L13.2524 0.367647L13.2514 0.367461ZM14.6656 2.95085L18.5924 2.9732L20.0737 3.00176C20.4817 3.01322 20.793 3.02665 20.9755 3.04215C21.2131 3.06216 21.4395 3.08724 21.656 3.1173C21.8638 3.14599 22.0706 3.18168 22.276 3.22429C22.4733 3.26562 22.6614 3.31259 22.8415 3.36557C23.0216 3.41855 23.1936 3.47791 23.3586 3.54357C23.5236 3.60923 23.6814 3.68147 23.8333 3.76056C23.984 3.83906 24.1304 3.92544 24.272 4.01935C24.4129 4.11282 24.5487 4.21351 24.6806 4.32201C24.8125 4.4305 24.9404 4.54679 25.0652 4.67116C25.197 4.80239 25.3185 4.93606 25.4306 5.07395C25.5422 5.21099 25.6455 5.35463 25.7399 5.50408C25.8354 5.65566 25.9214 5.81298 25.9975 5.97516C26.0753 6.14049 26.1452 6.3152 26.2079 6.50091C26.2707 6.68662 26.3266 6.88398 26.3761 7.09486C26.4279 7.31844 26.4713 7.54388 26.5063 7.77072C26.5438 8.01119 26.576 8.26763 26.6032 8.5422C26.6304 8.81677 26.653 9.10957 26.6716 9.42284C26.6864 9.67411 26.6994 10.0057 26.7104 10.3973L26.7379 11.7326L26.7589 15.0034L26.735 18.2711L26.7062 19.6025L26.6667 20.5709C26.6393 21.0243 26.6103 21.4055 26.5758 21.7373C26.5584 21.9032 26.5396 22.0567 26.5187 22.2007C26.4992 22.3367 26.4761 22.4722 26.4493 22.607C26.4249 22.73 26.3965 22.8522 26.3643 22.9734C26.3334 23.089 26.2987 23.2036 26.2601 23.3169C26.2213 23.4307 26.179 23.5434 26.1334 23.6547C26.0852 23.7722 26.0343 23.8886 25.9808 24.0038C25.9332 24.1067 25.8831 24.2067 25.8301 24.3041C25.7777 24.4006 25.7221 24.4952 25.6633 24.5878C25.605 24.6796 25.544 24.7687 25.4801 24.8551C25.4166 24.9411 25.35 25.0248 25.2804 25.106C25.2111 25.1869 25.1388 25.2653 25.0637 25.3409C24.9885 25.4165 24.9106 25.4895 24.8298 25.5599C24.749 25.6304 24.6652 25.698 24.5785 25.7632C24.4918 25.8284 24.4021 25.891 24.3094 25.9509C24.2167 26.0108 24.1211 26.0683 24.0223 26.1232C23.9236 26.178 23.8218 26.2304 23.7171 26.2803C23.6105 26.331 23.5025 26.3784 23.3931 26.4225C23.28 26.4682 23.1657 26.5106 23.0502 26.5498C22.8154 26.6299 22.5677 26.7001 22.3069 26.7607C22.0351 26.8235 21.7609 26.8748 21.4848 26.9146C21.3786 26.9301 21.1347 26.9446 20.7853 26.9582L19.4536 26.9952L15.6784 27.0442L11.727 27.0504L10.1752 27.0339L9.16754 27.0025L8.42452 26.9503C8.19381 26.9308 7.97927 26.9092 7.77825 26.8847C7.57723 26.8602 7.39002 26.8329 7.21389 26.802C7.04698 26.7732 6.88109 26.7387 6.7165 26.6987C6.56643 26.6622 6.41789 26.6196 6.27126 26.5711C6.12988 26.5242 5.99471 26.4725 5.8632 26.4157C5.7317 26.3589 5.60395 26.2966 5.47742 26.2286C5.35089 26.1606 5.22567 26.0867 5.09905 26.0062C5.00352 25.9455 4.91118 25.8841 4.82232 25.819C4.73345 25.7539 4.6476 25.689 4.56494 25.621C4.48227 25.553 4.4029 25.4829 4.32634 25.4108C4.25029 25.339 4.17685 25.2645 4.10616 25.1874C4.03571 25.1106 3.96836 25.0315 3.90373 24.9496C3.83885 24.8673 3.77703 24.7827 3.7184 24.6959C3.65889 24.6078 3.60259 24.5176 3.5496 24.4254C3.49605 24.3324 3.44514 24.2362 3.39677 24.137C3.34758 24.0359 3.30168 23.9333 3.25915 23.8292C3.21594 23.7232 3.17499 23.6139 3.13647 23.501C3.05945 23.2751 2.99181 23.0346 2.93301 22.7782C2.87421 22.5217 2.82405 22.2493 2.78159 21.9591C2.73913 21.6688 2.70494 21.3611 2.6777 21.034C2.65759 20.793 2.64163 20.4178 2.62941 19.9444L2.60386 18.2606L2.61326 13.9682L2.68718 9.86668L2.74354 8.42159L2.77548 7.94393C2.78657 7.81637 2.79803 7.72187 2.80977 7.66514C2.84847 7.47849 2.88745 7.3048 2.92775 7.1422C2.96539 6.98881 3.00727 6.83648 3.05334 6.6854C3.09712 6.54281 3.14324 6.40923 3.19255 6.2827C3.24011 6.16013 3.29311 6.03974 3.3514 5.9219C3.40832 5.8073 3.46947 5.69758 3.53588 5.59078C3.60229 5.48398 3.67397 5.38037 3.75212 5.27732C3.83027 5.17428 3.91444 5.07254 4.00602 4.9694C4.09761 4.86626 4.19652 4.76209 4.3038 4.65472C4.42882 4.52899 4.559 4.40849 4.694 4.29355C4.82148 4.1851 4.95441 4.08323 5.09228 3.98835C5.22783 3.89442 5.36685 3.81082 5.51161 3.73398C5.65636 3.65714 5.80684 3.58772 5.96512 3.52526C6.1234 3.46279 6.28967 3.4069 6.46579 3.35617C6.65083 3.30427 6.83791 3.25999 7.02658 3.22344C7.22497 3.18456 7.43567 3.15064 7.66064 3.12106C7.88561 3.09147 8.12496 3.06592 8.38084 3.04375C8.55931 3.02834 8.86685 3.01463 9.27181 3.00307L10.7456 2.97395L14.6663 2.95L14.6656 2.95085Z",fill:s})]})}},30842:(e,t,s)=>{"use strict";s.d(t,{a:()=>n});var l=s(15138);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768,[t,s]=l.useState(void 0);return l.useEffect(()=>{let t=window.matchMedia("(max-width: ".concat(e-1,"px)")),l=()=>{s(window.innerWidth<e)};return t.addEventListener("change",l),s(window.innerWidth<e),()=>t.removeEventListener("change",l)},[e]),!!t}},32330:()=>{},46268:(e,t,s)=>{"use strict";s.d(t,{g:()=>n});var l=s(13514);let n=e=>{let{title:t}=e;return(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("div",{className:"lg:w-1.5 lg:h-1.5 w-2 h-2 bg-[#72B13A] rounded-full mt-[3px] lg:mt-0 flex-shrink-0"}),(0,l.jsx)("span",{className:"text-nowrap flex items-center text-lg ",children:t})]})}},52280:(e,t,s)=>{"use strict";s.d(t,{q:()=>n});var l=s(13514);let n=e=>{let{className:t,stroke:s="#FF0000"}=e;return(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,l.jsx)("path",{d:"M3.28732 3.28634L12.714 12.713M14.6673 7.99967C14.6673 11.6816 11.6826 14.6663 8.00065 14.6663C4.31875 14.6663 1.33398 11.6816 1.33398 7.99967C1.33398 4.31778 4.3187
15 1.33301 8.00065 1.33301C11.6826 1.33301 14.6673 4.31778 14.6673 7.99967Z",stroke:s,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}},62821:(e,t,s)=>{"use strict";s.d(t,{F:()=>n});var l=s(13514);let n=e=>{let{className:t,stroke:s="#72B13A",fill:n="none"}=e;return(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",className:t,children:(0,l.jsx)("path",{d:"M8.33887 0.5C8.51876 0.5 8.67865 0.611145 8.7373 0.796875L8.73828 0.797852L10.1543 5.23535L10.1562 5.24121C10.2832 5.62192 10.6542 5.91684 11.0889 5.91699H15.7354C15.9291 5.9171 16.0721 6.021 16.1328 6.21289C16.1944 6.40788 16.1387 6.58249 15.9766 6.7041L12.2324 9.42871L12.2266 9.43359C11.8903 9.68596 11.7562 10.116 11.8848 10.5078V10.5088L13.3203 14.9209V14.9219C13.3817 15.1167 13.3261 15.2906 13.1641 15.4121C13.0085 15.5288 12.8362 15.5288 12.6807 15.4121L12.6748 15.4082L8.9248 12.6787H8.92383C8.62328 12.4573 8.22697 12.4305 7.90332 12.5986L7.77441 12.6787L4.06348 15.3789C3.90384 15.4557 3.80639 15.4794 3.73535 15.4795C3.66197 15.4795 3.57815 15.4553 3.49316 15.3916C3.33216 15.2708 3.27623 15.0977 3.33594 14.9043L4.77344 10.4883L4.77148 10.4873C4.88873 10.1305 4.79522 9.66038 4.42383 9.4082H4.4248L0.674805 6.67871C0.51737 6.55734 0.46367 6.38488 0.524414 6.19238C0.583065 6.00665 0.742959 5.89551 0.922852 5.89551H5.56836C5.97581 5.89551 6.36909 5.64694 6.50293 5.21484L7.93945 0.800781L7.94141 0.796875C8.00002 0.611264 8.15912 0.500142 8.33887 0.5Z",stroke:s,fill:n})})}},66274:(e,t,s)=>{"use strict";s.d(t,{PostHogInitializer:()=>f});var l=s(13514),n=s(15138),r=s(48734),a=s(47445);let i={movies:{entityType:"movie",reserved:new Set},"tv-series":{entityType:"tv_series",reserved:new Set},episodes:{entityType:"episode",reserved:new Set},news:{entityType:"article",reserved:new Set},people:{entityType:"person",reserved:new Set(["all-actors","born-today","full-directory"])},community:{entityType:"community",reserved:new Set(["post","profile"])}},o=e=>{let t=(e.split("?")[0].split("#")[0].replace(/\/+$/,"")||"/").toLowerCase(),s=t.split("/").filter(Boolean);if(0===s.length)return{route:"/",entityType:null,entitySlug:null};let[l,n,r]=s;if("community"===l&&"post"===n&&r)return{route:"/community/post/[slug]",entityType:"community_post",entitySlug:r};let a=i[l];return a&&n&&!a.reserved.has(n)?{route:"/"+[l,"[slug]",...s.slice(2)].join("/"),entityType:a.entityType,entitySlug:n}:{route:t,entityType:null,entitySlug:null}},c=e=>{try{return o(new URL(e).pathname)}catch(t){return o(e)}};var d=s(13638),u=s(16699);let m="nw_first_touch",h=null,x=e=>{if(!(null==e?void 0:e.properties))return e;let t=e.properties.$pathname||e.properties.$current_url;if(t){let{route:s,entityType:l,entitySlug:n}=c(t);e.properties.route=s,e.properties.entity_type=l,e.properties.entity_slug=n}return Object.assign(e.properties,(()=>{if(h)return h;try{let e=localStorage.getItem(m);if(e)return h=JSON.parse(e)}catch(e){}let e=new URLSearchParams(window.location.search),t="$direct";if(document.referrer)try{let e=new URL(document.referrer).hostname;e&&e!==window.location.hostname&&(t=e)}catch(e){}let s={first_touch_utm_source:e.get("utm_source")||"(none)",first_touch_utm_medium:e.get("utm_medium")||"(none)",first_touch_utm_campaign:e.get("utm_campaign")||"(none)",first_touch_referrer_domain:t,first_touch_landing_route:c(window.location.pathname).route};try{localStorage.setItem(m,JSON.stringify(s))}catch(e){}return h=s,s})()),e};function p(e){let{flags:t,distinctId:s,children:a}=e;return(0,n.useEffect)(()=>{var e,l;if(r.Ay.__loaded)return;let n=(null==(e=window.__RUNTIME_CONFIG__)?void 0:e.POSTHOG_KEY)||u.env.NEXT_PUBLIC_POSTHOG_KEY,a=(null==(l=window.__RUNTIME_CONFIG__)?void 0:l.POSTHOG_HOST)||u.env.NEXT_PUBLIC_POSTHOG_HOST;n&&r.Ay.init(n,{api_host:a,ui_host:"https://eu.posthog.com",bootstrap:{distinctID:s||void 0,featureFlags:t},person_profiles:"always",advanced_disable_feature_flags_on_first_load:!0,capture_pageview:"history_change",before_send:x})},[]),(0,l.jsx)(d.so,{client:r.Ay,children:a})}function f(e){let{children:t}=e,{data:s}=(0,a.yj)(),i=null==s?void 0:s.me;return(0,n.useEffect)(()=>
1{if(r.Ay.__loaded)if(null==i?void 0:i.id){let e={email:i.email,username:i.username,email_verified:i.emailVerified,is_verified:i.isVerified,is_critic:i.isCritic};i.firstName&&(e.first_name=i.firstName),i.lastName&&(e.last_name=i.lastName),r.Ay.identify(i.id,e)}else r.Ay.reset()},[null==i?void 0:i.id]),(0,l.jsx)(p,{flags:{},distinctId:null==i?void 0:i.id,children:t})}},73070:(e,t,s)=>{"use strict";s.d(t,{c:()=>n});var l=s(13514);let n=e=>{let{className:t,fill:s="#ffffff"}=e;return(0,l.jsx)("svg",{width:"8",height:"14",viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"".concat(t," w-2.5 h-2.5"),children:(0,l.jsx)("path",{d:"M2.8284 7.0046L7.7782 11.9543L6.364 13.3685L0 7.0046L6.364 0.640625L7.7782 2.05483L2.8284 7.0046Z",fill:s})})}},74307:(e,t,s)=>{"use strict";s.d(t,{LayoutWrapper:()=>e_});var l=s(13514),n=s(79158),r=s(26638),a=s(98586),i=s(94369);let o=e=>{let{className:t}=e;return(0,l.jsxs)("svg",{width:"182",height:"24",viewBox:"0 0 182 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,l.jsx)("path",{d:"M45.5694 4.50781H49.2439V18.9601H46.3952L41.2964 11.6924V18.9601H37.6016V4.50781H40.4706L45.5694 11.7755V4.50781Z",fill:"white"}),(0,l.jsx)("path",{d:"M56.4111 19.2513C54.8833 19.2513 53.5827 18.7248 52.5094 17.6717C51.436 16.6187 50.8984 15.3292 50.8984 13.8014C50.8984 12.2736 51.436 10.9841 52.5094 9.93109C53.5827 8.87807 54.8833 8.35156 56.4111 8.35156C57.9389 8.35156 59.2561 8.87807 60.3239 9.93109C61.3899 10.9841 61.9238 12.2736 61.9238 13.8014C61.9238 15.3292 61.3899 16.6187 60.3239 17.6717C59.2579 18.7248 57.9537 19.2513 56.4111 19.2513ZM56.4111 15.9481C57.017 15.9481 57.5159 15.7486 57.9075 15.3495C58.2992 14.9505 58.495 14.4351 58.495 13.8014C58.495 13.1678 58.2992 12.6523 57.9075 12.2533C57.5159 11.8542 57.017 11.6547 56.4111 11.6547C55.8051 11.6547 55.3267 11.8542 54.935 12.2533C54.5434 12.6523 54.3475 13.1696 54.3475 13.8014C54.3475 14.4332 54.5434 14.9505 54.935 15.3495C55.3267 15.7486 55.8199 15.9481 56.4111 15.9481Z",fill:"white"}),(0,l.jsx)("path",{d:"M63.4297 18.9618V3.89062H66.8566V18.9618H63.4297Z",fill:"white"}),(0,l.jsx)("path",{d:"M68.8359 18.9618V3.89062H72.2629V18.9618H68.8359Z",fill:"white"}),(0,l.jsx)("path",{d:"M80.7895 8.63672H84.5877L81.0574 18.7938C80.5068 20.3493 79.7291 21.4707 78.7241 22.1597C77.7191 22.847 76.4185 23.1573 74.8224 23.089V19.869C75.5521 19.869 76.1026 19.7784 76.4739 19.6011C76.8453 19.4219 77.1482 19.0986 77.3829 18.6312L73.2539 8.63857H77.0947L79.1804 14.626L80.7913 8.63857L80.7895 8.63672Z",fill:"white"}),(0,l.jsx)("path",{d:"M97.1822 8.63672H100.816L97.6569 18.96H94.3131L92.826 13.7171L91.3388 18.96H87.995L84.8359 8.63672H88.4698L89.8332 14.2528L91.3813 8.63672H94.2725L95.8206 14.2528L97.184 8.63672H97.1822Z",fill:"white"}),(0,l.jsx)("path",{d:"M106.599 19.2513C105.071 19.2513 103.77 18.7248 102.697 17.6717C101.624 16.6187 101.086 15.3292 101.086 13.8014C101.086 12.2736 101.624 10.9841 102.697 9.93109C103.77 8.87807 105.071 8.35156 106.599 8.35156C108.126 8.35156 109.444 8.87807 110.511 9.93109C111.577 10.9841 112.111 12.2736 112.111 13.8014C112.111 15.3292 111.577 16.6187 110.511 17.6717C109.445 18.7248 108.141 19.2513 106.599 19.2513ZM106.599 15.9481C107.205 15.9481 107.703 15.7486 108.095 15.3495C108.487 14.9505 108.682 14.4351 108.682 13.8014C108.682 13.1678 108.487 12.6523 108.095 12.2533C107.703 11.8542 107.205 11.6547 106.599 11.6547C105.993 11.6547 105.514 11.8542 105.123 12.2533C104.731 12.6523 104.535 13.1696 104.535 13.8014C104.535 14.4332 104.731 14.9505 105.123 15.3495C105.514 15.7486 106.007 15.9481 106.599 15.9481Z",fill:"white"}),(0,l.jsx)("path",{d:"M118.63 19.2513C117.102 19.2513 115.801 18.7248 114.728 17.6717C113.655 16.6187 113.117 15.3292 113.117 13.8014C113.117 12.2736 113.655 10.9841 114.728 9.93109C115.801 8.87807 117.102 8.35156 118.63 8.35156C120.158 8.35156 121.475 8.87807 122.543 9.93109C123.609 10.9841 124.143 12.2736 124.143 13.8014C124.143 15.3292 123.609 16.6187 122.543 17.6717C121.477 18.7248 120.172 19.2513 118.63 19.2513ZM118.63 15.9481C119.236 15.9481 119.735 15.7486 120.126 15.3495C120.518 14.9505 120.714 14.4351 120.714 13.8014C120.714 13.1678 120.518 12.6523 120.126 12.2533C119.735 11.8542 119.236 11.6547 118.63 11.6547C118.024 11.6547 117.545 11.8542 117.154 12.2533C116.762 12.6523 116.566 13.1696 116.566 13.8014C116.566 14.4332 116.762 14.9505 117.154 15.3495C117.545 15.7486 118.039 15.9481 118.63 15.9481Z",fill:"white"}),(0,l.jsx)("path",{d:"M132.939 4.50781H136.366V18.9601H132.939V18.0105C132.237 18.8363 131.26 19.2483 130.008 19.2483C128.631 19.2483 127.478 18.7291 126.549 17.6891C125.62 16.6508 125.156 15.3521 125.156 13.7984C125.156 12.2448 125.62 10.946 126.549 9.90593C127.478 8.86769 128.631 8.34672 130.008 8.34672C131.26 8.34672 132.237 8.76054 132.939 9.58633V4.50781Z
1M129.204 15.4297C129.603 15.8435 130.126 16.0486 130.772 16.0486C131.419 16.0486 131.942 15.8417 132.341 15.4297C132.74 15.0177 132.939 14.4727 132.939 13.7984C132.939 13.1241 132.74 12.581 132.341 12.1672C131.942 11.7533 131.419 11.5483 130.772 11.5483C130.126 11.5483 129.603 11.7552 129.204 12.1672C128.805 12.581 128.605 13.1241 128.605 13.7984C128.605 14.4727 128.805 15.0159 129.204 15.4297Z",fill:"white"}),(0,l.jsx)("path",{d:"M140.352 19.2504C139.747 19.2504 139.235 19.0398 138.814 18.6204C138.394 18.2011 138.184 17.6949 138.184 17.1037C138.184 16.5125 138.396 16.0064 138.823 15.587C139.25 15.1676 139.759 14.957 140.351 14.957C140.942 14.957 141.448 15.1676 141.867 15.587C142.287 16.0064 142.497 16.5125 142.497 17.1037C142.497 17.6949 142.287 18.2011 141.867 18.6204C141.448 19.0398 140.942 19.2504 140.351 19.2504H140.352Z",fill:"white"}),(0,l.jsx)("path",{d:"M148.487 19.2513C146.918 19.2513 145.61 18.7285 144.565 17.6828C143.519 16.6372 142.996 15.344 142.996 13.8014C142.996 12.2588 143.519 10.9656 144.565 9.92001C145.61 8.87438 146.918 8.35156 148.487 8.35156C149.505 8.35156 150.43 8.59172 151.263 9.07389C152.096 9.55607 152.739 10.2027 153.194 11.0137L150.262 12.7059C149.891 12.0316 149.292 11.6935 148.466 11.6935C147.888 11.6935 147.406 11.8894 147.022 12.281C146.635 12.6727 146.443 13.1788 146.443 13.7977C146.443 14.4166 146.635 14.9228 147.022 15.3144C147.406 15.7061 147.888 15.9019 148.466 15.9019C149.32 15.9019 149.918 15.5583 150.262 14.8692L153.194 16.5614C152.739 17.3872 152.096 18.0412 151.263 18.5234C150.43 19.0056 149.505 19.2457 148.487 19.2457V19.2513Z",fill:"white"}),(0,l.jsx)("path",{d:"M159.099 19.2513C157.571 19.2513 156.27 18.7248 155.197 17.6717C154.124 16.6187 153.586 15.3292 153.586 13.8014C153.586 12.2736 154.124 10.9841 155.197 9.93109C156.27 8.87807 157.571 8.35156 159.099 8.35156C160.626 8.35156 161.944 8.87807 163.011 9.93109C164.077 10.9841 164.611 12.2736 164.611 13.8014C164.611 15.3292 164.077 16.6187 163.011 17.6717C161.945 18.7248 160.641 19.2513 159.099 19.2513ZM159.099 15.9481C159.705 15.9481 160.203 15.7486 160.595 15.3495C160.987 14.9505 161.182 14.4351 161.182 13.8014C161.182 13.1678 160.987 12.6523 160.595 12.2533C160.203 11.8542 159.705 11.6547 159.099 11.6547C158.493 11.6547 158.014 11.8542 157.623 12.2533C157.231 12.6523 157.035 13.1696 157.035 13.8014C157.035 14.4332 157.231 14.9505 157.623 15.3495C158.014 15.7486 158.507 15.9481 159.099 15.9481Z",fill:"white"}),(0,l.jsx)("path",{d:"M177.966 8.34951C179.163 8.34951 180.109 8.73192 180.806 9.4949C181.5 10.2579 181.848 11.3091 181.848 12.6429V18.961H178.4V13.0364C178.4 12.0739 177.974 11.5917 177.12 11.5917C176.653 11.5917 176.298 11.7469 176.056 12.0554C175.816 12.3658 175.694 12.7888 175.694 13.3246V18.961H172.267V13.0364C172.267 12.0739 171.833 11.5917 170.966 11.5917C170.499 11.5917 170.144 11.7469 169.902 12.0554C169.662 12.3658 169.54 12.7888 169.54 13.3246V18.961H166.113V8.6377H169.54V9.60759C170.174 8.76887 171.101 8.34766 172.328 8.34766C173.555 8.34766 174.393 8.78919 174.97 9.66856C175.685 8.78734 176.684 8.34766 177.963 8.34766L177.966 8.34951Z",fill:"white"}),(0,l.jsx)("path",{d:"M29.5302 5.21524L27.3447 1.46869C26.8145 0.559767 25.8409 0 24.7879 0H9.22903C7.8989 0 6.69993 0.794384 6.18081 2.01921L0.348551 15.7861C-0.242619 17.1827 -0.0745067 18.7863 0.79747 20.0278L1.63619 21.2249C2.46014 22.3998 3.80505 23.1 5.23864 23.1H20.864C22.4491 23.1 23.8753 22.1375 24.4665 20.6669L29.7076 7.66305C30.029 6.86313 29.9643 5.95974 29.5302 5.21524ZM22.6708 3.44911L17.5571 15.6124C17.4389 15.8932 17.1636 16.0761 16.8588 16.0761H12.9645C12.6116 16.0761 12.305 15.8323 12.2255 15.4868L10.9453 9.85961L8.73393 15.5921C8.62124 15.884 8.34044 16.078 8.02638 16.078H4.54955C4.00457 16.078 3.63693 15.5182 3.85493 15.0176L9.14036 2.85425C9.26044 2.57714 9.53386 2.39794 9.83498 2.39794H13.5058C13.8586 2.39794 14.1635 2.63995 14.2429 2.98357L15.5601 8.61631L17.9414 2.86718C18.0596 2.58453 18.3349 2.39978 18.6416 2.39978H21.9688C22.51 2.39978 22.8777 2.95216 22.6671 3.45096L22.6708 3.44911Z",fill:"#72B13A"})]})};var c=s(91512),d=s.n(c),u=s(13638),m=s(26591),h=s(15138),x=s(37124);let p=e=>{let{className:t}=e;return(0,l.jsxs)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,l.jsx)("g",{clipPath:"url(#clip0_3426_85177)",children:(0,l.jsx)("path",{d:"M7.07077 16.8794L16.2632 7.68697M16.2632 7.68697L8.19035 7.27449M16.2632 7.68697L16.6756 15.7598",stroke:"#72B13A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_3426_85177",children:(0,l.jsx)("rect",{width:"16.9706",height:"16.9706",fill:"white",transform:"translate(0 12.6367) rotate(-45)"})})})]})},f=e=>{let{name:t,link:s,target:n}=e;return(0,l.jsx)("div",{className:"py-2",children:(0,l.jsx)(d(),{href:s,target:n,children:(0,l.jsxs)("div",{className:"flex items-end gap-1 font-light lg:text-base text-lg leading-[175%] text-white hover:text-[#72B13A] transition-colors",children:[t,(0,l.jsx)(p,{className:"w-5 h-5 "})]})})})};var g=s(9410);let w="https://play.google.com/store/apps/details?id=com.nollywood.nollywoodConsumer",v="https://apps.apple.com/us/app/nollywood-com/id6784621549",C=!!(w||v),j=e=>{let{className:t}=e;return(0,l.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,"aria-hidden":"true",children:[(0,l.jsx)("path",{d:"M3 2.5L11.5 12L3 21.5Z",fill:"#00A0FF"}),(0,l.jsx)("path",{d:"M3 2.5L15.2 9.12L11.5 12Z",fill:"#00E676"}),(0,l.jsx)("path",{d:"M3 21.5L15.2 14.88L11.5 12Z",fill:"#FF3A44"}),(0,l.jsx)("path",{d:"M15.2 9.12L20.5 12L15.2 14.88L11.5 12Z",fill:"#FFBD00"})]})},F=e=>{let{href:t,icon:s,name:n,width:r}=e,a=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{"aria-hidden":"true",className:"shrink-0",children:s}),(0,l.jsxs)("span",{className:"flex flex-col leading-tight text-left",children:[(0,l.jsx)("span",{className:"text-[10px] font-light uppercase tracking-wide text-[#C3C3C3]",children:t?"Download on":"Coming soon to"}),(0,l.jsx)("span",{className:"text-[15px] font-medium text-white",children:n})]}),t&&(0,l.jsx)("span",{className:"sr-only",children:"(opens in a new tab)"})]}),i="flex h-14 ".concat(r," touch-manipulation items-center gap-3 rounded-lg border border-[#797979] bg-black px-4");return t?(0,l.jsx)(d(),{href:t,target:"_blank",rel:"noreferrer",className:"".concat(i," transition-colors duration-300 hover:border-[#72B13A] focus-visible:border-[#72B13A] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#72B13A]"),children:a}):(0,l.jsx)("div",{className:"".concat(i," opacity-60"),children:a})},b=e=>{let{variant:t="footer"}=e,s="menu"===t,n=[{href:w,icon:(0,l.jsx)(j,{className:"w-7 h-7"}),name:"Google Play"},{href:v,icon:(0,l.jsx)(g.Z,{className:"w-7 h-7"}),name:"App Store"}].filter(e=>!s||e.href);return(0,l.jsx)("div",{className:"flex flex-wrap gap-3",children:n.map(e=>(0,l.jsx)(F,{href:e.href,icon:e.icon,name:e.name,width:s?"w-full":"w-full sm:w-44"},e.name))})},y=e=>{let{title:t,links:s}=e;return(0,l.jsxs)("div",{className:"",children:[t&&(0,l.jsx)("h4",{className:"text-white font-medium mb-4 text-lg",children:t}),s.map(e=>(0,l.jsx)(f,{name:e.name,link:e.link,target:e.target},e.name))]})},N=()=>{let e=(0,u.Tp)("communities"),t=(0,u.Tp)("enable_games"),s=(0,u.Tp)("show-talent-profiles-landing"),c=(0,u.Tp)(m.mm),[p,f]=(0,h.useState)(null),g=[{name:"Movies",link:"/movies"},{name:"TV Series",link:"/tv-series"},{name:"Coming Soon",link:"/coming-soon"},...e?[{name:"Community",link:"/community"}]:[],{name:"My List",link:"/watchlist"},...t?[{name:"Games",link:"/games"}]:[]],w=[{name:"APPS",link:"/apps"},{name:"STUDIO",link:"/studio"},...s?[{name:"TALENT PROFILES",link:"/talent-profiles"}]:[]],v=[...c?[{name:"Browse roles",link:"/casting"}]:[]];return(0,l.jsxs)("div",{className:"bg-black lg:px-14 px-6 lg:py-20 py-14 pt-30 ",children:[(0,l.jsxs)("div",{className:"flex justify-between flex-col lg:flex-row mx-auto max-w-screen-2xl",children:[(0,l.jsx)(o,{className:""}),(0,l.jsxs)("div",{className:"flex flex-col gap-4 lg:max-w-100 max-w-full",children:[(0,l.jsx)("span",{className:"font-normal lg:text-lg text-xl pt-8 lg:pt-0 text-white lg:text-left",children:"Subscribe to our newsletter."}),(0,l.jsx)(x.N,{}),(0,l.jsx)("p",{className:"text-lg font-light leading-[150%] w-full pt-2 lg:pt-0 text-[#C3C3C3] lg:text-left",children:"Unlock the full nollywood experience and get regular updates on the latest in the nollywood scene."})]})]}),(0,l.jsxs)("div",{className:"flex justify-between pt-12 flex-col xl:flex-row mx-auto max-w-screen-2xl",children:[(0,l.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-5 lg:gap-16 gap-10 pb-12",children:[(0,l.jsx)(y,{links:g}),(0,l.jsx)(y,{links:[{name:"About Us",link:"https://documenting.nollywood.com/",target:"_blank"},{name:"News",link:"/news"},{name:"Contact Us",link:"/contact-us"}]}),(0,l.jsx)(y,{links:[{name:"FAQs",link:"/faq"},{name:"Privacy Policy",link:"/privacy-policy"},{name:"Conditions of Use",link:"/conditions-of-use"}]}),v.length>0&&(0,l.jsx)(y,{title:"For Talent",links:v}),(0,l.jsx)(y,{title:"Products",links:w})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-4 w-full xl:w-100",children:[(0,l.jsx)("h4",{className:"text-white font-medium text-lg",children:(0,l.jsx)(d(),{href:"/apps",className:"hover:text-[#72B13A] transition-colors",children:"Get the App"})}),(0,l.jsx)(b,{})]})]}),(0,l.jsxs)("div",{className:"flex lg:items-end w-full gap-4 justify-between flex-col-reverse lg:flex-row mx-auto max-w-screen-2xl",children:[(0,l.jsx)("div",{className:"lg:w-2/3 w-full",children:(0,l.jsx)("p",{className:"lg:text-sm text-lg font-light leading-[175%] text-[#797979] lg:pt-6 pt-10",children:"Copyright \xa9 2026 Nollywood.com - All Rights Reserved."})}),(0,l.jsx)("div",{className:"flex gap-8 lg:w-1/3 w-full lg:justify-end lg:items-center",children:(0,l.jsxs)("div",{className:"flex gap-8 md:gap-12 md:justify-between lg:flex-row flex-col-reverse lg:justify-start w-full lg:w-auto items-start lg:items-center pt-6 lg:pt-0",children:[(0,l.jsxs)("div",{className:"flex gap-8 md:gap-6 lg:items-center",children:[(0,l.jsx)(d(),{href:"https://www.facebook.com/nollywoodcomm",className:"transition-transform duration-300 hover:scale-110","aria-label":"Follow us on Facebook",onMouseEnter:()=>f("facebook"),onMouseLeave:()=>f(null),children:(0,l.jsx)(n.f,{className:"lg:w-6 lg:h-6 w-8 h-8 transition-colors duration-300",fill:"facebook"===p?"#72B13A":"#797979"})}),(0,l.jsx)(d(),{href:"https://www.instagram.com/nollywoodcom",className:"transition-transform duration-300 hover:scale-110","aria-label":"Follow us on Instagram",onMouseEnter:()=>f("instagram"),onMouseLeave:()=>f(null),children:(0,l.jsx)(r.p,{className:"lg:w-6 lg:h-6 w-8 h-8 transition-colors duration-300",fill:"instagram"===p?"#72B13A":"#797979"})}),(0,l.jsx)(d(),{href:"https://www.youtube.com/@nollywoodcomm",className:"transition-transform duration-300 hover:scale-110","aria-label":"Follow us on YouTube",onMouseEnter:()=>f("youtube"),onMouseLeave:()=>f(null),children:(0,l.jsx)(i.k,{className:"lg:w-7 lg:h-7 h-full transition-colors duration-300",fill:"youtube"===p?"#72B13A":"#797979"})}),(0,l.jsxs)(d(),{href:"https://x.com/nollywoodcom",className:"transition-transform duration-300 hover:scale-110","aria-label":"Follow us on X",onMouseEnter:()=>f("x"),onMouseLeave:()=>f(null),children:[(0,l.jsx)(a.X,{className:"lg:w-6 lg:h-6 w-8 h-8 transition-colors duration-300",fill:"x"===p?"#72B13A":"#797979"})," "]})]}),(0,l.jsx)("div",{className:"rounded-md overflow-hidden h-14 w-28 aspect-video ml-0 lg:ml-10",children:(0,l.jsx)("img",{src:"https://res.cloudinary.com/seunsanyaa/image/upload/v1766003452/image_75_dpwvs4.png",alt:"ndpc-logo",width:100,height:100,className:" object-contain w-full h-full"})})]})})]})]})};var L=s(73070),k=s(62821),A=s(66443),E=s(788),_=s(62718);let B=()=>{let{isOpen:e,movieData:t,closeRateModal:s,rating:n,setRating:r,submitRating:a,submitReview:i,desiredOpenMode:o,existingReview:c,isReviewM
1ode:d,isCritic:u}=(0,_.z)(),[m,x]=(0,h.useState)(!1),[p,f]=(0,h.useState)(!1),[g,w]=(0,h.useState)(!1),[v,C]=(0,h.useState)(!1),[j,F]=(0,h.useState)(""),[b,y]=(0,h.useState)(""),[N,B]=(0,h.useState)(!1),[P,S]=(0,h.useState)(""),[M,R]=(0,h.useState)(""),[I,T]=(0,h.useState)(""),H=(0,h.useRef)(null),D=(0,h.useRef)(null),U=(0,h.useRef)([]),O=(0,h.useRef)(!1),V=(0,h.useRef)(null),Z=(0,h.useRef)(!1),W=(0,h.useCallback)(e=>{if(!H.current)return;let t=H.current.getBoundingClientRect(),s=Math.ceil((e-t.left)/t.width*10);return Math.max(1,Math.min(10,s))},[]),Y=(0,h.useCallback)(e=>{O.current||r(e)},[r]),q=(0,h.useCallback)(e=>{if(!O.current)return;let t=W(e.clientX);t&&r(t)},[r,W]),z=(0,h.useCallback)(e=>{if(!O.current)return;e.preventDefault();let t=e.touches[0];if(V.current){let e=Math.abs(t.clientX-V.current.x),s=Math.abs(t.clientY-V.current.y);(e>5||s>5)&&(Z.current=!0)}let s=W(t.clientX);s&&r(s)},[r,W]),G=(0,h.useCallback)(e=>{O.current=!0,f(!0);let t=W(e.clientX);t&&r(t)},[r,W]),$=()=>{O.current=!1,f(!1)},X=(0,h.useCallback)(e=>{let t=!Z.current&&V.current&&Date.now()-V.current.time<300;O.current=!1,f(!1),Z.current=!1,V.current=null,!t&&e&&e.preventDefault(),window.removeEventListener("touchmove",z,{passive:!1}),window.removeEventListener("touchend",X)},[z]),K=(0,h.useCallback)(e=>{e.preventDefault();let t=e.touches[0];V.current={x:t.clientX,y:t.clientY,time:Date.now()},Z.current=!1,O.current=!0,f(!0),window.addEventListener("touchmove",z,{passive:!1}),window.addEventListener("touchend",X);let s=W(t.clientX);s&&r(s)},[r,W,z,X]);(0,h.useEffect)(()=>()=>{window.removeEventListener("touchmove",z,{passive:!1}),window.removeEventListener("touchend",X)},[z,X]),(0,h.useEffect)(()=>{C("ontouchstart"in window||navigator.maxTouchPoints>0)},[]);let J=(0,h.useCallback)(()=>{if(H.current){let e=(n-1)/9*100;H.current.style.setProperty("--slider-progress","".concat(e,"%"))}},[n]);if((0,h.useEffect)(()=>{J()},[J]),(0,h.useEffect)(()=>{e&&(w("review"===o||d),c?(F(c.content||""),y(c.title||""),B(!1),S(c.excerpt||""),R(c.externalUrl||""),T(c.originalPublishedAt||"")):(F(""),y(""),B(!1),S(""),R(""),T("")))},[e,o,d,c]),(0,h.useEffect)(()=>{let e=H.current,t=D.current;if(!e)return;let s=e=>{K(e)},l=e=>{e.stopPropagation(),K(e)};e.addEventListener("touchstart",s,{passive:!1}),t&&t.addEventListener("touchstart",l,{passive:!1});let n=U.current,r=[];return n.forEach(e=>{if(e){let t=e=>{e.stopPropagation(),K(e)};r.push(t),e.addEventListener("touchstart",t,{passive:!1})}}),()=>{e.removeEventListener("touchstart",s,{passive:!1}),t&&t.removeEventListener("touchstart",l,{passive:!1}),n.forEach((e,t)=>{e&&r[t]&&e.removeEventListener("touchstart",r[t],{passive:!1})})}},[K]),(0,h.useEffect)(()=>{if(p)return window.addEventListener("mousemove",q),window.addEventListener("mouseup",$),()=>{window.removeEventListener("mousemove",q),window.removeEventListener("mouseup",$)}},[p,q]),!e||!t)return null;let Q=async()=>{x(!0);try{g?await i({title:b||"".concat(null==t?void 0:t.title," Review"),content:j,containsSpoiler:N,isCriticReview:u,...u&&{excerpt:P||void 0,externalUrl:M||void 0,originalPublishedAt:I||void 0}}):await a()}finally{x(!1)}};return(0,l.jsx)("div",{className:"bg-black/50 fixed top-0 left-0 right-0 bottom-0 z-[9999] flex items-center justify-center p-4",style:{touchAction:"auto"},children:(0,l.jsxs)("div",{className:"bg-[#1b1b1b] rounded-lg p-8 max-w-[550px] w-full max-h-[90vh] overflow-y-auto",style:{touchAction:"auto"},children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-6",children:[g&&(0,l.jsx)("button",{onClick:()=>w(!1),type:"button",className:"hover:opacity-70 transition-opacity cursor-pointer",children:(0,l.jsx)(L.c,{className:"w-3 h-3",fill:"#C3C3C3",strokeWidth:1})}),(0,l.jsx)("div",{className:"flex-1"}),(0,l.jsx)("button",{onClick:s,className:"hover:opacity-70 transition-opacity",children:(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",children:(0,l.jsx)("path",{d:"M17.5 6L6 17.5M17.5 17.5L6 6",stroke:"#C3C3C3",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,l.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"text-[#C3C3C3] text-base font-light leading-[normal] font-semibold",children:g?"Review This":"Rate This"}),(0,l.jsx)("h2",{className:"text-white text-xl font-normal leading-[normal] font-semibold pt-2 lg:pr-10",children:t.title})]}),(0,l.jsx)("div",{className:"text-white text-5xl font-normal leading-[120%] flex-shrink-0",children:(0,l.jsxs)("h2",{children:[n," ",(0,l.jsx)("span",{className:"text-[#ffffff]/5 font-normal leading-[120%]",children:"/10"})]})})]}),(0,l.jsxs)("div",{className:"mb-6 flex flex-col gap-7",children:[(0,l.jsxs)("div",{className:"relative mt-12 w-[90%] mx-auto",children:[(0,l.jsxs)("div",{ref:D,className:"absolute -top-12 transform -translate-x-1/2 bg-[#72B13A] text-white px-2 py-1 rounded-md text-sm font-medium flex-nowrap flex items-center justify-center cursor-grab active:cursor-grabbing select-none",onMouseDown:G,style:{left:(e=>e?"calc(".concat(100/9*(e-1),"% + ").concat(e<6?7*(5.5-e)/4:-7*(e-5.5)/4,"px)"):"0%")(n),visibility:n?"visible":"hidden",touchAction:"none",transition:p?"none":"left 0.2s ease-out"},children:[(0,l.jsxs)("div",{className:"flex items-center justify-center gap-1 text-base font-medium leading-[100%] py-1.5",children:[n,(0,l.jsx)(k.F,{className:"w-3 h-3",stroke:"#D9D9D9",fill:"#72B13A"})]}),(0,l.jsx)("div",{className:"absolute left-1/2 top-full transform -translate-x-1/2 mt-[-2px]",children:(0,l.jsx)("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-2.5 h-2.5",children:(0,l.jsx)("path",{d:"M8 14L15.7942 0.5H0.205771L8 14Z",fill:"#72B13A"})})})]}),(0,l.jsxs)("div",{ref:H,className:"relative h-1 bg-[#797979] rounded-lg flex items-center justify-between select-none touch-none",onMouseDown:G,style:{cursor:p?"grabbing":"grab",background:"linear-gradient(to right, #72B13A 0%, #72B13A ".concat((n-1)/9*100,"%, #797979 ").concat((n-1)/9*100,"%, #797979 100%)"),touchAction:"none"},children:[(0,l.jsx)("div",{className:"absolute inset-0 -inset-y-[20px] z-10",style:{touchAction:"none"}}),[...Array(10)].map((e,t)=>(0,l.jsx)("button",{ref:e=>{U.current[t]=e},type:"button",className:"w-4 h-4 rounded-full border-3 transition-all duration-200 relative z-20 ".concat(t<n?" border-[#72B13A] border-3 bg-[#1A1A1A] scale-110":"bg-[#242424] border-[#797979] hover:border-[#797979] hover:scale-105 active:scale-110"),onClick:()=>{O.current||Z.current||Y(t+1)},onTouchEnd:e=>{Z.current&&e.preventDefault()},style:{touchAction:"none",pointerEvents:p?"none":"auto"}},"rating-dot-".concat(t+1)))]})]}),(0,l.jsx)("span",{className:"text-[#FFFFFFBF] text-sm font-normal leading-[160%] text-center ",children:v?"Slide or tap to rate":"Drag or click to rate"})]}),g?(0,l.jsxs)("div",{className:"space-y-6",children:[c&&(0,l.jsx)("div",{className:"bg-[#72B13A]/10 border border-[#72B13A]/20 rounded-lg p-3 mb-4",children:(0,l.jsx)("p",{className:"text-[#72B13A] text-sm font-medium",children:"PUBLISHED"===c.status?"â You have a published review":"DRAFT"===c.status?"\uD83D\uDCDD You have a draft review":"â³ Your review is pending approval"})}),(0,l.jsxs)("div",{className:"border-t border-[#FFFFFF40] pt-6",children:[(0,l.jsxs)("p",{className:"text-white text-sm font-normal leading-[175%] mb-4",children:["Write a ",u?"critic ":"","review for"," ",(0,l.jsx)("span",{className:"text-[#72B13A]",children:t.title})]}),(0,l.jsx)("input",{type:"text",placeholder:"Review title (optional)",className:"w-full bg-[#242424] border border-[#797979] rounded-lg px-3 py-2 text-white text-sm mb-4 focus:border-[#72B13A] focus:outline-none",value:b,onChange:e=>y(e.target.value)}),(0,l.jsx)(E.f,{placeholder:"Minimum 75 Characters",className:"w-full",value:j,onChange:e=>F(e.target.value),minLength:75})]}),u&&(0,l.jsxs)("div",{className:"space-y-4 border-t border-[#FFFFFF40] pt-4",children:[(0,l.jsx)("p",{className:"text-[#C3C3C3] text-xs font-normal",children:"Critic Review Fields (Optional)"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-[#FFFFFFBF] text-sm font-normal block mb-2",children:"Excerpt"}),(0,l.jsx)("textarea",{placeholder:"A brief excerpt or summary of your review...",className:"w-full bg-[#242424] border border-[#797979] rounded-lg px-3 py-2 text-white text-sm focus:border-[#72B13A] focus:outline-none resize-none",rows:3,value:P,onChange:e=>S(e.target.value)})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-[#FFFFFFBF] text-sm font-normal block mb-2",children:"Exter
1nal URL"}),(0,l.jsx)("input",{type:"url",placeholder:"https://example.com/your-review",className:"w-full bg-[#242424] border border-[#797979] rounded-lg px-3 py-2 text-white text-sm focus:border-[#72B13A] focus:outline-none",value:M,onChange:e=>R(e.target.value)}),(0,l.jsx)("p",{className:"text-[#797979] text-xs mt-1",children:"Link to the original review if published elsewhere"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-[#FFFFFFBF] text-sm font-normal block mb-2",children:"Original Published Date"}),(0,l.jsx)("input",{type:"date",className:"w-full bg-[#242424] border border-[#797979] rounded-lg px-3 py-2 text-white text-sm focus:border-[#72B13A] focus:outline-none",value:I,onChange:e=>T(e.target.value)}),(0,l.jsx)("p",{className:"text-[#797979] text-xs mt-1",children:"When was this review originally published?"})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("input",{type:"checkbox",id:"spoiler",checked:N,onChange:e=>B(e.target.checked),className:"w-4 h-4 text-[#72B13A] bg-transparent border-2 border-[#797979] rounded focus:ring-[#72B13A] focus:ring-2"}),(0,l.jsx)("label",{htmlFor:"spoiler",className:"text-[#FFFFFFBF] text-sm font-normal",children:"Contains Spoiler"})]}),(0,l.jsxs)("div",{className:"flex gap-3",children:[(0,l.jsx)(A.$,{className:"flex items-center gap-1 w-full justify-center text-white text-base font-normal leading-[175%] rounded-lg px-5 py-2",style:"green",onClick:Q,disabled:m||j.length<75,children:m?"Submitting...":c?"Update Review":u?"Submit Critic Review":"Submit Review"}),(0,l.jsx)(A.$,{className:"flex items-center gap-1 w-full justify-center text-white text-base font-normal leading-[175%] rounded-lg px-5 py-2 bg-[#A3A3A3]/5 hover:bg-[#A3A3A3]/10 transition-colors",onClick:s,disabled:m,style:"dark",children:"Cancel"})]})]}):(0,l.jsxs)("div",{children:[(0,l.jsx)(A.$,{className:"flex items-center gap-1 w-full justify-center text-white text-base font-normal leading-[175%] rounded-lg px-5 py-2 w-fit mt-5",style:"green",onClick:Q,disabled:m,children:m?"Rating...":"Rate"}),(0,l.jsxs)("p",{className:"text-white text-sm font-normal leading-[175%] pt-4 text-center",children:["You can also"," ",(0,l.jsx)("button",{className:"text-[#72B13A] hover:underline",onClick:()=>w(!0),children:"Write a review here."})]})]})]})})};var P=s(25681),S=s.n(P);let M=()=>{let{isSuccessModalOpen:e,movieData:t,closeSuccessModal:s}=(0,_.z)();return e&&t?(0,l.jsx)("div",{className:"bg-black/50 fixed top-0 left-0 right-0 bottom-0 z-50 flex items-center justify-center p-4",children:(0,l.jsxs)("div",{className:"bg-[#1b1b1b] rounded-lg p-8 max-w-[550px] w-full max-h-[90vh] overflow-y-auto flex flex-col ",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-6",children:[(0,l.jsx)("div",{className:"flex-1 opacity-0",children:" ffff"}),(0,l.jsx)("button",{onClick:s,className:"hover:opacity-70 transition-opacity",children:(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",children:(0,l.jsx)("path",{d:"M17.5 6L6 17.5M17.5 17.5L6 6",stroke:"#C3C3C3",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,l.jsxs)("div",{className:"jsx-2eaa030fda5288e0 flex flex-col justify-center items-center",children:[(0,l.jsxs)("svg",{width:"78",height:"78",viewBox:"0 0 78 78",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"jsx-2eaa030fda5288e0 animate-pulse-scale",children:[(0,l.jsx)("rect",{width:"78",height:"78",rx:"39",fill:"white","fill-opacity":"0.05",className:"jsx-2eaa030fda5288e0"}),(0,l.jsx)("circle",{cx:"39",cy:"39",r:"29",fill:"white","fill-opacity":"0.05",className:"jsx-2eaa030fda5288e0"}),(0,l.jsx)("path",{d:"M31.8753 39.0013L36.6253 43.7513L46.1253 34.2513M54.8337 39.0013C54.8337 47.7458 47.7448 54.8346 39.0003 54.8346C30.2558 54.8346 23.167 47.7458 23.167 39.0013C23.167 30.2568 30.2558 23.168 39.0003 23.168C47.7448 23.168 54.8337 30.2568 54.8337 39.0013Z",stroke:"#72B13A","stroke-width":"3.16667","stroke-linecap":"round","stroke-linejoin":"round",className:"jsx-2eaa030fda5288e0"})]}),(0,l.jsx)(S(),{id:"2eaa030fda5288e0",children:"@keyframes pulseScale{0%,100%{transform:scale(1)}50%{transform:scale(1.1)}}.animate-pulse-scale.jsx-2eaa030fda5288e0{animation:pulseScale 1s ease-in-out infinite}"})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 my-5 justify-center items-center",children:[(0,l.jsx)("h2",{className:"text-white text-xl font-normal leading-[normal] font-semibold text-center",children:"Submission successful"}),(0,l.jsx)("p",{className:"text-[#FFFFFFBF] text-sm font-normal leading-[160%] text-center ",children:"Thank y
1ou for contributing to Nollywood.com"})]}),(0,l.jsx)("p",{className:"text-white text-sm font-normal leading-[175%] pb-4 text-center px-6",children:"The information you have supplied is now being processed by our team. We aim to process contributions as quickly as possible. A confirmation email has also been sent to you."}),(0,l.jsx)(A.$,{className:"flex items-center gap-1 w-full justify-center text-white text-base font-normal leading-[175%] rounded-lg px-5 py-2 w-fit mt-5",style:"green",onClick:s,children:"Okay"})]})}):null};var R=s(40367),I=s(30842),T=s(8883),H=s(72644),D=s(94273);let U=()=>{let{showTrailer:e,trailerUrl:t,isWatchMode:s,closeTrailer:n}=(0,R.N)(),r=(0,I.a)(),a=(0,h.useRef)(null);(0,h.useEffect)(()=>{if(!s||!r||!e)return;let t=()=>{document.fullscreenElement||n()};return document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),()=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t)}},[s,r,e,n]);let i=(0,h.useCallback)(e=>{let t=e.target.getIframe();if(a.current=t,r&&s&&t){var l,n;let e=(null==(l=t.requestFullscreen)?void 0:l.bind(t))||(null==(n=t.webkitRequestFullscreen)?void 0:n.bind(t));e&&e().catch(()=>{console.log("Fullscreen request failed, continuing with modal view")})}},[r,s]);if(!e||!t)return null;let o=(0,H.lj)(t),c="youtube"===o?(0,T.Wb)(t):null;return("youtube"===o?c:"mux"===o)?(0,l.jsx)("div",{className:"fixed inset-0 z-[99999] flex items-center justify-center bg-black/45 backdrop-blur-md p-4 sm:p-6 md:p-8 lg:p-12 ",onClick:n,style:{isolation:"isolate"},children:(0,l.jsxs)("div",{className:"relative w-full h-full max-w-[95vw] max-h-[70vh] z-[100000] flex flex-col items-center justify-center",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("button",{onClick:n,className:"absolute top-0 right-0 sm:-top-12 sm:right-0 text-white text-3xl sm:text-4xl hover:text-gray-300 transition-colors duration-200 z-[100001] w-10 h-10 sm:w-12 sm:h-12 flex items-center justify-center","aria-label":"Close trailer",children:"â"}),(0,l.jsx)("div",{className:"relative w-full h-full rounded-lg overflow-hidden z-[100000]",style:{aspectRatio:"16/9"},children:"youtube"===o&&c?(0,l.jsx)(D.A,{videoId:c,className:"absolute top-0 left-0 w-full h-full youtube-video",onReady:i,opts:{playerVars:{autoplay:1,modestbranding:1,rel:0}}}):(0,l.jsx)(H.l4,{src:t,autoPlay:!0,className:"absolute top-0 left-0 w-full h-full"})})]})}):null};var O=s(4534);let V=e=>{let{className:t,stroke:s="white"}=e;return(0,l.jsxs)("svg",{width:"26",height:"18",viewBox:"0 0 26 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,l.jsx)("path",{d:"M0 1H25.4545",stroke:s,strokeWidth:"1.5"}),(0,l.jsx)("path",{d:"M0 9H25.4545",stroke:s,strokeWidth:"1.5"}),(0,l.jsx)("path",{d:"M0 17H25.4545",stroke:s,strokeWidth:"1.5"})]})},Z=e=>{let{className:t,fill:s="none"}=e;return(0,l.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,l.jsx)("path",{d:"M13.5233 12.4626L16.7353 15.6746L15.6746 16.7353L12.4626 13.5233C11.3077 14.4473 9.843 15 8.25 15C4.524 15 1.5 11.976 1.5 8.25C1.5 4.524 4.524 1.5 8.25 1.5C11.976 1.5 15 4.524 15 8.25C15 9.843 14.4473 11.3077 13.5233 12.4626ZM12.0185 11.9061C12.9356 10.9609 13.5 9.6717 13.5 8.25C13.5 5.34938 11.1506 3 8.25 3C5.34938 3 3 5.34938 3 8.25C3 11.1506 5.34938 13.5 8.25 13.5C9.6717 13.5 10.9609 12.9356 11.9061 12.0185L12.0185 11.9061Z",fill:s})})};var W=s(24273),Y=s(1292),q=s(47445),z=s(53324),G=s(16204),$=s(82306),X=s(13756),K=s(57610);s(41916),s(52430);var J=s(10221),Q=s(803);let ee=e=>{let{email:t,onBack:s,onSuccess:n}=e,[r,a]=(0,h.useState)(""),[i,o]=(0,h.useState)(""),[c,d]=(0,h.useState)(!1),{requestEmailVerification:u}=(0,q.k5)();(0,J.useRouter)();let m=(0,h.useRef)(!1);(0,h.useEffect)(()=>{m.current||(m.current=!0,u().then(e=>{e.success&&o("Verification link sent! Please check your email inbox (and spam folder).")}).catch(()=>{}))},[u]);let x=async()=>{d(!0),a(""),o("");try{let e=await u();e.success?o("Verification link sent! Please check your email inbox (and spam folder)."):a(e.error||"Failed to resend verification link")}catch(e){a("An unexpected error occurred")}finally{d(!1)}};return(0,l.jsxs)("div",{className:"relative flex flex-col gap-3 items-center justify-center bg-[#1A1A1A] pt-6 sm:pt-8 px-4 sm:px-6 lg:px-28 h-full",children:[(0,l.jsx)("h1",{className:"text-white text-xl sm:text-2xl font-medium leading-[normal]",children:"Check Your Email"}),(0,l.jsxs)("p",{className:"text-[#FFFFFFBF] text-sm font-light leading-[160%] text-center px-4 max-w-[400px]",children:["We've sent a verification link to"," ",(0,l.jsx)("span",{className:"text-[#72B13A] font-medium block sm:inline",children:t})]}),(0,l.jsx)("p",{className:"text-[#FFFFFFBF] text-sm font-light leading-[160%] text-center px-4 max-w-[400px]",children:"Click the link in the email to verify your account."}),r&&(0,l.jsx)("div",{className:"w-full p-3 bg-red-500/10 border border-red-500/20 rounded-lg",children:(0,l.jsx)("p",{className:"text-red-400 text-sm text-center",children:r})}),i&&(0,l.jsx)("div",{className:"w-full p-3 bg-green-500/10 border border-green-500/20 rounded-lg",children:(0,l.jsx)("p",{className:"text-green-400 text-sm text-center",children:i})}),(0,l.jsxs)("div",{className:"pt-6 sm:pt-10 w-full flex flex-col gap-3 sm:gap-4",children:[(0,l.jsx)(A.$,{className:"w-full py-2 rounded-md text-white line-height-[175%] text-sm",style:"green",onClick:()=>{window.location.reload()},children:"I've Verified My Email"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[(0,l.jsxs)("p",{className:"text-[#FFFFFFBF] text-xs text-center",children:["Didn't receive the link?",(0,l.jsx)("button",{onClick:x,disabled:c,
1className:"text-[#72B13A] hover:text-[#72B13A]/80 ml-1 underline disabled:opacity-50",children:c?"Sending...":"Resend Link"})]}),s&&(0,l.jsx)("button",{onClick:s,className:"text-[#FFFFFFBF] text-xs hover:text-white underline",children:"Back to signup"})]})]}),(0,l.jsx)("div",{})]})};var et=s(70058);let es=e=>{let{onSuccess:t}=e,[s,n]=(0,h.useState)(""),[r,a]=(0,h.useState)(""),[i,o]=(0,h.useState)(""),{requestPasswordReset:c,isRequestingPasswordReset:d}=(0,q.k5)(),u=async()=>{if(!s.trim())return void a("Please enter your email address");if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s))return void a("Please enter a valid email address");try{let e=await c(s);e.success?(o("Password reset code sent! Check your email."),setTimeout(()=>{t(s)},1500)):a(e.error||"Failed to send reset code")}catch(e){a("An unexpected error occurred")}};return(0,l.jsxs)("div",{className:"relative flex flex-col gap-3 items-center justify-center bg-[#1A1A1A] pt-6 sm:pt-8 px-4 sm:px-6 lg:px-28 h-full",children:[(0,l.jsx)("h1",{className:"text-white text-xl sm:text-2xl font-medium leading-[normal]",children:"Forgot Password"}),(0,l.jsx)("p",{className:"text-[#FFFFFFBF] text-sm font-light leading-[160%] text-center px-4",children:"Enter your email address and we'll send you a code to reset your password"}),r&&(0,l.jsx)("div",{className:"w-full p-3 bg-red-500/10 border border-red-500/20 rounded-lg",children:(0,l.jsx)("p",{className:"text-red-400 text-sm text-center",children:r})}),i&&(0,l.jsx)("div",{className:"w-full p-3 bg-green-500/10 border border-green-500/20 rounded-lg",children:(0,l.jsx)("p",{className:"text-green-400 text-sm text-center",children:i})}),(0,l.jsxs)("div",{className:"pt-6 sm:pt-10 w-full flex flex-col gap-3 sm:gap-4",children:[(0,l.jsx)(et.p,{placeholder:"Email Address",type:"email",className:"w-full !shadow-none !bg-[#A3A3A30D] border-[#FFFFFF14] border placeholder:text-[#FFFFFF40]",label:"Email Address",value:s,onChange:e=>{n(e.target.value),a(""),o("")}}),(0,l.jsx)(A.$,{className:"w-full py-2 rounded-md text-white line-height-[175%] text-sm",style:"green",onClick:u,disabled:d,children:d?"Sending Code...":"Send Reset Code"})]}),(0,l.jsx)("div",{})]})};var el=s(52280),en=s(11973);let er=e=>{let{email:t,onBack:s}=e,[n,r]=(0,h.useState)(""),[a,i]=(0,h.useState)(""),[o,c]=(0,h.useState)(""),[d,u]=(0,h.useState)(""),[m,x]=(0,h.useState)(!1),{verifyPasswordResetToken:p,requestPasswordReset:f,isVerifyingPasswordReset:g}=(0,q.k5)(),w=(0,J.useRouter)(),v=e=>({hasLowercase:/[a-z]/.test(e),hasUppercase:/[A-Z]/.test(e),hasNumber:/\d/.test(e),hasMinLength:e.length>=8}),C=async()=>{if(!n.trim())return void c("Please enter the 6-digit reset code");if(6!==n.length)return void c("Reset code must be 6 digits");if(!a.trim())return void c("Please enter a new password");let e=v(a);if(!e.hasLowercase||!e.hasUppercase||!e.hasNumber||!e.hasMinLength)return void c("Password does not meet all requirements");try{let e=await p({identifier:t,token:n.trim(),password:a.trim()});e.success?(u("Password reset successfully! Redirecting to sign in..."),setTimeout(()=>{w.push("/?modal=signin")},2e3)):c(e.error||"Password reset failed")}catch(e){c("An unexpected error occurred")}},j=async()=>{x(!0),c("");try{let e=await f(t);e.success?(u("New reset code sent! Please check your email."),setTimeout(()=>u(""),3e3)):c(e.error||"Failed to resend reset code")}catch(e){c("An unexpected error occurred")}finally{x(!1)}};return(0,l.jsxs)("div",{className:"relative flex flex-col gap-3 items-center justify-center bg-[#1A1A1A] pt-6 sm:pt-8 px-4 sm:px-6 lg:px-28 h-full overflow-y-auto",children:[(0,l.jsx)("h1",{className:"text-white text-xl sm:text-2xl font-medium leading-[normal]",children:"Reset Password"}),(0,l.jsxs)("p",{className:"text-[#FFFFFFBF] text-sm font-light leading-[160%] text-center px-4",children:["We've sent a 6-digit code to ",(0,l.jsx)("span",{className:"text-[#72B13A] font-medium",children:t})]}),o&&(0,l.jsx)("div",{className:"w-full p-3 bg-red-500/10 border border-red-500/20 rounded-lg",children:(0,l.jsx)("p",{className:"text-red-400 text-sm text-center",children:o})}),d&&(0,l.jsx)("div",{className:"w-full p-3 bg-green-500/10 border border-green-500/20 rounded-lg",children:(0,l.jsx)("p",{className:"text-green-400 text-sm text-center",children:d})}),(0,l.jsxs)("div",{className:"pt-6 sm:pt-10 w-full flex flex-col gap-3 sm:gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)("label",{className:"text-[#FFFFFFBF] text-sm font-medium",children:"6-Digit Reset Code"}),(0,l.jsx)("div",{className:"flex gap-2 ",children:Array.from({length:6},(e,t)=>(0,l.jsx)("input",{id:"code-".concat(t),type:"text",inputMode:"numeric",pattern:"[0-9]",maxLength:1,value:n[t]||"",onChange:e=>((e,t)=>{let s=e.replace(/\D/g,"").slice(0,1),l=n.split("");
1if(l[t]=s,r(l.join("")),c(""),s&&t<5){let e=document.getElementById("code-".concat(t+1));null==e||e.focus()}})(e.target.value,t),onKeyDown:e=>((e,t)=>{if("Backspace"===e.key&&!n[t]&&t>0){let e=document.getElementById("code-".concat(t-1));null==e||e.focus()}})(e,t),className:"w-12 h-12 sm:w-10 sm:h-10 text-center text-2xl font-medium bg-[#A3A3A30D] border border-[#FFFFFF14] rounded-md text-white placeholder:text-[#FFFFFF40] focus:outline-none focus:border-[#72B13A] focus:ring-1 focus:ring-[#72B13A]",placeholder:"0"},t))})]}),(0,l.jsx)(et.p,{placeholder:"Enter new password",type:"password",className:"w-full !shadow-none !bg-[#A3A3A30D] border-[#FFFFFF14] border placeholder:text-[#FFFFFF40]",label:"New Password",value:a,onChange:e=>{i(e.target.value),c("")}}),(0,l.jsx)("div",{className:"space-y-1 sm:space-y-2",children:(()=>{let e=v(a);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[e.hasLowercase?(0,l.jsx)(en.H,{}):(0,l.jsx)(el.q,{}),(0,l.jsx)("span",{className:"text-[#FFFFFFBF] text-xs sm:text-sm",children:"At least one lowercase letter"})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[e.hasMinLength?(0,l.jsx)(en.H,{}):(0,l.jsx)(el.q,{}),(0,l.jsx)("span",{className:"text-[#FFFFFFBF] text-xs sm:text-sm",children:"Minimum 8 characters"})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[e.hasUppercase?(0,l.jsx)(en.H,{}):(0,l.jsx)(el.q,{}),(0,l.jsx)("span",{className:"text-[#FFFFFFBF] text-xs sm:text-sm",children:"At least one uppercase letter"})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[e.hasNumber?(0,l.jsx)(en.H,{}):(0,l.jsx)(el.q,{}),(0,l.jsx)("span",{className:"text-[#FFFFFFBF] text-xs sm:text-sm",children:"At least one number"})]})]})})()}),(0,l.jsx)(A.$,{className:"w-full py-2 rounded-md text-white line-height-[175%] text-sm mt-2",style:"green",onClick:C,disabled:g,children:g?"Resetting Password...":"Reset Password"}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[(0,l.jsxs)("p",{className:"text-[#FFFFFFBF] text-xs text-center",children:["Didn't receive the code?",(0,l.jsx)("button",{onClick:j,disabled:m,className:"text-[#72B13A] hover:text-[#72B13A]/80 ml-1 underline disabled:opacity-50",children:m?"Sending...":"Resend"})]}),s&&(0,l.jsx)("button",{onClick:s,className:"text-[#FFFFFFBF] text-xs hover:text-[#72B13A] underline transition-colors",children:"Back to sign in"})]})]}),(0,l.jsx)("div",{})]})};var ea=s(5149);let ei=e=>{let{error:t}=e;return(0,l.jsx)("div",{className:"w-full space-y-2",children:(0,l.jsx)("div",{className:"w-full p-3 border rounded-lg bg-red-500/10 border-red-500/20",children:(0,l.jsx)("p",{className:"text-sm text-center text-red-400",children:t})})})};var eo=s(48734),ec=s(28878);let ed=e=>{let{providers:t,onOAuthLogin:s,isLoading:n,type:r}=e;if(0===t.length)return null;let a=[...t].sort((e,t)=>e.displayOrder-t.displayOrder);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"gap-2 sm:gap-4 w-full flex items-center justify-center mt-4 sm:mt-6",children:[(0,l.jsx)("div",{className:"w-full h-[0.5px] bg-[#FFFFFF40]"}),(0,l.jsx)("p",{className:"text-[#FFFFFFBF] text-xs sm:text-sm font-light leading-[160%]",children:"or"}),(0,l.jsx)("div",{className:"w-full h-[0.5px] bg-[#FFFFFF40]"})]}),(0,l.jsx)("div",{className:"w-full space-y-2 sm:space-y-3",children:a.map(e=>(0,l.jsxs)(A.$,{className:"w-full py-2.5 rounded-lg flex items-center justify-center gap-2 ".concat("login"===r?e.uiConfiguration.loginButtonClass:e.uiConfiguration.signupButtonClass),style:"google"===e.name?"dark":void 0,onClick:()=>(e=>{if(eo.Ay.__loaded&&eo.Ay.isFeatureEnabled(m.f_)&&"signup"===r)return void ec.Ay.error("\uD83D\uDEA7 Service temporarily unavailable for maintenance",{id:"maintenance-oauth",duration:5e3});s(e)})(e.name),disabled:n,children:["google"===e.name&&(0,l.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",children:[(0,l.jsx)("path",{d:"M22.56 12.25C22.56 11.47 22.49 10.72 22.36 10H12V14.26H17.92C17.66 15.63 16.88 16.79 15.71 17.57V20.34H19.28C21.36 18.42 22.56 15.6 22.56 12.25Z",fill:"#4285F4"}),(0,l.jsx)("path",{d:"M11.9997 22.9996C14.9697 22.9996 17.4597 22.0196 19.2797 20.3396L15.7097 17.5696C14.7297 18.2296 13.4797 18.6296 11.9997 18.6296C9.13969 18.6296 6.70969 16.6996 5.83969 14.0996H2.17969V16.9396C3.98969 20.5296 7.69969 22.9996 11.9997 22.9996Z",fill:"#34A853"}),(0,l.jsx)("path",{d:"M5.84 14.0903C5.62 13.4303 5.49 12.7303 5.49 12.0003C5.49 11.2703 5.62 10.5703 5.84 9.91031V7.07031H2.18C1.43 8.55031 1 10.2203 1 12.0003C1 13.7803 1.43 15.4503 2.18 16.9303L5.03
114.7103L5.84 14.0903Z",fill:"#FBBC05"}),(0,l.jsx)("path",{d:"M11.9997 5.38C13.6197 5.38 15.0597 5.94 16.2097 7.02L19.3597 3.87C17.4497 2.09 14.9697 1 11.9997 1C7.69969 1 3.98969 3.47 2.17969 7.07L5.83969 9.91C6.70969 7.31 9.13969 5.38 11.9997 5.38Z",fill:"#EA4335"})]}),"apple"===e.name&&(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-5 h-5",children:(0,l.jsx)("path",{d:"M17.05 20.28C16.07 21.23 15 21.08 13.97 20.63C12.88 20.17 11.88 20.15 10.73 20.63C9.28998 21.25 8.52998 21.07 7.66998 20.28C2.78998 15.25 3.50998 7.59 9.04998 7.31C10.4 7.38 11.34 8.05 12.13 8.11C13.31 7.87 14.44 7.18 15.7 7.27C17.21 7.39 18.35 7.99 19.1 9.07C15.98 10.94 16.72 15.05 19.58 16.2C18.97 17.82 18.17 19.42 17.04 20.29L17.05 20.28ZM12.03 7.25C11.88 5.02 13.69 3.18 15.77 3C16.06 5.58 13.43 7.5 12.03 7.25Z",fill:"white"})}),"facebook"===e.name&&(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M10.002 0C4.4791 0 0.00195312 4.47715 0.00195312 10C0.00195312 14.9913 3.6588 19.1283 8.43947 19.8785V12.8906H5.90038V10H8.43947V7.79688C8.43947 5.29063 9.93237 3.90625 12.2166 3.90625C13.3107 3.90625 14.4551 4.10156 14.4551 4.10156V6.5625H13.1941C11.9519 6.5625 11.5645 7.33334 11.5645 8.1242V10H14.3379L13.8946 12.8906H11.5645V19.8785C16.3451 19.1283 20.002 14.9913 20.002 10C20.002 6.47715 15.5248 0 10.002 0Z",fill:"white"})}),(0,l.jsx)("span",{className:"text-xs sm:text-sm",children:n?"Redirecting...":"login"===r?e.uiConfiguration.loginButtonText:e.uiConfiguration.signupButtonText})]},e.id))})]})},eu=e=>{let{onForgotPassword:t,onSwitchToSignup:s,onSigninSuccess:n}=e,[r,a]=(0,h.useState)({identifier:"",password:""}),[i,o]=(0,h.useState)(""),[c,d]=(0,h.useState)(""),{login:u,loginWithOAuth:m,oauthProviders:x,isLoggingIn:p,isLoggingInWithOAuth:f}=(0,q.k5)(),g=(e,t)=>{a(s=>({...s,[e]:t})),o("")},w=async()=>{if(!r.identifier||!r.password)return void o("Please enter both email/username and password");try{let e=await u(r.identifier,r.password);e.success?(d("Login successful! Redirecting..."),null==n||n()):o(e.error||"Login failed")}catch(e){o("An unexpected error occurred")}},v=async e=>{try{(0,ea.GN)({redirectTo:window.location.pathname,provider:e});let t=await m(e);t.success||o(t.error||"OAuth login failed")}catch(e){o("An unexpected error occurred")}};return(0,l.jsxs)("div",{className:"relative flex flex-col gap-3 items-center justify-center bg-[#1A1A1A] pt-6 sm:pt-8 px-4 sm:px-6 lg:px-28 h-full",children:[(0,l.jsx)("h1",{className:"text-white text-xl sm:text-2xl font-medium leading-[normal]",children:"Sign in"}),(0,l.jsxs)("p",{className:"text-[#FFFFFFBF] text-sm font-light leading-[160%] text-center px-4",children:["Need to create an account?"," ",(0,l.jsx)(H.$n,{buttonType:"bare",size:"sm",className:"text-primary hover:text-primary/80",onClick:s,children:"Sign up here"})]}),i&&(0,l.jsx)(ei,{error:i}),c&&(0,l.jsx)("div",{className:"w-full p-3 border rounded-lg bg-green-500/10 border-green-500/20",children:(0,l.jsx)("p",{className:"text-sm text-center text-green-400",children:c})}),(0,l.jsxs)("div",{className:"flex flex-col w-full gap-3 pt-6 sm:pt-10 sm:gap-4",children:[(0,l.jsx)(H.pd,{placeholder:"Email Address or Username",type:"text",className:"w-full !shadow-none !bg-[#A3A3A30D] border-[#FFFFFF14] border placeholder:text-[#FFFFFF40]",label:"Email Address or Username",value:r.identifier,onChange:e=>g("identifier",e.target.value)}),(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mb-2.5",children:[(0,l.jsx)("label",{className:"text-[#FFFFFFBF] lg:text-sm text-base font-light leading-[160%] text-left",children:"Password"}),t&&(0,l.jsx)(H.$n,{buttonType:"bare",size:"sm",className:"underline text-primary hover:text-primary/80",onClick:t,children:"Forgot Password?"})]}),(0,l.jsx)(H.pd,{placeholder:"Password",type:"password",className:"w-full !shadow-none !bg-[#A3A3A30D] border-[#FFFFFF14] border placeholder:text-[#FFFFFF40]",value:r.password,onChange:e=>g("password",e.target.value)})]}),(0,l.jsx)(H.$n,{buttonType:"primary",size:"md",fullWidth:!0,onClick:w,disabled:p,isLoading:p,loadingText:"Signing in...",children:"Sign in"})]}),(0,l.jsx)(ed,{providers:x,onOAuthLogin:v,isLoading:f,type:"login"}),(0,l.jsx)("div",{})]})};var em=s(59645),eh=s(58899);let ex=eh.Ikc({email:eh.YjP().min(1,"Email is required").email("Please enter a valid email address"),password:eh.YjP().min(8,"Password must be at least 8 characters long").regex(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/,"Password must contain at least one uppercase letter, one lowercase letter, and one number"),firstName:eh.YjP().min(1,"First name is required").max(50,"First name must be less than 50 characters").optional(),lastName:eh.YjP().min(1,"Last name is required").max(50,"Last name must be less than 50 characters").optional()});eh.Ikc({email:eh.YjP().min(1,"Email is required").email("Please enter a valid email address"),password:eh.YjP().min(8,"Password must be at least 8 characters long").regex(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/,"Password must contain at least one uppercase letter, one lowercase letter, and one number"),username:eh.YjP().min(3,"Username must be at least 3 characters long").max(30,"Username must be less than 30 characters").regex(/^[a-zA-Z0-9_]+$/,"Username can only contain letters, numbers, and underscores"),company:eh.YjP().min(1,"Company name is required").max(100,"Company name must be less than 100 characters"),website:eh.YjP().min(1,"Website URL is required").url("Please enter a valid website URL"),firstName:eh.YjP().min(1,"First name is required").max(50,"First name must be less than 50 characters").optional(),lastName:eh.YjP().min(1,"Last name is required").max(50,"Last name must be less than 50 characters").optional()}),eh.Ikc({identifier:eh.YjP().min(1,"Email or username is required"),password:eh.YjP().min(1,"Password is required")}),eh.Ikc({identifier:eh.YjP().min(1,"Email or username is required")}),eh.Ikc({token:eh.YjP().min(1,"Reset token is required"),identifier:eh.YjP().min(1,"Email or username is required"),password:eh.YjP().min(8,"Password must be at least 8 characters long").regex(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/,"Password must contain at least one uppercase letter, one lowercase letter, and one number")}),eh.Ikc({currentPassword:eh.YjP().min(1,"Current password is required"),newPassword:eh.YjP().min(8,"Password must be at least 8 characters long").regex(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/,"Password must contain at least one uppercase letter, one lowercase letter, and one number"),confirmPassword:eh.YjP().min(1,"Please confirm your password")}).refine(e=>e.newPassword===e.confirmPassword,{message:"Passwords don't match",path:["confirmPassword"]}),eh.Ikc({newPassword:eh.YjP().min(8,"Password must be at least 8 characters long").regex(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/,"Password must contain at least one uppercase letter, one lowercase letter, and one number"),confirmPassword:eh.YjP().min(1,"Please confirm your password")}).refine(e=>e.newPassword===e.confirmPassword,{message:"Passwords don't match",path:["confirmPassword"]});let ep=e=>{let{onSwitchToSignin:t,onSignupSuccess:s}=e,[n]=(0,h.useState)("user"),[r,a]=(0,h.useState)(!1),[i,o]=(0,h.useState)({email:"",username:"",password:"",firstName:"",lastName:""}),[c,u]=(0,h.useState)(""),[m,x]=(0,h.useState)(""),{signup:p,loginWithOAuth:f,oauthProviders:g,requestEmailVerification:w,isSigningUp:v,isLoggingInWithOAuth:C}=(0,q.k5)(),j=(0,em.X)(ex),F=(e,t)=>{o(s=>({...s,[e]:t})),u(""),j.setFieldError(e,"")},b=async()=>{let e={email:i.email,password:i.password,firstName:i.firstName||void 0,lastName:i.lastName||void 0};if(j.validate(e))try{let t=await p({...e,username:i.username});t.success?(await w()).success?(x("Account created successfully! Please check your email and click the verification link to activate your account."),s&&setTimeout(()=>{s()},1e3)):u("Account created but failed to send verification email. Please try logging in."):u(t.error||"Signup failed")}catch(e){u("An unexpected error occurred")}},y=async e=>{try{(0,ea.GN)({redirectTo:window.location.pathname,provider:e});let t=await f(e);t.success||u(t.error||"OAuth signup failed")}catch(e){u("An unexpected error occurred")}};return(0,l.jsxs)("div",{className:"relative flex flex-col gap-3 items-center justify-center bg-[#1A1A1A] pt-6 sm:pt-8 lg:pt-10 px-4 sm:px-6 lg:px-25 overflow-y-auto h-full",children:[(0,l.jsx)("h1",{className:"text-white text-xl sm:text-2xl font-medium leading-[normal]",children:"Signup"}),(0,l.jsxs)("p",{className:"text-[#FFFFFFBF] text-sm font-light leading-[160%] text-center px-4",children:["Already have an account?"," ",(0,l.jsx)(H.$n,{buttonType:"bare",size:"sm",className:"text-primary hover:text-primary/80",onClick:t,children:"Sign in here"})]}),c&&(0,l.jsx)(ei,{error:c}),m&&(0,l.jsx)("div",{className:"w-full p-3 border rounded-lg bg-green-500/10 border-green-500/20",children:(0,l.jsx)("p",{className:"text-sm text-center text-green-400",children:m})}),"user"===n&&!r&&(0,l.jsxs)("div",{className:"w-full pt-6 space-y-3 sm:pt-8 sm:space-y-4",children:[(0,l.jsx)(H.pd,{placeholder:"Email Address",type:"email",className:"w-full !shadow-none !bg-[#A3A3A30D] border-[#FFFFFF14] border placeholder:text-[#FFFFFF40]",label:"Email Address",value:i.email,onChange:e=>F("email",e.target.value),error:j.getFieldError("email")}),(0,l.jsx)(H.$n,{buttonType:"primary",size:"md",fullWidth:!0,className:"mt-2 sm:mt-3",onClick:()=>i.email?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i.email)?void(a(!0),u("")):void u("Please enter a valid email address"):void u("Please enter your email address"),children:"Next"}),(0,l.jsx)(ed,{providers:g,onOAuthLogin:y,isLoading:C,type:"signup"})]}),"user"===n&&r&&(0,l.jsxs)("div",{className:"w-full pt-6 space-y-3 sm:pt-8 sm:space-y-4",children:[(0,l.jsx)(H.pd,{placeholder:"Create a Username...",type:"text",className:"w-full !shadow-none !bg-[#A3A3A30D] border-[#FFFFFF14] border placeholder:text-[#FFFFFF40]",label:"Username",value:i.username,onChange:e=>F("username",e.target.value),error:j.getFieldError("username")}),(0,l.jsx)(H.pd,{placeholder:"Enter Password",type:"password",className:"w-full !shadow-none !bg-[#A3A3A30D] border-[#FFFFFF14] border placeholder:text-[#FFFFFF40]",label:"Password",value:i.password,onChange:e=>F("password",e.target.value),error:j.getFieldError("password")}),(0,l.jsx)("div",{className:"space-y-1 sm:space-y-2",children:(()=>{let e=(e=>({hasLowercase:/[a-z]/.test(e),hasUppercase:/[A-Z]/.test(e),hasNumber:/\d/.test(e),hasMinLength:e.length>=8}))(i.password);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[e.hasLowercase?(0,l.jsx)(en.H,{}):(0,l.jsx)(el.q,{}),(0,l.jsx)("span",{className:"text-[#FFFFFFBF] text-xs sm:text-sm",children:"At least one lowercase letter"})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[e.hasMinLength?(0,l.jsx)(en.H,{}):(0,l.jsx)(el.q,{}),(0,l.jsx)("span",{className:"text-[#FFFFFFBF] text-xs sm:text-sm",children:"Minimum 8 characters"})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[e.hasUppercase?(0,l.jsx)(en.H,{}):(0,l.jsx)(el.q,{}),(0,l.jsx)("span",{className:"text-[#FFFFFFBF] text-xs sm:text-sm",children:"At least one uppercase letter"})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[e.hasNumber?(0,l.jsx)(en.H,{}):(0,l.jsx)(el.q,{}),(0,l.jsx)("span",{className:"text-[#FFFFFFBF] text-xs sm:text-sm",children:"At least one number"})]})]})})()}),(0,l.jsx)(H.$n,{buttonType:"primary",fullWidth:!0,className:"mt-3",onClick:b,disabled:v,isLoading:v,loadingText:"Creating Account...",children:"Signup"}),(0,l.jsxs)("p",{className:"text-[#FFFFFFBF] text-xs text-left pt-3 sm:pt-4 px-2 sm:px-0",children:["By creating a Nollywood.com, you are agreeing to our"," ",(0,l.jsx)(d(),{href:"/terms",className:"text-[#72B13A]",children:"Terms of Use"})," ","and"," ",(0,l.jsx)(d(),{href:"/privacy",className:"text-[#72B13A]",children:"Privacy Policy"}
1),". You also agree to receive email and newsletters from Nollywood.com and can change your subscription preferences at any time."]})]}),(0,l.jsx)("div",{})]})},ef=e=>{var t;let{onClose:s,initialScreen:n}=e,r=(0,J.useSearchParams)(),a=(0,J.useRouter)(),i=(0,J.usePathname)(),o=r.get("modal"),[c,d]=(0,h.useState)(n||("signin"===o?"signin":"verify-email"===o?"verify-email":"signup")),[u,m]=(0,h.useState)(""),[,x]=(0,h.useState)([]),{isAuthenticated:p,isCheckingAuth:f}=(0,q.k5)(),{data:g}=(0,q.yj)(),w=(null==g||null==(t=g.me)?void 0:t.email)||"";(0,h.useEffect)(()=>{"signin"===o?(x([]),d("signin")):"signup"===o?(x([]),d("signup")):"verify-email"===o&&(x([]),d("verify-email"))},[o]);let v=(0,h.useRef)(r),C=(0,h.useRef)(i);(0,h.useEffect)(()=>{v.current=r,C.current=i},[r,i]);let j=(0,h.useCallback)(e=>{let t=new URLSearchParams(v.current.toString());"signin"===e||"signup"===e||"verify-email"===e?t.set("modal",e):t.delete("modal");let s=t.toString(),l=s?"".concat(C.current,"?").concat(s):C.current;a.replace(l)},[a]),F=(0,h.useCallback)(()=>{j(null),x([]),s()},[j,s]),b=(0,h.useCallback)(()=>{F()},[F]),y=(0,h.useCallback)(()=>{F()},[F]);(0,h.useEffect)(()=>{!f&&p&&"verify-email"!==c&&F()},[p,f,F,c]);let N=(0,h.useCallback)(()=>{x(e=>{if(0===e.length)return d("signup"),j("signup"),e;let t=[...e],s=t.pop();return d(s),"signin"===s||"signup"===s?j(s):j(null),t})},[j]);return(0,l.jsx)("div",{className:"fixed z-9999 top-0 left-0 bottom-0 right-0 flex justify-center bg-[#00000099] py-4 sm:py-8 lg:py-20 px-4 sm:px-6 lg:px-0",children:(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 h-[95vh] sm:h-[90vh] lg:h-[85vh] max-w-[1150px] w-full overflow-hidden rounded-lg relative",children:[(0,l.jsx)("button",{onClick:F,className:"absolute top-2 right-2 sm:top-4 sm:right-4 z-20 w-8 h-8 hover:bg-black/70 text-white rounded-full flex items-center justify-center transition-colors","aria-label":"Close",children:(0,l.jsx)(Q.Z,{className:"",stroke:"#C3C3C3"})}),(0,l.jsxs)("div",{className:"hidden lg:flex flex-col justify-between py-10 px-10 relative",children:[(0,l.jsx)("div",{className:"absolute top-0 bottom-0 left-0 w-full h-full z-0",children:(0,l.jsx)("img",{src:"https://res.cloudinary.com/seunsanyaa/image/upload/v1755891035/Frame_57306_2_rt4j06.webp",width:400,height:1e3,className:"w-full h-full object-cover",alt:"auth-image"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 z-10",children:[(0,l.jsx)("h2",{className:"text-[#FFFFFF] text-3xl font-medium leading-[normal] pr-42",children:"Join our active community of nollywood lovers today."}),(0,l.jsx)("div",{className:"w-[150px]",children:(0,l.jsx)("img",{src:"https://res.cloudinary.com/seunsanyaa/image/upload/v1755888603/Group_74_3_tpke9h.webp",width:100,height:10,className:"w-full h-full object-contain",alt:"auth-image"})})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 z-10",children:[(0,l.jsx)("h2",{className:"text-[#FFFFFF] text-lg font-medium leading-[normal]",children:"Benefits of Signing up"}),(0,l.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,l.jsx)("div",{className:"text-[#72B13A] text-sm font-light leading-[normal] py-1 px-3 rounded-md shrink-0",style:{background:"rgba(163, 163, 163, 0.05)"},children:"Leave Review & Comments"}),(0,l.jsx)("div",{className:"flex justify-center items-center text-[#72B13A] text-sm font-light leading-[175%] py-1 px-3 rounded-md shrink-0",style:{background:"rgba(163, 163, 163, 0.05)"},children:"Community Access"}),(0,l.jsx)("div",{className:"flex justify-center items-center text-[#72B13A] text-sm font-light leading-[normal] py-1 px-3 rounded-md shrink-0",style:{background:"rgba(163, 163, 163, 0.05)"},children:"Get to unlock rewards"})]})]})]}),(0,l.jsxs)("div",{className:"flex flex-col justify-center lg:justify-start relative",children:["signin"===c&&(0,l.jsx)(eu,{onForgotPassword:()=>{"forgot-password"!==c&&(x(e=>[...e,c]),j(null),d("forgot-password"))},onSwitchToSignup:()=>{x([]),d("signup"),j("signup")},onSigninSuccess:b}),"signup"===c&&(0,l.jsx)(ep,{onSwitchToSignin:()=>{x([]),d("signin"),j("signin")},onSignupSuccess:y}),"forgot-password"===c&&(0,l.jsx)(es,{onSuccess:e=>{m(e),x(e=>[...e,"forgot-password"]),d("reset-password"),j(null)}}),"reset-password"===c&&(0,l.jsx)(er,{email:u,onBack:N}),"verify-email"===c&&(0,l.jsx)(ee,{email:w||u,onBack:N,onSuccess:F})]})]})})};var eg=s(60113),ew=s(46268);let ev=[{name:"Movies",href:"/movies"},{name:"TV Series",href:"/tv-series"},{name:"Casting",href:"/casting"},{name:"People",href:"/people/full-directory"},{name:"News",href:"/news"},{name:"Coming Soon",href:"/coming-soon"},{name:"My List",href:"/watchlist"},{name:"Games",href:"/games"},{name:"Community",href:"/community"}],eC=()=>{let e=(0,J.useSearchParams)(),{openAuthModal:t}=(0,Y.Y)();return(0,h.useEffect)(()=>{let s=e.get("modal");s&&t(s)},[e,t]),null},ej=e=>{var t,s,c,x;let{className:p}=e,f=(0,u.Tp)("communities"),g=(0,u.Tp)("enable_games"),w=(0,u.Tp)(m.rC),v=(0,u.Tp)(m.mm),{isOpen:j,initialScreen:F,closeAuthModal:y,openAuthModal:N}=(0,Y.Y)(),L=(0,J.usePathname)(),k=(0,J.useRouter)(),E=(0,z.U4)(),[]=(0,h.useState)(null),{data:_}=(0,q.yj)(),{loading:B}=(0,q.op)(),[P,S]=(0,h.useState)(!1),[M,R]=(0,h.useState)(!1),[I,T]=(0,h.useState)(!1),[D,U]=(0,h.useState)(!1),Q=(0,h.useRef)(null),[ee,et]=(0,h.useState)(null),es=(0,h.useCallback)(async()=>{U(await (0,G.vR)())},[]);(0,h.useEffect)(()=>{es();let e=setInterval(es,3e5);return()=>clearInterval(e)},[L,es]),(0,h.useEffect)(()=>{let e=()=>{window.scrollY>50?T(!0):T(!1)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,h.useEffect)(()=>{let e=e=>{Q.current&&!Q.current.contains(e.target)&&S(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]),(0,h.useEffect)(()=>{let e=()=>{es()};return window.addEventListener("auth-change",e),()=>window.removeEventListener("auth-change",e)},[es]),(0,h.useEffect)(()=>{let e=()=>{N("verify-email")};return window.addEventListener("auth-email-verification-required",e),()=>window.removeEventListener("auth-email-verification-required",e)},[N]),(0,h.useEffect)(()=>
1{if(P){let e=window.scrollY;document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top="-".concat(e,"px"),document.body.style.width="100%"}else{let e=document.body.style.top;document.documentElement.style.overflow="",document.body.style.overflow="",document.body.style.position="",document.body.style.top="",document.body.style.width="",e&&window.scrollTo(0,-1*parseInt(e||"0"))}return()=>{document.documentElement.style.overflow="",document.body.style.overflow="",document.body.style.position="",document.body.style.top="",document.body.style.width=""}},[P]);let el=async()=>{await (0,G._i)(),k.push("/"),k.refresh()},en=e=>{D?S(!1):(e.preventDefault(),e.stopPropagation(),S(!1),setTimeout(()=>{N()},100))};return(0,l.jsxs)(l.Fragment,{children:[j&&(0,l.jsx)(ef,{onClose:y,initialScreen:F}),(0,l.jsx)(h.Suspense,{fallback:null,children:(0,l.jsx)(eC,{})}),(0,l.jsx)("div",{className:"fixed top-0 left-0 right-0 z-99 flex items-center justify-between w-full h-18 lg:h-22 transition-all duration-300 ".concat(I?"bg-black/70 backdrop-blur-xl shadow-lg":"bg-black"," ").concat(p||""),children:(0,l.jsxs)("div",{className:"flex items-center justify-between w-full transition-all duration-300 xl:mx-auto xl:max-w-[1600px] px-4 lg:px-16 ",children:[(0,l.jsxs)("div",{className:"flex items-center w-48 gap-2 sm:gap-4 md:w-54 lg:w-65 xl:w-77",children:[(0,l.jsx)("div",{className:"flex sm:hidden",children:(0,l.jsx)("button",{onClick:()=>R(!0),"aria-label":"Open search",children:(0,l.jsx)(Z,{className:"w-5 h-5",fill:"white"})})}),(0,l.jsx)(d(),{href:"/","aria-label":"Nollywood home",children:(0,l.jsx)(o,{className:"h-5 sm:h-6 lg:h-auto"})})]}),(0,l.jsx)("div",{className:"hidden max-md:w-[40%] sm:mr-auto sm:block xl:block",children:(0,l.jsx)(eg.v,{})}),(0,l.jsxs)("div",{className:"items-center hidden gap-4 xl:flex xl:gap-6",children:[(0,l.jsx)("div",{className:"flex items-center gap-4 lg:gap-6 xl:gap-6",children:ev.filter(e=>"My List"!==e.name&&"News"!==e.name&&"Coming Soon"!==e.name&&("Community"!==e.name||f)&&("Games"!==e.name||g)&&("Casting"!==e.name||v)).map((e,t)=>{let s="/"===e.href?"/"===L:L===e.href||L.startsWith("".concat(e.href,"/"));return"People"===e.name?(0,l.jsx)(d(),{href:"/people",className:"text-base flex items-center gap-0.5 leading-[100%] transition-colors ".concat(s?"text-[#72B13A] font-medium":"text-white font-light hover:text-[#72B13A]"),children:e.name},t):(0,l.jsx)(d(),{href:e.href,className:"text-base flex items-center gap-0.5 leading-[100%] transition-colors ".concat(s?"text-[#72B13A] font-medium":"text-white font-light hover:text-[#72B13A]"),onClick:"My List"===e.name?en:void 0,children:"My List"===e.name?(0,l.jsxs)("div",{className:"flex items-center gap-0.5",children:[e.name,D&&(0,l.jsx)(A.$,{className:"flex items-center justify-center px-2 leading-[100%] rounded-full font-medium text-sm ml-2",style:"green",children:B?"0":null==_?void 0:_.me.watchListCount})]}):e.name},t)})}),D?(0,l.jsxs)("div",{className:"flex items-center gap-3 lg:gap-4",children:[(0,l.jsx)(W.f,{}),(0,l.jsxs)($.W,{menuButton:(0,l.jsx)(X.I,{className:"flex items-center w-12 h-12 gap-3",children:(null==_?void 0:_.me.profilePictureUrl)?(0,l.jsx)("img",{src:_.me.profilePictureUrl.length>0?_.me.profilePictureUrl:"https://res.cloudinary.com/seunsanyaa/image/upload/v1757594637/Frame_57493_al6c53.png",alt:"Profile",width:32,height:32,className:"object-cover w-8 h-8 rounded-full"}):(0,l.jsx)("div",{className:"w-10 h-10 rounded-full bg-[#72B13A] flex items-center justify-center",children:(0,l.jsx)("span",{className:"text-sm font-medium text-white",children:(null==_||null==(t=_.me.firstName)?void 0:t[0])||(null==_||null==(s=_.me.username)?void 0:s[0])||"U"})})}),transition:!0,menuClassName:"!bg-[#151515] !border !border-[#FFFFFF0D] !rounded-lg !shadow-[0_1px_2px_rgba(255,255,255,0.08)_inset] !min-w-34",children:[(0,l.jsx)(K.D,{className:"!text-[#FFFFFFBF] hover:!text-white !text-xs !font-light !leading-[100%] !px-2 !py-2.5 !hover:bg-[#72B13A] w-full",onClick:()=>k.push("/profile"),children:"Profile"}),w&&(0,l.jsx)(K.D,{className:"!text-[#FFFFFFBF] hover:!text-white !text-xs !font-light !leading-[100%] !px-2 !py-2.5 !hover:bg-[#72B13A] w-full",onClick:()=>k.push("/talent"),children:(0,l.jsxs)("span",{className:"flex items-center justify-between w-full gap-1",children:["Talent Profiles",(0,l.jsx)(H.ab,{variant:"primary",size:"sm",className:"bg-[#72B13A] text-white text-[9px] font-semibold leading-none px-1.5 py-0.5 rounded-full tracking-wide border-none",children:"NEW"})]})}),(0,l.jsx)(K.D,{className:"!text-[#FFFFFFBF] hover:!text-white !text-xs !font-light !leading-[100%] !px-2 !py-2.5 !hover:bg-[#72B13A] w-full",onClick:()=>k.push("/watchlist"),children:(0,l.jsxs)("span",{className:"flex items-center justify-between w-full gap-2",children:["My List",!B&&(null==_?void 0:_.me.watchListCount)!==void 0&&(0,l.jsx)("span",{className:"bg-[#72B13A] text-white text-[10px] leading-none px-1.5 py-0.5 rounded-full",children:_.me.watchListCount})]})}),(0,l.jsx)(K.D,{className:"!text-[#FFFFFFBF] hover:!text-white !text-xs !font-light !leading-[100%] !px-2 !py-2.5 !hover:bg-[#72B13A] w-full",onClick:()=>k.push("/settings"),children:"Settings"}),(0,l.jsx)(K.D,{className:"!text-[#FFFFFFBF] hover:!text-white !text-xs !font-light !leading-[100%] !px-2 !py-2.5 !hover:bg-[#72B13A]",onClick:el,children:"Sign Out"})]})]}):(0,l.jsx)("button",{className:"text-white ml-7 text-base font-light leading-[175%] bg-[#72B13A] px-5 py-1.5 rounded-lg hover:bg-[#5A9A2E] transition-colors",onClick:N,children:"Sign In"})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2 xl:hidden sm:gap-3",children:[D?(0,l.jsxs)($.W,{menuButton:(0,l.jsx)(X.I,{className:"flex items-center",children:(null==_?void 0:_.me.profilePictureUrl)?(0,l.jsx)("img",{src:_.me.profilePictureUrl,alt:"Profile",width:32,height:32,className:"object-cover w-8 h-8 rounded-full"}):(0,l.jsx)("div",{className:"w-8 h-8 rounded-full bg-[#72B13A] flex items-center justify-center",children:(0,l.jsx)("span",{className:"text-xs font-medium text-white",children:(null==_||null==(c=_.me.firstName)?void 0:c[0])||(null==_||null==(x=_.me.username)?void 0:x[0])||"U"})})}),transition:!0,menuClassName:"!bg-[#151515] !border !border-[#FFFFFF0D] !rounded-lg !shadow-[0_1px_2px_rgba(255,255,255,0.08)_inset] !p-2 !min-w-32",children:[(0,l.jsx)(K.D,{className:"!text-[#FFFFFFBF] hover:!text-white !text-sm !font-light !leading-[100%] !px-2 !py-2 !hover:bg-[#72B13A] w-full",onClick:()=>k.push("/profile"),children:"Profile"}),w&&(0,l.jsx)(K.D,{className:"!text-[#FFFFFFBF] hover:!text-white !text-sm !font-light !leading-[100%] !px-1 !py-2 !hover:bg-[#72B13A] w-full",onClick:()=>k.push("/talent"),children:(0,l.jsxs)("span",{className:"flex items-center justify-between w-full gap-1",children:["Talent Profiles",(0,l.jsx)("span",{className:"bg-[#72B13A] w-1.5 h-1.5 rounded-full"})]})}),(0,l.jsx)(K.D,{className:"!text-[#FFFFFFBF] hover:!text-white !text-sm !font-light !leading-[100%] !px-2 !py-2 !hover:bg-[#72B13A] w-full",onClick:()=>k.push("/settings"),children:"Settings"}),(0,l.jsx)(K.D,{className:"!text-[#FFFFFFBF] hover:!text-white !text-sm !font-light !leading-[100%] !px-2 !py-2 !hover:bg-[#72B13A] w-full",onClick:el,children:"Sign Out"})]}):(0,l.jsx)("button",{className:"text-white text-sm font-light bg-[#72B13A] px-3 py-2 rounded-lg hover:bg-[#5A9A2E] transition-colors",onClick:N,children:"Sign In"}),D&&(0,l.jsxs)(d(),{href:"/notifications",className:"relative p-2","aria-label":E>0?"Notifications, ".concat(E>99?"99+":E," unread"):"Notifications",children:[(0,l.jsx)(O.I,{className:"w-5 h-5",stroke:"white"}),E>0&&(0,l.jsx)("span",{className:"absolute -top-0.5 -right-0.5 bg-red-500 text-white text-[10px] font-medium min-w-[18px] h-[18px] flex items-center justify-center rounded-full px-1",children:E>99?"99+":E})]}),(0,l.jsx)("button",{className:"p-2 relative z-80 transition-opacity duration-200 ".concat(P||M?"opacity-0 pointer-events-none":"opacity-100"),onClick:()=>S(!0),"aria-label":"Toggle mobile menu",children:(0,l.jsx)(V,{className:"w-6 h-6",stroke:"white"})})]})]})}),P&&(0,l.jsxs)("div",{className:"fixed inset-0 h-full w-full bg-[#1a1a1a] transform transition-transform duration-300 ease-in-out z-[1000] xl:hidden overflow-y-auto overscroll-contain",onClick:e=>e.stopPropagation(),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-[#333333]",children:[(0,l.jsx)("div",{className:"flex items-center gap-2",children:(0,l.jsx)(o,{className:""})}),(0,l.jsx)("button",{onClick:()=>S(!1),className:"p-2 text-white hover:text-gray-300","aria-label":"Close menu",children:(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(0,l.jsx)("div",{className:"flex flex-col p-6 space-y-6",children:ev.filter(e=>("Community"!==e.name||f)&&("Games"!==e.name||g)&&("Casting"!==e.name||v)).map((e,t)=>"People"===e.name?(0,l.jsx)(d(),{href:"/people",className:"text-white text-lg font-light hover:text-[#72B13A] transition-colors flex items-center justify-between",onClick:()=>S(!1),children:e.name},t):(0,l.jsxs)(d(),{href:e.href,className:"text-white text-lg font-light hover:text-[#72B13A] transition-colors flex items-center justify-between",onClick:t=>{"My List"===e.name?en(t):S(!1)},children:[(0,l.jsx)("span",{children:e.name}),"My List"===e.name&&D&&(0,l.jsx)("div",{className:"bg-[#72B13A] text-white text-xs px-2 py-1 rounded-full",children:B?"...":null==_?void 0:_.me.watchListCount})]},t))}),D?(0,l.jsx)("div",{className:"p-6 border-t border-[#333333]",children:(0,l.jsx)("button",{type:"button",className:"w-full px-6 py-3 font-medium text-white transition-colors bg-red-600 rounded-lg hover:bg-red-700",onClick:()=>{S(!1),el()},children:"Sign Out"})}):(0,l.jsx)("div",{className:"p-6 border-t border-[#333333]",children:(0,l.jsx)("button",{className:"w-full bg-[#72B13A] text-white py-3 px-6 rounded-lg font-medium hover:bg-[#5A9A2E] transition-colors",onClick:()=>{S(!1),N()},children:"Sign Up"})}),C&&(0,l.jsxs)("div",{className:"p-6 border-t border-[#333333]",children:[(0,l.jsx)("h4",{className:"text-white font-medium text-lg mb-4",children:"Get the App"}),(0,l.jsx)(b,{variant:"menu"})]}),(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("div",{className:"flex items-center justify-center gap-10 pt-6 pb-[max(2rem,env(safe-area-inset-bottom))]",children:[(0,l.jsx)(d(),{href:"https://www.facebook.com/nollywoodcomm",className:"transition-transform duration-300 hover:scale-110","aria-label":"Follow us on Facebook",onMouseEnter:()=>et("facebook"),onMouseLeave:()=>et(null),children:(0,l.jsx)(n.f,{className:"w-6 h-6 transition-colors duration-300",fill:"facebook"===ee?"#72B13A":"#797979"})}),(0,l.jsx)(d(),{href:"https://www.youtube.com/@nollywoodcomm",className:"transition-transform duration-300 hover:scale-110","aria-label":"Follow us on YouTube",children:(0,l.jsx)(i.k,{className:"w-8 h-8 h-full transition-colors duration-300",fill:"youtube"===ee?"#72B13A":"#797979"})}),(0,l.jsx)(d(),{href:"https://www.instagram.com/nollywoodcom",className:"transition-transform duration-300 hover:scale-110","aria-label":"Follow us on Instagram",onMouseEnter:()=>et("instagram"),onMouseLeave:()=>et(null),children:(0,l.jsx)(r.p,{className:"w-6 h-6 transition-colors duration-300",fill:"instagram"===ee?"#72B13A":"#797979"})}),(0,l.jsxs)(d(),{href:"https://x.com/nollywoodcom",className:"transition-transform duration-300 hover:scale-110","aria-label":"Follow us on X",onMouseEnter:()=>et("x"),onMouseLeave:()=>et(null),children:[(0,l.jsx)(a.X,{className:"w-5 h-5 transition-colors duration-300",fill:"x"===ee?"#72B13A":"#797979"})," "]})]})})]}),M&&(0,l.jsx)("div",{className:"fixed inset-0 bg-black/90 z-[60] sm:hidden",onClick:()=>R(!1),children:(0,l.jsxs)("div",{className:"fixed top-0 left-0 right-0 h-screen bg-[#1a1a1a] p-4 z-[60]",onClick:e=>e.stopPropagation(),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,l.jsx)(ew.g,{title:(0,l.jsx)("h1",{className:"text-[#FFFFFF] text-lg font-normal leading-[normal]",children:"Search Nollywood.com"})}),(0,l.jsx)("button",{onClick:()=>R(!1),className:"p-2 text-white","aria-label":"Close search",children:(0,l.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4",children:[(0,l.jsx)("path",{d:"M1 21.2852L21.2858 0.999387",stroke:"white"}),(0,l.jsx)("path",{d:"M1 1L21.2858 21.2858",stroke:"white"})]})})]}),(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(eg.v,{onSuggestionClick:()=>R(!1)})})]})})]})};function eF(){return(0,l.jsx)("div",{className:"w-screen relative border-t border-[#3b3b3b] left-1/2 -translate-x-1/2 overflow-hidden pointer-events-none",children:(0,l.jsx)("img",{src:"/images/Vector.svg",alt:"Vector-Grid-Image",className:"w-full h-[40px] lg:h-[165px] object-cover object-bottom opacity-20 block"})})}var eb=s(63998);let ey=e=>{let{show:t,onClose:s}=e,[n,r]=(0,h.useState)(!1),a=(0,u.ck)("maintenance_config"),i=a?"string"==typeof a?JSON.parse(a):a:null,o=i?((e,t)=>
1{let s=new Date(e),l=new Date(t),n=s.toLocaleDateString("en-US",{month:"short",day:"numeric"}),r=l.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"});return"".concat(n," - ").concat(r)})(i.from,i.to):"further notice",c=(null==i?void 0:i.message)||"We are currently undergoing maintenance.";return t?(0,l.jsx)("div",{className:"w-screen bg-yellow-400/90 backdrop-blur-md fixed top-0 z-[999] md:h-12 h-14",children:(0,l.jsxs)("div",{className:"w-full max-w-400 mx-auto flex items-center justify-between px-4 lg:px-16 h-full",children:[(0,l.jsxs)("div",{className:"flex-1 flex justify-center items-center px-2 relative",children:[(0,l.jsxs)("p",{className:"text-[10px] md:text-xs font-medium text-black max-md:line-clamp-2",children:["\uD83D\uDEA7 Maintenance in progress"," ",(0,l.jsxs)("span",{className:"font-semibold",children:["(",o,")"]})," â"," ",(0,l.jsx)("span",{className:"underline cursor-pointer",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:()=>r(e=>!e),children:"Read more"})]}),n&&(0,l.jsx)("div",{className:"absolute top-full mt-1 left-1/2 -translate-x-1/2 w-75 md:w-137.5 p-3 bg-yellow-400 text-black text-base! font-semibold rounded shadow-lg whitespace-normal z-10",children:c})]}),(0,l.jsx)("div",{className:"w-8 shrink-0 flex justify-end",children:(0,l.jsx)(H.K0,{onClick:s,buttonType:"tertiary",className:"hover:bg-black/10 cursor-pointer !p-1",icon:(0,l.jsx)(eb.A,{className:"w-4 h-4 text-black"}),"aria-label":"Close maintenance banner"})})]})}):null},eN=["/studio"],eL=[/^\/community\/[^/]+$/,/^\/community\/post\/[^/]+$/,/^\/news\/[^/]+$/,/^\/apps\/?$/],ek=["/profile",/^\/community\/[^/]+$/,/^\/community\/post\/[^/]+$/,/^\/news\/[^/]+$/,/^\/apps\/?$/],eA=["/community",/^\/lists\/[^/]+$/,/^\/apps\/?$/];function eE(e,t){return t.some(t=>"string"==typeof t?e.startsWith(t):t.test(e))}function e_(e){let{children:t}=e,s=(0,J.usePathname)(),n=eE(s,eN),r=eE(s,eL),a=eE(s,ek),i=eE(s,eA),o="/games"===s,c=(0,u.Tp)(m.f_),[d,x]=(0,h.useState)(!0),[p,f]=(0,h.useState)(!1);(0,h.useEffect)(()=>{x("true"===localStorage.getItem("maintenance_banner_closed")),f(!0)},[]),(0,h.useEffect)(()=>{!1===c&&(x(!1),localStorage.removeItem("maintenance_banner_closed"))},[c]);let g=p&&!!c&&!d;return n?(0,l.jsx)(l.Fragment,{children:t}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ec.l$,{}),(0,l.jsx)(ey,{show:g,onClose:()=>{x(!0),localStorage.setItem("maintenance_banner_closed","true")}}),(0,l.jsx)(ej,{className:"transition-[top] duration-300 ease-in-out ".concat(g?"md:top-12 top-14":"top-0")}),(0,l.jsx)("div",{className:"\n ".concat(a?"px-0":"px-4"," ").concat(!r?"xl:mx-auto xl:max-w-400 lg:px-16":"","\n transition-[padding] duration-300 ease-in-out\n ").concat(g?"pt-32 md:pt-34":"pt-18 lg:pt-22","\n "),children:(0,l.jsx)("div",{className:"".concat(i?"":"base-container-padding"),children:t})}),o&&(0,l.jsx)(eF,{}),(0,l.jsx)(N,{}),(0,l.jsx)(B,{}),(0,l.jsx)(M,{}),(0,l.jsx)(U,{})]})}},79158:(e,t,s)=>{"use strict";s.d(t,{f:()=>n});var l=s(13514);let n=e=>{let{className:t,fill:s="white"}=e;return(0,l.jsx)("svg",{width:"31",height:"30",viewBox:"0 0 31 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,l.jsx)("path",{d:"M26.5355 0H4.62072C2.3881 0 0.578125 1.80989 0.578125 4.04256V25.9573C0.578125 28.19 2.38803 29.9999 4.62072 29.9999H15.429L15.4474 19.2795H12.6622C12.3003 19.2795 12.0065 18.9869 12.0051 18.6249L11.9918 15.1693C11.9904 14.8054 12.285 14.5096 12.6489 14.5096H15.429V11.1706C15.429 7.29576 17.7956 5.18587 21.2522 5.18587H24.0887C24.4516 5.18587 24.7459 5.48008 24.7459 5.84305V8.75684C24.7459 9.11967 24.4518 9.4138 24.0891 9.41402L22.3484 9.41483C20.4685 9.41483 20.1045 10.3081 20.1045 11.619V14.5097H24.2352C24.6288 14.5097 24.9341 14.8534 24.8878 15.2442L24.4782 18.6998C24.439 19.0305 24.1586 19.2797 23.8256 19.2797H20.1229L20.1045 30H26.5356C28.7682 30 30.5781 28.1901 30.5781 25.9575V4.04256C30.5781 1.80989 28.7682 0 26.5355 0Z",fill:s})})}},83077:(e,t,s)=>{"use strict";s.d(t,{K:()=>y,S:()=>b});var l=s(16204),n=s(26591),r=s(95770),a=s(72873),i=s(88421),o=s(70175),c=s(43671),d=s(9556),u=s(26228),m=s(5180),h=s(64676),x=s(27389),p=s(48734),f=s(28878),g=s(88919),w=s(16699);let v=new a.P({uri:(()=>{var e;return(()=>{var e;if((null==(e=window.__RUNTIME_CONFIG__)?void 0:e.USE_GRAPHQL_PROXY)!==void 0)return!0===window.__RUNTIME_CONFIG__.USE_GRAPHQL_PROXY;let t=w.env.NEXT_PUBLIC_USE_GRAPHQL_PROXY;return void 0===t||"true"===t}
1)()?"/api/graphql":(null==(e=window.__RUNTIME_CONFIG__)?void 0:e.GRAPHQL_ENDPOINT)?window.__RUNTIME_CONFIG__.GRAPHQL_ENDPOINT:w.env.NEXT_PUBLIC_GRAPHQL_ENDPOINT||"https://gateway.staging.nollywood.com/graphql"})(),fetch:fetch}),C=(0,h.o)(async(e,t)=>{let{headers:s}=t,n={"x-graphql-client-name":r.e,"x-graphql-client-version":(0,r.s)()};try{let e=await (0,l.uX)();return{headers:{...s,...n,authorization:e?"Bearer ".concat(e):""}}}catch(e){return console.error("Error getting valid access token:",e),{headers:{...s,...n}}}}),j=new x.L(e=>{let{error:t,operation:s,forward:n}=e;if(!m.K.is(t))return void console.error("[Network error]:",t);for(let{extensions:e}of t.errors){if((null==e?void 0:e.type)===g.wU.EmailNotVerified)return void window.dispatchEvent(new Event("auth-email-verification-required"));if((null==e?void 0:e.type)===g.wU.TokenExpired){let e=s.getContext();if(e.__authRetried){(0,l.ri)(),window.location.reload();return}return s.setContext({...e,__authRetried:!0}),new i.c(e=>{(0,l.J1)().then(l=>{if(!l){window.location.reload(),e.error(t);return}n(s).subscribe({next:t=>e.next(t),error:t=>e.error(t),complete:()=>e.complete()})})})}if((null==e?void 0:e.type)==="auth/unauthenticated"){(0,l.ri)(),window.location.reload();return}}}),F=new o.C((e,t)=>{let s=e.query.definitions[0];if((null==s?void 0:s.kind)!=="OperationDefinition"||"mutation"!==s.operation)return t(e);let l=e.operationName;return l&&n._W.has(l)||!p.Ay.__loaded?t(e):p.Ay.isFeatureEnabled(n.f_)?(f.Ay.error("\uD83D\uDEA7 Service temporarily unavailable for maintenance"),new i.c(e=>{e.next({data:null,errors:[n.PJ]}),e.complete()})):t(e)}),b=new c.R({link:(0,d.H)([F,j,C,v]),cache:new u.D({typePolicies:{UserBadge:{keyFields:!1},Query:{fields:{movies:{keyArgs:!1,merge(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return[...e,...t]}},people:{keyArgs:!1,merge(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return[...e,...t]}}}}}}),defaultOptions:{watchQuery:{errorPolicy:"all"},query:{errorPolicy:"all"}}}),y=()=>b},89740:(e,t,s)=>{"use strict";s.d(t,{PushNotificationInitializer:()=>m});var l=s(15138),n=s(13638),r=s(57390),a=s(12232),i=s(26591),o=s(16204),c=s(25493),d=s(72774),u=s(16699);function m(){let e=(0,n.Tp)(i.po),t=(0,l.useRef)(null),[s]=(0,r.n)(c.W),[m]=(0,r.n)(c.j),h=(0,l.useRef)(s);(0,l.useEffect)(()=>{h.current=s},[s]);let x=(0,l.useRef)(m);return(0,l.useEffect)(()=>{x.current=m},[m]),(0,l.useEffect)(()=>{if(!e||!(0,a.jV)()||!(0,o.t6)()||"granted"!==Notification.permission)return;(0,a.jD)()||(0,a.jK)(function(){let e=window.__RUNTIME_CONFIG__;return{firebaseConfig:{apiKey:(null==e?void 0:e.FIREBASE_API_KEY)||u.env.NEXT_PUBLIC_FIREBASE_API_KEY||"",authDomain:(null==e?void 0:e.FIREBASE_AUTH_DOMAIN)||u.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN||"",projectId:(null==e?void 0:e.FIREBASE_PROJECT_ID)||u.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID||"",storageBucket:(null==e?void 0:e.FIREBASE_STORAGE_BUCKET)||u.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET||"",messagingSenderId:(null==e?void 0:e.FIREBASE_MESSAGING_SENDER_ID)||u.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID||"",appId:(null==e?void 0:e.FIREBASE_APP_ID)||u.env.NEXT_PUBLIC_FIREBASE_APP_ID||""},vapidKey:(null==e?void 0:e.FIREBASE_VAPID_KEY)||u.env.NEXT_PUBLIC_FIREBASE_VAPID_KEY||""}}());let s=!1,l=async()=>{let e=(0,a.pZ)();if(!e)return;let t=await (0,a.TV)();if(t&&!s&&t!==e){try{await x.current({variables:{input:{deviceToken:e}}})}catch(e){}try{await h.current({variables:{input:{deviceToken:t,platform:d.U.WEB,deviceName:navigator.userAgent}}}),(0,a.aF)(t)}catch(e){}}};return(async()=>{let e=await (0,a.UV)(e=>{if(e.notification&&"granted"===Notification.permission){let{title:t,body:s,icon:l}
1=e.notification;new Notification(t||"Nollywood",{body:s||"",icon:l||"/icons/icon-192x192.png"})}});!s&&e&&(t.current=e)})(),l(),()=>{s=!0,t.current&&(t.current(),t.current=null)}},[e]),(0,l.useEffect)(()=>{let e=async()=>{let e=(0,a.pZ)();if(e){try{await x.current({variables:{input:{deviceToken:e}}})}catch(e){}(0,a.jD)()&&await (0,a.Rt)()}};return window.addEventListener("pre-logout",e),()=>window.removeEventListener("pre-logout",e)},[]),null}},91762:(e,t,s)=>{"use strict";s.d(t,{e:()=>c,y:()=>h});var l=s(13514),n=s(8883),r=s(72644),a=s(15138),i=s(94273);let o=(0,a.createContext)(void 0);function c(e){let{children:t}=e,[s,n]=(0,a.useState)(null),i=(0,a.useCallback)(e=>n(e),[]),c=(0,a.useCallback)(()=>n(null),[]),d=(0,a.useMemo)(()=>({current:s,openVideo:i,closeVideo:c}),[s,i,c]);return(0,l.jsxs)(o.Provider,{value:d,children:[t,(0,l.jsx)(r.aF,{open:null!==s,onClose:c,variant:"bare",title:null==s?void 0:s.title,className:"max-w-[95vw] md:max-w-5xl",children:s&&(0,l.jsx)(m,{video:s})})]})}let d=e=>{e&&window.matchMedia("(max-width: 767px) and (pointer: coarse)").matches&&!document.fullscreenElement&&("function"==typeof e.requestFullscreen?e.requestFullscreen().catch(()=>{}):"function"==typeof e.webkitEnterFullscreen?e.webkitEnterFullscreen():"function"==typeof e.webkitRequestFullscreen&&e.webkitRequestFullscreen())};function u(e){let{video:t}=e,n=(0,a.useRef)(null),[r,i]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{let e=n.current;if(!e)return;i(!1);let l=()=>void e.play().catch(()=>{});if(!t.url.split("?")[0].endsWith(".m3u8")){e.src=t.url,l();return}let r=null,a=!1;return s.e(463).then(s.bind(s,55739)).then(s=>{let o=s.default;if(a||!n.current)return;if(!o.isSupported())return void(e.canPlayType("application/vnd.apple.mpegurl")?(e.src=t.url,l()):i(!0));let c=new o;r=c,c.on(o.Events.MANIFEST_PARSED,l),c.on(o.Events.ERROR,(e,s)=>{s.fatal&&(console.error("[video] fatal HLS error",s.type,s.details,t.url),i(!0))}),c.loadSource(t.url),c.attachMedia(n.current)}).catch(e=>{console.error("[video] could not load hls.js",e),a||i(!0)}),()=>{a=!0,null==r||r.destroy()}},[t.url]),r)?(0,l.jsx)("div",{className:"flex items-center justify-center w-full text-sm text-white/70 aspect-video rounded-lg bg-black",children:"This video canât be played in this browser."}):(0,l.jsx)("div",{className:"relative w-full overflow-hidden rounded-lg aspect-video bg-black",children:(0,l.jsx)("video",{ref:n,poster:t.poster,controls:!0,playsInline:!0,onPlay:e=>d(e.currentTarget),onError:()=>{console.error("[video] element failed to load",t.url),i(!0)},className:"absolute inset-0 w-full h-full"})})}function m(e){let{video:t}=e;if("upload"===t.source)return(0,l.jsx)(u,{video:t});let s=(0,n.Wb)(t.url);return s?(0,l.jsx)("div",{className:"relative w-full overflow-hidden rounded-lg aspect-video bg-black",children:(0,l.jsx)(i.A,{videoId:s,className:"absolute top-0 left-0 w-full h-full youtube-video",onPlay:e=>d(e.target.getIframe()),opts:{playerVars:{autoplay:1,modestbranding:1,rel:0}}})}):(0,l.jsx)("div",{className:"flex items-center justify-center w-full text-sm text-white/70 aspect-video rounded-lg bg-black",children:"This video canât be played here."})}function h(){let e=(0,a.useContext)(o);if(void 0===e)throw Error("useVideoPlayer must be used within a VideoPlayerProvider");return e}},94369:(e,t,s)=>{"use strict";s.d(t,{k:()=>n});var l=s(13514);let n=e=>{let{className:t,fill:s="white"}=e;return(0,l.jsx)("svg",{width:"38",height:"26",viewBox:"0 0 38 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.1181 0.96375C34.6963 1.39079 35.9291 2.62357 36.3561 4.20172C37.5645 9.06571 37.2853 16.7477 36.3796 21.7994C35.9525 23.3775 34.7197 24.6103 33.1416 25.0373C30.3025 25.8116 18.8758 25.8116 18.8758 25.8116C18.8758 25.8116 7.44902 25.8116 4.60993 25.0373C3.03178 24.6103 1.799 23.3775 1.37196 21.7994C0.156546 16.9565 0.489728 9.26984 1.34849 4.22518C1.77553 2.64704 3.00832 1.41425 4.58646 0.987214C7.42555 0.212917 18.8523 0.189453 18.8523 0.189453C18.8523 0.189453 30.279 0.189453 33.1181 0.96375ZM24.6947 13.0006L15.2155 18.4911V7.51017L24.6947 13.0006Z",fill:s})})}},94622:(e,t,s)=>{"use strict";s.d(t,{A:()=>n,a:()=>l});var l=function(e){return e.SYSTEM="SYSTEM",e.SECURITY="SECURITY",e.REVIEW="REVIEW",e.MODERATION="MODERATION",e.COMMUNITY="COMMUNITY",e.GAMIFICATION="GAMIFICATION",e}({}),n=function(e){return e.LOW="LOW",e.NORMAL="NORMAL",e.HIGH="HIGH",e.URGENT="URGENT",e}({})},98586:(e,t,s)=>{"use strict";s.d(t,{X:()=>n});var l=s(13514);let n=e=>{let{className:t,fill:s="white"}=e;return(0,l.jsx)("svg",{width:"25",height:"26",viewBox:"0 0 25 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,l.jsx)("path",{d:"M14.8059 11.0529L24.0672 0.287109H21.8724L13.831 9.63465L7.40812 0.287109H0L9.71262 14.4224L0 25.7118H2.19486L10.6871 15.8405L17.4699 25.7118H24.878L14.8053 11.0529H14.8059ZM11.7998 14.5468L10.8156 13.1393L2.98561 1.93932H6.35677L12.6754 10.9782L13.6594 12.3857L21.8734 24.1347H18.5026L11.7998 14.5474V14.5468Z",fill:s})})}}},e=>{e.O(0,[388,2005,5893,1512,4940,7001,8916,3121,451,8878,3638,9047,6325,9666,1907,3015,7241,2644,7571,356,2452,6547,2990,6059,7445,8766,5010,50,7358],()=>e(e.s=18832)),_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.