@burdenoff/microfe-govcitizenhub 2026.720.7 → 2026.730.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/govcitizenhub/GovCitizenHubRoot.d.ts.map +1 -1
- package/dist/govcitizenhub/GovCitizenHubRoot.js +44 -36
- package/dist/govcitizenhub/GovCitizenHubRoot.js.map +1 -1
- package/dist/govcitizenhub/GovCitizenHubRoutes.d.ts.map +1 -1
- package/dist/govcitizenhub/GovCitizenHubRoutes.js +134 -6
- package/dist/govcitizenhub/GovCitizenHubRoutes.js.map +1 -1
- package/dist/govcitizenhub/components/DocumentUploadField.d.ts +17 -11
- package/dist/govcitizenhub/components/DocumentUploadField.d.ts.map +1 -1
- package/dist/govcitizenhub/components/DocumentUploadField.js +45 -42
- package/dist/govcitizenhub/components/DocumentUploadField.js.map +1 -1
- package/dist/govcitizenhub/components/GovCharts.js +127 -51
- package/dist/govcitizenhub/components/GovCharts.js.map +1 -1
- package/dist/govcitizenhub/hooks/index.d.ts +1 -0
- package/dist/govcitizenhub/hooks/index.d.ts.map +1 -1
- package/dist/govcitizenhub/hooks/index.js +1 -0
- package/dist/govcitizenhub/hooks/useGovApi.d.ts +3 -0
- package/dist/govcitizenhub/hooks/useGovApi.d.ts.map +1 -1
- package/dist/govcitizenhub/hooks/useGovApi.js +1 -1
- package/dist/govcitizenhub/hooks/useGovApi.js.map +1 -1
- package/dist/govcitizenhub/hooks/useIntelligenceApi.d.ts +214 -0
- package/dist/govcitizenhub/hooks/useIntelligenceApi.d.ts.map +1 -0
- package/dist/govcitizenhub/hooks/useIntelligenceApi.js +1140 -0
- package/dist/govcitizenhub/hooks/useIntelligenceApi.js.map +1 -0
- package/dist/govcitizenhub/index.d.ts +1 -0
- package/dist/govcitizenhub/index.d.ts.map +1 -1
- package/dist/govcitizenhub/index.js +18 -0
- package/dist/govcitizenhub/pages/agencies/AgenciesPage.js +7 -7
- package/dist/govcitizenhub/pages/agencies/AgencyFormDialog.js +6 -6
- package/dist/govcitizenhub/pages/applications/ApplicationDetailPage.js +16 -16
- package/dist/govcitizenhub/pages/applications/ApplicationsPage.js +35 -35
- package/dist/govcitizenhub/pages/applications/ApplicationsPage.js.map +1 -1
- package/dist/govcitizenhub/pages/applications/NewApplicationPage.js +1 -1
- package/dist/govcitizenhub/pages/documents/DocumentsPage.js +5 -5
- package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.js +30 -30
- package/dist/govcitizenhub/pages/grievances/GrievanceDetailPage.js.map +1 -1
- package/dist/govcitizenhub/pages/grievances/GrievancesPage.js +15 -15
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.js +634 -0
- package/dist/govcitizenhub/pages/intelligence/AdminLevelsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.d.ts +20 -0
- package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.js +537 -0
- package/dist/govcitizenhub/pages/intelligence/AssetFormDialog.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetImage.d.ts +11 -0
- package/dist/govcitizenhub/pages/intelligence/AssetImage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetImage.js +25 -0
- package/dist/govcitizenhub/pages/intelligence/AssetImage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.d.ts +15 -0
- package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.js +203 -0
- package/dist/govcitizenhub/pages/intelligence/AssetMapPanel.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.js +497 -0
- package/dist/govcitizenhub/pages/intelligence/BenchmarkPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/BudgetPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/BudgetPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/BudgetPage.js +1084 -0
- package/dist/govcitizenhub/pages/intelligence/BudgetPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.d.ts +13 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.js +581 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationFormDialog.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.d.ts +11 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.js +429 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationParticipateDialog.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.d.ts +8 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.js +235 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationResultsPanel.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.js +534 -0
- package/dist/govcitizenhub/pages/intelligence/ConsultationsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.js +723 -0
- package/dist/govcitizenhub/pages/intelligence/CorrectionsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ElectionsPage.d.ts +5 -0
- package/dist/govcitizenhub/pages/intelligence/ElectionsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ElectionsPage.js +1029 -0
- package/dist/govcitizenhub/pages/intelligence/ElectionsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/GovernancePage.d.ts +5 -0
- package/dist/govcitizenhub/pages/intelligence/GovernancePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/GovernancePage.js +1545 -0
- package/dist/govcitizenhub/pages/intelligence/GovernancePage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.js +960 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorCatalogPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.d.ts +13 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.js +927 -0
- package/dist/govcitizenhub/pages/intelligence/IndicatorsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.js +620 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionDirectoryPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.d.ts +20 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.js +183 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionLayout.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.js +629 -0
- package/dist/govcitizenhub/pages/intelligence/JurisdictionProfilePage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/OpenDataPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/OpenDataPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/OpenDataPage.js +1125 -0
- package/dist/govcitizenhub/pages/intelligence/OpenDataPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ProjectsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/ProjectsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ProjectsPage.js +1518 -0
- package/dist/govcitizenhub/pages/intelligence/ProjectsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.js +577 -0
- package/dist/govcitizenhub/pages/intelligence/PublicAssetsPage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.d.ts +4 -0
- package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.js +534 -0
- package/dist/govcitizenhub/pages/intelligence/ServicePerformancePage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/TimelinePage.d.ts +5 -0
- package/dist/govcitizenhub/pages/intelligence/TimelinePage.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/TimelinePage.js +538 -0
- package/dist/govcitizenhub/pages/intelligence/TimelinePage.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/consultationQuestions.d.ts +53 -0
- package/dist/govcitizenhub/pages/intelligence/consultationQuestions.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/consultationQuestions.js +138 -0
- package/dist/govcitizenhub/pages/intelligence/consultationQuestions.js.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/index.d.ts +27 -0
- package/dist/govcitizenhub/pages/intelligence/index.d.ts.map +1 -0
- package/dist/govcitizenhub/pages/intelligence/index.js +17 -0
- package/dist/govcitizenhub/pages/payments/PaymentsPage.js +11 -11
- package/dist/govcitizenhub/pages/payments/PaymentsPage.js.map +1 -1
- package/dist/govcitizenhub/pages/permits/PermitsPage.js +6 -6
- package/dist/govcitizenhub/pages/services/ServiceDetailPage.js +8 -8
- package/dist/govcitizenhub/pages/services/ServiceFormDialog.js +98 -98
- package/dist/govcitizenhub/pages/services/ServiceFormDialog.js.map +1 -1
- package/dist/govcitizenhub/types/index.d.ts +1 -0
- package/dist/govcitizenhub/types/index.d.ts.map +1 -1
- package/dist/govcitizenhub/types/intelligence.d.ts +1559 -0
- package/dist/govcitizenhub/types/intelligence.d.ts.map +1 -0
- package/dist/govcitizenhub/types/intelligence.js +125 -0
- package/dist/govcitizenhub/types/intelligence.js.map +1 -0
- package/dist/index.js +19 -2
- package/dist/node_modules/recharts/es6/chart/BarChart.js +24 -0
- package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -0
- package/dist/utils/pageContext.d.ts +1 -0
- package/dist/utils/pageContext.d.ts.map +1 -1
- package/dist/utils/pageContext.js +44 -17
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,629 @@
|
|
|
1
|
+
import { useGovCitizenHub as e } from "../../context/GovCitizenHubContext.js";
|
|
2
|
+
import "../../context/index.js";
|
|
3
|
+
import { cn as t } from "../../utils/cn.js";
|
|
4
|
+
import { MetricsCard as n } from "../../components/MetricsCard.js";
|
|
5
|
+
import { formatCurrency as r, formatDate as i, formatEnumLabel as a, formatNumber as o, formatRelativeTime as s } from "../../utils/formatters.js";
|
|
6
|
+
import { StatusBadge as c } from "../../components/StatusBadge.js";
|
|
7
|
+
import { EmptyState as l } from "../../components/EmptyState.js";
|
|
8
|
+
import { useGovJurisdictionOverview as u } from "../../hooks/useIntelligenceApi.js";
|
|
9
|
+
import "../../hooks/index.js";
|
|
10
|
+
import { ErrorView as d, LoadingView as f } from "../../components/StateViews.js";
|
|
11
|
+
import { SectionCard as p } from "../../components/SectionCard.js";
|
|
12
|
+
import { GOV_INDICATOR_DOMAIN_LABELS as m } from "../../types/intelligence.js";
|
|
13
|
+
import { JurisdictionLayout as h } from "./JurisdictionLayout.js";
|
|
14
|
+
import { SummaryStrip as g } from "../../components/SummaryStrip.js";
|
|
15
|
+
import { KeyValueList as _ } from "../../components/KeyValueList.js";
|
|
16
|
+
import { useCallback as v, useMemo as y } from "react";
|
|
17
|
+
import { AlertCircle as b, AlertTriangle as x, Building2 as S, CalendarDays as C, Database as w, Gauge as T, Globe as E, Home as D, Info as O, Landmark as ee, Lightbulb as k, Mail as A, MessageSquare as j, Minus as M, Network as N, Phone as P, Ruler as F, ScrollText as I, Siren as L, TrendingDown as R, TrendingUp as z, Users as B, Wallet as V, Wrench as H } from "lucide-react";
|
|
18
|
+
import { useParams as U } from "react-router-dom";
|
|
19
|
+
import { jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
20
|
+
import { Button as K } from "@burdenoff/fe-libs/ui";
|
|
21
|
+
//#region src/govcitizenhub/pages/intelligence/JurisdictionProfilePage.tsx
|
|
22
|
+
var q = (e) => Math.max(0, Math.min(100, e));
|
|
23
|
+
function J(e) {
|
|
24
|
+
if (!Array.isArray(e)) return [];
|
|
25
|
+
let t = [];
|
|
26
|
+
for (let n of e) {
|
|
27
|
+
if (typeof n != "object" || !n || Array.isArray(n)) continue;
|
|
28
|
+
let e = n, r = typeof e.label == "string" ? e.label.trim() : "", i = typeof e.number == "string" ? e.number.trim() : typeof e.number == "number" ? String(e.number) : "";
|
|
29
|
+
!r || !i || t.push({
|
|
30
|
+
label: r,
|
|
31
|
+
number: i
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
}
|
|
36
|
+
var Y = {
|
|
37
|
+
UP: {
|
|
38
|
+
icon: z,
|
|
39
|
+
tone: "text-status-success-text",
|
|
40
|
+
label: "Improving"
|
|
41
|
+
},
|
|
42
|
+
DOWN: {
|
|
43
|
+
icon: R,
|
|
44
|
+
tone: "text-status-error-text",
|
|
45
|
+
label: "Declining"
|
|
46
|
+
},
|
|
47
|
+
FLAT: {
|
|
48
|
+
icon: M,
|
|
49
|
+
tone: "text-text-muted",
|
|
50
|
+
label: "Flat"
|
|
51
|
+
}
|
|
52
|
+
}, X = [
|
|
53
|
+
"HIGH",
|
|
54
|
+
"MEDIUM",
|
|
55
|
+
"LOW",
|
|
56
|
+
"INFO"
|
|
57
|
+
], Z = {
|
|
58
|
+
HIGH: {
|
|
59
|
+
label: "High",
|
|
60
|
+
tone: "bg-status-error-bg-subtle text-status-error-text",
|
|
61
|
+
icon: x
|
|
62
|
+
},
|
|
63
|
+
MEDIUM: {
|
|
64
|
+
label: "Medium",
|
|
65
|
+
tone: "bg-status-warning-bg-subtle text-status-warning-text",
|
|
66
|
+
icon: b
|
|
67
|
+
},
|
|
68
|
+
LOW: {
|
|
69
|
+
label: "Low",
|
|
70
|
+
tone: "bg-[var(--color-accent-soft)] text-action-primary-text",
|
|
71
|
+
icon: O
|
|
72
|
+
},
|
|
73
|
+
INFO: {
|
|
74
|
+
label: "Info",
|
|
75
|
+
tone: "bg-bg-sunken text-text-secondary",
|
|
76
|
+
icon: O
|
|
77
|
+
}
|
|
78
|
+
}, Q = ({ domain: e }) => {
|
|
79
|
+
let n = Y[e.trend], r = n.icon, i = e.score != null;
|
|
80
|
+
return /* @__PURE__ */ G("li", { children: [
|
|
81
|
+
/* @__PURE__ */ G("div", {
|
|
82
|
+
className: "flex items-baseline justify-between gap-3",
|
|
83
|
+
children: [/* @__PURE__ */ W("span", {
|
|
84
|
+
className: "truncate text-sm font-medium text-text-primary",
|
|
85
|
+
children: m[e.domain]
|
|
86
|
+
}), /* @__PURE__ */ W("span", {
|
|
87
|
+
className: "shrink-0 text-sm",
|
|
88
|
+
children: i ? /* @__PURE__ */ W("span", {
|
|
89
|
+
className: "font-semibold tabular-nums text-text-primary",
|
|
90
|
+
children: o(e.score, { maximumFractionDigits: 1 })
|
|
91
|
+
}) : /* @__PURE__ */ W("span", {
|
|
92
|
+
className: "text-text-muted",
|
|
93
|
+
children: "Not enough data"
|
|
94
|
+
})
|
|
95
|
+
})]
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ G("div", {
|
|
98
|
+
className: "mt-1.5 flex items-center gap-3",
|
|
99
|
+
children: [/* @__PURE__ */ W("span", {
|
|
100
|
+
className: "h-2 flex-1 overflow-hidden rounded-full bg-bg-sunken",
|
|
101
|
+
role: "img",
|
|
102
|
+
"aria-label": i ? `${m[e.domain]} scores ${o(e.score, { maximumFractionDigits: 1 })} out of 100` : `${m[e.domain]} has no measured core indicator`,
|
|
103
|
+
children: i && e.score != null && /* @__PURE__ */ W("span", {
|
|
104
|
+
className: "block h-full rounded-full bg-[var(--color-action-primary-bg)]",
|
|
105
|
+
style: { width: `${q(e.score)}%` }
|
|
106
|
+
})
|
|
107
|
+
}), /* @__PURE__ */ G("span", {
|
|
108
|
+
className: "w-32 shrink-0 text-right text-xs text-text-muted tabular-nums",
|
|
109
|
+
children: [
|
|
110
|
+
o(e.measuredCount),
|
|
111
|
+
"/",
|
|
112
|
+
o(e.indicatorCount),
|
|
113
|
+
" measured"
|
|
114
|
+
]
|
|
115
|
+
})]
|
|
116
|
+
}),
|
|
117
|
+
e.changePercent != null && /* @__PURE__ */ G("p", {
|
|
118
|
+
className: t("mt-1 flex items-center gap-1 text-xs font-medium", n.tone),
|
|
119
|
+
children: [
|
|
120
|
+
/* @__PURE__ */ W(r, {
|
|
121
|
+
className: "size-3.5",
|
|
122
|
+
"aria-hidden": "true"
|
|
123
|
+
}),
|
|
124
|
+
o(e.changePercent, { maximumFractionDigits: 1 }),
|
|
125
|
+
"%",
|
|
126
|
+
/* @__PURE__ */ W("span", {
|
|
127
|
+
className: "font-normal text-text-muted",
|
|
128
|
+
children: "since the previous period"
|
|
129
|
+
})
|
|
130
|
+
]
|
|
131
|
+
})
|
|
132
|
+
] });
|
|
133
|
+
}, $ = ({ scorecard: e }) => {
|
|
134
|
+
let t = e.overallScore != null;
|
|
135
|
+
return /* @__PURE__ */ G("div", {
|
|
136
|
+
className: "space-y-5",
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ G("div", {
|
|
139
|
+
className: "flex flex-wrap items-end gap-x-8 gap-y-4",
|
|
140
|
+
children: [/* @__PURE__ */ G("div", { children: [/* @__PURE__ */ G("p", {
|
|
141
|
+
className: "flex items-baseline gap-1.5",
|
|
142
|
+
children: [/* @__PURE__ */ W("span", {
|
|
143
|
+
className: "text-5xl font-bold tabular-nums text-text-primary",
|
|
144
|
+
children: t ? o(e.overallScore, { maximumFractionDigits: 1 }) : "—"
|
|
145
|
+
}), /* @__PURE__ */ W("span", {
|
|
146
|
+
className: "text-lg font-medium text-text-muted",
|
|
147
|
+
children: "/ 100"
|
|
148
|
+
})]
|
|
149
|
+
}), /* @__PURE__ */ G("p", {
|
|
150
|
+
className: "mt-1 text-sm text-text-muted",
|
|
151
|
+
children: ["Composite score", e.periodLabel ? ` · ${e.periodLabel}` : ""]
|
|
152
|
+
})] }), /* @__PURE__ */ G("div", {
|
|
153
|
+
className: "min-w-[14rem] flex-1",
|
|
154
|
+
children: [
|
|
155
|
+
/* @__PURE__ */ G("div", {
|
|
156
|
+
className: "flex items-baseline justify-between gap-3",
|
|
157
|
+
children: [/* @__PURE__ */ W("span", {
|
|
158
|
+
className: "text-sm text-text-muted",
|
|
159
|
+
children: "Indicator coverage"
|
|
160
|
+
}), /* @__PURE__ */ G("span", {
|
|
161
|
+
className: "text-sm font-semibold tabular-nums text-text-primary",
|
|
162
|
+
children: [o(e.coveragePercent, { maximumFractionDigits: 1 }), "%"]
|
|
163
|
+
})]
|
|
164
|
+
}),
|
|
165
|
+
/* @__PURE__ */ W("span", {
|
|
166
|
+
className: "mt-1.5 block h-2 overflow-hidden rounded-full bg-bg-sunken",
|
|
167
|
+
children: /* @__PURE__ */ W("span", {
|
|
168
|
+
className: "block h-full rounded-full bg-[var(--color-action-primary-bg)]",
|
|
169
|
+
style: { width: `${q(e.coveragePercent)}%` }
|
|
170
|
+
})
|
|
171
|
+
}),
|
|
172
|
+
/* @__PURE__ */ G("p", {
|
|
173
|
+
className: "mt-1.5 text-xs text-text-muted tabular-nums",
|
|
174
|
+
children: [
|
|
175
|
+
o(e.measuredCount),
|
|
176
|
+
" of ",
|
|
177
|
+
o(e.indicatorCount),
|
|
178
|
+
" core indicators measured"
|
|
179
|
+
]
|
|
180
|
+
})
|
|
181
|
+
]
|
|
182
|
+
})]
|
|
183
|
+
}),
|
|
184
|
+
!t && /* @__PURE__ */ G("p", {
|
|
185
|
+
className: "rounded-card border border-border-seam bg-bg-sunken px-4 py-3 text-sm text-text-secondary",
|
|
186
|
+
children: [
|
|
187
|
+
"A composite score is only published once enough core indicators carry a value — below that threshold a single number would be more misleading than no number. Coverage here is",
|
|
188
|
+
" ",
|
|
189
|
+
/* @__PURE__ */ G("span", {
|
|
190
|
+
className: "font-medium text-text-primary tabular-nums",
|
|
191
|
+
children: [o(e.coveragePercent, { maximumFractionDigits: 1 }), "%"]
|
|
192
|
+
}),
|
|
193
|
+
", so the domain breakdown below is published on its own."
|
|
194
|
+
]
|
|
195
|
+
}),
|
|
196
|
+
e.domains.length === 0 ? /* @__PURE__ */ W("p", {
|
|
197
|
+
className: "text-sm text-text-secondary",
|
|
198
|
+
children: "No core indicators are defined for this workspace yet, so there is nothing to score."
|
|
199
|
+
}) : /* @__PURE__ */ W("ul", {
|
|
200
|
+
className: "space-y-4",
|
|
201
|
+
children: e.domains.map((e) => /* @__PURE__ */ W(Q, { domain: e }, e.domain))
|
|
202
|
+
}),
|
|
203
|
+
/* @__PURE__ */ G("p", {
|
|
204
|
+
className: "text-xs text-text-muted",
|
|
205
|
+
children: [
|
|
206
|
+
"Generated ",
|
|
207
|
+
s(e.generatedAt),
|
|
208
|
+
" from published indicator values."
|
|
209
|
+
]
|
|
210
|
+
})
|
|
211
|
+
]
|
|
212
|
+
});
|
|
213
|
+
}, te = ({ insight: e }) => {
|
|
214
|
+
let n = Z[e.severity], r = n.icon;
|
|
215
|
+
return /* @__PURE__ */ G("article", {
|
|
216
|
+
className: "rounded-card border border-border-seam bg-bg-surface p-4",
|
|
217
|
+
children: [
|
|
218
|
+
/* @__PURE__ */ G("div", {
|
|
219
|
+
className: "flex flex-wrap items-center gap-2",
|
|
220
|
+
children: [
|
|
221
|
+
/* @__PURE__ */ G("span", {
|
|
222
|
+
className: t("inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium", n.tone),
|
|
223
|
+
children: [
|
|
224
|
+
/* @__PURE__ */ W(r, {
|
|
225
|
+
className: "size-3",
|
|
226
|
+
"aria-hidden": "true"
|
|
227
|
+
}),
|
|
228
|
+
" ",
|
|
229
|
+
n.label
|
|
230
|
+
]
|
|
231
|
+
}),
|
|
232
|
+
/* @__PURE__ */ W("span", {
|
|
233
|
+
className: "rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-secondary",
|
|
234
|
+
children: a(e.kind)
|
|
235
|
+
}),
|
|
236
|
+
e.domain && /* @__PURE__ */ W("span", {
|
|
237
|
+
className: "rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-secondary",
|
|
238
|
+
children: m[e.domain]
|
|
239
|
+
}),
|
|
240
|
+
e.indicatorCode && /* @__PURE__ */ W("span", {
|
|
241
|
+
className: "font-mono text-xs text-text-muted",
|
|
242
|
+
children: e.indicatorCode
|
|
243
|
+
})
|
|
244
|
+
]
|
|
245
|
+
}),
|
|
246
|
+
/* @__PURE__ */ W("h3", {
|
|
247
|
+
className: "mt-2.5 text-sm font-semibold text-text-primary",
|
|
248
|
+
children: e.title
|
|
249
|
+
}),
|
|
250
|
+
/* @__PURE__ */ W("p", {
|
|
251
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
252
|
+
children: e.detail
|
|
253
|
+
}),
|
|
254
|
+
e.evidence.length > 0 && /* @__PURE__ */ G("div", {
|
|
255
|
+
className: "mt-3 border-t border-border-seam pt-3",
|
|
256
|
+
children: [/* @__PURE__ */ W("p", {
|
|
257
|
+
className: "text-xs font-medium uppercase tracking-wide text-text-muted",
|
|
258
|
+
children: "Evidence"
|
|
259
|
+
}), /* @__PURE__ */ W("ul", {
|
|
260
|
+
className: "mt-1.5 space-y-1",
|
|
261
|
+
children: e.evidence.map((e, t) => /* @__PURE__ */ G("li", {
|
|
262
|
+
className: "flex gap-2 text-xs text-text-secondary",
|
|
263
|
+
children: [/* @__PURE__ */ W("span", {
|
|
264
|
+
"aria-hidden": "true",
|
|
265
|
+
className: "text-text-muted",
|
|
266
|
+
children: "·"
|
|
267
|
+
}), /* @__PURE__ */ W("span", {
|
|
268
|
+
className: "min-w-0",
|
|
269
|
+
children: e
|
|
270
|
+
})]
|
|
271
|
+
}, t))
|
|
272
|
+
})]
|
|
273
|
+
}),
|
|
274
|
+
/* @__PURE__ */ G("p", {
|
|
275
|
+
className: "mt-3 text-xs text-text-muted",
|
|
276
|
+
children: ["Derived ", s(e.generatedAt)]
|
|
277
|
+
})
|
|
278
|
+
]
|
|
279
|
+
});
|
|
280
|
+
}, ne = ({ insights: e }) => {
|
|
281
|
+
let t = y(() => X.map((t) => ({
|
|
282
|
+
severity: t,
|
|
283
|
+
items: e.filter((e) => e.severity === t)
|
|
284
|
+
})).filter((e) => e.items.length > 0), [e]);
|
|
285
|
+
return t.length === 0 ? /* @__PURE__ */ W("p", {
|
|
286
|
+
className: "text-sm text-text-secondary",
|
|
287
|
+
children: "No insights yet. They are derived automatically — from trends, targets, budget variance, project delays and indicator coverage — as soon as this region has published data to compare."
|
|
288
|
+
}) : /* @__PURE__ */ W("div", {
|
|
289
|
+
className: "space-y-5",
|
|
290
|
+
children: t.map((e) => /* @__PURE__ */ G("section", { children: [/* @__PURE__ */ G("h3", {
|
|
291
|
+
className: "mb-2 text-xs font-semibold uppercase tracking-wide text-text-muted",
|
|
292
|
+
children: [
|
|
293
|
+
Z[e.severity].label,
|
|
294
|
+
" · ",
|
|
295
|
+
o(e.items.length)
|
|
296
|
+
]
|
|
297
|
+
}), /* @__PURE__ */ W("div", {
|
|
298
|
+
className: "space-y-3",
|
|
299
|
+
children: e.items.map((e, t) => /* @__PURE__ */ W(te, { insight: e }, `${e.kind}-${e.indicatorCode ?? t}`))
|
|
300
|
+
})] }, e.severity))
|
|
301
|
+
});
|
|
302
|
+
}, re = ({ overview: e, onNavigate: t }) => {
|
|
303
|
+
let { jurisdiction: a, currentBudget: s } = e, l = a.id, u = y(() => {
|
|
304
|
+
let e = [];
|
|
305
|
+
return a.population != null && e.push({
|
|
306
|
+
label: a.populationYear == null ? "Population" : `Population (${a.populationYear})`,
|
|
307
|
+
value: o(a.population),
|
|
308
|
+
icon: /* @__PURE__ */ W(B, {})
|
|
309
|
+
}), a.areaSqKm != null && e.push({
|
|
310
|
+
label: "Area",
|
|
311
|
+
value: o(a.areaSqKm, { maximumFractionDigits: 1 }),
|
|
312
|
+
hint: "km²",
|
|
313
|
+
icon: /* @__PURE__ */ W(F, {})
|
|
314
|
+
}), a.populationDensity != null && e.push({
|
|
315
|
+
label: "Population density",
|
|
316
|
+
value: o(a.populationDensity, { maximumFractionDigits: 1 }),
|
|
317
|
+
hint: "/ km²",
|
|
318
|
+
icon: /* @__PURE__ */ W(T, {})
|
|
319
|
+
}), a.households != null && e.push({
|
|
320
|
+
label: "Households",
|
|
321
|
+
value: o(a.households),
|
|
322
|
+
icon: /* @__PURE__ */ W(D, {})
|
|
323
|
+
}), e;
|
|
324
|
+
}, [a]), d = y(() => {
|
|
325
|
+
let e = [];
|
|
326
|
+
return a.establishedOn && e.push({
|
|
327
|
+
label: "Established",
|
|
328
|
+
value: i(a.establishedOn)
|
|
329
|
+
}), a.headquarters && e.push({
|
|
330
|
+
label: "Headquarters",
|
|
331
|
+
value: a.headquarters
|
|
332
|
+
}), a.timezone && e.push({
|
|
333
|
+
label: "Timezone",
|
|
334
|
+
value: a.timezone
|
|
335
|
+
}), a.languages.length > 0 && e.push({
|
|
336
|
+
label: "Languages",
|
|
337
|
+
value: a.languages.join(", ")
|
|
338
|
+
}), a.currencyCode && e.push({
|
|
339
|
+
label: "Currency",
|
|
340
|
+
value: a.currencyCode
|
|
341
|
+
}), a.officialCode && e.push({
|
|
342
|
+
label: "Official code",
|
|
343
|
+
value: /* @__PURE__ */ W("span", {
|
|
344
|
+
className: "font-mono",
|
|
345
|
+
children: a.officialCode
|
|
346
|
+
})
|
|
347
|
+
}), e.push({
|
|
348
|
+
label: "Country",
|
|
349
|
+
value: a.countryCode
|
|
350
|
+
}), a.publishedAt && e.push({
|
|
351
|
+
label: "Published",
|
|
352
|
+
value: i(a.publishedAt)
|
|
353
|
+
}), a.sourceName && e.push({
|
|
354
|
+
label: "Source",
|
|
355
|
+
value: a.sourceUrl ? /* @__PURE__ */ W("a", {
|
|
356
|
+
href: a.sourceUrl,
|
|
357
|
+
target: "_blank",
|
|
358
|
+
rel: "noreferrer noopener",
|
|
359
|
+
className: "text-action-primary-text underline-offset-2 hover:underline",
|
|
360
|
+
children: a.sourceName
|
|
361
|
+
}) : a.sourceName
|
|
362
|
+
}), e;
|
|
363
|
+
}, [a]), f = y(() => J(a.emergencyNumbers), [a.emergencyNumbers]), m = !!(a.officialWebsite || a.contactEmail || a.contactPhone), h = y(() => [
|
|
364
|
+
{
|
|
365
|
+
key: "children",
|
|
366
|
+
label: "Sub-regions",
|
|
367
|
+
count: e.childCount,
|
|
368
|
+
icon: /* @__PURE__ */ W(N, {}),
|
|
369
|
+
to: `intelligence?parentId=${encodeURIComponent(l)}`
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
key: "officials",
|
|
373
|
+
label: "Office holders",
|
|
374
|
+
count: e.officialCount,
|
|
375
|
+
icon: /* @__PURE__ */ W(B, {}),
|
|
376
|
+
to: `intelligence/${l}/governance`
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
key: "projects",
|
|
380
|
+
label: "Active projects",
|
|
381
|
+
count: e.activeProjectCount,
|
|
382
|
+
icon: /* @__PURE__ */ W(H, {}),
|
|
383
|
+
to: `intelligence/${l}/projects`
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
key: "assets",
|
|
387
|
+
label: "Public assets",
|
|
388
|
+
count: e.publicAssetCount,
|
|
389
|
+
icon: /* @__PURE__ */ W(ee, {}),
|
|
390
|
+
to: `intelligence/${l}/assets`
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
key: "datasets",
|
|
394
|
+
label: "Published datasets",
|
|
395
|
+
count: e.publishedDatasetCount,
|
|
396
|
+
icon: /* @__PURE__ */ W(w, {}),
|
|
397
|
+
to: `intelligence/${l}/open-data`
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
key: "consultations",
|
|
401
|
+
label: "Open consultations",
|
|
402
|
+
count: e.openConsultationCount,
|
|
403
|
+
icon: /* @__PURE__ */ W(j, {}),
|
|
404
|
+
to: `intelligence/${l}/consultations`
|
|
405
|
+
}
|
|
406
|
+
], [e, l]);
|
|
407
|
+
return /* @__PURE__ */ G("div", {
|
|
408
|
+
className: "space-y-4",
|
|
409
|
+
children: [
|
|
410
|
+
u.length > 0 && /* @__PURE__ */ W(g, { stats: u }),
|
|
411
|
+
/* @__PURE__ */ W("div", {
|
|
412
|
+
className: "grid gap-4 sm:grid-cols-2 xl:grid-cols-3",
|
|
413
|
+
children: h.map((e) => /* @__PURE__ */ W(n, {
|
|
414
|
+
icon: e.icon,
|
|
415
|
+
value: o(e.count),
|
|
416
|
+
label: e.label,
|
|
417
|
+
onClick: () => t(e.to)
|
|
418
|
+
}, e.key))
|
|
419
|
+
}),
|
|
420
|
+
/* @__PURE__ */ G("p", {
|
|
421
|
+
className: "text-sm text-text-muted",
|
|
422
|
+
children: [
|
|
423
|
+
/* @__PURE__ */ W(B, {
|
|
424
|
+
className: "mr-1.5 inline size-4 align-text-bottom",
|
|
425
|
+
"aria-hidden": "true"
|
|
426
|
+
}),
|
|
427
|
+
/* @__PURE__ */ W("span", {
|
|
428
|
+
className: "font-medium tabular-nums text-text-secondary",
|
|
429
|
+
children: o(e.followerCount)
|
|
430
|
+
}),
|
|
431
|
+
" ",
|
|
432
|
+
e.followerCount === 1 ? "person follows" : "people follow",
|
|
433
|
+
" this region."
|
|
434
|
+
]
|
|
435
|
+
}),
|
|
436
|
+
/* @__PURE__ */ G("div", {
|
|
437
|
+
className: "grid gap-4 lg:grid-cols-3",
|
|
438
|
+
children: [/* @__PURE__ */ G("div", {
|
|
439
|
+
className: "space-y-4 lg:col-span-2",
|
|
440
|
+
children: [
|
|
441
|
+
(a.summary || a.climateSummary) && /* @__PURE__ */ G(p, {
|
|
442
|
+
title: "About",
|
|
443
|
+
icon: /* @__PURE__ */ W(I, {}),
|
|
444
|
+
className: "border-border-seam",
|
|
445
|
+
children: [a.summary && /* @__PURE__ */ W("p", {
|
|
446
|
+
className: "whitespace-pre-wrap text-sm text-text-secondary",
|
|
447
|
+
children: a.summary
|
|
448
|
+
}), a.climateSummary && /* @__PURE__ */ G("p", {
|
|
449
|
+
className: "mt-3 whitespace-pre-wrap border-t border-border-seam pt-3 text-sm text-text-secondary",
|
|
450
|
+
children: [/* @__PURE__ */ W("span", {
|
|
451
|
+
className: "font-medium text-text-primary",
|
|
452
|
+
children: "Climate: "
|
|
453
|
+
}), a.climateSummary]
|
|
454
|
+
})]
|
|
455
|
+
}),
|
|
456
|
+
/* @__PURE__ */ W(p, {
|
|
457
|
+
title: "Performance scorecard",
|
|
458
|
+
icon: /* @__PURE__ */ W(T, {}),
|
|
459
|
+
className: "border-border-seam",
|
|
460
|
+
children: e.scorecard ? /* @__PURE__ */ W($, { scorecard: e.scorecard }) : /* @__PURE__ */ W("p", {
|
|
461
|
+
className: "text-sm text-text-secondary",
|
|
462
|
+
children: "No scorecard yet. One is computed automatically once core indicators are defined and this region has published values against them."
|
|
463
|
+
})
|
|
464
|
+
}),
|
|
465
|
+
/* @__PURE__ */ W(p, {
|
|
466
|
+
title: "Insights",
|
|
467
|
+
icon: /* @__PURE__ */ W(k, {}),
|
|
468
|
+
className: "border-border-seam",
|
|
469
|
+
children: /* @__PURE__ */ W(ne, { insights: e.insights })
|
|
470
|
+
})
|
|
471
|
+
]
|
|
472
|
+
}), /* @__PURE__ */ G("div", {
|
|
473
|
+
className: "space-y-4",
|
|
474
|
+
children: [
|
|
475
|
+
/* @__PURE__ */ W(p, {
|
|
476
|
+
title: "Key facts",
|
|
477
|
+
icon: /* @__PURE__ */ W(S, {}),
|
|
478
|
+
className: "border-border-seam",
|
|
479
|
+
children: d.length === 0 ? /* @__PURE__ */ W("p", {
|
|
480
|
+
className: "text-sm text-text-secondary",
|
|
481
|
+
children: "No profile details published yet."
|
|
482
|
+
}) : /* @__PURE__ */ W(_, { items: d })
|
|
483
|
+
}),
|
|
484
|
+
/* @__PURE__ */ W(p, {
|
|
485
|
+
title: "Contact",
|
|
486
|
+
icon: /* @__PURE__ */ W(P, {}),
|
|
487
|
+
className: "border-border-seam",
|
|
488
|
+
children: !m && f.length === 0 ? /* @__PURE__ */ W("p", {
|
|
489
|
+
className: "text-sm text-text-secondary",
|
|
490
|
+
children: "No contact details have been published for this region yet."
|
|
491
|
+
}) : /* @__PURE__ */ G("div", {
|
|
492
|
+
className: "space-y-3",
|
|
493
|
+
children: [
|
|
494
|
+
a.officialWebsite && /* @__PURE__ */ G("a", {
|
|
495
|
+
href: a.officialWebsite,
|
|
496
|
+
target: "_blank",
|
|
497
|
+
rel: "noreferrer noopener",
|
|
498
|
+
className: "flex items-center gap-2.5 text-sm text-action-primary-text underline-offset-2 hover:underline",
|
|
499
|
+
children: [/* @__PURE__ */ W(E, {
|
|
500
|
+
className: "size-4 shrink-0",
|
|
501
|
+
"aria-hidden": "true"
|
|
502
|
+
}), /* @__PURE__ */ W("span", {
|
|
503
|
+
className: "min-w-0 truncate",
|
|
504
|
+
children: a.officialWebsite
|
|
505
|
+
})]
|
|
506
|
+
}),
|
|
507
|
+
a.contactEmail && /* @__PURE__ */ G("a", {
|
|
508
|
+
href: `mailto:${a.contactEmail}`,
|
|
509
|
+
className: "flex items-center gap-2.5 text-sm text-action-primary-text underline-offset-2 hover:underline",
|
|
510
|
+
children: [/* @__PURE__ */ W(A, {
|
|
511
|
+
className: "size-4 shrink-0",
|
|
512
|
+
"aria-hidden": "true"
|
|
513
|
+
}), /* @__PURE__ */ W("span", {
|
|
514
|
+
className: "min-w-0 truncate",
|
|
515
|
+
children: a.contactEmail
|
|
516
|
+
})]
|
|
517
|
+
}),
|
|
518
|
+
a.contactPhone && /* @__PURE__ */ G("a", {
|
|
519
|
+
href: `tel:${a.contactPhone}`,
|
|
520
|
+
className: "flex items-center gap-2.5 text-sm text-action-primary-text underline-offset-2 hover:underline",
|
|
521
|
+
children: [/* @__PURE__ */ W(P, {
|
|
522
|
+
className: "size-4 shrink-0",
|
|
523
|
+
"aria-hidden": "true"
|
|
524
|
+
}), /* @__PURE__ */ W("span", {
|
|
525
|
+
className: "min-w-0 truncate",
|
|
526
|
+
children: a.contactPhone
|
|
527
|
+
})]
|
|
528
|
+
}),
|
|
529
|
+
f.length > 0 && /* @__PURE__ */ G("div", {
|
|
530
|
+
className: "border-t border-border-seam pt-3",
|
|
531
|
+
children: [/* @__PURE__ */ G("p", {
|
|
532
|
+
className: "flex items-center gap-1.5 text-xs font-medium uppercase tracking-wide text-text-muted",
|
|
533
|
+
children: [/* @__PURE__ */ W(L, {
|
|
534
|
+
className: "size-3.5",
|
|
535
|
+
"aria-hidden": "true"
|
|
536
|
+
}), " Emergency numbers"]
|
|
537
|
+
}), /* @__PURE__ */ W("ul", {
|
|
538
|
+
className: "mt-2 space-y-1.5",
|
|
539
|
+
children: f.map((e) => /* @__PURE__ */ G("li", {
|
|
540
|
+
className: "flex items-baseline justify-between gap-4",
|
|
541
|
+
children: [/* @__PURE__ */ W("span", {
|
|
542
|
+
className: "min-w-0 truncate text-sm text-text-secondary",
|
|
543
|
+
children: e.label
|
|
544
|
+
}), /* @__PURE__ */ W("a", {
|
|
545
|
+
href: `tel:${e.number}`,
|
|
546
|
+
className: "shrink-0 text-sm font-semibold tabular-nums text-text-primary underline-offset-2 hover:underline",
|
|
547
|
+
children: e.number
|
|
548
|
+
})]
|
|
549
|
+
}, `${e.label}-${e.number}`))
|
|
550
|
+
})]
|
|
551
|
+
})
|
|
552
|
+
]
|
|
553
|
+
})
|
|
554
|
+
}),
|
|
555
|
+
s && /* @__PURE__ */ G(p, {
|
|
556
|
+
title: "Current budget",
|
|
557
|
+
icon: /* @__PURE__ */ W(V, {}),
|
|
558
|
+
className: "border-border-seam",
|
|
559
|
+
actions: /* @__PURE__ */ W(K, {
|
|
560
|
+
size: "sm",
|
|
561
|
+
variant: "outline",
|
|
562
|
+
onClick: () => t(`intelligence/${l}/budget`),
|
|
563
|
+
children: "Open"
|
|
564
|
+
}),
|
|
565
|
+
children: [/* @__PURE__ */ G("div", {
|
|
566
|
+
className: "flex flex-wrap items-center gap-2",
|
|
567
|
+
children: [/* @__PURE__ */ W("span", {
|
|
568
|
+
className: "text-sm font-semibold text-text-primary",
|
|
569
|
+
children: s.fiscalYear
|
|
570
|
+
}), /* @__PURE__ */ W(c, { status: s.status })]
|
|
571
|
+
}), /* @__PURE__ */ W(_, {
|
|
572
|
+
className: "mt-3",
|
|
573
|
+
items: [
|
|
574
|
+
{
|
|
575
|
+
label: "Planned revenue",
|
|
576
|
+
value: r(s.totalRevenuePlanned, s.currencyCode)
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
label: "Planned expenditure",
|
|
580
|
+
value: r(s.totalExpensePlanned, s.currencyCode)
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
label: "Period",
|
|
584
|
+
value: /* @__PURE__ */ G("span", {
|
|
585
|
+
className: "inline-flex items-center gap-1.5",
|
|
586
|
+
children: [
|
|
587
|
+
/* @__PURE__ */ W(C, {
|
|
588
|
+
className: "size-3.5 text-text-muted",
|
|
589
|
+
"aria-hidden": "true"
|
|
590
|
+
}),
|
|
591
|
+
i(s.periodStart),
|
|
592
|
+
" –",
|
|
593
|
+
" ",
|
|
594
|
+
i(s.periodEnd)
|
|
595
|
+
]
|
|
596
|
+
})
|
|
597
|
+
}
|
|
598
|
+
]
|
|
599
|
+
})]
|
|
600
|
+
})
|
|
601
|
+
]
|
|
602
|
+
})]
|
|
603
|
+
})
|
|
604
|
+
]
|
|
605
|
+
});
|
|
606
|
+
}, ie = () => {
|
|
607
|
+
let { jurisdictionId: t } = U(), { navigateTo: n } = e(), { data: r, isLoading: i, isError: a, refetch: o } = u(t), s = v(() => {
|
|
608
|
+
o();
|
|
609
|
+
}, [o]), c = v(() => n("intelligence"), [n]);
|
|
610
|
+
return /* @__PURE__ */ W(h, { children: i ? /* @__PURE__ */ W(f, { label: "Loading jurisdiction profile…" }) : a ? /* @__PURE__ */ W(d, {
|
|
611
|
+
message: "We couldn't load this jurisdiction profile.",
|
|
612
|
+
onRetry: s
|
|
613
|
+
}) : r ? /* @__PURE__ */ W(re, {
|
|
614
|
+
overview: r,
|
|
615
|
+
onNavigate: n
|
|
616
|
+
}) : /* @__PURE__ */ W(l, {
|
|
617
|
+
illustration: "empty-search",
|
|
618
|
+
title: "Jurisdiction not found",
|
|
619
|
+
description: "This region has been removed, or it is not published in this workspace.",
|
|
620
|
+
action: /* @__PURE__ */ W(K, {
|
|
621
|
+
onClick: c,
|
|
622
|
+
children: "Browse jurisdictions"
|
|
623
|
+
})
|
|
624
|
+
}) });
|
|
625
|
+
};
|
|
626
|
+
//#endregion
|
|
627
|
+
export { ie as JurisdictionProfilePage };
|
|
628
|
+
|
|
629
|
+
//# sourceMappingURL=JurisdictionProfilePage.js.map
|