PageSourceSearch

https://mycurriculummate.com.au/static/js/1597.5bdc8da7.chunk.js

js mycurriculummate.com.au collected 2026-10-02 00:46:48 UTC 16,569 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkfrontend=globalThis.webpackChunkfrontend||[]).push([[1597],{1673(e,t,a){a.d(t,{y:()=>A,A:()=>R});var s=a(65043),r=a(73824),n=a(4980),i=a(56328),l=a(13390),d=a(91140),o=a(5949),c=a(65598),m=a(99432),u=a(22024),x=a(20073),p=a(36210),h=a(51419),g=a(11009),f=a(99766),y=a(31699),j=a(10917),N=a(70579);const v=(0,j.F)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});s.forwardRef((e,t)=>{let{className:a,variant:s,size:r,...n}=e;return(0,N.jsx)(y.b,{ref:t,className:(0,f.cn)(v({variant:s,size:r,className:a})),...n})}).displayName=y.b.displayName;const b=s.createContext({size:"default",variant:"default"}),w=s.forwardRef((e,t)=>{let{className:a,variant:s,size:r,children:n,...i}=e;return(0,N.jsx)(g.bL,{ref:t,className:(0,f.cn)("flex items-center justify-center gap-1",a),...i,children:(0,N.jsx)(b.Provider,{value:{variant:s,size:r},children:n})})});w.displayName=g.bL.displayName;const k=s.forwardRef((e,t)=>{let{className:a,children:r,variant:n,size:i,...l}=e;const d=s.useContext(b);return(0,N.jsx)(g.q7,{ref:t,className:(0,f.cn)(v({variant:d.variant||n,size:d.size||i}),a),...l,children:r})});k.displayName=g.q7.displayName;const C=a(26712).D.find(e=>"pro"===e.id)||{price:"$120",period:"/year",monthlyPrice:"$12.99",monthlyPeriod:"/month",monthlyBilling:"Billed monthly",yearlySavings:"Save with yearly billing"},A=e=>{let{onComplete:t}=e;const[a,l]=(0,s.useState)(!1);(0,s.useEffect)(()=>{const e=new URLSearchParams(window.location.search),t=e.get("credit_purchase"),a=e.get("session_id");"success"===t&&a?o(a):"cancelled"===t&&(i.oR.info("Credit purchase was cancelled"),window.history.replaceState({},document.title,window.location.pathname))},[]);const o=async e=>{l(!0);try{const a=await n.A.get(`${r.nC}/payments/credit-purchase/status/${e}`);"success"===a.data.status?(i.oR.success(a.data.message),t&&t()):"already_applied"===a.data.status?i.oR.info(a.data.message):"pending"===a.data.status?i.oR.info("Payment is still processing. Credits will be added shortly."):i.oR.error(a.data.message||"Failed to apply credits")}catch(a){i.oR.error("Failed to verify purchase. Please contact support if credits weren't added.")}finally{l(!1),window.history.replaceState({},document.title,window.location.pathname)}};return a?(0,N.jsx)("div",{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm flex items-center justify-center",children:(0,N.jsx)(d.Zp,{className:"w-80",children:(0,N.jsxs)(d.Wu,{className:"pt-6 text-center",children:[(0,N.jsx)(u.A,{className:"w-12 h-12 animate-spin text-primary mx-auto mb-4"}),(0,N.jsx)("h3",{className:"font-semibold",children:"Applying Credits..."}),(0,N.jsx)("p",{className:"text-sm text-muted-foreground",children:"Please wait while we add credits to your account."})]})})}):null},R=e=>{let{isOpen:t,onClose:a,onPurchaseComplete:g}=e;const[f,y]=(0,s.useState)([]),[j,v]=(0,s.useState)(!0),[b,A]=(0,s.useState)(null),[R,_]=(0,s.useState)("yearly");(0,s.useEffect)(()=>{t&&$()},[t]);const $=async()=>{v(!0);try{const e=await n.A.get(`${r.nC}/payments/credit-packs`);y(e.data.packs)}catch(e){i.oR.error("Failed to load credit packs")}finally{v(!1)}},P=async e=>{A(e);try{const t=await n.A.post(`${r.nC}/payments/purchase-credits`,{pack_id:e});t.data.checkout_url&&(window.location.href=t.data.checkout_url)}catch(s){var t,a;i.oR.error((null===(t=s.response)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.detail)||"Failed to start purchase"),A(null)}},F=e=>e>=500?"from-purple-500 to-pink-500":e>=250?"from-blue-500 to-purple-500":e>
1=100?"from-green-500 to-blue-500":"from-amber-500 to-orange-500";return(0,N.jsx)(c.lG,{open:t,onOpenChange:a,children:(0,N.jsxs)(c.Cf,{className:"sm:max-w-[600px]",children:[(0,N.jsxs)(c.c7,{children:[(0,N.jsxs)(c.L3,{className:"flex items-center gap-2",children:[(0,N.jsx)(m.A,{className:"w-5 h-5 text-amber-500"}),"Buy More Credits"]}),(0,N.jsx)(c.rr,{children:"Purchase additional credits to continue generating lesson plans, slideshows, and worksheets."})]}),j?(0,N.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,N.jsx)(u.A,{className:"w-8 h-8 animate-spin text-primary"})}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)(d.Zp,{className:"border-2 border-primary bg-primary/5 dark:bg-primary/10 overflow-hidden",children:[(0,N.jsx)("div",{className:"h-2 bg-gradient-to-r from-primary to-primary/70"}),(0,N.jsxs)(d.Wu,{className:"pt-5 pb-4",children:[(0,N.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,N.jsx)(x.A,{className:"w-5 h-5 text-primary"}),(0,N.jsx)("h3",{className:"font-bold text-lg",children:"Upgrade to Pro"})]}),(0,N.jsxs)(w,{type:"single",size:"sm",value:R,onValueChange:e=>e&&_(e),className:"w-fit bg-muted/60 rounded-full p-1 mb-3",children:[(0,N.jsx)(k,{value:"monthly",className:"rounded-full px-3 text-xs",children:"Monthly"}),(0,N.jsx)(k,{value:"yearly",className:"rounded-full px-3 text-xs",children:"Yearly"})]}),(0,N.jsxs)("div",{className:"flex items-baseline justify-between gap-2 mb-3",children:[(0,N.jsxs)("span",{className:"text-2xl font-bold text-primary",children:["monthly"===R?C.monthlyPrice:C.price,(0,N.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"monthly"===R?C.monthlyPeriod:C.period})]}),(0,N.jsx)("span",{className:"text-xs text-muted-foreground text-right min-w-0",children:"monthly"===R?C.monthlyBilling:C.yearlySavings})]}),(0,N.jsxs)("ul",{className:"space-y-1.5 mb-4 text-sm",children:[(0,N.jsxs)("li",{className:"flex items-center gap-2",children:[(0,N.jsx)(p.A,{className:"w-4 h-4 text-primary flex-shrink-0"}),"500 credits monthly \u2014 unused credits roll over (up to 1,000)"]}),(0,N.jsxs)("li",{className:"flex items-center gap-2",children:[(0,N.jsx)(p.A,{className:"w-4 h-4 text-primary flex-shrink-0"}),"All Pro features \u2014 slideshows, unit plans, image generation, AI chat"]}),"yearly"===R&&(0,N.jsxs)("li",{className:"flex items-center gap-2",children:[(0,N.jsx)(p.A,{className:"w-4 h-4 text-primary flex-shrink-0"}
1),"7-day free trial (yearly billing) \u2014 no charge today"]})]}),(0,N.jsx)(l.$,{className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground",disabled:null!==b,onClick:async()=>{A("pro_upgrade");try{const e=await n.A.post(`${r.nC}/payments/create-checkout-session`,{tier:"monthly"===R?"pro_monthly":"pro"});e.data.checkout_url?window.location.href=e.data.checkout_url:(i.oR.error("Failed to start checkout"),A(null))}catch(a){var e,t;i.oR.error((null===(e=a.response)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.detail)||"Failed to start checkout"),A(null)}},children:"pro_upgrade"===b?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(u.A,{className:"w-4 h-4 mr-2 animate-spin"}),"Redirecting to checkout..."]}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(x.A,{className:"w-4 h-4 mr-2"}),"Upgrade \u2014 ","monthly"===R?"Monthly":"Yearly"]})})]})]}),(0,N.jsxs)("div",{className:"relative py-2",children:[(0,N.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,N.jsx)("span",{className:"w-full border-t"})}),(0,N.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,N.jsx)("span",{className:"bg-background px-2 text-muted-foreground",children:"Or purchase a one-off credit pack"})})]}),(0,N.jsx)("div",{className:"grid grid-cols-2 gap-4",children:f.map(e=>{const t=(e=>{switch(e){case"credits_100":return"10% off";case"credits_250":return"20% off";case"credits_500":return"30% off";default:return null}})(e.pack_id);return(0,N.jsxs)(d.Zp,{className:"relative overflow-hidden border-2 transition-all hover:border-primary/50 hover:shadow-lg cursor-pointer "+(b===e.pack_id?"border-primary":"border-border"),onClick:()=>!b&&P(e.pack_id),children:[t&&(0,N.jsx)(o.E,{className:"absolute top-2 right-2 bg-green-500 text-white text-xs",children:t}),(0,N.jsx)("div",{className:`h-2 bg-gradient-to-r ${F(e.credits)}`}),(0,N.jsx)(d.Wu,{className:"pt-4",children:(0,N.jsxs)("div",{className:"text-center",children:[(0,N.jsx)("div",{className:`inline-flex items-center justify-center w-12 h-12 rounded-full bg-gradient-to-r ${F(e.credits)} text-white mb-3`,children:(0,N.jsx)(m.A,{className:"w-6 h-6"})}),(0,N.jsx)("h3",{className:"text-2xl font-bold",children:e.credits}),(0,N.jsx)("p",{className:"text-sm text-muted-foreground mb-3",children:"credits"}),(0,N.jsx)("div",{className:"text-xl font-semibold text-primary",children:e.price_formatted}),(0,N.jsx)("p",{className:"text-xs text-muted-foreground",children:e.currency}),(0,N.jsx)(l.$,{className:"w-full mt-4",disabled:null!==b,onClick:t=>{t.stopPropagation(),P(e.pack_id)},children:b===e.pack_id?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(u.A,{className:"w-4 h-4 mr-2 animate-spin"}),"Processing..."]}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(h.A,{className:"w-4 h-4 mr-2"}),"Buy Now"]})})]})})]},e.pack_id)})})]}),(0,N.jsx)("div",{className:"text-center text-xs text-muted-foreground pt-2 border-t",children:(0,N.jsx)("p",{children:"Secure payment powered by Stripe. Credits never expire."})})]})})}},57040(e,t,a){a.d(t,{A:()=>o});var s=a(65043),r=a(22024),n=a(36210),i=a(70579);const l=[{id:1,text:"Initialising AI engine",duration:800},{id:2,text:"Connecting to curriculum database",duration:1200},{id:3,text:"Analysing learning objectives",duration:1500},{id:4,text:"Extracting content descriptors",duration:1800},{id:5,text:"Generating content structure",duration:2e3},{id:6,text:"Building assessment criteria",duration:1400},{id:7,text:"Compiling teaching resources",duration:1600},{id:8,text:"Formatting HTML templates",duration:1200},{id:9,text:"Optimising document layout",duration:1e3},{id:10,text:"Applying differentiation strategies",duration:1400},{id:11,text:"Cross-referencing standards",duration:1300},{id:12,text:"Validating content accuracy",duration:1100},{id:13,text:"Generating visual elements",duration:1500},{id:14,text:"Packaging final output",duration:900},{id:15,text:"Running quality checks",duration:1200}],d={lesson:l,slideshow:[{id:1,text:"Initialising presentation engine",duration:800},{id:2,text:"Parsing lesson content",duration:1200},{id:3,text:"Extracting key learning points",duration:1500},{id:4,text:"Generating slide structure",duration:1800},{id:5,text:"Creating title sequences",duration:1200},{id:6,text:"Building content slides",duration:2e3},{id:7,text:"Formatting activity prompts",duration:1400},{id:8,text:"Designing visual layouts",duration:1600},{id:9,text:"Generating educational imagery",duration:2500},{id:10,text:"Applying colour themes",duration:1e3},{id:11,text:"Optimising text placement",duration:1100},{id:12,text:"Adding transition effects",duration:900},{id:13,text:"Compiling slide deck",duration:1300},{id:14,text:"Running accessibility checks",duration:1e3},{id:15,text:"Finalising presentation",duration:800}],worksheet:[{id:1,text:"Initialising worksheet generator",duration:800},{id:2,text:"Analysing topic requirements",duration:1200},{id:3,text:"Generating question bank",duration:1800},{id:4,text:"Creating activity sections",duration:1500},{id:5,text:"Building answer templates",duration:1400},{id:6,text:"Formatting page layout",duration:1200},{id:7,text:"Adding instructional headers",duration:1e3},{id:8,text:"Inserting visual elements",duration:1600},{id:9,text:"Applying differentiation levels",duration:1400},{id:10,text:"Generating marking guide",duration:1300},{id:11,text:"Optimising print layout",duration:1100},{id:12,text:"Running content validation",duration:1e3},{id:13,text:"Finalising document",duration:900}],default:l},o=e=>{let{type:t="default",title:a="Generating your content..."}=e;
1const[l,o]=(0,s.useState)([]),[c,m]=(0,s.useState)(0),u=d[t]||d.default;return(0,s.useEffect)(()=>{let e;const t=()=>{if(c<u.length){o(e=>[...e,u[c].id]);const a=c+1;m(a),e=a<u.length?setTimeout(t,u[a].duration):setTimeout(()=>{o([]),m(0)},2e3)}};return e=setTimeout(t,u[0].duration),()=>{e&&clearTimeout(e)}},[c,u]),(0,s.useEffect)(()=>{o([]),m(0)},[t]),(0,i.jsxs)("div",{className:"w-full max-w-md mx-auto py-8",children:[(0,i.jsxs)("div",{className:"text-center mb-6",children:[(0,i.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 mb-4",children:(0,i.jsx)(r.A,{className:"w-8 h-8 text-primary animate-spin"})}),(0,i.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:a}),(0,i.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"This may take 1-2 minutes. Please don't close this page."})]}),(0,i.jsxs)("div",{className:"relative bg-card border rounded-lg p-4 shadow-sm overflow-hidden",children:[(0,i.jsx)("div",{className:"space-y-2 max-h-[300px] overflow-hidden",children:u.map((e,t)=>{const a=l.includes(e.id),s=t===c&&!a,d=t>c;return(0,i.jsxs)("div",{className:`\n                  flex items-center gap-3 py-2 px-3 rounded-md transition-all duration-500\n                  ${a?"bg-green-50 dark:bg-green-950/30":""}\n                  ${s?"bg-primary/5 scale-[1.02]":""}\n                  ${d?"opacity-40":"opacity-100"}\n                `,style:{transform:"translateY(0px)",transition:"all 0.3s ease-out"},children:[(0,i.jsx)("div",{className:`\n                  flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center\n                  transition-all duration-300\n                  ${a?"bg-green-500 text-white":""}\n                  ${s?"bg-primary/20":""}\n                  ${d?"bg-muted":""}\n                `,children:a?(0,i.jsx)(n.A,{className:"w-3 h-3"}):s?(0,i.jsx)(r.A,{className:"w-3 h-3 animate-spin text-primary"}):(0,i.jsx)("div",{className:"w-2 h-2 rounded-full bg-muted-foreground/30"})}),(0,i.jsxs)("span",{className:`\n                  text-sm transition-all duration-300\n                  ${a?"text-green-700 dark:text-green-400 line-through":""}\n                  ${s?"text-primary font-medium":""}\n                  ${d?"text-muted-foreground":""}\n                `,children:[e.text,s&&(0,i.jsx)("span",{className:"animate-pulse",children:"..."})]})]},e.id)})}),(0,i.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-card to-transparent pointer-events-none"})]}),(0,i.jsxs)("div",{className:"mt-4",children:[(0,i.jsxs)("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[(0,i.jsx)("span",{children:"Progress"}),(0,i.jsxs)("span",{children:[Math.round(l.length/u.length*100),"%"]})]}),(0,i.jsx)("div",{className:"h-2 bg-muted rounded-full overflow-hidden",children:(0,i.jsx)("div",{className:"h-full bg-primary rounded-full transition-all duration-500 ease-out",style:{width:l.length/u.length*100+"%"}})})]})]})}},25440(e,t,a){a.d(t,{A:()=>n});var s=a(49367),r=a(70579);const n=()=>(0,r.jsx)(s.mg,{children:(0,r.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})},91140(e,t,a){a.d(t,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>i,aR:()=>l,wL:()=>m});var s=a(65043),r=a(99766),n=a(70579);const i=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",a),...s})});i.displayName="Card";const l=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",a),...s})});l.displayName="CardHeader";const d=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,r.cn)("font-semibold leading-none tracking-tight",a),...s})});d.displayName="CardTitle";const o=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,r.cn)("text-sm text-muted-foreground",a),...s})});o.displayName="CardDescription";const c=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,r.cn)("p-6 pt-0",a),...s})});
1c.displayName="CardContent";const m=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,r.cn)("flex items-center p-6 pt-0",a),...s})});m.displayName="CardFooter"}}]);
2//# sourceMappingURL=1597.5bdc8da7.chunk.js.map

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.