var l=Object.defineProperty,u=Object.defineProperties;var d=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var s=(t,r,o)=>r in t?l(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o,a=(t,r)=>{for(var o in r||(r={}))g.call(r,o)&&s(t,o,r[o]);if(p)for(var o of p(r))f.call(r,o)&&s(t,o,r[o]);return t},n=(t,r)=>u(t,d(r));import{jsxs as c,jsx as e}from"react/jsx-runtime";import{U as h,V as x,B as w,W as D,X as N,c as y}from"./ui-components-B24mpb8o.js";import{g as C}from"./route-D0xh7FtZ.js";import{usePage as M,router as j}from"@inertiajs/react";import{ChevronsUpDown as P}from"lucide-react";import"next-themes";import"sonner";import"react";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";const pr=()=>{var m;const t=M(),r=C(t.url),o=t.props.statuses;return c(h,{children:[e(x,{className:"flex items-center justify-center",children:c(w,{variant:"ghost",className:"text-muted-foreground capitalize",children:[e("span",{children:(m=r.status)!=null?m:"Status"}),e(P,{className:"h-3 w-3 text-gray-700"})]})}),e(D,{align:"center",className:"min-w-[72px]",children:["all",...o].map(i=>e(N,{onClick:()=>j.get(route("courses.index",n(a({},r),{status:i}))),className:y("cursor-pointer text-center capitalize",r.status===i&&"bg-gray-100"),children:i},i))})]})};export{pr as default};
