1import{a3 as e,N as j,B as g,r as S,s as b,u as f,t as v}from"./index-BFTDH_v7.js";import{L as N,f as o}from"./router-CT2jKAE3.js";import{I as i}from"./input-B2u6u6iq.js";import{B as y,c as w,a as d,b as C,e as L,d as k}from"./breadcrumb-BTjcMiMU.js";import{u as B}from"./useSectorInsights-DtAKFqoI.js";import{P as _}from"./PageLayout-BfscwHU6.js";import{S as t,D as A}from"./data-table-Dvy2klp5.js";import{S as D}from"./SkeletonLoader-Bn2AWYJk.js";import{S as O}from"./SEO-CbIMNN7P.js";import{a6 as m,aa as R}from"./ui-W2kUagc4.js";import"./table-D5-0uniT.js";const E=[{accessorKey:"sector_name",header:({column:s})=>e.jsx(t,{column:s,children:"Sector"}),cell:({row:s})=>e.jsx(N,{to:`/sector/${encodeURIComponent(s.original.sector_code)}`,className:"font-medium hover:underline",children:s.original.sector_name})},{accessorKey:"total_value",header:({column:s})=>e.jsx("div",{className:"text-right",children:e.jsx(t,{column:s,children:"Total Value"})}),cell:({row:s})=>e.jsx("div",{className:"text-right",children:j(Number(s.original.total_value))})},{accessorKey:"activity_count",header:({column:s})=>e.jsx("div",{className:"text-right",children:e.jsx(t,{column:s,children:"Activities"})}),cell:({row:s})=>e.jsx("div",{className:"text-right",children:s.original.activity_count.toLocaleString()}),meta:{className:"hidden sm:table-cell"}},{accessorKey:"countries_count",header:({column:s})=>e.jsx("div",{className:"text-right",children:e.jsx(t,{column:s,children:"Countries"})}),cell:({row:s})=>e.jsx("div",{className:"text-right",children:s.original.countries_count.toLocaleString()}),meta:{className:"hidden md:table-cell"}}];function Y(){const[s,I]=o.useState({}),[c,n]=o.useState(""),[h,l]=o.useState(!1),{data:u,isLoading:x}=B(s.from,s.to),a=u?.filter(r=>r.sector_name.toLowerCase().includes(c.toLowerCase()))||[],p=e.jsx(y,{children:e.jsxs(w,{children:[e.jsx(d,{children:e.jsx(C,{href:"/",children:e.jsx(R,{className:"h-4 w-4"})})}),e.jsx(L,{}),e.jsx(d,{children:e.jsx(k,{children:"Sectors"})})]})});return e.jsxs(e.Fragment,{children:[e.jsx(O,{title:"Sectors",description:"Explore Australian aid spending by DAC sector. Understand where development resources are directed across health, education, governance and other focus areas.",keywords:["sectors","DAC codes","aid sectors","development focus areas"]}),e.jsx(_,{title:"Sectors",description:"Understand where development resources are directed and how focus areas are evolving",breadcrumbs:p,children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 sm:gap-4",children:[e.jsxs("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:[a.length.toLocaleString()," ",a.length===1?"sector":"sectors"]}),e.jsx(g,{variant:"outline",size:"icon",className:"md:hidden",onClick:()=>l(!0),"aria-label":"Open search",children:e.jsx(m,{className:"h-4 w-4"})}),e.jsx(i,{placeholder:"Search sectors...",value:c,onChange:r=>n(r.target.value),className:"max-w-sm bg-card hidden md:block","aria-label":"Search sectors by name"})]}),e.jsx(S,{open:h,onOpenChange:l,children:e.jsxs(b,{side:"bottom",className:"h-[85vh]",children:[e.jsx(f,{children:"Search sectors"}),e.jsx(v,{children:"Filter sectors by name"}),e.jsxs("div",{className:"mt-4 space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(m,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(i,{placeholder:"Search sectors...",value:c,onChange:r=>n(r.target.value),className:"pl-10",autoFocus:!0,"aria-label":"Search sectors by name"})]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[a.length.toLocaleString()," ",a.length===1?"sector":"sectors"]})]})]})}),x?e.jsx(D,{rows:10}):e.jsx(A,{columns:E,data:a,searchPlaceholder:"Search sectors...",hideRecordCount:!0})]})})]})}export{Y as SectorAnalysis}; 2//# sourceMappingURL=SectorAnalysis-CV_2H7nT.js.map
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.