Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/talent.gosepakat.id/public/build/assets/
Upload File :
Current File : /home/aplikasiposinfo/public_html/talent.gosepakat.id/public/build/assets/AdminLayout-DS20Iqve.js

import{r as o,X as M,j as s,x as n,A as S}from"./app-CfNGmD83.js";import{c as j}from"./utils-CytzSlOG.js";import{L as u,S as k,C as p,a as f,b as g,c as z,d as N,M as L,B as O,D as T,e as A,f as E,g as P,h as B,i as U,j as X}from"./dropdown-menu-DLePFVRA.js";import{B as a}from"./button-C15TVD84.js";import{t as w,T as G}from"./toaster-ByauXeMB.js";import{X as d}from"./x-lvw-yoBF.js";import{U as l}from"./users-CkHALqDf.js";import{C as v}from"./chevron-right-Clqb011V.js";import{G as b}from"./graduation-cap-Cs3d3T_6.js";import{a as I}from"./Combination-BaG_u3kO.js";function ss({user:C,header:R,children:y}){const[$,Q]=o.useState(!1),[h,c]=o.useState(!1),[i,D]=o.useState({users:!1,pelatihan:!1,profile:!1}),m=()=>{S.post("/logout")},x=t=>{D(r=>({...r,[t]:!r[t]}))},e=M().props.flash;return o.useEffect(()=>{e&&e.success&&w({title:"Success",description:e.success}),e&&e.error&&w({variant:"destructive",title:"Error",description:e.error})},[e]),s.jsxs("div",{className:"min-h-screen bg-gray-50/95",children:[h&&s.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 lg:hidden",onClick:()=>c(!1)}),s.jsxs("aside",{className:`
            no-print
        fixed left-0 top-0 h-full bg-white border-r shadow-sm z-50
        w-[280px] lg:w-64 
        transition-transform duration-200
        ${h?"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(u,{className:"w-6 h-6 text-blue-600"}),s.jsx("span",{className:"font-semibold text-lg",children:"Talent Dashboard"})]}),s.jsx(a,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>c(!1),children:s.jsx(d,{className:"w-5 h-5"})})]}),s.jsx(k,{className:"h-[calc(100vh-5rem)]",children:s.jsxs("nav",{className:"p-4 space-y-2",children:[s.jsx(n,{href:route("dashboard"),children:s.jsxs(a,{variant:"ghost",className:"w-full justify-start gap-2",children:[s.jsx(u,{className:"w-5 h-5"})," Dashboard"]})}),s.jsxs(p,{open:i.users,onOpenChange:()=>x("users"),children:[s.jsx(f,{asChild:!0,children:s.jsxs(a,{variant:"ghost",className:"w-full justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(l,{className:"w-5 h-5"}),s.jsx("span",{children:"User"})]}),s.jsx(v,{className:j("w-4 h-4 transition-transform",i.users&&"rotate-90")})]})}),s.jsxs(g,{className:"pl-6 space-y-1",children:[s.jsx(n,{href:route("admin.user.index"),children:s.jsxs(a,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2",children:[s.jsx(l,{className:"w-4 h-4"})," User"]})}),s.jsx(n,{href:route("admin.instruktur.index"),children:s.jsxs(a,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2",children:[s.jsx(l,{className:"w-4 h-4"})," Instruktur"]})})]})]}),s.jsxs(p,{open:i.pelatihan,onOpenChange:()=>x("pelatihan"),children:[s.jsx(f,{asChild:!0,children:s.jsxs(a,{variant:"ghost",className:"w-full justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(b,{className:"w-5 h-5"}),s.jsx("span",{children:"Pelatihan"})]}),s.jsx(v,{className:j("w-4 h-4 transition-transform",i.pelatihan&&"rotate-90")})]})}),s.jsxs(g,{className:"pl-6 space-y-1",children:[s.jsx(n,{href:route("admin.pelatihan.index"),children:s.jsxs(a,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2",children:[s.jsx(b,{className:"w-4 h-4"})," Pelatihan"]})}),s.jsx(n,{href:route("admin.pendaftaran.index"),children:s.jsxs(a,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2",children:[s.jsx(l,{className:"w-4 h-4"})," Pendaftaran"]})}),s.jsx(n,{href:route("admin.peserta.index"),children:s.jsxs(a,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2",children:[s.jsx(l,{className:"w-4 h-4"})," Peserta"]})})]})]}),s.jsx(z,{}),s.jsxs(a,{onClick:m,variant:"ghost",className:"w-full justify-start gap-2 text-red-600 hover:text-red-700 hover:bg-red-50",children:[s.jsx(N,{className:"w-5 h-5"})," Log out"]})]})})]}),s.jsxs("main",{className:"lg:ml-64 p-4 lg:p-8",children:[s.jsxs("header",{className:"no-print 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(a,{variant:"outline",size:"icon",onClick:()=>c(!0),children:s.jsx(L,{className:"w-5 h-5"})})}),s.jsxs("div",{className:"flex items-center gap-4 w-full justify-end",children:[s.jsx(a,{variant:"ghost",size:"icon",children:s.jsx(O,{className:"w-5 h-5"})}),s.jsxs(T,{children:[s.jsx(A,{asChild:!0,children:s.jsxs(a,{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:C.nama}),s.jsx(I,{className:"w-4 h-4"})]})}),s.jsxs(E,{className:"w-56",children:[s.jsx(P,{children:"My Account"}),s.jsx(B,{}),s.jsxs(U,{onClick:m,children:[s.jsx(N,{}),s.jsx("span",{children:"Log out"}),s.jsx(X,{children:"⇧⌘Q"})]})]})]})]})]}),e&&e.success&&s.jsx("div",{className:"mb-4",children:s.jsxs("div",{className:"p-4 bg-green-100 border border-green-400 text-green-700 rounded relative",children:[e.success,s.jsx("button",{className:"absolute top-0 right-0 p-2",onClick:t=>{var r;return(r=t.currentTarget.parentElement)==null?void 0:r.remove()},children:s.jsx(d,{className:"w-5 h-5"})})]})}),e&&e.error&&s.jsx("div",{className:"mb-4",children:s.jsxs("div",{className:"p-4 bg-red-100 border border-red-400 text-red-700 rounded relative",children:[e.error,s.jsx("button",{className:"absolute top-0 right-0 p-2",onClick:t=>{var r;return(r=t.currentTarget.parentElement)==null?void 0:r.remove()},children:s.jsx(d,{className:"w-5 h-5"})})]})}),y,s.jsx(G,{})]})]})}export{ss as A};

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