PageSourceSearch

https://radreport.com.br/assets/EducationLayout-Xivp7rLf.js

js radreport.com.br collected 2026-10-02 01:20:14 UTC 17,064 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-query-CmFN4-M1.js";import{r as p,b as w,u as W,f as k,O as _}from"./vendor-react-7PyNDetJ.js";import{u as D,S as U,a as G,b as z,c as O,d as A,e as P,f as F,i as K,h as $,g as R,l as V,m as q,n as Z,j as X,k as J}from"./sidebar-CVaujkBU.js";import{C as Q,a as Y,b as ee}from"./collapsible-C-Fi5ax-.js";import{u as se}from"./educationStore-BhsXwjSc.js";import{u as te}from"./useWeeklyLeague-h2d9d55x.js";import{T as o,a4 as re,a5 as ae,a7 as oe,p as S,aa as ne,bH as le,bV as ie}from"./index-BZSaBQD0.js";import{P as ce}from"./progress-DnyAYI4Y.js";import{u as de}from"./useEnergy-CZWu8HlW.js";import{u as me}from"./useAICredits-CuY3rfXY.js";import{H as C,T as M}from"./theme-toggle-B3baos1e.js";import{ac as f,Z as E,S as L,o as xe,cj as he,G as ue,aE as pe,aF as je,aB as be,b as I,bh as ve,q as fe,c8 as ge}from"./vendor-ui-DjI1iuvA.js";import{E as Ne,i as T,a as ke,b as we,c as ye}from"./educationNavItems-CXBnVogB.js";import{u as B}from"./useEducationAccess-SnuNCw5j.js";import{E as Se}from"./EduGate-Czn_CB5y.js";import{a as Ce}from"./useEstudoPendencias-CS5XyPWw.js";import{S as Ee,a as Te,b as Oe,c as Ae}from"./sheet-kCUyucS4.js";import{u as Pe}from"./useEducationBootstrap-D3xPJHgd.js";import{u as Re}from"./useStudyProgress-BcS0KsE9.js";import{u as Le}from"./useAchievementChecker-BL7NIDWq.js";import{u as We,P as Me}from"./PlansSelectionSheet-AIY5e4Xb.js";import"./use-mobile-COvAteC-.js";import"./leagueConfig-CXK-5Xsj.js";import"./vendor-supabase-BfoV2C50.js";import"./useUserSessionData-D77KvUsU.js";import"./upgradeBridge-DxSiXl64.js";import"./useUserAchievements-WQGVgD7B.js";import"./learningPathsConfig-FXX-qurp.js";import"./LeagueIcon-f15lAN06.js";import"./edgeFunctionClient-DsSOOeYY.js";import"./errorTranslations-lTGRyFpS.js";import"./sessionTelemetry-X-Vnv8Qs.js";import"./useTrialStatus-BHA4YoRQ.js";import"./TrialCTAButton-UPNQaK_P.js";import"./PromotionalNotice-CVj_MkvF.js";function Ie({compact:t=!1,showFreezes:r=!0,showRefillButton:l=!0,className:i}){const[d,a]=p.useState(!1),{hearts:s,maxHearts:n,isRecharging:m,formattedRechargeTime:x,streakFreezes:h,canStudy:v,isLoading:y}=de(),{balance:j}=me(),u=j>=1&&s<n;if(y)return e.jsx("div",{className:o("flex items-center gap-1",i),children:Array.from({length:5}).map((b,c)=>e.jsx(f,{className:"h-4 w-4 text-muted animate-pulse"},c))});if(t)return e.jsx(re,{children:e.jsxs(ae,{children:[e.jsx(oe,{asChild:!0,children:e.jsxs("div",{className:o("flex items-center gap-1 sm:gap-1.5 px-2 sm:px-3 py-1.5 rounded-full transition-all flex-wrap","","border border-red-500/30",s>0?"":"shadow-none opacity-80",i),children:[e.jsx(f,{className:o("h-4 w-4 transition-all",s>0?"fill-current text-destructive text-destructive drop-":"text-destructive/40")}),e.jsx("span",{className:o("text-sm font-bold",s>0?"text-red-400":"text-red-400/60"),children:s}),m&&e.jsx("span",{className:"text-xs text-destructive/70  ml-0.5 font-mono",children:x}),l&&s<n&&e.jsx(C,{open:d,onOpenChange:a,trigger:e.jsx(S,{variant:"ghost",size:"icon",className:"h-5 w-5 p-0 ml-1  hover: hover:",onClick:b=>{b.stopPropagation(),a(!0)},children:e.jsx(E,{className:"h-3.5 w-3.5"})})})]})}),e.jsxs(ne,{children:[e.jsxs("p",{children:[s,"/",n," corações"]}),m&&e.jsxs("p",{className:"text-xs text-mono-muted",children:["Próximo em ",x]}),!v&&e.jsx("p",{className:"text-xs text-destructive",children:"Sem corações! Aguarde recarregar."}),u&&e.jsx("p",{className:"text-xs ",children:"Clique no raio para recarregar com créditos IA"})]})]})});const g=n>=10,N=s/n*100;return e.jsxs("div",{className:o("flex flex-col gap-3",i),children:[e.jsxs("div",{className:o("relative flex items-center justify-center gap-2 px-5 py-4 rounded-2xl","","border border-red-500/20",s>0&&""),children:[s>0&&e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx(L,{className:"absolute top-2 right-3 h-3 w-3 text-red-400/40 animate-pulse"}),e.jsx(L,{className:"absolute bottom-2 left-4 h-2.5 w-2.5  animate-pulse",style:{animationDelay:"0.5s"}})]}),g?e.jsxs("div",{className:"flex items-center gap-3 w-full",children:[e.jsx(f,{className:o("h-6 w-6 flex-shrink-0",s>0?"fill-current text-destructive text-destructive drop-":"text-destructive/30")}
1),e.jsx("div",{className:"flex-1 space-y-1",children:e.jsx(ce,{value:N,className:"h-3 bg-red-500/10"})}),e.jsxs("div",{className:"text-center flex-shrink-0 min-w-[50px]",children:[e.jsx("div",{className:o("text-xl font-bold",s>0?"text-red-400":"text-red-400/50"),children:s}),e.jsxs("div",{className:"text-[11px] text-destructive/60  uppercase tracking-wider",children:["de ",n]})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex items-center gap-1.5 flex-wrap justify-center",children:Array.from({length:n}).map((b,c)=>e.jsx(f,{className:o("h-6 w-6 transition-all duration-500",c<s?"fill-current text-destructive text-destructive drop- animate-pulse":"text-destructive/20"),style:{animationDelay:`${c*.1}s`,animationDuration:"2s"}},c))}),e.jsxs("div",{className:"ml-3 text-center",children:[e.jsx("div",{className:o("text-2xl font-bold",s>0?"text-red-400":"text-red-400/50"),children:s}),e.jsxs("div",{className:"text-[11px] text-destructive/60  uppercase tracking-wider",children:["de ",n]})]})]})]}),m&&e.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-red-600/80  bg-red-500/5 rounded-xl px-4 py-2",children:[e.jsx(xe,{className:"h-4 w-4 animate-pulse"}),e.jsx("span",{children:"Próximo coração em "}),e.jsx("span",{className:"font-mono font-bold text-red-400",children:x})]}),!v&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-red-400 font-medium bg-red-500/10 rounded-xl px-4 py-2.5 border border-red-500/20",children:[e.jsx(f,{className:"h-4 w-4"}),"Sem corações! Aguarde ou recarregue."]}),l&&e.jsx(C,{open:d,onOpenChange:a,trigger:e.jsxs(S,{variant:"outline",className:o("w-full gap-2 transition-all",u?"hover: hover: ":"border-muted text-mono-muted"),disabled:!u,children:[e.jsx(E,{className:"h-4 w-4"}),"Recarregar com 1 Crédito IA"]})})]}),v&&s<n&&l&&e.jsx(C,{open:d,onOpenChange:a,trigger:e.jsxs(S,{variant:"ghost",size:"sm",className:"gap-2  hover: hover:",children:[e.jsx(E,{className:"h-4 w-4"}),"Recarregar (",j," créditos disponíveis)"]})}),r&&h>0&&e.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm  rounded-xl px-4 py-2 border ",children:[e.jsx(he,{className:"h-4 w-4 "}),e.jsxs("span",{className:"font-medium",children:[h," streak freeze",h>1?"s":""]})]})]})}function Be(){const{state:t}=D(),r=t==="collapsed",{pathname:l,search:i}=w(),d=W(),{streak:a,xp:s}=se(),{currentLeague:n}=te(),m=x=>T(x,l,{search:i});return e.jsxs(U,{collapsible:"icon",className:"landing-mono border-r border-[color:var(--mono-hairline)] bg-[color:var(--mono-bg)]",children:[e.jsx(G,{className:"border-b border-[color:var(--mono-hairline)] bg-[color:var(--mono-bg)]",children:e.jsxs("div",{className:o("flex items-center gap-2.5 px-2 py-3",r&&"justify-center px-0"),children:[e.jsx("div",{className:"h-8 w-8 shrink-0 border border-[color:var(--mono-hairline)] rounded-sm flex items-center justify-center text-mono",children:e.jsx(ue,{className:"h-4 w-4",strokeWidth:1.6})}),!r&&e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-editorial font-extrabold tracking-[-0.02em] text-[19px] leading-none text-mono truncate",children:"Learning Hub"}),e.jsx("div",{className:"eyebrow-mono mt-1.5",children:"Editorial · Educação"})]})]})}),e.jsxs(z,{className:"bg-[color:var(--mono-bg)]",children:[Ne.map(x=>e.jsxs(O,{children:[!r&&e.jsx(A,{className:"text-[11px] uppercase tracking-[0.14em] text-mono-muted px-2",children:x.title}),e.jsx(P,{children:e.jsx(F,{children:x.items.map(h=>e.jsx(_e,{item:h,collapsed:r,isActive:m},h.url))})})]},x.title)),!r&&e.jsxs(O,{children:[e.jsx(A,{className:"text-[11px] uppercase tracking-[0.14em] text-mono-muted px-2",children:"Sessão"}),e.jsx(P,{className:"px-2",children:e.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 py-1",children:[e.jsx(Ie,{compact:!0}),e.jsxs("span",{className:o("chip-mono !gap-1.5 tabular-nums",a>=7&&"border-mono-strong text-mono-emph"),"aria-label":`Sequência de ${a} dias`,children:[e.jsx(pe,{className:"h-3.5 w-3.5",strokeWidth:1.7}),e.jsx("span",{children:a})]}),e.jsxs("span",{className:"chip-mono !gap-1.5 tabular-nums","aria-label":`${s}
1 XP`,children:[e.jsx(je,{className:"h-3.5 w-3.5",strokeWidth:1.7}),e.jsx("span",{children:s.toLocaleString("pt-BR")})]}),n&&e.jsxs("button",{type:"button",onClick:()=>d("/educacao/ranking"),className:"chip-mono !gap-1.5 hover:bg-[color:var(--mono-elevated)] transition-colors","aria-label":`Liga ${n.name}`,children:[e.jsx(be,{className:"h-3.5 w-3.5",strokeWidth:1.7}),e.jsx("span",{children:n.name})]})]})})]})]}),e.jsx(K,{className:"border-t border-[color:var(--mono-hairline)] bg-[color:var(--mono-bg)]",children:e.jsxs("div",{className:o("flex items-center gap-2 p-2",r&&"flex-col"),children:[e.jsxs("button",{type:"button",onClick:()=>d("/editor"),"aria-label":"Voltar ao editor",className:"h-9 flex-1 flex items-center justify-center gap-2 border border-[color:var(--mono-hairline)] rounded-sm text-mono-muted hover:text-mono hover:bg-[color:var(--mono-elevated)] transition-colors text-xs px-2",children:[e.jsx(I,{className:"h-3.5 w-3.5",strokeWidth:1.7}),!r&&e.jsx("span",{children:"Editor"})]}),e.jsx(M,{className:"h-9 w-9 shrink-0"})]})})]})}function He(t){return o("relative rounded-sm text-mono-muted hover:text-mono hover:bg-[color:var(--mono-elevated)] data-[active=true]:bg-[color:var(--mono-elevated)] data-[active=true]:text-mono data-[active=true]:font-medium",t&&'before:content-[""] before:absolute before:left-0 before:top-1.5 before:bottom-1.5 before:w-[2px] before:bg-[color:var(--mono-text)]')}function _e({item:t,collapsed:r,isActive:l}){var N,b;const i=l(t),{can:d}=B(),{data:a}=Ce(),s=!!t.lockKey&&!d(t.lockKey),n=!r&&!!((N=t.children)!=null&&N.length),m=i||!!((b=t.children)!=null&&b.some(c=>l(c))),[x,h]=p.useState(m),[v,y]=p.useState(!1),j=v?x:m||x,u=t.badgeKey==="erros"?(a==null?void 0:a.errosPendentes)??0:t.badgeKey==="revisoes"?(a==null?void 0:a.revisoesVencidas)??0:0,g=e.jsx($,{asChild:!0,isActive:i,tooltip:r?t.title:void 0,className:He(i),children:e.jsxs(k,{to:t.url,end:t.url==="/educacao",children:[e.jsx(t.icon,{className:"h-4 w-4",strokeWidth:1.6}),e.jsx("span",{children:t.title}),u>0&&!r&&e.jsx("span",{className:"ml-auto mr-5 text-[11px] font-mono tabular-nums px-1.5 py-0.5 border border-[color:var(--mono-hairline)] text-mono-muted",children:u>99?"99+":u}),s&&!r&&e.jsx(Se,{className:"ml-auto mr-5"})]})});return n?e.jsx(Q,{open:j,onOpenChange:c=>{y(!0),h(c)},asChild:!0,children:e.jsxs(R,{children:[g,e.jsx(Y,{asChild:!0,children:e.jsx("button",{type:"button","aria-label":j?`Recolher ${t.title}`:`Expandir ${t.title}`,className:"absolute right-1 top-1 h-6 w-6 flex items-center justify-center rounded-sm text-mono-muted hover:text-mono hover:bg-[color:var(--mono-elevated)] transition-colors",children:e.jsx(ve,{className:o("h-3.5 w-3.5 transition-transform",j&&"rotate-90"),strokeWidth:1.7})})}),e.jsx(ee,{children:e.jsx(V,{className:"border-[color:var(--mono-hairline)]",children:t.children.map(c=>{const H=l(c);return e.jsx(q,{children:e.jsx(Z,{asChild:!0,isActive:H,className:"rounded-sm text-mono-muted hover:text-mono hover:bg-[color:var(--mono-elevated)] data-[active=true]:bg-[color:var(--mono-elevated)] data-[active=true]:text-mono",children:e.jsxs(k,{to:c.url,children:[e.jsx(c.icon,{className:"h-3.5 w-3.5",strokeWidth:1.6}),e.jsx("span",{children:c.title})]})})},c.url)})})})]})}):e.jsx(R,{children:g})}function De({open:t,onOpenChange:r}){const{pathname:l,search:i}=w(),d=W();return e.jsx(Ee,{open:t,onOpenChange:r,children:e.jsxs(Te,{side:"bottom",className:"landing-mono edu-scope max-h-[85vh] overflow-y-auto rounded-t-2xl border-[color:var(--mono-hairline)] bg-[color:var(--mono-bg)] edu-sheet-pad",children:[e.jsx(Oe,{className:"text-left",children:e.jsx(Ae,{className:"font-editorial font-extrabold tracking-[-0.02em] text-2xl text-mono",children:"Mais atalhos"})}),e.jsxs("div",{className:"mt-4 space-y-6",children:[ke.map(a=>e.jsxs("section",{children:[e.jsx("h3",{className:"text-[11px] uppercase tracking-[0.14em] text-mono-muted mb-2",children:a.title}),e.jsx("div",{className:"grid grid-cols-3 gap-2",children:a.items.map(s=>e.jsx(Ue,{item:s,active:T(s,l,{search:i}),onNavigate:()=>r(!1)},s.url))})]},a.title)),e.jsxs("section",{children:[e.jsx("h3",{className:"text-[11px] uppercase tracking-[0.14em] text-mono-muted mb-2",children:"Conta"}),e.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[e.jsxs("button",{type:"button",onClick:()=>{r(!1),d("/editor")},className:"flex min-h-16 flex-col items-center justify-center gap-1.5 border border-[color:var(--mono-h
1airline)] rounded-sm p-3 text-mono-muted hover:text-mono hover:bg-[color:var(--mono-elevated)] transition-colors",children:[e.jsx(I,{className:"h-5 w-5",strokeWidth:1.7}),e.jsx("span",{className:"text-[11px] uppercase tracking-[0.14em] text-center",children:"Editor"})]}),e.jsxs("div",{className:"flex min-h-16 flex-col items-center justify-center gap-1.5 border border-[color:var(--mono-hairline)] rounded-sm p-3 text-mono-muted",children:[e.jsx(M,{className:"h-6 w-6"}),e.jsx("span",{className:"text-[11px] uppercase tracking-[0.14em] text-center",children:"Tema"})]})]})]})]})]})})}function Ue({item:t,active:r,onNavigate:l}){const i=t.icon;return e.jsxs(k,{to:t.url,onClick:l,"aria-current":r?"page":void 0,className:o("flex min-h-16 flex-col items-center justify-center gap-1.5 border rounded-sm p-3 transition-colors",r?"border-[color:var(--mono-text)] bg-[color:var(--mono-text)] text-[color:var(--mono-bg)]":"border-[color:var(--mono-hairline)] text-mono-muted hover:text-mono hover:bg-[color:var(--mono-elevated)]"),children:[e.jsx(i,{className:o("h-5 w-5",r&&"stroke-[2.2]"),strokeWidth:1.7}),e.jsx("span",{className:"text-[11px] uppercase tracking-[0.14em] text-center leading-tight",children:t.shortTitle??t.title})]})}function Ge(){const{pathname:t,search:r}=w(),[l,i]=p.useState(!1),{can:d}=B(),a=we.some(s=>t===s||t.startsWith(s+"/")||t.startsWith(s));return e.jsxs(e.Fragment,{children:[e.jsx("nav",{"aria-label":"Navegação do Learning Hub",className:"lg:hidden fixed bottom-0 inset-x-0 z-50 border-t border-[color:var(--mono-hairline)] bg-[color:var(--mono-bg)]/95 backdrop-blur-md pb-[env(safe-area-inset-bottom)] print:hidden",children:e.jsxs("ul",{className:"grid grid-cols-5",children:[ye.map(s=>{const n=T(s,t,{includeChildren:!1,search:r}),m=!!s.lockKey&&!d(s.lockKey);return e.jsx("li",{className:"min-w-0",children:e.jsxs(k,{to:s.url,end:s.url==="/educacao","aria-current":n?"page":void 0,className:o("flex h-16 flex-col items-center justify-center gap-1 px-0.5 text-[clamp(10px,2.6vw,11px)] uppercase tracking-[0.1em] leading-none transition-colors",n?"text-mono":"text-mono-muted"),children:[e.jsxs("span",{className:"relative",children:[e.jsx(s.icon,{className:o("h-5 w-5 shrink-0",n&&"stroke-[2.2]"),strokeWidth:1.7}),m&&e.jsx(fe,{className:"absolute -right-1.5 -top-1 h-2.5 w-2.5 text-mono-muted",strokeWidth:2.4,"aria-hidden":!0})]}),e.jsx("span",{className:"block w-full truncate text-center",children:s.shortTitle??s.title})]})},s.url)}),e.jsx("li",{className:"min-w-0",children:e.jsxs("button",{type:"button",onClick:()=>i(!0),"aria-label":"Mais atalhos","aria-current":a?"page":void 0,className:o("flex w-full h-16 flex-col items-center justify-center gap-1 px-0.5 text-[clamp(10px,2.6vw,11px)] uppercase tracking-[0.1em] leading-none transition-colors",a?"text-mono":"text-mono-muted"),children:[e.jsx(ge,{className:o("h-5 w-5 shrink-0",a&&"stroke-[2.2]"),strokeWidth:1.7}),e.jsx("span",{className:"block w-full truncate text-center",children:"Mais"})]})})]})}),e.jsx(De,{open:l,onOpenChange:i})]})}function ys(){Pe(),Re(),le();const{checkAndUnlockAll:t,isReady:r}=Le(),l=p.useRef(!1),{pathname:i}=w(),{showPlansSheet:d,isLoading:a,closePlansSheet:s,handleSelectPlan:n}=We();return p.useEffect(()=>{if(r&&!l.current){l.current=!0;const m=setTimeout(()=>t(),2e3);return()=>clearTimeout(m)}},[r]),p.useEffect(()=>{window.scrollTo({top:0,behavior:"auto"})},[i]),e.jsx(X,{defaultOpen:!0,children:e.jsxs("div",{className:o("flex min-h-screen w-full max-w-full overflow-x-clip landing-mono edu-scope bg-[color:var(--mono-bg)]"),children:[e.jsx("div",{className:"hidden lg:block",children:e.jsx(Be,{})}),e.jsxs("div",{className:"flex-1 flex flex-col min-w-0 max-w-full",children:[e.jsx("div",{className:"hidden lg:flex sticky top-0 z-40 h-11 items-center gap-2 px-3 border-b border-[color:var(--mono-hairline)] bg-[color:var(--mono-bg)]/85 backdrop-blur-sm",children:e.jsx(J,{className:"h-8 w-8 text-mono-muted hover:text-mono"})}),e.jsx("main",{className:o("flex-1 min-w-0 max-w-full overflow-x-clip","edu-scroll-pad"),children:e.jsx(ie,{children:e.jsx(_,{})})})]}),e.jsx(Ge,{}),e.jsx(Me,{open:d,onOpenChange:s,onSelectPlan:n,isLoading:a})]})})}export{ys as EducationLayout};

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.