1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{2499:(e,t,r)=>{"use strict";r.d(t,{FS:()=>i,Li:()=>s,k7:()=>n});let n="https://discord.gg/Z6ydgV2V7b",s="https://whop.com/hub/",i="https://whop.com/iimagined/free-creator-starter-kit/"},6215:(e,t,r)=>{Promise.resolve().then(r.bind(r,43896)),Promise.resolve().then(r.bind(r,41114)),Promise.resolve().then(r.bind(r,46729)),Promise.resolve().then(r.bind(r,12109)),Promise.resolve().then(r.bind(r,80061)),Promise.resolve().then(r.bind(r,30282)),Promise.resolve().then(r.bind(r,34917)),Promise.resolve().then(r.t.bind(r,42593,23)),Promise.resolve().then(r.t.bind(r,91182,23)),Promise.resolve().then(r.t.bind(r,67932,23)),Promise.resolve().then(r.t.bind(r,95957,23)),Promise.resolve().then(r.t.bind(r,51743,23)),Promise.resolve().then(r.bind(r,24497)),Promise.resolve().then(r.bind(r,76933)),Promise.resolve().then(r.bind(r,31875)),Promise.resolve().then(r.bind(r,95559)),Promise.resolve().then(r.bind(r,30794)),Promise.resolve().then(r.bind(r,90823)),Promise.resolve().then(r.bind(r,83714)),Promise.resolve().then(r.bind(r,97373)),Promise.resolve().then(r.bind(r,33770)),Promise.resolve().then(r.bind(r,72464)),Promise.resolve().then(r.bind(r,30608)),Promise.resolve().then(r.bind(r,39541)),Promise.resolve().then(r.bind(r,21039)),Promise.resolve().then(r.bind(r,80627)),Promise.resolve().then(r.bind(r,69893))},16385:(e,t,r)=>{"use strict";let n;r.d(t,{N:()=>l});var s=r(59966);let i="https://jxzqzbkcmybmpnmkukuu.supabase.co",a="sb_publishable_ltaNA7nnVozoSCOcZIjg",l=i&&a?(0,s.UU)(i,a):(n={select:function(){return this},insert:function(){return this},update:function(){return this},upsert:function(){return this},delete:function(){return this},eq:function(){return this},neq:function(){return this},gt:function(){return this},lt:function(){return this},gte:function(){return this},lte:function(){return this},like:function(){return this},in:function(){return this},is:function(){return this},order:function(){return this},limit:function(){return this},single:function(){return Promise.resolve({data:null,error:{message:"Supabase not configured",code:"MOCK_CLIENT"}})},then:function(e){return e({data:null,error:{message:"Supabase not configured",code:"MOCK_CLIENT"}}),this}},{from:()=>n,channel:()=>({on:function(){return this},subscribe:()=>({unsubscribe:()=>{},on:function(){return this}})}),removeChannel:()=>{},auth:{getUser:()=>Promise.resolve({data:{user:null},error:null}),getSession:()=>Promise.resolve({data:{session:null},error:null}),onAuthStateChange:()=>({data:{subscription:{unsubscribe:()=>{}}}})}})},21039:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var n=r(95155),s=r(12115);function i(){let[e,t]=(0,s.useState)(0);return(0,s.useEffect)(()=>{let e=()=>{t(Math.min(window.pageYOffset/(document.body.scrollHeight-window.innerHeight)*100,100))};return window.addEventListener("scroll",e,{passive:!0}),e(),()=>window.removeEventListener("scroll",e)},[]),(0,n.jsx)("div",{className:"scroll-indicator",style:{transform:`scaleX(${e/100})`}})}},21851:(e,t,r)=>{"use strict";r.d(t,{y:()=>s});var n=r(9339);let s=(0,n.createServerReference)("00b06ae62c8a6701bafb30f33005c447b433470ff2",n.callServer,void 0,n.findSourceMapURL,"invalidateCacheAction")},24497:(e,t,r)=>{"use strict";r.d(t,{WebVitals:()=>i});var n=r(21091),s=r(48772);function i(){return(0,n.useReportWebVitals)(e=>{(0,s.f0)(e.name,{event_category:"Web Vitals",event_label:e.id,value:Math.round("CLS"===e.name?1e3*e.value:e.value),metric_rating:e.rating,page_path:window.location.pathname,non_interaction:!0})}),null}},30608:(e,t,r)=>{"use strict";r.d(t,{default:()=>p});var n=r(95155),s=r(12115),i=r(98500),a=r.n(i),l=r(73321),o=r(18310),c=r(73953),d=r(39449),u=r(31270),m=r(65566),h=r(55134),f=r(39541);let x=["/dashboard","/checkout","/admin","/sign-in","/sign-up","/learning"];function p({active:e}){let t=(0,h.oe)(),r=(0,l.usePathname)()??"",[i,v]=(0,s.useState)(!1),g=(0,s.useRef)(null),b=(0,s.useRef)(null),y=(0,o.I)(),{isSignedIn:k,isLoaded:_}=(0,u.Jd)();(0,s.useEffect)(()=>{v(!1)},[r]);let w=()=>{v(!1),g.current?.focus()};if((0,s.useEffect)(()=>{if(!i)return;let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=window.matchMedia("(min-width: 1024px)"),r=()=>{t.matches&&v(!1)},n=e=>{if("Escape"===e.key&&(e.preventDefault(),w()),"Tab"===e.key){let t=b.current?.querySelectorAll("a[href], button");if(!t?.length)return;let r=t[0],n=t[t.length-1];!b.current?.contains(document.activeElement)||e.shiftKey&&document.activeElement===r?(e.preventDefault(),(e.shiftKey?n:r).focus()):e.shiftKey||document.activeElement!==n||(e.preventDefault(),r.focus())}};return b.current?.querySelector("a[href]")?.focus(),document.addEventListener("keydown",n),t.addEventListener("change",r),r(),()=>{document.body.style.overflow=e,document.removeEventListener("keydown",n),t.removeEventListener("change",r)}},[i]),x.some(e=>r.startsWith(e)))return null;let N=e;!N&&("/all-access"===r?N="all-access":"/story"===r||"/about"===r?N="story":r.startsWith("/blog")?N="journal":"/tools"===r||r.startsWith("/tools/")?N="tools":"/testimonials"===r||"/stats"===r?N="results":("/courses"===r||["/instagram-ignited","/ai-influencers","/digital-products","/ai-saas"].includes(r))&&(N="courses"));let j=[{href:"/courses",label:"Courses",key:"courses"},{href:"/all-access",label:"All-Access",key:"all-access"},{href:"/story",label:"Story",key:"story"},{href:"/testimonials",label:"Results",key:"results"},{href:"/blog",label:"Journal",key:"journal"},{href:"/tools",label:"Free Tools",key:"tools"}];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("nav",{"aria-label":"Main navigation",className:"sticky top-0 z-50 border-b border-line bg-canvas/80 backdrop-blur-xl backdrop-saturate-150",children:[(0,n.jsxs)("div",{className:"mx-auto flex h-16 max-w-[1280px] items-center justify-between gap-3 px-5 sm:px-8",children:[(0,n.jsxs)(a(),{href:"/",className:"inline-flex items-baseline py-1.5 font-display text-[22px] font-semibold tracking-[-0.04em] text-ink",children:[(0,n.jsx)("span",{className:"italic",children:"ii"}),(0,n.jsx)("span",{className:"italic font-medium",children:"magined"}
1),(0,n.jsx)("span",{className:"ml-0.5 not-italic text-course-ig",children:"."})]}),(0,n.jsx)("div",{className:"hidden items-center gap-5 text-[13.5px] font-medium tracking-[-0.005em] text-ink-2 lg:flex",children:j.map(e=>(0,n.jsx)(a(),{href:e.href,"aria-current":N===e.key?"page":void 0,className:`hover:text-ink ${N===e.key?"text-ink":""}`,children:e.label},e.key))}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[_&&(k?(0,n.jsxs)(a(),{href:"/learning",className:"hidden items-center gap-2 rounded-full border border-line bg-canvas-3 px-3.5 py-2 text-[12.5px] font-medium text-ink transition-base hover:border-ink sm:inline-flex",children:[(0,n.jsx)("span",{children:"Dashboard"}),(0,n.jsx)("span",{children:"â"})]}):(0,n.jsx)(a(),{href:"/sign-in",className:"hidden text-[13px] font-medium text-ink-2 transition-base hover:text-ink sm:inline-flex",children:"Sign in"})),(0,n.jsxs)("a",{href:m.VT.buyUrl,className:"hidden items-center gap-2 rounded-full bg-ink px-3.5 py-2 text-[12.5px] font-medium text-canvas-3 transition-base ease-ds-out hover:-translate-y-px sm:inline-flex",children:[(0,n.jsx)("span",{children:"Start All-Access"}),(0,n.jsx)("span",{className:"rounded-full bg-canvas-3/12 px-2 py-0.5 font-mono text-[10.5px] tracking-wider",children:t?`$${h.xv} 1st mo`:`$${m.VT.monthlyPrice}/mo`})]}),(0,n.jsx)(f.A,{}),(0,n.jsx)("button",{id:"mercury-menu-toggle",ref:g,type:"button",onClick:()=>v(e=>!e),"aria-label":i?"Close menu":"Open menu","aria-expanded":i,"aria-controls":"mercury-mobile-menu","aria-haspopup":"dialog",className:"relative grid h-11 w-11 place-items-center rounded-full border border-line bg-canvas-3 text-ink transition-base hover:border-ink lg:hidden",children:(0,n.jsxs)("span",{className:"relative h-3 w-4","aria-hidden":"true",children:[(0,n.jsx)(c.P.span,{className:"absolute left-0 top-0 h-[1.5px] w-full rounded-full bg-ink",animate:i?{rotate:45,y:5}:{rotate:0,y:0},transition:{duration:.25,ease:[.22,1,.36,1]}}),(0,n.jsx)(c.P.span,{className:"absolute left-0 top-[5px] h-[1.5px] w-full rounded-full bg-ink",animate:i?{opacity:0}:{opacity:1},transition:{duration:.15}}),(0,n.jsx)(c.P.span,{className:"absolute left-0 top-[10px] h-[1.5px] w-full rounded-full bg-ink",animate:i?{rotate:-45,y:-5}:{rotate:0,y:0},transition:{duration:.25,ease:[.22,1,.36,1]}})]})})]})]}),(0,n.jsxs)("noscript",{children:[(0,n.jsx)("style",{children:"#mercury-menu-toggle { display: none; }"}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-x-5 gap-y-2 border-t border-line px-5 py-3 text-sm text-ink-2 lg:hidden",children:[j.map(e=>(0,n.jsx)(a(),{href:e.href,children:e.label},e.key)),(0,n.jsx)(a(),{href:"/sign-in",children:"Sign in"})]})]})]}),(0,n.jsx)(d.N,{children:i&&(0,n.jsx)(c.P.div,{initial:!y&&{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-40 bg-canvas/60 backdrop-blur-md lg:hidden",onClick:w,children:(0,n.jsx)(c.P.div,{id:"mercury-mobile-menu",ref:b,role:"dialog","aria-modal":"true","aria-label":"Navigation menu",initial:!y&&{y:-16,opacity:0},animate:{y:0,opacity:1},exit:{y:-16,opacity:0},transition:{duration:.28,ease:[.22,1,.36,1]},onClick:e=>e.stopPropagation(),className:"absolute inset-x-0 top-16 max-h-[calc(100dvh-4rem)] overflow-y-auto border-b border-line bg-canvas-3 shadow-2",children:(0,n.jsxs)("div",{className:"mx-auto flex max-w-[1280px] flex-col gap-1 px-5 py-6 sm:px-8",children:[j.map(e=>(0,n.jsxs)(a(),{href:e.href,"aria-current":N===e.key?"page":void 0,onClick:()=>v(!1),className:`flex items-center justify-between rounded-xl border border-transparent px-4 py-3.5 text-[16px] font-medium transition-base hover:border-line hover:bg-canvas-2 ${N===e.key?"text-ink":"text-ink-2"}`,children:[(0,n.jsx)("span",{className:"font-display",children:e.label}),(0,n.jsx)("span",{className:"font-mono text-[11px] text-ink-3",children:"â"})]},e.key)),(0,n.jsx)("button",{type:"button",onClick:w,className:"self-end rounded-full border border-line px-4 py-3 text-sm text-ink-2 hover:text-ink",children:"Close menu"}),(0,n.jsxs)("div",{className:"mt-3 border-t border-line pt-4",children:[(0,n.jsxs)("a",{href:m.VT.buyUrl,onClick:()=>v(!1),className:"flex items-center justify-between gap-3 rounded-full bg-ink px-5 py-4 text-[14.5px] font-medium text-canvas-3",children:[(0,n.jsx)("span",{children:"Start All-Access"}),(0,n.jsx)("span",{className:"rounded-full bg-canvas-3/14 px-2.5 py-1 font-mono text-[11px] tracking-wider",children:t?`$${h.xv} 1st mo`:`$${m.VT.monthlyPrice}/mo`})]}),(0,n.jsx)("div",{className:"mt-3 flex items-center justify-between font-mono text-[10.5px] uppercase tracking-wider text-ink-3",children:_&&k?(0,n.jsx)(a(),{href:"/learning",onClick:()=>v(!1),className:"inline-flex min-h-[44px] items-center hover:text-ink",children:"My Dashboard â"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a(),{href:"/sign-in",onClick:()=>v(!1),className:"inline-flex min-h-[44px] items-center hover:text-ink",children:"Sign in â"}),(0,n.jsx)(a(),{href:"/sign-up",onClick:()=>v(!1),className:"inline-flex min-h-[44px] items-center hover:text-ink",children:"Create account â"})]})})]})]})},"mobile-panel")},"mobile-drawer")})]})}},30794:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var n=r(12115),s=r(73321),i=r(65566),a=r(48772);let l=[...i.D5.map(e=>({id:e.key,name:e.name,price:e.price,route:e.route,checkout:i.HT[e.key]})),{id:"all-access",name:"All-Access",price:i.VT.monthlyPrice,route:"/all-access",checkout:i.VT.buyUrl},{id:"all-access-yearly",name:"All-Access (yearly)",price:i.VT.yearlyPrice,route:"/all-access",checkout:i.VT.yearlyBuyUrl}];function o(e,t){(0,a.f0)(e,{currency:"USD",value:t.price,items:[{item_id:t.id,item_name:t.name,item_category:"Course",price:t.price,quantity:1}]})}function c(){let e=(0,s.usePathname)(),t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let r=l.find(t=>t.route===e);r||(t.current=null);let n=()=>{!r||t.current===e||!(0,a.Ou)()||(0,a.iJ)()||(t.current=e,o("view_item",r))},s=e=>{if(e.defaultPrevented||"auxclick"===e.type&&1!==e.button)return;let t=e.target,r=t instanceof Element?t.closest("a[href]"):null;if(!r)return;let n=function(e){try{let t=new URL(e);return l.find(e=>{let r=new URL(e.checkout,window.location.origin);return t.origin===r.origin&&t.pathname===r.pathname&&[...r.searchParams].every(([e,r])=>t.searchParams.get(e)===r)})}catch{return}}(r.href);n&&o("begin_checkout",n)};return window.addEventListener("iimagined:analytics-ready",n),document.addEventListener("click",
1s,!0),document.addEventListener("auxclick",s,!0),n(),()=>{window.removeEventListener("iimagined:analytics-ready",n),document.removeEventListener("click",s,!0),document.removeEventListener("auxclick",s,!0)}},[e]),null}},31875:(e,t,r)=>{"use strict";r.d(t,{default:()=>c});var n=r(12115),s=r(73321),i=r(48772),a=r(68702);let l=new Set(["fbclid","gclid","gbraid","wbraid","msclkid","mc_cid","mc_eid","_ga","_gl"]),o=new Set(["chatgpt.com","chat.openai.com","perplexity.ai","www.perplexity.ai","claude.ai","gemini.google.com","bard.google.com","copilot.microsoft.com"]);function c(){let e=(0,s.usePathname)(),t=(0,s.useSearchParams)(),r=(0,n.useRef)(null),c=(0,n.useRef)(null),d=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{let e=e=>{e.target?.closest?.('a[href^="mailto:"]')&&(0,a.y)("contact")};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]),(0,n.useEffect)(()=>{let n,s;if((0,i.iJ)())return;let u=(n=new URLSearchParams,t.forEach((e,t)=>{l.has(t.toLowerCase())||n.append(t,e)}),(s=n.toString())?`${e}?${s}`:e);null===c.current?c.current=u:c.current!==u&&(c.current=u,(0,a.y)("page"));let m=()=>{if(!(!(0,i.Ou)()||(0,i.iJ)())&&r.current!==u&&(r.current=u,(0,i.f0)("page_view",{page_path:u,page_location:`${window.location.origin}${u}`,page_title:document.title}),!d.current)){let e=function(e,t){let r=e.get("utm_source")?.toLowerCase();if(r&&o.has(r))return r;if(t)try{let e=new URL(t).hostname.toLowerCase();if(o.has(e))return e}catch{}return null}(t,document.referrer||"");e&&(d.current=!0,(0,i.f0)("ai_referral",{ai_source:e,page_path:u}))}};return window.addEventListener("iimagined:analytics-ready",m),m(),()=>window.removeEventListener("iimagined:analytics-ready",m)},[e,t]),null}},33770:(e,t,r)=>{"use strict";r.d(t,{RouteLoader:()=>l,default:()=>a});var n=r(95155),s=r(12115),i=r(73321);function a({children:e}){let t=(0,i.usePathname)();return(0,s.useEffect)(()=>{window.scrollTo({top:0,behavior:"instant"})},[t]),(0,n.jsx)(n.Fragment,{children:e})}function l(){let[e,t]=(0,s.useState)(0),r=(0,i.usePathname)();return((0,s.useEffect)(()=>{t(0);let e=setInterval(()=>{t(t=>t>=90?(clearInterval(e),t):t+30*Math.random())},100),r=setTimeout(()=>{t(100),clearInterval(e)},600);return()=>{clearInterval(e),clearTimeout(r)}},[r]),(0,s.useEffect)(()=>{if(100===e){let e=setTimeout(()=>t(0),400);return()=>clearTimeout(e)}},[e]),0===e)?null:(0,n.jsx)("div",{className:"pointer-events-none fixed inset-x-0 top-0 z-[60] h-0.5 overflow-hidden",children:(0,n.jsx)("div",{className:"h-full bg-ink transition-all duration-300 ease-out",style:{width:`${e}%`}})})}},39541:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,THEME_SCRIPT:()=>a});var n=r(95155),s=r(12115);let i="iim-theme",a=`try{if(localStorage.getItem("${i}")==="dark")document.documentElement.dataset.mode="dark"}catch(e){}`;function l(){let[e,t]=(0,s.useState)(!1);return(0,s.useEffect)(()=>t("dark"===document.documentElement.dataset.mode),[]),(0,n.jsx)("button",{type:"button",onClick:()=>{let r=!e;t(r),r?document.documentElement.dataset.mode="dark":delete document.documentElement.dataset.mode;try{localStorage.setItem(i,r?"dark":"light")}catch{}},"aria-pressed":e,"aria-label":"Dark mode",title:e?"Switch to light mode":"Switch to dark mode",className:"grid h-11 w-11 place-items-center rounded-full border border-line bg-canvas-3 text-ink transition-base hover:border-ink",children:(0,n.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round",className:"h-[18px] w-[18px]",children:e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,n.jsx)("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"})]}):(0,n.jsx)("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})})})}},48772:(e,t,r)=>{"use strict";r.d(t,{Ou:()=>n,f0:()=>a,iJ:()=>i}),r(41463).env.NEXT_PUBLIC_GA_MEASUREMENT_ID;let n=()=>void 0!==window.gtag,s=/bot|spider|crawl|headless|phantomjs|selenium|puppeteer|playwright|lighthouse|pagespeed|gtmetrix|webpagetest|chrome-lighthouse|prerender|node-fetch|axios\b/i,i=()=>!("u"<typeof navigator)&&(!0===navigator.webdriver||s.test(navigator.userAgent||"")),a=(e,t)=>{!n()||i()||window.gtag?.("event",e,t)}},51743:()=>{},55134:(e,t,r)=>{"use strict";r.d(t,{MonthlyPrice:()=>u,xv:()=>c,Kl:()=>m,oe:()=>d});var n=r(95155),s=r(12115),i=r(65566);let a=[["New Year offer","NEWYEAR"],["Lunar New Year offer","LUNARNEWYEAR"],["New Season offer","NEWSEASON"],["Easter offer","EASTER"],["May Sprint offer","MAYSPRINT"],["Mid-Year offer","MIDYEAR"],["Summer offer","SUMMER"],["Back to School offer","BACKTOSCHOOL"],["September Reset offer","RESET"],["Halloween offer","HALLOWEEN"],["Black Friday offer","BLACKFRIDAY"],["Christmas offer","CHRISTMAS"]],l="Australia/Melbourne";function o(e){let t=Object.fromEntries(new Intl.DateTimeFormat("en-US",{timeZone:l,hourCycle:"h23",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}).formatToParts(e).map(e=>[e.type,Number(e.value)]));return Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second)-1e3*Math.floor(e/1e3)}let c=i.VT.monthlyPrice-30;
1function d(){let[e,t]=(0,s.useState)(null);return(0,s.useEffect)(()=>t(function(e=Date.now()){let t,r,{year:n,month:s}=(t=new Intl.DateTimeFormat("en-AU",{timeZone:l,year:"numeric",month:"numeric"}).formatToParts(e),{year:(r=e=>Number(t.find(t=>t.type===e)?.value))("year"),month:r("month")-1});return 12*n+s>24371?null:function(e,t){let[r,n]=a[t],s=Date.UTC(e,t+1,1),i=s-o(s-o(s));return{name:r,code:`${n}${String(e).slice(-2)}`,ends:new Date(i-1e3).toISOString().replace(".000","")}}(n,s)}()),[]),e}function u({long:e=!1}){let t=d(),r=i.VT.monthlyPrice;return t?(0,n.jsx)(n.Fragment,{children:e?`$${c} your first month, then $${r}/month`:`$${c} first month`}):(0,n.jsx)(n.Fragment,{children:e?`$${r}/month`:`$${r}/mo`})}function m({offer:e,tone:t,numberClass:r,children:s}){if(!e)return(0,n.jsx)(n.Fragment,{children:s});let a="dark"===t?"opacity-70":"text-ink-3";return(0,n.jsxs)("div",{className:"mt-3",children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-2",children:[(0,n.jsx)("span",{className:`font-display text-[24px] ${a}`,children:"$"}),(0,n.jsx)("span",{className:`font-display font-medium leading-none tracking-[-0.03em] ${r}`,children:c}),(0,n.jsx)("span",{className:`text-[14px] ${a}`,children:"first month"}),(0,n.jsxs)("s",{className:`font-display text-[22px] ${a}`,"aria-label":`was $${i.VT.monthlyPrice}`,children:["$",i.VT.monthlyPrice]})]}),(0,n.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2 text-[12.5px]",children:[(0,n.jsxs)("span",{className:`inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 font-medium ${"dark"===t?"bg-canvas-3 text-ink":"bg-ink text-canvas-3"}`,children:[(0,n.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",className:"h-3.5 w-3.5",children:(0,n.jsx)("path",{d:"M20 6 9 17l-5-5"})}),e.name,": ",(0,n.jsx)("span",{className:"font-mono",children:e.code})," applied"]}),(0,n.jsxs)("span",{className:a,children:["then $",i.VT.monthlyPrice,"/month \xb7 ends ",new Date(e.ends).toLocaleDateString("en-AU",{day:"numeric",month:"long",timeZone:l})]})]})]})}},68702:(e,t,r)=>{"use strict";r.d(t,{j:()=>s,y:()=>i});let n={};function s(e){n=e}function i(e,t={}){window.whop?.track(e,{...n,...t})}},69893:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,GamificationProvider:()=>c});var n=r(95155),s=r(12115),i=r(31270),a=r(16385),l=r(75106);let o=(0,s.createContext)(void 0);function c({children:e}){let{user:t,isLoaded:d}=(0,i.Jd)(),[u,m]=(0,s.useState)(null),[h,f]=(0,s.useState)([]),[x,p]=(0,s.use
1State)([]),[v,g]=(0,s.useState)([]),[b,y]=(0,s.useState)(!0),[k,_]=(0,s.useState)({level:1,show:!1}),[w,N]=(0,s.useState)({achievement:null,show:!1}),j=(0,s.useCallback)(async()=>{if(!t)return void y(!1);try{let{data:e,error:r}=await a.N.from("user_stats").select("*").eq("user_id",t.id).single();if(r&&"PGRST116"!==r.code&&console.error("Error fetching stats:",r),e)m(e);else{let{data:e,error:r}=await a.N.from("user_stats").insert({user_id:t.id,total_xp:0,current_level:1,current_streak:0,longest_streak:0,total_lessons_completed:0}).select().single();!r&&e&&m(e)}let{data:n}=await a.N.from("user_achievements").select("*, achievement:achievements(*)").eq("user_id",t.id);n&&f(n);let{data:s,error:i}=await a.N.from("user_quests").select("*, quest:daily_quests(*)").eq("user_id",t.id).eq("last_updated",new Date().toISOString().split("T")[0]);if(s&&s.length>0)p(s);else{let{data:e}=await a.N.from("daily_quests").select("*").eq("is_active",!0);if(e){let r=e.map(e=>({user_id:t.id,quest_id:e.id,progress:0,is_completed:!1,last_updated:new Date().toISOString().split("T")[0]})),{data:n,error:s}=await a.N.from("user_quests").insert(r).select("*, quest:daily_quests(*)");n&&p(n)}}let{data:l}=await a.N.from("xp_history").select("*").eq("user_id",t.id).order("created_at",{ascending:!1}).limit(10);l&&g(l)}catch(e){console.error("Failed to fetch gamification data:",e)}finally{y(!1)}},[t]),S=(0,s.useCallback)(async()=>{await j()},[j]);(0,s.useEffect)(()=>{if(d&&t){j();let e=a.N.channel("gamification_updates").on("postgres_changes",{event:"*",schema:"public",table:"user_stats",filter:`user_id=eq.${t.id}`},e=>{m(e.new)}).on("postgres_changes",{event:"INSERT",schema:"public",table:"user_achievements",filter:`user_id=eq.${t.id}`},e=>{S()}).subscribe();return()=>{a.N.removeChannel(e)}}},[t,d,j,S]);let E=async(e,r)=>{if(t&&u)try{let n=u.total_xp+e,s=(0,l.Zf)(n),i={total_xp:n,current_level:s};"lesson_complete"===r&&(i.total_lessons_completed=u.total_lessons_completed+1);let{data:o,error:c}=await a.N.from("user_stats").update(i).eq("user_id",t.id).select().single();if(!c&&o&&(m(o),s>u.current_level&&_({level:s,show:!0})),await a.N.from("xp_history").insert({user_id:t.id,amount:e,reason:r}),"lesson_complete"===r){let e=x.find(e=>e.quest?.quest_type==="complete_lesson"||e.quest?.quest_type==="lesson_complete");if(e&&!e.is_completed){let t=e.progress+1,r=t>=(e.quest?.target_count||1);await a.N.from("user_quests").update({progress:t,is_completed:r}).eq("id",e.id),r&&await E(e.quest?.xp_reward||50,"daily_quest_complete")}}await P()}catch(e){console.error("Failed to award XP:",e)}},P=async()=>{if(!t||!u)return;let{data:e}=await a.N.from("achievements").select("*");if(!e)return;let n=new Set(h.map(e=>e.achievement_id)),s=[];for(let r of e){if(n.has(r.id))continue;let e=!1;switch(r.condition_type){case"xp_total":u.total_xp>=r.condition_value&&(e=!0);break;case"streak_days":u.current_streak>=r.condition_value&&(e=!0);break;case"lessons_count":u.total_lessons_completed>=r.condition_value&&(e=!0)}e&&(s.push({user_id:t.id,achievement_id:r.id}),await E(r.xp_reward,"achievement_unlocked"),N({achievement:r,show:!0}))}if(s.length>0){await a.N.from("user_achievements").insert(s);let{triggerSmartEmail:t}=await r.e(2760).then(r.bind(r,72760)),n=s[0].achievement_id,i=e.find(e=>e.id===n);i&&await t("achievement_unlocked",{achievementName:i.title})}},T=async()=>{if(!t||!u)return 0;try{let e=new Date().toISOString().split("T")[0],n=u.last_activity_date,s=u.current_streak;if(n){if(n===e)return s;let t=new Date;t.setDate(t.getDate()-1);let r=t.toISOString().split("T")[0];n===r?s+=1:s=1}else s=1;let{data:i,error:l}=await a.N.from("user_stats").update({current_streak:s,longest_streak:Math.max(u.longest_streak,s),last_activity_date:e}).eq("user_id",t.id).select().single();if(!l&&i&&(m(i),s>u.current_streak)){let{triggerSmartEmail:e}=await r.e(2760).then(r.bind(r,72760));[3,7,14,30,60,90,100,365].includes(s)&&await e("streak_milestone",{streakDays:s})}return s}catch(e){return console.error("Failed to update streak:",e),0}};return(0,n.jsx)(o.Provider,{value:{stats:u,achievements:h,quests:x,xpHistory:v,isLoading:b,levelUpData:k,recentAchievement:w,awardXP:E,updateStreak:T,refreshStats:S,checkAchievements:P,closeLevelUpModal:()=>_(e=>({...e,show:!1})),closeAchievementToast:()=>N(e=>({...e,show:!1}))},children:e})}function d(){let e=(0,s.useContext)(o);if(void 0===e)throw Error("useGamification must be used within a GamificationProvider");return e}},72464:(e,t,r)=>{"use strict";r.d(t,{default:()=>u});var n=r(95155),s=r(98500),i=r.n(s),a=r(73321),l=r(65566),o=r(2499),c=r(55134);let d=["/dashboard","/checkout","/admin","/sign-in","/sign-up","/learning"];function u(){let e=(0,a.usePathname)()??"";return d.some(t=>e.startsWith(t))?null:(0,n.jsx)("footer",{className:"border-t border-line bg-canvas-2 px-5 py-16 sm:px-8 sm:py-24",children:(0,n.jsxs)("div",{className:"mx-auto max-w-[1280px]",children:[(0,n.jsxs)("div",{className:"grid gap-12 md:grid-cols-[2fr_1fr_1fr_1fr]",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"inline-flex items-baseline font-display text-[28px] font-semibold tracking-[-0.04em] text-ink",children:[(0,n.jsx)("span",{className:"italic",children:"ii"}),(0,n.jsx)("span",{className:"italic font-medium",children:"magined"}
1),(0,n.jsx)("span",{className:"ml-0.5 not-italic text-course-ig",children:"."})]}),(0,n.jsx)("p",{className:"mt-3 max-w-[36ch] text-[13.5px] leading-relaxed text-ink-3",children:"Operating systems for builders. Not influencers selling hope."})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"font-mono text-[10.5px] uppercase tracking-[0.14em] text-ink-3",children:"Programs"}),(0,n.jsxs)("div",{className:"mt-4 flex flex-col text-[13.5px] text-ink-2 [&>a]:inline-flex [&>a]:min-h-[44px] [&>a]:items-center md:[&>a]:min-h-0 md:[&>a]:py-1",children:[(0,n.jsx)(i(),{href:"/courses",className:"hover:text-ink",children:"All courses"}),(0,n.jsx)("a",{href:o.FS,className:"hover:text-ink",children:"Free starter kit"}),l.D5.map(e=>(0,n.jsx)(i(),{href:e.route,className:"hover:text-ink",children:e.name},e.key)),(0,n.jsxs)(i(),{href:"/all-access",className:"font-semibold text-ink hover:opacity-80",children:["All-Access â ",(0,n.jsx)(c.MonthlyPrice,{})]})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"font-mono text-[10.5px] uppercase tracking-[0.14em] text-ink-3",children:"Company"}),(0,n.jsxs)("div",{className:"mt-4 flex flex-col text-[13.5px] text-ink-2 [&>a]:inline-flex [&>a]:min-h-[44px] [&>a]:items-center md:[&>a]:min-h-0 md:[&>a]:py-1",children:[(0,n.jsx)(i(),{href:"/story",className:"hover:text-ink",children:"Story"}),(0,n.jsx)(i(),{href:"/testimonials",className:"hover:text-ink",children:"Results"}),(0,n.jsx)(i(),{href:"/press",className:"hover:text-ink",children:"Press"})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"font-mono text-[10.5px] uppercase tracking-[0.14em] text-ink-3",children:"Account"}),(0,n.jsxs)("div",{className:"mt-4 flex flex-col text-[13.5px] text-ink-2 [&>a]:inline-flex [&>a]:min-h-[44px] [&>a]:items-center md:[&>a]:min-h-0 md:[&>a]:py-1",children:[(0,n.jsx)(i(),{href:"/sign-in",className:"hover:text-ink",children:"Sign in"}),(0,n.jsx)(i(),{href:"/sign-up",className:"hover:text-ink",children:"Create account"}),(0,n.jsx)(i(),{href:"/learning",className:"hover:text-ink",children:"My dashboard"}),(0,n.jsx)(i(),{href:"/blog",className:"hover:text-ink",children:"Journal"}),(0,n.jsx)(i(),{href:"/tools",className:"hover:text-ink",children:"Free tools"}),(0,n.jsx)(i(),{href:"/resources",className:"hover:text-ink",children:"Tools & resources"}),(0,n.jsx)("a",{href:o.k7,target:"_blank",rel:"noopener noreferrer",className:"hover:text-ink",children:"Discord community"}),(0,n.jsx)(i(),{href:"/contact",className:"hover:text-ink",children:"Contact"})]})]})]}),(0,n.jsxs)("div",{className:"mt-14 flex flex-col items-start justify-between gap-4 border-t border-line pt-6 text-[11.5px] text-ink-3 sm:flex-row sm:items-center",children:[(0,n.jsxs)("span",{children:["\xa9 ",new Date().getFullYear()," IImagined.ai â operating systems for builders \xb7 Founded by"," ",(0,n.jsx)("a",{href:"https://anyrxo.com",className:"hover:text-ink",children:"Anyro"})]}),(0,n.jsxs)("div",{className:"flex gap-5 font-mono uppercase tracking-wider [&>a]:inline-flex [&>a]:min-h-[44px] [&>a]:items-center sm:[&>a]:min-h-0",children:[(0,n.jsx)(i(),{href:"/privacy-policy",className:"hover:text-ink",children:"privacy"}),(0,n.jsx)(i(),{href:"/terms",className:"hover:text-ink",children:"terms"}),(0,n.jsx)(i(),{href:"/refund-policy",className:"hover:text-ink",children:"refund"})]})]})]})})}},75106:(e,t,r)=>{"use strict";function n(e){return Math.floor(Math.sqrt(e/75))+1}r.d(t,{E_:()=>s,Zf:()=>n});let s={LESSON_COMPLETE:50,MODULE_COMPLETE:200,COURSE_COMPLETE:1e3,DAILY_STREAK_BONUS:10,FIRST_LESSON_TODAY:25,COMEBACK_BONUS:250,SPEED_BONUS:75,ACTION_ITEMS_ALL:30,NOTES_WRITTEN:1
15,STREAK_3_DAY:100,STREAK_7_DAY:500,STREAK_30_DAY:2e3,STREAK_100_DAY:1e4}},76933:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var n=r(12115),s=r(73321);function i(){let e=(0,s.useSearchParams)();return(0,n.useEffect)(()=>{let t=e.get("ref");t&&(document.cookie=`iimagined_ref=${t}; path=/; max-age=2592000; SameSite=Lax`,localStorage.setItem("iimagined_ref",t))},[e]),null}},80627:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var n=r(95155);function s(){return(0,n.jsx)("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-[100] focus:rounded-full focus:bg-ink focus:px-4 focus:py-2 focus:text-[14px] focus:font-medium focus:text-canvas-3 focus:outline-none focus:ring-2 focus:ring-ink focus:ring-offset-2 focus:ring-offset-canvas","aria-label":"Skip to main content",children:"Skip to main content"})}},83714:(e,t,r)=>{"use strict";r.d(t,{default:()=>a});var n=r(95155),s=r(12115),i=r(51735);class a extends s.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?this.props.fallback||(0,n.jsxs)("div",{className:"p-4 rounded-xl bg-course-ig/10 border border-course-ig/20 flex items-center gap-3 text-course-ig",children:[(0,n.jsx)(i.A,{className:"w-5 h-5"}),(0,n.jsx)("span",{className:"font-medium",children:"Something went wrong loading this component."})]}):this.props.children}constructor(...e){super(...e),this.state={hasError:!1}}}},90823:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var n=r(95155);function s({children:e}){return(0,n.jsx)(n.Fragment,{children:e})}},95559:(e,t,r)=>{"use strict";r.d(t,{default:()=>o});var n=r(12115),s=r(31270),i=r(9339);let a=(0,i.createServerReference)("0093eb94bd4cb6509c8c23f55fd124ee7ad5e1a160",i.callServer,void 0,i.findSourceMapURL,"syncUserToSupabase");var l=r(68702);function o(){let{user:e,isSignedIn:t,isLoaded:r}=(0,s.Jd)();return(0,n.useEffect)(()=>{if(r&&!t&&(0,l.j)({}),t&&e){(0,l.j)({email:e.primaryEmailAddress?.emailAddress,first_name:e.firstName??void 0,last_name:e.lastName??void 0,external_id:e.id}),a();let t=`iim_whop_registration_${e.id}`;try{Date.now()-(e.createdAt?.getTime()??0)<6e5&&!localStorage.getItem(t)&&((0,l.y)("complete_registration",{event_id:`reg_${e.id}`}),localStorage.setItem(t,"1"))}catch{}}},[r,t,e]),null}},97373:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var n=r(95155),s=r(12115);function i(){let[e,t]=(0,s.useState)(!0),[r,i]=(0,s.useState)(0);return((0,s.useEffect)(()=>{let e=setInterval(()=>{i(r=>r>=100?(clearInterval(e),setTimeout(()=>t(!1),200),100):r+15*Math.random())},100);return()=>clearInterval(e)},[]),e)?(0,n.jsx)("div",{className:"fixed inset-x-0 top-0 z-50 h-0.5 bg-canvas-2",children:(0,n.jsx)("div",{className:"h-full bg-ink transition-all duration-300 ease-out",style:{width:`${r}%`}})}):null}}},e=>{e.O(0,[2514,3334,8500,3953,1270,9966,5562,6502,5566,8441,3794,7358],()=>e(e.s=6215)),_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.