@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.
- package/README.md +3 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +18199 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +43046 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts +5 -0
- package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts.map +1 -0
- package/dist/theglobalfuel/TheGlobalFuelRoot.js +106 -104
- package/dist/theglobalfuel/TheGlobalFuelRoot.js.map +1 -1
- package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts +4 -0
- package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts.map +1 -0
- package/dist/theglobalfuel/TheGlobalFuelRoutes.js +60 -38
- package/dist/theglobalfuel/TheGlobalFuelRoutes.js.map +1 -1
- package/dist/theglobalfuel/components/DataTable.d.ts +30 -0
- package/dist/theglobalfuel/components/DataTable.d.ts.map +1 -0
- package/dist/theglobalfuel/components/DataTable.js.map +1 -1
- package/dist/theglobalfuel/components/EmptyState.d.ts +18 -0
- package/dist/theglobalfuel/components/EmptyState.d.ts.map +1 -0
- package/dist/theglobalfuel/components/EvidenceUpload.d.ts +14 -0
- package/dist/theglobalfuel/components/EvidenceUpload.d.ts.map +1 -0
- package/dist/theglobalfuel/components/FileLink.d.ts +15 -0
- package/dist/theglobalfuel/components/FileLink.d.ts.map +1 -0
- package/dist/theglobalfuel/components/FilterTabs.d.ts +18 -0
- package/dist/theglobalfuel/components/FilterTabs.d.ts.map +1 -0
- package/dist/theglobalfuel/components/MetricsCard.d.ts +23 -0
- package/dist/theglobalfuel/components/MetricsCard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/MiniBar.d.ts +16 -0
- package/dist/theglobalfuel/components/MiniBar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/PageLayout.d.ts +18 -0
- package/dist/theglobalfuel/components/PageLayout.d.ts.map +1 -0
- package/dist/theglobalfuel/components/PageLayout.js +2 -1
- package/dist/theglobalfuel/components/PageLayout.js.map +1 -1
- package/dist/theglobalfuel/components/Pagination.d.ts +22 -0
- package/dist/theglobalfuel/components/Pagination.d.ts.map +1 -0
- package/dist/theglobalfuel/components/StateViews.d.ts +24 -0
- package/dist/theglobalfuel/components/StateViews.d.ts.map +1 -0
- package/dist/theglobalfuel/components/StatusBadge.d.ts +9 -0
- package/dist/theglobalfuel/components/StatusBadge.d.ts.map +1 -0
- package/dist/theglobalfuel/components/Tabs.d.ts +17 -0
- package/dist/theglobalfuel/components/Tabs.d.ts.map +1 -0
- package/dist/theglobalfuel/components/TheDiscussion.d.ts +18 -0
- package/dist/theglobalfuel/components/TheDiscussion.d.ts.map +1 -0
- package/dist/theglobalfuel/components/TheTags.d.ts +17 -0
- package/dist/theglobalfuel/components/TheTags.d.ts.map +1 -0
- package/dist/theglobalfuel/components/WorldMap.d.ts +18 -0
- package/dist/theglobalfuel/components/WorldMap.d.ts.map +1 -0
- package/dist/theglobalfuel/components/WorldMap.js.map +1 -1
- package/dist/theglobalfuel/components/index.d.ts +21 -0
- package/dist/theglobalfuel/components/index.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/AllocationBar.d.ts +21 -0
- package/dist/theglobalfuel/components/viz/AllocationBar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/AreaChart.d.ts +18 -0
- package/dist/theglobalfuel/components/viz/AreaChart.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/AvatarStack.d.ts +13 -0
- package/dist/theglobalfuel/components/viz/AvatarStack.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/BarChart.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/BarChart.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/CertificateCard.d.ts +14 -0
- package/dist/theglobalfuel/components/viz/CertificateCard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/DonutChart.d.ts +20 -0
- package/dist/theglobalfuel/components/viz/DonutChart.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/HBarFunnel.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/HBarFunnel.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/Heatmap.d.ts +26 -0
- package/dist/theglobalfuel/components/viz/Heatmap.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/KanbanBoard.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/KanbanBoard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/LineChart.d.ts +20 -0
- package/dist/theglobalfuel/components/viz/LineChart.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/OrgTree.d.ts +14 -0
- package/dist/theglobalfuel/components/viz/OrgTree.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/PathSteps.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/PathSteps.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/ProgressRing.d.ts +20 -0
- package/dist/theglobalfuel/components/viz/ProgressRing.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/RatingStars.d.ts +14 -0
- package/dist/theglobalfuel/components/viz/RatingStars.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/SegmentedTabs.d.ts +26 -0
- package/dist/theglobalfuel/components/viz/SegmentedTabs.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/SkillBar.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/SkillBar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/Sparkline.d.ts +16 -0
- package/dist/theglobalfuel/components/viz/Sparkline.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/StatCard.d.ts +22 -0
- package/dist/theglobalfuel/components/viz/StatCard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/StepProgress.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/StepProgress.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/Timeline.d.ts +21 -0
- package/dist/theglobalfuel/components/viz/Timeline.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/index.d.ts +35 -0
- package/dist/theglobalfuel/components/viz/index.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/Avatar.d.ts +15 -0
- package/dist/theglobalfuel/components/viz/lib/Avatar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/CartesianFrame.d.ts +44 -0
- package/dist/theglobalfuel/components/viz/lib/CartesianFrame.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/ResponsiveSvg.d.ts +27 -0
- package/dist/theglobalfuel/components/viz/lib/ResponsiveSvg.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/format.d.ts +10 -0
- package/dist/theglobalfuel/components/viz/lib/format.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/geometry.d.ts +41 -0
- package/dist/theglobalfuel/components/viz/lib/geometry.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/hooks.d.ts +18 -0
- package/dist/theglobalfuel/components/viz/lib/hooks.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/palette.d.ts +31 -0
- package/dist/theglobalfuel/components/viz/lib/palette.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/types.d.ts +27 -0
- package/dist/theglobalfuel/components/viz/lib/types.d.ts.map +1 -0
- package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts +16 -0
- package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts.map +1 -0
- package/dist/theglobalfuel/context/index.d.ts +6 -0
- package/dist/theglobalfuel/context/index.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/index.d.ts +15 -0
- package/dist/theglobalfuel/hooks/index.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/index.js +3 -0
- package/dist/theglobalfuel/hooks/useCursorPager.d.ts +26 -0
- package/dist/theglobalfuel/hooks/useCursorPager.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useNotify.d.ts +23 -0
- package/dist/theglobalfuel/hooks/useNotify.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.d.ts +38 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.js +1 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.js.map +1 -1
- package/dist/theglobalfuel/hooks/useTheComments.d.ts +36 -0
- package/dist/theglobalfuel/hooks/useTheComments.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheFiles.d.ts +47 -0
- package/dist/theglobalfuel/hooks/useTheFiles.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts +79 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js +2 -9
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js.map +1 -1
- package/dist/theglobalfuel/hooks/useTheNativeControls.d.ts +20 -0
- package/dist/theglobalfuel/hooks/useTheNativeControls.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheNativeControls.js +22 -0
- package/dist/theglobalfuel/hooks/useTheNativeControls.js.map +1 -0
- package/dist/theglobalfuel/hooks/useThePageView.d.ts +10 -0
- package/dist/theglobalfuel/hooks/useThePageView.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useThePageView.js +13 -0
- package/dist/theglobalfuel/hooks/useThePageView.js.map +1 -0
- package/dist/theglobalfuel/hooks/useTheTags.d.ts +44 -0
- package/dist/theglobalfuel/hooks/useTheTags.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheTranslation.d.ts +4 -0
- package/dist/theglobalfuel/hooks/useTheTranslation.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheTranslation.js +12 -0
- package/dist/theglobalfuel/hooks/useTheTranslation.js.map +1 -0
- package/dist/theglobalfuel/index.d.ts +11 -0
- package/dist/theglobalfuel/index.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts +13 -0
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.js +452 -415
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.js.map +1 -1
- package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts +10 -0
- package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/assets/AssetsPage.js +138 -135
- package/dist/theglobalfuel/pages/assets/AssetsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts +11 -0
- package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/compliance/CompliancePage.js +233 -229
- package/dist/theglobalfuel/pages/compliance/CompliancePage.js.map +1 -1
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts +9 -0
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js +410 -389
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js.map +1 -1
- package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts +8 -0
- package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/contracts/ContractsPage.js +140 -137
- package/dist/theglobalfuel/pages/contracts/ContractsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts +17 -0
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.js +83 -83
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts +13 -0
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.js +154 -150
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts +11 -0
- package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/inventory/InventoryPage.js +151 -147
- package/dist/theglobalfuel/pages/inventory/InventoryPage.js.map +1 -1
- package/dist/theglobalfuel/pages/production/ProductionPage.d.ts +11 -0
- package/dist/theglobalfuel/pages/production/ProductionPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/production/ProductionPage.js +175 -171
- package/dist/theglobalfuel/pages/production/ProductionPage.js.map +1 -1
- package/dist/theglobalfuel/pages/provenance/ProvenancePage.d.ts +23 -0
- package/dist/theglobalfuel/pages/provenance/ProvenancePage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/provenance/ProvenancePage.js +153 -146
- package/dist/theglobalfuel/pages/provenance/ProvenancePage.js.map +1 -1
- package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts +10 -0
- package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/reserves/ReservesPage.js +168 -164
- package/dist/theglobalfuel/pages/reserves/ReservesPage.js.map +1 -1
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts +11 -0
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js +179 -175
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js.map +1 -1
- package/dist/theglobalfuel/services/assistantApi.d.ts +25 -0
- package/dist/theglobalfuel/services/assistantApi.d.ts.map +1 -0
- package/dist/theglobalfuel/services/assistantApi.js.map +1 -1
- package/dist/theglobalfuel/services/createSandboxAssistantTransport.d.ts +38 -0
- package/dist/theglobalfuel/services/createSandboxAssistantTransport.d.ts.map +1 -0
- package/dist/theglobalfuel/services/createSandboxAssistantTransport.js.map +1 -1
- package/dist/theglobalfuel/services/index.d.ts +7 -0
- package/dist/theglobalfuel/services/index.d.ts.map +1 -0
- package/dist/theglobalfuel/types/assistant.d.ts +65 -0
- package/dist/theglobalfuel/types/assistant.d.ts.map +1 -0
- package/dist/theglobalfuel/types/index.d.ts +376 -0
- package/dist/theglobalfuel/types/index.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/cn.d.ts +4 -0
- package/dist/theglobalfuel/utils/cn.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/formatters.d.ts +44 -0
- package/dist/theglobalfuel/utils/formatters.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/i18n.d.ts +5 -0
- package/dist/theglobalfuel/utils/i18n.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/i18n.js +15 -0
- package/dist/theglobalfuel/utils/i18n.js.map +1 -0
- package/dist/theglobalfuel/utils/index.d.ts +10 -0
- package/dist/theglobalfuel/utils/index.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/navigation.d.ts +14 -0
- package/dist/theglobalfuel/utils/navigation.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/pageContext.d.ts +26 -0
- package/dist/theglobalfuel/utils/pageContext.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/transitions.d.ts +17 -0
- package/dist/theglobalfuel/utils/transitions.d.ts.map +1 -0
- 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
|
|
7
|
-
import { ErrorView as
|
|
8
|
-
import { EmptyState as
|
|
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
|
|
11
|
-
import { useCursorPager as
|
|
12
|
-
import { useNotify as
|
|
13
|
-
import { useTheAnalytics as
|
|
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
|
|
16
|
-
import { Pagination as
|
|
17
|
-
import { useMemo as
|
|
18
|
-
import { FileSignature as
|
|
19
|
-
import { Fragment as
|
|
20
|
-
import { Button as
|
|
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
|
-
|
|
100
|
-
|
|
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 =
|
|
111
|
+
}), Z = u(), Q = le(() => X?.items ?? [], [X]), Te = [
|
|
108
112
|
{
|
|
109
113
|
key: "reference",
|
|
110
114
|
header: "Contract",
|
|
111
|
-
render: (e) => /* @__PURE__ */
|
|
115
|
+
render: (e) => /* @__PURE__ */ v("div", {
|
|
112
116
|
className: "flex items-center gap-3",
|
|
113
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
116
|
-
}), /* @__PURE__ */
|
|
119
|
+
children: /* @__PURE__ */ _(h, { className: "h-4 w-4" })
|
|
120
|
+
}), /* @__PURE__ */ v("div", {
|
|
117
121
|
className: "min-w-0",
|
|
118
|
-
children: [/* @__PURE__ */
|
|
122
|
+
children: [/* @__PURE__ */ _("p", {
|
|
119
123
|
className: "truncate font-semibold text-text-primary",
|
|
120
124
|
children: e.reference
|
|
121
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
157
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
154
158
|
className: "tabular-nums text-text-secondary",
|
|
155
|
-
children: [ee(e.pricePerUnit, e.currency), /* @__PURE__ */
|
|
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__ */
|
|
169
|
+
render: (e) => /* @__PURE__ */ v("div", {
|
|
166
170
|
className: "min-w-[9rem]",
|
|
167
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
-
},
|
|
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),
|
|
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
|
-
|
|
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."),
|
|
230
|
+
Y(e instanceof Error ? e.message : "Failed to create contract."), z.fromError(e);
|
|
227
231
|
}
|
|
228
232
|
};
|
|
229
|
-
return /* @__PURE__ */
|
|
230
|
-
title: "Offtake Contracts",
|
|
231
|
-
description: "Commodity purchase & sale agreements — pricing, contracted volume and delivery progress.",
|
|
232
|
-
|
|
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
|
-
"
|
|
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__ */
|
|
242
|
+
/* @__PURE__ */ v("div", {
|
|
239
243
|
className: "mb-5 flex flex-wrap items-center gap-3",
|
|
240
244
|
children: [
|
|
241
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ _(se, {
|
|
242
246
|
options: k,
|
|
243
|
-
value:
|
|
247
|
+
value: B,
|
|
244
248
|
onChange: (e) => {
|
|
245
|
-
|
|
249
|
+
V(e), W.reset();
|
|
246
250
|
}
|
|
247
251
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ v(C, {
|
|
249
253
|
value: H,
|
|
250
254
|
onValueChange: (e) => {
|
|
251
|
-
|
|
255
|
+
ye(e), W.reset();
|
|
252
256
|
},
|
|
253
|
-
children: [/* @__PURE__ */
|
|
257
|
+
children: [/* @__PURE__ */ _(E, {
|
|
254
258
|
className: "w-40",
|
|
255
259
|
"aria-label": "Filter by side",
|
|
256
|
-
children: /* @__PURE__ */
|
|
257
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
264
|
+
}), A.map((e) => /* @__PURE__ */ _(T, {
|
|
261
265
|
value: e,
|
|
262
266
|
children: n(e)
|
|
263
267
|
}, e))] })]
|
|
264
268
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ v(C, {
|
|
266
270
|
value: U,
|
|
267
271
|
onValueChange: (e) => {
|
|
268
|
-
|
|
272
|
+
be(e), W.reset();
|
|
269
273
|
},
|
|
270
|
-
children: [/* @__PURE__ */
|
|
274
|
+
children: [/* @__PURE__ */ _(E, {
|
|
271
275
|
className: "w-48",
|
|
272
276
|
"aria-label": "Filter by commodity",
|
|
273
|
-
children: /* @__PURE__ */
|
|
274
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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
|
-
|
|
288
|
+
Se ? /* @__PURE__ */ _(ne, { label: "Loading contracts…" }) : Ce ? /* @__PURE__ */ _(te, {
|
|
285
289
|
message: "Couldn't load contracts.",
|
|
286
|
-
onRetry: () =>
|
|
287
|
-
}) : Q.length === 0 ? /* @__PURE__ */
|
|
290
|
+
onRetry: () => we()
|
|
291
|
+
}) : Q.length === 0 ? /* @__PURE__ */ _(re, {
|
|
288
292
|
illustration: "empty-data",
|
|
289
|
-
icon: /* @__PURE__ */
|
|
293
|
+
icon: /* @__PURE__ */ _(h, { className: "h-10 w-10" }),
|
|
290
294
|
title: "No contracts yet",
|
|
291
|
-
description:
|
|
292
|
-
action: /* @__PURE__ */
|
|
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
|
-
"
|
|
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__ */
|
|
298
|
-
columns:
|
|
300
|
+
}) : /* @__PURE__ */ v(ue, { children: [/* @__PURE__ */ _(c, {
|
|
301
|
+
columns: Te,
|
|
299
302
|
rows: Q,
|
|
300
303
|
rowKey: (e) => e.id,
|
|
301
|
-
onRowClick: (e) =>
|
|
304
|
+
onRowClick: (e) => R(`contracts/${e.id}`),
|
|
302
305
|
rowLabel: (e) => `Open ${e.reference}`
|
|
303
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
311
|
-
open:
|
|
313
|
+
/* @__PURE__ */ _(S, {
|
|
314
|
+
open: xe,
|
|
312
315
|
onOpenChange: (e) => {
|
|
313
316
|
G(e), e || $();
|
|
314
317
|
},
|
|
315
|
-
children: /* @__PURE__ */
|
|
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(),
|
|
320
|
+
e.preventDefault(), Ee();
|
|
318
321
|
},
|
|
319
|
-
children: [/* @__PURE__ */
|
|
322
|
+
children: [/* @__PURE__ */ v("div", {
|
|
320
323
|
className: "grid gap-4 py-2",
|
|
321
324
|
children: [
|
|
322
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ v("div", {
|
|
323
326
|
className: "grid gap-2 sm:grid-cols-2",
|
|
324
|
-
children: [/* @__PURE__ */
|
|
327
|
+
children: [/* @__PURE__ */ v("div", {
|
|
325
328
|
className: "grid gap-1.5",
|
|
326
|
-
children: [/* @__PURE__ */
|
|
329
|
+
children: [/* @__PURE__ */ _(x, {
|
|
327
330
|
htmlFor: "reference",
|
|
328
331
|
children: "Reference *"
|
|
329
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
341
|
+
}), /* @__PURE__ */ v("div", {
|
|
339
342
|
className: "grid gap-1.5",
|
|
340
|
-
children: [/* @__PURE__ */
|
|
343
|
+
children: [/* @__PURE__ */ _(x, {
|
|
341
344
|
htmlFor: "counterparty",
|
|
342
345
|
children: "Counterparty *"
|
|
343
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
357
|
+
/* @__PURE__ */ v("div", {
|
|
355
358
|
className: "grid gap-2 sm:grid-cols-2",
|
|
356
|
-
children: [/* @__PURE__ */
|
|
359
|
+
children: [/* @__PURE__ */ v("div", {
|
|
357
360
|
className: "grid gap-1.5",
|
|
358
|
-
children: [/* @__PURE__ */
|
|
361
|
+
children: [/* @__PURE__ */ _(x, {
|
|
359
362
|
htmlFor: "commodity",
|
|
360
363
|
children: "Commodity *"
|
|
361
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
370
|
+
children: [/* @__PURE__ */ _(E, {
|
|
368
371
|
id: "commodity",
|
|
369
|
-
children: /* @__PURE__ */
|
|
370
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
378
|
+
}), /* @__PURE__ */ v("div", {
|
|
376
379
|
className: "grid gap-1.5",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
380
|
+
children: [/* @__PURE__ */ _(x, {
|
|
378
381
|
htmlFor: "side",
|
|
379
382
|
children: "Side"
|
|
380
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
389
|
+
children: [/* @__PURE__ */ _(E, {
|
|
387
390
|
id: "side",
|
|
388
|
-
children: /* @__PURE__ */
|
|
389
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
399
|
+
/* @__PURE__ */ v("div", {
|
|
397
400
|
className: "grid gap-2 sm:grid-cols-2",
|
|
398
|
-
children: [/* @__PURE__ */
|
|
401
|
+
children: [/* @__PURE__ */ v("div", {
|
|
399
402
|
className: "grid gap-1.5",
|
|
400
|
-
children: [/* @__PURE__ */
|
|
403
|
+
children: [/* @__PURE__ */ _(x, {
|
|
401
404
|
htmlFor: "pricingBasis",
|
|
402
405
|
children: "Pricing basis"
|
|
403
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
412
|
+
children: [/* @__PURE__ */ _(E, {
|
|
410
413
|
id: "pricingBasis",
|
|
411
|
-
children: /* @__PURE__ */
|
|
412
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
420
|
+
}), /* @__PURE__ */ v("div", {
|
|
418
421
|
className: "grid gap-1.5",
|
|
419
|
-
children: [/* @__PURE__ */
|
|
422
|
+
children: [/* @__PURE__ */ _(x, {
|
|
420
423
|
htmlFor: "priceIndex",
|
|
421
424
|
children: "Price index"
|
|
422
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
436
|
+
/* @__PURE__ */ v("div", {
|
|
434
437
|
className: "grid gap-2 sm:grid-cols-3",
|
|
435
438
|
children: [
|
|
436
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ v("div", {
|
|
437
440
|
className: "grid gap-1.5",
|
|
438
|
-
children: [/* @__PURE__ */
|
|
441
|
+
children: [/* @__PURE__ */ _(x, {
|
|
439
442
|
htmlFor: "pricePerUnit",
|
|
440
443
|
children: "Price / unit"
|
|
441
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
457
|
+
/* @__PURE__ */ v("div", {
|
|
455
458
|
className: "grid gap-1.5",
|
|
456
|
-
children: [/* @__PURE__ */
|
|
459
|
+
children: [/* @__PURE__ */ _(x, {
|
|
457
460
|
htmlFor: "currency",
|
|
458
461
|
children: "Currency"
|
|
459
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
472
|
+
/* @__PURE__ */ v("div", {
|
|
470
473
|
className: "grid gap-1.5",
|
|
471
|
-
children: [/* @__PURE__ */
|
|
474
|
+
children: [/* @__PURE__ */ _(x, {
|
|
472
475
|
htmlFor: "unit",
|
|
473
476
|
children: "Unit"
|
|
474
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
483
|
+
children: [/* @__PURE__ */ _(E, {
|
|
481
484
|
id: "unit",
|
|
482
|
-
children: /* @__PURE__ */
|
|
483
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
494
|
+
/* @__PURE__ */ v("div", {
|
|
492
495
|
className: "grid gap-2 sm:grid-cols-2",
|
|
493
|
-
children: [/* @__PURE__ */
|
|
496
|
+
children: [/* @__PURE__ */ v("div", {
|
|
494
497
|
className: "grid gap-1.5",
|
|
495
|
-
children: [/* @__PURE__ */
|
|
498
|
+
children: [/* @__PURE__ */ _(x, {
|
|
496
499
|
htmlFor: "contractedVolume",
|
|
497
500
|
children: "Contracted volume"
|
|
498
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
513
|
+
}), /* @__PURE__ */ v("div", {
|
|
511
514
|
className: "grid gap-1.5",
|
|
512
|
-
children: [/* @__PURE__ */
|
|
515
|
+
children: [/* @__PURE__ */ _(x, {
|
|
513
516
|
htmlFor: "deliveryLocation",
|
|
514
517
|
children: "Delivery location"
|
|
515
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
529
|
+
/* @__PURE__ */ v("div", {
|
|
527
530
|
className: "grid gap-2 sm:grid-cols-2",
|
|
528
|
-
children: [/* @__PURE__ */
|
|
531
|
+
children: [/* @__PURE__ */ v("div", {
|
|
529
532
|
className: "grid gap-1.5",
|
|
530
|
-
children: [/* @__PURE__ */
|
|
533
|
+
children: [/* @__PURE__ */ _(x, {
|
|
531
534
|
htmlFor: "startDate",
|
|
532
535
|
children: "Start date"
|
|
533
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
545
|
+
}), /* @__PURE__ */ v("div", {
|
|
543
546
|
className: "grid gap-1.5",
|
|
544
|
-
children: [/* @__PURE__ */
|
|
547
|
+
children: [/* @__PURE__ */ _(x, {
|
|
545
548
|
htmlFor: "endDate",
|
|
546
549
|
children: "End date"
|
|
547
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
561
|
+
/* @__PURE__ */ v("div", {
|
|
559
562
|
className: "grid gap-1.5",
|
|
560
|
-
children: [/* @__PURE__ */
|
|
563
|
+
children: [/* @__PURE__ */ _(x, {
|
|
561
564
|
htmlFor: "notes",
|
|
562
565
|
children: "Notes"
|
|
563
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
577
|
+
J && /* @__PURE__ */ _("p", {
|
|
575
578
|
className: "text-sm text-status-error-text",
|
|
576
579
|
children: J
|
|
577
580
|
})
|
|
578
581
|
]
|
|
579
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
589
|
+
}), /* @__PURE__ */ _(y, {
|
|
587
590
|
type: "submit",
|
|
588
591
|
disabled: Z.isPending,
|
|
589
592
|
children: Z.isPending ? "Creating…" : "Create contract"
|