@burdenoff/microfe-govcitizenhub 2026.1110.4 → 2026.1110.5
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.js +60 -52
- package/dist/govcitizenhub/GovCitizenHubRoot.js.map +1 -1
- package/dist/govcitizenhub/GovCitizenHubRoutes.js +44 -36
- package/dist/govcitizenhub/GovCitizenHubRoutes.js.map +1 -1
- package/dist/govcitizenhub/components/StatusBadge.js +1 -0
- package/dist/govcitizenhub/components/StatusBadge.js.map +1 -1
- package/dist/govcitizenhub/components/WalletAttachField.d.ts +9 -0
- package/dist/govcitizenhub/components/WalletAttachField.js +66 -0
- package/dist/govcitizenhub/components/WalletAttachField.js.map +1 -0
- package/dist/govcitizenhub/components/index.d.ts +1 -0
- package/dist/govcitizenhub/hooks/index.js +7 -7
- package/dist/govcitizenhub/hooks/useGovApi.d.ts +30 -1
- package/dist/govcitizenhub/hooks/useGovApi.js +248 -190
- package/dist/govcitizenhub/hooks/useGovApi.js.map +1 -1
- package/dist/govcitizenhub/pages/documents/DocumentsPage.js +144 -135
- package/dist/govcitizenhub/pages/documents/DocumentsPage.js.map +1 -1
- package/dist/govcitizenhub/pages/wallet/WalletPage.d.ts +13 -0
- package/dist/govcitizenhub/pages/wallet/WalletPage.js +324 -0
- package/dist/govcitizenhub/pages/wallet/WalletPage.js.map +1 -0
- package/dist/govcitizenhub/types/index.d.ts +32 -0
- package/dist/utils/pageContext.js +1 -0
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,27 +5,27 @@ import { useTr as r } from "../shared/hooks/useTr.js";
|
|
|
5
5
|
import { Component as i, useEffect as a } from "react";
|
|
6
6
|
import { QueryClient as o, QueryClientProvider as s } from "@tanstack/react-query";
|
|
7
7
|
import { FeatureFlagProvider as c } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
8
|
-
import { BadgeCheck as l, Briefcase as u, Building2 as d, CreditCard as f, FileText as p, FolderOpen as m, Landmark as h, LayoutDashboard as g, MessageSquareWarning as _, ShieldQuestion as v } from "lucide-react";
|
|
9
|
-
import { jsx as
|
|
8
|
+
import { BadgeCheck as l, Briefcase as u, Building2 as d, CreditCard as f, FileText as p, FolderOpen as m, Landmark as h, LayoutDashboard as g, MessageSquareWarning as _, ShieldQuestion as v, Wallet as y } from "lucide-react";
|
|
9
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
10
10
|
// src/govcitizenhub/GovCitizenHubRoot.tsx
|
|
11
|
-
var
|
|
11
|
+
var S = new o({ defaultOptions: { queries: {
|
|
12
12
|
staleTime: 6e4,
|
|
13
13
|
retry: 1,
|
|
14
14
|
refetchOnWindowFocus: !1
|
|
15
|
-
} } }),
|
|
15
|
+
} } }), C = ({ message: e }) => {
|
|
16
16
|
let t = r();
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ x("div", {
|
|
18
18
|
className: "m-4 rounded-xl border border-border-seam bg-bg-surface p-6",
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ b("h2", {
|
|
21
21
|
className: "text-lg font-semibold text-status-error-text",
|
|
22
22
|
children: t("govcitizenhub.errorTitle", "Something went wrong")
|
|
23
23
|
}),
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ b("p", {
|
|
25
25
|
className: "mt-2 text-sm text-text-secondary",
|
|
26
26
|
children: e ?? t("govcitizenhub.errorFallback", "Unknown error")
|
|
27
27
|
}),
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ b("button", {
|
|
29
29
|
type: "button",
|
|
30
30
|
onClick: () => window.location.reload(),
|
|
31
31
|
className: "mt-4 rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90",
|
|
@@ -33,7 +33,7 @@ var x = new o({ defaultOptions: { queries: {
|
|
|
33
33
|
})
|
|
34
34
|
]
|
|
35
35
|
});
|
|
36
|
-
},
|
|
36
|
+
}, w = class extends i {
|
|
37
37
|
constructor(e) {
|
|
38
38
|
super(e), this.state = {
|
|
39
39
|
hasError: !1,
|
|
@@ -48,90 +48,98 @@ var x = new o({ defaultOptions: { queries: {
|
|
|
48
48
|
}
|
|
49
49
|
componentDidCatch(e, t) {}
|
|
50
50
|
render() {
|
|
51
|
-
return this.state.hasError ? /* @__PURE__ */
|
|
51
|
+
return this.state.hasError ? /* @__PURE__ */ b(C, { message: this.state.message }) : this.props.children;
|
|
52
52
|
}
|
|
53
|
-
},
|
|
54
|
-
let { registerNavItems: o, registerFooterItems:
|
|
53
|
+
}, T = (i) => {
|
|
54
|
+
let { registerNavItems: o, registerFooterItems: x, basePath: C = "/" } = i, T = r();
|
|
55
55
|
return a(() => {
|
|
56
56
|
if (!o) return;
|
|
57
57
|
let e = [
|
|
58
58
|
{
|
|
59
59
|
id: "govcitizenhub-dashboard",
|
|
60
|
-
label:
|
|
61
|
-
path: n(
|
|
62
|
-
icon: /* @__PURE__ */
|
|
60
|
+
label: T("govcitizenhub.dashboard", "Dashboard"),
|
|
61
|
+
path: n(C, ""),
|
|
62
|
+
icon: /* @__PURE__ */ b(g, { size: 20 }),
|
|
63
63
|
order: 0,
|
|
64
64
|
group: "products"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
id: "govcitizenhub-services",
|
|
68
|
-
label:
|
|
69
|
-
path: n(
|
|
70
|
-
icon: /* @__PURE__ */
|
|
68
|
+
label: T("govcitizenhub.services", "Services"),
|
|
69
|
+
path: n(C, "services"),
|
|
70
|
+
icon: /* @__PURE__ */ b(u, { size: 20 }),
|
|
71
71
|
order: 1,
|
|
72
72
|
group: "products"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
id: "govcitizenhub-applications",
|
|
76
|
-
label:
|
|
77
|
-
path: n(
|
|
78
|
-
icon: /* @__PURE__ */
|
|
76
|
+
label: T("govcitizenhub.applications", "Applications"),
|
|
77
|
+
path: n(C, "applications"),
|
|
78
|
+
icon: /* @__PURE__ */ b(p, { size: 20 }),
|
|
79
79
|
order: 2,
|
|
80
80
|
group: "products"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
id: "govcitizenhub-agencies",
|
|
84
|
-
label:
|
|
85
|
-
path: n(
|
|
86
|
-
icon: /* @__PURE__ */
|
|
84
|
+
label: T("govcitizenhub.agencies", "Agencies"),
|
|
85
|
+
path: n(C, "agencies"),
|
|
86
|
+
icon: /* @__PURE__ */ b(d, { size: 20 }),
|
|
87
87
|
order: 3,
|
|
88
88
|
group: "products"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
id: "govcitizenhub-documents",
|
|
92
|
-
label:
|
|
93
|
-
path: n(
|
|
94
|
-
icon: /* @__PURE__ */
|
|
92
|
+
label: T("govcitizenhub.documents", "Documents"),
|
|
93
|
+
path: n(C, "documents"),
|
|
94
|
+
icon: /* @__PURE__ */ b(m, { size: 20 }),
|
|
95
95
|
order: 4,
|
|
96
96
|
group: "products"
|
|
97
97
|
},
|
|
98
|
+
{
|
|
99
|
+
id: "govcitizenhub-wallet",
|
|
100
|
+
label: T("govcitizenhub.wallet", "Document wallet"),
|
|
101
|
+
path: n(C, "wallet"),
|
|
102
|
+
icon: /* @__PURE__ */ b(y, { size: 20 }),
|
|
103
|
+
order: 4.5,
|
|
104
|
+
group: "products"
|
|
105
|
+
},
|
|
98
106
|
{
|
|
99
107
|
id: "govcitizenhub-payments",
|
|
100
|
-
label:
|
|
101
|
-
path: n(
|
|
102
|
-
icon: /* @__PURE__ */
|
|
108
|
+
label: T("govcitizenhub.payments", "Payments"),
|
|
109
|
+
path: n(C, "payments"),
|
|
110
|
+
icon: /* @__PURE__ */ b(f, { size: 20 }),
|
|
103
111
|
order: 5,
|
|
104
112
|
group: "products"
|
|
105
113
|
},
|
|
106
114
|
{
|
|
107
115
|
id: "govcitizenhub-permits",
|
|
108
|
-
label:
|
|
109
|
-
path: n(
|
|
110
|
-
icon: /* @__PURE__ */
|
|
116
|
+
label: T("govcitizenhub.permits", "Permits"),
|
|
117
|
+
path: n(C, "permits"),
|
|
118
|
+
icon: /* @__PURE__ */ b(l, { size: 20 }),
|
|
111
119
|
order: 6,
|
|
112
120
|
group: "products"
|
|
113
121
|
},
|
|
114
122
|
{
|
|
115
123
|
id: "govcitizenhub-verify",
|
|
116
|
-
label:
|
|
117
|
-
path: n(
|
|
118
|
-
icon: /* @__PURE__ */
|
|
124
|
+
label: T("govcitizenhub.verifyPermit", "Verify Permit"),
|
|
125
|
+
path: n(C, "permits/verify"),
|
|
126
|
+
icon: /* @__PURE__ */ b(v, { size: 20 }),
|
|
119
127
|
order: 7,
|
|
120
128
|
group: "products"
|
|
121
129
|
},
|
|
122
130
|
{
|
|
123
131
|
id: "govcitizenhub-grievances",
|
|
124
|
-
label:
|
|
125
|
-
path: n(
|
|
126
|
-
icon: /* @__PURE__ */
|
|
132
|
+
label: T("govcitizenhub.grievances", "Grievances"),
|
|
133
|
+
path: n(C, "grievances"),
|
|
134
|
+
icon: /* @__PURE__ */ b(_, { size: 20 }),
|
|
127
135
|
order: 8,
|
|
128
136
|
group: "products"
|
|
129
137
|
},
|
|
130
138
|
{
|
|
131
139
|
id: "govcitizenhub-intelligence",
|
|
132
|
-
label:
|
|
133
|
-
path: n(
|
|
134
|
-
icon: /* @__PURE__ */
|
|
140
|
+
label: T("govcitizenhub.communityIntelligence", "Community Intelligence"),
|
|
141
|
+
path: n(C, "intelligence"),
|
|
142
|
+
icon: /* @__PURE__ */ b(h, { size: 20 }),
|
|
135
143
|
order: 9,
|
|
136
144
|
group: "products"
|
|
137
145
|
}
|
|
@@ -139,29 +147,29 @@ var x = new o({ defaultOptions: { queries: {
|
|
|
139
147
|
return o(e);
|
|
140
148
|
}, [
|
|
141
149
|
o,
|
|
142
|
-
|
|
143
|
-
|
|
150
|
+
C,
|
|
151
|
+
T
|
|
144
152
|
]), a(() => {
|
|
145
|
-
if (
|
|
153
|
+
if (x) return x([{
|
|
146
154
|
id: "govcitizenhub-status",
|
|
147
|
-
label:
|
|
155
|
+
label: T("govcitizenhub.readyStatus", "GovCitizenHub Ready"),
|
|
148
156
|
type: "status",
|
|
149
157
|
section: "left",
|
|
150
158
|
order: 10
|
|
151
159
|
}]);
|
|
152
|
-
}, [
|
|
153
|
-
client:
|
|
154
|
-
children: /* @__PURE__ */
|
|
160
|
+
}, [x, T]), /* @__PURE__ */ b(s, {
|
|
161
|
+
client: S,
|
|
162
|
+
children: /* @__PURE__ */ b(c, {
|
|
155
163
|
workspaceId: null,
|
|
156
164
|
gateway: "global",
|
|
157
165
|
defaultEnabled: !0,
|
|
158
|
-
children: /* @__PURE__ */
|
|
166
|
+
children: /* @__PURE__ */ b(w, { children: /* @__PURE__ */ b(e, {
|
|
159
167
|
...i,
|
|
160
|
-
children: /* @__PURE__ */
|
|
168
|
+
children: /* @__PURE__ */ b(t, {})
|
|
161
169
|
}) })
|
|
162
170
|
})
|
|
163
171
|
});
|
|
164
172
|
};
|
|
165
|
-
export {
|
|
173
|
+
export { T as GovCitizenHubRoot };
|
|
166
174
|
|
|
167
175
|
//# sourceMappingURL=GovCitizenHubRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GovCitizenHubRoot.js","names":["queryClient","QueryClient","ErrorFallback","tr","useTr","message","GovErrorBoundary","Component","props","error","GovCitizenHubRoot","useEffect","registerNavItems","navItems","joinPath","basePath","LayoutDashboard","Briefcase","FileText","Building2","FolderOpen","CreditCard","BadgeCheck","ShieldQuestion","MessageSquareWarning","Landmark","registerFooterItems","QueryClientProvider","FeatureFlagProvider","GovCitizenHubProvider","GovCitizenHubRoutes"],"sources":["../../src/govcitizenhub/GovCitizenHubRoot.tsx"],"sourcesContent":["/**\n * GovCitizenHub Root Component\n * @module govcitizenhub\n *\n * Host-contract entry point. Registers the product's sidebar nav (matching the\n * app-shell static NavRegistration block so the two are one source of truth) and\n * mounts the routed pages inside the shared QueryClient + FeatureFlag providers.\n */\n\nimport { Component, type ErrorInfo, type FC, type ReactNode } from 'react';\nimport { useEffect } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport {\n LayoutDashboard,\n Briefcase,\n FileText,\n Building2,\n FolderOpen,\n CreditCard,\n BadgeCheck,\n ShieldQuestion,\n MessageSquareWarning,\n Landmark,\n} from 'lucide-react';\nimport { GovCitizenHubProvider } from './context/GovCitizenHubContext';\nimport { GovCitizenHubRoutes } from './GovCitizenHubRoutes';\nimport { joinPath } from './utils/navigation';\nimport { useTr } from '../shared/hooks/useTr';\nimport type { GovCitizenHubRootProps, NavItem } from './types';\n\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 60 * 1000,\n retry: 1,\n refetchOnWindowFocus: false,\n },\n },\n});\n\ninterface ErrorBoundaryState {\n hasError: boolean;\n message: string | null;\n}\n\nconst ErrorFallback: FC<{ message: string | null }> = ({ message }) => {\n const tr = useTr();\n return (\n <div className=\"m-4 rounded-xl border border-border-seam bg-bg-surface p-6\">\n <h2 className=\"text-lg font-semibold text-status-error-text\">\n {tr('govcitizenhub.errorTitle', 'Something went wrong')}\n </h2>\n <p className=\"mt-2 text-sm text-text-secondary\">\n {message ?? tr('govcitizenhub.errorFallback', 'Unknown error')}\n </p>\n <button\n type=\"button\"\n onClick={() => window.location.reload()}\n className=\"mt-4 rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90\"\n >\n {tr('common.reload', 'Reload')}\n </button>\n </div>\n );\n};\n\nclass GovErrorBoundary extends Component<{ children: ReactNode }, ErrorBoundaryState> {\n constructor(props: { children: ReactNode }) {\n super(props);\n this.state = { hasError: false, message: null };\n }\n\n static getDerivedStateFromError(error: Error): ErrorBoundaryState {\n return { hasError: true, message: error.message };\n }\n\n override componentDidCatch(_error: Error, _info: ErrorInfo) {\n // Surfaced in the fallback; no external logger wired here.\n }\n\n override render() {\n if (this.state.hasError) {\n return <ErrorFallback message={this.state.message} />;\n }\n return this.props.children;\n }\n}\n\nexport const GovCitizenHubRoot: FC<GovCitizenHubRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const tr = useTr();\n\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'govcitizenhub-dashboard',\n label: tr('govcitizenhub.dashboard', 'Dashboard'),\n path: joinPath(basePath, ''),\n icon: <LayoutDashboard size={20} />,\n order: 0,\n group: 'products',\n },\n {\n id: 'govcitizenhub-services',\n label: tr('govcitizenhub.services', 'Services'),\n path: joinPath(basePath, 'services'),\n icon: <Briefcase size={20} />,\n order: 1,\n group: 'products',\n },\n {\n id: 'govcitizenhub-applications',\n label: tr('govcitizenhub.applications', 'Applications'),\n path: joinPath(basePath, 'applications'),\n icon: <FileText size={20} />,\n order: 2,\n group: 'products',\n },\n {\n id: 'govcitizenhub-agencies',\n label: tr('govcitizenhub.agencies', 'Agencies'),\n path: joinPath(basePath, 'agencies'),\n icon: <Building2 size={20} />,\n order: 3,\n group: 'products',\n },\n {\n id: 'govcitizenhub-documents',\n label: tr('govcitizenhub.documents', 'Documents'),\n path: joinPath(basePath, 'documents'),\n icon: <FolderOpen size={20} />,\n order: 4,\n group: 'products',\n },\n {\n id: 'govcitizenhub-payments',\n label: tr('govcitizenhub.payments', 'Payments'),\n path: joinPath(basePath, 'payments'),\n icon: <CreditCard size={20} />,\n order: 5,\n group: 'products',\n },\n {\n id: 'govcitizenhub-permits',\n label: tr('govcitizenhub.permits', 'Permits'),\n path: joinPath(basePath, 'permits'),\n icon: <BadgeCheck size={20} />,\n order: 6,\n group: 'products',\n },\n {\n id: 'govcitizenhub-verify',\n label: tr('govcitizenhub.verifyPermit', 'Verify Permit'),\n path: joinPath(basePath, 'permits/verify'),\n icon: <ShieldQuestion size={20} />,\n order: 7,\n group: 'products',\n },\n {\n id: 'govcitizenhub-grievances',\n label: tr('govcitizenhub.grievances', 'Grievances'),\n path: joinPath(basePath, 'grievances'),\n icon: <MessageSquareWarning size={20} />,\n order: 8,\n group: 'products',\n },\n {\n id: 'govcitizenhub-intelligence',\n label: tr('govcitizenhub.communityIntelligence', 'Community Intelligence'),\n path: joinPath(basePath, 'intelligence'),\n icon: <Landmark size={20} />,\n order: 9,\n group: 'products',\n },\n ];\n\n return registerNavItems(navItems);\n }, [registerNavItems, basePath, tr]);\n\n useEffect(() => {\n if (!registerFooterItems) return;\n return registerFooterItems([\n {\n id: 'govcitizenhub-status',\n label: tr('govcitizenhub.readyStatus', 'GovCitizenHub Ready'),\n type: 'status',\n section: 'left',\n order: 10,\n },\n ]);\n }, [registerFooterItems, tr]);\n\n return (\n <QueryClientProvider client={queryClient}>\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <GovErrorBoundary>\n <GovCitizenHubProvider {...props}>\n <GovCitizenHubRoutes />\n </GovCitizenHubProvider>\n </GovErrorBoundary>\n </FeatureFlagProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AA+BA,IAAMA,IAAc,IAAIC,EAAY,EAClC,gBAAgB,EACd,SAAS;CACP,WAAW;CACX,OAAO;CACP,sBAAsB;AACxB,EACF,EACF,CAAC,GAOKC,KAAiD,EAAE,iBAAc;CACrE,IAAMC,IAAKC,EAAM;CACjB,OACE,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACE,kBAAC,MAAD;IAAI,WAAU;IACX,UAAAD,EAAG,4BAA4B,sBAAsB;GACpD,CAAA;GACJ,kBAAC,KAAD;IAAG,WAAU;IACV,UAAAE,KAAWF,EAAG,+BAA+B,eAAe;GAC5D,CAAA;GACH,kBAAC,UAAD;IACE,MAAK;IACL,eAAe,OAAO,SAAS,OAAO;IACtC,WAAU;IAET,UAAAA,EAAG,iBAAiB,QAAQ;GACvB,CAAA;EACL;;AAET,GAEMG,IAAN,cAA+BC,EAA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Aa;GAAM,SAAQ;GAAS,gBAAgB;GACvE,UAAA,kBAACtB,GAAD,EAAA,UACE,kBAACuB,GAAD;IAAuB,GAAIrB;IACzB,UAAA,kBAACsB,GAAD,CAAsB,CAAA;GACD,CAAA,EACP,CAAA;EACC,CAAA;CACF,CAAA;AAEzB"}
|
|
1
|
+
{"version":3,"file":"GovCitizenHubRoot.js","names":["queryClient","QueryClient","ErrorFallback","tr","useTr","message","GovErrorBoundary","Component","props","error","GovCitizenHubRoot","useEffect","registerNavItems","navItems","joinPath","basePath","LayoutDashboard","Briefcase","FileText","Building2","FolderOpen","Wallet","CreditCard","BadgeCheck","ShieldQuestion","MessageSquareWarning","Landmark","registerFooterItems","QueryClientProvider","FeatureFlagProvider","GovCitizenHubProvider","GovCitizenHubRoutes"],"sources":["../../src/govcitizenhub/GovCitizenHubRoot.tsx"],"sourcesContent":["/**\n * GovCitizenHub Root Component\n * @module govcitizenhub\n *\n * Host-contract entry point. Registers the product's sidebar nav (matching the\n * app-shell static NavRegistration block so the two are one source of truth) and\n * mounts the routed pages inside the shared QueryClient + FeatureFlag providers.\n */\n\nimport { Component, type ErrorInfo, type FC, type ReactNode } from 'react';\nimport { useEffect } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport {\n LayoutDashboard,\n Briefcase,\n FileText,\n Building2,\n FolderOpen,\n CreditCard,\n BadgeCheck,\n ShieldQuestion,\n MessageSquareWarning,\n Landmark,\n Wallet,\n} from 'lucide-react';\nimport { GovCitizenHubProvider } from './context/GovCitizenHubContext';\nimport { GovCitizenHubRoutes } from './GovCitizenHubRoutes';\nimport { joinPath } from './utils/navigation';\nimport { useTr } from '../shared/hooks/useTr';\nimport type { GovCitizenHubRootProps, NavItem } from './types';\n\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 60 * 1000,\n retry: 1,\n refetchOnWindowFocus: false,\n },\n },\n});\n\ninterface ErrorBoundaryState {\n hasError: boolean;\n message: string | null;\n}\n\nconst ErrorFallback: FC<{ message: string | null }> = ({ message }) => {\n const tr = useTr();\n return (\n <div className=\"m-4 rounded-xl border border-border-seam bg-bg-surface p-6\">\n <h2 className=\"text-lg font-semibold text-status-error-text\">\n {tr('govcitizenhub.errorTitle', 'Something went wrong')}\n </h2>\n <p className=\"mt-2 text-sm text-text-secondary\">\n {message ?? tr('govcitizenhub.errorFallback', 'Unknown error')}\n </p>\n <button\n type=\"button\"\n onClick={() => window.location.reload()}\n className=\"mt-4 rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90\"\n >\n {tr('common.reload', 'Reload')}\n </button>\n </div>\n );\n};\n\nclass GovErrorBoundary extends Component<{ children: ReactNode }, ErrorBoundaryState> {\n constructor(props: { children: ReactNode }) {\n super(props);\n this.state = { hasError: false, message: null };\n }\n\n static getDerivedStateFromError(error: Error): ErrorBoundaryState {\n return { hasError: true, message: error.message };\n }\n\n override componentDidCatch(_error: Error, _info: ErrorInfo) {\n // Surfaced in the fallback; no external logger wired here.\n }\n\n override render() {\n if (this.state.hasError) {\n return <ErrorFallback message={this.state.message} />;\n }\n return this.props.children;\n }\n}\n\nexport const GovCitizenHubRoot: FC<GovCitizenHubRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const tr = useTr();\n\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'govcitizenhub-dashboard',\n label: tr('govcitizenhub.dashboard', 'Dashboard'),\n path: joinPath(basePath, ''),\n icon: <LayoutDashboard size={20} />,\n order: 0,\n group: 'products',\n },\n {\n id: 'govcitizenhub-services',\n label: tr('govcitizenhub.services', 'Services'),\n path: joinPath(basePath, 'services'),\n icon: <Briefcase size={20} />,\n order: 1,\n group: 'products',\n },\n {\n id: 'govcitizenhub-applications',\n label: tr('govcitizenhub.applications', 'Applications'),\n path: joinPath(basePath, 'applications'),\n icon: <FileText size={20} />,\n order: 2,\n group: 'products',\n },\n {\n id: 'govcitizenhub-agencies',\n label: tr('govcitizenhub.agencies', 'Agencies'),\n path: joinPath(basePath, 'agencies'),\n icon: <Building2 size={20} />,\n order: 3,\n group: 'products',\n },\n {\n id: 'govcitizenhub-documents',\n label: tr('govcitizenhub.documents', 'Documents'),\n path: joinPath(basePath, 'documents'),\n icon: <FolderOpen size={20} />,\n order: 4,\n group: 'products',\n },\n {\n id: 'govcitizenhub-wallet',\n label: tr('govcitizenhub.wallet', 'Document wallet'),\n path: joinPath(basePath, 'wallet'),\n icon: <Wallet size={20} />,\n order: 4.5,\n group: 'products',\n },\n {\n id: 'govcitizenhub-payments',\n label: tr('govcitizenhub.payments', 'Payments'),\n path: joinPath(basePath, 'payments'),\n icon: <CreditCard size={20} />,\n order: 5,\n group: 'products',\n },\n {\n id: 'govcitizenhub-permits',\n label: tr('govcitizenhub.permits', 'Permits'),\n path: joinPath(basePath, 'permits'),\n icon: <BadgeCheck size={20} />,\n order: 6,\n group: 'products',\n },\n {\n id: 'govcitizenhub-verify',\n label: tr('govcitizenhub.verifyPermit', 'Verify Permit'),\n path: joinPath(basePath, 'permits/verify'),\n icon: <ShieldQuestion size={20} />,\n order: 7,\n group: 'products',\n },\n {\n id: 'govcitizenhub-grievances',\n label: tr('govcitizenhub.grievances', 'Grievances'),\n path: joinPath(basePath, 'grievances'),\n icon: <MessageSquareWarning size={20} />,\n order: 8,\n group: 'products',\n },\n {\n id: 'govcitizenhub-intelligence',\n label: tr('govcitizenhub.communityIntelligence', 'Community Intelligence'),\n path: joinPath(basePath, 'intelligence'),\n icon: <Landmark size={20} />,\n order: 9,\n group: 'products',\n },\n ];\n\n return registerNavItems(navItems);\n }, [registerNavItems, basePath, tr]);\n\n useEffect(() => {\n if (!registerFooterItems) return;\n return registerFooterItems([\n {\n id: 'govcitizenhub-status',\n label: tr('govcitizenhub.readyStatus', 'GovCitizenHub Ready'),\n type: 'status',\n section: 'left',\n order: 10,\n },\n ]);\n }, [registerFooterItems, tr]);\n\n return (\n <QueryClientProvider client={queryClient}>\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <GovErrorBoundary>\n <GovCitizenHubProvider {...props}>\n <GovCitizenHubRoutes />\n </GovCitizenHubProvider>\n </GovErrorBoundary>\n </FeatureFlagProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AAgCA,IAAMA,IAAc,IAAIC,EAAY,EAClC,gBAAgB,EACd,SAAS;CACP,WAAW;CACX,OAAO;CACP,sBAAsB;AACxB,EACF,EACF,CAAC,GAOKC,KAAiD,EAAE,iBAAc;CACrE,IAAMC,IAAKC,EAAM;CACjB,OACE,kBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACE,kBAAC,MAAD;IAAI,WAAU;IACX,UAAAD,EAAG,4BAA4B,sBAAsB;GACpD,CAAA;GACJ,kBAAC,KAAD;IAAG,WAAU;IACV,UAAAE,KAAWF,EAAG,+BAA+B,eAAe;GAC5D,CAAA;GACH,kBAAC,UAAD;IACE,MAAK;IACL,eAAe,OAAO,SAAS,OAAO;IACtC,WAAU;IAET,UAAAA,EAAG,iBAAiB,QAAQ;GACvB,CAAA;EACL;;AAET,GAEMG,IAAN,cAA+BC,EAAuD;CACpF,YAAY,GAAgC;EAE1C,AADA,MAAMC,CAAK,GACX,KAAK,QAAQ;GAAE,UAAU;GAAO,SAAS;EAAK;CAChD;CAEA,OAAO,yBAAyB,GAAkC;EAChE,OAAO;GAAE,UAAU;GAAM,SAASC,EAAM;EAAQ;CAClD;CAEA,kBAA2B,GAAe,GAAkB,CAE5D;CAEA,SAAkB;EAIhB,OAHI,KAAK,MAAM,WACN,kBAACP,GAAD,EAAe,SAAS,KAAK,MAAM,QAAU,CAAA,IAE/C,KAAK,MAAM;CACpB;AACF,GAEaQ,KAAiD,MAAU;CACtE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQF,GAC5DL,IAAKC,EAAM;CAgHjB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,SAAS;IAC5C,MAAMW,EAASC,GAAU,SAAS;IAClC,MAAM,kBAACQ,GAAD,EAAY,MAAM,GAAK,CAAA;IAC7B,OAAO;IACP,OAAO;GACT;GACA;IACE,IAAI;IACJ,OAAOpB,EAAG,8BAA8B,eAAe;IACvD,MAAMW,EAASC,GAAU,gBAAgB;IACzC,MAAM,kBAACS,GAAD,EAAgB,MAAM,GAAK,CAAA;IACjC,OAAO;IACP,OAAO;GACT;GACA;IACE,IAAI;IACJ,OAAOrB,EAAG,4BAA4B,YAAY;IAClD,MAAMW,EAASC,GAAU,YAAY;IACrC,MAAM,kBAACU,GAAD,EAAsB,MAAM,GAAK,CAAA;IACvC,OAAO;IACP,OAAO;GACT;GACA;IACE,IAAI;IACJ,OAAOtB,EAAG,uCAAuC,wBAAwB;IACzE,MAAMW,EAASC,GAAU,cAAc;IACvC,MAAM,kBAACW,GAAD,EAAU,MAAM,GAAK,CAAA;IAC3B,OAAO;IACP,OAAO;GACT;EACF;EAEA,OAAOd,EAAiBC,CAAQ;CAClC,GAAG;EAACD;EAAkBG;EAAUZ;CAAE,CAAC,GAEnCQ,QAAgB;EACd,IAAKgB,GACL,OAAOA,EAAoB,CACzB;GACE,IAAI;GACJ,OAAOxB,EAAG,6BAA6B,qBAAqB;GAC5D,MAAM;GACN,SAAS;GACT,OAAO;EACT,CACF,CAAC;CACH,GAAG,CAACwB,GAAqBxB,CAAE,CAAC,GAG1B,kBAACyB,GAAD;EAAqB,QAAQ5B;EAC3B,UAAA,kBAAC6B,GAAD;GAAqB,aAAa;GAAM,SAAQ;GAAS,gBAAgB;GACvE,UAAA,kBAACvB,GAAD,EAAA,UACE,kBAACwB,GAAD;IAAuB,GAAItB;IACzB,UAAA,kBAACuB,GAAD,CAAsB,CAAA;GACD,CAAA,EACP,CAAA;EACC,CAAA;CACF,CAAA;AAEzB"}
|
|
@@ -16,12 +16,12 @@ import { Navigate as h, Route as g, Routes as _, useLocation as v } from "react-
|
|
|
16
16
|
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
17
17
|
import { Spinner as x } from "@burdenoff/fe-libs/ui";
|
|
18
18
|
// src/govcitizenhub/GovCitizenHubRoutes.tsx
|
|
19
|
-
var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ default: e.ServicesPage }))), C = p(() => import("./pages/services/ServiceDetailPage.js").then((e) => ({ default: e.ServiceDetailPage }))), w = p(() => import("./pages/applications/ApplicationsPage.js").then((e) => ({ default: e.ApplicationsPage }))), T = p(() => import("./pages/applications/ApplicationDetailPage.js").then((e) => ({ default: e.ApplicationDetailPage }))), E = p(() => import("./pages/applications/NewApplicationPage.js").then((e) => ({ default: e.NewApplicationPage }))), D = p(() => import("./pages/agencies/AgenciesPage.js").then((e) => ({ default: e.AgenciesPage }))), O = p(() => import("./pages/documents/DocumentsPage.js").then((e) => ({ default: e.DocumentsPage }))), k = p(() => import("./pages/payments/PaymentsPage.js").then((e) => ({ default: e.PaymentsPage }))),
|
|
19
|
+
var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ default: e.ServicesPage }))), C = p(() => import("./pages/services/ServiceDetailPage.js").then((e) => ({ default: e.ServiceDetailPage }))), w = p(() => import("./pages/applications/ApplicationsPage.js").then((e) => ({ default: e.ApplicationsPage }))), T = p(() => import("./pages/applications/ApplicationDetailPage.js").then((e) => ({ default: e.ApplicationDetailPage }))), E = p(() => import("./pages/applications/NewApplicationPage.js").then((e) => ({ default: e.NewApplicationPage }))), D = p(() => import("./pages/agencies/AgenciesPage.js").then((e) => ({ default: e.AgenciesPage }))), O = p(() => import("./pages/documents/DocumentsPage.js").then((e) => ({ default: e.DocumentsPage }))), k = p(() => import("./pages/wallet/WalletPage.js").then((e) => ({ default: e.WalletPage }))), A = p(() => import("./pages/payments/PaymentsPage.js").then((e) => ({ default: e.PaymentsPage }))), j = p(() => import("./pages/permits/PermitsPage.js").then((e) => ({ default: e.PermitsPage }))), M = p(() => import("./pages/permits/VerifyPermitPage.js").then((e) => ({ default: e.VerifyPermitPage }))), N = p(() => import("./pages/grievances/GrievancesPage.js").then((e) => ({ default: e.GrievancesPage }))), P = p(() => import("./pages/grievances/GrievanceDetailPage.js").then((e) => ({ default: e.GrievanceDetailPage }))), F = p(() => import("./pages/intelligence/JurisdictionDirectoryPage.js").then((e) => ({ default: e.JurisdictionDirectoryPage }))), I = p(() => import("./pages/intelligence/AdminLevelsPage.js").then((e) => ({ default: e.AdminLevelsPage }))), L = p(() => import("./pages/intelligence/IndicatorCatalogPage.js").then((e) => ({ default: e.IndicatorCatalogPage }))), R = p(() => import("./pages/intelligence/JurisdictionProfilePage.js").then((e) => ({ default: e.JurisdictionProfilePage }))), z = p(() => import("./pages/intelligence/GovernancePage.js").then((e) => ({ default: e.GovernancePage }))), B = p(() => import("./pages/intelligence/BudgetPage.js").then((e) => ({ default: e.BudgetPage }))), V = p(() => import("./pages/intelligence/ProjectsPage.js").then((e) => ({ default: e.ProjectsPage }))), H = p(() => import("./pages/intelligence/IndicatorsPage.js").then((e) => ({ default: e.IndicatorsPage }))), U = p(() => import("./pages/intelligence/BenchmarkPage.js").then((e) => ({ default: e.BenchmarkPage }))), W = p(() => import("./pages/intelligence/ServicePerformancePage.js").then((e) => ({ default: e.ServicePerformancePage }))), G = p(() => import("./pages/intelligence/PublicAssetsPage.js").then((e) => ({ default: e.PublicAssetsPage }))), K = p(() => import("./pages/intelligence/ElectionsPage.js").then((e) => ({ default: e.ElectionsPage }))), q = p(() => import("./pages/intelligence/ConsultationsPage.js").then((e) => ({ default: e.ConsultationsPage }))), J = p(() => import("./pages/intelligence/OpenDataPage.js").then((e) => ({ default: e.OpenDataPage }))), Y = p(() => import("./pages/intelligence/TimelinePage.js").then((e) => ({ default: e.TimelinePage }))), X = p(() => import("./pages/intelligence/CorrectionsPage.js").then((e) => ({ default: e.CorrectionsPage }))), Z = () => /* @__PURE__ */ y("div", {
|
|
20
20
|
className: "flex min-h-[400px] items-center justify-center",
|
|
21
21
|
children: /* @__PURE__ */ y(x, { size: "lg" })
|
|
22
|
-
}),
|
|
22
|
+
}), Q = () => {
|
|
23
23
|
let n = t(), { isLoading: i, canOfficer: a } = r(), { getPath: o } = e(), s = v();
|
|
24
|
-
return i ? /* @__PURE__ */ y(
|
|
24
|
+
return i ? /* @__PURE__ */ y(Z, {}) : a ? /* @__PURE__ */ y(h, {
|
|
25
25
|
to: {
|
|
26
26
|
pathname: o("officer"),
|
|
27
27
|
search: s.search
|
|
@@ -31,7 +31,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
31
31
|
to: "m",
|
|
32
32
|
replace: !0
|
|
33
33
|
}) : /* @__PURE__ */ y(c, {});
|
|
34
|
-
},
|
|
34
|
+
}, $ = ({ to: t }) => {
|
|
35
35
|
let { getPath: n } = e(), r = v();
|
|
36
36
|
return /* @__PURE__ */ y(h, {
|
|
37
37
|
to: {
|
|
@@ -40,16 +40,16 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
40
40
|
},
|
|
41
41
|
replace: !0
|
|
42
42
|
});
|
|
43
|
-
},
|
|
43
|
+
}, ee = () => {
|
|
44
44
|
let { basePath: t, isStandalone: r } = e(), c = v(), p = t === "/" ? "" : (t ?? "").replace(/\/$/, "");
|
|
45
45
|
return p && !r && !(c.pathname === p || c.pathname.startsWith(p + "/")) ? null : /* @__PURE__ */ y("div", {
|
|
46
46
|
className: "flex min-h-full flex-col",
|
|
47
47
|
children: /* @__PURE__ */ y(f, {
|
|
48
|
-
fallback: /* @__PURE__ */ y(
|
|
48
|
+
fallback: /* @__PURE__ */ y(Z, {}),
|
|
49
49
|
children: /* @__PURE__ */ b(_, { children: [
|
|
50
50
|
/* @__PURE__ */ y(g, {
|
|
51
51
|
index: !0,
|
|
52
|
-
element: /* @__PURE__ */ y(
|
|
52
|
+
element: /* @__PURE__ */ y(Q, {})
|
|
53
53
|
}),
|
|
54
54
|
/* @__PURE__ */ b(g, {
|
|
55
55
|
element: /* @__PURE__ */ y(a, {}),
|
|
@@ -75,7 +75,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
75
75
|
element: /* @__PURE__ */ y(m, {
|
|
76
76
|
flag: "govcitizenhub.mobile.enabled",
|
|
77
77
|
defaultValue: !0,
|
|
78
|
-
children: /* @__PURE__ */ y(n, { children: /* @__PURE__ */ y(
|
|
78
|
+
children: /* @__PURE__ */ y(n, { children: /* @__PURE__ */ y(M, {}) })
|
|
79
79
|
})
|
|
80
80
|
}),
|
|
81
81
|
/* @__PURE__ */ y(g, {
|
|
@@ -142,12 +142,20 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
142
142
|
children: /* @__PURE__ */ y(O, {})
|
|
143
143
|
})
|
|
144
144
|
}),
|
|
145
|
+
/* @__PURE__ */ y(g, {
|
|
146
|
+
path: "wallet",
|
|
147
|
+
element: /* @__PURE__ */ y(m, {
|
|
148
|
+
flag: "govcitizenhub.wallet.enabled",
|
|
149
|
+
defaultValue: !0,
|
|
150
|
+
children: /* @__PURE__ */ y(k, {})
|
|
151
|
+
})
|
|
152
|
+
}),
|
|
145
153
|
/* @__PURE__ */ y(g, {
|
|
146
154
|
path: "grievances",
|
|
147
155
|
element: /* @__PURE__ */ y(m, {
|
|
148
156
|
flag: "govcitizenhub.grievances.enabled",
|
|
149
157
|
defaultValue: !0,
|
|
150
|
-
children: /* @__PURE__ */ y(
|
|
158
|
+
children: /* @__PURE__ */ y(N, {})
|
|
151
159
|
})
|
|
152
160
|
}),
|
|
153
161
|
/* @__PURE__ */ y(g, {
|
|
@@ -155,7 +163,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
155
163
|
element: /* @__PURE__ */ y(m, {
|
|
156
164
|
flag: "govcitizenhub.grievances.enabled",
|
|
157
165
|
defaultValue: !0,
|
|
158
|
-
children: /* @__PURE__ */ y(
|
|
166
|
+
children: /* @__PURE__ */ y(P, {})
|
|
159
167
|
})
|
|
160
168
|
}),
|
|
161
169
|
/* @__PURE__ */ y(g, {
|
|
@@ -163,7 +171,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
163
171
|
element: /* @__PURE__ */ y(m, {
|
|
164
172
|
flag: "govcitizenhub.permits.enabled",
|
|
165
173
|
defaultValue: !0,
|
|
166
|
-
children: /* @__PURE__ */ y(
|
|
174
|
+
children: /* @__PURE__ */ y(M, {})
|
|
167
175
|
})
|
|
168
176
|
})
|
|
169
177
|
]
|
|
@@ -221,7 +229,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
221
229
|
element: /* @__PURE__ */ y(m, {
|
|
222
230
|
flag: "govcitizenhub.payments.enabled",
|
|
223
231
|
defaultValue: !0,
|
|
224
|
-
children: /* @__PURE__ */ y(
|
|
232
|
+
children: /* @__PURE__ */ y(A, {})
|
|
225
233
|
})
|
|
226
234
|
}),
|
|
227
235
|
/* @__PURE__ */ y(g, {
|
|
@@ -229,7 +237,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
229
237
|
element: /* @__PURE__ */ y(m, {
|
|
230
238
|
flag: "govcitizenhub.permits.enabled",
|
|
231
239
|
defaultValue: !0,
|
|
232
|
-
children: /* @__PURE__ */ y(
|
|
240
|
+
children: /* @__PURE__ */ y(j, {})
|
|
233
241
|
})
|
|
234
242
|
}),
|
|
235
243
|
/* @__PURE__ */ y(g, {
|
|
@@ -237,7 +245,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
237
245
|
element: /* @__PURE__ */ y(m, {
|
|
238
246
|
flag: "govcitizenhub.permits.enabled",
|
|
239
247
|
defaultValue: !0,
|
|
240
|
-
children: /* @__PURE__ */ y(
|
|
248
|
+
children: /* @__PURE__ */ y(M, {})
|
|
241
249
|
})
|
|
242
250
|
}),
|
|
243
251
|
/* @__PURE__ */ y(g, {
|
|
@@ -245,7 +253,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
245
253
|
element: /* @__PURE__ */ y(m, {
|
|
246
254
|
flag: "govcitizenhub.grievances.enabled",
|
|
247
255
|
defaultValue: !0,
|
|
248
|
-
children: /* @__PURE__ */ y(
|
|
256
|
+
children: /* @__PURE__ */ y(N, {})
|
|
249
257
|
})
|
|
250
258
|
}),
|
|
251
259
|
/* @__PURE__ */ y(g, {
|
|
@@ -253,7 +261,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
253
261
|
element: /* @__PURE__ */ y(m, {
|
|
254
262
|
flag: "govcitizenhub.grievances.enabled",
|
|
255
263
|
defaultValue: !0,
|
|
256
|
-
children: /* @__PURE__ */ y(
|
|
264
|
+
children: /* @__PURE__ */ y(P, {})
|
|
257
265
|
})
|
|
258
266
|
}),
|
|
259
267
|
/* @__PURE__ */ y(g, {
|
|
@@ -276,22 +284,22 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
276
284
|
}),
|
|
277
285
|
/* @__PURE__ */ y(g, {
|
|
278
286
|
path: "agencies",
|
|
279
|
-
element: /* @__PURE__ */ y(
|
|
287
|
+
element: /* @__PURE__ */ y($, { to: "agencies" })
|
|
280
288
|
}),
|
|
281
289
|
/* @__PURE__ */ y(g, {
|
|
282
290
|
path: "payments",
|
|
283
|
-
element: /* @__PURE__ */ y(
|
|
291
|
+
element: /* @__PURE__ */ y($, { to: "payments" })
|
|
284
292
|
}),
|
|
285
293
|
/* @__PURE__ */ y(g, {
|
|
286
294
|
path: "permits",
|
|
287
|
-
element: /* @__PURE__ */ y(
|
|
295
|
+
element: /* @__PURE__ */ y($, { to: "permits" })
|
|
288
296
|
}),
|
|
289
297
|
/* @__PURE__ */ y(g, {
|
|
290
298
|
path: "intelligence",
|
|
291
299
|
element: /* @__PURE__ */ y(m, {
|
|
292
300
|
flag: "govcitizenhub.intelligence.enabled",
|
|
293
301
|
defaultValue: !0,
|
|
294
|
-
children: /* @__PURE__ */ y(
|
|
302
|
+
children: /* @__PURE__ */ y(F, {})
|
|
295
303
|
})
|
|
296
304
|
}),
|
|
297
305
|
/* @__PURE__ */ y(g, {
|
|
@@ -299,7 +307,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
299
307
|
element: /* @__PURE__ */ y(m, {
|
|
300
308
|
flag: "govcitizenhub.intelligence.enabled",
|
|
301
309
|
defaultValue: !0,
|
|
302
|
-
children: /* @__PURE__ */ y(
|
|
310
|
+
children: /* @__PURE__ */ y(I, {})
|
|
303
311
|
})
|
|
304
312
|
}),
|
|
305
313
|
/* @__PURE__ */ y(g, {
|
|
@@ -307,7 +315,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
307
315
|
element: /* @__PURE__ */ y(m, {
|
|
308
316
|
flag: "govcitizenhub.intelligence.enabled",
|
|
309
317
|
defaultValue: !0,
|
|
310
|
-
children: /* @__PURE__ */ y(
|
|
318
|
+
children: /* @__PURE__ */ y(L, {})
|
|
311
319
|
})
|
|
312
320
|
}),
|
|
313
321
|
/* @__PURE__ */ y(g, {
|
|
@@ -315,7 +323,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
315
323
|
element: /* @__PURE__ */ y(m, {
|
|
316
324
|
flag: "govcitizenhub.intelligence.enabled",
|
|
317
325
|
defaultValue: !0,
|
|
318
|
-
children: /* @__PURE__ */ y(
|
|
326
|
+
children: /* @__PURE__ */ y(R, {})
|
|
319
327
|
})
|
|
320
328
|
}),
|
|
321
329
|
/* @__PURE__ */ y(g, {
|
|
@@ -323,7 +331,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
323
331
|
element: /* @__PURE__ */ y(m, {
|
|
324
332
|
flag: "govcitizenhub.intelligence.enabled",
|
|
325
333
|
defaultValue: !0,
|
|
326
|
-
children: /* @__PURE__ */ y(
|
|
334
|
+
children: /* @__PURE__ */ y(z, {})
|
|
327
335
|
})
|
|
328
336
|
}),
|
|
329
337
|
/* @__PURE__ */ y(g, {
|
|
@@ -331,7 +339,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
331
339
|
element: /* @__PURE__ */ y(m, {
|
|
332
340
|
flag: "govcitizenhub.intelligence.enabled",
|
|
333
341
|
defaultValue: !0,
|
|
334
|
-
children: /* @__PURE__ */ y(
|
|
342
|
+
children: /* @__PURE__ */ y(B, {})
|
|
335
343
|
})
|
|
336
344
|
}),
|
|
337
345
|
/* @__PURE__ */ y(g, {
|
|
@@ -339,7 +347,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
339
347
|
element: /* @__PURE__ */ y(m, {
|
|
340
348
|
flag: "govcitizenhub.intelligence.enabled",
|
|
341
349
|
defaultValue: !0,
|
|
342
|
-
children: /* @__PURE__ */ y(
|
|
350
|
+
children: /* @__PURE__ */ y(V, {})
|
|
343
351
|
})
|
|
344
352
|
}),
|
|
345
353
|
/* @__PURE__ */ y(g, {
|
|
@@ -347,7 +355,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
347
355
|
element: /* @__PURE__ */ y(m, {
|
|
348
356
|
flag: "govcitizenhub.intelligence.enabled",
|
|
349
357
|
defaultValue: !0,
|
|
350
|
-
children: /* @__PURE__ */ y(
|
|
358
|
+
children: /* @__PURE__ */ y(H, {})
|
|
351
359
|
})
|
|
352
360
|
}),
|
|
353
361
|
/* @__PURE__ */ y(g, {
|
|
@@ -355,7 +363,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
355
363
|
element: /* @__PURE__ */ y(m, {
|
|
356
364
|
flag: "govcitizenhub.intelligence.enabled",
|
|
357
365
|
defaultValue: !0,
|
|
358
|
-
children: /* @__PURE__ */ y(
|
|
366
|
+
children: /* @__PURE__ */ y(U, {})
|
|
359
367
|
})
|
|
360
368
|
}),
|
|
361
369
|
/* @__PURE__ */ y(g, {
|
|
@@ -363,7 +371,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
363
371
|
element: /* @__PURE__ */ y(m, {
|
|
364
372
|
flag: "govcitizenhub.intelligence.enabled",
|
|
365
373
|
defaultValue: !0,
|
|
366
|
-
children: /* @__PURE__ */ y(
|
|
374
|
+
children: /* @__PURE__ */ y(W, {})
|
|
367
375
|
})
|
|
368
376
|
}),
|
|
369
377
|
/* @__PURE__ */ y(g, {
|
|
@@ -371,7 +379,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
371
379
|
element: /* @__PURE__ */ y(m, {
|
|
372
380
|
flag: "govcitizenhub.intelligence.enabled",
|
|
373
381
|
defaultValue: !0,
|
|
374
|
-
children: /* @__PURE__ */ y(
|
|
382
|
+
children: /* @__PURE__ */ y(G, {})
|
|
375
383
|
})
|
|
376
384
|
}),
|
|
377
385
|
/* @__PURE__ */ y(g, {
|
|
@@ -379,7 +387,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
379
387
|
element: /* @__PURE__ */ y(m, {
|
|
380
388
|
flag: "govcitizenhub.intelligence.enabled",
|
|
381
389
|
defaultValue: !0,
|
|
382
|
-
children: /* @__PURE__ */ y(
|
|
390
|
+
children: /* @__PURE__ */ y(K, {})
|
|
383
391
|
})
|
|
384
392
|
}),
|
|
385
393
|
/* @__PURE__ */ y(g, {
|
|
@@ -387,7 +395,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
387
395
|
element: /* @__PURE__ */ y(m, {
|
|
388
396
|
flag: "govcitizenhub.intelligence.enabled",
|
|
389
397
|
defaultValue: !0,
|
|
390
|
-
children: /* @__PURE__ */ y(
|
|
398
|
+
children: /* @__PURE__ */ y(q, {})
|
|
391
399
|
})
|
|
392
400
|
}),
|
|
393
401
|
/* @__PURE__ */ y(g, {
|
|
@@ -395,7 +403,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
395
403
|
element: /* @__PURE__ */ y(m, {
|
|
396
404
|
flag: "govcitizenhub.intelligence.enabled",
|
|
397
405
|
defaultValue: !0,
|
|
398
|
-
children: /* @__PURE__ */ y(
|
|
406
|
+
children: /* @__PURE__ */ y(J, {})
|
|
399
407
|
})
|
|
400
408
|
}),
|
|
401
409
|
/* @__PURE__ */ y(g, {
|
|
@@ -403,7 +411,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
403
411
|
element: /* @__PURE__ */ y(m, {
|
|
404
412
|
flag: "govcitizenhub.intelligence.enabled",
|
|
405
413
|
defaultValue: !0,
|
|
406
|
-
children: /* @__PURE__ */ y(
|
|
414
|
+
children: /* @__PURE__ */ y(Y, {})
|
|
407
415
|
})
|
|
408
416
|
}),
|
|
409
417
|
/* @__PURE__ */ y(g, {
|
|
@@ -411,7 +419,7 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
411
419
|
element: /* @__PURE__ */ y(m, {
|
|
412
420
|
flag: "govcitizenhub.intelligence.enabled",
|
|
413
421
|
defaultValue: !0,
|
|
414
|
-
children: /* @__PURE__ */ y(
|
|
422
|
+
children: /* @__PURE__ */ y(X, {})
|
|
415
423
|
})
|
|
416
424
|
}),
|
|
417
425
|
/* @__PURE__ */ y(g, {
|
|
@@ -425,6 +433,6 @@ var S = p(() => import("./pages/services/ServicesPage.js").then((e) => ({ defaul
|
|
|
425
433
|
})
|
|
426
434
|
});
|
|
427
435
|
};
|
|
428
|
-
export {
|
|
436
|
+
export { ee as GovCitizenHubRoutes };
|
|
429
437
|
|
|
430
438
|
//# sourceMappingURL=GovCitizenHubRoutes.js.map
|