https://triviatango.app/_next/static/chunks/b6b7f1c738c19a75.js?dpl=dpl_48XzmxC4iN8WUP6uYmrQ84h1HQve
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,369620,e=>{"use strict";var t=e.i(271645),r={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=t.default.createContext&&t.default.createContext(r),o=["attr","size","title"];function l(){return(l=Object.assign.bind()).apply(null,arguments)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){var a,o,l;a=e,o=t,l=r[t],(o=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e){return r=>t.default.createElement(c,l({attr:n({},e.attr)},r),function e(r){return r&&r.map((r,a)=>t.default.createElement(r.tag,n({key:a},r.attr),e(r.child)))}(e.child))}function c(e){var i=r=>{var a,{attr:i,size:s,title:c}=e,d=function(e,t){if(null==e)return{};var r,a,o=function(e,t){if(null==e)return{};var r={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)r=l[a],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,o),u=s||r.size||"1em";return r.className&&(a=r.className),e.className&&(a=(a?a+" ":"")+e.className),t.default.createElement("svg",l({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,i,d,{className:a,style:n(n({color:e.color||r.color},r.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),c&&t.default.createElement("title",null,c),e.children)};return void 0!==a?t.default.createElement(a.Consumer,null,e=>i(e)):i(r)}function d(e){return s({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M352 144h112v112"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m48 368 121.37-121.37a32 32 0 0 1 45.26 0l50.74 50.74a32 32 0 0 0 45.26 0L448 160"},child:[]}]})(e)}function u(e){return s({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M456.69 421.39 362.6 327.3a173.81 173.81 0 0 0 34.84-104.58C397.44 126.38 319.06 48 222.72 48S48 126.38 48 222.72s78.38 174.72 174.72 174.72A173.81 173.81 0 0 0 327.3 362.6l94.09 94.09a25 25 0 0 0 35.3-35.3zM97.92 222.72a124.8 124.8 0 1 1 124.8 124.8 124.95 124.95 0 0 1-124.8-124.8z"},child:[]}]})(e)}function h(e){return s({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M133 440a35.37 35.37 0 0 1-17.5-4.67c-12-6.8-19.46-20-19.46-34.33V111c0-14.37 7.46-27.53 19.46-34.33a35.13 35.13 0 0 1 35.77.45l247.85 148.36a36 36 0 0 1 0 61l-247.89 148.4A35.5 35.5 0 0 1 133 440z"},child:[]}]})(e)}function m(e){return s({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function f(e){return s({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M416 128 192 384l-96-96"},child:[]}]})(e)}e.s(["IoCheckmark",()=>f,"IoClose",()=>m,"IoPlay",()=>h,"IoSearch",()=>u,"IoTrendingUp",()=>d],369620)},108927,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(657688),o=e.i(522016),l=e.i(618566),i=e.i(846932),n=e.i(88653),s=e.i(492161),c=e.i(37727),d=e.i(384758),u=e.i(639553);let h="landing-mobile-menu",m=[{href:"/trivia",label:"All Topics",hint:"Browse every quiz category"},{href:"/featured",label:"Featured Topics",hint:"This week's featured picks"}];function f(){let[e,f]=(0,r.useState)(!1),b=(0,u.useReducedMotion)(),p=(0,l.usePathname)(),x=(0,r.useRef)(null),v=(0,r.useRef)(null),y=(0,r.useCallback)(()=>{f(!1),x.current?.focus()},[]);return(0,r.useEffect)(()=>{f(!1)},[p]),(0,r.useEffect)(()=>
1{if(!e)return;let t=e=>{"Escape"===e.key&&y()};document.addEventListener("keydown",t);let r=document.body.style.overflow;return document.body.style.overflow="hidden",v.current?.focus(),()=>{document.removeEventListener("keydown",t),document.body.style.overflow=r}},[e,y]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{ref:x,type:"button",onClick:()=>f(!0),"aria-label":"Open menu","aria-expanded":e,"aria-controls":h,className:"grid h-11 w-11 shrink-0 place-items-center rounded-full border border-white/25 text-white transition-colors hover:bg-white/10 md:hidden",children:(0,t.jsx)(s.Menu,{className:"h-5 w-5","aria-hidden":"true"})}),(0,t.jsx)(n.AnimatePresence,{children:e&&(0,t.jsxs)(i.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15*!b},className:"fixed inset-0 z-[var(--z-modal)] md:hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:y,"aria-hidden":"true"}),(0,t.jsxs)(i.motion.div,{id:h,role:"dialog","aria-modal":"true","aria-label":"Site menu",initial:b?{opacity:0}:{y:"-100%"},animate:b?{opacity:1}:{y:0},exit:b?{opacity:0}:{y:"-100%"},transition:{duration:.25*!b,ease:"easeOut"},className:"relative max-h-full overflow-y-auto rounded-b-3xl border-b border-white/10 shadow-2xl",style:{backgroundColor:d.LANDING.colors.forestDark},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-6 py-4",children:[(0,t.jsxs)(o.default,{href:"/",onClick:y,className:"flex items-center gap-3",children:[(0,t.jsx)(a.default,{src:"/rose-logo.png",alt:"",width:40,height:40,className:"h-10 w-10 object-contain"}),(0,t.jsx)("span",{style:{fontFamily:d.LANDING.fonts.heading},className:"text-2xl font-bold text-white",children:"Trivia Tango"})]}),(0,t.jsx)("button",{ref:v,type:"button",onClick:y,"aria-label":"Close menu",className:"grid h-11 w-11 shrink-0 place-items-center rounded-full border border-white/25 text-white transition-colors hover:bg-white/10",children:(0,t.jsx)(c.X,{className:"h-5 w-5","aria-hidden":"true"})})]}),(0,t.jsxs)("nav",{"aria-label":"Site",className:"px-6 pb-6",children:[(0,t.jsx)("ul",{className:"border-t border-white/10",children:m.map(e=>(0,t.jsx)("li",{className:"border-b border-white/10",children:(0,t.jsxs)(o.default,{href:e.href,onClick:y,className:"flex min-h-[3.5rem] flex-col justify-center py-3 transition-colors hover:text-white",children:[(0,t.jsx)("span",{style:{fontFamily:d.LANDING.fonts.heading},className:"text-lg font-bold text-white",children:e.label}),(0,t.jsx)("span",{className:"mt-0.5 text-sm text-white/60",children:e.hint})]})},e.href))}),(0,t.jsxs)("div",{className:"mt-6 flex flex-col gap-3",children:[(0,t.jsx)(o.default,{href:"/signup",onClick:y,className:"inline-flex min-h-[3rem] items-center justify-center rounded-full px-5 text-base font-semibold transition-opacity hover:opacity-90",style:{backgroundColor:d.LANDING.colors.tangoGreen,color:d.LANDING.colors.textDark},children:"Sign Up Free"}),(0,t.jsx)(o.default,{href:"/login",onClick:y,className:"inline-flex min-h-[3rem] items-center justify-center rounded-full border border-white/25 px-5 text-base font-semibold text-white transition-colors hover:bg-white/10",children:"Log In"})]})]})]})]})})]})}e.s(["LandingMobileMenu",()=>f])},178059,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(618566),o=e.i(286536),l=e.i(77705),i=e.i(263488),n=e.i(37727),s=e.i(861668),c=e.i(804745),d=e.i(435939),u=e.i(64107),h=e.i(352304);function m(){return(0,t.jsxs)("svg",{className:"h-5 w-5",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]})}function f(){return(0,t.jsx)("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"
1currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.05 12.04c-.03-2.6 2.12-3.85 2.22-3.91-1.21-1.77-3.09-2.01-3.76-2.04-1.6-.16-3.12.94-3.93.94-.81 0-2.06-.92-3.39-.9-1.74.03-3.35 1.01-4.25 2.57-1.81 3.14-.46 7.79 1.3 10.34.86 1.25 1.88 2.65 3.22 2.6 1.29-.05 1.78-.83 3.34-.83 1.56 0 2 .83 3.37.81 1.39-.03 2.27-1.27 3.12-2.53.98-1.45 1.39-2.85 1.41-2.92-.03-.01-2.71-1.04-2.74-4.13-.02-2.58 2.11-3.82 2.2-3.88-1.2-1.77-3.07-1.96-3.73-2.01M14.53 4.4c.71-.86 1.19-2.06 1.06-3.25-1.02.04-2.26.68-3 1.54-.66.76-1.24 1.98-1.08 3.15 1.14.09 2.3-.58 3.02-1.44"})})}let b=(0,t.jsx)("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-white/30 border-t-white"});function p({isOpen:e,onClose:p,initialMode:x="signup",returnUrl:v="/home",deferOnboarding:y=!1,title:g,subtitle:w}){let j=(0,a.useRouter)(),N=(0,c.useToast)(),{signInWithEmail:C,signUpWithEmail:k,signInWithGoogle:O,signInWithApple:S,beginDeferredOnboarding:P,isAuthenticated:E,error:M,clearError:A}=(0,s.useAuth)(),[L,z]=(0,r.useState)(x),[T,D]=(0,r.useState)(""),[I,B]=(0,r.useState)(""),[F,R]=(0,r.useState)(!1),[G,U]=(0,r.useState)(null),[W,H]=(0,r.useState)(null),[V,q]=(0,r.useState)(null),K=(0,r.useRef)(!1),X="signup"===L,$=e=>{y?((0,h.markDeferredOnboardingPending)(),q(v)):e?q(`/welcome?returnUrl=${encodeURIComponent(v)}`):q(v)};(0,r.useEffect)(()=>{V&&E&&!K.current&&(K.current=!0,p(),j.push(V))},[V,E,p,j]);let Y=async e=>{if(e.preventDefault(),U(null),A(),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(T))return void U("Please enter a valid email address");if(X&&I.length<6)return void U("Password must be at least 6 characters");if(!I)return void U("Password is required");H("email");try{y&&P(),X?await k(T,I):await C(T,I),$(X)}catch(e){N.error(X?"Could not create account":"Could not sign in",e instanceof Error?e.message:void 0)}finally{H(null)}},J=async e=>{U(null),A(),H(e);try{y&&P(),"google"===e?await O():await S(),$(!1)}catch(e){N.error("Sign-in failed",e instanceof Error?e.message:void 0)}finally{H(null)}},Q=e=>(0,u.cn)("h-12 w-full rounded-lg border bg-[var(--color-bg-secondary)] px-4 text-body text-[var(--color-text-primary)] placeholder:text-[var(--color-text-tertiary)] focus:border-[var(--color-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)]/20",e?"border-[var(--color-error)]":"border-[var(--color-border)]"),Z=G??M;return(0,t.jsx)(d.ModalOverlay,{isVisible:e,onClose:p,position:"bottom",children:(0,t.jsxs)("div",{className:"relative max-h-[90vh] overflow-y-auto p-6 sm:p-8",children:[(0,t.jsx)("button",{type:"button",onClick:p,"aria-label":"Close",className:"absolute right-4 top-4 flex h-9 w-9 items-center justify-center rounded-full text-[var(--color-text-tertiary)] transition-colors hover:bg-[var(--color-bg-secondary)] hover:text-[var(--color-text-primary)]",children:(0,t.jsx)(n.X,{className:"h-5 w-5","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"pr-8 text-center",children:[(0,t.jsx)("h2",{className:"text-title-2 font-bold text-[var(--color-text-primary)]",children:g??(X?"Create your account":"Welcome back")}),(0,t.jsx)("p",{className:"mt-1 text-body text-[var(--color-text-secondary)]",children:w??(X?"Sign up free to start playing":"Sign in to keep playing")})]}),Z&&(0,t.jsx)("div",{className:"mt-5 rounded-lg bg-[var(--color-error)]/10 p-3 text-sm text-[var(--color-error)]",children:Z}),(0,t.jsxs)("form",{onSubmit:Y,className:"mt-5 space-y-4",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(i.Mail,{className:"absolute left-3 top-1/2 h-5 w-5 -translate-y-1/2 text-[var(--color-text-tertiary)]"}),(0,t.jsx)("input",{type:"email",autoComplete:"email",inputMode:"email",placeholder:"[email protected]",value:T,onChange:e=>D(e.target.value),className:(0,u.cn)(Q(!1),"pl-10"),"aria-label":"Email"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:F?"text":"password",autoComplete:X?"new-password":"current-password",placeholder:X?"Create a password":"Your password",value:I,onChange:e=>B(e.target.value),className:(0,u.cn)(Q(!1),"pr-12"),"aria-label":"Password"}),(0,t.jsx)("button",{type:"button",onClick:()=>R(e=>!e),className:"absolute right-3 top-1/2 -translate-y-1/2 p-1 text-[var(--color-text-tertiary)] hover:text-[var(--color-text-secondary)]","aria-label":F?"Hide password":"Show password",children:F?(0,t.jsx)(l.EyeOff,{className:"h-5 w-5"}):(0,t.jsx)(o.Eye,{className:"h-5 w-5"})})]}),(0,t.jsx)("button",{type:"submit",disabled:null!==W||null!==V,className:"flex h-12 w-full items-center justify-center rounded-lg bg-[var(--color-primary)] text-body font-medium text-[var(--color-text-inverse)] transition-colors hover:bg-[var(--color-primary-hover)] disabled:cursor-not-allowed disabled:opacity-50",children:"email"===W?b:X?"Create account & play":"Sign in & play"})]}),(0,t.jsxs)("div",{className:"relative my-5",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-[var(--color-border)]"})}),(0,t.jsx)("div",{className:"relative flex justify-center",children:(0,t.jsx)("span",{className:"bg-[var(--color-bg-primary)] px-3 text-small text-[var(--color-text-tertiary)]",children:"or continue with"})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>J("google"),disabled:null!==W||null!==V,className:"flex h-12 w-full items-center justify-center gap-3 rounded-lg border border-[var(--color-border)] bg-[var(--color-bg-secondary)] text-body font-medium text-[var(--color-text-primary)] transition-colors hover:bg-[var(--color-bg-tertiary)] disabled:cursor-not-allowed disabled:opacity-50",children:"google"===W?(0,t.jsx)("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-[var(--color-border)] border-t-[var(--color-text-primary)]"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m,{}),"Continue with Google"]})}),(0,t.jsx)("button",{type:"button",onClick:()=>J("apple"),disabled:null!==W||null!==V,className:"flex h-12 w-full items-center justify-center gap-3 rounded-lg border border-[var(--color-border)] bg-[var(--color-bg-secondary)] text-body font-medium text-[var(--color-text-primary)] transition-colors hover:bg-[var(--color-bg-tertiary)] disabled:cursor-not-allowed disabled:opacity-50",children:"apple"===W?(0,t.jsx)("div",{className:"h-5 w-5 animate-spin rounded-full border-2 border-[var(--color-border)] border-t-[var(--color-text-primary)]"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{}),"Continue with Apple"]})})]}),(0,t.jsxs)("p",{className:"mt-6 text-center text-body text-[var(--color-text-secondary)]",children:[X?"Already have an account?":"New to Trivia Tango?"," ",(0,t.jsx)("button",{type:"button",onClick:()=>{z(X?"signin":"signup"),U(null),A()},className:"font-medium text-[var(--color-primary)] hover:underline",children:X?"Sign in":"Create an account"})]})]})})}e.s(["AuthModal",()=>p],178059)}]);
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.