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-AM-rMg-Q.js

import{r as c,X as M,j as s,x as t,A as D}from"./app-k86Ef-z9.js";import{c as u}from"./index-7WSXypvi.js";import{L as j,S,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 I,i as B,j as U}from"./dropdown-menu-D6NBsqXL.js";import{B as e}from"./button-_NvSFZmI.js";import{t as w,T as X}from"./toaster-Cq9HAi8u.js";import{X as d}from"./x-BioAQiNH.js";import{c as G}from"./createLucideIcon-0-ULngH7.js";import{U as l}from"./users-Lz_YHj9-.js";import{C as v}from"./chevron-right-Fm4h_7HY.js";import{G as b}from"./graduation-cap-D9WCOiIx.js";import{a as R}from"./Combination-48UUUXzm.js";/**
 * @license lucide-react v0.474.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],$=G("Info",_);function ts({user:y,header:J,children:C}){const[Q,q]=c.useState(!1),[h,o]=c.useState(!1),[i,k]=c.useState({users:!1,pelatihan:!1,profile:!1}),m=()=>{D.post("/logout")},x=n=>{k(r=>({...r,[n]:!r[n]}))},a=M().props.flash;return c.useEffect(()=>{a&&a.success&&w({title:"Success",description:a.success}),a&&a.error&&w({variant:"destructive",title:"Error",description:a.error})},[a]),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:()=>o(!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(j,{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:()=>o(!1),children:s.jsx(d,{className:"w-5 h-5"})})]}),s.jsx(S,{className:"h-[calc(100vh-5rem)]",children:s.jsxs("nav",{className:"p-4 space-y-2",children:[s.jsx(t,{href:route("dashboard"),children:s.jsxs(e,{variant:"ghost",className:"w-full justify-start gap-2",children:[s.jsx(j,{className:"w-5 h-5"})," Dashboard"]})}),s.jsx(t,{href:route("admin.juknis-pelatihan.index"),children:s.jsxs(e,{variant:"ghost",className:"w-full justify-start gap-2",children:[s.jsx($,{className:"w-5 h-5"})," Juknis Pelatihan"]})}),s.jsxs(p,{open:i.users,onOpenChange:()=>x("users"),children:[s.jsx(f,{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(l,{className:"w-5 h-5"}),s.jsx("span",{children:"User"})]}),s.jsx(v,{className:u("w-4 h-4 transition-transform",i.users&&"rotate-90")})]})}),s.jsxs(g,{className:"pl-6 space-y-1",children:[s.jsx(t,{href:route("admin.user.index"),children:s.jsxs(e,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2",children:[s.jsx(l,{className:"w-4 h-4"})," User"]})}),s.jsx(t,{href:route("admin.instruktur.index"),children:s.jsxs(e,{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(e,{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:u("w-4 h-4 transition-transform",i.pelatihan&&"rotate-90")})]})}),s.jsxs(g,{className:"pl-6 space-y-1",children:[s.jsx(t,{href:route("admin.pelatihan.index"),children:s.jsxs(e,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2",children:[s.jsx(b,{className:"w-4 h-4"})," Pelatihan"]})}),s.jsx(t,{href:route("admin.pendaftaran.index"),children:s.jsxs(e,{variant:"ghost",size:"sm",className:"w-full justify-start gap-2",children:[s.jsx(l,{className:"w-4 h-4"})," Pendaftaran"]})}),s.jsx(t,{href:route("admin.peserta.index"),children:s.jsxs(e,{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(e,{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(e,{variant:"outline",size:"icon",onClick:()=>o(!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(e,{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(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:y.nama}),s.jsx(R,{className:"w-4 h-4"})]})}),s.jsxs(E,{className:"w-56",children:[s.jsx(P,{children:"My Account"}),s.jsx(I,{}),s.jsxs(B,{onClick:m,children:[s.jsx(N,{}),s.jsx("span",{children:"Log out"}),s.jsx(U,{children:"⇧⌘Q"})]})]})]})]})]}),a&&a.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:[a.success,s.jsx("button",{className:"absolute top-0 right-0 p-2",onClick:n=>{var r;return(r=n.currentTarget.parentElement)==null?void 0:r.remove()},children:s.jsx(d,{className:"w-5 h-5"})})]})}),a&&a.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:[a.error,s.jsx("button",{className:"absolute top-0 right-0 p-2",onClick:n=>{var r;return(r=n.currentTarget.parentElement)==null?void 0:r.remove()},children:s.jsx(d,{className:"w-5 h-5"})})]})}),C,s.jsx(X,{})]})]})}export{ts as A};

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