@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
@@ -1,20 +1,22 @@
1
1
  import { PageLayout as e } from "../../components/PageLayout.js";
2
2
  import { MetricsCard as t } from "../../components/MetricsCard.js";
3
- import { formatDate as n, formatEnumLabel as r, formatPercent as i, formatUnit as a, formatVolume as o, toBackendDate as ee } from "../../utils/formatters.js";
4
- import { StatusBadge as te } from "../../components/StatusBadge.js";
5
- import { DataTable as s } from "../../components/DataTable.js";
6
- import { ErrorView as ne, LoadingView as re } from "../../components/StateViews.js";
7
- import { EmptyState as ie } from "../../components/EmptyState.js";
8
- import { useTheAssets as ae, useTheCreateReserveEstimate as oe, useTheReserveEstimates as c } from "../../hooks/useTheGlobalFuelApi.js";
9
- import { useCursorPager as se } from "../../hooks/useCursorPager.js";
10
- import { useNotify as l } from "../../hooks/useNotify.js";
3
+ import { formatDate as n, formatEnumLabel as r, formatPercent as i, formatUnit as a, formatVolume as o, toBackendDate as s } from "../../utils/formatters.js";
4
+ import { StatusBadge as c } from "../../components/StatusBadge.js";
5
+ import { DataTable as l } from "../../components/DataTable.js";
6
+ import { ErrorView as u, LoadingView as ee } from "../../components/StateViews.js";
7
+ import { EmptyState as te } from "../../components/EmptyState.js";
8
+ import { useTheAssets as ne, useTheCreateReserveEstimate as re, useTheReserveEstimates as d } from "../../hooks/useTheGlobalFuelApi.js";
9
+ import { useCursorPager as f } from "../../hooks/useCursorPager.js";
10
+ import { useNotify as ie } from "../../hooks/useNotify.js";
11
+ import { useThePageView as ae } from "../../hooks/useThePageView.js";
12
+ import { useTheTranslation as oe } from "../../hooks/useTheTranslation.js";
11
13
  import "../../hooks/index.js";
12
- import { FilterTabs as u } from "../../components/FilterTabs.js";
13
- import { Pagination as d } from "../../components/Pagination.js";
14
- import { useMemo as f, useState as p } from "react";
15
- import { Database as ce, Layers as m, Percent as le, Plus as h } from "lucide-react";
16
- import { Fragment as ue, jsx as g, jsxs as _ } from "react/jsx-runtime";
17
- import { Button as v, Input as y, Label as b, ResponsiveDialog as de, ResponsiveDialogContent as fe, ResponsiveDialogDescription as pe, ResponsiveDialogFooter as me, ResponsiveDialogHeader as he, ResponsiveDialogTitle as ge, Select as x, SelectContent as S, SelectItem as C, SelectTrigger as w, SelectValue as T, Textarea as _e } from "@burdenoff/fe-libs/ui";
14
+ import { FilterTabs as se } from "../../components/FilterTabs.js";
15
+ import { Pagination as ce } from "../../components/Pagination.js";
16
+ import { useMemo as p, useState as m } from "react";
17
+ import { Database as le, Layers as h, Percent as g, Plus as _ } from "lucide-react";
18
+ import { Fragment as ue, jsx as v, jsxs as y } from "react/jsx-runtime";
19
+ import { Button as b, Input as x, Label as S, ResponsiveDialog as de, ResponsiveDialogContent as fe, ResponsiveDialogDescription as pe, ResponsiveDialogFooter as me, ResponsiveDialogHeader as he, ResponsiveDialogTitle as ge, Select as C, SelectContent as w, SelectItem as T, SelectTrigger as E, SelectValue as D, Textarea as _e } from "@burdenoff/fe-libs/ui";
18
20
  //#region src/theglobalfuel/pages/reserves/ReservesPage.tsx
19
21
  var ve = [
20
22
  {
@@ -55,7 +57,7 @@ var ve = [
55
57
  "MWH",
56
58
  "GJ",
57
59
  "MCF"
58
- ], E = 25, D = () => (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), O = {
60
+ ], O = 25, k = () => (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), A = {
59
61
  assetId: "",
60
62
  category: "PROVED",
61
63
  asOfDate: "",
@@ -65,18 +67,19 @@ var ve = [
65
67
  methodology: "",
66
68
  notes: ""
67
69
  };
68
- function k() {
69
- let k = l(), [A, j] = p("ALL"), [M, N] = p("ALL"), P = se(), [xe, F] = p(!1), [I, L] = p(O), [R, z] = p(null), B = ae({ pagination: {
70
+ function j() {
71
+ ae("reserves");
72
+ let j = oe(), M = ie(), [N, xe] = m("ALL"), [P, Se] = m("ALL"), F = f(), [Ce, I] = m(!1), [L, R] = m(A), [z, B] = m(null), V = ne({ pagination: {
70
73
  limit: 100,
71
74
  offset: 0
72
- } }), V = f(() => {
75
+ } }), H = p(() => {
73
76
  let e = {};
74
- for (let t of B.data?.items ?? []) e[t.id] = t.name;
77
+ for (let t of V.data?.items ?? []) e[t.id] = t.name;
75
78
  return e;
76
- }, [B.data]), H = M === "ALL" ? void 0 : M, U = A === "ALL" ? void 0 : A, { data: W, isLoading: Se, isError: Ce, refetch: G } = c(H, U, {
77
- limit: E,
78
- offset: P.page * E
79
- }), K = c(H, U, { limit: 200 }), q = oe(), J = f(() => W?.items ?? [], [W]), Y = f(() => K.data?.items ?? [], [K.data]), X = f(() => {
79
+ }, [V.data]), U = P === "ALL" ? void 0 : P, W = N === "ALL" ? void 0 : N, { data: G, isLoading: we, isError: Te, refetch: Ee } = d(U, W, {
80
+ limit: O,
81
+ offset: F.page * O
82
+ }), K = d(U, W, { limit: 200 }), q = re(), J = p(() => G?.items ?? [], [G]), Y = p(() => K.data?.items ?? [], [K.data]), X = p(() => {
80
83
  let e = {};
81
84
  for (let t of Y) e[t.unit] = (e[t.unit] ?? 0) + 1;
82
85
  let t = Object.entries(e).sort((e, t) => t[1] - e[1])[0]?.[0], n = t ? Y.filter((e) => e.unit === t).reduce((e, t) => e + t.recoverable, 0) : 0, r = Y.filter((e) => e.recoveryFactor != null);
@@ -85,13 +88,13 @@ function k() {
85
88
  totalRecoverable: n,
86
89
  avgFactor: r.length ? r.reduce((e, t) => e + (t.recoveryFactor ?? 0), 0) / r.length * 100 : null
87
90
  };
88
- }, [Y]), we = [
91
+ }, [Y]), De = [
89
92
  {
90
93
  key: "asset",
91
94
  header: "Asset",
92
- render: (e) => /* @__PURE__ */ g("span", {
95
+ render: (e) => /* @__PURE__ */ v("span", {
93
96
  className: "font-semibold text-text-primary",
94
- children: V[e.assetId] ?? /* @__PURE__ */ g("span", {
97
+ children: H[e.assetId] ?? /* @__PURE__ */ v("span", {
95
98
  className: "text-text-tertiary",
96
99
  children: "Unknown asset"
97
100
  })
@@ -100,14 +103,14 @@ function k() {
100
103
  {
101
104
  key: "category",
102
105
  header: "Category",
103
- render: (e) => /* @__PURE__ */ g(te, { status: e.category })
106
+ render: (e) => /* @__PURE__ */ v(c, { status: e.category })
104
107
  },
105
108
  {
106
109
  key: "asOfDate",
107
110
  header: "As of",
108
111
  hideOnMobile: !0,
109
112
  sortValue: (e) => new Date(e.asOfDate).getTime(),
110
- render: (e) => /* @__PURE__ */ g("span", {
113
+ render: (e) => /* @__PURE__ */ v("span", {
111
114
  className: "text-text-secondary",
112
115
  children: n(e.asOfDate)
113
116
  })
@@ -117,7 +120,7 @@ function k() {
117
120
  header: "Recoverable",
118
121
  align: "right",
119
122
  sortValue: (e) => e.recoverable,
120
- render: (e) => /* @__PURE__ */ g("span", {
123
+ render: (e) => /* @__PURE__ */ v("span", {
121
124
  className: "tabular-nums font-medium text-text-primary",
122
125
  children: o(e.recoverable, e.unit)
123
126
  })
@@ -128,10 +131,10 @@ function k() {
128
131
  align: "right",
129
132
  hideOnMobile: !0,
130
133
  sortValue: (e) => e.recoveryFactor ?? -1,
131
- render: (e) => e.recoveryFactor == null ? /* @__PURE__ */ g("span", {
134
+ render: (e) => e.recoveryFactor == null ? /* @__PURE__ */ v("span", {
132
135
  className: "text-text-tertiary",
133
136
  children: "—"
134
- }) : /* @__PURE__ */ g("span", {
137
+ }) : /* @__PURE__ */ v("span", {
135
138
  className: "tabular-nums text-text-secondary",
136
139
  children: i(e.recoveryFactor * 100)
137
140
  })
@@ -140,263 +143,264 @@ function k() {
140
143
  key: "methodology",
141
144
  header: "Methodology",
142
145
  hideOnMobile: !0,
143
- render: (e) => e.methodology ? /* @__PURE__ */ g("span", {
146
+ render: (e) => e.methodology ? /* @__PURE__ */ v("span", {
144
147
  className: "text-text-secondary",
145
148
  children: e.methodology
146
- }) : /* @__PURE__ */ g("span", {
149
+ }) : /* @__PURE__ */ v("span", {
147
150
  className: "text-text-tertiary",
148
151
  children: "—"
149
152
  })
150
153
  }
151
154
  ], Z = () => {
152
- L({
153
- ...O,
154
- asOfDate: D()
155
- }), z(null), F(!0);
155
+ R({
156
+ ...A,
157
+ asOfDate: k()
158
+ }), B(null), I(!0);
156
159
  }, Q = () => {
157
- F(!1), L(O), z(null);
158
- }, Te = async () => {
159
- if (!I.assetId) {
160
- z("Select the asset this estimate belongs to.");
160
+ I(!1), R(A), B(null);
161
+ }, Oe = async () => {
162
+ if (!L.assetId) {
163
+ B("Select the asset this estimate belongs to.");
161
164
  return;
162
165
  }
163
- let e = ee(I.asOfDate);
166
+ let e = s(L.asOfDate);
164
167
  if (!e) {
165
- z("An \"as of\" date is required.");
168
+ B("An \"as of\" date is required.");
166
169
  return;
167
170
  }
168
- let t = Number(I.recoverable);
169
- if (!I.recoverable || Number.isNaN(t) || t <= 0) {
171
+ let t = Number(L.recoverable);
172
+ if (!L.recoverable || Number.isNaN(t) || t <= 0) {
170
173
  let e = "Recoverable volume must be greater than zero.";
171
- z(e), k.error(e);
174
+ B(e), M.error(e);
172
175
  return;
173
176
  }
174
- let n = I.recoveryFactor ? Number(I.recoveryFactor) : null;
177
+ let n = L.recoveryFactor ? Number(L.recoveryFactor) : null;
175
178
  if (n != null && (n < 0 || n > 1)) {
176
- z("Recovery factor must be between 0 and 1.");
179
+ B("Recovery factor must be between 0 and 1.");
177
180
  return;
178
181
  }
179
- z(null);
182
+ B(null);
180
183
  try {
181
184
  await q.mutateAsync({
182
- assetId: I.assetId,
183
- category: I.category,
185
+ assetId: L.assetId,
186
+ category: L.category,
184
187
  asOfDate: e,
185
188
  recoverable: t,
186
189
  recoveryFactor: n,
187
- unit: I.unit,
188
- methodology: I.methodology.trim() || null,
189
- notes: I.notes.trim() || null
190
- }), k.success("Reserve estimate created"), Q();
190
+ unit: L.unit,
191
+ methodology: L.methodology.trim() || null,
192
+ notes: L.notes.trim() || null
193
+ }), M.success("Reserve estimate created"), Q();
191
194
  } catch (e) {
192
- z(e instanceof Error ? e.message : "Failed to create reserve estimate."), k.fromError(e);
195
+ B(e instanceof Error ? e.message : "Failed to create reserve estimate."), M.fromError(e);
193
196
  }
194
- }, $ = !B.isLoading && (B.data?.items.length ?? 0) === 0;
195
- return /* @__PURE__ */ _(e, {
196
- title: "Reserve Estimates",
197
- description: "Booked recoverable volumes per asset — proved, probable, possible, contingent & prospective.",
198
- actions: /* @__PURE__ */ _(v, {
197
+ }, $ = !V.isLoading && (V.data?.items.length ?? 0) === 0;
198
+ return /* @__PURE__ */ y(e, {
199
+ title: j("theglobalfuel.pages.reserves.title", "Reserve Estimates"),
200
+ description: j("theglobalfuel.pages.reserves.description", "Booked recoverable volumes per asset — proved, probable, possible, contingent & prospective."),
201
+ dataTour: "theglobalfuel-reserves-page",
202
+ actions: /* @__PURE__ */ y(b, {
199
203
  onClick: Z,
200
204
  disabled: $,
201
- children: [/* @__PURE__ */ g(h, { className: "mr-1.5 h-4 w-4" }), " Add estimate"]
205
+ children: [/* @__PURE__ */ v(_, { className: "mr-1.5 h-4 w-4" }), " Add estimate"]
202
206
  }),
203
207
  children: [
204
- /* @__PURE__ */ _("div", {
208
+ /* @__PURE__ */ y("div", {
205
209
  className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
206
210
  children: [
207
- /* @__PURE__ */ g(t, {
208
- icon: /* @__PURE__ */ g(ce, { className: "h-5 w-5" }),
211
+ /* @__PURE__ */ v(t, {
212
+ icon: /* @__PURE__ */ v(le, { className: "h-5 w-5" }),
209
213
  value: Y.length,
210
214
  label: "Reserve estimates",
211
215
  featured: !0
212
216
  }),
213
- /* @__PURE__ */ g(t, {
214
- icon: /* @__PURE__ */ g(m, { className: "h-5 w-5" }),
217
+ /* @__PURE__ */ v(t, {
218
+ icon: /* @__PURE__ */ v(h, { className: "h-5 w-5" }),
215
219
  value: X.dominantUnit ? o(X.totalRecoverable, X.dominantUnit) : "—",
216
220
  label: X.dominantUnit ? `Total recoverable (${a(X.dominantUnit)})` : "Total recoverable"
217
221
  }),
218
- /* @__PURE__ */ g(t, {
219
- icon: /* @__PURE__ */ g(le, { className: "h-5 w-5" }),
222
+ /* @__PURE__ */ v(t, {
223
+ icon: /* @__PURE__ */ v(g, { className: "h-5 w-5" }),
220
224
  value: X.avgFactor == null ? "—" : i(X.avgFactor),
221
225
  label: "Avg recovery factor"
222
226
  })
223
227
  ]
224
228
  }),
225
- /* @__PURE__ */ _("div", {
229
+ /* @__PURE__ */ y("div", {
226
230
  className: "mt-6 mb-5 flex flex-wrap items-center gap-3",
227
- children: [/* @__PURE__ */ g(u, {
231
+ children: [/* @__PURE__ */ v(se, {
228
232
  options: ve,
229
- value: A,
233
+ value: N,
230
234
  onChange: (e) => {
231
- j(e), P.reset();
235
+ xe(e), F.reset();
232
236
  }
233
- }), /* @__PURE__ */ _(x, {
234
- value: M,
237
+ }), /* @__PURE__ */ y(C, {
238
+ value: P,
235
239
  onValueChange: (e) => {
236
- N(e), P.reset();
240
+ Se(e), F.reset();
237
241
  },
238
- children: [/* @__PURE__ */ g(w, {
242
+ children: [/* @__PURE__ */ v(E, {
239
243
  className: "w-56",
240
244
  "aria-label": "Filter by asset",
241
- children: /* @__PURE__ */ g(T, { placeholder: "All assets" })
242
- }), /* @__PURE__ */ _(S, { children: [/* @__PURE__ */ g(C, {
245
+ children: /* @__PURE__ */ v(D, { placeholder: "All assets" })
246
+ }), /* @__PURE__ */ y(w, { children: [/* @__PURE__ */ v(T, {
243
247
  value: "ALL",
244
248
  children: "All assets"
245
- }), Object.entries(V).map(([e, t]) => /* @__PURE__ */ g(C, {
249
+ }), Object.entries(H).map(([e, t]) => /* @__PURE__ */ v(T, {
246
250
  value: e,
247
251
  children: t
248
252
  }, e))] })]
249
253
  })]
250
254
  }),
251
- Se ? /* @__PURE__ */ g(re, { label: "Loading reserve estimates…" }) : Ce ? /* @__PURE__ */ g(ne, {
255
+ we ? /* @__PURE__ */ v(ee, { label: "Loading reserve estimates…" }) : Te ? /* @__PURE__ */ v(u, {
252
256
  message: "Couldn't load reserve estimates.",
253
- onRetry: () => G()
254
- }) : J.length === 0 ? /* @__PURE__ */ g(ie, {
257
+ onRetry: () => Ee()
258
+ }) : J.length === 0 ? /* @__PURE__ */ v(te, {
255
259
  illustration: "empty-data",
256
- icon: /* @__PURE__ */ g(m, { className: "h-10 w-10" }),
260
+ icon: /* @__PURE__ */ v(h, { className: "h-10 w-10" }),
257
261
  title: "No reserve estimates",
258
- description: $ ? "Register a resource asset first, then book its recoverable reserves here." : A === "ALL" && M === "ALL" ? "Book your first recoverable-reserves estimate against an asset." : "No estimates match these filters.",
259
- action: $ ? void 0 : /* @__PURE__ */ _(v, {
262
+ description: $ ? "Register a resource asset first, then book its recoverable reserves here." : N === "ALL" && P === "ALL" ? "Book your first recoverable-reserves estimate against an asset." : "No estimates match these filters.",
263
+ action: $ ? void 0 : /* @__PURE__ */ y(b, {
260
264
  onClick: Z,
261
- children: [/* @__PURE__ */ g(h, { className: "mr-1.5 h-4 w-4" }), " Add estimate"]
265
+ children: [/* @__PURE__ */ v(_, { className: "mr-1.5 h-4 w-4" }), " Add estimate"]
262
266
  })
263
- }) : /* @__PURE__ */ _(ue, { children: [/* @__PURE__ */ g(s, {
264
- columns: we,
267
+ }) : /* @__PURE__ */ y(ue, { children: [/* @__PURE__ */ v(l, {
268
+ columns: De,
265
269
  rows: J,
266
270
  rowKey: (e) => e.id,
267
271
  defaultSort: {
268
272
  key: "asOfDate",
269
273
  dir: "desc"
270
274
  }
271
- }), /* @__PURE__ */ g(d, {
272
- page: P.page,
273
- pageSize: E,
275
+ }), /* @__PURE__ */ v(ce, {
276
+ page: F.page,
277
+ pageSize: O,
274
278
  itemCount: J.length,
275
- hasMore: W?.pageInfo?.hasMore ?? !1,
276
- onPageChange: P.onPageChange
279
+ hasMore: G?.pageInfo?.hasMore ?? !1,
280
+ onPageChange: F.onPageChange
277
281
  })] }),
278
- /* @__PURE__ */ g(de, {
279
- open: xe,
280
- onOpenChange: (e) => e ? F(!0) : Q(),
281
- children: /* @__PURE__ */ _(fe, { children: [/* @__PURE__ */ _(he, { children: [/* @__PURE__ */ g(ge, { children: "Add reserve estimate" }), /* @__PURE__ */ g(pe, { children: "Book a recoverable-reserves figure for an asset as of a valuation date." })] }), /* @__PURE__ */ _("form", {
282
+ /* @__PURE__ */ v(de, {
283
+ open: Ce,
284
+ onOpenChange: (e) => e ? I(!0) : Q(),
285
+ children: /* @__PURE__ */ y(fe, { children: [/* @__PURE__ */ y(he, { children: [/* @__PURE__ */ v(ge, { children: "Add reserve estimate" }), /* @__PURE__ */ v(pe, { children: "Book a recoverable-reserves figure for an asset as of a valuation date." })] }), /* @__PURE__ */ y("form", {
282
286
  onSubmit: (e) => {
283
- e.preventDefault(), Te();
287
+ e.preventDefault(), Oe();
284
288
  },
285
- children: [/* @__PURE__ */ _("div", {
289
+ children: [/* @__PURE__ */ y("div", {
286
290
  className: "grid gap-4 py-2",
287
291
  children: [
288
- /* @__PURE__ */ _("div", {
292
+ /* @__PURE__ */ y("div", {
289
293
  className: "grid gap-1.5",
290
- children: [/* @__PURE__ */ g(b, {
294
+ children: [/* @__PURE__ */ v(S, {
291
295
  htmlFor: "reAsset",
292
296
  children: "Asset *"
293
- }), /* @__PURE__ */ _(x, {
294
- value: I.assetId,
295
- onValueChange: (e) => L({
296
- ...I,
297
+ }), /* @__PURE__ */ y(C, {
298
+ value: L.assetId,
299
+ onValueChange: (e) => R({
300
+ ...L,
297
301
  assetId: e
298
302
  }),
299
- children: [/* @__PURE__ */ g(w, {
303
+ children: [/* @__PURE__ */ v(E, {
300
304
  id: "reAsset",
301
- children: /* @__PURE__ */ g(T, { placeholder: "Select an asset" })
302
- }), /* @__PURE__ */ g(S, { children: Object.entries(V).map(([e, t]) => /* @__PURE__ */ g(C, {
305
+ children: /* @__PURE__ */ v(D, { placeholder: "Select an asset" })
306
+ }), /* @__PURE__ */ v(w, { children: Object.entries(H).map(([e, t]) => /* @__PURE__ */ v(T, {
303
307
  value: e,
304
308
  children: t
305
309
  }, e)) })]
306
310
  })]
307
311
  }),
308
- /* @__PURE__ */ _("div", {
312
+ /* @__PURE__ */ y("div", {
309
313
  className: "grid gap-2 sm:grid-cols-2",
310
- children: [/* @__PURE__ */ _("div", {
314
+ children: [/* @__PURE__ */ y("div", {
311
315
  className: "grid gap-1.5",
312
- children: [/* @__PURE__ */ g(b, {
316
+ children: [/* @__PURE__ */ v(S, {
313
317
  htmlFor: "reCategory",
314
318
  children: "Category"
315
- }), /* @__PURE__ */ _(x, {
316
- value: I.category,
317
- onValueChange: (e) => L({
318
- ...I,
319
+ }), /* @__PURE__ */ y(C, {
320
+ value: L.category,
321
+ onValueChange: (e) => R({
322
+ ...L,
319
323
  category: e
320
324
  }),
321
- children: [/* @__PURE__ */ g(w, {
325
+ children: [/* @__PURE__ */ v(E, {
322
326
  id: "reCategory",
323
- children: /* @__PURE__ */ g(T, {})
324
- }), /* @__PURE__ */ g(S, { children: ye.map((e) => /* @__PURE__ */ g(C, {
327
+ children: /* @__PURE__ */ v(D, {})
328
+ }), /* @__PURE__ */ v(w, { children: ye.map((e) => /* @__PURE__ */ v(T, {
325
329
  value: e,
326
330
  children: r(e)
327
331
  }, e)) })]
328
332
  })]
329
- }), /* @__PURE__ */ _("div", {
333
+ }), /* @__PURE__ */ y("div", {
330
334
  className: "grid gap-1.5",
331
- children: [/* @__PURE__ */ g(b, {
335
+ children: [/* @__PURE__ */ v(S, {
332
336
  htmlFor: "reAsOf",
333
337
  children: "As of date *"
334
- }), /* @__PURE__ */ g(y, {
338
+ }), /* @__PURE__ */ v(x, {
335
339
  id: "reAsOf",
336
340
  type: "date",
337
- value: I.asOfDate,
338
- onChange: (e) => L({
339
- ...I,
341
+ value: L.asOfDate,
342
+ onChange: (e) => R({
343
+ ...L,
340
344
  asOfDate: e.target.value
341
345
  })
342
346
  })]
343
347
  })]
344
348
  }),
345
- /* @__PURE__ */ _("div", {
349
+ /* @__PURE__ */ y("div", {
346
350
  className: "grid gap-2 sm:grid-cols-3",
347
351
  children: [
348
- /* @__PURE__ */ _("div", {
352
+ /* @__PURE__ */ y("div", {
349
353
  className: "grid gap-1.5",
350
- children: [/* @__PURE__ */ g(b, {
354
+ children: [/* @__PURE__ */ v(S, {
351
355
  htmlFor: "reRecoverable",
352
356
  children: "Recoverable *"
353
- }), /* @__PURE__ */ g(y, {
357
+ }), /* @__PURE__ */ v(x, {
354
358
  id: "reRecoverable",
355
359
  type: "number",
356
360
  min: "0",
357
361
  step: "any",
358
- value: I.recoverable,
359
- onChange: (e) => L({
360
- ...I,
362
+ value: L.recoverable,
363
+ onChange: (e) => R({
364
+ ...L,
361
365
  recoverable: e.target.value
362
366
  }),
363
367
  placeholder: "1200000"
364
368
  })]
365
369
  }),
366
- /* @__PURE__ */ _("div", {
370
+ /* @__PURE__ */ y("div", {
367
371
  className: "grid gap-1.5",
368
- children: [/* @__PURE__ */ g(b, {
372
+ children: [/* @__PURE__ */ v(S, {
369
373
  htmlFor: "reUnit",
370
374
  children: "Unit"
371
- }), /* @__PURE__ */ _(x, {
372
- value: I.unit,
373
- onValueChange: (e) => L({
374
- ...I,
375
+ }), /* @__PURE__ */ y(C, {
376
+ value: L.unit,
377
+ onValueChange: (e) => R({
378
+ ...L,
375
379
  unit: e
376
380
  }),
377
- children: [/* @__PURE__ */ g(w, {
381
+ children: [/* @__PURE__ */ v(E, {
378
382
  id: "reUnit",
379
- children: /* @__PURE__ */ g(T, {})
380
- }), /* @__PURE__ */ g(S, { children: be.map((e) => /* @__PURE__ */ g(C, {
383
+ children: /* @__PURE__ */ v(D, {})
384
+ }), /* @__PURE__ */ v(w, { children: be.map((e) => /* @__PURE__ */ v(T, {
381
385
  value: e,
382
386
  children: a(e)
383
387
  }, e)) })]
384
388
  })]
385
389
  }),
386
- /* @__PURE__ */ _("div", {
390
+ /* @__PURE__ */ y("div", {
387
391
  className: "grid gap-1.5",
388
- children: [/* @__PURE__ */ g(b, {
392
+ children: [/* @__PURE__ */ v(S, {
389
393
  htmlFor: "reFactor",
390
394
  children: "Recovery factor"
391
- }), /* @__PURE__ */ g(y, {
395
+ }), /* @__PURE__ */ v(x, {
392
396
  id: "reFactor",
393
397
  type: "number",
394
398
  min: "0",
395
399
  max: "1",
396
400
  step: "any",
397
- value: I.recoveryFactor,
398
- onChange: (e) => L({
399
- ...I,
401
+ value: L.recoveryFactor,
402
+ onChange: (e) => R({
403
+ ...L,
400
404
  recoveryFactor: e.target.value
401
405
  }),
402
406
  placeholder: "0.35"
@@ -404,48 +408,48 @@ function k() {
404
408
  })
405
409
  ]
406
410
  }),
407
- /* @__PURE__ */ _("div", {
411
+ /* @__PURE__ */ y("div", {
408
412
  className: "grid gap-1.5",
409
- children: [/* @__PURE__ */ g(b, {
413
+ children: [/* @__PURE__ */ v(S, {
410
414
  htmlFor: "reMethodology",
411
415
  children: "Methodology"
412
- }), /* @__PURE__ */ g(y, {
416
+ }), /* @__PURE__ */ v(x, {
413
417
  id: "reMethodology",
414
- value: I.methodology,
415
- onChange: (e) => L({
416
- ...I,
418
+ value: L.methodology,
419
+ onChange: (e) => R({
420
+ ...L,
417
421
  methodology: e.target.value
418
422
  }),
419
423
  placeholder: "Volumetric / decline curve / PRMS deterministic"
420
424
  })]
421
425
  }),
422
- /* @__PURE__ */ _("div", {
426
+ /* @__PURE__ */ y("div", {
423
427
  className: "grid gap-1.5",
424
- children: [/* @__PURE__ */ g(b, {
428
+ children: [/* @__PURE__ */ v(S, {
425
429
  htmlFor: "reNotes",
426
430
  children: "Notes"
427
- }), /* @__PURE__ */ g(_e, {
431
+ }), /* @__PURE__ */ v(_e, {
428
432
  id: "reNotes",
429
433
  rows: 2,
430
- value: I.notes,
431
- onChange: (e) => L({
432
- ...I,
434
+ value: L.notes,
435
+ onChange: (e) => R({
436
+ ...L,
433
437
  notes: e.target.value
434
438
  }),
435
439
  placeholder: "Optional context about this estimate."
436
440
  })]
437
441
  }),
438
- R && /* @__PURE__ */ g("p", {
442
+ z && /* @__PURE__ */ v("p", {
439
443
  className: "text-sm text-status-error-text",
440
- children: R
444
+ children: z
441
445
  })
442
446
  ]
443
- }), /* @__PURE__ */ _(me, { children: [/* @__PURE__ */ g(v, {
447
+ }), /* @__PURE__ */ y(me, { children: [/* @__PURE__ */ v(b, {
444
448
  type: "button",
445
449
  variant: "outline",
446
450
  onClick: Q,
447
451
  children: "Cancel"
448
- }), /* @__PURE__ */ g(v, {
452
+ }), /* @__PURE__ */ v(b, {
449
453
  type: "submit",
450
454
  disabled: q.isPending,
451
455
  children: q.isPending ? "Saving…" : "Add estimate"
@@ -456,6 +460,6 @@ function k() {
456
460
  });
457
461
  }
458
462
  //#endregion
459
- export { k as ReservesPage };
463
+ export { j as ReservesPage };
460
464
 
461
465
  //# sourceMappingURL=ReservesPage.js.map