1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23503,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(22016),n=e.i(70065);function i(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e?.(s),!1===r||!s.defaultPrevented)return t?.(s)}}var a=e.i(30030),o=e.i(20783),l=e.i(91918),d=globalThis?.document?r.useLayoutEffect:()=>{},c=r["useId".toString()]||(()=>void 0),m=0;function u(e){let[t,s]=r.useState(c());return d(()=>{e||s(e=>e??String(m++))},[e]),e||(t?`radix-${t}`:"")}var h=e.i(48425);function x(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}function f({prop:e,defaultProp:t,onChange:s=()=>{}}){let[n,i]=function({defaultProp:e,onChange:t}){let s=r.useState(e),[n]=s,i=r.useRef(n),a=x(t);return r.useEffect(()=>{i.current!==n&&(a(n),i.current=n)},[n,i,a]),s}({defaultProp:t,onChange:s}),a=void 0!==e,o=a?e:n,l=x(s);return[o,r.useCallback(t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&l(r)}else i(t)},[a,e,i,l])]}var g=r.createContext(void 0);function p(e){let t=r.useContext(g);return e||t||"ltr"}var j="rovingFocusGroup.onEntryFocus",b={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[y,N,w]=function(e){let s=e+"CollectionProvider",[n,i]=(0,a.createContextScope)(s),[d,c]=n(s,{collectionRef:{current:null},itemMap:new Map}),m=e=>{let{scope:s,children:n}=e,i=r.default.useRef(null),a=r.default.useRef(new Map).current;return(0,t.jsx)(d,{scope:s,itemMap:a,collectionRef:i,children:n})};m.displayName=s;let u=e+"CollectionSlot",h=r.default.forwardRef((e,r)=>{let{scope:s,children:n}=e,i=c(u,s),a=(0,o.useComposedRefs)(r,i.collectionRef);return(0,t.jsx)(l.Slot,{ref:a,children:n})});h.displayName=u;let x=e+"CollectionItemSlot",f="data-radix-collection-item",g=r.default.forwardRef((e,s)=>{let{scope:n,children:i,...a}=e,d=r.default.useRef(null),m=(0,o.useComposedRefs)(s,d),u=c(x,n);return r.default.useEffect(()=>(u.itemMap.set(d,{ref:d,...a}),()=>void u.itemMap.delete(d))),(0,t.jsx)(l.Slot,{...{[f]:""},ref:m,children:i})});return g.displayName=x,[{Provider:m,Slot:h,ItemSlot:g},function(t){let s=c(e+"CollectionConsumer",t);return r.default.useCallback(()=>{let e=s.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(s.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[s.collectionRef,s.itemMap])},i]}(v),[k,C]=(0,a.createContextScope)(v,[w]),[S,D]=k(v),T=r.forwardRef((e,r)=>(0,t.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,t.jsx)(M,{...e,ref:r})})}));T.displayName=v;var M=r.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:l=!1,dir:d,currentTabStopId:c,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:u,onEntryFocus:g,preventScrollOnEntryFocus:v=!1,...y}=e,w=r.useRef(null),k=(0,o.useComposedRefs)(s,w),C=p(d),[D=null,T]=f({prop:c,defaultProp:m,onChange:u}),[M,A]=r.useState(!1),R=x(g),P=N(n),I=r.useRef(!1),[L,F]=r.useState(0);return r.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(j,R),()=>e.removeEventListener(j,R)},[R]),(0,t.jsx)(S,{scope:n,orientation:a,dir:C,loop:l,currentTabStopId:D,onItemFocus:r.useCallback(e=>T(e),[T]),onItemShiftTab:r.useCallback(()=>A(!0),[]),onFocusableItemAdd:r.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>F(e=>e-1),[]),children:(0,t.jsx)(h.Primitive.div,{tabIndex:M||0===L?-1:0,"data-orientation":a,...y,ref:k,style:{outline:"none",...e.style},onMouseDown:i(e.onMouseDown,()=>{I.current=!0}),onFocus:i(e.onFocus,e=>{let t=!I.current;if(e.target===e.currentTarget&&t&&!M){let t=new CustomEvent(j,b);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);E([e.find(e=>e.active),e.find(e=>e.id===D),...e].filter(Boolean).map(e=>e.ref.current),v)}}I.current=!1}),onBlur:i(e.onBlur,()=>A(!1))})})}),A="RovingFocusGroupItem",R=r.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:o=!1,tabStopId:l,...d}=e,c=u(),m=l||c,x=D(A,n),f=x.currentTabStopId===m,g=N(n),{onFocusableItemAdd:p,onFocusableItemRemove:j}=x;return r.useEffect(()=>{if(a)return p(),()=>j()}
1,[a,p,j]),(0,t.jsx)(y.ItemSlot,{scope:n,id:m,focusable:a,active:o,children:(0,t.jsx)(h.Primitive.span,{tabIndex:f?0:-1,"data-orientation":x.orientation,...d,ref:s,onMouseDown:i(e.onMouseDown,e=>{a?x.onItemFocus(m):e.preventDefault()}),onFocus:i(e.onFocus,()=>x.onItemFocus(m)),onKeyDown:i(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void x.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var s;let n=(s=e.key,"rtl"!==r?s:"ArrowLeft"===s?"ArrowRight":"ArrowRight"===s?"ArrowLeft":s);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(n))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)))return P[n]}(e,x.orientation,x.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){var r,s;"prev"===t&&n.reverse();let i=n.indexOf(e.currentTarget);n=x.loop?(r=n,s=i+1,r.map((e,t)=>r[(s+t)%r.length])):n.slice(i+1)}setTimeout(()=>E(n))}})})})});R.displayName=A;var P={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e,t=!1){let r=document.activeElement;for(let s of e)if(s===r||(s.focus({preventScroll:t}),document.activeElement!==r))return}var I=e=>{var t;let s,n,{present:i,children:a}=e,l=function(e){var t,s;let[n,i]=r.useState(),a=r.useRef({}),o=r.useRef(e),l=r.useRef("none"),[c,m]=(t=e?"mounted":"unmounted",s={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>s[e][t]??e,t));return r.useEffect(()=>{let e=L(a.current);l.current="mounted"===c?e:"none"},[c]),d(()=>{let t=a.current,r=o.current;if(r!==e){let s=l.current,n=L(t);e?m("MOUNT"):"none"===n||t?.display==="none"?m("UNMOUNT"):r&&s!==n?m("ANIMATION_OUT"):m("UNMOUNT"),o.current=e}},[e,m]),d(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let s=L(a.current).includes(r.animationName);if(r.target===n&&s&&(m("ANIMATION_END"),!o.current)){let r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(l.current=L(a.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}m("ANIMATION_END")},[n,m]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(a.current=getComputedStyle(e)),i(e)},[])}}(i),c="function"==typeof a?a({present:l.isPresent}):r.Children.only(a),m=(0,o.useComposedRefs)(l.ref,(t=c,(n=(s=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?t.ref:(n=(s=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof a||l.isPresent?r.cloneElement(c,{ref:m}):null};function L(e){return e?.animationName||"none"}I.displayName="Presence";var F="Tabs",[H,O]=(0,a.createContextScope)(F,[C]),U=C(),[W,B]=H(F),K=r.forwardRef((e,r)=>{let{__scopeTabs:s,value:n,onValueChange:i,defaultValue:a,orientation:o="horizontal",dir:l,activationMode:d="automatic",...c}=e,m=p(l),[x,g]=f({prop:n,onChange:i,defaultProp:a});return(0,t.jsx)(W,{scope:s,baseId:u(),value:x,onValueChange:g,orientation:o,dir:m,activationMode:d,children:(0,t.jsx)(h.Primitive.div,{dir:m,"data-orientation":o,...c,ref:r})})});K.displayName=F;var _="TabsList",q=r.forwardRef((e,r)=>{let{__scopeTabs:s,loop:n=!0,...i}=e,a=B(_,s),o=U(s);return(0,t.jsx)(T,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:n,children:(0,t.jsx)(h.Primitive.div,{role:"tablist","aria-orientation":a.orientation,...i,ref:r})})});q.displayName=_;var V="TabsTrigger",G=r.forwardRef((e,r)=>{let{__scopeTabs:s,value:n,disabled:a=!1,...o}=e,l=B(V,s),d=U(s),c=Y(l.baseId,n),m=Q(l.baseId,n),u=n===l.value;return(0,t.jsx)(R,{asChild:!0,...d,focusable:!a,active:u,children:(0,t.jsx)(h.Primitive.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":m,"data-state":u?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...o,ref:r,onMouseDown:i(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(n)}),onKeyDown:i(e.onKeyDown,e=>
1{[" ","Enter"].includes(e.key)&&l.onValueChange(n)}),onFocus:i(e.onFocus,()=>{let e="manual"!==l.activationMode;u||a||!e||l.onValueChange(n)})})})});G.displayName=V;var z="TabsContent",$=r.forwardRef((e,s)=>{let{__scopeTabs:n,value:i,forceMount:a,children:o,...l}=e,d=B(z,n),c=Y(d.baseId,i),m=Q(d.baseId,i),u=i===d.value,x=r.useRef(u);return r.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(I,{present:a||u,children:({present:r})=>(0,t.jsx)(h.Primitive.div,{"data-state":u?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":c,hidden:!r,id:m,tabIndex:0,...l,ref:s,style:{...e.style,animationDuration:x.current?"0s":void 0},children:r&&o})})});function Y(e,t){return`${e}-trigger-${t}`}function Q(e,t){return`${e}-content-${t}`}$.displayName=z;var Z=e.i(47163);function J({className:e,...r}){return(0,t.jsx)(K,{"data-slot":"tabs",className:(0,Z.cn)("flex flex-col gap-2",e),...r})}function X({className:e,...r}){return(0,t.jsx)(q,{"data-slot":"tabs-list",className:(0,Z.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...r})}function ee({className:e,...r}){return(0,t.jsx)(G,{"data-slot":"tabs-trigger",className:(0,Z.cn)("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function et({className:e,...r}){return(0,t.jsx)($,{"data-slot":"tabs-content",className:(0,Z.cn)("flex-1 outline-none",e),...r})}var er=e.i(94179),es=e.i(67881),en=e.i(71689),ei=e.i(95468),ea=e.i(75254);let eo=(0,ea.default)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),el=(0,ea.default)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),ed=(0,ea.default)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),ec=(0,ea.default)("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),em=(0,ea.default)("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]),eu=(0,ea.default)("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);var eh=e.i(9442),ex=e.i(11245);function ef(){let[e,i]=(0,r.useState)("progress"),[a,o]=(0,r.useState)({lastPlayed:"Not yet",currentLevel:0,totalSessions:0,averageScore:0,streak:0,todayPlayed:!1});return(0,r.useEffect)(()=>{let e=(0,eh.getProgress)();(0,eh.getRecentSessions)(7);let t=(0,eh.getAverageScore)(),r=(0,eh.getTodayStats)(),s=e.gameSessions[e.gameSessions.length-1];o({lastPlayed:s?new Date(s.date).toLocaleDateString()===new Date().toLocaleDateString()?"Today":new Date(s.date).toLocaleDateString():"Not yet",currentLevel:s?.level||0,totalSessions:e.gameSessions.length,averageScore:t,streak:e.currentStreak,todayPlayed:r.played})},[]),(0,t.jsxs)("div",{className:"min-h-screen bg-gradient-to-b from-background to-muted",children:[(0,t.jsx)("header",{className:"border-b bg-card/50 backdrop-blur-sm",children:(0,t.jsxs)("div",{className:"container mx-auto px-4 py-4 flex items-center justify-between",children:[(0,t.jsxs)(s.default,{href:"/",className:"flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[(0,t.jsx)(en.ArrowLeft,{className:"w-5 h-5"}),(0,t.jsx)("span",{children:"Back to Home"})]}),(0,t.jsx)(ex.SchoolDoctorLogo,{className:"h-10 md:h-12"})]})}),(0,t.jsxs)("main",{className:"container mx-auto px-4 py-8 max-w-5xl",children:[(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("h1",{className:"text-4xl font-bold mb-3 text-foreground",children:"Parent & Teacher Dashboard"}),(0,t.jsx)("p",{className:"text-lg text-muted-foreground text-balance",children:"Track progress and learn ADHD-friendly strategies for working memory support"})]}),(0,t.jsxs)(J,{value:e,onValueChange:i,className:"space-y-6",children:[(0,t.jsxs)(X,{className:"grid w-full grid-cols-3 lg:w-auto lg:inline-grid",children:[(0,t.jsx)(ee,{value:"progress",children:"Progress"}),(0,t.jsx)(ee,{value:"tips",children:"Tips & Strategies"}),(0,t.jsx)(ee,{value:"understanding",children:"Understanding ADHD"})]}),(0,t.jsxs)(et,{value:"progress",className:"space-y-6",children:[(0,t.jsxs)("div",{className:"grid md:grid-cols-3 gap-4",children:[(0,t.jsxs)(n.Card,{children:[(0,t.jsx)(n.CardHeader,{className:"pb-3",children:(0,t.jsxs)(n.CardDescription,{className:"flex items-center gap-2",children:[(0,t.jsx)(eo,{className:"w-4 h-4"}),"Last Activity"]})}),(0,t.jsx)(n.CardContent,{children:(0,t.jsx)("div",{className:"text-2xl font-bold text-foreground",children:a.lastPlayed})})]}),(0,t.jsxs)(n.Card,{children:[(0,t.jsx)(n.CardHeader,{className:"pb-3",children:(0,t.jsxs)(n.CardDescription,{className:"flex items-center gap-2",children:[(0,t.jsx)(el,{className:"w-4 h-4"}),"Current Level"]})}),(0,t.jsx)(n.CardContent,{children:(0,t.jsx)("div",{className:"text-2xl font-bold text-primary",children:a.currentLevel>0?`Level ${a.currentLevel}`:"Not started"})})]}),(0,t.jsxs)(n.Card,{children:[(0,t.jsx)(n.CardHeader,{className:"pb-3",children:(0,t.jsxs)(n.CardDescription,{className:"flex items-center gap-2",children:[(0,t.jsx)(ei.CheckCircle2,{className:"w-4 h-4"}),"Total Sessions"]})}),(0,t.jsx)(n.CardContent,{children:(0,t.jsx)("div",{className:"text-2xl font-bold text-secondary",children:a.totalSessions})})]})]}),0===a.totalSessions?(0,t.jsx)(n.Card,{children:(0,t.jsxs)(n.CardContent,{className:"p-8 text-center",children:[(0,t.jsx)("div",{className:"text-6xl mb-4",children:"ð®"}),(0,t.jsx)("h3",{className:"text-xl font-semibold mb-2 text-foreground",children:"No sessions yet"}),(0,t.jsx)("p",{className:"text-muted-foreground mb-4",children:"Once your child plays the memory game, their progress will appear here!"}),(0,t.jsx)(es.Button,{asChild:!0,children:(0,t.jsx)(s.default,{href:"/play",children:"Start First Session"})})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.Card,{children:[(0,t.jsxs)(n.CardHeader,{children:[(0,t.jsx)(n.CardTitle,{children:"Progress Overview"}),(0,t.jsx)(n.CardDescription,{children:"How your child is doing with working memory training"})]}),(0,t.jsxs)(n.CardContent,{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 bg-muted rounded-lg",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-semibold text-foreground",children:"Current Streak"}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:"Days in a row"})]}),(0,t.jsxs)("div",{className:"text-3xl font-bold text-accent-foreground",children:[a.streak," ",1===a.streak?"day":"days"]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 bg-muted rounded-lg",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-semibold text-foreground",children:"Average Score"}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:"Points per session"})]}),(0,t.jsx)("div",{className:"text-3xl font-bold text-primary",children:a.averageScore})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 bg-muted rounded-lg",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"font-semibold text-foreground",children:"Today's Practice"}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:"Completed today"})]}),(0,t.jsx)("div",{className:"text-2xl",children:a.todayPlayed?"â
":"â³"})]})]})]}),(0,t.jsxs)(n.Card,{children:[(0,t.jsx)(n.CardHeader,{children:(0,t.jsx)(n.CardTitle,{children:"Recent Achievements"})}),(0,t.jsxs)(n.CardContent,{className:"space-y-3",children:[a.currentLevel>=5&&(0,t.jsxs)("div",{className:"flex items-center gap-3 p-3 bg-primary/10 rounded-lg border border-primary/20",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-full bg-primary flex items-center justify-center text-xl",children:"ð¯"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"font-semibold text-foreground",children:["Reached Level ",a.currentLevel]}),(0,t.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Remembering ",Math.min(2+Math.floor(a.currentLevel/2),5)," items in sequence"]})]}),a.currentLevel>=5&&(0,t.jsx)(er.Badge,{children:"Great!"})]}),a.streak>=3&&(0,t.jsxs)("div",{className:"flex items-center gap-3 p-3 bg-secondary/10 rounded-lg border border-secondary/20",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-full bg-secondary flex items-center justify-center text-xl",children:"ð¥"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"font-semibold text-foreground",children:[a.streak,"-Day Streak"]}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:"Consistent practice builds skills"})]})]}),a.totalSessions>=10&&(0,t.jsxs)("div",{className:"flex items-center gap-3 p-3 bg-accent/10 rounded-lg border border-accent/20",children:[(0,t.jsx)("div",{className:"w-10 h-10 rounded-full bg-accent flex items-center justify-center text-xl",children:"â"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"font-semibold text-foreground",children:[a.totalSessions," Sessions Complete"]}),(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:"Building strong habits"})]})]}),a.totalSessions<10&&a.streak<3&&a.currentLevel<5&&(0,t.jsx)("div",{className:"text-center p-6 text-muted-foreground",children:(0,t.jsx)("p",{children:"Keep practicing to unlock achievements!"})})]})]})]})]}),(0,t.jsxs)(et,{value:"tips",className:"space-y-6",children:[(0,t.jsxs)(n.Card,{children:[(0,t.jsxs)(n.CardHeader,{children:[(0,t.jsxs)(n.CardTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)(ed,{className:"w-5 h-5 text-accent-foreground"}),"8 Strategies to Support Working Memory"]}),(0,t.jsx)(n.CardDescription,{children:"Evidence-based approaches for children with ADHD"})]}),(0,t.jsx)(n.CardContent,{className:"space-y-4",children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg border-l-4 border-primary",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground flex items-center gap-2",children:"ð§ 1. Reduce Cognitive Load"}),(0,t.jsxs)("ul",{className:"text-sm text-muted-foreground leading-relaxed space-y-1 ml-4 list-disc",children:[(0,t.jsx)("li",{children:"Break tasks into smaller steps: Present one instruction at a time instead of a long sequence"}),(0,t.jsx)("li",{children:"Use visual aids: Checklists, flowcharts, diagrams, and colour-coding reduce reliance on memory"}),(0,t.jsx)("li",{children:"Simplify instructions: Repeat or rephrase key points; avoid unnecessary detail"})]})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg border-l-4 border-secondary",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground flex items-center gap-2",children:"ðï¸ 2. Use External Memory Supports"}),(0,t.jsxs)("ul",{className:"text-sm text-muted-foreground leading-relaxed space-y-1 ml-4 list-disc",children:[(0,t.jsx)("li",{children:"Write it down: Encourage sticky notes, notebooks, or whiteboards"}),(0,t.jsx)("li",{children:"Digital tools: Use apps like Google Keep, Todoist, or reminders on phones/watches"}),(0,t.jsx)("li",{children:"Environmental cues: Keep reminders visible â for example, a checklist by the door for leaving the house"})]})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg border-l-4 border-accent",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground flex items-center gap-2",children:"â° 3. Build Routines and Structure"}),(0,t.jsxs)("ul",{className:"text-sm text-muted-foreground leading-relaxed space-y-1 ml-4 list-disc",children:[(0,t.jsx)("li",{children:"Consistent daily patterns: When tasks are automatic, working memory is freed up for new information"}),(0,t.jsx)("li",{children:'Use "anchors": Link new habits to existing ones (e.g. "After brushing teeth, pack school bag")'}),(0,t.jsx)("li",{children:"Preview the day: Review plans each morning and evening to strengthen recall"})]})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg border-l-4 border-primary",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground flex items-center gap-2",children:"ð® 4. Make Information Meaningful"}),(0,t.jsxs)("ul",{className:"text-sm text-muted-foreground leading-relaxed space-y-1 ml-4 list-disc",children:[(0,t.jsx)("li",{children:"Chunk and connect: Group related ideas or steps together; relate new material to something familiar"}),(0,t.jsx)("li",{children:"Visualisation: Encourage forming mental images or stories to link information"}),(0,t.jsx)("li",{children:"Teach active recall: Practising recall (e.g. quizzing, summarising aloud) improves memory strength"})]})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg border-l-4 border-secondary",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground flex items-center gap-2",children:"ð¬ 5. Support Verbal Working Memory"}),(0,t.jsxs)("ul",{className:"text-sm text-muted-foreground leading-relaxed space-y-1 ml-4 list-disc",children:[(0,t.jsx)("li",{children:"Encourage rehearsal: Quietly repeating information can help hold it in mind"}),(0,t.jsx)("li",{children:"Say it aloud: Verbalising steps or reminders helps maintain focus"}),(0,t.jsx)("li",{children:"Use mnemonics or acronyms: Fun memory tricks can make recall easier"})]})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg border-l-4 border-accent",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground flex items-center gap-2",children:"ð§© 6. Minimise Distractions"}),(0,t.jsxs)("ul",{className:"text-sm text-muted-foreground leading-relaxed space-y-1 ml-4 list-disc",children:[(0,t.jsx)("li",{children:'Quiet, organised workspace: Reduces the "noise" that c
1ompetes with memory'}),(0,t.jsx)("li",{children:"Timers or focus intervals: Short, timed work sessions (Pomodoro method) help maintain attention and recall"}),(0,t.jsx)("li",{children:"Avoid multitasking: Focus on one task at a time to prevent overload"})]})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg border-l-4 border-primary",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground flex items-center gap-2",children:"â¤ï¸ 7. Support Emotional Regulation and Motivation"}),(0,t.jsxs)("ul",{className:"text-sm text-muted-foreground leading-relaxed space-y-1 ml-4 list-disc",children:[(0,t.jsx)("li",{children:"Working memory worsens under stress or boredom"}),(0,t.jsx)("li",{children:"Use interest-based motivation: Connect tasks to personal goals or rewards"}),(0,t.jsx)("li",{children:"Provide encouragement and feedback: Builds confidence and persistence"})]})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg border-l-4 border-secondary",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground flex items-center gap-2",children:"ð§ââï¸ð§ââï¸ 8. For Children and Teens"}),(0,t.jsxs)("ul",{className:"text-sm text-muted-foreground leading-relaxed space-y-1 ml-4 list-disc",children:[(0,t.jsx)("li",{children:"Use visual schedules, cue cards, and teacher check-ins"}),(0,t.jsx)("li",{children:'Teach metacognitive strategies â e.g. "What do I need to remember right now?"'}),(0,t.jsx)("li",{children:"Allow extra processing time before expecting a response"})]})]})]})})]}),(0,t.jsxs)(n.Card,{children:[(0,t.jsxs)(n.CardHeader,{children:[(0,t.jsxs)(n.CardTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)(ed,{className:"w-5 h-5 text-accent-foreground"}),"ADHD-Friendly Practice Tips for This App"]}),(0,t.jsx)(n.CardDescription,{children:"How to get the most from Memory Buddies"})]}),(0,t.jsx)(n.CardContent,{className:"space-y-4",children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground",children:"Keep it Short"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"2-5 minute sessions are ideal. Multiple short sessions beat one long session. Stop before frustration builds."})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground",children:"Timing Matters"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Practice when medication is active (if applicable) and energy is good. Morning often works best. Avoid practice when tired or hungry."})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground",children:"Movement Breaks"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Between rounds, do 10 jumping jacks or a quick dance. Movement helps ADHD brains reset and refocus."})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground",children:"Celebrate Effort"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:'Praise trying hard, not just getting it right. "You really focused!" beats "You\'re so smart!"'})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg",children:[(0,t.jsx)("h4",{className:"font-semibold mb-2 text-foreground",children:"Consistency Over Perfection"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Daily 3-minute practice beats weekly 20-minute sessions. Build the habit first, extend time later."})]})]})})]})]}),(0,t.jsxs)(et,{value:"understanding",className:"space-y-6",children:[(0,t.jsxs)(n.Card,{children:[(0,t.jsx)(n.CardHeader,{children:(0,t.jsxs)(n.CardTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)(eu,{className:"w-5 h-5 text-primary"}),"How ADHD Affects Working Memory"]})}),(0,t.jsxs)(n.CardContent,{className:"space-y-4 text-sm text-muted-foreground leading-relaxed",children:[(0,t.jsxs)("div",{className:"p-4 bg-primary/10 rounded-lg border border-primary/20",children:[(0,t.jsx)("h4",{className:"font-semibold text-foreground mb-2",children:"What is Working Memory?"}),(0,t.jsx)("p",{children:"Working memory is like your brain's sticky note - it holds information temporarily while you use it. It's what allows us to remember a phone number long enough to dial it, follow multi-step instructions, or do mental maths."})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg",children:[(0,t.jsx)("h4",{className:"font-semibold text-foreground mb-2",children:"The ADHD Connection"}),(0,t.jsx)("p",{className:"mb-3",children:"For children with ADHD, working memory capacity is often reduced. Think of it as having a smaller \"sticky note\" where information falls off more easily. This isn't about intelligence - it's about how the ADHD brain processes and holds information temporarily."}),(0,t.jsx)("p",{className:"font-medium text-foreground",children:"Common challenges include:"}),(0,t.jsxs)("ul",{className:"list-disc list-inside space-y-1 ml-2 mt-2",children:[(0,t.jsx)("li",{children:"Forgetting instructions moments after hearing them"}),(0,t.jsx)("li",{children:'Losing track mid-task ("What was I doing?")'}),(0,t.jsx)("li",{children:"Difficulty with mental maths or multi-step problems"}),(0,t.jsx)("li",{children:"Trouble following conversations or reading comprehension"}),(0,t.jsx)("li",{children:"Frequently losing or forgetting items"})]})]}),(0,t.jsxs)("div",{className:"p-4 bg-secondary/10 rounded-lg border border-secondary/20",children:[(0,t.jsx)("h4",{className:"font-semibold text-foreground mb-2",children:"Why This Matters"}),(0,t.jsx)("p",{children:'Working memory difficulties affect nearly every aspect of learning and daily life. They impact academic performance, social interactions, organisation, and self-regulation. Understanding this helps us provide the right support rather than assuming the child "isn\'t trying" or "isn\'t listening."'})]}),(0,t.jsxs)("div",{className:"p-4 bg-accent/10 rounded-lg border border-accent/20",children:[(0,t.jsx)("h4",{className:"font-semibold text-foreground mb-2",children:"The Good News"}),(0,t.jsx)("p",{children:"Working memory can be strengthened with practice, just like a muscle. Research shows that regular, short training sessions can lead to measurable improvements. Even more importantly, learning strategies to work around working memory limitations (like the 8 strategies in the Tips tab) can make a significant difference in daily functioning."})]})]})]}),(0,t.jsxs)(n.Card,{children:[(0,t.jsx)(n.CardHeader,{children:(0,t.jsxs)(n.CardTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)(ec,{className:"w-5 h-5 text-primary"}),"What Research Shows"]})}),(0,t.jsxs)(n.CardContent,{className:"space-y-3 text-sm text-muted-foreground leading-relaxed",children:[(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg",children:[(0,t.jsx)("h4",{className:"font-semibold text-foreground mb-2",children:"Training Benefits"}),(0,t.jsx)("p",{children:"Studies indicate that computerised working memory training can improve performance on working memory tasks. While the extent of transfer to other cognitive skills is still being researched, many children show improvements in attention, following instructions, and academic performance."})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg",children:[(0,t.jsx)("h4",{className:"font-semibold text-foreground mb-2",children:"Best Practices"}),(0,t.jsx)("p",{children:"The most effective approach combines direct training (like this app) with environmental supports and strategy instruction. Teaching children to use external aids, break down tasks, and develop routines provides lasting benefits beyond the training itself."})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg",children:[(0,t.jsx)("h4",{className:"font-semibold text-foreground mb-2",children:"Realistic Expectations"}),(0,t.jsx)("p",{children:"Working memory training is not a cure for ADHD, but it can be a valuable tool in a comprehensive support plan. Improvements typically emerge after 4-6 weeks of consistent practice. The key is regular, short sessions rather than
1intensive marathon training."})]})]})]}),(0,t.jsxs)(n.Card,{className:"border-destructive/30 bg-destructive/5",children:[(0,t.jsx)(n.CardHeader,{children:(0,t.jsxs)(n.CardTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)(em,{className:"w-5 h-5 text-destructive"}),"When to Seek Additional Support"]})}),(0,t.jsxs)(n.CardContent,{className:"space-y-2 text-sm text-muted-foreground",children:[(0,t.jsx)("p",{children:"Consider consulting with a professional if:"}),(0,t.jsxs)("ul",{className:"list-disc list-inside space-y-1 ml-2",children:[(0,t.jsx)("li",{children:"Your child shows extreme frustration or anxiety during practice"}),(0,t.jsx)("li",{children:"No progress after 4-6 weeks of consistent practice"}),(0,t.jsx)("li",{children:"Working memory difficulties significantly impact daily life or school performance"}),(0,t.jsx)("li",{children:"You need personalised strategies for your child's specific needs"}),(0,t.jsx)("li",{children:"You're unsure whether the challenges are related to ADHD or another condition"})]}),(0,t.jsx)("p",{className:"mt-3 font-medium text-foreground",children:"Educational psychologists, occupational therapists, and ADHD specialists can provide comprehensive assessments and tailored intervention plans."})]})]}),(0,t.jsxs)(n.Card,{children:[(0,t.jsx)(n.CardHeader,{children:(0,t.jsx)(n.CardTitle,{children:"Professional Resources & Support"})}),(0,t.jsxs)(n.CardContent,{className:"space-y-4",children:[(0,t.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,t.jsx)(ex.SchoolDoctorLogo,{className:"h-16 md:h-20"})}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg",children:[(0,t.jsx)("h4",{className:"font-semibold mb-1 text-foreground",children:"School Doctor"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-3",children:"Professional resources, assessments, and support for ADHD and learning differences. Expert guidance for parents, teachers, and healthcare professionals."}),(0,t.jsx)("a",{href:"https://www.school-doctor.com",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary hover:underline font-medium",children:"Visit www.school-doctor.com â"})]}),(0,t.jsxs)("div",{className:"p-4 bg-muted rounded-lg",children:[(0,t.jsx)("h4",{className:"font-semibold mb-1 text-foreground",children:"Get in Touch"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Questions about working memory training, ADHD support, or educational assessments?"}),(0,t.jsx)("a",{href:"mailto:[email protected]",className:"text-sm text-primary hover:underline font-medium",children:"[email protected]"})]})]})]})]})]})]})]})}e.s(["default",()=>ef],23503)}]);
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.