PageSourceSearch

https://www.todamateria.com.br/layout/assets/dist/js/HubLayout.DUgIWSvi.js

js todamateria.com.br collected 2026-10-02 03:07:17 UTC 5,257 bytes, 7 lines download raw bytes

1import{c as x,j as e,L as i,r as b,e as p,O as h}from"./lume.4TUCIZZK.js";import{u as f,I as g,a as v,b as j,c as k,s as T,S as N,d as y,U as L,e as _,f as M,g as I}from"./sidebar-chrome.DyyfGf3G.js";import{u as w}from"./sidebar-theme.BD02dVwd.js";import{B as E}from"./book-open.DWDlQU3p.js";import{M as H}from"./messages-square.Dhb6ofBX.js";import{P as S}from"./pen-line.DALORaQD.js";import{u as $}from"./document-theme.Dh4ww6RB.js";import{T as B}from"./top-bar-slot.CVGqN2on.js";import{T as A}from"./TodaMateriaLogo.OOXSbo49.js";import"./preload-helper.CXnpAtHY.js";import"./_commonjsHelpers.CqkleIqs.js";import"./auth-cookies.Cq4KilpJ.js";import"./analytics.Yss8y0c9.js";import"./clicks-tracker.qzx36gi7.js";import"./funnel-tracker.CkzWyQni.js";import"./v4.CtRu48qb.js";import"./support-chat.Do0LxE4u.js";import"./use-is-mobile.C-uPyDLu.js";import"./chevron-down._T8flZ41.js";import"./arrow-left.ChaRrwRR.js";import"./sun.yG6v1Bxv.js";import"./useQuery.CfupCp4C.js";import"./user.BRHnPlSs.js";import"./plus-cta.LEXy7faW.js";import"./exam-date.ChnrdXu1.js";/**
2 * @license lucide-react v1.26.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const R=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],U=x("house",R),m=[{key:"inicio",label:"Início",shortLabel:"Início",icon:U,screens:["hub"],link:{to:"/",search:{}}},{key:"cadernos",label:"Cadernos",shortLabel:"Cadernos",icon:E,screens:["cadernos"],link:{to:"/cadernos",search:{page:1}}},{key:"tutor",label:"Lume",shortLabel:"Lume",icon:H,screens:["hub_tutor"],link:{to:"/chat",search:{}}},{key:"redacao",label:"Corretor de redação",shortLabel:"Redação",icon:S,screens:["redacao","redacao_minhas","redacao_correcao"],link:{to:"/redacao",search:{}}}];function u(a,s){return s!==void 0&&a.screens.includes(s)}function O({item:a,isActive:s,isCollapsed:o}){const r=a.icon,t=f(a.label,o),n=o?k:"",c=o?"lg:sr-only":"";return e.jsxs(i,{...a.link,...t.anchorProps,className:"".concat(g," ").concat(s?v:j," ").concat(n),children:[e.jsx(r,{"aria-hidden":"true",className:"size-4.5 shrink-0"}),e.jsx("span",{className:"min-w-0 truncate ".concat(c),children:a.label}),t.tooltip]})}function z({screen:a,theme:s,setTheme:o,isCollapsed:r,onToggleCollapsed:t}){return e.jsxs("aside",{"aria-label":"Menu do Lume",className:T(r),children:[e.jsx(N,{isCollapsed:r,onToggleCollapsed:t}),e.jsx("nav",{className:"flex flex-col gap-0.5",children:m.map(n=>e.jsx(O,{isActive:u(n,a),isCollapsed:r,item:n},n.key))}),e.jsx("div",{"aria-hidden":"true",className:"flex-1"}),e.jsx(y,{isCollapsed:r}),e.jsx(L,{isCollapsed:r,onExpand:t}),e.jsx(_,{isCollapsed:r,setTheme:o,theme:s})]})}const d="pb-[calc(76px+env(safe-area-inset-bottom))]";function P({theme:a,setTheme:s}){return e.jsxs("header",{className:"sticky top-0 z-30 flex items-center gap-3 border-b px-4 py-3 [background-color:var(--sb-bg)] [border-color:var(--sb-border)] lg:hidden",children:[e.jsx(i,{"aria-label":"Toda Matéria — início",className:"mr-auto flex transition hover:opacity-70 [color:var(--sb-text)]",search:{},to:"/",children:e.jsx(A,{className:"h-5 w-auto"})}),e.jsx(B,{}),e.jsx(M,{setTheme:s,theme:a})]})}function D({screen:a}){return e.jsx("nav",{"aria-label":"Menu do Lume",className:"fixed inset-x-0 bottom-0 z-40 flex items-stretch border-t px-2 pt-1.5 pb-[calc(6px+env(safe-area-inset-bottom))] [background-color:var(--sb-bg)] [border-color:var(--sb-border)] lg:hidden",children:m.map(s=>{const o=s.icon,r=u(s,a),t=e.jsxs(e.Fragment,{children:[e.jsx(o,{"aria-hidden":"true",className:"size-5 ".concat(r?"":"opacity-90")}),e.jsx("span",{className:"text-[10.5px]/none font-semibold",children:s.shortLabel})]});return b.createElement(i,{...s.link,className:"".concat("flex flex-1 flex-col items-center justify-center gap-1.5 rounded-xl py-2 transition-colors"," ").concat(r?"[background-color:var(--sb-active-bg)] [color:var(--sb-active-text)]":"[color:var(--sb-text-muted)]"),key:s.key},t)})})}const C="h-[calc(100svh-var(--lume-keyboard-inset,0px))]";function be(){var l;const{theme:a,setTheme:s}=w(),{isCollapsed:o,toggle:r}=I();$(a);const t=p(),n=(l=t[t.length-1])==null?void 0:l.staticData.screen,c=n==="hub_tutor";return e.jsxs("div",{className:"min-h-svh font-sans antialiased lg:grid ".concat(o?"lg:grid-cols-[52px_1fr]":"lg:grid-cols-[236px_1fr]"),"data-lume-theme":a,style:{backgroundColor:"var(--lume-wash-base)",backgroundImage:"var(--lume-wash-image)",backgroundAttachment:"fixed"},children:[e.jsx(z,{isCollapsed:o,onToggleCollapsed:r,screen:n,setTheme:s,theme:a}),e.jsxs("div",{className:"min-w-0 ".concat(c?"flex ".concat(C," flex-col overflow-hidden"):""),children:[e.jsx(P,{setTheme:s,theme:a}),e.jsx("main",{className:c?"flex min-h-0 flex-1 flex-col md:px-5 lg:pt-[22px] ".concat(d," lg:pb-0"):"px-5 pt-6 md:px-10 md:pt-9 ".concat(d," lg:pb-16"),children:e.jsx("div",{className:"lume-hub mx-auto max-w-[1120px] text-ink ".concat(c?"flex min-h-0 w-full flex-1 flex-col":""),children:e.jsx(h,{})})})]}),e.jsx(D,{screen:n})]})}export{be as default};
7//# sourceMappingURL=HubLayout.DUgIWSvi.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.