@burdenoff/microfe-theglobalfuel 2026.528.1 → 2026.704.1

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.
Files changed (209) hide show
  1. package/dist/dev/main.d.ts +2 -0
  2. package/dist/dev/main.d.ts.map +1 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +6 -4
  6. package/dist/node_modules/{clsx → .bun/clsx@2.1.1/node_modules/clsx}/dist/clsx.js +1 -1
  7. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
  8. package/dist/node_modules/{tailwind-merge → .bun/tailwind-merge@3.5.0/node_modules/tailwind-merge}/dist/bundle-mjs.js +170 -212
  9. package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  10. package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts +5 -0
  11. package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts.map +1 -0
  12. package/dist/theglobalfuel/TheGlobalFuelRoot.js +109 -161
  13. package/dist/theglobalfuel/TheGlobalFuelRoot.js.map +1 -1
  14. package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts +4 -0
  15. package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts.map +1 -0
  16. package/dist/theglobalfuel/TheGlobalFuelRoutes.js +70 -85
  17. package/dist/theglobalfuel/TheGlobalFuelRoutes.js.map +1 -1
  18. package/dist/theglobalfuel/components/DataTable.d.ts +28 -0
  19. package/dist/theglobalfuel/components/DataTable.d.ts.map +1 -0
  20. package/dist/theglobalfuel/components/DataTable.js +71 -0
  21. package/dist/theglobalfuel/components/DataTable.js.map +1 -0
  22. package/dist/theglobalfuel/components/EmptyState.d.ts +18 -0
  23. package/dist/theglobalfuel/components/EmptyState.d.ts.map +1 -0
  24. package/dist/theglobalfuel/components/EmptyState.js +35 -0
  25. package/dist/theglobalfuel/components/EmptyState.js.map +1 -0
  26. package/dist/theglobalfuel/components/EvidenceUpload.d.ts +14 -0
  27. package/dist/theglobalfuel/components/EvidenceUpload.d.ts.map +1 -0
  28. package/dist/theglobalfuel/components/EvidenceUpload.js +93 -0
  29. package/dist/theglobalfuel/components/EvidenceUpload.js.map +1 -0
  30. package/dist/theglobalfuel/components/FileLink.d.ts +15 -0
  31. package/dist/theglobalfuel/components/FileLink.d.ts.map +1 -0
  32. package/dist/theglobalfuel/components/FileLink.js +36 -0
  33. package/dist/theglobalfuel/components/FileLink.js.map +1 -0
  34. package/dist/theglobalfuel/components/FilterTabs.d.ts +18 -0
  35. package/dist/theglobalfuel/components/FilterTabs.d.ts.map +1 -0
  36. package/dist/theglobalfuel/components/FilterTabs.js +27 -0
  37. package/dist/theglobalfuel/components/FilterTabs.js.map +1 -0
  38. package/dist/theglobalfuel/components/MetricsCard.d.ts +23 -0
  39. package/dist/theglobalfuel/components/MetricsCard.d.ts.map +1 -0
  40. package/dist/theglobalfuel/components/MetricsCard.js +64 -0
  41. package/dist/theglobalfuel/components/MetricsCard.js.map +1 -0
  42. package/dist/theglobalfuel/components/MiniBar.d.ts +16 -0
  43. package/dist/theglobalfuel/components/MiniBar.d.ts.map +1 -0
  44. package/dist/theglobalfuel/components/MiniBar.js +22 -0
  45. package/dist/theglobalfuel/components/MiniBar.js.map +1 -0
  46. package/dist/theglobalfuel/components/PageLayout.d.ts +16 -0
  47. package/dist/theglobalfuel/components/PageLayout.d.ts.map +1 -0
  48. package/dist/theglobalfuel/components/PageLayout.js +38 -0
  49. package/dist/theglobalfuel/components/PageLayout.js.map +1 -0
  50. package/dist/theglobalfuel/components/Pagination.d.ts +22 -0
  51. package/dist/theglobalfuel/components/Pagination.d.ts.map +1 -0
  52. package/dist/theglobalfuel/components/Pagination.js +50 -0
  53. package/dist/theglobalfuel/components/Pagination.js.map +1 -0
  54. package/dist/theglobalfuel/components/StateViews.d.ts +24 -0
  55. package/dist/theglobalfuel/components/StateViews.d.ts.map +1 -0
  56. package/dist/theglobalfuel/components/StateViews.js +49 -0
  57. package/dist/theglobalfuel/components/StateViews.js.map +1 -0
  58. package/dist/theglobalfuel/components/StatusBadge.d.ts +9 -0
  59. package/dist/theglobalfuel/components/StatusBadge.d.ts.map +1 -0
  60. package/dist/theglobalfuel/components/StatusBadge.js +73 -0
  61. package/dist/theglobalfuel/components/StatusBadge.js.map +1 -0
  62. package/dist/theglobalfuel/components/Tabs.d.ts +17 -0
  63. package/dist/theglobalfuel/components/Tabs.d.ts.map +1 -0
  64. package/dist/theglobalfuel/components/Tabs.js +31 -0
  65. package/dist/theglobalfuel/components/Tabs.js.map +1 -0
  66. package/dist/theglobalfuel/components/TheDiscussion.d.ts +18 -0
  67. package/dist/theglobalfuel/components/TheDiscussion.d.ts.map +1 -0
  68. package/dist/theglobalfuel/components/TheDiscussion.js +109 -0
  69. package/dist/theglobalfuel/components/TheDiscussion.js.map +1 -0
  70. package/dist/theglobalfuel/components/TheTags.d.ts +17 -0
  71. package/dist/theglobalfuel/components/TheTags.d.ts.map +1 -0
  72. package/dist/theglobalfuel/components/TheTags.js +149 -0
  73. package/dist/theglobalfuel/components/TheTags.js.map +1 -0
  74. package/dist/theglobalfuel/components/index.d.ts +19 -0
  75. package/dist/theglobalfuel/components/index.d.ts.map +1 -0
  76. package/dist/theglobalfuel/components/index.js +14 -0
  77. package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts +16 -0
  78. package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts.map +1 -0
  79. package/dist/theglobalfuel/context/TheGlobalFuelContext.js +85 -0
  80. package/dist/theglobalfuel/context/TheGlobalFuelContext.js.map +1 -0
  81. package/dist/theglobalfuel/context/index.d.ts +6 -0
  82. package/dist/theglobalfuel/context/index.d.ts.map +1 -0
  83. package/dist/theglobalfuel/context/index.js +1 -0
  84. package/dist/theglobalfuel/hooks/index.d.ts +10 -0
  85. package/dist/theglobalfuel/hooks/index.d.ts.map +1 -0
  86. package/dist/theglobalfuel/hooks/index.js +5 -0
  87. package/dist/theglobalfuel/hooks/useCursorPager.d.ts +33 -0
  88. package/dist/theglobalfuel/hooks/useCursorPager.d.ts.map +1 -0
  89. package/dist/theglobalfuel/hooks/useCursorPager.js +25 -0
  90. package/dist/theglobalfuel/hooks/useCursorPager.js.map +1 -0
  91. package/dist/theglobalfuel/hooks/useTheComments.d.ts +36 -0
  92. package/dist/theglobalfuel/hooks/useTheComments.d.ts.map +1 -0
  93. package/dist/theglobalfuel/hooks/useTheComments.js +45 -0
  94. package/dist/theglobalfuel/hooks/useTheComments.js.map +1 -0
  95. package/dist/theglobalfuel/hooks/useTheFiles.d.ts +47 -0
  96. package/dist/theglobalfuel/hooks/useTheFiles.d.ts.map +1 -0
  97. package/dist/theglobalfuel/hooks/useTheFiles.js +81 -0
  98. package/dist/theglobalfuel/hooks/useTheFiles.js.map +1 -0
  99. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts +75 -0
  100. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts.map +1 -0
  101. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js +353 -0
  102. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js.map +1 -0
  103. package/dist/theglobalfuel/hooks/useTheTags.d.ts +44 -0
  104. package/dist/theglobalfuel/hooks/useTheTags.d.ts.map +1 -0
  105. package/dist/theglobalfuel/hooks/useTheTags.js +89 -0
  106. package/dist/theglobalfuel/hooks/useTheTags.js.map +1 -0
  107. package/dist/theglobalfuel/index.d.ts +9 -0
  108. package/dist/theglobalfuel/index.d.ts.map +1 -0
  109. package/dist/theglobalfuel/index.js +5 -2
  110. package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts +13 -0
  111. package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts.map +1 -0
  112. package/dist/theglobalfuel/pages/assets/AssetDetailPage.js +869 -0
  113. package/dist/theglobalfuel/pages/assets/AssetDetailPage.js.map +1 -0
  114. package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts +10 -0
  115. package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts.map +1 -0
  116. package/dist/theglobalfuel/pages/assets/AssetsPage.js +547 -0
  117. package/dist/theglobalfuel/pages/assets/AssetsPage.js.map +1 -0
  118. package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts +11 -0
  119. package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts.map +1 -0
  120. package/dist/theglobalfuel/pages/compliance/CompliancePage.js +511 -0
  121. package/dist/theglobalfuel/pages/compliance/CompliancePage.js.map +1 -0
  122. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts +9 -0
  123. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts.map +1 -0
  124. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js +878 -0
  125. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js.map +1 -0
  126. package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts +8 -0
  127. package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts.map +1 -0
  128. package/dist/theglobalfuel/pages/contracts/ContractsPage.js +588 -0
  129. package/dist/theglobalfuel/pages/contracts/ContractsPage.js.map +1 -0
  130. package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts +13 -0
  131. package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts.map +1 -0
  132. package/dist/theglobalfuel/pages/dashboard/DashboardPage.js +507 -0
  133. package/dist/theglobalfuel/pages/dashboard/DashboardPage.js.map +1 -0
  134. package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts +12 -0
  135. package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts.map +1 -0
  136. package/dist/theglobalfuel/pages/emissions/EmissionsPage.js +479 -0
  137. package/dist/theglobalfuel/pages/emissions/EmissionsPage.js.map +1 -0
  138. package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts +11 -0
  139. package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts.map +1 -0
  140. package/dist/theglobalfuel/pages/inventory/InventoryPage.js +592 -0
  141. package/dist/theglobalfuel/pages/inventory/InventoryPage.js.map +1 -0
  142. package/dist/theglobalfuel/pages/production/ProductionPage.d.ts +11 -0
  143. package/dist/theglobalfuel/pages/production/ProductionPage.d.ts.map +1 -0
  144. package/dist/theglobalfuel/pages/production/ProductionPage.js +421 -0
  145. package/dist/theglobalfuel/pages/production/ProductionPage.js.map +1 -0
  146. package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts +10 -0
  147. package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts.map +1 -0
  148. package/dist/theglobalfuel/pages/reserves/ReservesPage.js +439 -0
  149. package/dist/theglobalfuel/pages/reserves/ReservesPage.js.map +1 -0
  150. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts +10 -0
  151. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts.map +1 -0
  152. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js +550 -0
  153. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js.map +1 -0
  154. package/dist/theglobalfuel/types/index.d.ts +376 -0
  155. package/dist/theglobalfuel/types/index.d.ts.map +1 -0
  156. package/dist/theglobalfuel/utils/cn.d.ts +4 -0
  157. package/dist/theglobalfuel/utils/cn.d.ts.map +1 -0
  158. package/dist/theglobalfuel/utils/cn.js +2 -2
  159. package/dist/theglobalfuel/utils/formatters.d.ts +36 -0
  160. package/dist/theglobalfuel/utils/formatters.d.ts.map +1 -0
  161. package/dist/theglobalfuel/utils/formatters.js +94 -0
  162. package/dist/theglobalfuel/utils/formatters.js.map +1 -0
  163. package/dist/theglobalfuel/utils/i18n.d.ts +6 -0
  164. package/dist/theglobalfuel/utils/i18n.d.ts.map +1 -0
  165. package/dist/theglobalfuel/utils/index.d.ts +9 -0
  166. package/dist/theglobalfuel/utils/index.d.ts.map +1 -0
  167. package/dist/theglobalfuel/utils/navigation.d.ts +14 -0
  168. package/dist/theglobalfuel/utils/navigation.d.ts.map +1 -0
  169. package/dist/theglobalfuel/utils/navigation.js +2 -1
  170. package/dist/theglobalfuel/utils/navigation.js.map +1 -1
  171. package/package.json +3 -3
  172. package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
  173. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
  174. package/dist/theglobalfuel/pages/AiIntelligencePage.js +0 -190
  175. package/dist/theglobalfuel/pages/AiIntelligencePage.js.map +0 -1
  176. package/dist/theglobalfuel/pages/AnalyticsPage.js +0 -241
  177. package/dist/theglobalfuel/pages/AnalyticsPage.js.map +0 -1
  178. package/dist/theglobalfuel/pages/CompliancePage.js +0 -173
  179. package/dist/theglobalfuel/pages/CompliancePage.js.map +0 -1
  180. package/dist/theglobalfuel/pages/DashboardPage.js +0 -145
  181. package/dist/theglobalfuel/pages/DashboardPage.js.map +0 -1
  182. package/dist/theglobalfuel/pages/FinancialPage.js +0 -204
  183. package/dist/theglobalfuel/pages/FinancialPage.js.map +0 -1
  184. package/dist/theglobalfuel/pages/FleetManagementPage.js +0 -244
  185. package/dist/theglobalfuel/pages/FleetManagementPage.js.map +0 -1
  186. package/dist/theglobalfuel/pages/MarketplacePage.js +0 -260
  187. package/dist/theglobalfuel/pages/MarketplacePage.js.map +0 -1
  188. package/dist/theglobalfuel/pages/OperationsPage.js +0 -190
  189. package/dist/theglobalfuel/pages/OperationsPage.js.map +0 -1
  190. package/dist/theglobalfuel/pages/QualityControlPage.js +0 -215
  191. package/dist/theglobalfuel/pages/QualityControlPage.js.map +0 -1
  192. package/dist/theglobalfuel/pages/ReportsPage.js +0 -247
  193. package/dist/theglobalfuel/pages/ReportsPage.js.map +0 -1
  194. package/dist/theglobalfuel/pages/ResourcesPage.js +0 -225
  195. package/dist/theglobalfuel/pages/ResourcesPage.js.map +0 -1
  196. package/dist/theglobalfuel/pages/RiskManagementPage.js +0 -230
  197. package/dist/theglobalfuel/pages/RiskManagementPage.js.map +0 -1
  198. package/dist/theglobalfuel/pages/SupplyChainPage.js +0 -214
  199. package/dist/theglobalfuel/pages/SupplyChainPage.js.map +0 -1
  200. package/dist/theglobalfuel/pages/SustainabilityPage.js +0 -261
  201. package/dist/theglobalfuel/pages/SustainabilityPage.js.map +0 -1
  202. package/dist/theglobalfuel/pages/TrainingPage.js +0 -253
  203. package/dist/theglobalfuel/pages/TrainingPage.js.map +0 -1
  204. package/dist/theglobalfuel/providers/TheGlobalFuelProvider.js +0 -27
  205. package/dist/theglobalfuel/providers/TheGlobalFuelProvider.js.map +0 -1
  206. package/dist/theglobalfuel/store/theglobalfuelStore.js +0 -712
  207. package/dist/theglobalfuel/store/theglobalfuelStore.js.map +0 -1
  208. package/dist/theglobalfuel/utils/i18n.js +0 -15
  209. package/dist/theglobalfuel/utils/i18n.js.map +0 -1
@@ -1,175 +1,123 @@
1
- import { TheGlobalFuelProvider as e } from "./providers/TheGlobalFuelProvider.js";
2
- import { tWithFallback as t } from "./utils/i18n.js";
1
+ import { joinPath as e } from "./utils/navigation.js";
2
+ import { TheGlobalFuelProvider as t } from "./context/TheGlobalFuelContext.js";
3
3
  import { TheGlobalFuelRoutes as n } from "./TheGlobalFuelRoutes.js";
4
- import { joinPath as r } from "./utils/navigation.js";
5
- import { useCallback as i, useEffect as a } from "react";
6
- import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
7
- import { AlertTriangle as s, BarChart3 as c, Brain as l, DollarSign as u, Factory as d, FileBarChart as f, FlaskConical as p, Fuel as m, GitBranch as h, GraduationCap as g, Home as _, LayoutDashboard as v, Leaf as y, LogIn as b, Package as x, Settings as S, Shield as C, Store as w, Truck as T } from "lucide-react";
8
- import { jsx as E } from "react/jsx-runtime";
9
- import { FeatureFlagProvider as D } from "@burdenoff/fe-libs/shared/feature-flags";
4
+ import { useCallback as r, useEffect as i } from "react";
5
+ import { QueryClient as a, QueryClientProvider as o } from "@tanstack/react-query";
6
+ import { FeatureFlagProvider as s } from "@burdenoff/fe-libs/shared/feature-flags";
7
+ import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
+ import { Boxes as l, Factory as u, FileText as d, Gauge as f, Layers as p, LayoutDashboard as m, Leaf as h, ShieldCheck as g, Truck as _ } from "lucide-react";
9
+ import { jsx as v } from "react/jsx-runtime";
10
10
  //#region src/theglobalfuel/TheGlobalFuelRoot.tsx
11
- var O = (O) => {
12
- let { registerNavItems: k, registerFooterItems: A, basePath: j = "/" } = O, { t: M } = o(), N = i((e, n) => t(M, e, n), [M]);
13
- return a(() => {
14
- if (k) return k({
15
- id: "theglobalfuel",
16
- label: N("theglobalfuel.nav.product", "TheGlobalFuel"),
17
- path: j,
18
- icon: /* @__PURE__ */ E(m, { size: 20 }),
19
- order: 80,
20
- group: "products",
21
- children: [
22
- {
23
- id: "theglobalfuel-dashboard",
24
- label: N("theglobalfuel.nav.dashboard", "Dashboard"),
25
- path: j,
26
- icon: /* @__PURE__ */ E(v, { size: 16 }),
27
- order: 0
28
- },
29
- {
30
- id: "theglobalfuel-home",
31
- label: N("theglobalfuel.nav.home", "Home"),
32
- path: r(j, "home"),
33
- icon: /* @__PURE__ */ E(_, { size: 16 }),
34
- order: 1
35
- },
36
- {
37
- id: "theglobalfuel-operations",
38
- label: N("theglobalfuel.nav.operations", "Operations"),
39
- path: r(j, "operations"),
40
- icon: /* @__PURE__ */ E(d, { size: 16 }),
41
- order: 2
42
- },
43
- {
44
- id: "theglobalfuel-fleet-management",
45
- label: N("theglobalfuel.nav.fleetManagement", "Fleet Management"),
46
- path: r(j, "fleet-management"),
47
- icon: /* @__PURE__ */ E(T, { size: 16 }),
48
- order: 3
49
- },
50
- {
51
- id: "theglobalfuel-supply-chain",
52
- label: N("theglobalfuel.nav.supplyChain", "Supply Chain"),
53
- path: r(j, "supply-chain"),
54
- icon: /* @__PURE__ */ E(h, { size: 16 }),
55
- order: 4
56
- },
57
- {
58
- id: "theglobalfuel-sustainability",
59
- label: N("theglobalfuel.nav.sustainability", "Sustainability"),
60
- path: r(j, "sustainability"),
61
- icon: /* @__PURE__ */ E(y, { size: 16 }),
62
- order: 5
63
- },
64
- {
65
- id: "theglobalfuel-compliance",
66
- label: N("theglobalfuel.nav.compliance", "Compliance"),
67
- path: r(j, "compliance"),
68
- icon: /* @__PURE__ */ E(C, { size: 16 }),
69
- order: 6
70
- },
71
- {
72
- id: "theglobalfuel-risk-management",
73
- label: N("theglobalfuel.nav.riskManagement", "Risk Management"),
74
- path: r(j, "risk-management"),
75
- icon: /* @__PURE__ */ E(s, { size: 16 }),
76
- order: 7
77
- },
78
- {
79
- id: "theglobalfuel-quality-control",
80
- label: N("theglobalfuel.nav.qualityControl", "Quality Control"),
81
- path: r(j, "quality-control"),
82
- icon: /* @__PURE__ */ E(p, { size: 16 }),
83
- order: 8
84
- },
85
- {
86
- id: "theglobalfuel-financial",
87
- label: N("theglobalfuel.nav.financial", "Financial"),
88
- path: r(j, "financial"),
89
- icon: /* @__PURE__ */ E(u, { size: 16 }),
90
- order: 9
91
- },
92
- {
93
- id: "theglobalfuel-training",
94
- label: N("theglobalfuel.nav.training", "Training"),
95
- path: r(j, "training"),
96
- icon: /* @__PURE__ */ E(g, { size: 16 }),
97
- order: 10
98
- },
99
- {
100
- id: "theglobalfuel-ai-intelligence",
101
- label: N("theglobalfuel.nav.aiIntelligence", "AI Intelligence"),
102
- path: r(j, "ai-intelligence"),
103
- icon: /* @__PURE__ */ E(l, { size: 16 }),
104
- order: 11
105
- },
106
- {
107
- id: "theglobalfuel-marketplace",
108
- label: N("theglobalfuel.nav.marketplace", "Marketplace"),
109
- path: r(j, "marketplace"),
110
- icon: /* @__PURE__ */ E(w, { size: 16 }),
111
- order: 12
112
- },
113
- {
114
- id: "theglobalfuel-analytics",
115
- label: N("theglobalfuel.nav.analytics", "Analytics"),
116
- path: r(j, "analytics"),
117
- icon: /* @__PURE__ */ E(c, { size: 16 }),
118
- order: 13
119
- },
120
- {
121
- id: "theglobalfuel-reports",
122
- label: N("theglobalfuel.nav.reports", "Reports"),
123
- path: r(j, "reports"),
124
- icon: /* @__PURE__ */ E(f, { size: 16 }),
125
- order: 14
126
- },
127
- {
128
- id: "theglobalfuel-resources",
129
- label: N("theglobalfuel.nav.resources", "Resources"),
130
- path: r(j, "resources"),
131
- icon: /* @__PURE__ */ E(x, { size: 16 }),
132
- order: 15
133
- },
134
- {
135
- id: "theglobalfuel-settings",
136
- label: N("theglobalfuel.nav.settings", "Settings"),
137
- path: r(j, "settings"),
138
- icon: /* @__PURE__ */ E(S, { size: 16 }),
139
- order: 16
140
- },
141
- {
142
- id: "theglobalfuel-login",
143
- label: N("theglobalfuel.nav.login", "Login"),
144
- path: r(j, "login"),
145
- icon: /* @__PURE__ */ E(b, { size: 16 }),
146
- order: 17
147
- }
148
- ]
149
- });
11
+ var y = new a({ defaultOptions: { queries: {
12
+ staleTime: 300 * 1e3,
13
+ retry: 1,
14
+ refetchOnWindowFocus: !1
15
+ } } }), b = (a) => {
16
+ let { registerNavItems: b, registerFooterItems: x, basePath: S = "/" } = a, { t: C } = c(), w = r((e, t) => {
17
+ let n = C(e);
18
+ return n === e ? t : n;
19
+ }, [C]);
20
+ return i(() => {
21
+ if (b) return b([
22
+ {
23
+ id: "theglobalfuel-dashboard",
24
+ label: w("theglobalfuel.nav.dashboard", "Dashboard"),
25
+ path: e(S, ""),
26
+ icon: /* @__PURE__ */ v(m, { size: 20 }),
27
+ order: 0,
28
+ group: "products"
29
+ },
30
+ {
31
+ id: "theglobalfuel-assets",
32
+ label: w("theglobalfuel.nav.assets", "Assets"),
33
+ path: e(S, "assets"),
34
+ icon: /* @__PURE__ */ v(u, { size: 20 }),
35
+ order: 1,
36
+ group: "products"
37
+ },
38
+ {
39
+ id: "theglobalfuel-production",
40
+ label: w("theglobalfuel.nav.production", "Production"),
41
+ path: e(S, "production"),
42
+ icon: /* @__PURE__ */ v(f, { size: 20 }),
43
+ order: 2,
44
+ group: "products"
45
+ },
46
+ {
47
+ id: "theglobalfuel-reserves",
48
+ label: w("theglobalfuel.nav.reserves", "Reserves"),
49
+ path: e(S, "reserves"),
50
+ icon: /* @__PURE__ */ v(p, { size: 20 }),
51
+ order: 3,
52
+ group: "products"
53
+ },
54
+ {
55
+ id: "theglobalfuel-contracts",
56
+ label: w("theglobalfuel.nav.contracts", "Offtake Contracts"),
57
+ path: e(S, "contracts"),
58
+ icon: /* @__PURE__ */ v(d, { size: 20 }),
59
+ order: 4,
60
+ group: "products"
61
+ },
62
+ {
63
+ id: "theglobalfuel-shipments",
64
+ label: w("theglobalfuel.nav.shipments", "Shipments"),
65
+ path: e(S, "shipments"),
66
+ icon: /* @__PURE__ */ v(_, { size: 20 }),
67
+ order: 5,
68
+ group: "products"
69
+ },
70
+ {
71
+ id: "theglobalfuel-inventory",
72
+ label: w("theglobalfuel.nav.inventory", "Inventory"),
73
+ path: e(S, "inventory"),
74
+ icon: /* @__PURE__ */ v(l, { size: 20 }),
75
+ order: 6,
76
+ group: "products"
77
+ },
78
+ {
79
+ id: "theglobalfuel-emissions",
80
+ label: w("theglobalfuel.nav.emissions", "Emissions"),
81
+ path: e(S, "emissions"),
82
+ icon: /* @__PURE__ */ v(h, { size: 20 }),
83
+ order: 7,
84
+ group: "products"
85
+ },
86
+ {
87
+ id: "theglobalfuel-compliance",
88
+ label: w("theglobalfuel.nav.compliance", "Compliance"),
89
+ path: e(S, "compliance"),
90
+ icon: /* @__PURE__ */ v(g, { size: 20 }),
91
+ order: 8,
92
+ group: "products"
93
+ }
94
+ ]);
150
95
  }, [
151
- k,
152
- j,
153
- N
154
- ]), a(() => {
155
- if (A) return A([{
96
+ b,
97
+ S,
98
+ w
99
+ ]), i(() => {
100
+ if (x) return x([{
156
101
  id: "theglobalfuel-status",
157
- label: N("theglobalfuel.footer.ready", "TheGlobalFuel Ready"),
102
+ label: w("theglobalfuel.footer.ready", "TheGlobalFuel Ready"),
158
103
  type: "status",
159
104
  section: "left",
160
105
  order: 10
161
106
  }]);
162
- }, [A, N]), /* @__PURE__ */ E(D, {
163
- workspaceId: null,
164
- gateway: "global",
165
- defaultEnabled: !0,
166
- children: /* @__PURE__ */ E(e, {
167
- ...O,
168
- children: /* @__PURE__ */ E(n, {})
107
+ }, [x, w]), /* @__PURE__ */ v(o, {
108
+ client: y,
109
+ children: /* @__PURE__ */ v(s, {
110
+ workspaceId: null,
111
+ gateway: "global",
112
+ defaultEnabled: !0,
113
+ children: /* @__PURE__ */ v(t, {
114
+ ...a,
115
+ children: /* @__PURE__ */ v(n, {})
116
+ })
169
117
  })
170
118
  });
171
119
  };
172
120
  //#endregion
173
- export { O as TheGlobalFuelRoot };
121
+ export { b as TheGlobalFuelRoot };
174
122
 
175
123
  //# sourceMappingURL=TheGlobalFuelRoot.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TheGlobalFuelRoot.js","names":[],"sources":["../../src/theglobalfuel/TheGlobalFuelRoot.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n LayoutDashboard,\n Home,\n LogIn,\n Settings,\n Brain,\n BarChart3,\n Shield,\n DollarSign,\n Truck,\n Store,\n Factory,\n FlaskConical,\n FileBarChart,\n Package,\n AlertTriangle,\n GitBranch,\n Leaf,\n GraduationCap,\n Fuel,\n} from 'lucide-react';\nimport { TheGlobalFuelProvider } from './providers/TheGlobalFuelProvider';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport type { NavItem, TheGlobalFuelRootProps } from './types';\nimport { TheGlobalFuelRoutes } from './TheGlobalFuelRoutes';\nimport { tWithFallback } from './utils/i18n';\nimport { joinPath } from './utils/navigation';\n\nexport const TheGlobalFuelRoot: FC<TheGlobalFuelRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t } = useI18n();\n const tr = useCallback(\n (key: string, fallback: string): string => tWithFallback(t, key, fallback),\n [t]\n );\n\n useEffect(() => {\n if (!registerNavItems) return;\n const navItem: NavItem = {\n id: 'theglobalfuel',\n label: tr('theglobalfuel.nav.product', 'TheGlobalFuel'),\n path: basePath,\n icon: <Fuel size={20} />,\n order: 80,\n group: 'products',\n children: [\n {\n id: 'theglobalfuel-dashboard',\n label: tr('theglobalfuel.nav.dashboard', 'Dashboard'),\n path: basePath,\n icon: <LayoutDashboard size={16} />,\n order: 0,\n },\n {\n id: 'theglobalfuel-home',\n label: tr('theglobalfuel.nav.home', 'Home'),\n path: joinPath(basePath, 'home'),\n icon: <Home size={16} />,\n order: 1,\n },\n {\n id: 'theglobalfuel-operations',\n label: tr('theglobalfuel.nav.operations', 'Operations'),\n path: joinPath(basePath, 'operations'),\n icon: <Factory size={16} />,\n order: 2,\n },\n {\n id: 'theglobalfuel-fleet-management',\n label: tr('theglobalfuel.nav.fleetManagement', 'Fleet Management'),\n path: joinPath(basePath, 'fleet-management'),\n icon: <Truck size={16} />,\n order: 3,\n },\n {\n id: 'theglobalfuel-supply-chain',\n label: tr('theglobalfuel.nav.supplyChain', 'Supply Chain'),\n path: joinPath(basePath, 'supply-chain'),\n icon: <GitBranch size={16} />,\n order: 4,\n },\n {\n id: 'theglobalfuel-sustainability',\n label: tr('theglobalfuel.nav.sustainability', 'Sustainability'),\n path: joinPath(basePath, 'sustainability'),\n icon: <Leaf size={16} />,\n order: 5,\n },\n {\n id: 'theglobalfuel-compliance',\n label: tr('theglobalfuel.nav.compliance', 'Compliance'),\n path: joinPath(basePath, 'compliance'),\n icon: <Shield size={16} />,\n order: 6,\n },\n {\n id: 'theglobalfuel-risk-management',\n label: tr('theglobalfuel.nav.riskManagement', 'Risk Management'),\n path: joinPath(basePath, 'risk-management'),\n icon: <AlertTriangle size={16} />,\n order: 7,\n },\n {\n id: 'theglobalfuel-quality-control',\n label: tr('theglobalfuel.nav.qualityControl', 'Quality Control'),\n path: joinPath(basePath, 'quality-control'),\n icon: <FlaskConical size={16} />,\n order: 8,\n },\n {\n id: 'theglobalfuel-financial',\n label: tr('theglobalfuel.nav.financial', 'Financial'),\n path: joinPath(basePath, 'financial'),\n icon: <DollarSign size={16} />,\n order: 9,\n },\n {\n id: 'theglobalfuel-training',\n label: tr('theglobalfuel.nav.training', 'Training'),\n path: joinPath(basePath, 'training'),\n icon: <GraduationCap size={16} />,\n order: 10,\n },\n {\n id: 'theglobalfuel-ai-intelligence',\n label: tr('theglobalfuel.nav.aiIntelligence', 'AI Intelligence'),\n path: joinPath(basePath, 'ai-intelligence'),\n icon: <Brain size={16} />,\n order: 11,\n },\n {\n id: 'theglobalfuel-marketplace',\n label: tr('theglobalfuel.nav.marketplace', 'Marketplace'),\n path: joinPath(basePath, 'marketplace'),\n icon: <Store size={16} />,\n order: 12,\n },\n {\n id: 'theglobalfuel-analytics',\n label: tr('theglobalfuel.nav.analytics', 'Analytics'),\n path: joinPath(basePath, 'analytics'),\n icon: <BarChart3 size={16} />,\n order: 13,\n },\n {\n id: 'theglobalfuel-reports',\n label: tr('theglobalfuel.nav.reports', 'Reports'),\n path: joinPath(basePath, 'reports'),\n icon: <FileBarChart size={16} />,\n order: 14,\n },\n {\n id: 'theglobalfuel-resources',\n label: tr('theglobalfuel.nav.resources', 'Resources'),\n path: joinPath(basePath, 'resources'),\n icon: <Package size={16} />,\n order: 15,\n },\n {\n id: 'theglobalfuel-settings',\n label: tr('theglobalfuel.nav.settings', 'Settings'),\n path: joinPath(basePath, 'settings'),\n icon: <Settings size={16} />,\n order: 16,\n },\n {\n id: 'theglobalfuel-login',\n label: tr('theglobalfuel.nav.login', 'Login'),\n path: joinPath(basePath, 'login'),\n icon: <LogIn size={16} />,\n order: 17,\n },\n ],\n };\n return registerNavItems(navItem);\n }, [registerNavItems, basePath, tr]);\n\n useEffect(() => {\n if (!registerFooterItems) return;\n return registerFooterItems([\n {\n id: 'theglobalfuel-status',\n label: tr('theglobalfuel.footer.ready', 'TheGlobalFuel Ready'),\n type: 'status',\n section: 'left',\n order: 10,\n },\n ]);\n }, [registerFooterItems, tr]);\n\n return (\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <TheGlobalFuelProvider {...props}>\n <TheGlobalFuelRoutes />\n </TheGlobalFuelProvider>\n </FeatureFlagProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AA+BA,IAAa,KAAiD,MAAU;CACtE,IAAM,EAAE,qBAAkB,wBAAqB,cAAW,QAAQ,GAC5D,EAAE,SAAM,GAAS,EACjB,IAAK,GACR,GAAa,MAA6B,EAAc,GAAG,GAAK,EAAS,EAC1E,CAAC,EAAE,CACJ;AA4JD,QA1JA,QAAgB;AACT,QAyIL,QAAO,EAxIkB;GACvB,IAAI;GACJ,OAAO,EAAG,6BAA6B,gBAAgB;GACvD,MAAM;GACN,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;GACxB,OAAO;GACP,OAAO;GACP,UAAU;IACR;KACE,IAAI;KACJ,OAAO,EAAG,+BAA+B,YAAY;KACrD,MAAM;KACN,MAAM,kBAAC,GAAD,EAAiB,MAAM,IAAM,CAAA;KACnC,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,0BAA0B,OAAO;KAC3C,MAAM,EAAS,GAAU,OAAO;KAChC,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;KACxB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,gCAAgC,aAAa;KACvD,MAAM,EAAS,GAAU,aAAa;KACtC,MAAM,kBAAC,GAAD,EAAS,MAAM,IAAM,CAAA;KAC3B,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,qCAAqC,mBAAmB;KAClE,MAAM,EAAS,GAAU,mBAAmB;KAC5C,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,iCAAiC,eAAe;KAC1D,MAAM,EAAS,GAAU,eAAe;KACxC,MAAM,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;KAC7B,OAAO;KACR;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KACrD,MAAM,EAAS,GAAU,YAAY;KACrC,MAAM,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;KAC7B,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,6BAA6B,UAAU;KACjD,MAAM,EAAS,GAAU,UAAU;KACnC,MAAM,kBAAC,GAAD,EAAc,MAAM,IAAM,CAAA;KAChC,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,+BAA+B,YAAY;KACrD,MAAM,EAAS,GAAU,YAAY;KACrC,MAAM,kBAAC,GAAD,EAAS,MAAM,IAAM,CAAA;KAC3B,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,8BAA8B,WAAW;KACnD,MAAM,EAAS,GAAU,WAAW;KACpC,MAAM,kBAAC,GAAD,EAAU,MAAM,IAAM,CAAA;KAC5B,OAAO;KACR;IACD;KACE,IAAI;KACJ,OAAO,EAAG,2BAA2B,QAAQ;KAC7C,MAAM,EAAS,GAAU,QAAQ;KACjC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;KACzB,OAAO;KACR;IACF;GACF,CAC+B;IAC/B;EAAC;EAAkB;EAAU;EAAG,CAAC,EAEpC,QAAgB;AACT,QACL,QAAO,EAAoB,CACzB;GACE,IAAI;GACJ,OAAO,EAAG,8BAA8B,sBAAsB;GAC9D,MAAM;GACN,SAAS;GACT,OAAO;GACR,CACF,CAAC;IACD,CAAC,GAAqB,EAAG,CAAC,EAG3B,kBAAC,GAAD;EAAqB,aAAa;EAAM,SAAQ;EAAS,gBAAgB;YACvE,kBAAC,GAAD;GAAuB,GAAI;aACzB,kBAAC,GAAD,EAAuB,CAAA;GACD,CAAA;EACJ,CAAA"}
1
+ {"version":3,"file":"TheGlobalFuelRoot.js","names":[],"sources":["../../src/theglobalfuel/TheGlobalFuelRoot.tsx"],"sourcesContent":["/**\n * TheGlobalFuel Root Component\n * @module theglobalfuel\n *\n * Host-contract entry point. Registers the product's sidebar nav (nine sections\n * that map 1:1 to the wspace-theglobalfuel-svc `the*` backend) and mounts the\n * routed pages inside the shared QueryClient + FeatureFlag providers.\n */\n\nimport type { FC } from 'react';\nimport { useCallback, useEffect } from 'react';\nimport { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport { FeatureFlagProvider } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n LayoutDashboard,\n Factory,\n Gauge,\n Layers,\n FileText,\n Truck,\n Boxes,\n Leaf,\n ShieldCheck,\n} from 'lucide-react';\nimport { TheGlobalFuelProvider } from './context/TheGlobalFuelContext';\nimport { TheGlobalFuelRoutes } from './TheGlobalFuelRoutes';\nimport { joinPath } from './utils/navigation';\nimport type { TheGlobalFuelRootProps, NavItem } from './types';\n\nconst queryClient = new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 5 * 60 * 1000,\n retry: 1,\n refetchOnWindowFocus: false,\n },\n },\n});\n\nexport const TheGlobalFuelRoot: FC<TheGlobalFuelRootProps> = (props) => {\n const { registerNavItems, registerFooterItems, basePath = '/' } = props;\n const { t: translate } = useI18n();\n const t = useCallback(\n (key: string, fallback: string): string => {\n const value = translate(key);\n return value === key ? fallback : value;\n },\n [translate]\n );\n\n // Register navigation items with the shell on mount. Ids/paths/orders match\n // the app-shell static NavRegistration block so the two are a single,\n // consistent source of truth.\n useEffect(() => {\n if (!registerNavItems) return;\n\n const navItems: NavItem[] = [\n {\n id: 'theglobalfuel-dashboard',\n label: t('theglobalfuel.nav.dashboard', 'Dashboard'),\n path: joinPath(basePath, ''),\n icon: <LayoutDashboard size={20} />,\n order: 0,\n group: 'products',\n },\n {\n id: 'theglobalfuel-assets',\n label: t('theglobalfuel.nav.assets', 'Assets'),\n path: joinPath(basePath, 'assets'),\n icon: <Factory size={20} />,\n order: 1,\n group: 'products',\n },\n {\n id: 'theglobalfuel-production',\n label: t('theglobalfuel.nav.production', 'Production'),\n path: joinPath(basePath, 'production'),\n icon: <Gauge size={20} />,\n order: 2,\n group: 'products',\n },\n {\n id: 'theglobalfuel-reserves',\n label: t('theglobalfuel.nav.reserves', 'Reserves'),\n path: joinPath(basePath, 'reserves'),\n icon: <Layers size={20} />,\n order: 3,\n group: 'products',\n },\n {\n id: 'theglobalfuel-contracts',\n label: t('theglobalfuel.nav.contracts', 'Offtake Contracts'),\n path: joinPath(basePath, 'contracts'),\n icon: <FileText size={20} />,\n order: 4,\n group: 'products',\n },\n {\n id: 'theglobalfuel-shipments',\n label: t('theglobalfuel.nav.shipments', 'Shipments'),\n path: joinPath(basePath, 'shipments'),\n icon: <Truck size={20} />,\n order: 5,\n group: 'products',\n },\n {\n id: 'theglobalfuel-inventory',\n label: t('theglobalfuel.nav.inventory', 'Inventory'),\n path: joinPath(basePath, 'inventory'),\n icon: <Boxes size={20} />,\n order: 6,\n group: 'products',\n },\n {\n id: 'theglobalfuel-emissions',\n label: t('theglobalfuel.nav.emissions', 'Emissions'),\n path: joinPath(basePath, 'emissions'),\n icon: <Leaf size={20} />,\n order: 7,\n group: 'products',\n },\n {\n id: 'theglobalfuel-compliance',\n label: t('theglobalfuel.nav.compliance', 'Compliance'),\n path: joinPath(basePath, 'compliance'),\n icon: <ShieldCheck size={20} />,\n order: 8,\n group: 'products',\n },\n ];\n\n return registerNavItems(navItems);\n }, [registerNavItems, basePath, t]);\n\n useEffect(() => {\n if (!registerFooterItems) return;\n return registerFooterItems([\n {\n id: 'theglobalfuel-status',\n label: t('theglobalfuel.footer.ready', 'TheGlobalFuel Ready'),\n type: 'status',\n section: 'left',\n order: 10,\n },\n ]);\n }, [registerFooterItems, t]);\n\n return (\n <QueryClientProvider client={queryClient}>\n <FeatureFlagProvider workspaceId={null} gateway=\"global\" defaultEnabled={true}>\n <TheGlobalFuelProvider {...props}>\n <TheGlobalFuelRoutes />\n </TheGlobalFuelProvider>\n </FeatureFlagProvider>\n </QueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AA8BA,IAAM,IAAc,I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Y;IACrC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;IACzB,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAE,+BAA+B,YAAY;IACpD,MAAM,EAAS,GAAU,YAAY;IACrC,MAAM,kBAAC,GAAD,EAAO,MAAM,IAAM,CAAA;IACzB,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAE,+BAA+B,YAAY;IACpD,MAAM,EAAS,GAAU,YAAY;IACrC,MAAM,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA;IACxB,OAAO;IACP,OAAO;IACR;GACD;IACE,IAAI;IACJ,OAAO,EAAE,gCAAgC,aAAa;IACtD,MAAM,EAAS,GAAU,aAAa;IACtC,MAAM,kBAAC,GAAD,EAAa,MAAM,IAAM,CAAA;IAC/B,OAAO;IACP,OAAO;IACR;GACF,CAEgC;IAChC;EAAC;EAAkB;EAAU;EAAE,CAAC,EAEnC,QAAgB;AACT,QACL,QAAO,EAAoB,CACzB;GACE,IAAI;GACJ,OAAO,EAAE,8BAA8B,sBAAsB;GAC7D,MAAM;GACN,SAAS;GACT,OAAO;GACR,CACF,CAAC;IACD,CAAC,GAAqB,EAAE,CAAC,EAG1B,kBAAC,GAAD;EAAqB,QAAQ;YAC3B,kBAAC,GAAD;GAAqB,aAAa;GAAM,SAAQ;GAAS,gBAAgB;aACvE,kBAAC,GAAD;IAAuB,GAAI;cACzB,kBAAC,GAAD,EAAuB,CAAA;IACD,CAAA;GACJ,CAAA;EACF,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+
3
+ export declare const TheGlobalFuelRoutes: FC;
4
+ //# sourceMappingURL=TheGlobalFuelRoutes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TheGlobalFuelRoutes.d.ts","sourceRoot":"","sources":["../../src/theglobalfuel/TheGlobalFuelRoutes.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,EAAE,EAAkB,MAAM,OAAO,CAAC;AAkDhD,eAAO,MAAM,mBAAmB,EAAE,EA6CjC,CAAC"}
@@ -1,91 +1,76 @@
1
- import { DashboardPage as e } from "./pages/DashboardPage.js";
2
- import { Suspense as t, lazy as n } from "react";
3
- import { Loader2 as r } from "lucide-react";
4
- import { Navigate as i, Route as a, Routes as o } from "react-router-dom";
5
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
1
+ import { useTheGlobalFuel as e } from "./context/TheGlobalFuelContext.js";
2
+ import { DashboardPage as t } from "./pages/dashboard/DashboardPage.js";
3
+ import { Suspense as n, lazy as r } from "react";
4
+ import { Navigate as i, Route as a, Routes as o, useLocation as s } from "react-router-dom";
5
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
+ import { Spinner as u } from "@burdenoff/fe-libs/ui";
6
7
  //#region src/theglobalfuel/TheGlobalFuelRoutes.tsx
7
- var l = n(() => import("./pages/AnalyticsPage.js").then((e) => ({ default: e.AnalyticsPage }))), u = n(() => import("./pages/CompliancePage.js").then((e) => ({ default: e.CompliancePage }))), d = n(() => import("./pages/AiIntelligencePage.js").then((e) => ({ default: e.AiIntelligencePage }))), f = n(() => import("./pages/FinancialPage.js").then((e) => ({ default: e.FinancialPage }))), p = n(() => import("./pages/FleetManagementPage.js").then((e) => ({ default: e.FleetManagementPage }))), m = n(() => import("./pages/MarketplacePage.js").then((e) => ({ default: e.MarketplacePage }))), h = n(() => import("./pages/OperationsPage.js").then((e) => ({ default: e.OperationsPage }))), g = n(() => import("./pages/QualityControlPage.js").then((e) => ({ default: e.QualityControlPage }))), _ = n(() => import("./pages/ReportsPage.js").then((e) => ({ default: e.ReportsPage }))), v = n(() => import("./pages/ResourcesPage.js").then((e) => ({ default: e.ResourcesPage }))), y = n(() => import("./pages/RiskManagementPage.js").then((e) => ({ default: e.RiskManagementPage }))), b = n(() => import("./pages/SupplyChainPage.js").then((e) => ({ default: e.SupplyChainPage }))), x = n(() => import("./pages/SustainabilityPage.js").then((e) => ({ default: e.SustainabilityPage }))), S = n(() => import("./pages/TrainingPage.js").then((e) => ({ default: e.TrainingPage })));
8
- function C() {
9
- return /* @__PURE__ */ s("div", {
10
- className: "flex min-h-[320px] items-center justify-center",
11
- children: /* @__PURE__ */ s(r, { className: "h-8 w-8 animate-spin text-primary" })
12
- });
13
- }
14
- function w() {
15
- return /* @__PURE__ */ s(t, {
16
- fallback: /* @__PURE__ */ s(C, {}),
17
- children: /* @__PURE__ */ c(o, { children: [
18
- /* @__PURE__ */ s(a, {
19
- index: !0,
20
- element: /* @__PURE__ */ s(e, {})
21
- }),
22
- /* @__PURE__ */ s(a, {
23
- path: "analytics",
24
- element: /* @__PURE__ */ s(l, {})
25
- }),
26
- /* @__PURE__ */ s(a, {
27
- path: "compliance",
28
- element: /* @__PURE__ */ s(u, {})
29
- }),
30
- /* @__PURE__ */ s(a, {
31
- path: "ai-intelligence",
32
- element: /* @__PURE__ */ s(d, {})
33
- }),
34
- /* @__PURE__ */ s(a, {
35
- path: "financial",
36
- element: /* @__PURE__ */ s(f, {})
37
- }),
38
- /* @__PURE__ */ s(a, {
39
- path: "fleet-management",
40
- element: /* @__PURE__ */ s(p, {})
41
- }),
42
- /* @__PURE__ */ s(a, {
43
- path: "marketplace",
44
- element: /* @__PURE__ */ s(m, {})
45
- }),
46
- /* @__PURE__ */ s(a, {
47
- path: "operations",
48
- element: /* @__PURE__ */ s(h, {})
49
- }),
50
- /* @__PURE__ */ s(a, {
51
- path: "quality-control",
52
- element: /* @__PURE__ */ s(g, {})
53
- }),
54
- /* @__PURE__ */ s(a, {
55
- path: "reports",
56
- element: /* @__PURE__ */ s(_, {})
57
- }),
58
- /* @__PURE__ */ s(a, {
59
- path: "resources",
60
- element: /* @__PURE__ */ s(v, {})
61
- }),
62
- /* @__PURE__ */ s(a, {
63
- path: "risk-management",
64
- element: /* @__PURE__ */ s(y, {})
65
- }),
66
- /* @__PURE__ */ s(a, {
67
- path: "supply-chain",
68
- element: /* @__PURE__ */ s(b, {})
69
- }),
70
- /* @__PURE__ */ s(a, {
71
- path: "sustainability",
72
- element: /* @__PURE__ */ s(x, {})
73
- }),
74
- /* @__PURE__ */ s(a, {
75
- path: "training",
76
- element: /* @__PURE__ */ s(S, {})
77
- }),
78
- /* @__PURE__ */ s(a, {
79
- path: "*",
80
- element: /* @__PURE__ */ s(i, {
81
- to: "",
82
- replace: !0
8
+ var d = r(() => import("./pages/assets/AssetsPage.js").then((e) => ({ default: e.AssetsPage }))), f = r(() => import("./pages/assets/AssetDetailPage.js").then((e) => ({ default: e.AssetDetailPage }))), p = r(() => import("./pages/production/ProductionPage.js").then((e) => ({ default: e.ProductionPage }))), m = r(() => import("./pages/reserves/ReservesPage.js").then((e) => ({ default: e.ReservesPage }))), h = r(() => import("./pages/contracts/ContractsPage.js").then((e) => ({ default: e.ContractsPage }))), g = r(() => import("./pages/contracts/ContractDetailPage.js").then((e) => ({ default: e.ContractDetailPage }))), _ = r(() => import("./pages/shipments/ShipmentsPage.js").then((e) => ({ default: e.ShipmentsPage }))), v = r(() => import("./pages/inventory/InventoryPage.js").then((e) => ({ default: e.InventoryPage }))), y = r(() => import("./pages/emissions/EmissionsPage.js").then((e) => ({ default: e.EmissionsPage }))), b = r(() => import("./pages/compliance/CompliancePage.js").then((e) => ({ default: e.CompliancePage }))), x = () => /* @__PURE__ */ c("div", {
9
+ className: "flex min-h-[400px] items-center justify-center",
10
+ children: /* @__PURE__ */ c(u, { size: "lg" })
11
+ }), S = () => {
12
+ let { basePath: r, isStandalone: u } = e(), S = s(), C = r === "/" ? "" : (r ?? "").replace(/\/$/, "");
13
+ return C && !u && !(S.pathname === C || S.pathname.startsWith(C + "/")) ? null : /* @__PURE__ */ c("div", {
14
+ className: "flex min-h-full flex-col",
15
+ children: /* @__PURE__ */ c(n, {
16
+ fallback: /* @__PURE__ */ c(x, {}),
17
+ children: /* @__PURE__ */ l(o, { children: [
18
+ /* @__PURE__ */ c(a, {
19
+ index: !0,
20
+ element: /* @__PURE__ */ c(t, {})
21
+ }),
22
+ /* @__PURE__ */ c(a, {
23
+ path: "assets",
24
+ element: /* @__PURE__ */ c(d, {})
25
+ }),
26
+ /* @__PURE__ */ c(a, {
27
+ path: "assets/:id",
28
+ element: /* @__PURE__ */ c(f, {})
29
+ }),
30
+ /* @__PURE__ */ c(a, {
31
+ path: "production",
32
+ element: /* @__PURE__ */ c(p, {})
33
+ }),
34
+ /* @__PURE__ */ c(a, {
35
+ path: "reserves",
36
+ element: /* @__PURE__ */ c(m, {})
37
+ }),
38
+ /* @__PURE__ */ c(a, {
39
+ path: "contracts",
40
+ element: /* @__PURE__ */ c(h, {})
41
+ }),
42
+ /* @__PURE__ */ c(a, {
43
+ path: "contracts/:id",
44
+ element: /* @__PURE__ */ c(g, {})
45
+ }),
46
+ /* @__PURE__ */ c(a, {
47
+ path: "shipments",
48
+ element: /* @__PURE__ */ c(_, {})
49
+ }),
50
+ /* @__PURE__ */ c(a, {
51
+ path: "inventory",
52
+ element: /* @__PURE__ */ c(v, {})
53
+ }),
54
+ /* @__PURE__ */ c(a, {
55
+ path: "emissions",
56
+ element: /* @__PURE__ */ c(y, {})
57
+ }),
58
+ /* @__PURE__ */ c(a, {
59
+ path: "compliance",
60
+ element: /* @__PURE__ */ c(b, {})
61
+ }),
62
+ /* @__PURE__ */ c(a, {
63
+ path: "*",
64
+ element: /* @__PURE__ */ c(i, {
65
+ to: "",
66
+ replace: !0
67
+ })
83
68
  })
84
- })
85
- ] })
69
+ ] })
70
+ })
86
71
  });
87
- }
72
+ };
88
73
  //#endregion
89
- export { w as TheGlobalFuelRoutes };
74
+ export { S as TheGlobalFuelRoutes };
90
75
 
91
76
  //# sourceMappingURL=TheGlobalFuelRoutes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TheGlobalFuelRoutes.js","names":[],"sources":["../../src/theglobalfuel/TheGlobalFuelRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router-dom';\nimport { Loader2 } from 'lucide-react';\nimport { DashboardPage as IndexPage } from './pages/DashboardPage';\n\nconst AnalyticsPage = lazy(() =>\n import('./pages/AnalyticsPage').then((m) => ({ default: m.AnalyticsPage }))\n);\nconst CompliancePage = lazy(() =>\n import('./pages/CompliancePage').then((m) => ({ default: m.CompliancePage }))\n);\nconst AiIntelligencePage = lazy(() =>\n import('./pages/AiIntelligencePage').then((m) => ({ default: m.AiIntelligencePage }))\n);\nconst FinancialPage = lazy(() =>\n import('./pages/FinancialPage').then((m) => ({ default: m.FinancialPage }))\n);\nconst FleetManagementPage = lazy(() =>\n import('./pages/FleetManagementPage').then((m) => ({ default: m.FleetManagementPage }))\n);\nconst MarketplacePage = lazy(() =>\n import('./pages/MarketplacePage').then((m) => ({ default: m.MarketplacePage }))\n);\nconst OperationsPage = lazy(() =>\n import('./pages/OperationsPage').then((m) => ({ default: m.OperationsPage }))\n);\nconst QualityControlPage = lazy(() =>\n import('./pages/QualityControlPage').then((m) => ({ default: m.QualityControlPage }))\n);\nconst ReportsPage = lazy(() =>\n import('./pages/ReportsPage').then((m) => ({ default: m.ReportsPage }))\n);\nconst ResourcesPage = lazy(() =>\n import('./pages/ResourcesPage').then((m) => ({ default: m.ResourcesPage }))\n);\nconst RiskManagementPage = lazy(() =>\n import('./pages/RiskManagementPage').then((m) => ({ default: m.RiskManagementPage }))\n);\nconst SupplyChainPage = lazy(() =>\n import('./pages/SupplyChainPage').then((m) => ({ default: m.SupplyChainPage }))\n);\nconst SustainabilityPage = lazy(() =>\n import('./pages/SustainabilityPage').then((m) => ({ default: m.SustainabilityPage }))\n);\nconst TrainingPage = lazy(() =>\n import('./pages/TrainingPage').then((m) => ({ default: m.TrainingPage }))\n);\n\nfunction PageLoader() {\n return (\n <div className=\"flex min-h-[320px] items-center justify-center\">\n <Loader2 className=\"h-8 w-8 animate-spin text-primary\" />\n </div>\n );\n}\n\nexport function TheGlobalFuelRoutes() {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={<IndexPage />} />\n <Route path=\"analytics\" element={<AnalyticsPage />} />\n <Route path=\"compliance\" element={<CompliancePage />} />\n <Route path=\"ai-intelligence\" element={<AiIntelligencePage />} />\n <Route path=\"financial\" element={<FinancialPage />} />\n <Route path=\"fleet-management\" element={<FleetManagementPage />} />\n <Route path=\"marketplace\" element={<MarketplacePage />} />\n <Route path=\"operations\" element={<OperationsPage />} />\n <Route path=\"quality-control\" element={<QualityControlPage />} />\n <Route path=\"reports\" element={<ReportsPage />} />\n <Route path=\"resources\" element={<ResourcesPage />} />\n <Route path=\"risk-management\" element={<RiskManagementPage />} />\n <Route path=\"supply-chain\" element={<SupplyChainPage />} />\n <Route path=\"sustainability\" element={<SustainabilityPage />} />\n <Route path=\"training\" element={<TrainingPage />} />\n <Route path=\"*\" element={<Navigate to=\"\" replace />} />\n </Routes>\n </Suspense>\n );\n}\n"],"mappings":";;;;;;AAKA,IAAM,IAAgB,QACpB,OAAO,4BAAyB,MAAM,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CAC5E,EACK,IAAiB,QACrB,OAAO,6BAA0B,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC9E,EACK,IAAqB,QACzB,OAAO,iCAA8B,MAAM,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CACtF,EACK,IAAgB,QACpB,OAAO,4BAAyB,MAAM,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CAC5E,EACK,IAAsB,QAC1B,OAAO,kCAA+B,MAAM,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,CACxF,EACK,IAAkB,QACtB,OAAO,8BAA2B,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAChF,EACK,IAAiB,QACrB,OAAO,6BAA0B,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAC9E,EACK,IAAqB,QACzB,OAAO,iCAA8B,MAAM,OAAO,EAAE,SAAS,EAAE,oBAAoB,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AAD;IAAO,MAAK;IAAc,SAAS,kBAAC,GAAD,EAAmB,CAAA;IAAI,CAAA;GAC1D,kBAAC,GAAD;IAAO,MAAK;IAAa,SAAS,kBAAC,GAAD,EAAkB,CAAA;IAAI,CAAA;GACxD,kBAAC,GAAD;IAAO,MAAK;IAAkB,SAAS,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GACjE,kBAAC,GAAD;IAAO,MAAK;IAAU,SAAS,kBAAC,GAAD,EAAe,CAAA;IAAI,CAAA;GAClD,kBAAC,GAAD;IAAO,MAAK;IAAY,SAAS,kBAAC,GAAD,EAAiB,CAAA;IAAI,CAAA;GACtD,kBAAC,GAAD;IAAO,MAAK;IAAkB,SAAS,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GACjE,kBAAC,GAAD;IAAO,MAAK;IAAe,SAAS,kBAAC,GAAD,EAAmB,CAAA;IAAI,CAAA;GAC3D,kBAAC,GAAD;IAAO,MAAK;IAAiB,SAAS,kBAAC,GAAD,EAAsB,CAAA;IAAI,CAAA;GAChE,kBAAC,GAAD;IAAO,MAAK;IAAW,SAAS,kBAAC,GAAD,EAAgB,CAAA;IAAI,CAAA;GACpD,kBAAC,GAAD;IAAO,MAAK;IAAI,SAAS,kBAAC,GAAD;KAAU,IAAG;KAAG,SAAA;KAAU,CAAA;IAAI,CAAA;GAChD,EAAA,CAAA;EACA,CAAA"}
1
+ {"version":3,"file":"TheGlobalFuelRoutes.js","names":[],"sources":["../../src/theglobalfuel/TheGlobalFuelRoutes.tsx"],"sourcesContent":["/**\n * TheGlobalFuel Routes\n * @module theglobalfuel\n *\n * Domain routes. The dashboard is eager-loaded (primary landing); all other\n * pages are lazy-loaded. Every route maps to a real `the*` backend capability.\n */\n\nimport { type FC, lazy, Suspense } from 'react';\nimport { Routes, Route, Navigate, useLocation } from 'react-router-dom';\nimport { Spinner } from '@burdenoff/fe-libs/ui';\nimport { useTheGlobalFuel } from './context/TheGlobalFuelContext';\n\n// Eager — primary landing\nimport { DashboardPage } from './pages/dashboard/DashboardPage';\n\n// Registry — Assets, Production, Reserves\nconst AssetsPage = lazy(() =>\n import('./pages/assets/AssetsPage').then((m) => ({ default: m.AssetsPage }))\n);\nconst AssetDetailPage = lazy(() =>\n import('./pages/assets/AssetDetailPage').then((m) => ({ default: m.AssetDetailPage }))\n);\nconst ProductionPage = lazy(() =>\n import('./pages/production/ProductionPage').then((m) => ({ default: m.ProductionPage }))\n);\nconst ReservesPage = lazy(() =>\n import('./pages/reserves/ReservesPage').then((m) => ({ default: m.ReservesPage }))\n);\n\n// Commerce — Offtake Contracts, Shipments, Inventory\nconst ContractsPage = lazy(() =>\n import('./pages/contracts/ContractsPage').then((m) => ({ default: m.ContractsPage }))\n);\nconst ContractDetailPage = lazy(() =>\n import('./pages/contracts/ContractDetailPage').then((m) => ({ default: m.ContractDetailPage }))\n);\nconst ShipmentsPage = lazy(() =>\n import('./pages/shipments/ShipmentsPage').then((m) => ({ default: m.ShipmentsPage }))\n);\nconst InventoryPage = lazy(() =>\n import('./pages/inventory/InventoryPage').then((m) => ({ default: m.InventoryPage }))\n);\n\n// Sustainability — Emissions, Compliance\nconst EmissionsPage = lazy(() =>\n import('./pages/emissions/EmissionsPage').then((m) => ({ default: m.EmissionsPage }))\n);\nconst CompliancePage = lazy(() =>\n import('./pages/compliance/CompliancePage').then((m) => ({ default: m.CompliancePage }))\n);\n\nconst PageLoader: FC = () => (\n <div className=\"flex min-h-[400px] items-center justify-center\">\n <Spinner size=\"lg\" />\n </div>\n);\n\nexport const TheGlobalFuelRoutes: FC = () => {\n const { basePath, isStandalone } = useTheGlobalFuel();\n const location = useLocation();\n\n const normalizedBasePath = basePath === '/' ? '' : (basePath ?? '').replace(/\\/$/, '');\n\n // Guard: only render if the current path matches basePath (integrated mode).\n if (normalizedBasePath && !isStandalone) {\n const pathMatches =\n location.pathname === normalizedBasePath ||\n location.pathname.startsWith(normalizedBasePath + '/');\n if (!pathMatches) {\n return null;\n }\n }\n\n return (\n <div className=\"flex min-h-full flex-col\">\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={<DashboardPage />} />\n\n <Route path=\"assets\" element={<AssetsPage />} />\n <Route path=\"assets/:id\" element={<AssetDetailPage />} />\n\n <Route path=\"production\" element={<ProductionPage />} />\n\n <Route path=\"reserves\" element={<ReservesPage />} />\n\n <Route path=\"contracts\" element={<ContractsPage />} />\n <Route path=\"contracts/:id\" element={<ContractDetailPage />} />\n\n <Route path=\"shipments\" element={<ShipmentsPage />} />\n\n <Route path=\"inventory\" element={<InventoryPage />} />\n\n <Route path=\"emissions\" element={<EmissionsPage />} />\n\n <Route path=\"compliance\" element={<CompliancePage />} />\n\n <Route path=\"*\" element={<Navigate to=\"\" replace />} />\n </Routes>\n </Suspense>\n </div>\n );\n};\n"],"mappings":";;;;;;;AAiBA,IAAM,IAAa,QACjB,OAAO,gCAA6B,MAAM,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAC7E,EACK,IAAkB,QACtB,OAAO,qCAAkC,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CACvF,EACK,IAAiB,QACrB,OAAO,wCAAqC,MAAM,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CACzF,EACK,IAAe,QACnB,OAAO,oCAAiC,MAAM,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CACnF,EAGK,IAAgB,QACpB,OAAO,sCAAmC,MAAM,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CACtF,EACK,IAAqB,QACzB,OAAO,2CAAwC,MAAM,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAChG,EACK,IAAgB,QACpB,OAAO,sCAAmC,MAAM,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CACtF,EACK,IAAgB,QACpB,OAAO,sCAAmC,MAAM,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CACtF,EAGK,IAAgB,QACpB,OAAO,sCAAmC,MAAM,OAAO,EAAE,SAAS,EAAE,eA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AY,SAAS,kBAAC,GAAD,EAAiB,CAAA;KAAI,CAAA;IAEtD,kBAAC,GAAD;KAAO,MAAK;KAAY,SAAS,kBAAC,GAAD,EAAiB,CAAA;KAAI,CAAA;IAEtD,kBAAC,GAAD;KAAO,MAAK;KAAa,SAAS,kBAAC,GAAD,EAAkB,CAAA;KAAI,CAAA;IAExD,kBAAC,GAAD;KAAO,MAAK;KAAI,SAAS,kBAAC,GAAD;MAAU,IAAG;MAAG,SAAA;MAAU,CAAA;KAAI,CAAA;IAChD,EAAA,CAAA;GACA,CAAA;EACP,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface Column<T> {
4
+ key: string;
5
+ header: ReactNode;
6
+ render: (row: T) => ReactNode;
7
+ align?: 'left' | 'right' | 'center';
8
+ className?: string;
9
+ /** Hide below the `md` breakpoint for a mobile-friendly layout. */
10
+ hideOnMobile?: boolean;
11
+ /** Provide to make this column click-sortable (returns a comparable value). */
12
+ sortValue?: (row: T) => string | number;
13
+ }
14
+ interface DataTableProps<T> {
15
+ columns: Column<T>[];
16
+ rows: T[];
17
+ rowKey: (row: T) => string;
18
+ onRowClick?: (row: T) => void;
19
+ className?: string;
20
+ /** Default sort: a column key + direction. */
21
+ defaultSort?: {
22
+ key: string;
23
+ dir: 'asc' | 'desc';
24
+ };
25
+ }
26
+ export declare function DataTable<T>({ columns, rows, rowKey, onRowClick, className, defaultSort, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
27
+ export {};
28
+ //# sourceMappingURL=DataTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/DataTable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK1D,MAAM,WAAW,MAAM,CAAC,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,CAAC;CACzC;AAED,UAAU,cAAc,CAAC,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,WAAW,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,KAAK,GAAG,MAAM,CAAA;KAAE,CAAC;CACpD;AAQD,wBAAgB,SAAS,CAAC,CAAC,EAAE,EAC3B,OAAO,EACP,IAAI,EACJ,MAAM,EACN,UAAU,EACV,SAAS,EACT,WAAW,GACZ,EAAE,cAAc,CAAC,CAAC,CAAC,2CAqGnB"}