@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,22 +1,24 @@
1
1
  import { useTheGlobalFuel as e } from "../../context/TheGlobalFuelContext.js";
2
2
  import { PageLayout as t } from "../../components/PageLayout.js";
3
3
  import { MetricsCard as n } from "../../components/MetricsCard.js";
4
- import { formatDate as r, formatEnumLabel as i, formatNumber as a, formatRelativeTime as ee, formatVolume as o, toBackendDate as s } from "../../utils/formatters.js";
5
- import { DataTable as c } from "../../components/DataTable.js";
6
- import { ErrorView as l, LoadingView as u } from "../../components/StateViews.js";
7
- import { EmptyState as te } from "../../components/EmptyState.js";
4
+ import { formatDate as r, formatEnumLabel as i, formatNumber as a, formatRelativeTime as o, formatVolume as s, toBackendDate as c } from "../../utils/formatters.js";
5
+ import { DataTable as l } from "../../components/DataTable.js";
6
+ import { ErrorView as ee, LoadingView as te } from "../../components/StateViews.js";
7
+ import { EmptyState as u } from "../../components/EmptyState.js";
8
8
  import "../../context/index.js";
9
- import { useTheAssets as ne, useTheProductionRecords as re, useTheRecordProduction as ie } from "../../hooks/useTheGlobalFuelApi.js";
10
- import { useCursorPager as ae } from "../../hooks/useCursorPager.js";
11
- import { useNotify as oe } from "../../hooks/useNotify.js";
9
+ import { useTheAssets as d, useTheProductionRecords as f, useTheRecordProduction as ne } from "../../hooks/useTheGlobalFuelApi.js";
10
+ import { useCursorPager as re } from "../../hooks/useCursorPager.js";
11
+ import { useNotify as ie } from "../../hooks/useNotify.js";
12
+ import { useThePageView as p } from "../../hooks/useThePageView.js";
13
+ import { useTheTranslation as ae } from "../../hooks/useTheTranslation.js";
12
14
  import "../../hooks/index.js";
13
- import { Pagination as se } from "../../components/Pagination.js";
14
- import { useMemo as d, useState as f } from "react";
15
- import { BarChart3 as p, Clock as m, Droplets as h, Gauge as g, Plus as _ } from "lucide-react";
16
- import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
17
- import { Button as x, Input as S, Label as C, ResponsiveDialog as ce, ResponsiveDialogContent as le, ResponsiveDialogDescription as ue, ResponsiveDialogFooter as de, ResponsiveDialogHeader as fe, ResponsiveDialogTitle as pe, Select as w, SelectContent as T, SelectItem as E, SelectTrigger as D, SelectValue as O, Textarea as k } from "@burdenoff/fe-libs/ui";
15
+ import { Pagination as oe } from "../../components/Pagination.js";
16
+ import { useMemo as m, useState as h } from "react";
17
+ import { BarChart3 as se, Clock as g, Droplets as _, Gauge as v, Plus as y } from "lucide-react";
18
+ import { Fragment as ce, jsx as b, jsxs as x } from "react/jsx-runtime";
19
+ import { Button as S, Input as C, Label as w, ResponsiveDialog as le, ResponsiveDialogContent as ue, ResponsiveDialogDescription as de, ResponsiveDialogFooter as fe, ResponsiveDialogHeader as pe, ResponsiveDialogTitle as me, Select as T, SelectContent as E, SelectItem as D, SelectTrigger as O, SelectValue as k, Textarea as A } from "@burdenoff/fe-libs/ui";
18
20
  //#region src/theglobalfuel/pages/production/ProductionPage.tsx
19
- var A = [
21
+ var j = [
20
22
  "BARRELS",
21
23
  "CUBIC_METERS",
22
24
  "TONNES",
@@ -24,48 +26,49 @@ var A = [
24
26
  "MWH",
25
27
  "GJ",
26
28
  "MCF"
27
- ], j = 25, M = () => (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), N = () => ({
29
+ ], M = 25, N = () => (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), P = () => ({
28
30
  assetId: "",
29
- periodStart: M(),
30
- periodEnd: M(),
31
+ periodStart: N(),
32
+ periodEnd: N(),
31
33
  volume: "",
32
34
  unit: "BARRELS",
33
35
  grade: "",
34
36
  downtimeHours: "",
35
37
  notes: ""
36
38
  });
37
- function P() {
38
- let { navigateTo: M } = e(), P = oe(), [F, I] = f("ALL"), L = ae(), [R, z] = f(!1), [B, V] = f(N), [H, U] = f(null), W = ne({ pagination: { limit: 100 } }), G = d(() => {
39
+ function F() {
40
+ p("production");
41
+ let N = ae(), { navigateTo: F } = e(), I = ie(), [L, R] = h("ALL"), z = re(), [he, B] = h(!1), [V, H] = h(P), [U, W] = h(null), G = d({ pagination: { limit: 100 } }), K = m(() => {
39
42
  let e = {};
40
- for (let t of W.data?.items ?? []) e[t.id] = t.name;
43
+ for (let t of G.data?.items ?? []) e[t.id] = t.name;
41
44
  return e;
42
- }, [W.data]), { data: K, isLoading: me, isError: he, refetch: ge } = re({
43
- assetId: F === "ALL" ? void 0 : F,
45
+ }, [G.data]), { data: q, isLoading: ge, isError: _e, refetch: ve } = f({
46
+ assetId: L === "ALL" ? void 0 : L,
44
47
  pagination: {
45
- limit: j,
46
- offset: L.page * j
48
+ limit: M,
49
+ offset: z.page * M
47
50
  }
48
- }), q = ie(), J = d(() => K?.items ?? [], [K]), { volumeValue: _e, volumeFooter: Y, downtimeTotal: X } = d(() => {
51
+ }), J = ne(), Y = m(() => q?.items ?? [], [q]), { volumeValue: ye, volumeFooter: be, downtimeTotal: X } = m(() => {
49
52
  let e = /* @__PURE__ */ new Map(), t = 0;
50
- for (let n of J) e.set(n.unit, (e.get(n.unit) ?? 0) + n.volume), t += n.downtimeHours;
53
+ for (let n of Y) e.set(n.unit, (e.get(n.unit) ?? 0) + n.volume), t += n.downtimeHours;
51
54
  let n = [...e.entries()], r, i;
52
- return n.length === 0 ? r = "—" : n.length === 1 ? r = o(n[0][1], n[0][0]) : (r = "Mixed units", i = /* @__PURE__ */ y("p", {
55
+ return n.length === 0 ? r = "—" : n.length === 1 ? r = s(n[0][1], n[0][0]) : (r = "Mixed units", i = /* @__PURE__ */ b("p", {
53
56
  className: "text-xs tabular-nums text-text-tertiary",
54
- children: n.map(([e, t]) => o(t, e)).join(" · ")
57
+ children: n.map(([e, t]) => s(t, e)).join(" · ")
55
58
  })), {
56
59
  volumeValue: r,
57
60
  volumeFooter: i,
58
61
  downtimeTotal: t
59
62
  };
60
- }, [J]), ve = [
63
+ }, [Y]), xe = [
61
64
  {
62
65
  key: "asset",
63
66
  header: "Asset",
64
- render: (e) => /* @__PURE__ */ y("div", {
67
+ render: (e) => /* @__PURE__ */ b("div", {
65
68
  className: "min-w-0",
66
- children: /* @__PURE__ */ y("p", {
69
+ children: /* @__PURE__ */ b("p", {
67
70
  className: "truncate font-semibold text-text-primary",
68
- children: G[e.assetId] ?? `${e.assetId.slice(0, 8)}…`
71
+ children: K[e.assetId] ?? `${e.assetId.slice(0, 8)}…`
69
72
  })
70
73
  })
71
74
  },
@@ -74,7 +77,7 @@ function P() {
74
77
  header: "Period",
75
78
  hideOnMobile: !0,
76
79
  sortValue: (e) => new Date(e.periodStart).getTime(),
77
- render: (e) => /* @__PURE__ */ b("span", {
80
+ render: (e) => /* @__PURE__ */ x("span", {
78
81
  className: "text-text-secondary",
79
82
  children: [
80
83
  r(e.periodStart),
@@ -88,9 +91,9 @@ function P() {
88
91
  header: "Volume",
89
92
  align: "right",
90
93
  sortValue: (e) => e.volume,
91
- render: (e) => /* @__PURE__ */ y("span", {
94
+ render: (e) => /* @__PURE__ */ b("span", {
92
95
  className: "tabular-nums font-medium text-text-primary",
93
- children: o(e.volume, e.unit)
96
+ children: s(e.volume, e.unit)
94
97
  })
95
98
  },
96
99
  {
@@ -99,10 +102,10 @@ function P() {
99
102
  align: "right",
100
103
  hideOnMobile: !0,
101
104
  sortValue: (e) => e.grade ?? 0,
102
- render: (e) => e.grade == null ? /* @__PURE__ */ y("span", {
105
+ render: (e) => e.grade == null ? /* @__PURE__ */ b("span", {
103
106
  className: "text-text-tertiary",
104
107
  children: "—"
105
- }) : /* @__PURE__ */ y("span", {
108
+ }) : /* @__PURE__ */ b("span", {
106
109
  className: "tabular-nums text-text-secondary",
107
110
  children: a(e.grade)
108
111
  })
@@ -113,7 +116,7 @@ function P() {
113
116
  align: "right",
114
117
  hideOnMobile: !0,
115
118
  sortValue: (e) => e.downtimeHours,
116
- render: (e) => /* @__PURE__ */ b("span", {
119
+ render: (e) => /* @__PURE__ */ x("span", {
117
120
  className: "tabular-nums text-text-secondary",
118
121
  children: [a(e.downtimeHours), "h"]
119
122
  })
@@ -123,300 +126,301 @@ function P() {
123
126
  header: "Logged",
124
127
  align: "right",
125
128
  hideOnMobile: !0,
126
- render: (e) => /* @__PURE__ */ y("span", {
129
+ render: (e) => /* @__PURE__ */ b("span", {
127
130
  className: "text-text-tertiary",
128
- children: ee(e.createdAt)
131
+ children: o(e.createdAt)
129
132
  })
130
133
  }
131
134
  ], Z = () => {
132
- V(N()), U(null), z(!0);
135
+ H(P()), W(null), B(!0);
133
136
  }, Q = () => {
134
- z(!1), V(N()), U(null);
135
- }, ye = async () => {
136
- if (!B.assetId) {
137
- U("Select an asset.");
137
+ B(!1), H(P()), W(null);
138
+ }, Se = async () => {
139
+ if (!V.assetId) {
140
+ W("Select an asset.");
138
141
  return;
139
142
  }
140
- let e = s(B.periodStart), t = s(B.periodEnd);
143
+ let e = c(V.periodStart), t = c(V.periodEnd);
141
144
  if (!e || !t) {
142
- U("Period start and end are required.");
145
+ W("Period start and end are required.");
143
146
  return;
144
147
  }
145
148
  if (new Date(t).getTime() < new Date(e).getTime()) {
146
- U("Period end must be on or after the period start.");
149
+ W("Period end must be on or after the period start.");
147
150
  return;
148
151
  }
149
- let n = Number(B.volume);
150
- if (!B.volume || Number.isNaN(n) || n <= 0) {
152
+ let n = Number(V.volume);
153
+ if (!V.volume || Number.isNaN(n) || n <= 0) {
151
154
  let e = "Volume must be greater than zero.";
152
- U(e), P.error(e);
155
+ W(e), I.error(e);
153
156
  return;
154
157
  }
155
- U(null);
158
+ W(null);
156
159
  try {
157
- await q.mutateAsync({
158
- assetId: B.assetId,
160
+ await J.mutateAsync({
161
+ assetId: V.assetId,
159
162
  periodStart: e,
160
163
  periodEnd: t,
161
164
  volume: n,
162
- unit: B.unit,
163
- grade: B.grade ? Number(B.grade) : null,
164
- downtimeHours: B.downtimeHours ? Number(B.downtimeHours) : null,
165
- notes: B.notes.trim() || null
166
- }), P.success("Production recorded"), Q();
165
+ unit: V.unit,
166
+ grade: V.grade ? Number(V.grade) : null,
167
+ downtimeHours: V.downtimeHours ? Number(V.downtimeHours) : null,
168
+ notes: V.notes.trim() || null
169
+ }), I.success("Production recorded"), Q();
167
170
  } catch (e) {
168
- U(e instanceof Error ? e.message : "Failed to record production."), P.fromError(e);
171
+ W(e instanceof Error ? e.message : "Failed to record production."), I.fromError(e);
169
172
  }
170
- }, $ = W.data?.items ?? [];
171
- return /* @__PURE__ */ b(t, {
172
- title: "Production",
173
- description: "Captured production volumes across every field, well, mine & plant — with downtime and grade.",
174
- actions: /* @__PURE__ */ b(x, {
173
+ }, $ = G.data?.items ?? [];
174
+ return /* @__PURE__ */ x(t, {
175
+ title: N("theglobalfuel.pages.production.title", "Production"),
176
+ description: N("theglobalfuel.pages.production.description", "Captured production volumes across every field, well, mine & plant — with downtime and grade."),
177
+ dataTour: "theglobalfuel-production-page",
178
+ actions: /* @__PURE__ */ x(S, {
175
179
  onClick: Z,
176
- children: [/* @__PURE__ */ y(_, { className: "mr-1.5 h-4 w-4" }), " Record production"]
180
+ children: [/* @__PURE__ */ b(y, { className: "mr-1.5 h-4 w-4" }), " Record production"]
177
181
  }),
178
182
  children: [
179
- /* @__PURE__ */ b("div", {
183
+ /* @__PURE__ */ x("div", {
180
184
  className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
181
185
  children: [
182
- /* @__PURE__ */ y(n, {
183
- icon: /* @__PURE__ */ y(h, { className: "h-5 w-5" }),
184
- value: _e,
186
+ /* @__PURE__ */ b(n, {
187
+ icon: /* @__PURE__ */ b(_, { className: "h-5 w-5" }),
188
+ value: ye,
185
189
  label: "Volume on this page",
186
190
  featured: !0,
187
- footer: Y
191
+ footer: be
188
192
  }),
189
- /* @__PURE__ */ y(n, {
190
- icon: /* @__PURE__ */ y(m, { className: "h-5 w-5" }),
193
+ /* @__PURE__ */ b(n, {
194
+ icon: /* @__PURE__ */ b(g, { className: "h-5 w-5" }),
191
195
  value: `${a(X)}h`,
192
196
  label: "Downtime on this page",
193
197
  accent: X > 0 ? "warning" : void 0
194
198
  }),
195
- /* @__PURE__ */ y(n, {
196
- icon: /* @__PURE__ */ y(p, { className: "h-5 w-5" }),
197
- value: J.length,
199
+ /* @__PURE__ */ b(n, {
200
+ icon: /* @__PURE__ */ b(se, { className: "h-5 w-5" }),
201
+ value: Y.length,
198
202
  label: "Records on this page"
199
203
  })
200
204
  ]
201
205
  }),
202
- /* @__PURE__ */ y("div", {
206
+ /* @__PURE__ */ b("div", {
203
207
  className: "mt-6 mb-5 flex flex-wrap items-center gap-3",
204
- children: /* @__PURE__ */ b(w, {
205
- value: F,
208
+ children: /* @__PURE__ */ x(T, {
209
+ value: L,
206
210
  onValueChange: (e) => {
207
- I(e), L.reset();
211
+ R(e), z.reset();
208
212
  },
209
- children: [/* @__PURE__ */ y(D, {
213
+ children: [/* @__PURE__ */ b(O, {
210
214
  className: "w-56",
211
215
  "aria-label": "Filter by asset",
212
- children: /* @__PURE__ */ y(O, { placeholder: "All assets" })
213
- }), /* @__PURE__ */ b(T, { children: [/* @__PURE__ */ y(E, {
216
+ children: /* @__PURE__ */ b(k, { placeholder: "All assets" })
217
+ }), /* @__PURE__ */ x(E, { children: [/* @__PURE__ */ b(D, {
214
218
  value: "ALL",
215
219
  children: "All assets"
216
- }), $.map((e) => /* @__PURE__ */ y(E, {
220
+ }), $.map((e) => /* @__PURE__ */ b(D, {
217
221
  value: e.id,
218
222
  children: e.name
219
223
  }, e.id))] })]
220
224
  })
221
225
  }),
222
- me ? /* @__PURE__ */ y(u, { label: "Loading production records…" }) : he ? /* @__PURE__ */ y(l, {
226
+ ge ? /* @__PURE__ */ b(te, { label: "Loading production records…" }) : _e ? /* @__PURE__ */ b(ee, {
223
227
  message: "Couldn't load production records.",
224
- onRetry: () => ge()
225
- }) : J.length === 0 ? /* @__PURE__ */ y(te, {
228
+ onRetry: () => ve()
229
+ }) : Y.length === 0 ? /* @__PURE__ */ b(u, {
226
230
  illustration: "empty-data",
227
- icon: /* @__PURE__ */ y(g, { className: "h-10 w-10" }),
231
+ icon: /* @__PURE__ */ b(v, { className: "h-10 w-10" }),
228
232
  title: "No production recorded",
229
- description: F === "ALL" ? "Record a production period to start tracking output, grade and downtime." : "No production has been recorded for this asset yet.",
230
- action: /* @__PURE__ */ b(x, {
233
+ description: L === "ALL" ? "Record a production period to start tracking output, grade and downtime." : "No production has been recorded for this asset yet.",
234
+ action: /* @__PURE__ */ x(S, {
231
235
  onClick: Z,
232
- children: [/* @__PURE__ */ y(_, { className: "mr-1.5 h-4 w-4" }), " Record production"]
236
+ children: [/* @__PURE__ */ b(y, { className: "mr-1.5 h-4 w-4" }), " Record production"]
233
237
  })
234
- }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(c, {
235
- columns: ve,
236
- rows: J,
238
+ }) : /* @__PURE__ */ x(ce, { children: [/* @__PURE__ */ b(l, {
239
+ columns: xe,
240
+ rows: Y,
237
241
  rowKey: (e) => e.id,
238
- onRowClick: (e) => M(`assets/${e.assetId}`),
239
- rowLabel: (e) => `Open ${G[e.assetId] ?? "asset"}`,
242
+ onRowClick: (e) => F(`assets/${e.assetId}`),
243
+ rowLabel: (e) => `Open ${K[e.assetId] ?? "asset"}`,
240
244
  defaultSort: {
241
245
  key: "period",
242
246
  dir: "desc"
243
247
  }
244
- }), /* @__PURE__ */ y(se, {
245
- page: L.page,
246
- pageSize: j,
247
- itemCount: J.length,
248
- hasMore: K?.pageInfo?.hasMore ?? !1,
249
- onPageChange: L.onPageChange
248
+ }), /* @__PURE__ */ b(oe, {
249
+ page: z.page,
250
+ pageSize: M,
251
+ itemCount: Y.length,
252
+ hasMore: q?.pageInfo?.hasMore ?? !1,
253
+ onPageChange: z.onPageChange
250
254
  })] }),
251
- /* @__PURE__ */ y(ce, {
252
- open: R,
253
- onOpenChange: (e) => e ? z(!0) : Q(),
254
- children: /* @__PURE__ */ b(le, { children: [/* @__PURE__ */ b(fe, { children: [/* @__PURE__ */ y(pe, { children: "Record production" }), /* @__PURE__ */ y(ue, { children: "Log the volume produced by an asset over a reporting period." })] }), /* @__PURE__ */ b("form", {
255
+ /* @__PURE__ */ b(le, {
256
+ open: he,
257
+ onOpenChange: (e) => e ? B(!0) : Q(),
258
+ children: /* @__PURE__ */ x(ue, { children: [/* @__PURE__ */ x(pe, { children: [/* @__PURE__ */ b(me, { children: "Record production" }), /* @__PURE__ */ b(de, { children: "Log the volume produced by an asset over a reporting period." })] }), /* @__PURE__ */ x("form", {
255
259
  onSubmit: (e) => {
256
- e.preventDefault(), ye();
260
+ e.preventDefault(), Se();
257
261
  },
258
- children: [/* @__PURE__ */ b("div", {
262
+ children: [/* @__PURE__ */ x("div", {
259
263
  className: "grid gap-4 py-2",
260
264
  children: [
261
- /* @__PURE__ */ b("div", {
265
+ /* @__PURE__ */ x("div", {
262
266
  className: "grid gap-1.5",
263
- children: [/* @__PURE__ */ y(C, {
267
+ children: [/* @__PURE__ */ b(w, {
264
268
  htmlFor: "prAsset",
265
269
  children: "Asset *"
266
- }), /* @__PURE__ */ b(w, {
267
- value: B.assetId,
268
- onValueChange: (e) => V({
269
- ...B,
270
+ }), /* @__PURE__ */ x(T, {
271
+ value: V.assetId,
272
+ onValueChange: (e) => H({
273
+ ...V,
270
274
  assetId: e
271
275
  }),
272
- children: [/* @__PURE__ */ y(D, {
276
+ children: [/* @__PURE__ */ b(O, {
273
277
  id: "prAsset",
274
- children: /* @__PURE__ */ y(O, { placeholder: "Select an asset" })
275
- }), /* @__PURE__ */ y(T, { children: $.map((e) => /* @__PURE__ */ y(E, {
278
+ children: /* @__PURE__ */ b(k, { placeholder: "Select an asset" })
279
+ }), /* @__PURE__ */ b(E, { children: $.map((e) => /* @__PURE__ */ b(D, {
276
280
  value: e.id,
277
281
  children: e.name
278
282
  }, e.id)) })]
279
283
  })]
280
284
  }),
281
- /* @__PURE__ */ b("div", {
285
+ /* @__PURE__ */ x("div", {
282
286
  className: "grid gap-2 sm:grid-cols-2",
283
- children: [/* @__PURE__ */ b("div", {
287
+ children: [/* @__PURE__ */ x("div", {
284
288
  className: "grid gap-1.5",
285
- children: [/* @__PURE__ */ y(C, {
289
+ children: [/* @__PURE__ */ b(w, {
286
290
  htmlFor: "prStart",
287
291
  children: "Period start *"
288
- }), /* @__PURE__ */ y(S, {
292
+ }), /* @__PURE__ */ b(C, {
289
293
  id: "prStart",
290
294
  type: "date",
291
- value: B.periodStart,
292
- onChange: (e) => V({
293
- ...B,
295
+ value: V.periodStart,
296
+ onChange: (e) => H({
297
+ ...V,
294
298
  periodStart: e.target.value
295
299
  })
296
300
  })]
297
- }), /* @__PURE__ */ b("div", {
301
+ }), /* @__PURE__ */ x("div", {
298
302
  className: "grid gap-1.5",
299
- children: [/* @__PURE__ */ y(C, {
303
+ children: [/* @__PURE__ */ b(w, {
300
304
  htmlFor: "prEnd",
301
305
  children: "Period end *"
302
- }), /* @__PURE__ */ y(S, {
306
+ }), /* @__PURE__ */ b(C, {
303
307
  id: "prEnd",
304
308
  type: "date",
305
- value: B.periodEnd,
306
- onChange: (e) => V({
307
- ...B,
309
+ value: V.periodEnd,
310
+ onChange: (e) => H({
311
+ ...V,
308
312
  periodEnd: e.target.value
309
313
  })
310
314
  })]
311
315
  })]
312
316
  }),
313
- /* @__PURE__ */ b("div", {
317
+ /* @__PURE__ */ x("div", {
314
318
  className: "grid gap-2 sm:grid-cols-2",
315
- children: [/* @__PURE__ */ b("div", {
319
+ children: [/* @__PURE__ */ x("div", {
316
320
  className: "grid gap-1.5",
317
- children: [/* @__PURE__ */ y(C, {
321
+ children: [/* @__PURE__ */ b(w, {
318
322
  htmlFor: "prVolume",
319
323
  children: "Volume *"
320
- }), /* @__PURE__ */ y(S, {
324
+ }), /* @__PURE__ */ b(C, {
321
325
  id: "prVolume",
322
326
  type: "number",
323
327
  min: "0",
324
328
  step: "any",
325
- value: B.volume,
326
- onChange: (e) => V({
327
- ...B,
329
+ value: V.volume,
330
+ onChange: (e) => H({
331
+ ...V,
328
332
  volume: e.target.value
329
333
  }),
330
334
  placeholder: "12500"
331
335
  })]
332
- }), /* @__PURE__ */ b("div", {
336
+ }), /* @__PURE__ */ x("div", {
333
337
  className: "grid gap-1.5",
334
- children: [/* @__PURE__ */ y(C, {
338
+ children: [/* @__PURE__ */ b(w, {
335
339
  htmlFor: "prUnit",
336
340
  children: "Unit"
337
- }), /* @__PURE__ */ b(w, {
338
- value: B.unit,
339
- onValueChange: (e) => V({
340
- ...B,
341
+ }), /* @__PURE__ */ x(T, {
342
+ value: V.unit,
343
+ onValueChange: (e) => H({
344
+ ...V,
341
345
  unit: e
342
346
  }),
343
- children: [/* @__PURE__ */ y(D, {
347
+ children: [/* @__PURE__ */ b(O, {
344
348
  id: "prUnit",
345
- children: /* @__PURE__ */ y(O, {})
346
- }), /* @__PURE__ */ y(T, { children: A.map((e) => /* @__PURE__ */ y(E, {
349
+ children: /* @__PURE__ */ b(k, {})
350
+ }), /* @__PURE__ */ b(E, { children: j.map((e) => /* @__PURE__ */ b(D, {
347
351
  value: e,
348
352
  children: i(e)
349
353
  }, e)) })]
350
354
  })]
351
355
  })]
352
356
  }),
353
- /* @__PURE__ */ b("div", {
357
+ /* @__PURE__ */ x("div", {
354
358
  className: "grid gap-2 sm:grid-cols-2",
355
- children: [/* @__PURE__ */ b("div", {
359
+ children: [/* @__PURE__ */ x("div", {
356
360
  className: "grid gap-1.5",
357
- children: [/* @__PURE__ */ y(C, {
361
+ children: [/* @__PURE__ */ b(w, {
358
362
  htmlFor: "prGrade",
359
363
  children: "Grade"
360
- }), /* @__PURE__ */ y(S, {
364
+ }), /* @__PURE__ */ b(C, {
361
365
  id: "prGrade",
362
366
  type: "number",
363
367
  step: "any",
364
- value: B.grade,
365
- onChange: (e) => V({
366
- ...B,
368
+ value: V.grade,
369
+ onChange: (e) => H({
370
+ ...V,
367
371
  grade: e.target.value
368
372
  }),
369
373
  placeholder: "Quality / concentration"
370
374
  })]
371
- }), /* @__PURE__ */ b("div", {
375
+ }), /* @__PURE__ */ x("div", {
372
376
  className: "grid gap-1.5",
373
- children: [/* @__PURE__ */ y(C, {
377
+ children: [/* @__PURE__ */ b(w, {
374
378
  htmlFor: "prDowntime",
375
379
  children: "Downtime (hours)"
376
- }), /* @__PURE__ */ y(S, {
380
+ }), /* @__PURE__ */ b(C, {
377
381
  id: "prDowntime",
378
382
  type: "number",
379
383
  min: "0",
380
384
  step: "any",
381
- value: B.downtimeHours,
382
- onChange: (e) => V({
383
- ...B,
385
+ value: V.downtimeHours,
386
+ onChange: (e) => H({
387
+ ...V,
384
388
  downtimeHours: e.target.value
385
389
  }),
386
390
  placeholder: "0"
387
391
  })]
388
392
  })]
389
393
  }),
390
- /* @__PURE__ */ b("div", {
394
+ /* @__PURE__ */ x("div", {
391
395
  className: "grid gap-1.5",
392
- children: [/* @__PURE__ */ y(C, {
396
+ children: [/* @__PURE__ */ b(w, {
393
397
  htmlFor: "prNotes",
394
398
  children: "Notes"
395
- }), /* @__PURE__ */ y(k, {
399
+ }), /* @__PURE__ */ b(A, {
396
400
  id: "prNotes",
397
401
  rows: 2,
398
- value: B.notes,
399
- onChange: (e) => V({
400
- ...B,
402
+ value: V.notes,
403
+ onChange: (e) => H({
404
+ ...V,
401
405
  notes: e.target.value
402
406
  }),
403
407
  placeholder: "Optional context about this period."
404
408
  })]
405
409
  }),
406
- H && /* @__PURE__ */ y("p", {
410
+ U && /* @__PURE__ */ b("p", {
407
411
  className: "text-sm text-status-error-text",
408
- children: H
412
+ children: U
409
413
  })
410
414
  ]
411
- }), /* @__PURE__ */ b(de, { children: [/* @__PURE__ */ y(x, {
415
+ }), /* @__PURE__ */ x(fe, { children: [/* @__PURE__ */ b(S, {
412
416
  type: "button",
413
417
  variant: "outline",
414
418
  onClick: Q,
415
419
  children: "Cancel"
416
- }), /* @__PURE__ */ y(x, {
420
+ }), /* @__PURE__ */ b(S, {
417
421
  type: "submit",
418
- disabled: q.isPending,
419
- children: q.isPending ? "Recording…" : "Record production"
422
+ disabled: J.isPending,
423
+ children: J.isPending ? "Recording…" : "Record production"
420
424
  })] })]
421
425
  })] })
422
426
  })
@@ -424,6 +428,6 @@ function P() {
424
428
  });
425
429
  }
426
430
  //#endregion
427
- export { P as ProductionPage };
431
+ export { F as ProductionPage };
428
432
 
429
433
  //# sourceMappingURL=ProductionPage.js.map