PageSourceSearch

https://duolingo-clone-rho-silk.vercel.app/_next/static/chunks/app/layout-d53ebc5fd89fe4a3.js

js duolingo-clone-rho-silk.vercel.app collected 2026-10-03 06:48:59 UTC 15,936 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{3468:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,q:()=>a});var n=r(12115),s=r(95155);function a(e,t){let r=n.createContext(t),a=e=>{let{children:t,...a}=e,l=n.useMemo(()=>a,Object.values(a));return(0,s.jsx)(r.Provider,{value:l,children:t})};return a.displayName=e+"Provider",[a,function(s){let a=n.useContext(r);if(a)return a;if(void 0!==t)return t;throw Error(`\`${s}\` must be used within \`${e}\``)}]}function l(e,t=[]){let r=[],a=()=>{let t=r.map(e=>n.createContext(e));return function(r){let s=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:s}}),[r,s])}};return a.scopeName=e,[function(t,a){let l=n.createContext(a),o=r.length;r=[...r,a];let i=t=>{let{scope:r,children:a,...i}=t,d=r?.[e]?.[o]||l,u=n.useMemo(()=>i,Object.values(i));return(0,s.jsx)(d.Provider,{value:u,children:a})};return i.displayName=t+"Provider",[i,function(r,s){let i=s?.[e]?.[o]||l,d=n.useContext(i);if(d)return d;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let s=r.reduce((t,{useScope:r,scopeName:n})=>{let s=r(e)[`__scope${n}`];return{...t,...s}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}(a,...t)]}},9911:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});let n=(0,r(25959).v)(e=>({isOpen:!1,open:()=>e({isOpen:!0}),close:()=>e({isOpen:!1})}))},13352:(e,t,r)=>{"use strict";r.d(t,{HeartsModal:()=>u});var n=r(95155),s=r(54679),a=r(15750),l=r(15239),o=r(20063),i=r(12115),d=r(97003);let u=()=>{let e=(0,o.useRouter)(),[t,r]=(0,i.useState)(!1),{isOpen:u,close:c}=(0,a.m)();return((0,i.useEffect)(()=>r(!0),[]),t)?(0,n.jsx)(s.Dialog,{open:u,onOpenChange:c,children:(0,n.jsxs)(s.DialogContent,{className:"max-w-md",children:[(0,n.jsxs)(s.DialogHeader,{children:[(0,n.jsx)("div",{className:"flex items-center w-full justify-center mb-5",children:(0,n.jsx)(l.default,{src:"./mascot_bad.svg",alt:"Mascot",height:80,width:80})}),(0,n.jsx)(s.DialogTitle,{className:"text-center font-bold",children:"You ran out of hearts!"}),(0,n.jsx)(s.DialogDescription,{className:"text-center text-base",children:"Get pro for unlimited hearts or purchase them in the store."})]}),(0,n.jsx)(s.DialogFooter,{children:(0,n.jsxs)("div",{className:"flex flex-col gap-y-4 w-full",children:[(0,n.jsx)(d.$,{variant:"primary",className:"w-full",size:"lg",onClick:()=>{c(),e.push("/store")},children:"Get Unlimited Hearts"}),(0,n.jsx)(d.$,{variant:"primaryOutline",className:"w-full",size:"lg",onClick:c,children:"No Thanks"})]})})]})}):null}},15239:(e,t,r)=>{"use strict";r.d(t,{default:()=>s.a});var n=r(54652),s=r.n(n)},15750:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});let n=(0,r(25959).v)(e=>({isOpen:!1,open:()=>e({isOpen:!0}),close:()=>e({isOpen:!1})}))},20063:(e,t,r)=>{"use strict";var n=r(47260);r.o(n,"redirect")&&r.d(t,{redirect:function(){return n.redirect}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}})},20678:(e,t,r)=>{"use strict";r.d(t,{Toaster:()=>i});var n=r(95155),s=r(12115),a=s.createContext(void 0),l={setTheme:e=>{},themes:[]},o=r(18720);let i=e=>{let{...t}=e,{theme:r="system"}=(()=>{var e;return null!=(e=s.useContext(a))?e:l})();return(0,n.jsx)(o.l$,{theme:r,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...t})}},25016:(e,t,r)=>{"use strict";r.d(t,{cn:()=>a});var n=r(2821),s=r(75889);function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,n.$)(t))}},25959:(e,t,r)=>{"use strict";r.d(t,{v:()=>l});var n=r(12115);let s=e=>{let t,r=new Set,n=(e,n)=>{let s="function"==typeof e?e(t):e;if(!Object.is(s,t)){let e=t;t=(null!=n?n:"object"!=typeof s||null===s)?s:Object.assign({},t,s),r.forEach(r=>r(t,e))}},s=()=>t,a={setState:n,getState:s,getInitialState:()=>l,subscribe:e=>(r.add(e),()=>r.delete(e))},l=t=e(n,s,a);return a},a=e=>{let t=(e=>e?s(e):s)(e),r=e=>(function(e,t=e=>e){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},l=e=>e?a(e):a},29200:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,41290,23)),Promise.resolve().then(r.bind(r,79879)),Promise.resolve().then(r.bind(r,13352)),Promise.resolve().then(r.bind(r,62396)),Promise.resolve().then(r.bind(r,20678)),Promise.resolve().then(r.t.bind(r,63180,23))},32467:(e,t,r)=>{"use strict";r.d(t,{DX:()=>o,TL:()=>l});var n=r(12115),s=r(94446),a=r(95155);function l(e){let t=function(e){let t=n.forwardRef((e,t)=>
1{let{children:r,...a}=e;if(n.isValidElement(r)){var l;let e,o,i=(l=r,(o=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(o=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),d=function(e,t){let r={...t};for(let n in t){let s=e[n],a=t[n];/^on[A-Z]/.test(n)?s&&a?r[n]=(...e)=>{let t=a(...e);return s(...e),t}:s&&(r[n]=s):"style"===n?r[n]={...s,...a}:"className"===n&&(r[n]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==n.Fragment&&(d.ref=t?(0,s.t)(t,i):i),n.cloneElement(r,d)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:s,...l}=e,o=n.Children.toArray(s),i=o.find(d);if(i){let e=i.props.children,s=o.map(t=>t!==i?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...l,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,s):null})}return(0,a.jsx)(t,{...l,ref:r,children:s})});return r.displayName=`${e}.Slot`,r}var o=l("Slot"),i=Symbol("radix.slottable");function d(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===i}},41290:()=>{},50434:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});let n=(0,r(25959).v)(e=>({isOpen:!1,open:()=>e({isOpen:!0}),close:()=>e({isOpen:!1})}))},54652:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return i},getImageProps:function(){return o}});let n=r(28140),s=r(75040),a=r(81356),l=n._(r(71124));function o(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let i=a.Image},54679:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Dialog:()=>o,DialogClose:()=>u,DialogContent:()=>f,DialogDescription:()=>b,DialogFooter:()=>p,DialogHeader:()=>g,DialogOverlay:()=>c,DialogPortal:()=>d,DialogTitle:()=>m,DialogTrigger:()=>i});var n=r(95155);r(12115);var s=r(62784),a=r(65229),l=r(25016);function o(e){let{...t}=e;return(0,n.jsx)(s.bL,{"data-slot":"dialog",...t})}function i(e){let{...t}=e;return(0,n.jsx)(s.l9,{"data-slot":"dialog-trigger",...t})}function d(e){let{...t}=e;return(0,n.jsx)(s.ZL,{"data-slot":"dialog-portal",...t})}function u(e){let{...t}=e;return(0,n.jsx)(s.bm,{"data-slot":"dialog-close",...t})}function c(e){let{className:t,...r}=e;return(0,n.jsx)(s.hJ,{"data-slot":"dialog-overlay",className:(0,l.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...r})}function f(e){let{className:t,children:r,showCloseButton:o=!0,...i}=e;return(0,n.jsxs)(d,{"data-slot":"dialog-portal",children:[(0,n.jsx)(c,{}),(0,n.jsxs)(s.UC,{"data-slot":"dialog-content",className:(0,l.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...i,children:[r,o&&(0,n.jsxs)(s.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,n.jsx)(a.A,{}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function g(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"dialog-header",className:(0,l.cn)("flex flex-col gap-2 text-center sm:text-left",t),...r})}function p(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"dialog-footer",className:(0,l.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...r})}function m(e){let{className:t,...r}=e;return(0,n.jsx)(s.hE,{"data-slot":"dialog-title",className:(0,l.cn)("text-lg leading-none font-semibold",t),...r})}function b(e){let{className:t,...r}=e;return(0,n.jsx)(s.VY,{"data-slot":"dialog-description",className:(0,l.cn)("text-muted-foreground text-sm",t),...r})}},62396:(e,t,r)=>{"use strict";r.d(t,{PractiseModal:()=>d});var n=r(95155),s=r(54679),a=r(50434),l=r(15239),o=r(12115),i=r(97003);let d=()=>{let[e,t]=(0,o.useState)(!1),{isOpen:r,close:d}=(0,a.Q)();return((0,o.useEffect)(()=>t(!0),[]),e)?(0,n.jsx)(s.Dialog,{open:r,onOpenChange:d,children:(0,n.jsxs)(s.DialogContent,{className:"max-w-md",children:[(0,n.jsxs)(s.DialogHeader,{children:[(0,n.jsx)("div",{className:"flex items-center w-full justify-center mb-5",children:(0,n.jsx)(l.default,{src:"/heart.svg",alt:"Hearts",height:100,width:100})}),(0,n.jsx)(s.DialogTitle,{className:"text-center font-bold",children:"Hearts!"}),(0,n.jsx)(s.DialogDescription,{className:"text-center text-base",children:"Use practise lessons to regain hearts. You do not lose your hearts in practise lesson."})]}),(0,n.jsx)(s.DialogFooter,{children:(0,n.jsx)("div",{className:"flex flex-col gap-y-4 w-full",children:(0,n.jsx)(i.$,{variant:"primary",className:"w-full",size:"lg",onClick:d,children:"I understand"})})})]})}):null}},63180:e=>{e.exports={style:{fontFamily:"'Nunito', 'Nunito Fallback'",fontStyle:"normal"},className:"__className_eef148",variable:"__variable_eef148"}},79879:(e,t,r)=>{"use strict";r.d(t,{ExitModal:()=>u});
1var n=r(95155),s=r(54679),a=r(9911),l=r(15239),o=r(20063),i=r(12115),d=r(97003);let u=()=>{let e=(0,o.useRouter)(),[t,r]=(0,i.useState)(!1),{isOpen:u,close:c}=(0,a.r)();return((0,i.useEffect)(()=>r(!0),[]),t)?(0,n.jsx)(s.Dialog,{open:u,onOpenChange:c,children:(0,n.jsxs)(s.DialogContent,{className:"max-w-md",children:[(0,n.jsxs)(s.DialogHeader,{children:[(0,n.jsx)("div",{className:"flex items-center w-full justify-center mb-5",children:(0,n.jsx)(l.default,{src:"/mascot_sad.svg",alt:"Mascot",height:80,width:80})}),(0,n.jsx)(s.DialogTitle,{className:"text-center font-bold",children:"Wait don't go!"}),(0,n.jsx)(s.DialogDescription,{className:"text-center text-base",children:"You're about to leave the lesson. Are you sure?"})]}),(0,n.jsx)(s.DialogFooter,{children:(0,n.jsxs)("div",{className:"flex flex-col gap-y-4 w-full",children:[(0,n.jsx)(d.$,{variant:"primary",className:"w-full",size:"lg",onClick:c,children:"Keep Learning"}),(0,n.jsx)(d.$,{variant:"dangerOutline",className:"w-full",size:"lg",onClick:()=>{c(),e.push("/learn")},children:"End Session"})]})})]})}):null}},83101:(e,t,r)=>{"use strict";r.d(t,{F:()=>l});var n=r(2821);let s=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=n.$,l=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return a(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:l,defaultVariants:o}=t,i=Object.keys(l).map(e=>{let t=null==r?void 0:r[e],n=null==o?void 0:o[e];if(null===t)return null;let a=s(t)||s(n);return l[e][a]}),d=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return a(e,i,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...d}[t]):({...o,...d})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},94446:(e,t,r)=>{"use strict";r.d(t,{s:()=>l,t:()=>a});var n=r(12115);function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t=>{let r=!1,n=e.map(e=>{let n=s(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():s(e[t],null)}}}}function l(...e){return n.useCallback(a(...e),e)}},97003:(e,t,r)=>{"use strict";r.d(t,{$:()=>i});var n=r(95155);r(12115);var s=r(32467),a=r(83101),l=r(25016);let o=(0,a.F)("inline-flex items-center justify-center gap-2 uppercase tracking-wide  whitespace-nowrap rounded-lg  text-md font-bold transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive  cursor-pointer ",{variants:{variant:{locked:"bg-neutral-200 text-primary-foreground hover:bg-neutral-200/90 border-neutral-400 border-b-4 active:border-b-0",default:"bg-white text-black border border-2 border-slate-200 border-b-4 active:border-b-0 hover:bg-slate-100",primary:"bg-sky-400 text-primary-foreground hover:bg-sky-400/90 border-sky-600 border-b-4 active:border-b-0",primaryOutline:"bg-white text-sky-500 hover:bg-slate-100",secondary:"bg-green-400 text-primary-foreground hover:bg-green-400/90 border-green-600 border-b-4 active:border-b-0",secondaryOutline:"bg-white text-green-500 hover:bg-slate-100",danger:"bg-rose-400 text-primary-foreground hover:bg-rose-400/90 border-rose-600 border-b-4 active:border-b-0",dangerOutline:"bg-white text-rose-500 hover:bg-slate-100",super:"bg-indigo-400 text-primary-foreground hover:bg-indigo-400/90 border-indigo-600 border-b-4 active:border-b-0",superOutline:"bg-white text-indigo-500 hover:bg-slate-100",sidebar:"bg-transparent text-slate-500 border-transparent border-2  hover:bg-slate-100 transition-none",sidebarOutline:"bg-sky-500/15 text-sky-500 border-sky-300 border-2 hover:bg-sky-500/20 transition-none",ghost:"bg-transparent text-slate-500 border-transparent border-0 hover:bg-slate-100",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-6 py-4 has-[>svg]:px-3",sm:"h-9 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-11 rounded-md px-6 has-[>svg]:px-4",icon:"size-10","icon-sm":"size-9","icon-lg":"size-12",rounded:"rounded-full"}},defaultVariants:{variant:"default",size:"default"}});function i(e){let{className:t,variant:r,size:a,asChild:i=!1,...d}=e,u=i?s.DX:"button";return(0,n.jsx)(u,{"data-slot":"button",className:(0,l.cn)(o({variant:r,size:a,className:t})),...d})}},97602:(e,t,r)=>{"use strict";r.d(t,{hO:()=>i,sG:()=>o});var n=r(12115),s=r(47650),a=r(32467),l=r(95155),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let r=(0,a.TL)(`Primitive.${t}`),s=n.forwardRef((e,n)=>{let{asChild:s,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(s?r:t,{...a,ref:n})});return s.displayName=`Primitive.${t}`,{...e,[t]:s}},{});function i(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}}},e=>{e.O(0,[8280,4909,1356,8720,1374,2784,8441,1255,7358],()=>e(e.s=29200)),_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.