PageSourceSearch

https://refold.la/_next/static/chunks/14414-452965d1836aecd2.js?dpl=dpl_G5Go47Y3149rUkmLWghsXdUf8AjW

js refold.la collected 2026-09-25 18:53:22 UTC 15,739 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="0e529f52-cf81-453c-8b83-8efe3bcb5412",e._sentryDebugIdIdentifier="sentry-dbid-0e529f52-cf81-453c-8b83-8efe3bcb5412")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[14414],{2254:(e,r,a)=>{a.d(r,{E:()=>l});var t=a(54568);a(7620);var n=a(46118),i=a(54616),s=a(85755);let d=(0,i.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-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 transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary/60 text-secondary-foreground dark:bg-secondary dark:text-secondary-foreground [a&]:hover:bg-secondary/80 dark:[a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-rf-dynamic-success text-rf-dynamic-onSuccess [a&]:hover:bg-rf-dynamic-successDark",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",purple:"border-transparent bg-rf-light-primary100 text-foreground dark:bg-rf-dark-primary200 dark:text-foreground [a&]:hover:bg-rf-light-primary200 dark:[a&]:hover:bg-rf-dark-primary300",muted:"border-transparent bg-muted text-foreground [a&]:hover:bg-muted/80"}},defaultVariants:{variant:"default"}});function l(e){let{className:r,variant:a,asChild:i=!1,...l}=e,o=i?n.DX:"span";return(0,t.jsx)(o,{"data-slot":"badge",className:(0,s.cn)(d({variant:a}),r),...l})}},14414:(e,r,a)=>{a.d(r,{PricingGrid:()=>g});var t=a(54568),n=a(27541),i=a(14936),s=a(2254),d=a(74614),l=a(62638),o=a(85755);function c(e){let{tierName:r,price:a,frequency:n,subtitle:c,description:u,features:m,ctaLabel:f,ctaVariant:g,isFeatured:b=!1,badge:p,badgeVariant:x="default",isCurrentPlan:h=!1,currentPlanAction:v="current",currentTierSlug:y,onCtaClick:j,onManagePlanClick:k}=e,N=h&&"current"===v?(0,t.jsxs)("div",{className:"w-full space-y-2 text-center md:text-left",children:[(0,t.jsx)("div",{className:"flex items-center justify-center md:justify-start h-[42px]",children:(0,t.jsx)(s.E,{variant:"success",className:"text-sm px-4 py-1","aria-current":"true",children:"Current Plan"})}),k&&(0,t.jsx)("button",{type:"button",onClick:k,className:"text-sm text-muted-foreground underline hover:text-foreground transition-colors cursor-pointer min-h-[44px] min-w-[44px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",children:"Manage your plan"})]}):h&&"upgrade"===v?(0,t.jsx)(d.$,{variant:"primary",size:"lg",className:"w-full",onClick:j,children:"free"===y?f:"Upgrade"}):h&&"downgrade"===v?(0,t.jsx)("button",{type:"button",onClick:j,className:"text-sm text-muted-foreground underline hover:text-foreground transition-colors cursor-pointer min-h-[44px] min-w-[44px] flex items-center justify-center focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm",children:"Downgrade"}):(0,t.jsx)(d.$,{variant:g,size:"lg",className:"w-full",onClick:j,children:f});return(0,t.jsxs)(i.Zp,{variant:b||h&&"current"===v?"outlined":"default",padding:"lg",className:(0,o.cn)("flex flex-col h-full w-full",b&&"bg-primary/10 dark:bg-primary/20"),role:"region","aria-label":"".concat(r," plan — ").concat(a).concat(n),children:[(0,t.jsxs)(i.Wu,{padding:"none",className:"flex-1",children:[(0,t.jsxs)("div",{className:"md:hidden flex flex-col gap-3",children:[p&&(0,t.jsx)("div",{children:(0,t.jsx)(s.E,{variant:x,children:p})}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)(l.o5,{variant:"h6",as:"h3",textColor:"muted",children:r}),(0,t.jsxs)("div",{className:"flex items-baseline gap-0.5",children:[(0,t.jsx)(l.o5,{variant:"h4",as:"span",children:a}),n&&(0,t.jsx)(l.o5,{variant:"bodySmall",textColor:"muted",as:"span",children:n})]}),c&&(0,t.jsx)(l.o5,{variant:"bodySmall",textColor:"muted",className:"italic mt-1",children:c})]}),(0,t.jsx)("div",{className:"shrink-0 w-36",children:N})]}),(0,t.jsx)(l.o5,{variant:"bodySmall",textColor:"muted",children:u}
1),(0,t.jsx)("div",{className:"border-t border-foreground/15 pt-3",children:(0,t.jsx)("ul",{className:"space-y-1",children:m.map(e=>(0,t.jsxs)("li",{className:"flex gap-2 items-baseline",children:[(0,t.jsx)("span",{className:"text-muted-foreground shrink-0",children:"•"}),(0,t.jsx)(l.o5,{variant:"bodySmall",as:"span",children:e})]},e))})})]}),(0,t.jsxs)("div",{className:"hidden md:flex md:flex-col md:gap-4 md:h-full",children:[(0,t.jsx)("div",{className:"h-6 flex items-center",children:p&&(0,t.jsx)(s.E,{variant:x,children:p})}),(0,t.jsx)(l.o5,{variant:"h6",as:"h3",textColor:"muted",children:r}),(0,t.jsxs)("div",{className:"flex items-baseline gap-0.5",children:[(0,t.jsx)(l.o5,{variant:"h3",as:"span",children:a}),n&&(0,t.jsx)(l.o5,{variant:"bodySmall",textColor:"muted",as:"span",children:n})]}),c&&(0,t.jsx)(l.o5,{variant:"bodySmall",textColor:"muted",className:"italic",children:c}),(0,t.jsx)(l.o5,{variant:"bodySmall",textColor:"muted",children:u}),(0,t.jsx)("div",{className:"border-t border-foreground/15 pt-4 flex-1",children:(0,t.jsx)("ul",{className:"space-y-2",children:m.map(e=>(0,t.jsxs)("li",{className:"flex gap-2 items-baseline",children:[(0,t.jsx)("span",{className:"text-muted-foreground shrink-0",children:"•"}),(0,t.jsx)(l.o5,{variant:"bodySmall",as:"span",children:e})]},e))})})]})]}),(0,t.jsx)(i.wL,{padding:"none",className:"pt-4 hidden md:block",children:N})]})}let u=["free","supporter","premium","coaching"],m={free:"/login",supporter:"/checkout/plans/toolkit",premium:"/checkout/plans/all-access",coaching:"/checkout/plans/coaching"},f={free:{tierName:"Free",price:"$0",frequency:"",description:"Use the Refold method to guide yourself to fluency!",features:["Language starter courses","Time tracking","Learning Roadmap","Instruction library","Mobile and web"],ctaLabel:"Get Started",ctaVariant:"primary",isFeatured:!1},supporter:{tierName:"Toolkit",price:"$9",frequency:"/mo",description:"Online access to all Refold decks",features:["Everything in Free","Online review of all Refold vocabulary decks","Access to learning tools/apps","Vote for new projects or decks"],ctaLabel:"Subscribe",ctaVariant:"primary",isFeatured:!1},premium:{tierName:"All Access",price:"$49.99",frequency:"/mo",description:"Full access to all content and learning support",features:["Everything in Toolkit and Free","All Refold guided courses","Downloads for all decks in Anki format","Weekly lectures (and all recordings)","Support from coaches in direct messages"],ctaLabel:"Subscribe",ctaVariant:"primary",isFeatured:!0,badge:"Best Value",badgeVariant:"default"},coaching:{tierName:"Coaching",price:"$99",frequency:"/mo",subtitle:"Requires 3-month commitment",description:"1:1 language coaching and a personalized study plan",features:["Everything in all other tiers","Monthly 1:1 coaching sessions","Personalized and updated study plans","Genuine accountability from a human","Prioritized support in direct messages"],ctaLabel:"Subscribe",ctaVariant:"primary",isFeatured:!1,badge:"Personalized Support",badgeVariant:"purple"}};function g(e){let{currentTier:r,onDowngradeClick:a,showManagePlanLink:i=!0}=e,s=(0,n.useRouter)();return(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",role:"list","aria-label":"Pricing plans",children:u.map(e=>{let n=f[e],d=function(e,r){if(!r)return;if(e===r)return"current";let a=u.indexOf(r);return u.indexOf(e)>a?"upgrade":"downgrade"}
1(e,r),l=function(e,r,a){if(!r.isFeatured)return{isFeatured:r.isFeatured,badge:r.badge,badgeVariant:r.badgeVariant};if(a&&u.indexOf(a)>=u.indexOf(e))return{isFeatured:!1,badge:void 0,badgeVariant:void 0};return{isFeatured:r.isFeatured,badge:r.badge,badgeVariant:r.badgeVariant}}(e,n,r);return(0,t.jsx)("div",{role:"listitem",className:"flex",children:(0,t.jsx)(c,{...n,isFeatured:l.isFeatured,badge:l.badge,badgeVariant:l.badgeVariant,isCurrentPlan:!!r,currentPlanAction:d,currentTierSlug:r,onCtaClick:()=>{"downgrade"===d?a?a(e):s.push("/settings/manage-subscription"):s.push(m[e])},onManagePlanClick:i?()=>{s.push("/settings/manage-subscription")}:void 0})},e)})})}},14936:(e,r,a)=>{a.d(r,{BT:()=>g,Wu:()=>b,ZB:()=>f,Zp:()=>u,aR:()=>m,wL:()=>p});var t=a(54568),n=a(7620),i=a(19664),s=a.n(i),d=a(54616),l=a(85755),o=a(48755);let c=(0,d.F)((0,l.cn)("rounded-lg bg-card text-card-foreground","border border-gray-200 dark:border-gray-700"),{variants:{variant:{default:"border-gray-200 dark:border-gray-700",onSurface:"border border-border/60 bg-muted/20",elevated:"border-border shadow-md",outlined:"border-border bg-transparent",ghost:"border-transparent bg-transparent shadow-none"},padding:{none:"",sm:"p-2 md:p-3",md:"p-3 md:p-4",lg:"p-4 md:p-6",xl:"p-4 md:p-8"}},defaultVariants:{variant:"default",padding:"md"}}),u=n.forwardRef((e,r)=>{let{className:a,variant:n,padding:i,as:d="div",href:o,target:u,rel:m,...f}=e,g=(0,l.cn)(c({variant:n,padding:i,className:a})),b=(0,l.cn)("block","hover:shadow-lg transition-shadow cursor-pointer",g);return"link"===d&&o?(0,t.jsx)(s(),{href:o,target:u,rel:m,className:b,ref:r,...f}):"a"===d&&o?(0,t.jsx)("a",{href:"string"==typeof o?o:String(o),target:u,rel:null!=m?m:"_blank"===u?"noopener noreferrer":void 0,className:b,ref:r,...f}):(0,t.jsx)("div",{className:g,ref:r,...f})});u.displayName="Card";let m=n.forwardRef((e,r)=>{let{className:a,padding:n="default",...i}=e;return(0,t.jsx)("div",{ref:r,className:(0,l.cn)("flex flex-col space-y-1.5",{none:"",default:"p-2 md:p-4"}[n],a),...i})});m.displayName="CardHeader";let f=n.forwardRef((e,r)=>{let{className:a,variant:n="h3",...i}=e;return(0,t.jsx)(o.o,{ref:r,variant:n,className:(0,l.cn)("leading-none tracking-tight",a),...i})});f.displayName="CardTitle";let g=n.forwardRef((e,r)=>{let{className:a,variant:n="bodySmall",textColor:i="muted",...s}=e;return(0,t.jsx)(o.o,{ref:r,variant:n,textColor:i,className:a,...s})});g.displayName="CardDescription";let b=n.forwardRef((e,r)=>{let{className:a,padding:n="default",...i}=e;return(0,t.jsx)("div",{ref:r,className:(0,l.cn)({none:"",default:"p-3 md:p-4 pt-0"}[n],a),...i})});b.displayName="CardContent";let p=n.forwardRef((e,r)=>{let{className:a,padding:n="default",...i}=e;return(0,t.jsx)("div",{ref:r,className:(0,l.cn)("flex items-center",{none:"",default:"p-3 md:p-4 pt-0"}[n],a),...i})});p.displayName="CardFooter"},48755:(e,r,a)=>{a.d(r,{o:()=>t.o5});var t=a(62638)},62638:(e,r,a)=>{a.d(r,{KY:()=>l,YB:()=>d,o5:()=>c});var t=a(54568),n=a(7620),i=a(54616),s=a(85755);let d={small:"font-buttonSmall",medium:"font-buttonMedium",large:"font-buttonLarge",xl:"font-headlineLarge"},l={small:"font-bodySmall",medium:"font-bodyMedium",large:"font-bodyLarge"},o=(0,i.F)("text-foreground",{variants:{variant:{h1:"font-displayLarge",h2:"font-displayMedium",h3:"font-displaySmall",h4:"font-headlineLarge",h5:"font-headlineMedium",h6:"font-headlineSmall",titleLarge:"font-titleLarge",titleMedium:"font-titleMedium",titleSmall:"font-titleSmall",labelLarge:"font-labelLarge",labelMedium:"font-labelMedium",labelSmall:"font-labelSmall",bodyLarge:l.large,bodyMedium:l.medium,bodySmall:l.small,buttonLarge:d.large,buttonMedium:d.medium,buttonSmall:d.small,p:"font-bodyLarge [&:not(:first-child)]:mt-6",lead:"font-bodyLarge text-muted-foreground",large:"font-headlineLarge",small:"font-bodySmall leading-none",muted:"font-bodySmall text-muted-foreground",code:"relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono font-semibold",blockquote:"mt-6 border-l-2 pl-6 italic font-bodyLarge"},textColor:{default:"text-foreground",muted:"text-muted-foreground",primary:"text-primary",secondary:"text-secondary-foreground",destructive:"text-destructive",success:"text-green-600",warning:"text-yellow-600",inherit:"text-inherit"},size:{xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl"
1:"text-4xl","5xl":"text-5xl","6xl":"text-6xl"},weight:{light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font font-semibold",bold:"font-bold",extrabold:"font-extrabold"}}}),c=n.forwardRef((e,r)=>{let{className:a,variant:i,textColor:d,size:l,weight:c,isLink:u,as:m,rightComponent:f,leftComponent:g,...b}=e,p=(()=>{if(m)return m;switch(i){case"h1":return"h1";case"h2":return"h2";case"h3":case"titleLarge":case"titleMedium":case"titleSmall":return"h3";case"h4":return"h4";case"h5":return"h5";case"h6":return"h6";case"labelLarge":case"labelMedium":case"labelSmall":case"buttonLarge":case"buttonMedium":case"buttonSmall":return"span";case"bodyLarge":case"bodyMedium":case"bodySmall":case"p":case"lead":case"muted":default:return"p";case"large":return"div";case"small":return"small";case"code":return"code";case"blockquote":return"blockquote"}})(),x=n.createElement(p,{className:(0,s.cn)(o({variant:i,textColor:d,size:l,weight:c,className:a}),u&&"text-primary underline"),ref:r,...b},b.children);return g||f?(0,t.jsxs)("div",{className:"flex items-center w-full",children:[g&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[g,x]}),!g&&x,f&&(0,t.jsx)("div",{className:"ml-auto",children:f})]}):x});c.displayName="Typography"},74614:(e,r,a)=>{a.d(r,{$:()=>c,r:()=>o});var t=a(54568),n=a(7620),i=a(46118),s=a(54616),d=a(85755),l=a(62638);let o=(0,s.F)((0,d.cn)("inline-flex items-center justify-center","gap-2","rounded-md","whitespace-nowrap","cursor-pointer 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]","transition-all"),{variants:{variant:{primary:"bg-rf-dynamic-primary text-rf-dynamic-onPrimary dark:text-white shadow-sm hover:bg-rf-dynamic-primaryDark active:bg-rf-dynamic-primaryDark",secondary:(0,d.cn)("bg-rf-dynamic-surface text-rf-dynamic-onSurfaceVariant","border border-rf-dynamic-outline dark:border-gray-600","hover:bg-rf-dynamic-tertiary200 active:bg-rf-dynamic-tertiary200"),danger:"bg-destructive text-rf-dynamic-onPrimary shadow-sm hover:bg-destructive-dark active:bg-destructive-dark","destructive-text":(0,d.cn)("bg-transparent text-destructive","border border-border","hover:bg-destructive/10 active:bg-destructive/20"),ghost:"bg-transparent text-foreground hover:bg-muted/50 active:bg-rf-dynamic-primary200",text:"bg-transparent text-primary hover:bg-primary/10 active:bg-primary/20"},size:{sm:"h-[34px] rounded-md gap-1.5 px-3 ".concat(l.YB.small),md:"h-[38px] rounded-md px-4 py-2 ".concat(l.YB.medium),lg:"h-[42px] rounded-md px-6 ".concat(l.YB.large),xl:"h-[50px] rounded-md px-8 ".concat(l.YB.xl)}},defaultVariants:{variant:"primary",size:"md"}}),c=n.forwardRef((e,r)=>{let{className:a,variant:n,size:s,asChild:l=!1,type:c="button",...u}=e,m=l?i.DX:"button";return(0,t.jsx)(m,{className:(0,d.cn)(o({variant:n,size:s,className:a})),ref:r,type:c,...u})});c.displayName="Button"},85755:(e,r,a)=>{a.d(r,{cn:()=>i});var t=a(72902),n=a(13714);function i(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return(0,n.QP)((0,t.$)(r))}}}]);

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.