@burdenoff/microfe-theglobalfuel 2026.705.5 → 2026.709.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/README.md +3 -0
  2. package/dist/dev/main.d.ts +2 -0
  3. package/dist/dev/main.d.ts.map +1 -0
  4. package/dist/generated/global-operations.d.ts +2 -0
  5. package/dist/generated/global-operations.d.ts.map +1 -0
  6. package/dist/generated/global-types.d.ts +18199 -0
  7. package/dist/generated/global-types.d.ts.map +1 -0
  8. package/dist/generated/wspace-operations.d.ts +2 -0
  9. package/dist/generated/wspace-operations.d.ts.map +1 -0
  10. package/dist/generated/wspace-types.d.ts +43046 -0
  11. package/dist/generated/wspace-types.d.ts.map +1 -0
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +3 -1
  15. package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts +5 -0
  16. package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts.map +1 -0
  17. package/dist/theglobalfuel/TheGlobalFuelRoot.js +106 -104
  18. package/dist/theglobalfuel/TheGlobalFuelRoot.js.map +1 -1
  19. package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts +4 -0
  20. package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts.map +1 -0
  21. package/dist/theglobalfuel/TheGlobalFuelRoutes.js +60 -38
  22. package/dist/theglobalfuel/TheGlobalFuelRoutes.js.map +1 -1
  23. package/dist/theglobalfuel/components/DataTable.d.ts +30 -0
  24. package/dist/theglobalfuel/components/DataTable.d.ts.map +1 -0
  25. package/dist/theglobalfuel/components/DataTable.js.map +1 -1
  26. package/dist/theglobalfuel/components/EmptyState.d.ts +18 -0
  27. package/dist/theglobalfuel/components/EmptyState.d.ts.map +1 -0
  28. package/dist/theglobalfuel/components/EvidenceUpload.d.ts +14 -0
  29. package/dist/theglobalfuel/components/EvidenceUpload.d.ts.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/FilterTabs.d.ts +18 -0
  33. package/dist/theglobalfuel/components/FilterTabs.d.ts.map +1 -0
  34. package/dist/theglobalfuel/components/MetricsCard.d.ts +23 -0
  35. package/dist/theglobalfuel/components/MetricsCard.d.ts.map +1 -0
  36. package/dist/theglobalfuel/components/MiniBar.d.ts +16 -0
  37. package/dist/theglobalfuel/components/MiniBar.d.ts.map +1 -0
  38. package/dist/theglobalfuel/components/PageLayout.d.ts +18 -0
  39. package/dist/theglobalfuel/components/PageLayout.d.ts.map +1 -0
  40. package/dist/theglobalfuel/components/PageLayout.js +2 -1
  41. package/dist/theglobalfuel/components/PageLayout.js.map +1 -1
  42. package/dist/theglobalfuel/components/Pagination.d.ts +22 -0
  43. package/dist/theglobalfuel/components/Pagination.d.ts.map +1 -0
  44. package/dist/theglobalfuel/components/StateViews.d.ts +24 -0
  45. package/dist/theglobalfuel/components/StateViews.d.ts.map +1 -0
  46. package/dist/theglobalfuel/components/StatusBadge.d.ts +9 -0
  47. package/dist/theglobalfuel/components/StatusBadge.d.ts.map +1 -0
  48. package/dist/theglobalfuel/components/Tabs.d.ts +17 -0
  49. package/dist/theglobalfuel/components/Tabs.d.ts.map +1 -0
  50. package/dist/theglobalfuel/components/TheDiscussion.d.ts +18 -0
  51. package/dist/theglobalfuel/components/TheDiscussion.d.ts.map +1 -0
  52. package/dist/theglobalfuel/components/TheTags.d.ts +17 -0
  53. package/dist/theglobalfuel/components/TheTags.d.ts.map +1 -0
  54. package/dist/theglobalfuel/components/WorldMap.d.ts +18 -0
  55. package/dist/theglobalfuel/components/WorldMap.d.ts.map +1 -0
  56. package/dist/theglobalfuel/components/WorldMap.js.map +1 -1
  57. package/dist/theglobalfuel/components/index.d.ts +21 -0
  58. package/dist/theglobalfuel/components/index.d.ts.map +1 -0
  59. package/dist/theglobalfuel/components/viz/AllocationBar.d.ts +21 -0
  60. package/dist/theglobalfuel/components/viz/AllocationBar.d.ts.map +1 -0
  61. package/dist/theglobalfuel/components/viz/AreaChart.d.ts +18 -0
  62. package/dist/theglobalfuel/components/viz/AreaChart.d.ts.map +1 -0
  63. package/dist/theglobalfuel/components/viz/AvatarStack.d.ts +13 -0
  64. package/dist/theglobalfuel/components/viz/AvatarStack.d.ts.map +1 -0
  65. package/dist/theglobalfuel/components/viz/BarChart.d.ts +17 -0
  66. package/dist/theglobalfuel/components/viz/BarChart.d.ts.map +1 -0
  67. package/dist/theglobalfuel/components/viz/CertificateCard.d.ts +14 -0
  68. package/dist/theglobalfuel/components/viz/CertificateCard.d.ts.map +1 -0
  69. package/dist/theglobalfuel/components/viz/DonutChart.d.ts +20 -0
  70. package/dist/theglobalfuel/components/viz/DonutChart.d.ts.map +1 -0
  71. package/dist/theglobalfuel/components/viz/HBarFunnel.d.ts +17 -0
  72. package/dist/theglobalfuel/components/viz/HBarFunnel.d.ts.map +1 -0
  73. package/dist/theglobalfuel/components/viz/Heatmap.d.ts +26 -0
  74. package/dist/theglobalfuel/components/viz/Heatmap.d.ts.map +1 -0
  75. package/dist/theglobalfuel/components/viz/KanbanBoard.d.ts +17 -0
  76. package/dist/theglobalfuel/components/viz/KanbanBoard.d.ts.map +1 -0
  77. package/dist/theglobalfuel/components/viz/LineChart.d.ts +20 -0
  78. package/dist/theglobalfuel/components/viz/LineChart.d.ts.map +1 -0
  79. package/dist/theglobalfuel/components/viz/OrgTree.d.ts +14 -0
  80. package/dist/theglobalfuel/components/viz/OrgTree.d.ts.map +1 -0
  81. package/dist/theglobalfuel/components/viz/PathSteps.d.ts +17 -0
  82. package/dist/theglobalfuel/components/viz/PathSteps.d.ts.map +1 -0
  83. package/dist/theglobalfuel/components/viz/ProgressRing.d.ts +20 -0
  84. package/dist/theglobalfuel/components/viz/ProgressRing.d.ts.map +1 -0
  85. package/dist/theglobalfuel/components/viz/RatingStars.d.ts +14 -0
  86. package/dist/theglobalfuel/components/viz/RatingStars.d.ts.map +1 -0
  87. package/dist/theglobalfuel/components/viz/SegmentedTabs.d.ts +26 -0
  88. package/dist/theglobalfuel/components/viz/SegmentedTabs.d.ts.map +1 -0
  89. package/dist/theglobalfuel/components/viz/SkillBar.d.ts +17 -0
  90. package/dist/theglobalfuel/components/viz/SkillBar.d.ts.map +1 -0
  91. package/dist/theglobalfuel/components/viz/Sparkline.d.ts +16 -0
  92. package/dist/theglobalfuel/components/viz/Sparkline.d.ts.map +1 -0
  93. package/dist/theglobalfuel/components/viz/StatCard.d.ts +22 -0
  94. package/dist/theglobalfuel/components/viz/StatCard.d.ts.map +1 -0
  95. package/dist/theglobalfuel/components/viz/StepProgress.d.ts +17 -0
  96. package/dist/theglobalfuel/components/viz/StepProgress.d.ts.map +1 -0
  97. package/dist/theglobalfuel/components/viz/Timeline.d.ts +21 -0
  98. package/dist/theglobalfuel/components/viz/Timeline.d.ts.map +1 -0
  99. package/dist/theglobalfuel/components/viz/index.d.ts +35 -0
  100. package/dist/theglobalfuel/components/viz/index.d.ts.map +1 -0
  101. package/dist/theglobalfuel/components/viz/lib/Avatar.d.ts +15 -0
  102. package/dist/theglobalfuel/components/viz/lib/Avatar.d.ts.map +1 -0
  103. package/dist/theglobalfuel/components/viz/lib/CartesianFrame.d.ts +44 -0
  104. package/dist/theglobalfuel/components/viz/lib/CartesianFrame.d.ts.map +1 -0
  105. package/dist/theglobalfuel/components/viz/lib/ResponsiveSvg.d.ts +27 -0
  106. package/dist/theglobalfuel/components/viz/lib/ResponsiveSvg.d.ts.map +1 -0
  107. package/dist/theglobalfuel/components/viz/lib/format.d.ts +10 -0
  108. package/dist/theglobalfuel/components/viz/lib/format.d.ts.map +1 -0
  109. package/dist/theglobalfuel/components/viz/lib/geometry.d.ts +41 -0
  110. package/dist/theglobalfuel/components/viz/lib/geometry.d.ts.map +1 -0
  111. package/dist/theglobalfuel/components/viz/lib/hooks.d.ts +18 -0
  112. package/dist/theglobalfuel/components/viz/lib/hooks.d.ts.map +1 -0
  113. package/dist/theglobalfuel/components/viz/lib/palette.d.ts +31 -0
  114. package/dist/theglobalfuel/components/viz/lib/palette.d.ts.map +1 -0
  115. package/dist/theglobalfuel/components/viz/lib/types.d.ts +27 -0
  116. package/dist/theglobalfuel/components/viz/lib/types.d.ts.map +1 -0
  117. package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts +16 -0
  118. package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts.map +1 -0
  119. package/dist/theglobalfuel/context/index.d.ts +6 -0
  120. package/dist/theglobalfuel/context/index.d.ts.map +1 -0
  121. package/dist/theglobalfuel/hooks/index.d.ts +15 -0
  122. package/dist/theglobalfuel/hooks/index.d.ts.map +1 -0
  123. package/dist/theglobalfuel/hooks/index.js +4 -0
  124. package/dist/theglobalfuel/hooks/useCursorPager.d.ts +26 -0
  125. package/dist/theglobalfuel/hooks/useCursorPager.d.ts.map +1 -0
  126. package/dist/theglobalfuel/hooks/useNotify.d.ts +23 -0
  127. package/dist/theglobalfuel/hooks/useNotify.d.ts.map +1 -0
  128. package/dist/theglobalfuel/hooks/useTheAnalytics.d.ts +38 -0
  129. package/dist/theglobalfuel/hooks/useTheAnalytics.d.ts.map +1 -0
  130. package/dist/theglobalfuel/hooks/useTheAnalytics.js +46 -0
  131. package/dist/theglobalfuel/hooks/useTheAnalytics.js.map +1 -0
  132. package/dist/theglobalfuel/hooks/useTheComments.d.ts +36 -0
  133. package/dist/theglobalfuel/hooks/useTheComments.d.ts.map +1 -0
  134. package/dist/theglobalfuel/hooks/useTheFiles.d.ts +47 -0
  135. package/dist/theglobalfuel/hooks/useTheFiles.d.ts.map +1 -0
  136. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts +79 -0
  137. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts.map +1 -0
  138. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js +2 -9
  139. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js.map +1 -1
  140. package/dist/theglobalfuel/hooks/useTheNativeControls.d.ts +20 -0
  141. package/dist/theglobalfuel/hooks/useTheNativeControls.d.ts.map +1 -0
  142. package/dist/theglobalfuel/hooks/useTheNativeControls.js +22 -0
  143. package/dist/theglobalfuel/hooks/useTheNativeControls.js.map +1 -0
  144. package/dist/theglobalfuel/hooks/useThePageView.d.ts +10 -0
  145. package/dist/theglobalfuel/hooks/useThePageView.d.ts.map +1 -0
  146. package/dist/theglobalfuel/hooks/useThePageView.js +13 -0
  147. package/dist/theglobalfuel/hooks/useThePageView.js.map +1 -0
  148. package/dist/theglobalfuel/hooks/useTheTags.d.ts +44 -0
  149. package/dist/theglobalfuel/hooks/useTheTags.d.ts.map +1 -0
  150. package/dist/theglobalfuel/hooks/useTheTranslation.d.ts +4 -0
  151. package/dist/theglobalfuel/hooks/useTheTranslation.d.ts.map +1 -0
  152. package/dist/theglobalfuel/hooks/useTheTranslation.js +12 -0
  153. package/dist/theglobalfuel/hooks/useTheTranslation.js.map +1 -0
  154. package/dist/theglobalfuel/index.d.ts +11 -0
  155. package/dist/theglobalfuel/index.d.ts.map +1 -0
  156. package/dist/theglobalfuel/index.js +2 -0
  157. package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts +13 -0
  158. package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts.map +1 -0
  159. package/dist/theglobalfuel/pages/assets/AssetDetailPage.js +395 -353
  160. package/dist/theglobalfuel/pages/assets/AssetDetailPage.js.map +1 -1
  161. package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts +10 -0
  162. package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts.map +1 -0
  163. package/dist/theglobalfuel/pages/assets/AssetsPage.js +152 -146
  164. package/dist/theglobalfuel/pages/assets/AssetsPage.js.map +1 -1
  165. package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts +11 -0
  166. package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts.map +1 -0
  167. package/dist/theglobalfuel/pages/compliance/CompliancePage.js +233 -229
  168. package/dist/theglobalfuel/pages/compliance/CompliancePage.js.map +1 -1
  169. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts +9 -0
  170. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts.map +1 -0
  171. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js +410 -389
  172. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js.map +1 -1
  173. package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts +8 -0
  174. package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts.map +1 -0
  175. package/dist/theglobalfuel/pages/contracts/ContractsPage.js +237 -231
  176. package/dist/theglobalfuel/pages/contracts/ContractsPage.js.map +1 -1
  177. package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts +17 -0
  178. package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts.map +1 -0
  179. package/dist/theglobalfuel/pages/dashboard/DashboardPage.js +255 -250
  180. package/dist/theglobalfuel/pages/dashboard/DashboardPage.js.map +1 -1
  181. package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts +13 -0
  182. package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts.map +1 -0
  183. package/dist/theglobalfuel/pages/emissions/EmissionsPage.js +154 -150
  184. package/dist/theglobalfuel/pages/emissions/EmissionsPage.js.map +1 -1
  185. package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts +11 -0
  186. package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts.map +1 -0
  187. package/dist/theglobalfuel/pages/inventory/InventoryPage.js +151 -147
  188. package/dist/theglobalfuel/pages/inventory/InventoryPage.js.map +1 -1
  189. package/dist/theglobalfuel/pages/production/ProductionPage.d.ts +11 -0
  190. package/dist/theglobalfuel/pages/production/ProductionPage.d.ts.map +1 -0
  191. package/dist/theglobalfuel/pages/production/ProductionPage.js +175 -171
  192. package/dist/theglobalfuel/pages/production/ProductionPage.js.map +1 -1
  193. package/dist/theglobalfuel/pages/provenance/ProvenancePage.d.ts +23 -0
  194. package/dist/theglobalfuel/pages/provenance/ProvenancePage.d.ts.map +1 -0
  195. package/dist/theglobalfuel/pages/provenance/ProvenancePage.js +153 -146
  196. package/dist/theglobalfuel/pages/provenance/ProvenancePage.js.map +1 -1
  197. package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts +10 -0
  198. package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts.map +1 -0
  199. package/dist/theglobalfuel/pages/reserves/ReservesPage.js +168 -164
  200. package/dist/theglobalfuel/pages/reserves/ReservesPage.js.map +1 -1
  201. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts +11 -0
  202. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts.map +1 -0
  203. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js +179 -175
  204. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js.map +1 -1
  205. package/dist/theglobalfuel/services/assistantApi.d.ts +25 -0
  206. package/dist/theglobalfuel/services/assistantApi.d.ts.map +1 -0
  207. package/dist/theglobalfuel/services/assistantApi.js +225 -0
  208. package/dist/theglobalfuel/services/assistantApi.js.map +1 -0
  209. package/dist/theglobalfuel/services/createSandboxAssistantTransport.d.ts +38 -0
  210. package/dist/theglobalfuel/services/createSandboxAssistantTransport.d.ts.map +1 -0
  211. package/dist/theglobalfuel/services/createSandboxAssistantTransport.js +120 -0
  212. package/dist/theglobalfuel/services/createSandboxAssistantTransport.js.map +1 -0
  213. package/dist/theglobalfuel/services/index.d.ts +7 -0
  214. package/dist/theglobalfuel/services/index.d.ts.map +1 -0
  215. package/dist/theglobalfuel/types/assistant.d.ts +65 -0
  216. package/dist/theglobalfuel/types/assistant.d.ts.map +1 -0
  217. package/dist/theglobalfuel/types/index.d.ts +376 -0
  218. package/dist/theglobalfuel/types/index.d.ts.map +1 -0
  219. package/dist/theglobalfuel/utils/cn.d.ts +4 -0
  220. package/dist/theglobalfuel/utils/cn.d.ts.map +1 -0
  221. package/dist/theglobalfuel/utils/formatters.d.ts +44 -0
  222. package/dist/theglobalfuel/utils/formatters.d.ts.map +1 -0
  223. package/dist/theglobalfuel/utils/i18n.d.ts +5 -0
  224. package/dist/theglobalfuel/utils/i18n.d.ts.map +1 -0
  225. package/dist/theglobalfuel/utils/i18n.js +15 -0
  226. package/dist/theglobalfuel/utils/i18n.js.map +1 -0
  227. package/dist/theglobalfuel/utils/index.d.ts +10 -0
  228. package/dist/theglobalfuel/utils/index.d.ts.map +1 -0
  229. package/dist/theglobalfuel/utils/navigation.d.ts +14 -0
  230. package/dist/theglobalfuel/utils/navigation.d.ts.map +1 -0
  231. package/dist/theglobalfuel/utils/pageContext.d.ts +26 -0
  232. package/dist/theglobalfuel/utils/pageContext.d.ts.map +1 -0
  233. package/dist/theglobalfuel/utils/pageContext.js +65 -0
  234. package/dist/theglobalfuel/utils/pageContext.js.map +1 -0
  235. package/dist/theglobalfuel/utils/transitions.d.ts +17 -0
  236. package/dist/theglobalfuel/utils/transitions.d.ts.map +1 -0
  237. package/package.json +5 -1
  238. package/dist/node_modules/clsx/dist/clsx.js +0 -18
  239. package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
  240. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1716
  241. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
@@ -3,20 +3,22 @@ import { cn as t } from "../../utils/cn.js";
3
3
  import { PageLayout as n } from "../../components/PageLayout.js";
4
4
  import { formatCoords as r, formatDate as i, formatEnumLabel as a, formatNumber as o, formatTonnesCo2e as ee, formatVolume as s } from "../../utils/formatters.js";
5
5
  import { StatusBadge as c } from "../../components/StatusBadge.js";
6
- import { ErrorView as l, LoadingView as u } from "../../components/StateViews.js";
7
- import { EmptyState as te } from "../../components/EmptyState.js";
8
- import { Timeline as ne } from "../../components/viz/Timeline.js";
9
- import { StepProgress as re } from "../../components/viz/StepProgress.js";
6
+ import { ErrorView as l, LoadingView as te } from "../../components/StateViews.js";
7
+ import { EmptyState as ne } from "../../components/EmptyState.js";
8
+ import { Timeline as re } from "../../components/viz/Timeline.js";
9
+ import { StepProgress as ie } from "../../components/viz/StepProgress.js";
10
10
  import "../../context/index.js";
11
- import { useTheAsset as ie, useTheAssets as ae, useTheComplianceCerts as oe, useTheContract as se, useTheContracts as ce, useTheEmissionRecords as le, useTheInventoryLots as ue } from "../../hooks/useTheGlobalFuelApi.js";
11
+ import { useTheAsset as ae, useTheAssets as oe, useTheComplianceCerts as se, useTheContract as ce, useTheContracts as le, useTheEmissionRecords as ue, useTheInventoryLots as de } from "../../hooks/useTheGlobalFuelApi.js";
12
+ import { useThePageView as fe } from "../../hooks/useThePageView.js";
13
+ import { useTheTranslation as pe } from "../../hooks/useTheTranslation.js";
12
14
  import "../../hooks/index.js";
13
- import { FileLink as d } from "../../components/FileLink.js";
14
- import { WorldMap as de } from "../../components/WorldMap.js";
15
+ import { FileLink as u } from "../../components/FileLink.js";
16
+ import { WorldMap as me } from "../../components/WorldMap.js";
15
17
  import "../../components/index.js";
16
- import { useMemo as f, useState as fe } from "react";
17
- import { Boxes as p, CheckCircle2 as m, Factory as pe, Fuel as me, Gauge as h, Layers as he, Link2 as ge, MapPin as g, Route as _e, Shield as ve, ShieldCheck as _, Ship as ye } from "lucide-react";
18
- import { Fragment as be, jsx as v, jsxs as y } from "react/jsx-runtime";
19
- import { GlassCard as b, Select as xe, SelectContent as Se, SelectItem as Ce, SelectTrigger as we, SelectValue as Te } from "@burdenoff/fe-libs/ui";
18
+ import { useMemo as d, useState as he } from "react";
19
+ import { Boxes as f, CheckCircle2 as p, Factory as ge, Fuel as _e, Gauge as m, Layers as ve, Link2 as ye, MapPin as h, Route as be, Shield as xe, ShieldCheck as g, Ship as _ } from "lucide-react";
20
+ import { Fragment as Se, jsx as v, jsxs as y } from "react/jsx-runtime";
21
+ import { GlassCard as b, Select as Ce, SelectContent as we, SelectItem as Te, SelectTrigger as Ee, SelectValue as De } from "@burdenoff/fe-libs/ui";
20
22
  //#region src/theglobalfuel/pages/provenance/ProvenancePage.tsx
21
23
  var x = { limit: 200 };
22
24
  function S(e) {
@@ -25,23 +27,23 @@ function S(e) {
25
27
  return new Date(e(n) ?? n.createdAt).getTime() - r;
26
28
  };
27
29
  }
28
- var C = {
30
+ var Oe = {
29
31
  done: "bg-status-success-bg-subtle text-status-success-text",
30
32
  active: "bg-[var(--color-accent-soft)] text-accent",
31
33
  todo: "bg-bg-sunken text-text-muted",
32
34
  locked: "bg-bg-sunken text-text-muted"
33
- }, w = {
35
+ }, C = {
34
36
  done: "bg-status-success-bg-subtle text-status-success-text",
35
37
  active: "bg-[var(--color-accent-soft)] text-accent",
36
38
  todo: "bg-bg-sunken text-text-tertiary",
37
39
  locked: "bg-bg-sunken text-text-tertiary"
38
- }, T = {
40
+ }, w = {
39
41
  done: "bg-status-success-text",
40
42
  active: "bg-[var(--color-accent-primary)] motion-safe:animate-vc-glow-pulse",
41
43
  todo: "bg-border-strong",
42
44
  locked: "bg-border-strong"
43
45
  };
44
- function Ee({ node: e }) {
46
+ function ke({ node: e }) {
45
47
  return /* @__PURE__ */ y(b, {
46
48
  treatment: "glass",
47
49
  className: t("relative flex h-full flex-col gap-3 p-5 transition-shadow", e.state === "done" && "shadow-[inset_0_2px_0_0_var(--color-status-success-text)]", e.state === "active" && "shadow-[inset_0_2px_0_0_var(--color-accent-primary)]"),
@@ -49,15 +51,15 @@ function Ee({ node: e }) {
49
51
  /* @__PURE__ */ y("div", {
50
52
  className: "flex items-center justify-between",
51
53
  children: [/* @__PURE__ */ v("span", {
52
- className: t("flex size-7 items-center justify-center rounded-full text-xs font-semibold tabular-nums", C[e.state]),
54
+ className: t("flex size-7 items-center justify-center rounded-full text-xs font-semibold tabular-nums", Oe[e.state]),
53
55
  children: e.step
54
56
  }), /* @__PURE__ */ v("span", {
55
57
  "aria-hidden": "true",
56
- className: t("size-2 rounded-full", T[e.state])
58
+ className: t("size-2 rounded-full", w[e.state])
57
59
  })]
58
60
  }),
59
61
  /* @__PURE__ */ v("span", {
60
- className: t("flex size-11 items-center justify-center rounded-xl [&_svg]:size-6", w[e.state]),
62
+ className: t("flex size-11 items-center justify-center rounded-xl [&_svg]:size-6", C[e.state]),
61
63
  children: e.icon
62
64
  }),
63
65
  /* @__PURE__ */ y("div", {
@@ -80,12 +82,12 @@ function Ee({ node: e }) {
80
82
  }),
81
83
  (e.badge || e.present && e.fileId) && /* @__PURE__ */ y("div", {
82
84
  className: "mt-auto flex flex-wrap items-center gap-2 pt-1",
83
- children: [e.badge, e.present && e.fileId && /* @__PURE__ */ v(d, { fileId: e.fileId })]
85
+ children: [e.badge, e.present && e.fileId && /* @__PURE__ */ v(u, { fileId: e.fileId })]
84
86
  })
85
87
  ]
86
88
  });
87
89
  }
88
- function E({ icon: e, label: t, value: n, caption: r }) {
90
+ function T({ icon: e, label: t, value: n, caption: r }) {
89
91
  return /* @__PURE__ */ y("div", {
90
92
  className: "flex items-start gap-3",
91
93
  children: [/* @__PURE__ */ v("span", {
@@ -110,24 +112,25 @@ function E({ icon: e, label: t, value: n, caption: r }) {
110
112
  })]
111
113
  });
112
114
  }
113
- function D() {
114
- let { navigateTo: d } = e(), C = ae({ pagination: x }), w = f(() => C.data?.items ?? [], [C.data]), [T, D] = fe(""), De = f(() => w.find((e) => e.status === "PRODUCING")?.id ?? w[0]?.id ?? "", [w]), O = T || De, k = ie(O || void 0), A = ue({ pagination: x }), j = le({
115
- assetId: O || void 0,
115
+ function E() {
116
+ fe("provenance");
117
+ let u = pe(), { navigateTo: Oe } = e(), C = oe({ pagination: x }), w = d(() => C.data?.items ?? [], [C.data]), [E, Ae] = he(""), je = d(() => w.find((e) => e.status === "PRODUCING")?.id ?? w[0]?.id ?? "", [w]), D = E || je, O = ae(D || void 0), k = de({ pagination: x }), A = ue({
118
+ assetId: D || void 0,
116
119
  pagination: x
117
- }), M = oe(O || void 0, void 0, void 0, x), N = ce({
118
- commodity: k.data?.commodity,
120
+ }), j = se(D || void 0, void 0, void 0, x), M = le({
121
+ commodity: O.data?.commodity,
119
122
  pagination: x
120
- }), P = f(() => {
121
- let e = [...N.data?.items ?? []].sort(S((e) => e.createdAt));
123
+ }), N = d(() => {
124
+ let e = [...M.data?.items ?? []].sort(S((e) => e.createdAt));
122
125
  return (e.find((e) => e.deliveredVolume > 0 && e.side === "SELL") ?? e.find((e) => e.deliveredVolume > 0) ?? e.find((e) => e.side === "SELL") ?? e[0])?.id;
123
- }, [N.data]), F = se(P), I = f(() => [...k.data?.productionRecords ?? []].sort(S((e) => e.periodEnd)), [k.data]), L = I[0], R = f(() => (A.data?.items ?? []).filter((e) => e.assetId === O).sort(S((e) => e.producedAt)), [A.data, O]), z = R[0], B = f(() => F.data?.shipments ?? [], [F.data]), V = f(() => [...B].filter((e) => e.status === "DELIVERED").sort(S((e) => e.deliveredAt))[0], [B]), H = f(() => V ?? [...B].sort(S((e) => e.departedAt ?? e.scheduledAt))[0], [V, B]), Oe = f(() => N.data?.items.find((e) => e.id === P), [N.data, P]), U = f(() => M.data?.items ?? [], [M.data]), W = f(() => U.find((e) => e.category === "CHAIN_OF_CUSTODY") ?? U.find((e) => e.status === "APPROVED") ?? U[0], [U]), G = W?.status === "APPROVED", ke = f(() => j.data?.items ?? [], [j.data]), Ae = ke.reduce((e, t) => e + (t.co2eTonnes ?? 0), 0), je = ke.filter((e) => e.verified).length, K = k.data, q = [
124
- !!K,
125
- I.length > 0,
126
- R.length > 0,
127
- !!H,
126
+ }, [M.data]), P = ce(N), F = d(() => [...O.data?.productionRecords ?? []].sort(S((e) => e.periodEnd)), [O.data]), I = F[0], L = d(() => (k.data?.items ?? []).filter((e) => e.assetId === D).sort(S((e) => e.producedAt)), [k.data, D]), R = L[0], z = d(() => P.data?.shipments ?? [], [P.data]), B = d(() => [...z].filter((e) => e.status === "DELIVERED").sort(S((e) => e.deliveredAt))[0], [z]), V = d(() => B ?? [...z].sort(S((e) => e.departedAt ?? e.scheduledAt))[0], [B, z]), H = d(() => M.data?.items.find((e) => e.id === N), [M.data, N]), U = d(() => j.data?.items ?? [], [j.data]), W = d(() => U.find((e) => e.category === "CHAIN_OF_CUSTODY") ?? U.find((e) => e.status === "APPROVED") ?? U[0], [U]), G = W?.status === "APPROVED", K = d(() => A.data?.items ?? [], [A.data]), Me = K.reduce((e, t) => e + (t.co2eTonnes ?? 0), 0), Ne = K.filter((e) => e.verified).length, q = O.data, J = [
127
+ !!q,
128
+ F.length > 0,
129
+ L.length > 0,
128
130
  !!V,
131
+ !!B,
129
132
  G
130
- ], Me = q.filter(Boolean).length, J = q.findIndex((e) => !e), Ne = J === -1 ? q.length : J, Y = G && !!V, X = (e) => q[e] ? "done" : e === Ne ? "active" : "todo", Pe = [
133
+ ], Pe = J.filter(Boolean).length, Fe = J.findIndex((e) => !e), Ie = Fe === -1 ? J.length : Fe, Y = G && !!B, X = (e) => J[e] ? "done" : e === Ie ? "active" : "todo", Le = [
131
134
  {
132
135
  label: "Asset",
133
136
  description: "Origin"
@@ -152,59 +155,59 @@ function D() {
152
155
  label: "Certificate",
153
156
  description: "Verified"
154
157
  }
155
- ], Z = H && (H.origin || H.destination) ? [H.origin, H.destination].filter(Boolean).join(" → ") : void 0, Fe = K ? [
158
+ ], Z = V && (V.origin || V.destination) ? [V.origin, V.destination].filter(Boolean).join(" → ") : void 0, Re = q ? [
156
159
  {
157
160
  step: 1,
158
- icon: /* @__PURE__ */ v(g, {}),
161
+ icon: /* @__PURE__ */ v(h, {}),
159
162
  label: "Asset",
160
- primary: K.name,
161
- secondary: K.location ?? r(K.latitude, K.longitude),
162
- badge: /* @__PURE__ */ v(c, { status: K.status }),
163
+ primary: q.name,
164
+ secondary: q.location ?? r(q.latitude, q.longitude),
165
+ badge: /* @__PURE__ */ v(c, { status: q.status }),
163
166
  state: X(0),
164
167
  present: !0
165
168
  },
166
169
  {
167
170
  step: 2,
168
- icon: /* @__PURE__ */ v(h, {}),
171
+ icon: /* @__PURE__ */ v(m, {}),
169
172
  label: "Production",
170
- primary: L ? s(L.volume, L.unit) : "Not yet recorded",
171
- secondary: L ? `${i(L.periodStart)} – ${i(L.periodEnd)}` : void 0,
173
+ primary: I ? s(I.volume, I.unit) : "Not yet recorded",
174
+ secondary: I ? `${i(I.periodStart)} – ${i(I.periodEnd)}` : void 0,
172
175
  state: X(1),
173
- present: !!L
176
+ present: !!I
174
177
  },
175
178
  {
176
179
  step: 3,
177
- icon: /* @__PURE__ */ v(p, {}),
180
+ icon: /* @__PURE__ */ v(f, {}),
178
181
  label: "Inventory lot",
179
- primary: z ? z.lotCode : "No lot yet",
180
- secondary: z ? s(z.quantity, z.unit) : void 0,
181
- badge: z ? /* @__PURE__ */ v(c, { status: z.status }) : void 0,
182
+ primary: R ? R.lotCode : "No lot yet",
183
+ secondary: R ? s(R.quantity, R.unit) : void 0,
184
+ badge: R ? /* @__PURE__ */ v(c, { status: R.status }) : void 0,
182
185
  state: X(2),
183
- present: !!z
186
+ present: !!R
184
187
  },
185
188
  {
186
189
  step: 4,
187
- icon: /* @__PURE__ */ v(ye, {}),
190
+ icon: /* @__PURE__ */ v(_, {}),
188
191
  label: "Shipment",
189
- primary: H ? H.reference : "Not shipped",
190
- secondary: H ? [a(H.mode), Z].filter(Boolean).join(" · ") : void 0,
191
- badge: H ? /* @__PURE__ */ v(c, { status: H.status }) : void 0,
192
- fileId: H?.document?.id,
192
+ primary: V ? V.reference : "Not shipped",
193
+ secondary: V ? [a(V.mode), Z].filter(Boolean).join(" · ") : void 0,
194
+ badge: V ? /* @__PURE__ */ v(c, { status: V.status }) : void 0,
195
+ fileId: V?.document?.id,
193
196
  state: X(3),
194
- present: !!H
197
+ present: !!V
195
198
  },
196
199
  {
197
200
  step: 5,
198
- icon: /* @__PURE__ */ v(m, {}),
201
+ icon: /* @__PURE__ */ v(p, {}),
199
202
  label: "Delivered",
200
- primary: V ? s(V.volume, V.unit) : "Awaiting delivery",
201
- secondary: V && [V.deliveredAt ? i(V.deliveredAt) : null, Oe ? `Contract ${Oe.reference}` : null].filter(Boolean).join(" · ") || void 0,
203
+ primary: B ? s(B.volume, B.unit) : "Awaiting delivery",
204
+ secondary: B && [B.deliveredAt ? i(B.deliveredAt) : null, H ? `Contract ${H.reference}` : null].filter(Boolean).join(" · ") || void 0,
202
205
  state: X(4),
203
- present: !!V
206
+ present: !!B
204
207
  },
205
208
  {
206
209
  step: 6,
207
- icon: /* @__PURE__ */ v(_, {}),
210
+ icon: /* @__PURE__ */ v(g, {}),
208
211
  label: "Certificate",
209
212
  primary: W ? W.certNumber ?? W.title : "No certificate",
210
213
  secondary: W ? a(W.category) : void 0,
@@ -213,8 +216,8 @@ function D() {
213
216
  state: X(5),
214
217
  present: !!W
215
218
  }
216
- ] : [], Ie = f(() => {
217
- if (!K) return [];
219
+ ] : [], ze = d(() => {
220
+ if (!q) return [];
218
221
  let e = [], t = (t, n) => {
219
222
  if (!t) return;
220
223
  let r = new Date(t).getTime();
@@ -223,84 +226,88 @@ function D() {
223
226
  item: n
224
227
  });
225
228
  };
226
- return t(K.commissionedAt ?? K.createdAt, {
229
+ return t(q.commissionedAt ?? q.createdAt, {
227
230
  title: "Asset registered",
228
- meta: K.name,
231
+ meta: q.name,
229
232
  tone: "accent",
230
- icon: /* @__PURE__ */ v(g, { className: "h-3 w-3" })
231
- }), L && t(L.periodEnd ?? L.createdAt, {
233
+ icon: /* @__PURE__ */ v(h, { className: "h-3 w-3" })
234
+ }), I && t(I.periodEnd ?? I.createdAt, {
232
235
  title: "Production recorded",
233
- meta: s(L.volume, L.unit),
236
+ meta: s(I.volume, I.unit),
234
237
  tone: "info",
235
- icon: /* @__PURE__ */ v(h, { className: "h-3 w-3" })
236
- }), z && t(z.producedAt ?? z.createdAt, {
238
+ icon: /* @__PURE__ */ v(m, { className: "h-3 w-3" })
239
+ }), R && t(R.producedAt ?? R.createdAt, {
237
240
  title: "Inventory lot created",
238
- meta: `${z.lotCode} · ${s(z.quantity, z.unit)}`,
241
+ meta: `${R.lotCode} · ${s(R.quantity, R.unit)}`,
239
242
  tone: "info",
240
- icon: /* @__PURE__ */ v(p, { className: "h-3 w-3" })
241
- }), H && t(H.departedAt ?? H.scheduledAt ?? H.createdAt, {
242
- title: H.departedAt ? "Shipment departed" : "Shipment scheduled",
243
- meta: [H.reference, Z].filter(Boolean).join(" · "),
243
+ icon: /* @__PURE__ */ v(f, { className: "h-3 w-3" })
244
+ }), V && t(V.departedAt ?? V.scheduledAt ?? V.createdAt, {
245
+ title: V.departedAt ? "Shipment departed" : "Shipment scheduled",
246
+ meta: [V.reference, Z].filter(Boolean).join(" · "),
244
247
  tone: "accent",
245
- icon: /* @__PURE__ */ v(ye, { className: "h-3 w-3" })
246
- }), V?.deliveredAt && t(V.deliveredAt, {
248
+ icon: /* @__PURE__ */ v(_, { className: "h-3 w-3" })
249
+ }), B?.deliveredAt && t(B.deliveredAt, {
247
250
  title: "Delivered",
248
- meta: s(V.volume, V.unit),
251
+ meta: s(B.volume, B.unit),
249
252
  tone: "success",
250
- icon: /* @__PURE__ */ v(m, { className: "h-3 w-3" })
253
+ icon: /* @__PURE__ */ v(p, { className: "h-3 w-3" })
251
254
  }), W && t(W.issuedAt ?? W.createdAt, {
252
255
  title: G ? "Certificate approved" : "Certificate registered",
253
256
  meta: W.certNumber ?? W.title,
254
257
  tone: G ? "success" : "warning",
255
- icon: /* @__PURE__ */ v(_, { className: "h-3 w-3" })
258
+ icon: /* @__PURE__ */ v(g, { className: "h-3 w-3" })
256
259
  }), e.sort((e, t) => new Date(e.date).getTime() - new Date(t.date).getTime()).map(({ date: e, item: t }) => ({
257
260
  ...t,
258
261
  time: i(e)
259
262
  }));
260
263
  }, [
261
- K,
262
- L,
263
- z,
264
- H,
264
+ q,
265
+ I,
266
+ R,
265
267
  V,
268
+ B,
266
269
  W,
267
270
  G,
268
271
  Z
269
- ]), Q = K && typeof K.latitude == "number" && typeof K.longitude == "number" ? {
270
- lat: K.latitude,
271
- lng: K.longitude,
272
- label: K.name,
272
+ ]), Be = q && typeof q.latitude == "number" && typeof q.longitude == "number" ? {
273
+ lat: q.latitude,
274
+ lng: q.longitude,
275
+ label: q.name,
273
276
  primary: !0
274
- } : null, $ = "Pit to port to certificate — end-to-end traceability from origin to verified certificate.";
277
+ } : null, Q = u("theglobalfuel.pages.provenance.description", "Pit to port to certificate — end-to-end traceability from origin to verified certificate."), $ = u("theglobalfuel.pages.provenance.title", "Provenance");
275
278
  return C.isLoading && w.length === 0 ? /* @__PURE__ */ v(n, {
276
- title: "Provenance",
277
- description: $,
278
- children: /* @__PURE__ */ v(u, { label: "Loading assets…" })
279
+ title: $,
280
+ description: Q,
281
+ dataTour: "theglobalfuel-provenance-page",
282
+ children: /* @__PURE__ */ v(te, { label: "Loading assets…" })
279
283
  }) : C.isError ? /* @__PURE__ */ v(n, {
280
- title: "Provenance",
281
- description: $,
284
+ title: $,
285
+ description: Q,
286
+ dataTour: "theglobalfuel-provenance-page",
282
287
  children: /* @__PURE__ */ v(l, {
283
288
  message: "Couldn't load assets to trace.",
284
289
  onRetry: () => C.refetch()
285
290
  })
286
291
  }) : w.length === 0 ? /* @__PURE__ */ v(n, {
287
- title: "Provenance",
288
- description: $,
289
- children: /* @__PURE__ */ v(te, {
292
+ title: $,
293
+ description: Q,
294
+ dataTour: "theglobalfuel-provenance-page",
295
+ children: /* @__PURE__ */ v(ne, {
290
296
  illustration: "empty-data",
291
- icon: /* @__PURE__ */ v(ge, { className: "h-10 w-10" }),
297
+ icon: /* @__PURE__ */ v(ye, { className: "h-10 w-10" }),
292
298
  title: "No assets to trace",
293
299
  description: "Register a resource asset to build its end-to-end chain of custody.",
294
300
  action: /* @__PURE__ */ v("button", {
295
301
  type: "button",
296
- onClick: () => d("assets"),
302
+ onClick: () => Oe("assets"),
297
303
  className: "rounded-lg bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:opacity-90",
298
304
  children: "Go to assets"
299
305
  })
300
306
  })
301
307
  }) : /* @__PURE__ */ y(n, {
302
- title: "Provenance",
303
- description: $,
308
+ title: $,
309
+ description: Q,
310
+ dataTour: "theglobalfuel-provenance-page",
304
311
  children: [/* @__PURE__ */ y(b, {
305
312
  treatment: "glass",
306
313
  className: "flex flex-col gap-4 p-5 sm:flex-row sm:items-center sm:justify-between",
@@ -310,15 +317,15 @@ function D() {
310
317
  htmlFor: "provenance-asset",
311
318
  className: "text-xs font-medium uppercase tracking-wide text-text-tertiary",
312
319
  children: "Trace asset"
313
- }), /* @__PURE__ */ y(xe, {
314
- value: O,
315
- onValueChange: D,
316
- children: [/* @__PURE__ */ v(we, {
320
+ }), /* @__PURE__ */ y(Ce, {
321
+ value: D,
322
+ onValueChange: Ae,
323
+ children: [/* @__PURE__ */ v(Ee, {
317
324
  id: "provenance-asset",
318
325
  className: "h-10 w-full sm:w-96",
319
326
  "aria-label": "Select an asset to trace",
320
- children: /* @__PURE__ */ v(Te, { placeholder: "Select an asset to trace" })
321
- }), /* @__PURE__ */ v(Se, { children: w.map((e) => /* @__PURE__ */ y(Ce, {
327
+ children: /* @__PURE__ */ v(De, { placeholder: "Select an asset to trace" })
328
+ }), /* @__PURE__ */ v(we, { children: w.map((e) => /* @__PURE__ */ y(Te, {
322
329
  value: e.id,
323
330
  children: [
324
331
  e.name,
@@ -329,29 +336,29 @@ function D() {
329
336
  })]
330
337
  }), /* @__PURE__ */ y("div", {
331
338
  className: t("flex items-center gap-2 self-start rounded-full px-3.5 py-1.5 text-sm font-medium", Y ? "bg-status-success-bg-subtle text-status-success-text" : "bg-bg-sunken text-text-secondary"),
332
- children: [v(Y ? _ : ve, { className: "h-4 w-4" }), Y ? "Chain of custody verified" : `Traceability in progress · ${Me}/6`]
339
+ children: [v(Y ? g : xe, { className: "h-4 w-4" }), Y ? "Chain of custody verified" : `Traceability in progress · ${Pe}/6`]
333
340
  })]
334
- }), k.isLoading ? /* @__PURE__ */ v("div", {
341
+ }), O.isLoading ? /* @__PURE__ */ v("div", {
335
342
  className: "mt-6",
336
- children: /* @__PURE__ */ v(u, { label: "Assembling chain of custody…" })
337
- }) : k.isError || !K ? /* @__PURE__ */ v("div", {
343
+ children: /* @__PURE__ */ v(te, { label: "Assembling chain of custody…" })
344
+ }) : O.isError || !q ? /* @__PURE__ */ v("div", {
338
345
  className: "mt-6",
339
346
  children: /* @__PURE__ */ v(l, {
340
347
  message: "Couldn't load this asset's provenance.",
341
- onRetry: () => k.refetch()
348
+ onRetry: () => O.refetch()
342
349
  })
343
- }) : /* @__PURE__ */ y(be, { children: [
350
+ }) : /* @__PURE__ */ y(Se, { children: [
344
351
  /* @__PURE__ */ v(b, {
345
352
  treatment: "glass",
346
353
  className: "mt-6 p-5",
347
- children: /* @__PURE__ */ v(re, {
348
- steps: Pe,
349
- current: Ne
354
+ children: /* @__PURE__ */ v(ie, {
355
+ steps: Le,
356
+ current: Ie
350
357
  })
351
358
  }),
352
359
  /* @__PURE__ */ v("div", {
353
360
  className: "mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6",
354
- children: Fe.map((e) => /* @__PURE__ */ v(Ee, { node: e }, e.step))
361
+ children: Re.map((e) => /* @__PURE__ */ v(ke, { node: e }, e.step))
355
362
  }),
356
363
  /* @__PURE__ */ y("div", {
357
364
  className: "mt-6 grid grid-cols-1 gap-6 lg:grid-cols-3",
@@ -362,7 +369,7 @@ function D() {
362
369
  className: "mb-4 flex items-center gap-2.5",
363
370
  children: [/* @__PURE__ */ v("span", {
364
371
  className: "flex size-8 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-accent",
365
- children: /* @__PURE__ */ v(_e, { className: "h-4 w-4" })
372
+ children: /* @__PURE__ */ v(be, { className: "h-4 w-4" })
366
373
  }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("h2", {
367
374
  className: "text-base font-semibold text-text-primary",
368
375
  children: "Traceability timeline"
@@ -370,7 +377,7 @@ function D() {
370
377
  className: "text-xs text-text-tertiary",
371
378
  children: "Recorded custody events, oldest to newest."
372
379
  })] })]
373
- }), Ie.length > 0 ? /* @__PURE__ */ v(ne, { items: Ie }) : /* @__PURE__ */ v("div", {
380
+ }), ze.length > 0 ? /* @__PURE__ */ v(re, { items: ze }) : /* @__PURE__ */ v("div", {
374
381
  className: "rounded-xl border border-dashed border-border-seam py-8 text-center text-sm text-text-secondary",
375
382
  children: "No dated custody events yet."
376
383
  })]
@@ -381,7 +388,7 @@ function D() {
381
388
  className: "flex items-center gap-2.5",
382
389
  children: [/* @__PURE__ */ v("span", {
383
390
  className: "flex size-8 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-accent",
384
- children: /* @__PURE__ */ v(g, { className: "h-4 w-4" })
391
+ children: /* @__PURE__ */ v(h, { className: "h-4 w-4" })
385
392
  }), /* @__PURE__ */ y("div", {
386
393
  className: "min-w-0",
387
394
  children: [/* @__PURE__ */ v("h2", {
@@ -389,10 +396,10 @@ function D() {
389
396
  children: "Origin"
390
397
  }), /* @__PURE__ */ v("p", {
391
398
  className: "truncate text-xs text-text-tertiary",
392
- children: K.location ?? a(K.kind)
399
+ children: q.location ?? a(q.kind)
393
400
  })]
394
401
  })]
395
- }), Q ? /* @__PURE__ */ v(de, { points: [Q] }) : /* @__PURE__ */ v("div", {
402
+ }), Be ? /* @__PURE__ */ v(me, { points: [Be] }) : /* @__PURE__ */ v("div", {
396
403
  className: "rounded-xl border border-dashed border-border-seam py-8 text-center text-sm text-text-secondary",
397
404
  children: "No coordinates recorded for this asset."
398
405
  })]
@@ -407,38 +414,38 @@ function D() {
407
414
  }), /* @__PURE__ */ y("div", {
408
415
  className: "grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6",
409
416
  children: [
410
- /* @__PURE__ */ v(E, {
411
- icon: /* @__PURE__ */ v(me, {}),
417
+ /* @__PURE__ */ v(T, {
418
+ icon: /* @__PURE__ */ v(_e, {}),
412
419
  label: "Commodity",
413
- value: a(K.commodity),
414
- caption: a(K.kind)
420
+ value: a(q.commodity),
421
+ caption: a(q.kind)
415
422
  }),
416
- /* @__PURE__ */ v(E, {
417
- icon: /* @__PURE__ */ v(g, {}),
423
+ /* @__PURE__ */ v(T, {
424
+ icon: /* @__PURE__ */ v(h, {}),
418
425
  label: "Origin",
419
- value: K.location ?? K.name,
420
- caption: r(K.latitude, K.longitude)
426
+ value: q.location ?? q.name,
427
+ caption: r(q.latitude, q.longitude)
421
428
  }),
422
- /* @__PURE__ */ v(E, {
423
- icon: /* @__PURE__ */ v(h, {}),
429
+ /* @__PURE__ */ v(T, {
430
+ icon: /* @__PURE__ */ v(m, {}),
424
431
  label: "Production",
425
- value: `${o(I.length)} records`,
426
- caption: L ? `Latest ${s(L.volume, L.unit)}` : "None yet"
432
+ value: `${o(F.length)} records`,
433
+ caption: I ? `Latest ${s(I.volume, I.unit)}` : "None yet"
427
434
  }),
428
- /* @__PURE__ */ v(E, {
429
- icon: /* @__PURE__ */ v(p, {}),
435
+ /* @__PURE__ */ v(T, {
436
+ icon: /* @__PURE__ */ v(f, {}),
430
437
  label: "Inventory",
431
- value: `${o(R.length)} lots`,
432
- caption: z ? z.lotCode : "None yet"
438
+ value: `${o(L.length)} lots`,
439
+ caption: R ? R.lotCode : "None yet"
433
440
  }),
434
- /* @__PURE__ */ v(E, {
435
- icon: /* @__PURE__ */ v(pe, {}),
441
+ /* @__PURE__ */ v(T, {
442
+ icon: /* @__PURE__ */ v(ge, {}),
436
443
  label: "Emissions",
437
- value: j.isError ? "—" : ee(Ae),
438
- caption: `${je} verified`
444
+ value: A.isError ? "—" : ee(Me),
445
+ caption: `${Ne} verified`
439
446
  }),
440
- /* @__PURE__ */ v(E, {
441
- icon: /* @__PURE__ */ v(_, {}),
447
+ /* @__PURE__ */ v(T, {
448
+ icon: /* @__PURE__ */ v(g, {}),
442
449
  label: "Certificates",
443
450
  value: `${o(U.length)} tracked`,
444
451
  caption: G ? "Custody approved" : W ? "Under review" : "None yet"
@@ -446,13 +453,13 @@ function D() {
446
453
  ]
447
454
  })]
448
455
  }),
449
- (K.reserveEstimates?.length ?? 0) > 0 && /* @__PURE__ */ y("p", {
456
+ (q.reserveEstimates?.length ?? 0) > 0 && /* @__PURE__ */ y("p", {
450
457
  className: "mt-4 flex items-center gap-1.5 text-xs text-text-tertiary",
451
458
  children: [
452
- /* @__PURE__ */ v(he, { className: "h-3.5 w-3.5" }),
453
- o(K.reserveEstimates?.length ?? 0),
459
+ /* @__PURE__ */ v(ve, { className: "h-3.5 w-3.5" }),
460
+ o(q.reserveEstimates?.length ?? 0),
454
461
  " reserve estimate",
455
- (K.reserveEstimates?.length ?? 0) === 1 ? "" : "s",
462
+ (q.reserveEstimates?.length ?? 0) === 1 ? "" : "s",
456
463
  " on record for this asset."
457
464
  ]
458
465
  })
@@ -460,6 +467,6 @@ function D() {
460
467
  });
461
468
  }
462
469
  //#endregion
463
- export { D as ProvenancePage };
470
+ export { E as ProvenancePage };
464
471
 
465
472
  //# sourceMappingURL=ProvenancePage.js.map