@burdenoff/microfe-theglobalfuel 2026.709.1 → 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 (231) 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/theglobalfuel/TheGlobalFuelRoot.d.ts +5 -0
  15. package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts.map +1 -0
  16. package/dist/theglobalfuel/TheGlobalFuelRoot.js +106 -104
  17. package/dist/theglobalfuel/TheGlobalFuelRoot.js.map +1 -1
  18. package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts +4 -0
  19. package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts.map +1 -0
  20. package/dist/theglobalfuel/TheGlobalFuelRoutes.js +60 -38
  21. package/dist/theglobalfuel/TheGlobalFuelRoutes.js.map +1 -1
  22. package/dist/theglobalfuel/components/DataTable.d.ts +30 -0
  23. package/dist/theglobalfuel/components/DataTable.d.ts.map +1 -0
  24. package/dist/theglobalfuel/components/DataTable.js.map +1 -1
  25. package/dist/theglobalfuel/components/EmptyState.d.ts +18 -0
  26. package/dist/theglobalfuel/components/EmptyState.d.ts.map +1 -0
  27. package/dist/theglobalfuel/components/EvidenceUpload.d.ts +14 -0
  28. package/dist/theglobalfuel/components/EvidenceUpload.d.ts.map +1 -0
  29. package/dist/theglobalfuel/components/FileLink.d.ts +15 -0
  30. package/dist/theglobalfuel/components/FileLink.d.ts.map +1 -0
  31. package/dist/theglobalfuel/components/FilterTabs.d.ts +18 -0
  32. package/dist/theglobalfuel/components/FilterTabs.d.ts.map +1 -0
  33. package/dist/theglobalfuel/components/MetricsCard.d.ts +23 -0
  34. package/dist/theglobalfuel/components/MetricsCard.d.ts.map +1 -0
  35. package/dist/theglobalfuel/components/MiniBar.d.ts +16 -0
  36. package/dist/theglobalfuel/components/MiniBar.d.ts.map +1 -0
  37. package/dist/theglobalfuel/components/PageLayout.d.ts +18 -0
  38. package/dist/theglobalfuel/components/PageLayout.d.ts.map +1 -0
  39. package/dist/theglobalfuel/components/PageLayout.js +2 -1
  40. package/dist/theglobalfuel/components/PageLayout.js.map +1 -1
  41. package/dist/theglobalfuel/components/Pagination.d.ts +22 -0
  42. package/dist/theglobalfuel/components/Pagination.d.ts.map +1 -0
  43. package/dist/theglobalfuel/components/StateViews.d.ts +24 -0
  44. package/dist/theglobalfuel/components/StateViews.d.ts.map +1 -0
  45. package/dist/theglobalfuel/components/StatusBadge.d.ts +9 -0
  46. package/dist/theglobalfuel/components/StatusBadge.d.ts.map +1 -0
  47. package/dist/theglobalfuel/components/Tabs.d.ts +17 -0
  48. package/dist/theglobalfuel/components/Tabs.d.ts.map +1 -0
  49. package/dist/theglobalfuel/components/TheDiscussion.d.ts +18 -0
  50. package/dist/theglobalfuel/components/TheDiscussion.d.ts.map +1 -0
  51. package/dist/theglobalfuel/components/TheTags.d.ts +17 -0
  52. package/dist/theglobalfuel/components/TheTags.d.ts.map +1 -0
  53. package/dist/theglobalfuel/components/WorldMap.d.ts +18 -0
  54. package/dist/theglobalfuel/components/WorldMap.d.ts.map +1 -0
  55. package/dist/theglobalfuel/components/WorldMap.js.map +1 -1
  56. package/dist/theglobalfuel/components/index.d.ts +21 -0
  57. package/dist/theglobalfuel/components/index.d.ts.map +1 -0
  58. package/dist/theglobalfuel/components/viz/AllocationBar.d.ts +21 -0
  59. package/dist/theglobalfuel/components/viz/AllocationBar.d.ts.map +1 -0
  60. package/dist/theglobalfuel/components/viz/AreaChart.d.ts +18 -0
  61. package/dist/theglobalfuel/components/viz/AreaChart.d.ts.map +1 -0
  62. package/dist/theglobalfuel/components/viz/AvatarStack.d.ts +13 -0
  63. package/dist/theglobalfuel/components/viz/AvatarStack.d.ts.map +1 -0
  64. package/dist/theglobalfuel/components/viz/BarChart.d.ts +17 -0
  65. package/dist/theglobalfuel/components/viz/BarChart.d.ts.map +1 -0
  66. package/dist/theglobalfuel/components/viz/CertificateCard.d.ts +14 -0
  67. package/dist/theglobalfuel/components/viz/CertificateCard.d.ts.map +1 -0
  68. package/dist/theglobalfuel/components/viz/DonutChart.d.ts +20 -0
  69. package/dist/theglobalfuel/components/viz/DonutChart.d.ts.map +1 -0
  70. package/dist/theglobalfuel/components/viz/HBarFunnel.d.ts +17 -0
  71. package/dist/theglobalfuel/components/viz/HBarFunnel.d.ts.map +1 -0
  72. package/dist/theglobalfuel/components/viz/Heatmap.d.ts +26 -0
  73. package/dist/theglobalfuel/components/viz/Heatmap.d.ts.map +1 -0
  74. package/dist/theglobalfuel/components/viz/KanbanBoard.d.ts +17 -0
  75. package/dist/theglobalfuel/components/viz/KanbanBoard.d.ts.map +1 -0
  76. package/dist/theglobalfuel/components/viz/LineChart.d.ts +20 -0
  77. package/dist/theglobalfuel/components/viz/LineChart.d.ts.map +1 -0
  78. package/dist/theglobalfuel/components/viz/OrgTree.d.ts +14 -0
  79. package/dist/theglobalfuel/components/viz/OrgTree.d.ts.map +1 -0
  80. package/dist/theglobalfuel/components/viz/PathSteps.d.ts +17 -0
  81. package/dist/theglobalfuel/components/viz/PathSteps.d.ts.map +1 -0
  82. package/dist/theglobalfuel/components/viz/ProgressRing.d.ts +20 -0
  83. package/dist/theglobalfuel/components/viz/ProgressRing.d.ts.map +1 -0
  84. package/dist/theglobalfuel/components/viz/RatingStars.d.ts +14 -0
  85. package/dist/theglobalfuel/components/viz/RatingStars.d.ts.map +1 -0
  86. package/dist/theglobalfuel/components/viz/SegmentedTabs.d.ts +26 -0
  87. package/dist/theglobalfuel/components/viz/SegmentedTabs.d.ts.map +1 -0
  88. package/dist/theglobalfuel/components/viz/SkillBar.d.ts +17 -0
  89. package/dist/theglobalfuel/components/viz/SkillBar.d.ts.map +1 -0
  90. package/dist/theglobalfuel/components/viz/Sparkline.d.ts +16 -0
  91. package/dist/theglobalfuel/components/viz/Sparkline.d.ts.map +1 -0
  92. package/dist/theglobalfuel/components/viz/StatCard.d.ts +22 -0
  93. package/dist/theglobalfuel/components/viz/StatCard.d.ts.map +1 -0
  94. package/dist/theglobalfuel/components/viz/StepProgress.d.ts +17 -0
  95. package/dist/theglobalfuel/components/viz/StepProgress.d.ts.map +1 -0
  96. package/dist/theglobalfuel/components/viz/Timeline.d.ts +21 -0
  97. package/dist/theglobalfuel/components/viz/Timeline.d.ts.map +1 -0
  98. package/dist/theglobalfuel/components/viz/index.d.ts +35 -0
  99. package/dist/theglobalfuel/components/viz/index.d.ts.map +1 -0
  100. package/dist/theglobalfuel/components/viz/lib/Avatar.d.ts +15 -0
  101. package/dist/theglobalfuel/components/viz/lib/Avatar.d.ts.map +1 -0
  102. package/dist/theglobalfuel/components/viz/lib/CartesianFrame.d.ts +44 -0
  103. package/dist/theglobalfuel/components/viz/lib/CartesianFrame.d.ts.map +1 -0
  104. package/dist/theglobalfuel/components/viz/lib/ResponsiveSvg.d.ts +27 -0
  105. package/dist/theglobalfuel/components/viz/lib/ResponsiveSvg.d.ts.map +1 -0
  106. package/dist/theglobalfuel/components/viz/lib/format.d.ts +10 -0
  107. package/dist/theglobalfuel/components/viz/lib/format.d.ts.map +1 -0
  108. package/dist/theglobalfuel/components/viz/lib/geometry.d.ts +41 -0
  109. package/dist/theglobalfuel/components/viz/lib/geometry.d.ts.map +1 -0
  110. package/dist/theglobalfuel/components/viz/lib/hooks.d.ts +18 -0
  111. package/dist/theglobalfuel/components/viz/lib/hooks.d.ts.map +1 -0
  112. package/dist/theglobalfuel/components/viz/lib/palette.d.ts +31 -0
  113. package/dist/theglobalfuel/components/viz/lib/palette.d.ts.map +1 -0
  114. package/dist/theglobalfuel/components/viz/lib/types.d.ts +27 -0
  115. package/dist/theglobalfuel/components/viz/lib/types.d.ts.map +1 -0
  116. package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts +16 -0
  117. package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts.map +1 -0
  118. package/dist/theglobalfuel/context/index.d.ts +6 -0
  119. package/dist/theglobalfuel/context/index.d.ts.map +1 -0
  120. package/dist/theglobalfuel/hooks/index.d.ts +15 -0
  121. package/dist/theglobalfuel/hooks/index.d.ts.map +1 -0
  122. package/dist/theglobalfuel/hooks/index.js +3 -0
  123. package/dist/theglobalfuel/hooks/useCursorPager.d.ts +26 -0
  124. package/dist/theglobalfuel/hooks/useCursorPager.d.ts.map +1 -0
  125. package/dist/theglobalfuel/hooks/useNotify.d.ts +23 -0
  126. package/dist/theglobalfuel/hooks/useNotify.d.ts.map +1 -0
  127. package/dist/theglobalfuel/hooks/useTheAnalytics.d.ts +38 -0
  128. package/dist/theglobalfuel/hooks/useTheAnalytics.d.ts.map +1 -0
  129. package/dist/theglobalfuel/hooks/useTheAnalytics.js +1 -0
  130. package/dist/theglobalfuel/hooks/useTheAnalytics.js.map +1 -1
  131. package/dist/theglobalfuel/hooks/useTheComments.d.ts +36 -0
  132. package/dist/theglobalfuel/hooks/useTheComments.d.ts.map +1 -0
  133. package/dist/theglobalfuel/hooks/useTheFiles.d.ts +47 -0
  134. package/dist/theglobalfuel/hooks/useTheFiles.d.ts.map +1 -0
  135. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts +79 -0
  136. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts.map +1 -0
  137. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js +2 -9
  138. package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js.map +1 -1
  139. package/dist/theglobalfuel/hooks/useTheNativeControls.d.ts +20 -0
  140. package/dist/theglobalfuel/hooks/useTheNativeControls.d.ts.map +1 -0
  141. package/dist/theglobalfuel/hooks/useTheNativeControls.js +22 -0
  142. package/dist/theglobalfuel/hooks/useTheNativeControls.js.map +1 -0
  143. package/dist/theglobalfuel/hooks/useThePageView.d.ts +10 -0
  144. package/dist/theglobalfuel/hooks/useThePageView.d.ts.map +1 -0
  145. package/dist/theglobalfuel/hooks/useThePageView.js +13 -0
  146. package/dist/theglobalfuel/hooks/useThePageView.js.map +1 -0
  147. package/dist/theglobalfuel/hooks/useTheTags.d.ts +44 -0
  148. package/dist/theglobalfuel/hooks/useTheTags.d.ts.map +1 -0
  149. package/dist/theglobalfuel/hooks/useTheTranslation.d.ts +4 -0
  150. package/dist/theglobalfuel/hooks/useTheTranslation.d.ts.map +1 -0
  151. package/dist/theglobalfuel/hooks/useTheTranslation.js +12 -0
  152. package/dist/theglobalfuel/hooks/useTheTranslation.js.map +1 -0
  153. package/dist/theglobalfuel/index.d.ts +11 -0
  154. package/dist/theglobalfuel/index.d.ts.map +1 -0
  155. package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts +13 -0
  156. package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts.map +1 -0
  157. package/dist/theglobalfuel/pages/assets/AssetDetailPage.js +452 -415
  158. package/dist/theglobalfuel/pages/assets/AssetDetailPage.js.map +1 -1
  159. package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts +10 -0
  160. package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts.map +1 -0
  161. package/dist/theglobalfuel/pages/assets/AssetsPage.js +138 -135
  162. package/dist/theglobalfuel/pages/assets/AssetsPage.js.map +1 -1
  163. package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts +11 -0
  164. package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts.map +1 -0
  165. package/dist/theglobalfuel/pages/compliance/CompliancePage.js +233 -229
  166. package/dist/theglobalfuel/pages/compliance/CompliancePage.js.map +1 -1
  167. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts +9 -0
  168. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts.map +1 -0
  169. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js +410 -389
  170. package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js.map +1 -1
  171. package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts +8 -0
  172. package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts.map +1 -0
  173. package/dist/theglobalfuel/pages/contracts/ContractsPage.js +140 -137
  174. package/dist/theglobalfuel/pages/contracts/ContractsPage.js.map +1 -1
  175. package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts +17 -0
  176. package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts.map +1 -0
  177. package/dist/theglobalfuel/pages/dashboard/DashboardPage.js +83 -83
  178. package/dist/theglobalfuel/pages/dashboard/DashboardPage.js.map +1 -1
  179. package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts +13 -0
  180. package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts.map +1 -0
  181. package/dist/theglobalfuel/pages/emissions/EmissionsPage.js +154 -150
  182. package/dist/theglobalfuel/pages/emissions/EmissionsPage.js.map +1 -1
  183. package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts +11 -0
  184. package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts.map +1 -0
  185. package/dist/theglobalfuel/pages/inventory/InventoryPage.js +151 -147
  186. package/dist/theglobalfuel/pages/inventory/InventoryPage.js.map +1 -1
  187. package/dist/theglobalfuel/pages/production/ProductionPage.d.ts +11 -0
  188. package/dist/theglobalfuel/pages/production/ProductionPage.d.ts.map +1 -0
  189. package/dist/theglobalfuel/pages/production/ProductionPage.js +175 -171
  190. package/dist/theglobalfuel/pages/production/ProductionPage.js.map +1 -1
  191. package/dist/theglobalfuel/pages/provenance/ProvenancePage.d.ts +23 -0
  192. package/dist/theglobalfuel/pages/provenance/ProvenancePage.d.ts.map +1 -0
  193. package/dist/theglobalfuel/pages/provenance/ProvenancePage.js +153 -146
  194. package/dist/theglobalfuel/pages/provenance/ProvenancePage.js.map +1 -1
  195. package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts +10 -0
  196. package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts.map +1 -0
  197. package/dist/theglobalfuel/pages/reserves/ReservesPage.js +168 -164
  198. package/dist/theglobalfuel/pages/reserves/ReservesPage.js.map +1 -1
  199. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts +11 -0
  200. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts.map +1 -0
  201. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js +179 -175
  202. package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js.map +1 -1
  203. package/dist/theglobalfuel/services/assistantApi.d.ts +25 -0
  204. package/dist/theglobalfuel/services/assistantApi.d.ts.map +1 -0
  205. package/dist/theglobalfuel/services/assistantApi.js.map +1 -1
  206. package/dist/theglobalfuel/services/createSandboxAssistantTransport.d.ts +38 -0
  207. package/dist/theglobalfuel/services/createSandboxAssistantTransport.d.ts.map +1 -0
  208. package/dist/theglobalfuel/services/createSandboxAssistantTransport.js.map +1 -1
  209. package/dist/theglobalfuel/services/index.d.ts +7 -0
  210. package/dist/theglobalfuel/services/index.d.ts.map +1 -0
  211. package/dist/theglobalfuel/types/assistant.d.ts +65 -0
  212. package/dist/theglobalfuel/types/assistant.d.ts.map +1 -0
  213. package/dist/theglobalfuel/types/index.d.ts +376 -0
  214. package/dist/theglobalfuel/types/index.d.ts.map +1 -0
  215. package/dist/theglobalfuel/utils/cn.d.ts +4 -0
  216. package/dist/theglobalfuel/utils/cn.d.ts.map +1 -0
  217. package/dist/theglobalfuel/utils/formatters.d.ts +44 -0
  218. package/dist/theglobalfuel/utils/formatters.d.ts.map +1 -0
  219. package/dist/theglobalfuel/utils/i18n.d.ts +5 -0
  220. package/dist/theglobalfuel/utils/i18n.d.ts.map +1 -0
  221. package/dist/theglobalfuel/utils/i18n.js +15 -0
  222. package/dist/theglobalfuel/utils/i18n.js.map +1 -0
  223. package/dist/theglobalfuel/utils/index.d.ts +10 -0
  224. package/dist/theglobalfuel/utils/index.d.ts.map +1 -0
  225. package/dist/theglobalfuel/utils/navigation.d.ts +14 -0
  226. package/dist/theglobalfuel/utils/navigation.d.ts.map +1 -0
  227. package/dist/theglobalfuel/utils/pageContext.d.ts +26 -0
  228. package/dist/theglobalfuel/utils/pageContext.d.ts.map +1 -0
  229. package/dist/theglobalfuel/utils/transitions.d.ts +17 -0
  230. package/dist/theglobalfuel/utils/transitions.d.ts.map +1 -0
  231. package/package.json +1 -1
@@ -3,21 +3,24 @@ import { PageLayout as t } from "../../components/PageLayout.js";
3
3
  import { formatEnumLabel as n, formatMoney as ee, formatUnit as r, formatVolume as i, toBackendDate as a } from "../../utils/formatters.js";
4
4
  import { StatusBadge as o } from "../../components/StatusBadge.js";
5
5
  import { MiniBar as s } from "../../components/MiniBar.js";
6
- import { DataTable as te } from "../../components/DataTable.js";
7
- import { ErrorView as ne, LoadingView as re } from "../../components/StateViews.js";
8
- import { EmptyState as ie } from "../../components/EmptyState.js";
6
+ import { DataTable as c } from "../../components/DataTable.js";
7
+ import { ErrorView as te, LoadingView as ne } from "../../components/StateViews.js";
8
+ import { EmptyState as re } from "../../components/EmptyState.js";
9
9
  import "../../context/index.js";
10
- import { useTheContracts as ae, useTheCreateContract as c } from "../../hooks/useTheGlobalFuelApi.js";
11
- import { useCursorPager as oe } from "../../hooks/useCursorPager.js";
12
- import { useNotify as se } from "../../hooks/useNotify.js";
13
- import { useTheAnalytics as ce } from "../../hooks/useTheAnalytics.js";
10
+ import { useTheContracts as l, useTheCreateContract as u } from "../../hooks/useTheGlobalFuelApi.js";
11
+ import { useCursorPager as d } from "../../hooks/useCursorPager.js";
12
+ import { useNotify as f } from "../../hooks/useNotify.js";
13
+ import { useTheAnalytics as p } from "../../hooks/useTheAnalytics.js";
14
+ import { useThePageView as ie } from "../../hooks/useThePageView.js";
15
+ import { useTheNativeControls as ae } from "../../hooks/useTheNativeControls.js";
16
+ import { useTheTranslation as oe } from "../../hooks/useTheTranslation.js";
14
17
  import "../../hooks/index.js";
15
- import { FilterTabs as le } from "../../components/FilterTabs.js";
16
- import { Pagination as ue } from "../../components/Pagination.js";
17
- import { useMemo as de, useState as l } from "react";
18
- import { FileSignature as u, Plus as d } from "lucide-react";
19
- import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
20
- import { Button as h, Input as g, Label as _, ResponsiveDialog as v, ResponsiveDialogContent as y, ResponsiveDialogDescription as b, ResponsiveDialogFooter as x, ResponsiveDialogHeader as S, ResponsiveDialogTitle as fe, Select as C, SelectContent as w, SelectItem as T, SelectTrigger as E, SelectValue as D, Textarea as O } from "@burdenoff/fe-libs/ui";
18
+ import { FilterTabs as se } from "../../components/FilterTabs.js";
19
+ import { Pagination as ce } from "../../components/Pagination.js";
20
+ import { useMemo as le, useState as m } from "react";
21
+ import { FileSignature as h, Plus as g } from "lucide-react";
22
+ import { Fragment as ue, jsx as _, jsxs as v } from "react/jsx-runtime";
23
+ import { Button as y, Input as b, Label as x, ResponsiveDialog as S, ResponsiveDialogContent as de, ResponsiveDialogDescription as fe, ResponsiveDialogFooter as pe, ResponsiveDialogHeader as me, ResponsiveDialogTitle as he, Select as C, SelectContent as w, SelectItem as T, SelectTrigger as E, SelectValue as D, Textarea as O } from "@burdenoff/fe-libs/ui";
21
24
  //#region src/theglobalfuel/pages/contracts/ContractsPage.tsx
22
25
  var k = [
23
26
  {
@@ -96,29 +99,30 @@ var k = [
96
99
  notes: ""
97
100
  };
98
101
  function R() {
99
- let { navigateTo: F } = e(), R = se(), { trackContractCreateClicked: z, trackContractCreated: B } = ce(), [V, pe] = l("ALL"), [H, me] = l("ALL"), [U, he] = l("ALL"), W = oe(), [ge, G] = l(!1), [K, q] = l(L), [J, Y] = l(null), { data: X, isLoading: _e, isError: ve, refetch: ye } = ae({
100
- status: V === "ALL" ? void 0 : V,
102
+ ie("contracts");
103
+ let F = oe(), { navigateTo: R } = e(), z = f(), { haptic: ge } = ae(), { trackContractCreateClicked: _e, trackContractCreated: ve } = p(), [B, V] = m("ALL"), [H, ye] = m("ALL"), [U, be] = m("ALL"), W = d(), [xe, G] = m(!1), [K, q] = m(L), [J, Y] = m(null), { data: X, isLoading: Se, isError: Ce, refetch: we } = l({
104
+ status: B === "ALL" ? void 0 : B,
101
105
  side: H === "ALL" ? void 0 : H,
102
106
  commodity: U === "ALL" ? void 0 : U,
103
107
  pagination: {
104
108
  limit: P,
105
109
  offset: W.page * P
106
110
  }
107
- }), Z = c(), Q = de(() => X?.items ?? [], [X]), be = [
111
+ }), Z = u(), Q = le(() => X?.items ?? [], [X]), Te = [
108
112
  {
109
113
  key: "reference",
110
114
  header: "Contract",
111
- render: (e) => /* @__PURE__ */ m("div", {
115
+ render: (e) => /* @__PURE__ */ v("div", {
112
116
  className: "flex items-center gap-3",
113
- children: [/* @__PURE__ */ p("div", {
117
+ children: [/* @__PURE__ */ _("div", {
114
118
  className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-accent",
115
- children: /* @__PURE__ */ p(u, { className: "h-4 w-4" })
116
- }), /* @__PURE__ */ m("div", {
119
+ children: /* @__PURE__ */ _(h, { className: "h-4 w-4" })
120
+ }), /* @__PURE__ */ v("div", {
117
121
  className: "min-w-0",
118
- children: [/* @__PURE__ */ p("p", {
122
+ children: [/* @__PURE__ */ _("p", {
119
123
  className: "truncate font-semibold text-text-primary",
120
124
  children: e.reference
121
- }), /* @__PURE__ */ p("p", {
125
+ }), /* @__PURE__ */ _("p", {
122
126
  className: "truncate text-xs text-text-tertiary",
123
127
  children: e.counterparty
124
128
  })]
@@ -128,13 +132,13 @@ function R() {
128
132
  {
129
133
  key: "side",
130
134
  header: "Side",
131
- render: (e) => /* @__PURE__ */ p(o, { status: e.side })
135
+ render: (e) => /* @__PURE__ */ _(o, { status: e.side })
132
136
  },
133
137
  {
134
138
  key: "commodity",
135
139
  header: "Commodity",
136
140
  hideOnMobile: !0,
137
- render: (e) => /* @__PURE__ */ p("span", {
141
+ render: (e) => /* @__PURE__ */ _("span", {
138
142
  className: "text-text-secondary",
139
143
  children: n(e.commodity)
140
144
  })
@@ -142,7 +146,7 @@ function R() {
142
146
  {
143
147
  key: "status",
144
148
  header: "Status",
145
- render: (e) => /* @__PURE__ */ p(o, { status: e.status })
149
+ render: (e) => /* @__PURE__ */ _(o, { status: e.status })
146
150
  },
147
151
  {
148
152
  key: "price",
@@ -150,9 +154,9 @@ function R() {
150
154
  align: "right",
151
155
  hideOnMobile: !0,
152
156
  sortValue: (e) => e.pricePerUnit,
153
- render: (e) => /* @__PURE__ */ m("span", {
157
+ render: (e) => /* @__PURE__ */ v("span", {
154
158
  className: "tabular-nums text-text-secondary",
155
- children: [ee(e.pricePerUnit, e.currency), /* @__PURE__ */ m("span", {
159
+ children: [ee(e.pricePerUnit, e.currency), /* @__PURE__ */ v("span", {
156
160
  className: "text-text-tertiary",
157
161
  children: ["/", r(e.unit)]
158
162
  })]
@@ -162,13 +166,13 @@ function R() {
162
166
  key: "delivery",
163
167
  header: "Delivered",
164
168
  sortValue: (e) => I(e),
165
- render: (e) => /* @__PURE__ */ m("div", {
169
+ render: (e) => /* @__PURE__ */ v("div", {
166
170
  className: "min-w-[9rem]",
167
- children: [/* @__PURE__ */ p(s, {
171
+ children: [/* @__PURE__ */ _(s, {
168
172
  value: I(e),
169
173
  barClassName: "bg-[var(--color-status-success-text)]",
170
174
  className: "mb-1"
171
- }), /* @__PURE__ */ m("p", {
175
+ }), /* @__PURE__ */ v("p", {
172
176
  className: "text-xs tabular-nums text-text-tertiary",
173
177
  children: [
174
178
  i(e.deliveredVolume, e.unit),
@@ -183,7 +187,7 @@ function R() {
183
187
  header: "Updated",
184
188
  align: "right",
185
189
  hideOnMobile: !0,
186
- render: (e) => /* @__PURE__ */ p("span", {
190
+ render: (e) => /* @__PURE__ */ _("span", {
187
191
  className: "text-text-tertiary",
188
192
  children: new Date(e.updatedAt).toLocaleDateString(void 0, {
189
193
  day: "numeric",
@@ -194,7 +198,7 @@ function R() {
194
198
  }
195
199
  ], $ = () => {
196
200
  q(L), Y(null);
197
- }, xe = async () => {
201
+ }, Ee = async () => {
198
202
  if (!K.reference.trim()) {
199
203
  Y("Contract reference is required.");
200
204
  return;
@@ -203,7 +207,7 @@ function R() {
203
207
  Y("Counterparty is required.");
204
208
  return;
205
209
  }
206
- Y(null), z();
210
+ Y(null), ge("light"), _e();
207
211
  try {
208
212
  let e = await Z.mutateAsync({
209
213
  reference: K.reference.trim(),
@@ -221,112 +225,111 @@ function R() {
221
225
  endDate: a(K.endDate) ?? null,
222
226
  notes: K.notes.trim() || null
223
227
  });
224
- B(e.id), R.success("Contract created"), G(!1), $(), F(`contracts/${e.id}`);
228
+ ve(e.id), z.success("Contract created"), G(!1), $(), R(`contracts/${e.id}`);
225
229
  } catch (e) {
226
- Y(e instanceof Error ? e.message : "Failed to create contract."), R.fromError(e);
230
+ Y(e instanceof Error ? e.message : "Failed to create contract."), z.fromError(e);
227
231
  }
228
232
  };
229
- return /* @__PURE__ */ m(t, {
230
- title: "Offtake Contracts",
231
- description: "Commodity purchase & sale agreements — pricing, contracted volume and delivery progress.",
232
- actions: /* @__PURE__ */ m(h, {
233
+ return /* @__PURE__ */ v(t, {
234
+ title: F("theglobalfuel.pages.contracts.title", "Offtake Contracts"),
235
+ description: F("theglobalfuel.pages.contracts.description", "Commodity purchase & sale agreements — pricing, contracted volume and delivery progress."),
236
+ dataTour: "theglobalfuel-contracts-page",
237
+ actions: /* @__PURE__ */ v(y, {
233
238
  onClick: () => G(!0),
234
- "data-rybbit-event": "theglobalfuel.contract.create_clicked",
235
- children: [/* @__PURE__ */ p(d, { className: "mr-1.5 h-4 w-4" }), " New contract"]
239
+ children: [/* @__PURE__ */ _(g, { className: "mr-1.5 h-4 w-4" }), " New contract"]
236
240
  }),
237
241
  children: [
238
- /* @__PURE__ */ m("div", {
242
+ /* @__PURE__ */ v("div", {
239
243
  className: "mb-5 flex flex-wrap items-center gap-3",
240
244
  children: [
241
- /* @__PURE__ */ p(le, {
245
+ /* @__PURE__ */ _(se, {
242
246
  options: k,
243
- value: V,
247
+ value: B,
244
248
  onChange: (e) => {
245
- pe(e), W.reset();
249
+ V(e), W.reset();
246
250
  }
247
251
  }),
248
- /* @__PURE__ */ m(C, {
252
+ /* @__PURE__ */ v(C, {
249
253
  value: H,
250
254
  onValueChange: (e) => {
251
- me(e), W.reset();
255
+ ye(e), W.reset();
252
256
  },
253
- children: [/* @__PURE__ */ p(E, {
257
+ children: [/* @__PURE__ */ _(E, {
254
258
  className: "w-40",
255
259
  "aria-label": "Filter by side",
256
- children: /* @__PURE__ */ p(D, { placeholder: "All sides" })
257
- }), /* @__PURE__ */ m(w, { children: [/* @__PURE__ */ p(T, {
260
+ children: /* @__PURE__ */ _(D, { placeholder: "All sides" })
261
+ }), /* @__PURE__ */ v(w, { children: [/* @__PURE__ */ _(T, {
258
262
  value: "ALL",
259
263
  children: "All sides"
260
- }), A.map((e) => /* @__PURE__ */ p(T, {
264
+ }), A.map((e) => /* @__PURE__ */ _(T, {
261
265
  value: e,
262
266
  children: n(e)
263
267
  }, e))] })]
264
268
  }),
265
- /* @__PURE__ */ m(C, {
269
+ /* @__PURE__ */ v(C, {
266
270
  value: U,
267
271
  onValueChange: (e) => {
268
- he(e), W.reset();
272
+ be(e), W.reset();
269
273
  },
270
- children: [/* @__PURE__ */ p(E, {
274
+ children: [/* @__PURE__ */ _(E, {
271
275
  className: "w-48",
272
276
  "aria-label": "Filter by commodity",
273
- children: /* @__PURE__ */ p(D, { placeholder: "All commodities" })
274
- }), /* @__PURE__ */ m(w, { children: [/* @__PURE__ */ p(T, {
277
+ children: /* @__PURE__ */ _(D, { placeholder: "All commodities" })
278
+ }), /* @__PURE__ */ v(w, { children: [/* @__PURE__ */ _(T, {
275
279
  value: "ALL",
276
280
  children: "All commodities"
277
- }), M.map((e) => /* @__PURE__ */ p(T, {
281
+ }), M.map((e) => /* @__PURE__ */ _(T, {
278
282
  value: e,
279
283
  children: n(e)
280
284
  }, e))] })]
281
285
  })
282
286
  ]
283
287
  }),
284
- _e ? /* @__PURE__ */ p(re, { label: "Loading contracts…" }) : ve ? /* @__PURE__ */ p(ne, {
288
+ Se ? /* @__PURE__ */ _(ne, { label: "Loading contracts…" }) : Ce ? /* @__PURE__ */ _(te, {
285
289
  message: "Couldn't load contracts.",
286
- onRetry: () => ye()
287
- }) : Q.length === 0 ? /* @__PURE__ */ p(ie, {
290
+ onRetry: () => we()
291
+ }) : Q.length === 0 ? /* @__PURE__ */ _(re, {
288
292
  illustration: "empty-data",
289
- icon: /* @__PURE__ */ p(u, { className: "h-10 w-10" }),
293
+ icon: /* @__PURE__ */ _(h, { className: "h-10 w-10" }),
290
294
  title: "No contracts yet",
291
- description: V === "ALL" && H === "ALL" && U === "ALL" ? "Create your first offtake contract to track pricing, volume and delivery." : "No contracts match these filters.",
292
- action: /* @__PURE__ */ m(h, {
295
+ description: B === "ALL" && H === "ALL" && U === "ALL" ? "Create your first offtake contract to track pricing, volume and delivery." : "No contracts match these filters.",
296
+ action: /* @__PURE__ */ v(y, {
293
297
  onClick: () => G(!0),
294
- "data-rybbit-event": "theglobalfuel.contract.create_clicked",
295
- children: [/* @__PURE__ */ p(d, { className: "mr-1.5 h-4 w-4" }), " New contract"]
298
+ children: [/* @__PURE__ */ _(g, { className: "mr-1.5 h-4 w-4" }), " New contract"]
296
299
  })
297
- }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(te, {
298
- columns: be,
300
+ }) : /* @__PURE__ */ v(ue, { children: [/* @__PURE__ */ _(c, {
301
+ columns: Te,
299
302
  rows: Q,
300
303
  rowKey: (e) => e.id,
301
- onRowClick: (e) => F(`contracts/${e.id}`),
304
+ onRowClick: (e) => R(`contracts/${e.id}`),
302
305
  rowLabel: (e) => `Open ${e.reference}`
303
- }), /* @__PURE__ */ p(ue, {
306
+ }), /* @__PURE__ */ _(ce, {
304
307
  page: W.page,
305
308
  pageSize: P,
306
309
  itemCount: Q.length,
307
310
  hasMore: X?.pageInfo?.hasMore ?? !1,
308
311
  onPageChange: W.onPageChange
309
312
  })] }),
310
- /* @__PURE__ */ p(v, {
311
- open: ge,
313
+ /* @__PURE__ */ _(S, {
314
+ open: xe,
312
315
  onOpenChange: (e) => {
313
316
  G(e), e || $();
314
317
  },
315
- children: /* @__PURE__ */ m(y, { children: [/* @__PURE__ */ m(S, { children: [/* @__PURE__ */ p(fe, { children: "New offtake contract" }), /* @__PURE__ */ p(b, { children: "Register a commodity purchase or sale agreement with a counterparty." })] }), /* @__PURE__ */ m("form", {
318
+ children: /* @__PURE__ */ v(de, { children: [/* @__PURE__ */ v(me, { children: [/* @__PURE__ */ _(he, { children: "New offtake contract" }), /* @__PURE__ */ _(fe, { children: "Register a commodity purchase or sale agreement with a counterparty." })] }), /* @__PURE__ */ v("form", {
316
319
  onSubmit: (e) => {
317
- e.preventDefault(), xe();
320
+ e.preventDefault(), Ee();
318
321
  },
319
- children: [/* @__PURE__ */ m("div", {
322
+ children: [/* @__PURE__ */ v("div", {
320
323
  className: "grid gap-4 py-2",
321
324
  children: [
322
- /* @__PURE__ */ m("div", {
325
+ /* @__PURE__ */ v("div", {
323
326
  className: "grid gap-2 sm:grid-cols-2",
324
- children: [/* @__PURE__ */ m("div", {
327
+ children: [/* @__PURE__ */ v("div", {
325
328
  className: "grid gap-1.5",
326
- children: [/* @__PURE__ */ p(_, {
329
+ children: [/* @__PURE__ */ _(x, {
327
330
  htmlFor: "reference",
328
331
  children: "Reference *"
329
- }), /* @__PURE__ */ p(g, {
332
+ }), /* @__PURE__ */ _(b, {
330
333
  id: "reference",
331
334
  value: K.reference,
332
335
  onChange: (e) => q({
@@ -335,12 +338,12 @@ function R() {
335
338
  }),
336
339
  placeholder: "OFT-2026-0142"
337
340
  })]
338
- }), /* @__PURE__ */ m("div", {
341
+ }), /* @__PURE__ */ v("div", {
339
342
  className: "grid gap-1.5",
340
- children: [/* @__PURE__ */ p(_, {
343
+ children: [/* @__PURE__ */ _(x, {
341
344
  htmlFor: "counterparty",
342
345
  children: "Counterparty *"
343
- }), /* @__PURE__ */ p(g, {
346
+ }), /* @__PURE__ */ _(b, {
344
347
  id: "counterparty",
345
348
  value: K.counterparty,
346
349
  onChange: (e) => q({
@@ -351,75 +354,75 @@ function R() {
351
354
  })]
352
355
  })]
353
356
  }),
354
- /* @__PURE__ */ m("div", {
357
+ /* @__PURE__ */ v("div", {
355
358
  className: "grid gap-2 sm:grid-cols-2",
356
- children: [/* @__PURE__ */ m("div", {
359
+ children: [/* @__PURE__ */ v("div", {
357
360
  className: "grid gap-1.5",
358
- children: [/* @__PURE__ */ p(_, {
361
+ children: [/* @__PURE__ */ _(x, {
359
362
  htmlFor: "commodity",
360
363
  children: "Commodity *"
361
- }), /* @__PURE__ */ m(C, {
364
+ }), /* @__PURE__ */ v(C, {
362
365
  value: K.commodity,
363
366
  onValueChange: (e) => q({
364
367
  ...K,
365
368
  commodity: e
366
369
  }),
367
- children: [/* @__PURE__ */ p(E, {
370
+ children: [/* @__PURE__ */ _(E, {
368
371
  id: "commodity",
369
- children: /* @__PURE__ */ p(D, {})
370
- }), /* @__PURE__ */ p(w, { children: M.map((e) => /* @__PURE__ */ p(T, {
372
+ children: /* @__PURE__ */ _(D, {})
373
+ }), /* @__PURE__ */ _(w, { children: M.map((e) => /* @__PURE__ */ _(T, {
371
374
  value: e,
372
375
  children: n(e)
373
376
  }, e)) })]
374
377
  })]
375
- }), /* @__PURE__ */ m("div", {
378
+ }), /* @__PURE__ */ v("div", {
376
379
  className: "grid gap-1.5",
377
- children: [/* @__PURE__ */ p(_, {
380
+ children: [/* @__PURE__ */ _(x, {
378
381
  htmlFor: "side",
379
382
  children: "Side"
380
- }), /* @__PURE__ */ m(C, {
383
+ }), /* @__PURE__ */ v(C, {
381
384
  value: K.side,
382
385
  onValueChange: (e) => q({
383
386
  ...K,
384
387
  side: e
385
388
  }),
386
- children: [/* @__PURE__ */ p(E, {
389
+ children: [/* @__PURE__ */ _(E, {
387
390
  id: "side",
388
- children: /* @__PURE__ */ p(D, {})
389
- }), /* @__PURE__ */ p(w, { children: A.map((e) => /* @__PURE__ */ p(T, {
391
+ children: /* @__PURE__ */ _(D, {})
392
+ }), /* @__PURE__ */ _(w, { children: A.map((e) => /* @__PURE__ */ _(T, {
390
393
  value: e,
391
394
  children: n(e)
392
395
  }, e)) })]
393
396
  })]
394
397
  })]
395
398
  }),
396
- /* @__PURE__ */ m("div", {
399
+ /* @__PURE__ */ v("div", {
397
400
  className: "grid gap-2 sm:grid-cols-2",
398
- children: [/* @__PURE__ */ m("div", {
401
+ children: [/* @__PURE__ */ v("div", {
399
402
  className: "grid gap-1.5",
400
- children: [/* @__PURE__ */ p(_, {
403
+ children: [/* @__PURE__ */ _(x, {
401
404
  htmlFor: "pricingBasis",
402
405
  children: "Pricing basis"
403
- }), /* @__PURE__ */ m(C, {
406
+ }), /* @__PURE__ */ v(C, {
404
407
  value: K.pricingBasis,
405
408
  onValueChange: (e) => q({
406
409
  ...K,
407
410
  pricingBasis: e
408
411
  }),
409
- children: [/* @__PURE__ */ p(E, {
412
+ children: [/* @__PURE__ */ _(E, {
410
413
  id: "pricingBasis",
411
- children: /* @__PURE__ */ p(D, {})
412
- }), /* @__PURE__ */ p(w, { children: j.map((e) => /* @__PURE__ */ p(T, {
414
+ children: /* @__PURE__ */ _(D, {})
415
+ }), /* @__PURE__ */ _(w, { children: j.map((e) => /* @__PURE__ */ _(T, {
413
416
  value: e,
414
417
  children: n(e)
415
418
  }, e)) })]
416
419
  })]
417
- }), /* @__PURE__ */ m("div", {
420
+ }), /* @__PURE__ */ v("div", {
418
421
  className: "grid gap-1.5",
419
- children: [/* @__PURE__ */ p(_, {
422
+ children: [/* @__PURE__ */ _(x, {
420
423
  htmlFor: "priceIndex",
421
424
  children: "Price index"
422
- }), /* @__PURE__ */ p(g, {
425
+ }), /* @__PURE__ */ _(b, {
423
426
  id: "priceIndex",
424
427
  value: K.priceIndex,
425
428
  onChange: (e) => q({
@@ -430,15 +433,15 @@ function R() {
430
433
  })]
431
434
  })]
432
435
  }),
433
- /* @__PURE__ */ m("div", {
436
+ /* @__PURE__ */ v("div", {
434
437
  className: "grid gap-2 sm:grid-cols-3",
435
438
  children: [
436
- /* @__PURE__ */ m("div", {
439
+ /* @__PURE__ */ v("div", {
437
440
  className: "grid gap-1.5",
438
- children: [/* @__PURE__ */ p(_, {
441
+ children: [/* @__PURE__ */ _(x, {
439
442
  htmlFor: "pricePerUnit",
440
443
  children: "Price / unit"
441
- }), /* @__PURE__ */ p(g, {
444
+ }), /* @__PURE__ */ _(b, {
442
445
  id: "pricePerUnit",
443
446
  type: "number",
444
447
  min: "0",
@@ -451,12 +454,12 @@ function R() {
451
454
  placeholder: "82.50"
452
455
  })]
453
456
  }),
454
- /* @__PURE__ */ m("div", {
457
+ /* @__PURE__ */ v("div", {
455
458
  className: "grid gap-1.5",
456
- children: [/* @__PURE__ */ p(_, {
459
+ children: [/* @__PURE__ */ _(x, {
457
460
  htmlFor: "currency",
458
461
  children: "Currency"
459
- }), /* @__PURE__ */ p(g, {
462
+ }), /* @__PURE__ */ _(b, {
460
463
  id: "currency",
461
464
  value: K.currency,
462
465
  onChange: (e) => q({
@@ -466,21 +469,21 @@ function R() {
466
469
  placeholder: "USD"
467
470
  })]
468
471
  }),
469
- /* @__PURE__ */ m("div", {
472
+ /* @__PURE__ */ v("div", {
470
473
  className: "grid gap-1.5",
471
- children: [/* @__PURE__ */ p(_, {
474
+ children: [/* @__PURE__ */ _(x, {
472
475
  htmlFor: "unit",
473
476
  children: "Unit"
474
- }), /* @__PURE__ */ m(C, {
477
+ }), /* @__PURE__ */ v(C, {
475
478
  value: K.unit,
476
479
  onValueChange: (e) => q({
477
480
  ...K,
478
481
  unit: e
479
482
  }),
480
- children: [/* @__PURE__ */ p(E, {
483
+ children: [/* @__PURE__ */ _(E, {
481
484
  id: "unit",
482
- children: /* @__PURE__ */ p(D, {})
483
- }), /* @__PURE__ */ p(w, { children: N.map((e) => /* @__PURE__ */ p(T, {
485
+ children: /* @__PURE__ */ _(D, {})
486
+ }), /* @__PURE__ */ _(w, { children: N.map((e) => /* @__PURE__ */ _(T, {
484
487
  value: e,
485
488
  children: r(e)
486
489
  }, e)) })]
@@ -488,14 +491,14 @@ function R() {
488
491
  })
489
492
  ]
490
493
  }),
491
- /* @__PURE__ */ m("div", {
494
+ /* @__PURE__ */ v("div", {
492
495
  className: "grid gap-2 sm:grid-cols-2",
493
- children: [/* @__PURE__ */ m("div", {
496
+ children: [/* @__PURE__ */ v("div", {
494
497
  className: "grid gap-1.5",
495
- children: [/* @__PURE__ */ p(_, {
498
+ children: [/* @__PURE__ */ _(x, {
496
499
  htmlFor: "contractedVolume",
497
500
  children: "Contracted volume"
498
- }), /* @__PURE__ */ p(g, {
501
+ }), /* @__PURE__ */ _(b, {
499
502
  id: "contractedVolume",
500
503
  type: "number",
501
504
  min: "0",
@@ -507,12 +510,12 @@ function R() {
507
510
  }),
508
511
  placeholder: "500000"
509
512
  })]
510
- }), /* @__PURE__ */ m("div", {
513
+ }), /* @__PURE__ */ v("div", {
511
514
  className: "grid gap-1.5",
512
- children: [/* @__PURE__ */ p(_, {
515
+ children: [/* @__PURE__ */ _(x, {
513
516
  htmlFor: "deliveryLocation",
514
517
  children: "Delivery location"
515
- }), /* @__PURE__ */ p(g, {
518
+ }), /* @__PURE__ */ _(b, {
516
519
  id: "deliveryLocation",
517
520
  value: K.deliveryLocation,
518
521
  onChange: (e) => q({
@@ -523,14 +526,14 @@ function R() {
523
526
  })]
524
527
  })]
525
528
  }),
526
- /* @__PURE__ */ m("div", {
529
+ /* @__PURE__ */ v("div", {
527
530
  className: "grid gap-2 sm:grid-cols-2",
528
- children: [/* @__PURE__ */ m("div", {
531
+ children: [/* @__PURE__ */ v("div", {
529
532
  className: "grid gap-1.5",
530
- children: [/* @__PURE__ */ p(_, {
533
+ children: [/* @__PURE__ */ _(x, {
531
534
  htmlFor: "startDate",
532
535
  children: "Start date"
533
- }), /* @__PURE__ */ p(g, {
536
+ }), /* @__PURE__ */ _(b, {
534
537
  id: "startDate",
535
538
  type: "date",
536
539
  value: K.startDate,
@@ -539,12 +542,12 @@ function R() {
539
542
  startDate: e.target.value
540
543
  })
541
544
  })]
542
- }), /* @__PURE__ */ m("div", {
545
+ }), /* @__PURE__ */ v("div", {
543
546
  className: "grid gap-1.5",
544
- children: [/* @__PURE__ */ p(_, {
547
+ children: [/* @__PURE__ */ _(x, {
545
548
  htmlFor: "endDate",
546
549
  children: "End date"
547
- }), /* @__PURE__ */ p(g, {
550
+ }), /* @__PURE__ */ _(b, {
548
551
  id: "endDate",
549
552
  type: "date",
550
553
  value: K.endDate,
@@ -555,12 +558,12 @@ function R() {
555
558
  })]
556
559
  })]
557
560
  }),
558
- /* @__PURE__ */ m("div", {
561
+ /* @__PURE__ */ v("div", {
559
562
  className: "grid gap-1.5",
560
- children: [/* @__PURE__ */ p(_, {
563
+ children: [/* @__PURE__ */ _(x, {
561
564
  htmlFor: "notes",
562
565
  children: "Notes"
563
- }), /* @__PURE__ */ p(O, {
566
+ }), /* @__PURE__ */ _(O, {
564
567
  id: "notes",
565
568
  rows: 2,
566
569
  value: K.notes,
@@ -571,19 +574,19 @@ function R() {
571
574
  placeholder: "Optional context about this contract."
572
575
  })]
573
576
  }),
574
- J && /* @__PURE__ */ p("p", {
577
+ J && /* @__PURE__ */ _("p", {
575
578
  className: "text-sm text-status-error-text",
576
579
  children: J
577
580
  })
578
581
  ]
579
- }), /* @__PURE__ */ m(x, { children: [/* @__PURE__ */ p(h, {
582
+ }), /* @__PURE__ */ v(pe, { children: [/* @__PURE__ */ _(y, {
580
583
  type: "button",
581
584
  variant: "outline",
582
585
  onClick: () => {
583
586
  G(!1), $();
584
587
  },
585
588
  children: "Cancel"
586
- }), /* @__PURE__ */ p(h, {
589
+ }), /* @__PURE__ */ _(y, {
587
590
  type: "submit",
588
591
  disabled: Z.isPending,
589
592
  children: Z.isPending ? "Creating…" : "Create contract"