(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{35979:function(e,t,s){Promise.resolve().then(s.t.bind(s,71334,23)),Promise.resolve().then(s.bind(s,8267)),Promise.resolve().then(s.bind(s,20760)),Promise.resolve().then(s.t.bind(s,27447,23)),Promise.resolve().then(s.t.bind(s,26338,23)),Promise.resolve().then(s.t.bind(s,98e3,23))},8267:function(e,t,s){"use strict";s.d(t,{default:function(){return I}});var a=s(89254),n=s(47438),r=s(72396),i=s.n(r);s(9799);var l=s(57350),o=s(58544),c=s(49002),d=s(56006),m=s(95165),h=s(42977),u=s(37491),x=s(1988),g=s(85213),p=s(82952),f=s(53706),w=s(13821),j=s(65454),b=s(89887),v=s(7888),N=s(4790);function y(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return t.filter(Boolean).join(" ")}let k=Object.entries(j.lH).filter(e=>{let[t,s]=e;return""!==s.teacher&&"econ101"!==t}).map(e=>{let[t,s]=e;return{...s,link:t}});function _(){let e=(0,l.useRouter)(),t=(0,l.usePathname)(),[s,r]=(0,o.useState)(""),{data:i,status:j}=(0,n.useSession)(),_=[...i?[{name:"Courses",href:"/courses"},{name:"Pricing",href:"/pricing"}]:[{name:"Home",href:"/"}],{name:"About",href:"/about"},{name:"Team",href:"/team"},{name:"Contact",href:"/contact"}],[C,U]=(0,o.useState)(void 0),L=""===s?k:k.filter(e=>e.name.toLowerCase().includes(s.toLowerCase())),P=(0,o.useRef)(null);return(0,o.useEffect)(()=>{C&&e.push("/courses/".concat(C.link,"/chat"))},[C]),(0,a.jsx)(m.p,{as:"nav",className:"mb-12 md:mb-0",children:e=>{var s,l;let{open:k}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute z-30 mt-2 h-16 w-full",children:(0,a.jsx)("div",{className:"mx-auto max-w-7xl px-2 sm:px-4 xl:px-8",children:(0,a.jsxs)("div",{className:"relative mb-24 flex h-fit flex-wrap items-center justify-between md:flex-nowrap",children:[(0,a.jsx)("div",{className:"flex items-center px-2 xl:px-0",children:(0,a.jsx)("div",{className:"hidden xl:ml-6 xl:block",children:(0,a.jsx)("div",{className:"mt-16 flex space-x-4 md:mt-0",children:_.map(e=>(0,a.jsx)(c.default,{href:e.href,className:"rounded-md px-3 py-2 text-sm font-medium ".concat(e.href===t?"bg-gray-900 text-white":"text-gray-300 hover:bg-gray-700 hover:text-white"),"aria-current":e.href===t?"page":void 0,children:e.name},e.name))})})}),(0,a.jsxs)("div",{className:"container-logo md:right hidden md:flex",children:[!1,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"  "})," ",(0,a.jsx)(c.default,{href:"/",children:(0,a.jsx)(N.bz,{className:"mx-auto",src:"dl.com/images/original.svg",width:35,height:42,alt:"logo"})}),(0,a.jsx)("p",{children:(0,a.jsx)(c.default,{href:"/",children:(0,a.jsx)("strong",{className:"h4 mb-6 font-hkgrotesk",children:" DeAP Learning"})})})]})]}),(0,a.jsxs)("div",{className:"container-logo mb-2 w-full justify-center md:hidden",children:[!1,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grow"}),(0,a.jsx)(c.default,{href:"/",children:(0,a.jsx)(N.bz,{className:"mx-auto",src:"dl.com/images/original.svg",width:35,height:42,alt:"logo"})}),(0,a.jsx)(c.default,{href:"/",children:(0,a.jsx)("strong",{className:"h4 my-4 grow font-hkgrotesk",children:" DeAP Learning"})}),(0,a.jsx)("div",{className:"grow"})]})]}),(0,a.jsx)("div",{className:"flex flex-1 justify-center xl:ml-6 xl:max-w-xs xl:justify-end",children:(0,a.jsx)("div",{className:"w-full max-w-xl xl:max-w-xs",children:(0,a.jsx)(h.h,{as:"div",value:C,onChange:U,children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(h.h.Input,{className:"block w-full rounded-md border-0 bg-gray-700 py-1.5 pl-3 pr-3 text-gray-300 placeholder:text-gray-400 focus:border-gray-800 focus:text-gray-100 focus:ring-0 sm:text-sm sm:leading-6",onChange:e=>r(e.target.value),displayValue:e=>(null==e?void 0:e.name)||"",placeholder:"Search for a course..",onFocus:()=>{(null==P?void 0:P.current)&&P.current.click()}}),(0,a.jsx)(h.h.Button,{className:"hidden",ref:P}),L.length>0&&(0,a.jsx)(h.h.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-gray-700 py-1 text-base shadow-xl ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:L.map(e=>(0,a.jsx)(h.h.Option,{value:e,className:e=>{let{active:t}=e;return y("relative cursor-default select-none py-2 pl-3 pr-9",t?"bg-indigo-600 text-white":"text-gray-300")},children:t=>{let{active:s,selected:n}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("span",{className:y("truncate",n&&"font-semibold"),children:e.name}),(0,a.jsxs)("span",{className:y("ml-2 truncate text-gray-500",s?"text-indigo-200":"text-gray-500"),children:["w/ ",(0,a.jsx)("strong",{children:e.teacher}),"!"]})]}),n&&(0,a.jsx)("span",{className:y("absolute inset-y-0 right-0 flex items-center pr-4",s?"text-white":"text-indigo-600"),children:(0,a.jsx)(f.Z,{className:"h-5 w-5","aria-hidden":"true"})})]})}},e.name))})]})})})}),(0,a.jsx)("div",{className:"flex xl:hidden",children:(0,a.jsxs)(m.p.Button,{className:"inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-700 hover:text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",children:[(0,a.jsx)("span",{className:"sr-only",children:"Open main menu"}),k?(0,a.jsx)(g.Z,{className:"block h-6 w-6","aria-hidden":"true"}):(0,a.jsx)(p.Z,{className:"block h-6 w-6","aria-hidden":"true"})]})}),(0,a.jsx)("div",{className:"hidden xl:ml-4 xl:block",children:(0,a.jsx)("div",{className:"flex items-center",children:"loading"!==j&&i?(0,a.jsxs)(u.v,{as:"div",className:"relative ml-4 flex-shrink-0",children:[(0,a.jsx)("div",{children:(0,a.jsxs)(u.v.Button,{className:"flex rounded-full bg-gray-800 text-sm text-white focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-800",children:[(0,a.jsx)("span",{className:"sr-only",children:"Open user menu"}),(0,a.jsx)(d.default,{className:"h-8 w-8 rounded-full",src:null!==(s=i.user.image)&&void 0!==s?s:w.JU,width:32,height:32,alt:"Your Profile"})]})}),(0,a.jsx)(x.u,{as:o.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,a.jsxs)(u.v.Items,{className:"absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-gray-700 py-1 shadow-xl ring-1 ring-black ring-opacity-5 focus:outline-none",children:[(0,a.jsx)(u.v.Item,{children:e=>{let{active:t}=e;return(0,a.jsx)(c.default,{href:"/settings",className:y(t?"bg-gray-600":"","block px-4 py-2 text-sm"),children:"Settings"})}}),(0,a.jsx)(u.v.Item,{children:e=>{let{active:t}=e;return(0,a.jsx)(c.default,{href:"/api/managePayment",className:y(t?"bg-gray-600":"","block px-4 py-2 text-sm"),children:"Manage Subscription"})}}),(0,a.jsx)(u.v.Item,{children:e=>{let{active:t}=e;return(0,a.jsx)("button",{type:"button",onClick:()=>{v.ZP.reset(),(0,n.signOut)()},className:y(t?"bg-gray-600":"","block w-full px-4 py-2 text-left text-sm"),children:"Sign out"})}})]})})]}):(0,a.jsx)(c.default,{href:"/signin?redirect=".concat(t),children:(0,a.jsx)(b.Z,{className:"shadow-2xl",background:"#4F46E5",children:(0,a.jsxs)("span",{className:"whitespace-pre-wrap from-white to-slate-900/10 px-2 py-1 text-center text-lg font-medium leading-none tracking-tight text-white",children:["Get Started"," ",(0,a.jsx)("span",{className:"ml-1 tracking-normal text-sky-300 transition-transform duration-150 ease-in-out group-hover:translate-x-0.5",children:"->"})]})})})})})]})})}),(0,a.jsxs)(m.p.Panel,{className:"xl:hidden",children:[(0,a.jsx)("div",{className:"mt-28 space-y-1 px-2 pb-0 pt-2",children:_.map(e=>(0,a.jsx)(m.p.Button,{as:"a",href:e.href,className:y("block rounded-md px-3 py-2 text-base font-medium",e.href===t?"bg-gray-900 text-white":"text-gray-300 hover:bg-gray-700 hover:text-white"),children:e.name},e.name))}),i?(0,a.jsxs)("div",{className:"border-t border-gray-700 pb-3 pt-4",children:[(0,a.jsxs)("div",{className:"flex items-center px-5",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(d.default,{className:"h-10 w-10 rounded-full",src:null!==(l=null==i?void 0:i.user.image)&&void 0!==l?l:w.JU,width:32,height:32,alt:""})}),(0,a.jsxs)("div",{className:"ml-3",children:[(0,a.jsx)("div",{className:"text-base font-medium text-white",children:null==i?void 0:i.user.name}),(0,a.jsx)("div",{className:"text-sm font-medium text-gray-400",children:null==i?void 0:i.user.email})]})]}),(0,a.jsxs)("div",{className:"mt-3 space-y-1 px-2",children:[(0,a.jsx)(m.p.Button,{as:"a",href:"/settings",className:"block rounded-md px-3 py-2 text-base font-medium text-gray-400 hover:bg-gray-700 hover:text-white",children:"Settings"}),(0,a.jsx)(m.p.Button,{as:"a",href:"/api/managePayment",className:"block rounded-md px-3 py-2 text-base font-medium text-gray-400 hover:bg-gray-700 hover:text-white",children:"Manage Subscription"}),(0,a.jsx)(m.p.Button,{as:"button",onClick:()=>{v.ZP.reset(),(0,n.signOut)()},className:"block w-full rounded-md px-3 py-2 text-left text-base font-medium text-gray-400 hover:bg-gray-700 hover:text-white",children:"Sign out"})]})]}):(0,a.jsx)(c.default,{className:"btn-sm group w-full shadow-sm md:w-max",href:"/signin?redirect=".concat(t),children:(0,a.jsx)(b.Z,{className:"shadow-2xl",background:"#4F46E5",children:(0,a.jsxs)("span",{className:"whitespace-pre-wrap from-white to-slate-900/10 px-2 py-1 text-center text-lg font-medium leading-none tracking-tight text-white",children:["Get Started"," ",(0,a.jsx)("span",{className:"ml-1 tracking-normal text-sky-300 transition-transform duration-150 ease-in-out group-hover:translate-x-0.5",children:"->"})]})})})]})]})}})}var C=s(21857);function U(e){let{mode:t,workshop:s,text:n,link:r,stateFunctions:{setSelectedMode:i,setSelectedWorkshopMode:l,setIsOpen:o}}=e;return(0,a.jsxs)("li",{children:[!r&&(0,a.jsx)("button",{type:"button",onClick:()=>{i(t),l(s),o(!0)},className:"font-normal text-slate-400 transition duration-150 ease-in-out hover:text-white",children:n}),r&&(0,a.jsx)(c.default,{href:r,className:"text-slate-400 transition duration-150 ease-in-out hover:text-white",children:n})]})}function L(){let[e,t]=(0,o.useState)(!1),[s,n]=(0,o.useState)(void 0),[r,i]=(0,o.useState)(void 0),[m,u]=(0,o.useState)("grader"),x={setSelectedMode:i,setSelectedWorkshopMode:u,setIsOpen:t},g=Object.entries(j.lH).filter(e=>{let[t,s]=e;return""!==s.teacher&&"econ101"!==t}).map(e=>{let[t,s]=e;return{...s,link:t,mode:["learn",...j.tx.includes(t)?[]:j.nu.includes(t)?["saq","dbq","leq"]:["frq"]]}}),[p,w]=(0,o.useState)(""),b=""===p?r?g.filter(e=>e.mode.includes(r)):g:r?g.filter(e=>e.name.toLowerCase().includes(p.toLowerCase())&&e.mode.includes(r)):g.filter(e=>e.name.toLowerCase().includes(p.toLowerCase())),v=(0,o.useRef)(null),y=(0,l.useRouter)();return(0,o.useEffect)(()=>{s&&y.push("/courses/".concat(s.link,"/chat?mode=").concat(r||"learn","&workshopMode=").concat(m||"grader"))},[s]),(0,a.jsxs)("footer",{children:[(0,a.jsxs)("div",{className:"mx-auto max-w-6xl px-4 sm:px-6",children:[(0,a.jsxs)("div",{className:"grid gap-8 border-t border-slate-800 pt-8 sm:grid-cols-12 md:pt-12 lg:grid-cols-10",children:[(0,a.jsxs)("div",{className:"sm:col-span-12 lg:col-span-2 lg:max-w-xs",children:[(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)(c.default,{className:"inline-flex",href:"/",target:"Home","aria-label":"DeAP Learning",children:(0,a.jsx)(N.bz,{className:"mx-auto",src:"dl.com/images/RightColorFooterImage.png",width:75,height:90,alt:"logo"})})}),(0,a.jsx)(c.default,{href:"https://posthog.com?utm_source=badge",title:"Built with PostHog analytics + more",target:"_blank",className:"mt-2","aria-label":"Built with PostHog analytics + more",rel:"noopener noreferrer",children:(0,a.jsx)(d.default,{src:"https://d1hovhsvet4m1p.cloudfront.net/badges/posthog-badge-transparent-bg-white-text.svg",alt:"PostHog.com Logo",width:99,height:41})})]}),(0,a.jsxs)("div",{className:"sm:col-span-6 md:col-span-3 lg:col-span-2",children:[(0,a.jsx)("h6",{className:"mb-3 text-xs font-bold uppercase text-slate-200",children:"Courses"}),(0,a.jsxs)("ul",{className:"space-y-2 text-sm",children:[(0,a.jsx)(U,{link:"/courses/ap-us-history/chat",text:"AP US History",stateFunctions:x}),(0,a.jsx)(U,{link:"/courses/ap-world-history/chat",text:"AP World History",stateFunctions:x}),(0,a.jsx)(U,{link:"/courses/ap-european-history/chat",text:"AP European History",stateFunctions:x}),(0,a.jsx)(U,{text:"View More",stateFunctions:x})]})]}),(0,a.jsxs)("div",{className:"sm:col-span-6 md:col-span-3 lg:col-span-2",children:[(0,a.jsx)("h6",{className:"mb-3 text-xs font-bold uppercase text-slate-200",children:"Graders"}),(0,a.jsxs)("ul",{className:"space-y-2 text-sm",children:[(0,a.jsx)(U,{mode:"saq",workshop:"grader",text:"SAQ Grader",stateFunctions:x}),(0,a.jsx)(U,{mode:"leq",workshop:"grader",text:"LEQ Grader",stateFunctions:x}),(0,a.jsx)(U,{mode:"dbq",workshop:"grader",text:"DBQ Grader",stateFunctions:x}),(0,a.jsx)(U,{workshop:"grader",text:"FRQ Grader",stateFunctions:x})]})]}),(0,a.jsxs)("div",{className:"sm:col-span-6 md:col-span-3 lg:col-span-2",children:[(0,a.jsx)("h6",{className:"mb-3 text-xs font-bold uppercase text-slate-200",children:"Tutors"}),(0,a.jsxs)("ul",{className:"space-y-2 text-sm",children:[(0,a.jsx)(U,{mode:"saq",workshop:"tutor",text:"SAQ Tutor",stateFunctions:x}),(0,a.jsx)(U,{mode:"leq",workshop:"tutor",text:"LEQ Tutor",stateFunctions:x}),(0,a.jsx)(U,{mode:"dbq",workshop:"tutor",text:"DBQ Tutor",stateFunctions:x}),(0,a.jsx)(U,{workshop:"tutor",text:"FRQ Tutor",stateFunctions:x})]})]}),(0,a.jsxs)("div",{className:"sm:col-span-6 md:col-span-3 lg:col-span-2",children:[(0,a.jsx)("h6",{className:"mb-3 text-xs font-bold uppercase text-slate-200",children:"Company"}),(0,a.jsxs)("ul",{className:"space-y-2 text-sm",children:[(0,a.jsx)(U,{link:"/about",text:"About",stateFunctions:x}),(0,a.jsx)(U,{link:"/about",text:"Team",stateFunctions:x}),(0,a.jsx)(U,{link:"/join",text:"Join Us",stateFunctions:x}),(0,a.jsx)(U,{link:"/privacy-policy",text:"Privacy Policy",stateFunctions:x}),(0,a.jsx)(U,{link:"/partners",text:"Channel Partners",stateFunctions:x}),(0,a.jsx)(U,{link:"/ambassadors",text:"Student Ambassadors",stateFunctions:x})]})]})]}),(0,a.jsxs)("div",{className:"flex-col gap-2 pb-4 md:flex md:items-center md:justify-center md:pb-8",children:[(0,a.jsxs)("ul",{className:"mb-4 flex gap-3 md:order-1 md:mb-0 md:ml-4",children:[(0,a.jsx)("li",{children:(0,a.jsx)(c.default,{className:"flex items-center justify-center text-indigo-500 transition duration-150 ease-in-out hover:text-slate-300",href:"https://www.instagram.com/deap_learning1",target:"_blank","aria-label":"Instagram",title:"DeAP Learning Labs on Instagram",children:(0,a.jsxs)("svg",{className:"h-8 w-8 fill-current",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),(0,a.jsx)("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("g",{id:"SVGRepo_iconCarrier",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 6C2 3.79086 3.79086 2 6 2H18C20.2091 2 22 3.79086 22 6V18C22 20.2091 20.2091 22 18 22H6C3.79086 22 2 20.2091 2 18V6ZM6 4C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V6C20 4.89543 19.1046 4 18 4H6ZM12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9ZM7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12ZM17.5 8C18.3284 8 19 7.32843 19 6.5C19 5.67157 18.3284 5 17.5 5C16.6716 5 16 5.67157 16 6.5C16 7.32843 16.6716 8 17.5 8Z"})})]})})}),(0,a.jsx)("li",{children:(0,a.jsx)(c.default,{className:"flex items-center justify-center text-indigo-500 transition duration-150 ease-in-out hover:text-slate-300",href:"https://www.tiktok.com/@deap_learning",target:"_blank","aria-label":"Tiktok",title:"DeAP Learning Labs on Tiktok",children:(0,a.jsxs)("svg",{className:"h-8 w-8 fill-current",viewBox:"0 0 512 512",id:"icons",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),(0,a.jsx)("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("g",{id:"SVGRepo_iconCarrier",children:(0,a.jsx)("path",{d:"M412.19,118.66a109.27,109.27,0,0,1-9.45-5.5,132.87,132.87,0,0,1-24.27-20.62c-18.1-20.71-24.86-41.72-27.35-56.43h.1C349.14,23.9,350,16,350.13,16H267.69V334.78c0,4.28,0,8.51-.18,12.69,0,.52-.05,1-.08,1.56,0,.23,0,.47-.05.71,0,.06,0,.12,0,.18a70,70,0,0,1-35.22,55.56,68.8,68.8,0,0,1-34.11,9c-38.41,0-69.54-31.32-69.54-70s31.13-70,69.54-70a68.9,68.9,0,0,1,21.41,3.39l.1-83.94a153.14,153.14,0,0,0-118,34.52,161.79,161.79,0,0,0-35.3,43.53c-3.48,6-16.61,30.11-18.2,69.24-1,22.21,5.67,45.22,8.85,54.73v.2c2,5.6,9.75,24.71,22.38,40.82A167.53,167.53,0,0,0,115,470.66v-.2l.2.2C155.11,497.78,199.36,496,199.36,496c7.66-.31,33.32,0,62.46-13.81,32.32-15.31,50.72-38.12,50.72-38.12a158.46,158.46,0,0,0,27.64-45.93c7.46-19.61,9.95-43.13,9.95-52.53V176.49c1,.6,14.32,9.41,14.32,9.41s19.19,12.3,49.13,20.31c21.48,5.7,50.42,6.9,50.42,6.9V131.27C453.86,132.37,433.27,129.17,412.19,118.66Z"})})]})})}),(0,a.jsx)("li",{children:(0,a.jsx)(c.default,{className:"flex items-center justify-center text-indigo-500 transition duration-150 ease-in-out hover:text-slate-300",href:"https://www.linkedin.com/company/deap-learning",target:"_blank","aria-label":"LinkedIn",title:"DeAP Learning Labs on LinkedIn",children:(0,a.jsxs)("svg",{className:"mb-1 h-8 w-8 fill-current",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 310 310",children:[(0,a.jsx)("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),(0,a.jsx)("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("g",{id:"SVGRepo_iconCarrier",children:(0,a.jsxs)("g",{id:"XMLID_801_",children:[(0,a.jsx)("path",{id:"XMLID_802_",d:"M72.16,99.73H9.927c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5H72.16c2.762,0,5-2.238,5-5V104.73 C77.16,101.969,74.922,99.73,72.16,99.73z"}),(0,a.jsx)("path",{id:"XMLID_803_",d:"M41.066,0.341C18.422,0.341,0,18.743,0,41.362C0,63.991,18.422,82.4,41.066,82.4 c22.626,0,41.033-18.41,41.033-41.038C82.1,18.743,63.692,0.341,41.066,0.341z"}),(0,a.jsx)("path",{id:"XMLID_804_",d:"M230.454,94.761c-24.995,0-43.472,10.745-54.679,22.954V104.73c0-2.761-2.238-5-5-5h-59.599 c-2.762,0-5,2.239-5,5v199.928c0,2.762,2.238,5,5,5h62.097c2.762,0,5-2.238,5-5v-98.918c0-33.333,9.054-46.319,32.29-46.319 c25.306,0,27.317,20.818,27.317,48.034v97.204c0,2.762,2.238,5,5,5H305c2.762,0,5-2.238,5-5V194.995 C310,145.43,300.549,94.761,230.454,94.761z"})]})})]})})}),(0,a.jsx)("li",{children:(0,a.jsx)(c.default,{className:"flex items-center justify-center text-indigo-500 transition duration-150 ease-in-out hover:text-slate-300",href:"https://discord.gg/deaplearning",target:"_blank","aria-label":"Discord",title:"DeAP Learning Labs on Discord",children:(0,a.jsxs)("svg",{className:"mb-1 h-10 w-10 fill-current",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",children:[(0,a.jsx)("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),(0,a.jsx)("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("g",{id:"SVGRepo_iconCarrier",children:(0,a.jsx)("path",{d:"M10.13831,10.62982h-.00013a1.05288,1.05288,0,1,0,.00013,0Zm3.75427,0a1.14582,1.14582,0,1,0,1.04907,1.14166A1.09586,1.09586,0,0,0,13.89258,10.62982Zm4.99878-8.6297H5.10864A2.11364,2.11364,0,0,0,3,4.119V18.02527A2.11368,2.11368,0,0,0,5.10864,20.1441H16.77258l-.54516-1.90289,1.31653,1.224,1.24462,1.152L21,22.57153V4.119A2.11364,2.11364,0,0,0,18.89136,2.00012ZM14.92114,15.43323v.00006s-.37036-.44232-.67895-.83319a3.2459,3.2459,0,0,0,1.86181-1.224,5.87837,5.87837,0,0,1-1.18286.60681,6.76974,6.76974,0,0,1-1.49145.44232,7.206,7.206,0,0,1-2.66394-.01025,8.64456,8.64456,0,0,1-1.51209-.44226,6.03735,6.03735,0,0,1-.75085-.34973c-.03089-.02063-.06165-.03089-.09253-.05146a.14171.14171,0,0,1-.04114-.03082c-.18506-.10284-.28809-.17487-.28809-.17487A3.19975,3.19975,0,0,0,9.8811,14.57953c-.30847.39093-.68908.8537-.68908.8537a3.72892,3.72892,0,0,1-3.13709-1.56342A13.775,13.775,0,0,1,7.536,7.87323a5.08641,5.08641,0,0,1,2.89026-1.08l.10278.12348A6.93762,6.93762,0,0,0,7.824,8.2641s.22632-.12341.60682-.29828a7.722,7.722,0,0,1,2.335-.64795,1.00465,1.00465,0,0,1,.17492-.02063,8.702,8.702,0,0,1,2.07764-.02051,8.384,8.384,0,0,1,3.096.98737,6.84576,6.84576,0,0,0-2.561-1.30628l.14392-.16449a5.08575,5.08575,0,0,1,2.89026,1.08,13.77368,13.77368,0,0,1,1.4812,5.99652A3.75972,3.75972,0,0,1,14.92114,15.43323Z"})})]})})})]}),(0,a.jsx)("p",{className:"order-1 font-bold text-slate-500",children:"\xa9 2024 DeAP Learning Labs All rights reserved."}),(0,a.jsx)("p",{className:"order-1 text-center text-sm text-slate-500",children:"Advanced Placement\xae and AP\xae are trademarks registered and/or owned by the College Board, and is in no way affiliated with DeAP Learning Labs or any partnered teacher \xa9"})]})]}),(0,a.jsx)(C.V,{open:e,onClose:()=>t(!1),className:"relative z-50 text-white",children:(0,a.jsx)("div",{className:"fixed inset-0 flex w-screen items-center justify-center backdrop-blur-md",children:(0,a.jsxs)(C.V.Panel,{className:"w-full max-w-3xl rounded-xl bg-slate-800 p-6 pb-4 ring-1 ring-slate-700",children:[(0,a.jsxs)(C.V.Title,{className:"text-center text-2xl font-semibold",children:["Select a Course ",r&&(0,a.jsxs)(a.Fragment,{children:["(",r.toUpperCase(),")"]})]}),(0,a.jsx)(h.h,{as:"div",value:s,onChange:n,children:(0,a.jsxs)("div",{className:"relative mb-8 mt-4",children:[(0,a.jsx)(h.h.Input,{className:"block w-full rounded-md border-0 bg-gray-700 py-1.5 pl-3 pr-3 text-gray-300 placeholder:text-gray-400 focus:border-gray-800 focus:text-gray-100 focus:ring-0 sm:text-sm sm:leading-6",onChange:e=>w(e.target.value),displayValue:e=>(null==e?void 0:e.name)||"",placeholder:"Search for a course..",onFocus:()=>{(null==v?void 0:v.current)&&v.current.click()}}),(0,a.jsx)(h.h.Button,{className:"hidden",ref:v}),b&&b.length>0&&(0,a.jsx)(h.h.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-gray-700 py-1 text-base shadow-xl ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:b.map(e=>(0,a.jsx)(h.h.Option,{value:e,className:e=>{let{active:t}=e;return"relative cursor-default select-none py-2 pl-3 pr-9 ".concat(t?"bg-indigo-600 text-white":"text-gray-300")},children:t=>{let{active:s,selected:n}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("span",{className:"truncate ".concat(n?"font-semibold":""),children:e.name}),(0,a.jsxs)("span",{className:"ml-2 truncate text-gray-500 ".concat(s?"text-indigo-200":"text-gray-500"),children:["w/ ",(0,a.jsx)("strong",{children:e.teacher}),"!"]})]}),n&&(0,a.jsx)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-4 ".concat(s?"text-white":"text-indigo-600"),children:(0,a.jsx)(f.Z,{className:"h-5 w-5","aria-hidden":"true"})})]})}},e.name))})]})})]})})})]})}function P(e){let{title:t,message:s}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-x-6 bg-purple-600 px-6 py-2.5 sm:px-3.5 sm:before:flex-1",children:[(0,a.jsxs)("p",{className:"text-sm leading-6 text-white",children:[(0,a.jsx)("strong",{className:"font-semibold",children:t}),(0,a.jsx)("svg",{viewBox:"0 0 2 2",className:"mx-2 inline h-0.5 w-0.5 fill-current","aria-hidden":"true",children:(0,a.jsx)("circle",{cx:1,cy:1,r:1})}),s]}),(0,a.jsx)("div",{className:"flex flex-1 justify-end",children:(0,a.jsx)("button",{type:"button",className:"-m-3 p-3 focus-visible:outline-offset-[-4px]",children:(0,a.jsx)("span",{className:"sr-only",children:"Dismiss"})})})]})}let E=e=>e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");function S(){let[e,t]=(0,o.useState)(null);return((0,o.useEffect)(()=>{(async()=>{try{let e=await fetch("https://status.deaplearning.com/api/v2/summary.json"),s=await e.json(),a=s.incidents.map(e=>"".concat(e.name," (").concat(E(e.status),")")),n=s.scheduled_maintenances.map(e=>"".concat(e.name," (").concat(E(e.status),")"));return t({indicator:s.status.indicator,description:s.status.description,issueList:a.concat(n).join(", ")})}catch(e){return console.log("Failed to fetch status data",e),t(null)}})()},[]),e&&"none"!==e.indicator)?(0,a.jsxs)("div",{className:"flex items-center gap-x-6 px-6 py-2.5 sm:px-3.5 sm:before:flex-1 ".concat({minor:"bg-indigo-600",major:"bg-orange-600",critical:"bg-red-600"}[e.indicator]),children:[(0,a.jsxs)("p",{className:"text-sm leading-6 text-white",children:[(0,a.jsx)("strong",{className:"font-semibold",children:e.description}),(0,a.jsx)("svg",{viewBox:"0 0 2 2",className:"mx-2 inline h-0.5 w-0.5 fill-current","aria-hidden":"true",children:(0,a.jsx)("circle",{cx:1,cy:1,r:1})}),""!==e.issueList&&(0,a.jsxs)("span",{className:"hidden md:inline-block",children:[e.issueList,(0,a.jsx)("svg",{viewBox:"0 0 2 2",className:"mx-2 inline h-0.5 w-0.5 fill-current","aria-hidden":"true",children:(0,a.jsx)("circle",{cx:1,cy:1,r:1})})]}),"Learn more at"," ",(0,a.jsx)(c.default,{href:"https://status.deaplearning.com",className:"underline hover:no-underline",target:"_BLANK",children:"status.deaplearning.com"}),"."]}),(0,a.jsx)("div",{className:"flex flex-1 justify-end",children:(0,a.jsx)("button",{type:"button",className:"-m-3 p-3 focus-visible:outline-offset-[-4px]",children:(0,a.jsx)("span",{className:"sr-only",children:"Dismiss"})})})]}):null}var A=s(41803);function I(e){let{children:t}=e,s=(0,l.usePathname)();return(0,o.useEffect)(()=>{i().init({once:!0,disable:"phone",duration:600,easing:"ease-out-sine"})}),(0,a.jsx)(n.SessionProvider,{children:(0,a.jsxs)("div",{className:"flex min-h-screen flex-col overflow-hidden",children:["false"!==A.A.NEXT_PUBLIC_ISSUE.toLowerCase()&&(0,a.jsx)(P,{title:A.A.NEXT_PUBLIC_ISSUE_TITLE,message:A.A.NEXT_PUBLIC_ISSUE_MESSAGE}),(0,a.jsx)(S,{}),(0,a.jsx)(_,{}),(0,a.jsxs)("main",{className:"grow",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute left-1/2 -z-10 hidden -translate-x-1/2 md:block","aria-hidden":"true",children:(0,a.jsx)(N.bz,{src:"dl.com/images/hero-illustration.svg",className:"max-w-screen",priority:!0,alt:"Hero Illustration",width:1920,height:1080})}),t]}),s.endsWith("chat")||(0,a.jsx)(L,{})]})})}},20760:function(e,t,s){"use strict";s.d(t,{UXProvider:function(){return c}});var a=s(89254),n=s(41803),r=s(7888),i=s(78414),l=s(40252),o=s(58544);function c(e){let{children:t,session:s}=e;return(0,o.useEffect)(()=>{s&&(r.ZP.identify(s.user.id,{email:s.user.email,name:s.user.name}),i.av({id:s.user.id,email:s.user.email||void 0,username:s.user.name||void 0,ip_address:"{{auto}}"}))},[r.ZP,s]),(0,a.jsx)(l.zf,{client:r.ZP,children:t})}r.ZP.init(n.A.NEXT_PUBLIC_POSTHOG_KEY,{api_host:n.A.NEXT_PUBLIC_POSTHOG_HOST})},89887:function(e,t,s){"use strict";var a=s(89254),n=s(58544),r=s(28385);let i=n.forwardRef((e,t)=>{let{shimmerColor:s="#ffffff",shimmerSize:n="0.05em",shimmerDuration:i="3s",borderRadius:l="100px",background:o="rgba(0, 0, 0, 1)",className:c,children:d,...m}=e;return(0,a.jsxs)("button",{style:{"--spread":"90deg","--shimmer-color":s,"--radius":l,"--speed":i,"--cut":n,"--bg":o},className:(0,r.cn)("group relative z-0 flex cursor-pointer items-center justify-center overflow-hidden whitespace-nowrap border border-white/10 px-6 py-3 text-white [background:var(--bg)] [border-radius:var(--radius)]","transform-gpu transition-transform duration-300 ease-in-out active:translate-y-[1px]",c),ref:t,type:"button",...m,children:[(0,a.jsx)("div",{className:(0,r.cn)("-z-30 blur-[2px]","absolute inset-0 overflow-visible [container-type:size]"),children:(0,a.jsx)("div",{className:"absolute inset-0 h-[100cqh] animate-slide [aspect-ratio:1] [border-radius:0] [mask:none]",children:(0,a.jsx)("div",{className:"absolute inset-[-100%] w-auto rotate-0 animate-spin-shimmer [background:conic-gradient(from_calc(270deg-(var(--spread)*0.5)),transparent_0,var(--shimmer-color)_var(--spread),transparent_var(--spread))] [translate:0_0]"})})}),d,(0,a.jsx)("div",{className:(0,r.cn)("insert-0 absolute h-full w-full","rounded-2xl px-4 py-1.5 text-sm font-medium shadow-[inset_0_-8px_10px_#ffffff1f]","transform-gpu transition-all duration-300 ease-in-out","group-hover:shadow-[inset_0_-6px_10px_#ffffff3f]","group-active:shadow-[inset_0_-10px_10px_#ffffff3f]")}),(0,a.jsx)("div",{className:(0,r.cn)("absolute -z-20 [background:var(--bg)] [border-radius:var(--radius)] [inset:var(--cut)]")})]})});i.displayName="ShimmerButton",t.Z=i},41803:function(e,t,s){"use strict";var a=s(4217);let{z:n}=s(71214),r=n.object({NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME:n.string(),NEXT_PUBLIC_ISSUE:n.string(),NEXT_PUBLIC_ISSUE_MESSAGE:n.string(),NEXT_PUBLIC_ISSUE_TITLE:n.string(),NEXT_PUBLIC_POSTHOG_HOST:n.string(),NEXT_PUBLIC_POSTHOG_KEY:n.string(),NEXT_PUBLIC_TURNSTILE_SITE_KEY:n.string(),NODE_ENV:n.enum(["development","test","production"])}).safeParse({NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME:"emberlearning",NEXT_PUBLIC_ISSUE:"false",NEXT_PUBLIC_ISSUE_MESSAGE:"We couldn't have done this without YOU! Help shape our future by leaving some feedback on our Contact page.",NEXT_PUBLIC_ISSUE_TITLE:"1 Million Questions!",NEXT_PUBLIC_POSTHOG_HOST:"https://deaplearning.com/ingest",NEXT_PUBLIC_POSTHOG_KEY:"phc_58AEXEGTcFhC4NB7DSXPn748FOnvWgoJEtywoxBQ9u9",NEXT_PUBLIC_TURNSTILE_SITE_KEY:"0x4AAAAAAAPHi1-RgQoTuIDR",NODE_ENV:"production"});r.success||(console.error("❌ Invalid environment variables:",JSON.stringify(r.error.format(),null,4)),a.exit(1)),e.exports.A=r.data},13821:function(e,t,s){"use strict";s.d(t,{FV:function(){return a},JU:function(){return n},SS:function(){return i},o3:function(){return r}});let a=[{name:"Harry Fazzone",role:"Chief Executive Officer",imageUrl:"dl.com/images/Harry Web Photo.png",location:"Durham, North Carolina",instagramUrl:"https://www.instagram.com/harryfazzone/",linkedinUrl:"https://www.linkedin.com/in/harry-fazzone-6ab0a0240/",githubUrl:"https://github.com/1hf1",votes:{student:!0,matcha:!0,code:!0,nightOwl:!0}},{name:"Neil Shah",role:"Chief Operating Officer",imageUrl:"dl.com/images/Neil Photo 201.jpg",location:"Raleigh, North Carolina",instagramUrl:"https://www.instagram.com/neilshah.14/",linkedinUrl:"https://www.linkedin.com/in/n-shah/",githubUrl:"https://github.com/NeilShah352",votes:{student:!0,matcha:!0,code:!0,nightOwl:!0}},{name:"Anish Anne",role:"Chief Technology Officer",imageUrl:"dl.com/images/Anish Web Photo.jpg",location:"Hopewell Junction, New York",linkedinUrl:"https://www.linkedin.com/in/anish-anne/",githubUrl:"https://github.com/anishanne",votes:{student:!0,matcha:!1,code:!0,nightOwl:!0}},{name:"Steven Goetz",role:"Chief Strategy Officer",imageUrl:"dl.com/images/Steven Web Photo.jpg",location:"Weston, Florida",instagramUrl:"https://www.instagram.com/steven_goetz_/",linkedinUrl:"https://www.linkedin.com/in/steven-goetz-b2a826234/",votes:{student:!0,matcha:!0,code:!1,nightOwl:!0}},{name:"Nebai Araya",role:"Output Engineering Lead",imageUrl:"dl.com/images/Nebai Web Photo.jpg",location:"Raleigh, North Carolina",instagramUrl:"https://www.instagram.com/nebai.araya/",linkedinUrl:"https://www.linkedin.com/in/nebai-araya-613b16272/",votes:{student:!0,matcha:!0,code:!0,nightOwl:!0}},{name:"Leo Zhang",role:"Output Engineering Lead",imageUrl:"dl.com/images/Leo Web Photo.jpg",location:"Raleigh, North Carolina",instagramUrl:"https://www.instagram.com/_lzhang/",linkedinUrl:"https://www.linkedin.com/in/leo-zhang-346018284/",votes:{student:!0,matcha:!0,code:!0,nightOwl:!0}},{name:"Isaac Yuan",role:"AI Engineering Lead",imageUrl:"dl.com/images/Isaac Web Photo.jpeg",location:"Cary, North Carolina",instagramUrl:"https://www.instagram.com/isaacyuan.16/",linkedinUrl:"https://www.linkedin.com/in/isaac-yuan-723b422a6/",githubUrl:"https://github.com/izyuan",votes:{student:!0,matcha:!0,code:!0,nightOwl:!1}},{name:"Nash Pillai",role:"Interface Engineering Lead",imageUrl:"dl.com/images/Nash Web Photo.jpg",location:"Hopewell Junction, New York",linkedinUrl:"https://www.linkedin.com/in/nash-pillai/",githubUrl:"https://github.com/nash-pillai",votes:{student:!0,matcha:!1,code:!0,nightOwl:!0}},{name:"Matthew Glasser",role:"Interface Engineering Lead",imageUrl:"dl.com/images/Matthew Web Photo.jpg",location:"Hopewell Junction, New York",linkedinUrl:"https://www.linkedin.com/in/matthew-glasser-b72b742ab/",githubUrl:"https://github.com/jedim101",votes:{student:!0,matcha:!1,code:!0,nightOwl:!0}},{name:"Daniel Lee",role:"Strategic Connections Engineer Lead",imageUrl:"dl.com/images/Daniel Web Photo 2.jpg",location:"Chapel Hill, North Carolina",instagramUrl:"",linkedinUrl:"https://www.linkedin.com/in/ddlee1/",votes:{student:!0,matcha:!0,code:!1,nightOwl:!0}},{name:"Elizabeth Dokulil",role:"Learning Connections Engineer Lead",imageUrl:"dl.com/images/New Elizabeth Web Photo.jpeg",location:"Raleigh, North Carolina",instagramUrl:"https://www.instagram.com/elizabeth.dokulil/",linkedinUrl:"https://www.linkedin.com/in/elizabeth-dokulil-979a932a5/",votes:{student:!0,matcha:!0,code:!1,nightOwl:!1}},{name:"Rushil Desai",role:"Experience Engineering Lead",imageUrl:"dl.com/images/Rushil Web Photo.jpg",location:"Cary, North Carolina",instagramUrl:"https://instagram.com/rushil_d1?igshid=MzRlODBiNWFlZA==",linkedinUrl:"https://www.linkedin.com/in/rushil-desai-b26b16283/",votes:{student:!0,matcha:!0,code:!1,nightOwl:!1}},{name:"Henry D'Ambrosio",role:"UI Engineering Lead",imageUrl:"dl.com/images/Henry Web Photo.jpg",location:"Cary, North Carolina",instagramUrl:"https://www.instagram.com/henry.dambrosio/",linkedinUrl:"https://www.linkedin.com/in/henry-dambrosio/",votes:{student:!0,matcha:!0,code:!1,nightOwl:!0}},{name:"Nadia Ferjani ",role:"Output Engineer",imageUrl:"dl.com/images/Nadia Web Photo.png",location:"Raleigh, North Carolina",instagramUrl:"https://www.instagram.com/neddnoodle/",votes:{student:!0,matcha:!0,code:!1,nightOwl:!0}},{name:"Aaron Feldbaum-Dorfman",role:"Experience Engineer",imageUrl:"dl.com/images/Aaron Web Photo.jpeg",location:"Davie, Florida",instagramUrl:"https://www.instagram.com/aarontheworldtraveler",linkedinUrl:"https://www.linkedin.com/in/aaron-feldbaum-b3ba44300/",votes:{student:!0,matcha:!1,code:!1,nightOwl:!0}},{name:"Jacob Mosu",role:"AI Engineer",imageUrl:"dl.com/images/Jacob Mosu Picture.png",location:"Durham, North Carolina",instagramUrl:"https://www.instagram.com/not_mosu/",linkedinUrl:"https://www.linkedin.com/in/jacob-mosu-b3860a296/",githubUrl:"https://github.com/JacobMosu",votes:{student:!0,matcha:!0,code:!0,nightOwl:!0}}],n="https://img.icons8.com/96/FFFFFF/user-male-circle.png",r=[["20",3e3],["40",7e3],["60",11500],["80",16500],["100",22e3],["200",5e4],["300",8e4],["400",112e3],["500",15e4]],i=["learn","saq-workshop","leq-workshop","dbq-workshop","frq-workshop","synthesis-workshop","rhetoric-workshop","argument-workshop","poetry-workshop","prose-workshop","argumentative-workshop"]},28385:function(e,t,s){"use strict";s.d(t,{cn:function(){return r}});var a=s(56484),n=s(13880);function r(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,n.m6)((0,a.W)(t))}},71334:function(){}},function(e){e.O(0,[8e3,9254,4070,6006,4790,7438,6072,7197,1857,5047,9502,6726,5454,982,1168,8163,1744],function(){return e(e.s=35979)}),_N_E=e.O()}]);