Anons79 Mini Shell

Directory : /home/aplikasiposinfo/.trash/build.1/assets/
Upload File :
Current File : /home/aplikasiposinfo/.trash/build.1/assets/InstrukturDashboard-l77yhrbF.js

import{r as t,X as j,j as s,x as l,A as N,S as b}from"./app-Dqm4owHT.js";import{c as v}from"./index-Ebf2_-ZL.js";import{L as m,S as C,C as y,a as D,b as M,c as S,d as x,M as k,B as z,D as L,e as O,f as T,g as A,h as B,i as E,j as P}from"./dropdown-menu-BCRVGgoO.js";import{B as e}from"./button-B8ZzRKBh.js";import{t as p,T as X}from"./toaster-D9vdlzAC.js";import{X as G}from"./x-DjRPG20W.js";import{G as u}from"./graduation-cap-CAt1NeIc.js";import{C as I}from"./chevron-right-Da1NFNyx.js";import{U as R}from"./users-BBYl_L7X.js";import{a as U}from"./Combination-DterT_Fn.js";import"./index-D3BPeFjX.js";import"./index-HNzDpnpF.js";import"./createLucideIcon-Cc-ke-6N.js";import"./index-BbqwfHyN.js";function $({user:r,header:Q,children:f}){const[q,F]=t.useState(!1),[i,n]=t.useState(!1),[o,g]=t.useState({users:!1,pelatihan:!1,profile:!1}),c=()=>{N.post("/logout")},w=d=>{g(h=>({...h,[d]:!h[d]}))},a=j().props.flash;return t.useEffect(()=>{a&&a.success&&p({title:"Success",description:a.success}),a&&a.error&&p({variant:"destructive",title:"Error",description:a.error})},[a]),s.jsxs("div",{className:"min-h-screen bg-gray-50/95",children:[i&&s.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 lg:hidden",onClick:()=>n(!1)}),s.jsxs("aside",{className:`
        fixed left-0 top-0 h-full bg-white border-r shadow-sm z-50
        w-[280px] lg:w-64 
        transition-transform duration-200
        ${i?"translate-x-0":"-translate-x-full lg:translate-x-0"}
      `,children:[s.jsxs("div",{className:"flex items-center justify-between p-6 border-b",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(m,{className:"w-6 h-6 text-blue-600"}),s.jsx("span",{className:"font-semibold text-lg",children:"Talent Dashboard"})]}),s.jsx(e,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>n(!1),children:s.jsx(G,{className:"w-5 h-5"})})]}),s.jsx(C,{className:"h-[calc(100vh-5rem)]",children:s.jsxs("nav",{className:"p-4 space-y-2",children:[s.jsx(l,{href:route("dashboard"),children:s.jsxs(e,{variant:"ghost",className:"w-full justify-start gap-2",children:[s.jsx(m,{className:"w-5 h-5"})," Overview"]})}),s.jsxs(y,{open:o.pelatihan,onOpenChange:()=>w("pelatihan"),children:[s.jsx(D,{asChild:!0,children:s.jsxs(e,{variant:"ghost",className:"w-full justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(u,{className:"w-5 h-5"}),s.jsx("span",{children:"Pelatihan"})]}),s.jsx(I,{className:v("w-4 h-4 transition-transform",o.pelatihan&&"rotate-90")})]})}),s.jsxs(M,{className:"pl-6 space-y-1",children:[s.jsx(l,{href:route("admin.pelatihan.index"),children:s.jsxs(e,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2",children:[s.jsx(u,{className:"w-4 h-4"})," Pelatihan"]})}),s.jsx(l,{href:route("admin.pendaftaran.index"),children:s.jsxs(e,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2",children:[s.jsx(R,{className:"w-4 h-4"})," Pendaftaran"]})})]})]}),s.jsx(S,{}),s.jsxs(e,{onClick:c,variant:"ghost",className:"w-full justify-start gap-2 text-red-600 hover:text-red-700 hover:bg-red-50",children:[s.jsx(x,{className:"w-5 h-5"})," Log out"]})]})})]}),s.jsxs("main",{className:"lg:ml-64 p-4 lg:p-8",children:[s.jsxs("header",{className:"flex flex-row justify-end mb:justify-start items-start sm:items-center gap-4 mb-4",children:[s.jsx("div",{className:"flex items-center gap-4 lg:hidden",children:s.jsx(e,{variant:"outline",size:"icon",onClick:()=>n(!0),children:s.jsx(k,{className:"w-5 h-5"})})}),s.jsxs("div",{className:"flex items-center gap-4 w-full justify-end",children:[s.jsx(e,{variant:"ghost",size:"icon",children:s.jsx(z,{className:"w-5 h-5"})}),s.jsxs(L,{children:[s.jsx(O,{asChild:!0,children:s.jsxs(e,{variant:"outline",className:"gap-2",children:[s.jsx("img",{src:route("my-avatar"),alt:"Profile",className:"w-6 h-6 rounded-full"}),s.jsx("span",{className:"hidden sm:inline",children:r.nama}),s.jsx(U,{className:"w-4 h-4"})]})}),s.jsxs(T,{className:"w-56",children:[s.jsx(A,{children:"My Account"}),s.jsx(B,{}),s.jsxs(E,{onClick:c,children:[s.jsx(x,{}),s.jsx("span",{children:"Log out"}),s.jsx(P,{children:"⇧⌘Q"})]})]})]})]})]}),f,s.jsx(X,{})]})]})}function ls(){const r=j().props.auth.user;return s.jsx($,{user:r,header:s.jsx("h2",{className:"font-semibold text-xl text-gray-800 leading-tight",children:"Dashboard"}),children:s.jsx(b,{title:"Dashboard"})})}export{ls as default};

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]