PageSourceSearch

https://workers.com.zm/VAADIN/build/@index-D6PT9UIQ.js

js workers.com.zm collected 2026-10-04 16:29:06 UTC 6,101 bytes, 3 lines download raw bytes

1import{N as f,h as r,k as e,K as d,L as v,o as N,C as w,p as b}from"./indexhtml-CRmPj3fm.js";import{H as D}from"./header-BVfe_XtN.js";import{S}from"./seo-Cr2hitEq.js";import{c as y}from"./BranchService-CUC9Skmm.js";import{a as j}from"./DepartmentsEndpoint-BIollDsD.js";import"./commonjsHelpers-Cpj98o6Y.js";import"./chevron-right-BsiW1jwk.js";function C({setPageTitle:i}={}){var o=f(1);try{const[l,a]=r.useState(!1),[n,c]=r.useState(null),[s,p]=r.useState([]),[m,u]=r.useState(0),x=async()=>{a(!0),c(null);try{const g=await j("DIRECTORATE");p(g??[])}catch(t){console.error(t),c("Failed to load directorates")}finally{a(!1)}},h=async()=>{try{const t=await y();u(Math.max(0,(t??0)-1))}catch(t){console.error(t)}};return r.useEffect(()=>{i?.("Directorates"),x(),h()},[i]),l?e.jsx(d,{children:e.jsx("p",{children:"Loading directorates..."})}):n?e.jsx(d,{children:e.jsx("p",{className:"text-destructive",children:n})}):e.jsxs(d,{children:[e.jsx("div",{className:"flex items-center justify-between gap-x-10 mb-5 md:mb-10",children:e.jsxs("div",{className:"text-left title-3 !font-light flex gap-x-5 flex-wrap text-muted-foreground",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-foreground",children:s.length})," ","Directorate",s.length!==1&&"s"]}),e.jsxs("div",{children:["Across ",m," Branch",m!==1&&"es"]})]})}),s.length===0?e.jsx("p",{children:"No directorates available."}):e.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-3 gap-3 md:gap-5 my-5",children:s.map(t=>e.jsxs(v,{to:`./${t.code}
1`,className:" group relative p-3 md:p-4 rounded-2xl transition-transform duration-200 ease-out motion-reduce:transition-none hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-secondary/50 ",children:[e.jsx("div",{className:"absolute top-2 bottom-2 left-0 w-1 rounded-2xl bg-muted transition-all duration-200 ease-out group-hover:bg-primary group-hover:w-1.5"}),e.jsx("div",{className:"rounded-xl pl-4 pr-2 py-3 transition-colors duration-200 ease-out bg-transparent group-hover:bg-primary/10 shadow-none group-hover:shadow-sm",children:e.jsx("h2",{className:"title-3 !mb-0 leading-5 transition-colors transition-transform duration-200 ease-out group-hover:translate-x-0.5 group-hover:text-primary",children:t.name})})]},t.code))})]})}finally{o.f()}}function E({setPageTitle:i}={}){var o=f(1);try{const[l,a]=r.useState(!1),[n,c]=r.useState(null),[s,p]=r.useState([]),[m,u]=r.useState(0),x=async()=>{a(!0),c(null);try{const g=await j("DEPARTMENT");p(g??[])}catch(t){console.error(t),c("Failed to load departments")}finally{a(!1)}},h=async()=>{try{const t=await y();u(Math.max(0,(t??0)-1))}catch(t){console.error(t)}};return r.useEffect(()=>{i?.("Departments"),x(),h()},[i]),l?e.jsx(d,{children:e.jsx("p",{children:"Loading departments..."})}):n?e.jsx(d,{children:e.jsx("p",{className:"text-destructive",children:n})}):e.jsxs(d,{children:[e.jsx("div",{className:"flex items-center justify-between gap-x-10 mb-5 md:mb-10",children:e.jsxs("div",{className:"text-left title-3 !font-light flex gap-x-5 flex-wrap text-muted-foreground",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-foreground",children:s.length})," Department",s.length!==1&&"s"]}),e.jsxs("div",{children:["Across ",m," Branch",m!==1&&"es"]})]})}),s.length===0?e.jsx("p",{children:"No departments available."}):e.jsx("div",{className:"grid md:grid-cols-2 xl:grid-cols-3 gap-3 md:gap-5 my-5",children:s.map(t=>e.jsxs(v,{to:`./${t.code}
1`,className:" group relative p-3 md:p-4 rounded-2xl transition-transform duration-200 ease-out motion-reduce:transition-none hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 ",children:[e.jsx("div",{className:"absolute top-2 bottom-2 left-0 w-1 rounded-2xl bg-muted transition-all duration-200 ease-out group-hover:bg-primary group-hover:w-1.5"}),e.jsx("div",{className:"rounded-xl pl-4 pr-2 py-3 transition-colors duration-200 ease-out bg-transparent group-hover:bg-primary/10 shadow-none group-hover:shadow-sm",children:e.jsx("h2",{className:"title-3 !mb-0 leading-5 transition-colors transition-transform duration-200 ease-out group-hover:translate-x-0.5 group-hover:text-primary",children:t.name})})]},t.code))})]})}finally{o.f()}}const _={menu:{order:4,icon:"line-awesome/svg/ad-solid.svg"},title:"Departments",loginRequired:!1};function T(){var i=f(1);try{const[o,l]=r.useState("directorates"),[a,n]=r.useState("Directorates"),c=r.useMemo(()=>{const s=a.toLowerCase();return`${N} is made up of different ${s} that work together to protect
2workers and employers. Each ${s} has a specific role, from handling claims and benefits,
3to finance, customer service, inspections, and IT support.`},[a]);return e.jsxs("main",{className:"bg-muted/30",children:[e.jsx(S,{title:"Departments",description:"Explore the directorates and departments that make up Workers' Compensation.",path:"/departments"}),e.jsx(D,{eyebrow:"Structure",label:`Our ${a}`,description:c,descriptionSize:"lg",image:"/images/campaign/hero-group.webp"}),e.jsx(w,{className:"py-16 md:py-24",children:e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"mb-8 border-b border-muted",children:e.jsxs("nav",{className:"flex space-x-2","aria-label":"Tabs",children:[e.jsx("button",{type:"button",onClick:()=>l("directorates"),className:b("cursor-pointer -mb-px border-b-2 px-4 py-3 font-medium tracking-tight transition-colors",o==="directorates"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-primary"),children:"Directorates"}),e.jsx("button",{type:"button",onClick:()=>l("departments"),className:b("cursor-pointer -mb-px border-b-2 px-4 py-3 font-medium tracking-tight transition-colors",o==="departments"?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-primary"),children:"Departments"})]})}),e.jsxs("div",{className:"mt-4",children:[o==="directorates"&&e.jsx(C,{setPageTitle:n}),o==="departments"&&e.jsx(E,{setPageTitle:n})]})]})})]})}finally{i.f()}}Object.defineProperty(T,"name",{value:"Index"});export{_ as config,T 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.