@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.
- 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/index.js +3 -1
- 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 +4 -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 +46 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.js.map +1 -0
- 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/index.js +2 -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 +395 -353
- 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 +152 -146
- 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 +237 -231
- 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 +255 -250
- 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 +225 -0
- package/dist/theglobalfuel/services/assistantApi.js.map +1 -0
- 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 +120 -0
- package/dist/theglobalfuel/services/createSandboxAssistantTransport.js.map +1 -0
- 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/pageContext.js +65 -0
- package/dist/theglobalfuel/utils/pageContext.js.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 +5 -1
- package/dist/node_modules/clsx/dist/clsx.js +0 -18
- package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1716
- 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
|
|
5
|
-
import { DataTable as
|
|
6
|
-
import { ErrorView as
|
|
7
|
-
import { EmptyState as
|
|
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
|
|
10
|
-
import { useCursorPager as
|
|
11
|
-
import { useNotify as
|
|
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
|
|
14
|
-
import { useMemo as
|
|
15
|
-
import { BarChart3 as
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { Button as
|
|
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
|
|
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
|
-
],
|
|
29
|
+
], M = 25, N = () => (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), P = () => ({
|
|
28
30
|
assetId: "",
|
|
29
|
-
periodStart:
|
|
30
|
-
periodEnd:
|
|
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
|
|
38
|
-
|
|
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
|
|
43
|
+
for (let t of G.data?.items ?? []) e[t.id] = t.name;
|
|
41
44
|
return e;
|
|
42
|
-
}, [
|
|
43
|
-
assetId:
|
|
45
|
+
}, [G.data]), { data: q, isLoading: ge, isError: _e, refetch: ve } = f({
|
|
46
|
+
assetId: L === "ALL" ? void 0 : L,
|
|
44
47
|
pagination: {
|
|
45
|
-
limit:
|
|
46
|
-
offset:
|
|
48
|
+
limit: M,
|
|
49
|
+
offset: z.page * M
|
|
47
50
|
}
|
|
48
|
-
}),
|
|
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
|
|
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 =
|
|
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]) =>
|
|
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
|
-
}, [
|
|
63
|
+
}, [Y]), xe = [
|
|
61
64
|
{
|
|
62
65
|
key: "asset",
|
|
63
66
|
header: "Asset",
|
|
64
|
-
render: (e) => /* @__PURE__ */
|
|
67
|
+
render: (e) => /* @__PURE__ */ b("div", {
|
|
65
68
|
className: "min-w-0",
|
|
66
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ b("p", {
|
|
67
70
|
className: "truncate font-semibold text-text-primary",
|
|
68
|
-
children:
|
|
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__ */
|
|
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__ */
|
|
94
|
+
render: (e) => /* @__PURE__ */ b("span", {
|
|
92
95
|
className: "tabular-nums font-medium text-text-primary",
|
|
93
|
-
children:
|
|
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__ */
|
|
105
|
+
render: (e) => e.grade == null ? /* @__PURE__ */ b("span", {
|
|
103
106
|
className: "text-text-tertiary",
|
|
104
107
|
children: "—"
|
|
105
|
-
}) : /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
129
|
+
render: (e) => /* @__PURE__ */ b("span", {
|
|
127
130
|
className: "text-text-tertiary",
|
|
128
|
-
children:
|
|
131
|
+
children: o(e.createdAt)
|
|
129
132
|
})
|
|
130
133
|
}
|
|
131
134
|
], Z = () => {
|
|
132
|
-
|
|
135
|
+
H(P()), W(null), B(!0);
|
|
133
136
|
}, Q = () => {
|
|
134
|
-
|
|
135
|
-
},
|
|
136
|
-
if (!
|
|
137
|
-
|
|
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 =
|
|
143
|
+
let e = c(V.periodStart), t = c(V.periodEnd);
|
|
141
144
|
if (!e || !t) {
|
|
142
|
-
|
|
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
|
-
|
|
149
|
+
W("Period end must be on or after the period start.");
|
|
147
150
|
return;
|
|
148
151
|
}
|
|
149
|
-
let n = Number(
|
|
150
|
-
if (!
|
|
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
|
-
|
|
155
|
+
W(e), I.error(e);
|
|
153
156
|
return;
|
|
154
157
|
}
|
|
155
|
-
|
|
158
|
+
W(null);
|
|
156
159
|
try {
|
|
157
|
-
await
|
|
158
|
-
assetId:
|
|
160
|
+
await J.mutateAsync({
|
|
161
|
+
assetId: V.assetId,
|
|
159
162
|
periodStart: e,
|
|
160
163
|
periodEnd: t,
|
|
161
164
|
volume: n,
|
|
162
|
-
unit:
|
|
163
|
-
grade:
|
|
164
|
-
downtimeHours:
|
|
165
|
-
notes:
|
|
166
|
-
}),
|
|
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
|
-
|
|
171
|
+
W(e instanceof Error ? e.message : "Failed to record production."), I.fromError(e);
|
|
169
172
|
}
|
|
170
|
-
}, $ =
|
|
171
|
-
return /* @__PURE__ */
|
|
172
|
-
title: "Production",
|
|
173
|
-
description: "Captured production volumes across every field, well, mine & plant — with downtime and grade.",
|
|
174
|
-
|
|
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
|
|
180
|
+
children: [/* @__PURE__ */ b(y, { className: "mr-1.5 h-4 w-4" }), " Record production"]
|
|
177
181
|
}),
|
|
178
182
|
children: [
|
|
179
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ x("div", {
|
|
180
184
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
181
185
|
children: [
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
icon: /* @__PURE__ */
|
|
184
|
-
value:
|
|
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:
|
|
191
|
+
footer: be
|
|
188
192
|
}),
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
196
|
-
icon: /* @__PURE__ */
|
|
197
|
-
value:
|
|
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__ */
|
|
206
|
+
/* @__PURE__ */ b("div", {
|
|
203
207
|
className: "mt-6 mb-5 flex flex-wrap items-center gap-3",
|
|
204
|
-
children: /* @__PURE__ */
|
|
205
|
-
value:
|
|
208
|
+
children: /* @__PURE__ */ x(T, {
|
|
209
|
+
value: L,
|
|
206
210
|
onValueChange: (e) => {
|
|
207
|
-
|
|
211
|
+
R(e), z.reset();
|
|
208
212
|
},
|
|
209
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ b(O, {
|
|
210
214
|
className: "w-56",
|
|
211
215
|
"aria-label": "Filter by asset",
|
|
212
|
-
children: /* @__PURE__ */
|
|
213
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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
|
-
|
|
226
|
+
ge ? /* @__PURE__ */ b(te, { label: "Loading production records…" }) : _e ? /* @__PURE__ */ b(ee, {
|
|
223
227
|
message: "Couldn't load production records.",
|
|
224
|
-
onRetry: () =>
|
|
225
|
-
}) :
|
|
228
|
+
onRetry: () => ve()
|
|
229
|
+
}) : Y.length === 0 ? /* @__PURE__ */ b(u, {
|
|
226
230
|
illustration: "empty-data",
|
|
227
|
-
icon: /* @__PURE__ */
|
|
231
|
+
icon: /* @__PURE__ */ b(v, { className: "h-10 w-10" }),
|
|
228
232
|
title: "No production recorded",
|
|
229
|
-
description:
|
|
230
|
-
action: /* @__PURE__ */
|
|
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
|
|
236
|
+
children: [/* @__PURE__ */ b(y, { className: "mr-1.5 h-4 w-4" }), " Record production"]
|
|
233
237
|
})
|
|
234
|
-
}) : /* @__PURE__ */
|
|
235
|
-
columns:
|
|
236
|
-
rows:
|
|
238
|
+
}) : /* @__PURE__ */ x(ce, { children: [/* @__PURE__ */ b(l, {
|
|
239
|
+
columns: xe,
|
|
240
|
+
rows: Y,
|
|
237
241
|
rowKey: (e) => e.id,
|
|
238
|
-
onRowClick: (e) =>
|
|
239
|
-
rowLabel: (e) => `Open ${
|
|
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__ */
|
|
245
|
-
page:
|
|
246
|
-
pageSize:
|
|
247
|
-
itemCount:
|
|
248
|
-
hasMore:
|
|
249
|
-
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__ */
|
|
252
|
-
open:
|
|
253
|
-
onOpenChange: (e) => e ?
|
|
254
|
-
children: /* @__PURE__ */
|
|
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(),
|
|
260
|
+
e.preventDefault(), Se();
|
|
257
261
|
},
|
|
258
|
-
children: [/* @__PURE__ */
|
|
262
|
+
children: [/* @__PURE__ */ x("div", {
|
|
259
263
|
className: "grid gap-4 py-2",
|
|
260
264
|
children: [
|
|
261
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ x("div", {
|
|
262
266
|
className: "grid gap-1.5",
|
|
263
|
-
children: [/* @__PURE__ */
|
|
267
|
+
children: [/* @__PURE__ */ b(w, {
|
|
264
268
|
htmlFor: "prAsset",
|
|
265
269
|
children: "Asset *"
|
|
266
|
-
}), /* @__PURE__ */
|
|
267
|
-
value:
|
|
268
|
-
onValueChange: (e) =>
|
|
269
|
-
...
|
|
270
|
+
}), /* @__PURE__ */ x(T, {
|
|
271
|
+
value: V.assetId,
|
|
272
|
+
onValueChange: (e) => H({
|
|
273
|
+
...V,
|
|
270
274
|
assetId: e
|
|
271
275
|
}),
|
|
272
|
-
children: [/* @__PURE__ */
|
|
276
|
+
children: [/* @__PURE__ */ b(O, {
|
|
273
277
|
id: "prAsset",
|
|
274
|
-
children: /* @__PURE__ */
|
|
275
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
285
|
+
/* @__PURE__ */ x("div", {
|
|
282
286
|
className: "grid gap-2 sm:grid-cols-2",
|
|
283
|
-
children: [/* @__PURE__ */
|
|
287
|
+
children: [/* @__PURE__ */ x("div", {
|
|
284
288
|
className: "grid gap-1.5",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
289
|
+
children: [/* @__PURE__ */ b(w, {
|
|
286
290
|
htmlFor: "prStart",
|
|
287
291
|
children: "Period start *"
|
|
288
|
-
}), /* @__PURE__ */
|
|
292
|
+
}), /* @__PURE__ */ b(C, {
|
|
289
293
|
id: "prStart",
|
|
290
294
|
type: "date",
|
|
291
|
-
value:
|
|
292
|
-
onChange: (e) =>
|
|
293
|
-
...
|
|
295
|
+
value: V.periodStart,
|
|
296
|
+
onChange: (e) => H({
|
|
297
|
+
...V,
|
|
294
298
|
periodStart: e.target.value
|
|
295
299
|
})
|
|
296
300
|
})]
|
|
297
|
-
}), /* @__PURE__ */
|
|
301
|
+
}), /* @__PURE__ */ x("div", {
|
|
298
302
|
className: "grid gap-1.5",
|
|
299
|
-
children: [/* @__PURE__ */
|
|
303
|
+
children: [/* @__PURE__ */ b(w, {
|
|
300
304
|
htmlFor: "prEnd",
|
|
301
305
|
children: "Period end *"
|
|
302
|
-
}), /* @__PURE__ */
|
|
306
|
+
}), /* @__PURE__ */ b(C, {
|
|
303
307
|
id: "prEnd",
|
|
304
308
|
type: "date",
|
|
305
|
-
value:
|
|
306
|
-
onChange: (e) =>
|
|
307
|
-
...
|
|
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__ */
|
|
317
|
+
/* @__PURE__ */ x("div", {
|
|
314
318
|
className: "grid gap-2 sm:grid-cols-2",
|
|
315
|
-
children: [/* @__PURE__ */
|
|
319
|
+
children: [/* @__PURE__ */ x("div", {
|
|
316
320
|
className: "grid gap-1.5",
|
|
317
|
-
children: [/* @__PURE__ */
|
|
321
|
+
children: [/* @__PURE__ */ b(w, {
|
|
318
322
|
htmlFor: "prVolume",
|
|
319
323
|
children: "Volume *"
|
|
320
|
-
}), /* @__PURE__ */
|
|
324
|
+
}), /* @__PURE__ */ b(C, {
|
|
321
325
|
id: "prVolume",
|
|
322
326
|
type: "number",
|
|
323
327
|
min: "0",
|
|
324
328
|
step: "any",
|
|
325
|
-
value:
|
|
326
|
-
onChange: (e) =>
|
|
327
|
-
...
|
|
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__ */
|
|
336
|
+
}), /* @__PURE__ */ x("div", {
|
|
333
337
|
className: "grid gap-1.5",
|
|
334
|
-
children: [/* @__PURE__ */
|
|
338
|
+
children: [/* @__PURE__ */ b(w, {
|
|
335
339
|
htmlFor: "prUnit",
|
|
336
340
|
children: "Unit"
|
|
337
|
-
}), /* @__PURE__ */
|
|
338
|
-
value:
|
|
339
|
-
onValueChange: (e) =>
|
|
340
|
-
...
|
|
341
|
+
}), /* @__PURE__ */ x(T, {
|
|
342
|
+
value: V.unit,
|
|
343
|
+
onValueChange: (e) => H({
|
|
344
|
+
...V,
|
|
341
345
|
unit: e
|
|
342
346
|
}),
|
|
343
|
-
children: [/* @__PURE__ */
|
|
347
|
+
children: [/* @__PURE__ */ b(O, {
|
|
344
348
|
id: "prUnit",
|
|
345
|
-
children: /* @__PURE__ */
|
|
346
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
357
|
+
/* @__PURE__ */ x("div", {
|
|
354
358
|
className: "grid gap-2 sm:grid-cols-2",
|
|
355
|
-
children: [/* @__PURE__ */
|
|
359
|
+
children: [/* @__PURE__ */ x("div", {
|
|
356
360
|
className: "grid gap-1.5",
|
|
357
|
-
children: [/* @__PURE__ */
|
|
361
|
+
children: [/* @__PURE__ */ b(w, {
|
|
358
362
|
htmlFor: "prGrade",
|
|
359
363
|
children: "Grade"
|
|
360
|
-
}), /* @__PURE__ */
|
|
364
|
+
}), /* @__PURE__ */ b(C, {
|
|
361
365
|
id: "prGrade",
|
|
362
366
|
type: "number",
|
|
363
367
|
step: "any",
|
|
364
|
-
value:
|
|
365
|
-
onChange: (e) =>
|
|
366
|
-
...
|
|
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__ */
|
|
375
|
+
}), /* @__PURE__ */ x("div", {
|
|
372
376
|
className: "grid gap-1.5",
|
|
373
|
-
children: [/* @__PURE__ */
|
|
377
|
+
children: [/* @__PURE__ */ b(w, {
|
|
374
378
|
htmlFor: "prDowntime",
|
|
375
379
|
children: "Downtime (hours)"
|
|
376
|
-
}), /* @__PURE__ */
|
|
380
|
+
}), /* @__PURE__ */ b(C, {
|
|
377
381
|
id: "prDowntime",
|
|
378
382
|
type: "number",
|
|
379
383
|
min: "0",
|
|
380
384
|
step: "any",
|
|
381
|
-
value:
|
|
382
|
-
onChange: (e) =>
|
|
383
|
-
...
|
|
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__ */
|
|
394
|
+
/* @__PURE__ */ x("div", {
|
|
391
395
|
className: "grid gap-1.5",
|
|
392
|
-
children: [/* @__PURE__ */
|
|
396
|
+
children: [/* @__PURE__ */ b(w, {
|
|
393
397
|
htmlFor: "prNotes",
|
|
394
398
|
children: "Notes"
|
|
395
|
-
}), /* @__PURE__ */
|
|
399
|
+
}), /* @__PURE__ */ b(A, {
|
|
396
400
|
id: "prNotes",
|
|
397
401
|
rows: 2,
|
|
398
|
-
value:
|
|
399
|
-
onChange: (e) =>
|
|
400
|
-
...
|
|
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
|
-
|
|
410
|
+
U && /* @__PURE__ */ b("p", {
|
|
407
411
|
className: "text-sm text-status-error-text",
|
|
408
|
-
children:
|
|
412
|
+
children: U
|
|
409
413
|
})
|
|
410
414
|
]
|
|
411
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
420
|
+
}), /* @__PURE__ */ b(S, {
|
|
417
421
|
type: "submit",
|
|
418
|
-
disabled:
|
|
419
|
-
children:
|
|
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 {
|
|
431
|
+
export { F as ProductionPage };
|
|
428
432
|
|
|
429
433
|
//# sourceMappingURL=ProductionPage.js.map
|