import{u as C,r as b,j as e,f as S,bf as T,ao as L,e as z}from"./vendor-BKmmeuxg.js";import{B as a}from"./button-BpNwv2aE.js";import{C as P}from"./card-D9_SJYq6.js";import{S as E}from"./scroll-area-C8HGru-R.js";import{S as k,a as B,b as D}from"./sheet-DSvHVmaW.js";import{T as d,a as p,b as x,c as h}from"./tooltip-BsX7Z6vz.js";import{u as F}from"./use-screen-DU5n3V8C.js";import{L as O}from"./landing-layout-DQFYAk24.js";import{g as Q}from"./route-B4ZMN77y.js";import u from"./exam-filter-y35xDmC7.js";import"./index-WW_1X1qx.js";import"./utils-DxSsnXxD.js";import"./index-CupQom6K.js";import"./app-logo-CmnEIwal.js";import"./main-_V386djS.js";import"./index-D9-QKOod.js";import"./dropdown-menu-DO-po5c1.js";import"./use-auth-NG-DQJrC.js";import"./appearance-D2z3xcjR.js";import"./app-BytVvUs_.js";/* empty css            */import"./language-BFZ7KItL.js";import"./separator-_3LZ_wAA.js";import"./notification-CYMPYbAP.js";import"./popover-B4kBsMuI.js";import"./profile-toggle-CvHrFE0q.js";import"./avatar-j28afJTV.js";import"./index.browser-OxPLOBIU.js";import"./search-input-D2aHQefO.js";import"./debounce-CWHP_ANh.js";import"./radio-group-C0C2vfl-.js";const he=({children:j})=>{const{url:f,props:g}=C(),{category:s,translate:v}=g,{frontend:r}=v,[N,o]=b.useState(!1),l=Q(f),n=l.view??"grid",{screen:c}=F(),y=(t,w)=>{const i={...l};return"search"in i&&delete i.search,route("category.exams",{category:w||"all",...i,...t})},m=t=>{z.get(y({view:t},s==null?void 0:s.slug))};return e.jsx(O,{customizable:!1,children:e.jsxs("div",{className:"container flex items-start gap-6 py-6",children:[c>768&&e.jsx(P,{className:"sticky top-24 w-64 p-4",children:e.jsx(u,{})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[c<768&&e.jsxs(k,{open:N,onOpenChange:o,children:[e.jsx(B,{asChild:!0,children:e.jsx(a,{size:"icon",variant:"outline",children:e.jsx(S,{className:"h-5 w-5"})})}),e.jsx(D,{side:"left",className:"border-border w-[220px]",children:e.jsx(E,{className:"h-full",children:e.jsx(u,{setOpen:o})})})]}),e.jsxs("div",{children:[e.jsxs("h2",{className:"text-2xl font-bold capitalize",children:[s?s.title:r.all," Exams"]}),s&&s.description&&e.jsx("p",{className:"text-muted-foreground mt-1 text-sm",children:s.description})]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(d,{delayDuration:0,children:e.jsxs(p,{children:[e.jsx(x,{asChild:!0,children:e.jsx(a,{size:"icon",variant:n==="grid"?"default":"outline",onClick:()=>m("grid"),children:e.jsx(T,{className:"h-4 w-4"})})}),e.jsx(h,{children:e.jsx("p",{children:r.grid_view})})]})}),e.jsx(d,{delayDuration:0,children:e.jsxs(p,{children:[e.jsx(x,{asChild:!0,children:e.jsx(a,{size:"icon",variant:n==="list"?"default":"outline",onClick:()=>m("list"),children:e.jsx(L,{className:"h-4 w-4"})})}),e.jsx(h,{children:e.jsx("p",{children:r.list_view})})]})})]})]}),j]})]})})};export{he as default};
