PageSourceSearch

https://www.kalpvaig.com/build/assets/ShowDepartmentDialog-BFasNZzj.js

js kalpvaig.com collected 2026-10-02 14:04:51 UTC 2,549 bytes, 1 lines download raw bytes

1import{j as e}from"./app-5HZrl6Of.js";import{B as o}from"./button-qEnUdDhi.js";import{D as l,a as n,c as m,d,e as x}from"./dialog-B6qCKv9Q.js";import{L as r}from"./label-DosFNneP.js";import"./vendor-lucide-BJGcDKZJ.js";import"./vendor-quill-SpU0cbOg.js";/* empty css            */import"./index-DEAvTe4H.js";import"./index-CZxli20t.js";import"./vendor-charts-BZef9nxL.js";import"./vendor-leaflet-1W-YrAnr.js";import"./utils-qJUb9sMD.js";import"./index-CqDWfTw7.js";function F({department:a,open:t,setOpen:i}){return a?e.jsx(l,{open:t,onOpenChange:i,children:e.jsxs(n,{className:"sm:max-w-[500px] max-h-[85vh] flex flex-col bg-white p-0 overflow-hidden gap-0",onOpenAutoFocus:s=>s.preventDefault(),children:[e.jsx(m,{className:"px-6 py-4 border-b flex-shrink-0",children:e.jsx(d,{children:"View Department"})}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-5",children:[e.jsxs("div",{className:"grid gap-2 animate-in slide-in-from-bottom-2 fade-in duration-500",style:{animationDelay:"100ms",animationFillMode:"both"},children:[e.jsxs(r,{htmlFor:"view-name",className:"text-left font-semibold",children:["Department Name ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("div",{className:"flex h-11 w-full rounded-lg border border-gray-200 bg-gray-50 px-3 py-2.5 text-sm text-gray-500 cursor-default",children:a.name})]}),e.jsxs("div",{className:"grid gap-2 animate-in slide-in-from-bottom-2 fade-in duration-500",style:{animationDelay:"200ms",animationFillMode:"both"},children:[e.jsx(r,{htmlFor:"view-description",className:"text-left font-semibold",children:"Description"}),e.jsx("div",{className:"flex min-h-[100px] w-full rounded-lg border border-gray-200 bg-gray-50 px-3 py-2 text-sm text-gray-500 cursor-default whitespace-pre-wrap",children:a.description})]}),e.jsxs("div",{className:"grid gap-2 animate-in slide-in-from-bottom-2 fade-in duration-500",style:{animationDelay:"300ms",animationFillMode:"both"},children:[e.jsx(r,{htmlFor:"view-status",className:"text-left font-semibold",children:"Status"}),e.jsx("div",{className:"flex h-11 w-full rounded-lg border border-gray-200 bg-gray-50 px-3 py-2.5 text-sm text-gray-500 cursor-default",children:a.status||"Active"})]})]}),e.jsx(x,{className:"px-6 py-4 border-t flex-shrink-0 bg-gray-50 flex items-center justify-end gap-3 sm:flex-row",children:e.jsx(o,{type:"button",variant:"outline",onClick:()=>i(!1),className:"border-gray-200 text-gray-700 hover:bg-gray-50 h-11 px-6 rounded-lg font-medium shadow-sm",children:"Close"})})]})}):null}export{F as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.