@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
|
@@ -1,29 +1,33 @@
|
|
|
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 { formatCoords as
|
|
5
|
-
import { StatusBadge as
|
|
6
|
-
import { DataTable as
|
|
7
|
-
import { ErrorView as
|
|
4
|
+
import { formatCoords as ee, formatDate as r, formatEnumLabel as i, formatNumber as te, formatPercent as a, formatRelativeTime as o, formatTonnesCo2e as ne, formatVolume as s, toBackendDate as c } from "../../utils/formatters.js";
|
|
5
|
+
import { StatusBadge as l } from "../../components/StatusBadge.js";
|
|
6
|
+
import { DataTable as u } from "../../components/DataTable.js";
|
|
7
|
+
import { ErrorView as d, LoadingView as f, Section as p } from "../../components/StateViews.js";
|
|
8
8
|
import { EmptyState as m } from "../../components/EmptyState.js";
|
|
9
9
|
import "../../context/index.js";
|
|
10
|
-
import { useTheAsset as re, useTheCreateReserveEstimate as ie, useTheEmissionRecords as ae,
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { useTheAsset as re, useTheCreateReserveEstimate as ie, useTheEmissionRecords as ae, useTheProductionRecords as oe, useTheRecordProduction as se, useTheReserveEstimates as ce, useTheRetireAsset as le, useTheTransitionAsset as ue } from "../../hooks/useTheGlobalFuelApi.js";
|
|
11
|
+
import { useCursorPager as de } from "../../hooks/useCursorPager.js";
|
|
12
|
+
import { useNotify as fe } from "../../hooks/useNotify.js";
|
|
13
|
+
import { useTheAnalytics as pe } from "../../hooks/useTheAnalytics.js";
|
|
14
|
+
import { useThePageView as me } from "../../hooks/useThePageView.js";
|
|
15
|
+
import { useTheNativeControls as he } from "../../hooks/useTheNativeControls.js";
|
|
13
16
|
import "../../hooks/index.js";
|
|
14
|
-
import { ASSET_TRANSITIONS as
|
|
15
|
-
import { Tabs as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
17
|
+
import { ASSET_TRANSITIONS as ge, nextStatuses as _e } from "../../utils/transitions.js";
|
|
18
|
+
import { Tabs as ve } from "../../components/Tabs.js";
|
|
19
|
+
import { Pagination as ye } from "../../components/Pagination.js";
|
|
20
|
+
import { TheDiscussion as be } from "../../components/TheDiscussion.js";
|
|
21
|
+
import { TheTags as xe } from "../../components/TheTags.js";
|
|
22
|
+
import { WorldMap as Se } from "../../components/WorldMap.js";
|
|
19
23
|
import "../../components/index.js";
|
|
20
24
|
import { useState as h } from "react";
|
|
21
|
-
import { Activity as
|
|
22
|
-
import { useParams as
|
|
23
|
-
import { Fragment as
|
|
24
|
-
import { Button as
|
|
25
|
+
import { Activity as Ce, Archive as we, ArrowLeft as Te, CalendarClock as Ee, Factory as De, Fuel as Oe, Gauge as ke, Layers as Ae, MapPin as je, MessageSquare as Me, Percent as Ne, Plus as g, Tag as Pe } from "lucide-react";
|
|
26
|
+
import { useParams as Fe } from "react-router-dom";
|
|
27
|
+
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
28
|
+
import { Button as b, GlassCard as x, Input as S, Label as C, ResponsiveDialog as Ie, ResponsiveDialogContent as Le, ResponsiveDialogDescription as Re, ResponsiveDialogFooter as ze, ResponsiveDialogHeader as Be, ResponsiveDialogTitle as Ve, Select as w, SelectContent as T, SelectItem as E, SelectTrigger as D, SelectValue as O, Textarea as He } from "@burdenoff/fe-libs/ui";
|
|
25
29
|
//#region src/theglobalfuel/pages/assets/AssetDetailPage.tsx
|
|
26
|
-
var
|
|
30
|
+
var k = 25, Ue = [
|
|
27
31
|
"BARRELS",
|
|
28
32
|
"CUBIC_METERS",
|
|
29
33
|
"TONNES",
|
|
@@ -31,27 +35,38 @@ var Fe = [
|
|
|
31
35
|
"MWH",
|
|
32
36
|
"GJ",
|
|
33
37
|
"MCF"
|
|
34
|
-
],
|
|
38
|
+
], We = [
|
|
35
39
|
"PROVED",
|
|
36
40
|
"PROBABLE",
|
|
37
41
|
"POSSIBLE",
|
|
38
42
|
"CONTINGENT",
|
|
39
43
|
"PROSPECTIVE"
|
|
40
|
-
],
|
|
41
|
-
function
|
|
42
|
-
return /* @__PURE__ */
|
|
44
|
+
], A = () => (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
45
|
+
function j({ label: e, value: t }) {
|
|
46
|
+
return /* @__PURE__ */ y("div", {
|
|
43
47
|
className: "flex flex-col gap-0.5 border-b border-border-seam/60 py-2.5 last:border-b-0",
|
|
44
|
-
children: [/* @__PURE__ */
|
|
48
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
45
49
|
className: "text-xs font-medium uppercase tracking-wide text-text-tertiary",
|
|
46
50
|
children: e
|
|
47
|
-
}), /* @__PURE__ */
|
|
51
|
+
}), /* @__PURE__ */ v("dd", {
|
|
48
52
|
className: "truncate text-sm text-text-primary",
|
|
49
53
|
children: t
|
|
50
54
|
})]
|
|
51
55
|
});
|
|
52
56
|
}
|
|
53
|
-
function
|
|
54
|
-
let { id:
|
|
57
|
+
function M() {
|
|
58
|
+
let { id: M } = Fe(), { navigateTo: N } = e(), P = fe();
|
|
59
|
+
me("asset-detail");
|
|
60
|
+
let { haptic: Ge, confirm: Ke } = he(), { data: F, isLoading: qe, isError: Je, refetch: Ye } = re(M), I = ae({ assetId: M }), L = de(), R = de(), z = oe({
|
|
61
|
+
assetId: M,
|
|
62
|
+
pagination: {
|
|
63
|
+
limit: k,
|
|
64
|
+
offset: L.page * k
|
|
65
|
+
}
|
|
66
|
+
}), B = ce(M, void 0, {
|
|
67
|
+
limit: k,
|
|
68
|
+
offset: R.page * k
|
|
69
|
+
}), { trackProductionRecordClicked: Xe, trackProductionRecorded: Ze, trackReserveCreateClicked: Qe, trackReserveCreated: $e } = pe(), et = ue(), tt = le(), V = se(), H = ie(), [U, nt] = h("production"), [W, G] = h(null), [rt, K] = h(!1), [q, J] = h({
|
|
55
70
|
periodStart: "",
|
|
56
71
|
periodEnd: "",
|
|
57
72
|
volume: "",
|
|
@@ -59,7 +74,7 @@ function N() {
|
|
|
59
74
|
grade: "",
|
|
60
75
|
downtimeHours: "",
|
|
61
76
|
notes: ""
|
|
62
|
-
}), [
|
|
77
|
+
}), [it, at] = h(!1), [Y, X] = h({
|
|
63
78
|
category: "PROVED",
|
|
64
79
|
asOfDate: "",
|
|
65
80
|
recoverable: "",
|
|
@@ -68,58 +83,60 @@ function N() {
|
|
|
68
83
|
methodology: "",
|
|
69
84
|
notes: ""
|
|
70
85
|
});
|
|
71
|
-
if (
|
|
86
|
+
if (qe) return /* @__PURE__ */ v(t, {
|
|
72
87
|
title: "Asset",
|
|
73
|
-
|
|
88
|
+
dataTour: "theglobalfuel-asset-detail-page",
|
|
89
|
+
children: /* @__PURE__ */ v(f, { label: "Loading asset…" })
|
|
74
90
|
});
|
|
75
|
-
if (
|
|
91
|
+
if (Je || !F) return /* @__PURE__ */ v(t, {
|
|
76
92
|
title: "Asset",
|
|
77
|
-
|
|
93
|
+
dataTour: "theglobalfuel-asset-detail-page",
|
|
94
|
+
actions: /* @__PURE__ */ y(b, {
|
|
78
95
|
variant: "ghost",
|
|
79
|
-
onClick: () =>
|
|
80
|
-
children: [/* @__PURE__ */
|
|
96
|
+
onClick: () => N("assets"),
|
|
97
|
+
children: [/* @__PURE__ */ v(Te, { className: "mr-1.5 h-4 w-4" }), " Back"]
|
|
81
98
|
}),
|
|
82
|
-
children:
|
|
99
|
+
children: Je ? /* @__PURE__ */ v(d, {
|
|
83
100
|
message: "This asset could not be loaded.",
|
|
84
|
-
onRetry: () =>
|
|
85
|
-
}) : /* @__PURE__ */
|
|
101
|
+
onRetry: () => Ye()
|
|
102
|
+
}) : /* @__PURE__ */ v(m, {
|
|
86
103
|
illustration: "empty-search",
|
|
87
|
-
icon: /* @__PURE__ */
|
|
104
|
+
icon: /* @__PURE__ */ v(Oe, { className: "h-10 w-10" }),
|
|
88
105
|
title: "Asset not found",
|
|
89
106
|
description: "This asset may have been retired or you may not have access to it.",
|
|
90
|
-
action: /* @__PURE__ */
|
|
91
|
-
onClick: () =>
|
|
107
|
+
action: /* @__PURE__ */ v(b, {
|
|
108
|
+
onClick: () => N("assets"),
|
|
92
109
|
children: "Back to assets"
|
|
93
110
|
})
|
|
94
111
|
})
|
|
95
112
|
});
|
|
96
|
-
let
|
|
97
|
-
lat:
|
|
98
|
-
lng:
|
|
99
|
-
label:
|
|
113
|
+
let Z = z.data?.items ?? [], Q = B.data?.items ?? [], ot = I.data?.items ?? [], st = F.status === "RETIRED", ct = _e(ge, F.status), lt = typeof F.latitude == "number" && typeof F.longitude == "number" ? {
|
|
114
|
+
lat: F.latitude,
|
|
115
|
+
lng: F.longitude,
|
|
116
|
+
label: F.name,
|
|
100
117
|
primary: !0
|
|
101
|
-
} : null,
|
|
102
|
-
|
|
103
|
-
periodStart:
|
|
104
|
-
periodEnd:
|
|
118
|
+
} : null, ut = () => {
|
|
119
|
+
G(null), Ge("light"), Xe(), J({
|
|
120
|
+
periodStart: A(),
|
|
121
|
+
periodEnd: A(),
|
|
105
122
|
volume: "",
|
|
106
|
-
unit:
|
|
123
|
+
unit: F.capacityUnit,
|
|
107
124
|
grade: "",
|
|
108
125
|
downtimeHours: "",
|
|
109
126
|
notes: ""
|
|
110
|
-
}),
|
|
111
|
-
},
|
|
112
|
-
|
|
127
|
+
}), K(!0);
|
|
128
|
+
}, dt = () => {
|
|
129
|
+
G(null), Ge("light"), Qe(), X({
|
|
113
130
|
category: "PROVED",
|
|
114
|
-
asOfDate:
|
|
131
|
+
asOfDate: A(),
|
|
115
132
|
recoverable: "",
|
|
116
133
|
recoveryFactor: "",
|
|
117
|
-
unit:
|
|
134
|
+
unit: F.capacityUnit,
|
|
118
135
|
methodology: "",
|
|
119
136
|
notes: ""
|
|
120
|
-
}),
|
|
121
|
-
},
|
|
122
|
-
|
|
137
|
+
}), at(!0);
|
|
138
|
+
}, ft = () => {
|
|
139
|
+
K(!1), G(null), J({
|
|
123
140
|
periodStart: "",
|
|
124
141
|
periodEnd: "",
|
|
125
142
|
volume: "",
|
|
@@ -129,7 +146,7 @@ function N() {
|
|
|
129
146
|
notes: ""
|
|
130
147
|
});
|
|
131
148
|
}, $ = () => {
|
|
132
|
-
|
|
149
|
+
at(!1), G(null), X({
|
|
133
150
|
category: "PROVED",
|
|
134
151
|
asOfDate: "",
|
|
135
152
|
recoverable: "",
|
|
@@ -138,92 +155,97 @@ function N() {
|
|
|
138
155
|
methodology: "",
|
|
139
156
|
notes: ""
|
|
140
157
|
});
|
|
141
|
-
},
|
|
142
|
-
if (!(!
|
|
143
|
-
|
|
158
|
+
}, pt = async (e) => {
|
|
159
|
+
if (!(!M || e === F.status)) {
|
|
160
|
+
G(null);
|
|
144
161
|
try {
|
|
145
|
-
await
|
|
146
|
-
id:
|
|
162
|
+
await et.mutateAsync({
|
|
163
|
+
id: M,
|
|
147
164
|
status: e
|
|
148
|
-
}),
|
|
165
|
+
}), P.success(`Status changed to ${i(e)}`);
|
|
149
166
|
} catch (e) {
|
|
150
|
-
|
|
167
|
+
P.fromError(e), G(e instanceof Error ? e.message : "Failed to change asset status.");
|
|
151
168
|
}
|
|
152
169
|
}
|
|
153
|
-
},
|
|
154
|
-
if (
|
|
155
|
-
|
|
170
|
+
}, mt = async () => {
|
|
171
|
+
if (M && await Ke({
|
|
172
|
+
title: `Retire ${F.name}?`,
|
|
173
|
+
message: "This marks the asset as decommissioned.",
|
|
174
|
+
okButtonTitle: "Retire",
|
|
175
|
+
cancelButtonTitle: "Cancel"
|
|
176
|
+
})) {
|
|
177
|
+
G(null);
|
|
156
178
|
try {
|
|
157
|
-
await
|
|
179
|
+
await tt.mutateAsync(M), P.success("Asset retired"), N("assets");
|
|
158
180
|
} catch (e) {
|
|
159
|
-
|
|
181
|
+
P.fromError(e), G(e instanceof Error ? e.message : "Failed to retire asset.");
|
|
160
182
|
}
|
|
161
183
|
}
|
|
162
|
-
},
|
|
163
|
-
let e =
|
|
164
|
-
if (!
|
|
165
|
-
|
|
184
|
+
}, ht = async () => {
|
|
185
|
+
let e = c(q.periodStart), t = c(q.periodEnd);
|
|
186
|
+
if (!M || !e || !t) {
|
|
187
|
+
G("Period start and period end are required.");
|
|
166
188
|
return;
|
|
167
189
|
}
|
|
168
|
-
let n = Number(
|
|
169
|
-
if (!
|
|
190
|
+
let n = Number(q.volume);
|
|
191
|
+
if (!q.volume || !Number.isFinite(n) || n <= 0) {
|
|
170
192
|
let e = "Volume must be greater than zero.";
|
|
171
|
-
|
|
193
|
+
G(e), P.error(e);
|
|
172
194
|
return;
|
|
173
195
|
}
|
|
174
|
-
|
|
196
|
+
G(null);
|
|
175
197
|
try {
|
|
176
|
-
|
|
177
|
-
assetId:
|
|
198
|
+
Ze((await V.mutateAsync({
|
|
199
|
+
assetId: M,
|
|
178
200
|
periodStart: e,
|
|
179
201
|
periodEnd: t,
|
|
180
202
|
volume: n,
|
|
181
|
-
unit:
|
|
182
|
-
grade:
|
|
183
|
-
downtimeHours:
|
|
184
|
-
notes:
|
|
185
|
-
})).id),
|
|
203
|
+
unit: q.unit,
|
|
204
|
+
grade: q.grade ? Number(q.grade) : null,
|
|
205
|
+
downtimeHours: q.downtimeHours ? Number(q.downtimeHours) : null,
|
|
206
|
+
notes: q.notes.trim() || null
|
|
207
|
+
})).id), P.success("Production recorded"), ft();
|
|
186
208
|
} catch (e) {
|
|
187
|
-
|
|
209
|
+
P.fromError(e), G(e instanceof Error ? e.message : "Failed to record production.");
|
|
188
210
|
}
|
|
189
|
-
},
|
|
190
|
-
let e =
|
|
191
|
-
if (!
|
|
192
|
-
|
|
211
|
+
}, gt = async () => {
|
|
212
|
+
let e = c(Y.asOfDate);
|
|
213
|
+
if (!M || !e) {
|
|
214
|
+
G("As-of date is required.");
|
|
193
215
|
return;
|
|
194
216
|
}
|
|
195
|
-
let t = Number(
|
|
196
|
-
if (!
|
|
217
|
+
let t = Number(Y.recoverable);
|
|
218
|
+
if (!Y.recoverable || !Number.isFinite(t) || t <= 0) {
|
|
197
219
|
let e = "Recoverable volume must be greater than zero.";
|
|
198
|
-
|
|
220
|
+
G(e), P.error(e);
|
|
199
221
|
return;
|
|
200
222
|
}
|
|
201
|
-
|
|
223
|
+
G(null);
|
|
202
224
|
try {
|
|
203
|
-
|
|
204
|
-
assetId:
|
|
205
|
-
category:
|
|
225
|
+
$e((await H.mutateAsync({
|
|
226
|
+
assetId: M,
|
|
227
|
+
category: Y.category,
|
|
206
228
|
asOfDate: e,
|
|
207
229
|
recoverable: t,
|
|
208
|
-
recoveryFactor:
|
|
209
|
-
unit:
|
|
210
|
-
methodology:
|
|
211
|
-
notes:
|
|
212
|
-
})).id),
|
|
230
|
+
recoveryFactor: Y.recoveryFactor ? Number(Y.recoveryFactor) : null,
|
|
231
|
+
unit: Y.unit,
|
|
232
|
+
methodology: Y.methodology.trim() || null,
|
|
233
|
+
notes: Y.notes.trim() || null
|
|
234
|
+
})).id), P.success("Reserve estimate added"), $();
|
|
213
235
|
} catch (e) {
|
|
214
|
-
|
|
236
|
+
P.fromError(e), G(e instanceof Error ? e.message : "Failed to add reserve estimate.");
|
|
215
237
|
}
|
|
216
|
-
},
|
|
238
|
+
}, _t = [
|
|
217
239
|
{
|
|
218
240
|
key: "period",
|
|
219
241
|
header: "Period",
|
|
220
242
|
sortValue: (e) => new Date(e.periodEnd || e.createdAt).getTime(),
|
|
221
|
-
render: (e) => /* @__PURE__ */
|
|
243
|
+
render: (e) => /* @__PURE__ */ y("span", {
|
|
222
244
|
className: "font-medium text-text-primary",
|
|
223
245
|
children: [
|
|
224
|
-
|
|
246
|
+
r(e.periodStart),
|
|
225
247
|
" – ",
|
|
226
|
-
|
|
248
|
+
r(e.periodEnd)
|
|
227
249
|
]
|
|
228
250
|
})
|
|
229
251
|
},
|
|
@@ -232,9 +254,9 @@ function N() {
|
|
|
232
254
|
header: "Volume",
|
|
233
255
|
align: "right",
|
|
234
256
|
sortValue: (e) => e.volume,
|
|
235
|
-
render: (e) => /* @__PURE__ */
|
|
257
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
236
258
|
className: "tabular-nums font-medium text-text-primary",
|
|
237
|
-
children:
|
|
259
|
+
children: s(e.volume, e.unit)
|
|
238
260
|
})
|
|
239
261
|
},
|
|
240
262
|
{
|
|
@@ -242,12 +264,12 @@ function N() {
|
|
|
242
264
|
header: "Grade",
|
|
243
265
|
align: "right",
|
|
244
266
|
hideOnMobile: !0,
|
|
245
|
-
render: (e) => e.grade == null ? /* @__PURE__ */
|
|
267
|
+
render: (e) => e.grade == null ? /* @__PURE__ */ v("span", {
|
|
246
268
|
className: "text-text-tertiary",
|
|
247
269
|
children: "—"
|
|
248
|
-
}) : /* @__PURE__ */
|
|
270
|
+
}) : /* @__PURE__ */ v("span", {
|
|
249
271
|
className: "tabular-nums text-text-secondary",
|
|
250
|
-
children:
|
|
272
|
+
children: te(e.grade)
|
|
251
273
|
})
|
|
252
274
|
},
|
|
253
275
|
{
|
|
@@ -256,19 +278,19 @@ function N() {
|
|
|
256
278
|
align: "right",
|
|
257
279
|
hideOnMobile: !0,
|
|
258
280
|
sortValue: (e) => e.downtimeHours,
|
|
259
|
-
render: (e) => /* @__PURE__ */
|
|
281
|
+
render: (e) => /* @__PURE__ */ y("span", {
|
|
260
282
|
className: "tabular-nums text-text-secondary",
|
|
261
|
-
children: [
|
|
283
|
+
children: [te(e.downtimeHours), " h"]
|
|
262
284
|
})
|
|
263
285
|
},
|
|
264
286
|
{
|
|
265
287
|
key: "notes",
|
|
266
288
|
header: "Notes",
|
|
267
289
|
hideOnMobile: !0,
|
|
268
|
-
render: (e) => e.notes ? /* @__PURE__ */
|
|
290
|
+
render: (e) => e.notes ? /* @__PURE__ */ v("span", {
|
|
269
291
|
className: "block max-w-[16rem] truncate text-text-secondary",
|
|
270
292
|
children: e.notes
|
|
271
|
-
}) : /* @__PURE__ */
|
|
293
|
+
}) : /* @__PURE__ */ v("span", {
|
|
272
294
|
className: "text-text-tertiary",
|
|
273
295
|
children: "—"
|
|
274
296
|
})
|
|
@@ -278,23 +300,23 @@ function N() {
|
|
|
278
300
|
header: "Recorded",
|
|
279
301
|
align: "right",
|
|
280
302
|
hideOnMobile: !0,
|
|
281
|
-
render: (e) => /* @__PURE__ */
|
|
303
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
282
304
|
className: "text-text-tertiary",
|
|
283
|
-
children:
|
|
305
|
+
children: o(e.createdAt)
|
|
284
306
|
})
|
|
285
307
|
}
|
|
286
|
-
],
|
|
308
|
+
], vt = [
|
|
287
309
|
{
|
|
288
310
|
key: "category",
|
|
289
311
|
header: "Category",
|
|
290
|
-
render: (e) => /* @__PURE__ */
|
|
312
|
+
render: (e) => /* @__PURE__ */ v(l, { status: e.category })
|
|
291
313
|
},
|
|
292
314
|
{
|
|
293
315
|
key: "asOf",
|
|
294
316
|
header: "As of",
|
|
295
|
-
render: (e) => /* @__PURE__ */
|
|
317
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
296
318
|
className: "text-text-secondary",
|
|
297
|
-
children:
|
|
319
|
+
children: r(e.asOfDate)
|
|
298
320
|
})
|
|
299
321
|
},
|
|
300
322
|
{
|
|
@@ -302,9 +324,9 @@ function N() {
|
|
|
302
324
|
header: "Recoverable",
|
|
303
325
|
align: "right",
|
|
304
326
|
sortValue: (e) => e.recoverable,
|
|
305
|
-
render: (e) => /* @__PURE__ */
|
|
327
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
306
328
|
className: "tabular-nums font-medium text-text-primary",
|
|
307
|
-
children:
|
|
329
|
+
children: s(e.recoverable, e.unit)
|
|
308
330
|
})
|
|
309
331
|
},
|
|
310
332
|
{
|
|
@@ -312,22 +334,22 @@ function N() {
|
|
|
312
334
|
header: "Recovery factor",
|
|
313
335
|
align: "right",
|
|
314
336
|
hideOnMobile: !0,
|
|
315
|
-
render: (e) => e.recoveryFactor == null ? /* @__PURE__ */
|
|
337
|
+
render: (e) => e.recoveryFactor == null ? /* @__PURE__ */ v("span", {
|
|
316
338
|
className: "text-text-tertiary",
|
|
317
339
|
children: "—"
|
|
318
|
-
}) : /* @__PURE__ */
|
|
340
|
+
}) : /* @__PURE__ */ v("span", {
|
|
319
341
|
className: "tabular-nums text-text-secondary",
|
|
320
|
-
children:
|
|
342
|
+
children: a(e.recoveryFactor)
|
|
321
343
|
})
|
|
322
344
|
},
|
|
323
345
|
{
|
|
324
346
|
key: "methodology",
|
|
325
347
|
header: "Methodology",
|
|
326
348
|
hideOnMobile: !0,
|
|
327
|
-
render: (e) => e.methodology ? /* @__PURE__ */
|
|
349
|
+
render: (e) => e.methodology ? /* @__PURE__ */ v("span", {
|
|
328
350
|
className: "block max-w-[14rem] truncate text-text-secondary",
|
|
329
351
|
children: e.methodology
|
|
330
|
-
}) : /* @__PURE__ */
|
|
352
|
+
}) : /* @__PURE__ */ v("span", {
|
|
331
353
|
className: "text-text-tertiary",
|
|
332
354
|
children: "—"
|
|
333
355
|
})
|
|
@@ -337,37 +359,37 @@ function N() {
|
|
|
337
359
|
header: "Added",
|
|
338
360
|
align: "right",
|
|
339
361
|
hideOnMobile: !0,
|
|
340
|
-
render: (e) => /* @__PURE__ */
|
|
362
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
341
363
|
className: "text-text-tertiary",
|
|
342
|
-
children:
|
|
364
|
+
children: o(e.createdAt)
|
|
343
365
|
})
|
|
344
366
|
}
|
|
345
|
-
],
|
|
367
|
+
], yt = [
|
|
346
368
|
{
|
|
347
369
|
key: "scope",
|
|
348
370
|
header: "Scope",
|
|
349
|
-
render: (e) => /* @__PURE__ */
|
|
371
|
+
render: (e) => /* @__PURE__ */ v(l, { status: e.scope })
|
|
350
372
|
},
|
|
351
373
|
{
|
|
352
374
|
key: "co2e",
|
|
353
375
|
header: "CO₂e",
|
|
354
376
|
align: "right",
|
|
355
377
|
sortValue: (e) => e.co2eTonnes,
|
|
356
|
-
render: (e) => /* @__PURE__ */
|
|
378
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
357
379
|
className: "tabular-nums font-medium text-text-primary",
|
|
358
|
-
children:
|
|
380
|
+
children: ne(e.co2eTonnes)
|
|
359
381
|
})
|
|
360
382
|
},
|
|
361
383
|
{
|
|
362
384
|
key: "period",
|
|
363
385
|
header: "Period",
|
|
364
386
|
hideOnMobile: !0,
|
|
365
|
-
render: (e) => /* @__PURE__ */
|
|
387
|
+
render: (e) => /* @__PURE__ */ y("span", {
|
|
366
388
|
className: "text-text-secondary",
|
|
367
389
|
children: [
|
|
368
|
-
|
|
390
|
+
r(e.periodStart),
|
|
369
391
|
" – ",
|
|
370
|
-
|
|
392
|
+
r(e.periodEnd)
|
|
371
393
|
]
|
|
372
394
|
})
|
|
373
395
|
},
|
|
@@ -375,7 +397,7 @@ function N() {
|
|
|
375
397
|
key: "source",
|
|
376
398
|
header: "Source",
|
|
377
399
|
hideOnMobile: !0,
|
|
378
|
-
render: (e) => /* @__PURE__ */
|
|
400
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
379
401
|
className: "text-text-secondary",
|
|
380
402
|
children: e.source ?? "—"
|
|
381
403
|
})
|
|
@@ -383,10 +405,10 @@ function N() {
|
|
|
383
405
|
{
|
|
384
406
|
key: "verified",
|
|
385
407
|
header: "Verified",
|
|
386
|
-
render: (e) => e.verified ? /* @__PURE__ */
|
|
408
|
+
render: (e) => e.verified ? /* @__PURE__ */ v("span", {
|
|
387
409
|
className: "text-sm font-medium text-status-success-text",
|
|
388
410
|
children: "Verified"
|
|
389
|
-
}) : /* @__PURE__ */
|
|
411
|
+
}) : /* @__PURE__ */ v("span", {
|
|
390
412
|
className: "text-sm text-text-tertiary",
|
|
391
413
|
children: "Unverified"
|
|
392
414
|
})
|
|
@@ -396,579 +418,594 @@ function N() {
|
|
|
396
418
|
header: "Recorded",
|
|
397
419
|
align: "right",
|
|
398
420
|
hideOnMobile: !0,
|
|
399
|
-
render: (e) => /* @__PURE__ */
|
|
421
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
400
422
|
className: "text-text-tertiary",
|
|
401
|
-
children:
|
|
423
|
+
children: o(e.createdAt)
|
|
402
424
|
})
|
|
403
425
|
}
|
|
404
|
-
],
|
|
426
|
+
], bt = [
|
|
405
427
|
{
|
|
406
428
|
value: "production",
|
|
407
429
|
label: "Production",
|
|
408
|
-
icon: /* @__PURE__ */
|
|
409
|
-
count:
|
|
430
|
+
icon: /* @__PURE__ */ v(Ce, { className: "h-4 w-4" }),
|
|
431
|
+
count: Z.length
|
|
410
432
|
},
|
|
411
433
|
{
|
|
412
434
|
value: "reserves",
|
|
413
435
|
label: "Reserves",
|
|
414
|
-
icon: /* @__PURE__ */
|
|
415
|
-
count:
|
|
436
|
+
icon: /* @__PURE__ */ v(Ae, { className: "h-4 w-4" }),
|
|
437
|
+
count: Q.length
|
|
416
438
|
},
|
|
417
439
|
{
|
|
418
440
|
value: "emissions",
|
|
419
441
|
label: "Emissions",
|
|
420
|
-
icon: /* @__PURE__ */
|
|
421
|
-
count:
|
|
442
|
+
icon: /* @__PURE__ */ v(De, { className: "h-4 w-4" }),
|
|
443
|
+
count: ot.length
|
|
422
444
|
},
|
|
423
445
|
{
|
|
424
446
|
value: "tags",
|
|
425
447
|
label: "Tags",
|
|
426
|
-
icon: /* @__PURE__ */
|
|
448
|
+
icon: /* @__PURE__ */ v(Pe, { className: "h-4 w-4" })
|
|
427
449
|
},
|
|
428
450
|
{
|
|
429
451
|
value: "discussion",
|
|
430
452
|
label: "Discussion",
|
|
431
|
-
icon: /* @__PURE__ */
|
|
453
|
+
icon: /* @__PURE__ */ v(Me, { className: "h-4 w-4" })
|
|
432
454
|
}
|
|
433
455
|
];
|
|
434
|
-
return /* @__PURE__ */
|
|
435
|
-
title:
|
|
436
|
-
description: [
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
456
|
+
return /* @__PURE__ */ y(t, {
|
|
457
|
+
title: F.name,
|
|
458
|
+
description: [F.code, i(F.kind)].filter(Boolean).join(" · "),
|
|
459
|
+
dataTour: "theglobalfuel-asset-detail-page",
|
|
460
|
+
actions: /* @__PURE__ */ y(_, { children: [
|
|
461
|
+
/* @__PURE__ */ v(l, { status: F.status }),
|
|
462
|
+
!st && ct.length > 0 && /* @__PURE__ */ y(w, {
|
|
463
|
+
value: F.status,
|
|
464
|
+
onValueChange: (e) => pt(e),
|
|
465
|
+
children: [/* @__PURE__ */ v(D, {
|
|
443
466
|
className: "h-9 w-44",
|
|
444
467
|
"aria-label": "Change asset status",
|
|
445
|
-
children: /* @__PURE__ */
|
|
446
|
-
}), /* @__PURE__ */
|
|
447
|
-
value:
|
|
468
|
+
children: /* @__PURE__ */ v(O, { placeholder: "Change status" })
|
|
469
|
+
}), /* @__PURE__ */ y(T, { children: [/* @__PURE__ */ v(E, {
|
|
470
|
+
value: F.status,
|
|
448
471
|
disabled: !0,
|
|
449
|
-
children:
|
|
450
|
-
}),
|
|
472
|
+
children: i(F.status)
|
|
473
|
+
}), ct.map((e) => /* @__PURE__ */ v(E, {
|
|
451
474
|
value: e,
|
|
452
|
-
children:
|
|
475
|
+
children: i(e)
|
|
453
476
|
}, e))] })]
|
|
454
477
|
}),
|
|
455
|
-
!
|
|
478
|
+
!st && /* @__PURE__ */ y(b, {
|
|
456
479
|
variant: "ghost",
|
|
457
|
-
onClick:
|
|
458
|
-
disabled:
|
|
480
|
+
onClick: mt,
|
|
481
|
+
disabled: tt.isPending,
|
|
459
482
|
className: "text-status-error-text hover:text-status-error-text",
|
|
460
|
-
children: [/* @__PURE__ */
|
|
483
|
+
children: [/* @__PURE__ */ v(we, { className: "mr-1.5 h-4 w-4" }), " Retire"]
|
|
461
484
|
}),
|
|
462
|
-
/* @__PURE__ */
|
|
485
|
+
/* @__PURE__ */ y(b, {
|
|
463
486
|
variant: "ghost",
|
|
464
|
-
onClick: () =>
|
|
465
|
-
children: [/* @__PURE__ */
|
|
487
|
+
onClick: () => N("assets"),
|
|
488
|
+
children: [/* @__PURE__ */ v(Te, { className: "mr-1.5 h-4 w-4" }), " Back"]
|
|
466
489
|
})
|
|
467
490
|
] }),
|
|
468
491
|
children: [
|
|
469
|
-
/* @__PURE__ */
|
|
492
|
+
/* @__PURE__ */ y("div", {
|
|
470
493
|
className: "grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-5",
|
|
471
494
|
children: [
|
|
472
|
-
/* @__PURE__ */
|
|
473
|
-
icon: /* @__PURE__ */
|
|
474
|
-
value:
|
|
495
|
+
/* @__PURE__ */ v(n, {
|
|
496
|
+
icon: /* @__PURE__ */ v(ke, { className: "h-5 w-5" }),
|
|
497
|
+
value: F.capacityPerDay > 0 ? `${s(F.capacityPerDay, F.capacityUnit)}/day` : "—",
|
|
475
498
|
label: "Capacity"
|
|
476
499
|
}),
|
|
477
|
-
/* @__PURE__ */
|
|
478
|
-
icon: /* @__PURE__ */
|
|
479
|
-
value:
|
|
500
|
+
/* @__PURE__ */ v(n, {
|
|
501
|
+
icon: /* @__PURE__ */ v(Ne, { className: "h-5 w-5" }),
|
|
502
|
+
value: a(F.workingInterestPct),
|
|
480
503
|
label: "Working interest"
|
|
481
504
|
}),
|
|
482
|
-
/* @__PURE__ */
|
|
483
|
-
icon: /* @__PURE__ */
|
|
484
|
-
value:
|
|
505
|
+
/* @__PURE__ */ v(n, {
|
|
506
|
+
icon: /* @__PURE__ */ v(Oe, { className: "h-5 w-5" }),
|
|
507
|
+
value: i(F.commodity),
|
|
485
508
|
label: "Commodity"
|
|
486
509
|
}),
|
|
487
|
-
/* @__PURE__ */
|
|
488
|
-
icon: /* @__PURE__ */
|
|
489
|
-
value:
|
|
510
|
+
/* @__PURE__ */ v(n, {
|
|
511
|
+
icon: /* @__PURE__ */ v(Ee, { className: "h-5 w-5" }),
|
|
512
|
+
value: r(F.commissionedAt),
|
|
490
513
|
label: "Commissioned"
|
|
491
514
|
}),
|
|
492
|
-
/* @__PURE__ */
|
|
493
|
-
icon: /* @__PURE__ */
|
|
494
|
-
value:
|
|
515
|
+
/* @__PURE__ */ v(n, {
|
|
516
|
+
icon: /* @__PURE__ */ v(je, { className: "h-5 w-5" }),
|
|
517
|
+
value: ee(F.latitude, F.longitude),
|
|
495
518
|
label: "Location",
|
|
496
|
-
footer:
|
|
519
|
+
footer: F.location ? /* @__PURE__ */ v("p", {
|
|
497
520
|
className: "truncate text-xs text-text-tertiary",
|
|
498
|
-
children:
|
|
521
|
+
children: F.location
|
|
499
522
|
}) : void 0
|
|
500
523
|
})
|
|
501
524
|
]
|
|
502
525
|
}),
|
|
503
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ y("div", {
|
|
504
527
|
className: "mt-6 grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
505
|
-
children: [/* @__PURE__ */
|
|
528
|
+
children: [/* @__PURE__ */ y(x, {
|
|
506
529
|
treatment: "glass",
|
|
507
530
|
className: "p-6 lg:col-span-2",
|
|
508
|
-
children: [/* @__PURE__ */
|
|
531
|
+
children: [/* @__PURE__ */ v("h2", {
|
|
509
532
|
className: "mb-2 text-base font-semibold text-text-primary",
|
|
510
533
|
children: "Asset details"
|
|
511
|
-
}), /* @__PURE__ */
|
|
534
|
+
}), /* @__PURE__ */ y("dl", {
|
|
512
535
|
className: "grid grid-cols-1 gap-x-8 sm:grid-cols-2",
|
|
513
536
|
children: [
|
|
514
|
-
/* @__PURE__ */
|
|
537
|
+
/* @__PURE__ */ v(j, {
|
|
515
538
|
label: "Asset code",
|
|
516
|
-
value:
|
|
539
|
+
value: F.code || "—"
|
|
517
540
|
}),
|
|
518
|
-
/* @__PURE__ */
|
|
541
|
+
/* @__PURE__ */ v(j, {
|
|
519
542
|
label: "Kind",
|
|
520
|
-
value:
|
|
543
|
+
value: i(F.kind)
|
|
521
544
|
}),
|
|
522
|
-
/* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ v(j, {
|
|
523
546
|
label: "Commodity",
|
|
524
|
-
value:
|
|
547
|
+
value: i(F.commodity)
|
|
525
548
|
}),
|
|
526
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ v(j, {
|
|
527
550
|
label: "Status",
|
|
528
|
-
value: /* @__PURE__ */
|
|
551
|
+
value: /* @__PURE__ */ v(l, { status: F.status })
|
|
529
552
|
}),
|
|
530
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ v(j, {
|
|
531
554
|
label: "Capacity / day",
|
|
532
|
-
value:
|
|
555
|
+
value: F.capacityPerDay > 0 ? `${s(F.capacityPerDay, F.capacityUnit)}/day` : "—"
|
|
533
556
|
}),
|
|
534
|
-
/* @__PURE__ */
|
|
557
|
+
/* @__PURE__ */ v(j, {
|
|
535
558
|
label: "Working interest",
|
|
536
|
-
value:
|
|
559
|
+
value: a(F.workingInterestPct)
|
|
537
560
|
}),
|
|
538
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ v(j, {
|
|
539
562
|
label: "Operator lead",
|
|
540
|
-
value:
|
|
563
|
+
value: F.operatorLeadId ? /* @__PURE__ */ v("span", {
|
|
541
564
|
className: "font-mono text-xs",
|
|
542
|
-
title:
|
|
543
|
-
children:
|
|
565
|
+
title: F.operatorLeadId,
|
|
566
|
+
children: F.operatorLeadId
|
|
544
567
|
}) : "—"
|
|
545
568
|
}),
|
|
546
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ v(j, {
|
|
547
570
|
label: "Location",
|
|
548
|
-
value:
|
|
571
|
+
value: F.location || "—"
|
|
549
572
|
}),
|
|
550
|
-
/* @__PURE__ */
|
|
573
|
+
/* @__PURE__ */ v(j, {
|
|
551
574
|
label: "Coordinates",
|
|
552
|
-
value:
|
|
575
|
+
value: ee(F.latitude, F.longitude)
|
|
553
576
|
}),
|
|
554
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ v(j, {
|
|
555
578
|
label: "Commissioned",
|
|
556
|
-
value:
|
|
579
|
+
value: r(F.commissionedAt)
|
|
557
580
|
}),
|
|
558
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ v(j, {
|
|
559
582
|
label: "Decommissioned",
|
|
560
|
-
value:
|
|
583
|
+
value: r(F.decommissionedAt)
|
|
561
584
|
}),
|
|
562
|
-
/* @__PURE__ */
|
|
585
|
+
/* @__PURE__ */ v(j, {
|
|
563
586
|
label: "Registered",
|
|
564
|
-
value: /* @__PURE__ */
|
|
565
|
-
title:
|
|
566
|
-
children:
|
|
587
|
+
value: /* @__PURE__ */ v("span", {
|
|
588
|
+
title: r(F.createdAt),
|
|
589
|
+
children: o(F.createdAt)
|
|
567
590
|
})
|
|
568
591
|
}),
|
|
569
|
-
/* @__PURE__ */
|
|
592
|
+
/* @__PURE__ */ v(j, {
|
|
570
593
|
label: "Last updated",
|
|
571
|
-
value: /* @__PURE__ */
|
|
572
|
-
title:
|
|
573
|
-
children:
|
|
594
|
+
value: /* @__PURE__ */ v("span", {
|
|
595
|
+
title: r(F.updatedAt),
|
|
596
|
+
children: o(F.updatedAt)
|
|
574
597
|
})
|
|
575
598
|
})
|
|
576
599
|
]
|
|
577
600
|
})]
|
|
578
|
-
}), /* @__PURE__ */
|
|
601
|
+
}), /* @__PURE__ */ y(x, {
|
|
579
602
|
treatment: "glass",
|
|
580
603
|
className: "flex flex-col gap-3 p-6",
|
|
581
604
|
children: [
|
|
582
|
-
/* @__PURE__ */
|
|
605
|
+
/* @__PURE__ */ y("div", {
|
|
583
606
|
className: "flex items-center gap-2",
|
|
584
|
-
children: [/* @__PURE__ */
|
|
607
|
+
children: [/* @__PURE__ */ v(je, { className: "h-4 w-4 text-accent" }), /* @__PURE__ */ v("h2", {
|
|
585
608
|
className: "text-base font-semibold text-text-primary",
|
|
586
609
|
children: "Location"
|
|
587
610
|
})]
|
|
588
611
|
}),
|
|
589
|
-
|
|
612
|
+
lt ? /* @__PURE__ */ v(Se, { points: [lt] }) : /* @__PURE__ */ v("div", {
|
|
590
613
|
className: "flex flex-1 items-center justify-center rounded-xl border border-dashed border-border-seam py-10 text-center text-sm text-text-secondary",
|
|
591
614
|
children: "No coordinates recorded for this asset."
|
|
592
615
|
}),
|
|
593
|
-
|
|
616
|
+
F.location && /* @__PURE__ */ v("p", {
|
|
594
617
|
className: "text-xs text-text-tertiary",
|
|
595
|
-
children:
|
|
618
|
+
children: F.location
|
|
596
619
|
})
|
|
597
620
|
]
|
|
598
621
|
})]
|
|
599
622
|
}),
|
|
600
|
-
|
|
623
|
+
W && /* @__PURE__ */ v("p", {
|
|
601
624
|
className: "mt-4 text-sm text-status-error-text",
|
|
602
|
-
children:
|
|
625
|
+
children: W
|
|
603
626
|
}),
|
|
604
|
-
/* @__PURE__ */
|
|
627
|
+
/* @__PURE__ */ v("div", {
|
|
605
628
|
className: "mt-6",
|
|
606
|
-
children: /* @__PURE__ */
|
|
607
|
-
items:
|
|
608
|
-
value:
|
|
609
|
-
onChange:
|
|
629
|
+
children: /* @__PURE__ */ v(ve, {
|
|
630
|
+
items: bt,
|
|
631
|
+
value: U,
|
|
632
|
+
onChange: nt
|
|
610
633
|
})
|
|
611
634
|
}),
|
|
612
|
-
|
|
635
|
+
U === "production" && /* @__PURE__ */ v(p, {
|
|
613
636
|
title: "Production",
|
|
614
637
|
description: "Volumes produced per reporting period, with grade & downtime.",
|
|
615
|
-
action: /* @__PURE__ */
|
|
638
|
+
action: /* @__PURE__ */ y(b, {
|
|
616
639
|
size: "sm",
|
|
617
|
-
onClick:
|
|
618
|
-
"
|
|
619
|
-
children: [/* @__PURE__ */ _(g, { className: "mr-1.5 h-4 w-4" }), " Record production"]
|
|
640
|
+
onClick: ut,
|
|
641
|
+
children: [/* @__PURE__ */ v(g, { className: "mr-1.5 h-4 w-4" }), " Record production"]
|
|
620
642
|
}),
|
|
621
|
-
children:
|
|
643
|
+
children: z.isLoading ? /* @__PURE__ */ v(f, { label: "Loading production…" }) : z.isError ? /* @__PURE__ */ v(d, {
|
|
644
|
+
message: "Couldn't load production records.",
|
|
645
|
+
onRetry: () => z.refetch()
|
|
646
|
+
}) : Z.length === 0 ? /* @__PURE__ */ v(m, {
|
|
622
647
|
illustration: "empty-data",
|
|
623
|
-
icon: /* @__PURE__ */
|
|
648
|
+
icon: /* @__PURE__ */ v(Ce, { className: "h-10 w-10" }),
|
|
624
649
|
title: "No production recorded",
|
|
625
650
|
description: "Record a production period to start tracking volumes for this asset.",
|
|
626
|
-
action: /* @__PURE__ */
|
|
627
|
-
onClick:
|
|
628
|
-
"
|
|
629
|
-
children: [/* @__PURE__ */ _(g, { className: "mr-1.5 h-4 w-4" }), " Record production"]
|
|
651
|
+
action: /* @__PURE__ */ y(b, {
|
|
652
|
+
onClick: ut,
|
|
653
|
+
children: [/* @__PURE__ */ v(g, { className: "mr-1.5 h-4 w-4" }), " Record production"]
|
|
630
654
|
})
|
|
631
|
-
}) : /* @__PURE__ */ _(
|
|
632
|
-
columns:
|
|
633
|
-
rows:
|
|
655
|
+
}) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(u, {
|
|
656
|
+
columns: _t,
|
|
657
|
+
rows: Z,
|
|
634
658
|
rowKey: (e) => e.id,
|
|
635
659
|
defaultSort: {
|
|
636
660
|
key: "period",
|
|
637
661
|
dir: "desc"
|
|
638
662
|
}
|
|
639
|
-
})
|
|
663
|
+
}), /* @__PURE__ */ v(ye, {
|
|
664
|
+
page: L.page,
|
|
665
|
+
pageSize: k,
|
|
666
|
+
itemCount: Z.length,
|
|
667
|
+
hasMore: z.data?.pageInfo?.hasMore ?? !1,
|
|
668
|
+
onPageChange: L.onPageChange
|
|
669
|
+
})] })
|
|
640
670
|
}),
|
|
641
|
-
|
|
671
|
+
U === "reserves" && /* @__PURE__ */ v(p, {
|
|
642
672
|
title: "Reserve estimates",
|
|
643
673
|
description: "Recoverable volumes by SPE-PRMS reserve category & as-of date.",
|
|
644
|
-
action: /* @__PURE__ */
|
|
674
|
+
action: /* @__PURE__ */ y(b, {
|
|
645
675
|
size: "sm",
|
|
646
|
-
onClick:
|
|
647
|
-
"
|
|
648
|
-
children: [/* @__PURE__ */ _(g, { className: "mr-1.5 h-4 w-4" }), " Add reserve estimate"]
|
|
676
|
+
onClick: dt,
|
|
677
|
+
children: [/* @__PURE__ */ v(g, { className: "mr-1.5 h-4 w-4" }), " Add reserve estimate"]
|
|
649
678
|
}),
|
|
650
|
-
children:
|
|
679
|
+
children: B.isLoading ? /* @__PURE__ */ v(f, { label: "Loading reserve estimates…" }) : B.isError ? /* @__PURE__ */ v(d, {
|
|
680
|
+
message: "Couldn't load reserve estimates.",
|
|
681
|
+
onRetry: () => B.refetch()
|
|
682
|
+
}) : Q.length === 0 ? /* @__PURE__ */ v(m, {
|
|
651
683
|
illustration: "empty-data",
|
|
652
|
-
icon: /* @__PURE__ */
|
|
684
|
+
icon: /* @__PURE__ */ v(Ae, { className: "h-10 w-10" }),
|
|
653
685
|
title: "No reserve estimates",
|
|
654
686
|
description: "Add a reserve estimate to record recoverable volumes for this asset.",
|
|
655
|
-
action: /* @__PURE__ */
|
|
656
|
-
onClick:
|
|
657
|
-
"
|
|
658
|
-
children: [/* @__PURE__ */ _(g, { className: "mr-1.5 h-4 w-4" }), " Add reserve estimate"]
|
|
687
|
+
action: /* @__PURE__ */ y(b, {
|
|
688
|
+
onClick: dt,
|
|
689
|
+
children: [/* @__PURE__ */ v(g, { className: "mr-1.5 h-4 w-4" }), " Add reserve estimate"]
|
|
659
690
|
})
|
|
660
|
-
}) : /* @__PURE__ */ _(
|
|
661
|
-
columns:
|
|
662
|
-
rows:
|
|
691
|
+
}) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(u, {
|
|
692
|
+
columns: vt,
|
|
693
|
+
rows: Q,
|
|
663
694
|
rowKey: (e) => e.id
|
|
664
|
-
})
|
|
695
|
+
}), /* @__PURE__ */ v(ye, {
|
|
696
|
+
page: R.page,
|
|
697
|
+
pageSize: k,
|
|
698
|
+
itemCount: Q.length,
|
|
699
|
+
hasMore: B.data?.pageInfo?.hasMore ?? !1,
|
|
700
|
+
onPageChange: R.onPageChange
|
|
701
|
+
})] })
|
|
665
702
|
}),
|
|
666
|
-
|
|
703
|
+
U === "emissions" && /* @__PURE__ */ v(p, {
|
|
667
704
|
title: "Emissions",
|
|
668
705
|
description: "GHG emission records attributed to this asset (Scope 1 / 2 / 3).",
|
|
669
|
-
children:
|
|
706
|
+
children: I.isLoading ? /* @__PURE__ */ v(f, { label: "Loading emissions…" }) : I.isError ? /* @__PURE__ */ v(d, {
|
|
670
707
|
message: "Couldn't load emission records.",
|
|
671
|
-
onRetry: () =>
|
|
672
|
-
}) :
|
|
708
|
+
onRetry: () => I.refetch()
|
|
709
|
+
}) : ot.length === 0 ? /* @__PURE__ */ v(m, {
|
|
673
710
|
illustration: "empty-data",
|
|
674
|
-
icon: /* @__PURE__ */
|
|
711
|
+
icon: /* @__PURE__ */ v(De, { className: "h-10 w-10" }),
|
|
675
712
|
title: "No emissions recorded",
|
|
676
713
|
description: "Emission records attributed to this asset will appear here."
|
|
677
|
-
}) : /* @__PURE__ */
|
|
678
|
-
columns:
|
|
679
|
-
rows:
|
|
714
|
+
}) : /* @__PURE__ */ v(u, {
|
|
715
|
+
columns: yt,
|
|
716
|
+
rows: ot,
|
|
680
717
|
rowKey: (e) => e.id
|
|
681
718
|
})
|
|
682
719
|
}),
|
|
683
|
-
|
|
720
|
+
U === "tags" && /* @__PURE__ */ v(p, {
|
|
684
721
|
title: "Tags",
|
|
685
722
|
description: "Label this asset for search, grouping & reporting.",
|
|
686
|
-
children: /* @__PURE__ */
|
|
723
|
+
children: /* @__PURE__ */ v(x, {
|
|
687
724
|
treatment: "glass",
|
|
688
725
|
className: "p-6",
|
|
689
|
-
children: /* @__PURE__ */
|
|
726
|
+
children: /* @__PURE__ */ v(xe, {
|
|
690
727
|
entityType: "theglobalfuel-asset",
|
|
691
|
-
entityId:
|
|
728
|
+
entityId: F.id
|
|
692
729
|
})
|
|
693
730
|
})
|
|
694
731
|
}),
|
|
695
|
-
|
|
732
|
+
U === "discussion" && /* @__PURE__ */ v("div", {
|
|
696
733
|
className: "mt-8",
|
|
697
|
-
children: /* @__PURE__ */
|
|
734
|
+
children: /* @__PURE__ */ v(be, {
|
|
698
735
|
entityType: "theglobalfuel-asset",
|
|
699
|
-
entityId:
|
|
736
|
+
entityId: F.id,
|
|
700
737
|
title: "Discussion",
|
|
701
738
|
description: "Notes & coordination for this asset."
|
|
702
739
|
})
|
|
703
740
|
}),
|
|
704
|
-
/* @__PURE__ */
|
|
705
|
-
open:
|
|
706
|
-
onOpenChange: (e) => e ?
|
|
707
|
-
children: /* @__PURE__ */
|
|
708
|
-
/* @__PURE__ */
|
|
741
|
+
/* @__PURE__ */ v(Ie, {
|
|
742
|
+
open: rt,
|
|
743
|
+
onOpenChange: (e) => e ? K(!0) : ft(),
|
|
744
|
+
children: /* @__PURE__ */ y(Le, { children: [
|
|
745
|
+
/* @__PURE__ */ y(Be, { children: [/* @__PURE__ */ v(Ve, { children: "Record production" }), /* @__PURE__ */ y(Re, { children: [
|
|
709
746
|
"Log a production period for ",
|
|
710
|
-
|
|
747
|
+
F.name,
|
|
711
748
|
"."
|
|
712
749
|
] })] }),
|
|
713
|
-
/* @__PURE__ */
|
|
750
|
+
/* @__PURE__ */ y("form", {
|
|
714
751
|
id: "recordProductionForm",
|
|
715
752
|
onSubmit: (e) => {
|
|
716
|
-
e.preventDefault(),
|
|
753
|
+
e.preventDefault(), ht();
|
|
717
754
|
},
|
|
718
755
|
className: "grid gap-4 py-2",
|
|
719
756
|
children: [
|
|
720
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ y("div", {
|
|
721
758
|
className: "grid gap-2 sm:grid-cols-2",
|
|
722
|
-
children: [/* @__PURE__ */
|
|
759
|
+
children: [/* @__PURE__ */ y("div", {
|
|
723
760
|
className: "grid gap-1.5",
|
|
724
|
-
children: [/* @__PURE__ */
|
|
761
|
+
children: [/* @__PURE__ */ v(C, {
|
|
725
762
|
htmlFor: "prodStart",
|
|
726
763
|
children: "Period start *"
|
|
727
|
-
}), /* @__PURE__ */
|
|
764
|
+
}), /* @__PURE__ */ v(S, {
|
|
728
765
|
id: "prodStart",
|
|
729
766
|
type: "date",
|
|
730
|
-
value:
|
|
731
|
-
onChange: (e) =>
|
|
732
|
-
...
|
|
767
|
+
value: q.periodStart,
|
|
768
|
+
onChange: (e) => J({
|
|
769
|
+
...q,
|
|
733
770
|
periodStart: e.target.value
|
|
734
771
|
})
|
|
735
772
|
})]
|
|
736
|
-
}), /* @__PURE__ */
|
|
773
|
+
}), /* @__PURE__ */ y("div", {
|
|
737
774
|
className: "grid gap-1.5",
|
|
738
|
-
children: [/* @__PURE__ */
|
|
775
|
+
children: [/* @__PURE__ */ v(C, {
|
|
739
776
|
htmlFor: "prodEnd",
|
|
740
777
|
children: "Period end *"
|
|
741
|
-
}), /* @__PURE__ */
|
|
778
|
+
}), /* @__PURE__ */ v(S, {
|
|
742
779
|
id: "prodEnd",
|
|
743
780
|
type: "date",
|
|
744
|
-
value:
|
|
745
|
-
onChange: (e) =>
|
|
746
|
-
...
|
|
781
|
+
value: q.periodEnd,
|
|
782
|
+
onChange: (e) => J({
|
|
783
|
+
...q,
|
|
747
784
|
periodEnd: e.target.value
|
|
748
785
|
})
|
|
749
786
|
})]
|
|
750
787
|
})]
|
|
751
788
|
}),
|
|
752
|
-
/* @__PURE__ */
|
|
789
|
+
/* @__PURE__ */ y("div", {
|
|
753
790
|
className: "grid gap-2 sm:grid-cols-2",
|
|
754
|
-
children: [/* @__PURE__ */
|
|
791
|
+
children: [/* @__PURE__ */ y("div", {
|
|
755
792
|
className: "grid gap-1.5",
|
|
756
|
-
children: [/* @__PURE__ */
|
|
793
|
+
children: [/* @__PURE__ */ v(C, {
|
|
757
794
|
htmlFor: "prodVolume",
|
|
758
795
|
children: "Volume *"
|
|
759
|
-
}), /* @__PURE__ */
|
|
796
|
+
}), /* @__PURE__ */ v(S, {
|
|
760
797
|
id: "prodVolume",
|
|
761
798
|
type: "number",
|
|
762
799
|
min: "0",
|
|
763
800
|
step: "any",
|
|
764
|
-
value:
|
|
765
|
-
onChange: (e) =>
|
|
766
|
-
...
|
|
801
|
+
value: q.volume,
|
|
802
|
+
onChange: (e) => J({
|
|
803
|
+
...q,
|
|
767
804
|
volume: e.target.value
|
|
768
805
|
}),
|
|
769
806
|
placeholder: "118500"
|
|
770
807
|
})]
|
|
771
|
-
}), /* @__PURE__ */
|
|
808
|
+
}), /* @__PURE__ */ y("div", {
|
|
772
809
|
className: "grid gap-1.5",
|
|
773
|
-
children: [/* @__PURE__ */
|
|
810
|
+
children: [/* @__PURE__ */ v(C, {
|
|
774
811
|
htmlFor: "prodUnit",
|
|
775
812
|
children: "Unit"
|
|
776
|
-
}), /* @__PURE__ */
|
|
777
|
-
value:
|
|
778
|
-
onValueChange: (e) =>
|
|
779
|
-
...
|
|
813
|
+
}), /* @__PURE__ */ y(w, {
|
|
814
|
+
value: q.unit,
|
|
815
|
+
onValueChange: (e) => J({
|
|
816
|
+
...q,
|
|
780
817
|
unit: e
|
|
781
818
|
}),
|
|
782
|
-
children: [/* @__PURE__ */
|
|
819
|
+
children: [/* @__PURE__ */ v(D, {
|
|
783
820
|
id: "prodUnit",
|
|
784
|
-
children: /* @__PURE__ */
|
|
785
|
-
}), /* @__PURE__ */
|
|
821
|
+
children: /* @__PURE__ */ v(O, {})
|
|
822
|
+
}), /* @__PURE__ */ v(T, { children: Ue.map((e) => /* @__PURE__ */ v(E, {
|
|
786
823
|
value: e,
|
|
787
|
-
children:
|
|
824
|
+
children: i(e)
|
|
788
825
|
}, e)) })]
|
|
789
826
|
})]
|
|
790
827
|
})]
|
|
791
828
|
}),
|
|
792
|
-
/* @__PURE__ */
|
|
829
|
+
/* @__PURE__ */ y("div", {
|
|
793
830
|
className: "grid gap-2 sm:grid-cols-2",
|
|
794
|
-
children: [/* @__PURE__ */
|
|
831
|
+
children: [/* @__PURE__ */ y("div", {
|
|
795
832
|
className: "grid gap-1.5",
|
|
796
|
-
children: [/* @__PURE__ */
|
|
833
|
+
children: [/* @__PURE__ */ v(C, {
|
|
797
834
|
htmlFor: "prodGrade",
|
|
798
835
|
children: "Grade"
|
|
799
|
-
}), /* @__PURE__ */
|
|
836
|
+
}), /* @__PURE__ */ v(S, {
|
|
800
837
|
id: "prodGrade",
|
|
801
838
|
type: "number",
|
|
802
839
|
step: "any",
|
|
803
|
-
value:
|
|
804
|
-
onChange: (e) =>
|
|
805
|
-
...
|
|
840
|
+
value: q.grade,
|
|
841
|
+
onChange: (e) => J({
|
|
842
|
+
...q,
|
|
806
843
|
grade: e.target.value
|
|
807
844
|
}),
|
|
808
845
|
placeholder: "Optional (e.g. API / assay)"
|
|
809
846
|
})]
|
|
810
|
-
}), /* @__PURE__ */
|
|
847
|
+
}), /* @__PURE__ */ y("div", {
|
|
811
848
|
className: "grid gap-1.5",
|
|
812
|
-
children: [/* @__PURE__ */
|
|
849
|
+
children: [/* @__PURE__ */ v(C, {
|
|
813
850
|
htmlFor: "prodDowntime",
|
|
814
851
|
children: "Downtime (hours)"
|
|
815
|
-
}), /* @__PURE__ */
|
|
852
|
+
}), /* @__PURE__ */ v(S, {
|
|
816
853
|
id: "prodDowntime",
|
|
817
854
|
type: "number",
|
|
818
855
|
min: "0",
|
|
819
856
|
step: "any",
|
|
820
|
-
value:
|
|
821
|
-
onChange: (e) =>
|
|
822
|
-
...
|
|
857
|
+
value: q.downtimeHours,
|
|
858
|
+
onChange: (e) => J({
|
|
859
|
+
...q,
|
|
823
860
|
downtimeHours: e.target.value
|
|
824
861
|
}),
|
|
825
862
|
placeholder: "0"
|
|
826
863
|
})]
|
|
827
864
|
})]
|
|
828
865
|
}),
|
|
829
|
-
/* @__PURE__ */
|
|
866
|
+
/* @__PURE__ */ y("div", {
|
|
830
867
|
className: "grid gap-1.5",
|
|
831
|
-
children: [/* @__PURE__ */
|
|
868
|
+
children: [/* @__PURE__ */ v(C, {
|
|
832
869
|
htmlFor: "prodNotes",
|
|
833
870
|
children: "Notes"
|
|
834
|
-
}), /* @__PURE__ */
|
|
871
|
+
}), /* @__PURE__ */ v(He, {
|
|
835
872
|
id: "prodNotes",
|
|
836
873
|
rows: 2,
|
|
837
|
-
value:
|
|
838
|
-
onChange: (e) =>
|
|
839
|
-
...
|
|
874
|
+
value: q.notes,
|
|
875
|
+
onChange: (e) => J({
|
|
876
|
+
...q,
|
|
840
877
|
notes: e.target.value
|
|
841
878
|
}),
|
|
842
879
|
placeholder: "Optional context about this period."
|
|
843
880
|
})]
|
|
844
881
|
}),
|
|
845
|
-
|
|
882
|
+
W && rt && /* @__PURE__ */ v("p", {
|
|
846
883
|
className: "text-sm text-status-error-text",
|
|
847
|
-
children:
|
|
884
|
+
children: W
|
|
848
885
|
})
|
|
849
886
|
]
|
|
850
887
|
}),
|
|
851
|
-
/* @__PURE__ */
|
|
888
|
+
/* @__PURE__ */ y(ze, { children: [/* @__PURE__ */ v(b, {
|
|
852
889
|
variant: "outline",
|
|
853
890
|
type: "button",
|
|
854
|
-
onClick:
|
|
891
|
+
onClick: ft,
|
|
855
892
|
children: "Cancel"
|
|
856
|
-
}), /* @__PURE__ */
|
|
893
|
+
}), /* @__PURE__ */ v(b, {
|
|
857
894
|
type: "submit",
|
|
858
895
|
form: "recordProductionForm",
|
|
859
|
-
disabled:
|
|
860
|
-
children:
|
|
896
|
+
disabled: V.isPending,
|
|
897
|
+
children: V.isPending ? "Recording…" : "Record production"
|
|
861
898
|
})] })
|
|
862
899
|
] })
|
|
863
900
|
}),
|
|
864
|
-
/* @__PURE__ */
|
|
865
|
-
open:
|
|
866
|
-
onOpenChange: (e) => e ?
|
|
867
|
-
children: /* @__PURE__ */
|
|
868
|
-
/* @__PURE__ */
|
|
901
|
+
/* @__PURE__ */ v(Ie, {
|
|
902
|
+
open: it,
|
|
903
|
+
onOpenChange: (e) => e ? at(!0) : $(),
|
|
904
|
+
children: /* @__PURE__ */ y(Le, { children: [
|
|
905
|
+
/* @__PURE__ */ y(Be, { children: [/* @__PURE__ */ v(Ve, { children: "Add reserve estimate" }), /* @__PURE__ */ y(Re, { children: [
|
|
869
906
|
"Record a recoverable-volume estimate for ",
|
|
870
|
-
|
|
907
|
+
F.name,
|
|
871
908
|
"."
|
|
872
909
|
] })] }),
|
|
873
|
-
/* @__PURE__ */
|
|
910
|
+
/* @__PURE__ */ y("form", {
|
|
874
911
|
id: "reserveEstimateForm",
|
|
875
912
|
onSubmit: (e) => {
|
|
876
|
-
e.preventDefault(),
|
|
913
|
+
e.preventDefault(), gt();
|
|
877
914
|
},
|
|
878
915
|
className: "grid gap-4 py-2",
|
|
879
916
|
children: [
|
|
880
|
-
/* @__PURE__ */
|
|
917
|
+
/* @__PURE__ */ y("div", {
|
|
881
918
|
className: "grid gap-2 sm:grid-cols-2",
|
|
882
|
-
children: [/* @__PURE__ */
|
|
919
|
+
children: [/* @__PURE__ */ y("div", {
|
|
883
920
|
className: "grid gap-1.5",
|
|
884
|
-
children: [/* @__PURE__ */
|
|
921
|
+
children: [/* @__PURE__ */ v(C, {
|
|
885
922
|
htmlFor: "resCategory",
|
|
886
923
|
children: "Category"
|
|
887
|
-
}), /* @__PURE__ */
|
|
888
|
-
value:
|
|
889
|
-
onValueChange: (e) =>
|
|
890
|
-
...
|
|
924
|
+
}), /* @__PURE__ */ y(w, {
|
|
925
|
+
value: Y.category,
|
|
926
|
+
onValueChange: (e) => X({
|
|
927
|
+
...Y,
|
|
891
928
|
category: e
|
|
892
929
|
}),
|
|
893
|
-
children: [/* @__PURE__ */
|
|
930
|
+
children: [/* @__PURE__ */ v(D, {
|
|
894
931
|
id: "resCategory",
|
|
895
|
-
children: /* @__PURE__ */
|
|
896
|
-
}), /* @__PURE__ */
|
|
932
|
+
children: /* @__PURE__ */ v(O, {})
|
|
933
|
+
}), /* @__PURE__ */ v(T, { children: We.map((e) => /* @__PURE__ */ v(E, {
|
|
897
934
|
value: e,
|
|
898
|
-
children:
|
|
935
|
+
children: i(e)
|
|
899
936
|
}, e)) })]
|
|
900
937
|
})]
|
|
901
|
-
}), /* @__PURE__ */
|
|
938
|
+
}), /* @__PURE__ */ y("div", {
|
|
902
939
|
className: "grid gap-1.5",
|
|
903
|
-
children: [/* @__PURE__ */
|
|
940
|
+
children: [/* @__PURE__ */ v(C, {
|
|
904
941
|
htmlFor: "resAsOf",
|
|
905
942
|
children: "As-of date *"
|
|
906
|
-
}), /* @__PURE__ */
|
|
943
|
+
}), /* @__PURE__ */ v(S, {
|
|
907
944
|
id: "resAsOf",
|
|
908
945
|
type: "date",
|
|
909
|
-
value:
|
|
910
|
-
onChange: (e) =>
|
|
911
|
-
...
|
|
946
|
+
value: Y.asOfDate,
|
|
947
|
+
onChange: (e) => X({
|
|
948
|
+
...Y,
|
|
912
949
|
asOfDate: e.target.value
|
|
913
950
|
})
|
|
914
951
|
})]
|
|
915
952
|
})]
|
|
916
953
|
}),
|
|
917
|
-
/* @__PURE__ */
|
|
954
|
+
/* @__PURE__ */ y("div", {
|
|
918
955
|
className: "grid gap-2 sm:grid-cols-3",
|
|
919
956
|
children: [
|
|
920
|
-
/* @__PURE__ */
|
|
957
|
+
/* @__PURE__ */ y("div", {
|
|
921
958
|
className: "grid gap-1.5",
|
|
922
|
-
children: [/* @__PURE__ */
|
|
959
|
+
children: [/* @__PURE__ */ v(C, {
|
|
923
960
|
htmlFor: "resRecoverable",
|
|
924
961
|
children: "Recoverable *"
|
|
925
|
-
}), /* @__PURE__ */
|
|
962
|
+
}), /* @__PURE__ */ v(S, {
|
|
926
963
|
id: "resRecoverable",
|
|
927
964
|
type: "number",
|
|
928
965
|
min: "0",
|
|
929
966
|
step: "any",
|
|
930
|
-
value:
|
|
931
|
-
onChange: (e) =>
|
|
932
|
-
...
|
|
967
|
+
value: Y.recoverable,
|
|
968
|
+
onChange: (e) => X({
|
|
969
|
+
...Y,
|
|
933
970
|
recoverable: e.target.value
|
|
934
971
|
}),
|
|
935
972
|
placeholder: "2400000"
|
|
936
973
|
})]
|
|
937
974
|
}),
|
|
938
|
-
/* @__PURE__ */
|
|
975
|
+
/* @__PURE__ */ y("div", {
|
|
939
976
|
className: "grid gap-1.5",
|
|
940
|
-
children: [/* @__PURE__ */
|
|
977
|
+
children: [/* @__PURE__ */ v(C, {
|
|
941
978
|
htmlFor: "resUnit",
|
|
942
979
|
children: "Unit"
|
|
943
|
-
}), /* @__PURE__ */
|
|
944
|
-
value:
|
|
945
|
-
onValueChange: (e) =>
|
|
946
|
-
...
|
|
980
|
+
}), /* @__PURE__ */ y(w, {
|
|
981
|
+
value: Y.unit,
|
|
982
|
+
onValueChange: (e) => X({
|
|
983
|
+
...Y,
|
|
947
984
|
unit: e
|
|
948
985
|
}),
|
|
949
|
-
children: [/* @__PURE__ */
|
|
986
|
+
children: [/* @__PURE__ */ v(D, {
|
|
950
987
|
id: "resUnit",
|
|
951
|
-
children: /* @__PURE__ */
|
|
952
|
-
}), /* @__PURE__ */
|
|
988
|
+
children: /* @__PURE__ */ v(O, {})
|
|
989
|
+
}), /* @__PURE__ */ v(T, { children: Ue.map((e) => /* @__PURE__ */ v(E, {
|
|
953
990
|
value: e,
|
|
954
|
-
children:
|
|
991
|
+
children: i(e)
|
|
955
992
|
}, e)) })]
|
|
956
993
|
})]
|
|
957
994
|
}),
|
|
958
|
-
/* @__PURE__ */
|
|
995
|
+
/* @__PURE__ */ y("div", {
|
|
959
996
|
className: "grid gap-1.5",
|
|
960
|
-
children: [/* @__PURE__ */
|
|
997
|
+
children: [/* @__PURE__ */ v(C, {
|
|
961
998
|
htmlFor: "resFactor",
|
|
962
999
|
children: "Recovery factor (%)"
|
|
963
|
-
}), /* @__PURE__ */
|
|
1000
|
+
}), /* @__PURE__ */ v(S, {
|
|
964
1001
|
id: "resFactor",
|
|
965
1002
|
type: "number",
|
|
966
1003
|
min: "0",
|
|
967
1004
|
max: "100",
|
|
968
1005
|
step: "any",
|
|
969
|
-
value:
|
|
970
|
-
onChange: (e) =>
|
|
971
|
-
...
|
|
1006
|
+
value: Y.recoveryFactor,
|
|
1007
|
+
onChange: (e) => X({
|
|
1008
|
+
...Y,
|
|
972
1009
|
recoveryFactor: e.target.value
|
|
973
1010
|
}),
|
|
974
1011
|
placeholder: "35"
|
|
@@ -976,53 +1013,53 @@ function N() {
|
|
|
976
1013
|
})
|
|
977
1014
|
]
|
|
978
1015
|
}),
|
|
979
|
-
/* @__PURE__ */
|
|
1016
|
+
/* @__PURE__ */ y("div", {
|
|
980
1017
|
className: "grid gap-1.5",
|
|
981
|
-
children: [/* @__PURE__ */
|
|
1018
|
+
children: [/* @__PURE__ */ v(C, {
|
|
982
1019
|
htmlFor: "resMethodology",
|
|
983
1020
|
children: "Methodology"
|
|
984
|
-
}), /* @__PURE__ */
|
|
1021
|
+
}), /* @__PURE__ */ v(S, {
|
|
985
1022
|
id: "resMethodology",
|
|
986
|
-
value:
|
|
987
|
-
onChange: (e) =>
|
|
988
|
-
...
|
|
1023
|
+
value: Y.methodology,
|
|
1024
|
+
onChange: (e) => X({
|
|
1025
|
+
...Y,
|
|
989
1026
|
methodology: e.target.value
|
|
990
1027
|
}),
|
|
991
1028
|
placeholder: "Volumetric / material balance / decline curve"
|
|
992
1029
|
})]
|
|
993
1030
|
}),
|
|
994
|
-
/* @__PURE__ */
|
|
1031
|
+
/* @__PURE__ */ y("div", {
|
|
995
1032
|
className: "grid gap-1.5",
|
|
996
|
-
children: [/* @__PURE__ */
|
|
1033
|
+
children: [/* @__PURE__ */ v(C, {
|
|
997
1034
|
htmlFor: "resNotes",
|
|
998
1035
|
children: "Notes"
|
|
999
|
-
}), /* @__PURE__ */
|
|
1036
|
+
}), /* @__PURE__ */ v(He, {
|
|
1000
1037
|
id: "resNotes",
|
|
1001
1038
|
rows: 2,
|
|
1002
|
-
value:
|
|
1003
|
-
onChange: (e) =>
|
|
1004
|
-
...
|
|
1039
|
+
value: Y.notes,
|
|
1040
|
+
onChange: (e) => X({
|
|
1041
|
+
...Y,
|
|
1005
1042
|
notes: e.target.value
|
|
1006
1043
|
}),
|
|
1007
1044
|
placeholder: "Optional context about this estimate."
|
|
1008
1045
|
})]
|
|
1009
1046
|
}),
|
|
1010
|
-
|
|
1047
|
+
W && it && /* @__PURE__ */ v("p", {
|
|
1011
1048
|
className: "text-sm text-status-error-text",
|
|
1012
|
-
children:
|
|
1049
|
+
children: W
|
|
1013
1050
|
})
|
|
1014
1051
|
]
|
|
1015
1052
|
}),
|
|
1016
|
-
/* @__PURE__ */
|
|
1053
|
+
/* @__PURE__ */ y(ze, { children: [/* @__PURE__ */ v(b, {
|
|
1017
1054
|
variant: "outline",
|
|
1018
1055
|
type: "button",
|
|
1019
1056
|
onClick: $,
|
|
1020
1057
|
children: "Cancel"
|
|
1021
|
-
}), /* @__PURE__ */
|
|
1058
|
+
}), /* @__PURE__ */ v(b, {
|
|
1022
1059
|
type: "submit",
|
|
1023
1060
|
form: "reserveEstimateForm",
|
|
1024
|
-
disabled:
|
|
1025
|
-
children:
|
|
1061
|
+
disabled: H.isPending,
|
|
1062
|
+
children: H.isPending ? "Adding…" : "Add estimate"
|
|
1026
1063
|
})] })
|
|
1027
1064
|
] })
|
|
1028
1065
|
})
|
|
@@ -1030,6 +1067,6 @@ function N() {
|
|
|
1030
1067
|
});
|
|
1031
1068
|
}
|
|
1032
1069
|
//#endregion
|
|
1033
|
-
export {
|
|
1070
|
+
export { M as AssetDetailPage };
|
|
1034
1071
|
|
|
1035
1072
|
//# sourceMappingURL=AssetDetailPage.js.map
|