PageSourceSearch

https://www.mindlygames.com/_next/static/chunks/6967-56403cdd93bf64c3.js

js mindlygames.com collected 2026-10-02 00:01:49 UTC 15,982 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="e18b0fba-191c-489b-9361-edecab499968",e._sentryDebugIdIdentifier="sentry-dbid-e18b0fba-191c-489b-9361-edecab499968")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6967],{86967:function(e,s,t){let a;t.d(s,{Z:function(){return v}});var n=t(85893),r=t(17817),l=t(44178),i=t(23394),d=t(55901),c=t(67294),o=t(98342),u=t(44304),m=t(11163),x=t(58897),f=t(54465),y=t(83454);let g=()=>{if(!a){var e,s;a=(0,f.J)(null!==(s=null!==(e=y.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY_LIVE)&&void 0!==e?e:"pk_live_51NDqsxDuuGSrN0ubIYDBS9Bfni50dBQRzGS17o2H3qc2kwcHmXA0VzpUYmNoNDBYL03AQuhwelUkmrHhlzf78Wvw00ZemVpkWt")&&void 0!==s?s:"")}return a};var N=t(23273);let h=e=>{var s;return null==e?void 0:null===(s=e.prices)||void 0===s?void 0:s.find(e=>"recurring"===e.type&&"month"===e.interval)},p=e=>{var s;return null==e?void 0:null===(s=e.prices)||void 0===s?void 0:s.find(e=>"recurring"===e.type&&"year"===e.interval)},j=e=>{var s;return null==e?void 0:null===(s=e.prices)||void 0===s?void 0:s.find(e=>"one_time"===e.type)};function v(){let e=(0,m.useRouter)(),{user:s,isLoading:t,subscription:a}=(0,o.aF)(),[f,y]=(0,c.useState)(""),[v,w]=(0,c.useState)([]),[b,P]=(0,c.useState)(!1),C=v.find(e=>e.name===N.V.FAMILY),_=v.find(e=>e.name===N.V.CLASSROOM),k=h(C),S=p(C),B=j(C),T=p(_),Z=j(_),U=async function(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(y("".concat(t.id,"_").concat(n)),window){let e="subscribe_button_pressed";e=s?"subscribe_button_pressed_while_logged_in":e,e=a?"subscribe_button_pressed_with_subscription":e,(0,u.B)(e,{category:"premium",label:"subscription_page"})}if(!s)return y(""),e.push("/signin");if(a)return y(""),e.push("/account");try{var r;let e=null==_?void 0:null===(r=_.prices)||void 0===r?void 0:r.some(e=>e.id===t.id),{sessionId:s}=await (0,x.qC)({url:"/api/create-checkout-session",data:{price:t,metadata:n?{trial_period_days:e?30:14}:{}}}),a=await g();null==a||a.redirectToCheckout({sessionId:s})}catch(e){return y(""),alert(null==e?void 0:e.message)}};return((0,c.useEffect)(()=>{(async()=>{P(!0);let e=await fetch("/api/products/list").then(e=>e.json());w(e),console.log(e),P(!1)})()},[]),b)?(0,n.jsx)("div",{className:"text-center",children:(0,n.jsx)("div",{className:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]"})}):(0,n.jsxs)("div",{className:"mx-auto max-w-5xl p-4","data-sentry-component":"PricingPlans","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsxs)("div",{className:"text-center mb-8",children:[(0,n.jsx)("h2",{className:"text-4xl font-bold",children:"Choose Your Plan"}),(0,n.jsx)("p",{className:"text-muted-foreground mt-2",children:"Unlock personalized learning for your child with flexible and affordable plans"})]}),(0,n.jsxs)(d.mQ,{defaultValue:"family",className:"space-y-8","data-sentry-element":"Tabs","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsxs)(d.dr,{className:"grid w-full grid-cols-2 max-w-[400px] mx-auto","data-sentry-element":"TabsList","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsx)(d.SP,{value:"family","data-sentry-element":"TabsTrigger","data-sentry-source-file":"NewPricing.tsx",children:"Family"}),(0,n.jsx)(d.SP,{value:"classroom","data-sentry-element":"TabsTrigger","data-sentry-source-file":"NewPricing.tsx",children:"Classroom"})]}),(0,n.jsx)(d.nU,{value:"family",className:"space-y-4","data-sentry-element":"TabsContent","data-sentry-source-file":"NewPricing.tsx",children:(0,n.jsxs)("div",{className:"grid md:grid-cols-3 gap-6 max-w-5xl mx-auto",children:[(0,n.jsxs)(i.Zb,{className:"relative overflow-hidden bg-secondary dark:bg-[#17181c] flex flex-col","data-sentry-element":"Card","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsxs)(i.Ol,{"data-sentry-element":"CardHeader","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsx)(i.ll,{className:"text-2xl","data-sentry-element":"CardTitle","data-sentry-source-file":"NewPricing.tsx",children:"Monthly"}),(0,n.jsx)(i.SZ,{"data-sentry-element":"CardDescription","data-sentry-source-file":"NewPricing.tsx",children:null==k?void 0:k.description})]}),(0,n.jsxs)(i.aY,{className:"space-y-4","data-sentry-element":"CardContent","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"text-3xl font-bold",children:["$",(null==k?void 0:k.unit_amount)/100,(0,n.jsx)("span",{className:"text-muted-foreground text-sm font-normal",children:"/month"})]}),(0,n.jsx)("div",{className:"text-transparent text-sm",children:"billed monthly"})]}),(0,n.jsx)("ul",{className:"space-y-2 text-sm",children:(0,n.jsxs)("li",{className:"flex items-center",children:[(0,n.jsx)(r.Z,{className:"mr-2 h-4 w-4","data-sentry-element":"Users","data-sentry-source-file":"NewPricing.tsx"}),"Up to 5 seats included"]})})]}),(0,n.jsx)(i.eW,{className:"mt-auto","data-sentry-element":"CardFooter","data-sentry-source-file":"NewPricing.tsx",children:(0,n.jsx)("div",{className:"space-y-2 w-full",children:(0,n.jsx)(l.z,{className:"w-full",onClick:()=>U(k,!0),disabled:!!f,"data-sentry-element":"Button","data-sentry-source-file":"NewPricing.tsx",children:f==="".concat(null==k?void 0:k.id,"_true")?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"loading loading-spinner loading-sm mr-2"}),"Processing..."]}):"Start 2-week free trial"})})})]}),(0,n.jsxs)(i.Zb,{className:"relative overflow-hidden bg-secondary dark:bg-[#17181c] flex flex-col","data-sentry-element":"Card","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsx)("div",{className:"absolute top-0 right-0 bg-primary text-primary-foreground px-3 py-1 text-sm rounded-bl-lg",children:"Best value"}),(0,n.jsxs)(i.Ol,{"data-sentry-element":"CardHeader","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsx)(i.ll,{className:"text-2xl","data-sentry-element":"CardTitle","data-sentry-source-file":"NewPricing.tsx",children:"Annual"}),(0,n.jsx)(i.SZ,{"data-sentry-element":"CardDescription","data-sentry-source-file":"NewPricing.tsx",children:null==S?void 0:S.description})]}),(0,n.jsxs)(i.aY,{className:"space-y-4","data-sentry-element":"CardContent","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"text-3xl font-bold",children:["$",((null==S?void 0:S.unit_amount)/1200-.01).toFixed(2),(0,n.jsx)("span",{className:"text-muted-foreground text-sm font-normal",children:"/month"})]}),(0,n.jsxs)("div",{className:"text-muted-foreground text-sm",children:["billed annually at $",(null==S?void 0:S.unit_amount)/100,"/year"]})]}),(0,n.jsx)("ul",{className:"space-y-2 text-sm",children:(0,n.jsxs)("li",{className:"flex items-center",children:[(0,n.jsx)(r.Z,{className:"mr-2 h-4 w-4","data-sentry-element":"Users","data-sentry-source-file":"NewPricing.tsx"}),"Up to 5 seats included"]})})]}),(0,n.jsx)(i.eW,{className:"mt-auto","data-sentry-element":"CardFooter","data-sentry-source-file":"NewPricing.tsx",children:(0,n.jsx)("div",{className:"space-y-2 w-full",children:(0,n.jsx)(l.z,{className:"w-full",onClick:()=>U(S,!0),disabled:!!f,"data-sentry-element":"Button","data-sentry-source-file":"NewPricing.tsx",children:f==="".concat(null==S?void 0:S.id,"_true")?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"loading loading-spinner loading-sm mr-2"}),"Processing..."]}):"Start 2-week free trial"})})})]}),(0,n.jsxs)(i.Zb,{className:"relative overflow-hidden bg-secondary dark:bg-[#17181c] flex flex-col","data-sentry-element":"Card","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsx)("div",{className:"absolute top-0 right-0 bg-green-600 text-white px-3 py-1 text-sm rounded-bl-lg",children:"Pay Once"}),(0,n.jsxs)(i.Ol,{"data-sentry-element":"CardHeader","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsx)(i.ll,{className:"text-2xl","data-sentry-element":"CardTitle","data-sentry-source-file":"NewPricing.tsx",children:"Lifetime"}),(0,n.jsx)(i.SZ,{"data-sentry-element":"CardDescription","data-sentry-source-file":"NewPricing.tsx",children:null==B?void 0:B.description})]}),(0,n.jsxs)(i.aY,{className:"space-y-4","data-sentry-element":"CardContent","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"text-3xl font-bold",children:["$",(null==B?void 0:B.unit_amount)/100]}),(0,n.jsx)("div",{className:"text-muted-foreground text-sm",children:"one-time payment"})]}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:"Unlimited access to all of our digital resources for life."})]}),(0,n.jsx)(i.eW,{className:"mt-auto","data-sentry-element":"CardFooter","data-sentry-source-file":"NewPricing.tsx",children:(0,n.jsx)("div",{className:"space-y-2 w-full",children:(0,n.jsx)(l.z,{className:"w-full",onClick:()=>U(B,!1),disabled:!!f,"data-sentry-element":"Button","data-sentry-source-file":"NewPricing.tsx",children:f==="".concat(null==B?void 0:B.id,"_false")?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"loading loading-spinner loading-sm mr-2"}),"Processing..."]}):"Buy Lifetime"})})})]})]})}),(0,n.jsxs)(d.nU,{value:"classroom",className:"space-y-4","data-sentry-element":"TabsContent","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsxs)("div",{className:"grid md:grid-cols-2 gap-6 max-w-3xl mx-auto",children:[(0,n.jsxs)(i.Zb,{className:"relative overflow-hidden bg-secondary dark:bg-[#17181c] flex flex-col","data-sentry-element":"Card","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsxs)(i.Ol,{"data-sentry-element":"CardHeader","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsx)(i.ll,{className:"text-2xl","data-sentry-element":"CardTitle","data-sentry-source-file":"NewPricing.tsx",children:"Classroom"}),(0,n.jsx)(i.SZ,{"data-sentry-element":"CardDescription","data-sentry-source-file":"NewPricing.tsx",children:null==T?void 0:T.description})]}),(0,n.jsxs)(i.aY,{className:"space-y-4","data-sentry-element":"CardContent","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"text-3xl font-bold",children:["$",(null==T?void 0:T.unit_amount)/100,(0,n.jsx)("span",{className:"text-muted-foreground text-sm font-normal",children:"/year"})]}),(0,n.jsx)("div",{className:"text-muted-foreground text-sm",children:"Annual subscription only"})]}),(0,n.jsx)("ul",{className:"space-y-2 text-sm",children:(0,n.jsxs)("li",{className:"flex items-center",children:[(0,n.jsx)(r.Z,{className:"mr-2 h-4 w-4","data-sentry-element":"Users","data-sentry-source-file":"NewPricing.tsx"}),"Up to 30 seats included"]})})]}),(0,n.jsx)(i.eW,{className:"mt-auto","data-sentry-element":"CardFooter","data-sentry-source-file":"NewPricing.tsx",children:(0,n.jsx)("div",{className:"space-y-2 w-full",children:(0,n.jsx)(l.z,{className:"w-full",onClick:()=>U(T,!0),disabled:!!f,"data-sentry-element":"Button","data-sentry-source-file":"NewPricing.tsx",children:f==="".concat(null==T?void 0:T.id,"_true")?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"loading loading-spinner loading-sm mr-2"}),"Processing..."]}):"Start 1-month free trial"})})})]}),(0,n.jsxs)(i.Zb,{className:"relative overflow-hidden bg-secondary dark:bg-[#17181c] flex flex-col","data-sentry-element":"Card","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsx)("div",{className:"absolute top-0 right-0 bg-green-600 text-white px-3 py-1 text-sm rounded-bl-lg",children:"Pay Once"}),(0,n.jsxs)(i.Ol,{"data-sentry-element":"CardHeader","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsx)(i.ll,{className:"text-2xl","data-sentry-element":"CardTitle","data-sentry-source-file":"NewPricing.tsx",children:"Lifetime"}),(0,n.jsx)(i.SZ,{"data-sentry-element":"CardDescription","data-sentry-source-file":"NewPricing.tsx",children:null==Z?void 0:Z.description})]}),(0,n.jsxs)(i.aY,{className:"space-y-4","data-sentry-element":"CardContent","data-sentry-source-file":"NewPricing.tsx",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsxs)("div",{className:"text-3xl font-bold",children:["$",(null==Z?void 0:Z.unit_amount)/100]}),(0,n.jsx)("div",{className:"text-muted-foreground text-sm",children:"one-time payment"})]}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:"Unlimited access to all of our digital resources for life."})]}),(0,n.jsx)(i.eW,{className:"mt-auto","data-sentry-element":"CardFooter","data-sentry-source-file":"NewPricing.tsx",children:(0,n.jsx)("div",{className:"space-y-2 w-full",children:(0,n.jsx)(l.z,{className:"w-full",onClick:()=>U(Z,!1),disabled:!!f,"data-sentry-element":"Button","data-sentry-source-file":"NewPricing.tsx",children:f==="".concat(null==Z?void 0:Z.id,"_false")?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"loading loading-spinner loading-sm mr-2"}),"Processing..."]}):"Buy Lifetime"})})})]})]}),(0,n.jsx)("div",{className:"text-center mt-8",children:(0,n.jsxs)("p",{className:"text-muted-foreground",children:["Need more than 30 seats?"," ",(0,n.jsx)(l.z,{variant:"link",className:"text-primary font-semibold p-0","data-sentry-element":"Button","data-sentry-source-file":"NewPricing.tsx",children:"Contact us"})]})})]})]})]})}},23394:function(e,s,t){t.d(s,{Ol:function(){return i},SZ:function(){return c},Zb:function(){return l},aY:function(){return o},eW:function(){return u},ll:function(){return d}});var a=t(85893),n=t(67294),r=t(30796);let l=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});
1l.displayName="Card";let i=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...n})});i.displayName="CardHeader";let d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)("div",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...n})});d.displayName="CardTitle";let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)("div",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...n})});c.displayName="CardDescription";let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...n})});o.displayName="CardContent";let u=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},55901:function(e,s,t){t.d(s,{SP:function(){return c},dr:function(){return d},mQ:function(){return i},nU:function(){return o}});var a=t(85893),n=t(67294),r=t(74493),l=t(30796);let i=r.fC,d=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)(r.aV,{ref:s,className:(0,l.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...n})});d.displayName=r.aV.displayName;let c=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)(r.xz,{ref:s,className:(0,l.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...n})});c.displayName=r.xz.displayName;let o=n.forwardRef((e,s)=>{let{className:t,...n}=e;return(0,a.jsx)(r.VY,{ref:s,className:(0,l.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...n})});o.displayName=r.VY.displayName}}]);

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.