@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,20 +1,22 @@
|
|
|
1
1
|
import { PageLayout as e } from "../../components/PageLayout.js";
|
|
2
2
|
import { MetricsCard as t } from "../../components/MetricsCard.js";
|
|
3
|
-
import { formatDate as n, formatEnumLabel as r, formatPercent as i, formatUnit as a, formatVolume as o, toBackendDate as
|
|
4
|
-
import { StatusBadge as
|
|
5
|
-
import { DataTable as
|
|
6
|
-
import { ErrorView as
|
|
7
|
-
import { EmptyState as
|
|
8
|
-
import { useTheAssets as
|
|
9
|
-
import { useCursorPager as
|
|
10
|
-
import { useNotify as
|
|
3
|
+
import { formatDate as n, formatEnumLabel as r, formatPercent as i, formatUnit as a, formatVolume as o, toBackendDate as s } from "../../utils/formatters.js";
|
|
4
|
+
import { StatusBadge as c } from "../../components/StatusBadge.js";
|
|
5
|
+
import { DataTable as l } from "../../components/DataTable.js";
|
|
6
|
+
import { ErrorView as u, LoadingView as ee } from "../../components/StateViews.js";
|
|
7
|
+
import { EmptyState as te } from "../../components/EmptyState.js";
|
|
8
|
+
import { useTheAssets as ne, useTheCreateReserveEstimate as re, useTheReserveEstimates as d } from "../../hooks/useTheGlobalFuelApi.js";
|
|
9
|
+
import { useCursorPager as f } from "../../hooks/useCursorPager.js";
|
|
10
|
+
import { useNotify as ie } from "../../hooks/useNotify.js";
|
|
11
|
+
import { useThePageView as ae } from "../../hooks/useThePageView.js";
|
|
12
|
+
import { useTheTranslation as oe } from "../../hooks/useTheTranslation.js";
|
|
11
13
|
import "../../hooks/index.js";
|
|
12
|
-
import { FilterTabs as
|
|
13
|
-
import { Pagination as
|
|
14
|
-
import { useMemo as
|
|
15
|
-
import { Database as
|
|
16
|
-
import { Fragment as ue, jsx as
|
|
17
|
-
import { Button as
|
|
14
|
+
import { FilterTabs as se } from "../../components/FilterTabs.js";
|
|
15
|
+
import { Pagination as ce } from "../../components/Pagination.js";
|
|
16
|
+
import { useMemo as p, useState as m } from "react";
|
|
17
|
+
import { Database as le, Layers as h, Percent as g, Plus as _ } from "lucide-react";
|
|
18
|
+
import { Fragment as ue, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
19
|
+
import { Button as b, Input as x, Label as S, ResponsiveDialog as de, ResponsiveDialogContent as fe, ResponsiveDialogDescription as pe, ResponsiveDialogFooter as me, ResponsiveDialogHeader as he, ResponsiveDialogTitle as ge, Select as C, SelectContent as w, SelectItem as T, SelectTrigger as E, SelectValue as D, Textarea as _e } from "@burdenoff/fe-libs/ui";
|
|
18
20
|
//#region src/theglobalfuel/pages/reserves/ReservesPage.tsx
|
|
19
21
|
var ve = [
|
|
20
22
|
{
|
|
@@ -55,7 +57,7 @@ var ve = [
|
|
|
55
57
|
"MWH",
|
|
56
58
|
"GJ",
|
|
57
59
|
"MCF"
|
|
58
|
-
],
|
|
60
|
+
], O = 25, k = () => (/* @__PURE__ */ new Date()).toISOString().slice(0, 10), A = {
|
|
59
61
|
assetId: "",
|
|
60
62
|
category: "PROVED",
|
|
61
63
|
asOfDate: "",
|
|
@@ -65,18 +67,19 @@ var ve = [
|
|
|
65
67
|
methodology: "",
|
|
66
68
|
notes: ""
|
|
67
69
|
};
|
|
68
|
-
function
|
|
69
|
-
|
|
70
|
+
function j() {
|
|
71
|
+
ae("reserves");
|
|
72
|
+
let j = oe(), M = ie(), [N, xe] = m("ALL"), [P, Se] = m("ALL"), F = f(), [Ce, I] = m(!1), [L, R] = m(A), [z, B] = m(null), V = ne({ pagination: {
|
|
70
73
|
limit: 100,
|
|
71
74
|
offset: 0
|
|
72
|
-
} }),
|
|
75
|
+
} }), H = p(() => {
|
|
73
76
|
let e = {};
|
|
74
|
-
for (let t of
|
|
77
|
+
for (let t of V.data?.items ?? []) e[t.id] = t.name;
|
|
75
78
|
return e;
|
|
76
|
-
}, [
|
|
77
|
-
limit:
|
|
78
|
-
offset:
|
|
79
|
-
}), K =
|
|
79
|
+
}, [V.data]), U = P === "ALL" ? void 0 : P, W = N === "ALL" ? void 0 : N, { data: G, isLoading: we, isError: Te, refetch: Ee } = d(U, W, {
|
|
80
|
+
limit: O,
|
|
81
|
+
offset: F.page * O
|
|
82
|
+
}), K = d(U, W, { limit: 200 }), q = re(), J = p(() => G?.items ?? [], [G]), Y = p(() => K.data?.items ?? [], [K.data]), X = p(() => {
|
|
80
83
|
let e = {};
|
|
81
84
|
for (let t of Y) e[t.unit] = (e[t.unit] ?? 0) + 1;
|
|
82
85
|
let t = Object.entries(e).sort((e, t) => t[1] - e[1])[0]?.[0], n = t ? Y.filter((e) => e.unit === t).reduce((e, t) => e + t.recoverable, 0) : 0, r = Y.filter((e) => e.recoveryFactor != null);
|
|
@@ -85,13 +88,13 @@ function k() {
|
|
|
85
88
|
totalRecoverable: n,
|
|
86
89
|
avgFactor: r.length ? r.reduce((e, t) => e + (t.recoveryFactor ?? 0), 0) / r.length * 100 : null
|
|
87
90
|
};
|
|
88
|
-
}, [Y]),
|
|
91
|
+
}, [Y]), De = [
|
|
89
92
|
{
|
|
90
93
|
key: "asset",
|
|
91
94
|
header: "Asset",
|
|
92
|
-
render: (e) => /* @__PURE__ */
|
|
95
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
93
96
|
className: "font-semibold text-text-primary",
|
|
94
|
-
children:
|
|
97
|
+
children: H[e.assetId] ?? /* @__PURE__ */ v("span", {
|
|
95
98
|
className: "text-text-tertiary",
|
|
96
99
|
children: "Unknown asset"
|
|
97
100
|
})
|
|
@@ -100,14 +103,14 @@ function k() {
|
|
|
100
103
|
{
|
|
101
104
|
key: "category",
|
|
102
105
|
header: "Category",
|
|
103
|
-
render: (e) => /* @__PURE__ */
|
|
106
|
+
render: (e) => /* @__PURE__ */ v(c, { status: e.category })
|
|
104
107
|
},
|
|
105
108
|
{
|
|
106
109
|
key: "asOfDate",
|
|
107
110
|
header: "As of",
|
|
108
111
|
hideOnMobile: !0,
|
|
109
112
|
sortValue: (e) => new Date(e.asOfDate).getTime(),
|
|
110
|
-
render: (e) => /* @__PURE__ */
|
|
113
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
111
114
|
className: "text-text-secondary",
|
|
112
115
|
children: n(e.asOfDate)
|
|
113
116
|
})
|
|
@@ -117,7 +120,7 @@ function k() {
|
|
|
117
120
|
header: "Recoverable",
|
|
118
121
|
align: "right",
|
|
119
122
|
sortValue: (e) => e.recoverable,
|
|
120
|
-
render: (e) => /* @__PURE__ */
|
|
123
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
121
124
|
className: "tabular-nums font-medium text-text-primary",
|
|
122
125
|
children: o(e.recoverable, e.unit)
|
|
123
126
|
})
|
|
@@ -128,10 +131,10 @@ function k() {
|
|
|
128
131
|
align: "right",
|
|
129
132
|
hideOnMobile: !0,
|
|
130
133
|
sortValue: (e) => e.recoveryFactor ?? -1,
|
|
131
|
-
render: (e) => e.recoveryFactor == null ? /* @__PURE__ */
|
|
134
|
+
render: (e) => e.recoveryFactor == null ? /* @__PURE__ */ v("span", {
|
|
132
135
|
className: "text-text-tertiary",
|
|
133
136
|
children: "—"
|
|
134
|
-
}) : /* @__PURE__ */
|
|
137
|
+
}) : /* @__PURE__ */ v("span", {
|
|
135
138
|
className: "tabular-nums text-text-secondary",
|
|
136
139
|
children: i(e.recoveryFactor * 100)
|
|
137
140
|
})
|
|
@@ -140,263 +143,264 @@ function k() {
|
|
|
140
143
|
key: "methodology",
|
|
141
144
|
header: "Methodology",
|
|
142
145
|
hideOnMobile: !0,
|
|
143
|
-
render: (e) => e.methodology ? /* @__PURE__ */
|
|
146
|
+
render: (e) => e.methodology ? /* @__PURE__ */ v("span", {
|
|
144
147
|
className: "text-text-secondary",
|
|
145
148
|
children: e.methodology
|
|
146
|
-
}) : /* @__PURE__ */
|
|
149
|
+
}) : /* @__PURE__ */ v("span", {
|
|
147
150
|
className: "text-text-tertiary",
|
|
148
151
|
children: "—"
|
|
149
152
|
})
|
|
150
153
|
}
|
|
151
154
|
], Z = () => {
|
|
152
|
-
|
|
153
|
-
...
|
|
154
|
-
asOfDate:
|
|
155
|
-
}),
|
|
155
|
+
R({
|
|
156
|
+
...A,
|
|
157
|
+
asOfDate: k()
|
|
158
|
+
}), B(null), I(!0);
|
|
156
159
|
}, Q = () => {
|
|
157
|
-
|
|
158
|
-
},
|
|
159
|
-
if (!
|
|
160
|
-
|
|
160
|
+
I(!1), R(A), B(null);
|
|
161
|
+
}, Oe = async () => {
|
|
162
|
+
if (!L.assetId) {
|
|
163
|
+
B("Select the asset this estimate belongs to.");
|
|
161
164
|
return;
|
|
162
165
|
}
|
|
163
|
-
let e =
|
|
166
|
+
let e = s(L.asOfDate);
|
|
164
167
|
if (!e) {
|
|
165
|
-
|
|
168
|
+
B("An \"as of\" date is required.");
|
|
166
169
|
return;
|
|
167
170
|
}
|
|
168
|
-
let t = Number(
|
|
169
|
-
if (!
|
|
171
|
+
let t = Number(L.recoverable);
|
|
172
|
+
if (!L.recoverable || Number.isNaN(t) || t <= 0) {
|
|
170
173
|
let e = "Recoverable volume must be greater than zero.";
|
|
171
|
-
|
|
174
|
+
B(e), M.error(e);
|
|
172
175
|
return;
|
|
173
176
|
}
|
|
174
|
-
let n =
|
|
177
|
+
let n = L.recoveryFactor ? Number(L.recoveryFactor) : null;
|
|
175
178
|
if (n != null && (n < 0 || n > 1)) {
|
|
176
|
-
|
|
179
|
+
B("Recovery factor must be between 0 and 1.");
|
|
177
180
|
return;
|
|
178
181
|
}
|
|
179
|
-
|
|
182
|
+
B(null);
|
|
180
183
|
try {
|
|
181
184
|
await q.mutateAsync({
|
|
182
|
-
assetId:
|
|
183
|
-
category:
|
|
185
|
+
assetId: L.assetId,
|
|
186
|
+
category: L.category,
|
|
184
187
|
asOfDate: e,
|
|
185
188
|
recoverable: t,
|
|
186
189
|
recoveryFactor: n,
|
|
187
|
-
unit:
|
|
188
|
-
methodology:
|
|
189
|
-
notes:
|
|
190
|
-
}),
|
|
190
|
+
unit: L.unit,
|
|
191
|
+
methodology: L.methodology.trim() || null,
|
|
192
|
+
notes: L.notes.trim() || null
|
|
193
|
+
}), M.success("Reserve estimate created"), Q();
|
|
191
194
|
} catch (e) {
|
|
192
|
-
|
|
195
|
+
B(e instanceof Error ? e.message : "Failed to create reserve estimate."), M.fromError(e);
|
|
193
196
|
}
|
|
194
|
-
}, $ = !
|
|
195
|
-
return /* @__PURE__ */
|
|
196
|
-
title: "Reserve Estimates",
|
|
197
|
-
description: "Booked recoverable volumes per asset — proved, probable, possible, contingent & prospective.",
|
|
198
|
-
|
|
197
|
+
}, $ = !V.isLoading && (V.data?.items.length ?? 0) === 0;
|
|
198
|
+
return /* @__PURE__ */ y(e, {
|
|
199
|
+
title: j("theglobalfuel.pages.reserves.title", "Reserve Estimates"),
|
|
200
|
+
description: j("theglobalfuel.pages.reserves.description", "Booked recoverable volumes per asset — proved, probable, possible, contingent & prospective."),
|
|
201
|
+
dataTour: "theglobalfuel-reserves-page",
|
|
202
|
+
actions: /* @__PURE__ */ y(b, {
|
|
199
203
|
onClick: Z,
|
|
200
204
|
disabled: $,
|
|
201
|
-
children: [/* @__PURE__ */
|
|
205
|
+
children: [/* @__PURE__ */ v(_, { className: "mr-1.5 h-4 w-4" }), " Add estimate"]
|
|
202
206
|
}),
|
|
203
207
|
children: [
|
|
204
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ y("div", {
|
|
205
209
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
206
210
|
children: [
|
|
207
|
-
/* @__PURE__ */
|
|
208
|
-
icon: /* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ v(t, {
|
|
212
|
+
icon: /* @__PURE__ */ v(le, { className: "h-5 w-5" }),
|
|
209
213
|
value: Y.length,
|
|
210
214
|
label: "Reserve estimates",
|
|
211
215
|
featured: !0
|
|
212
216
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
icon: /* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ v(t, {
|
|
218
|
+
icon: /* @__PURE__ */ v(h, { className: "h-5 w-5" }),
|
|
215
219
|
value: X.dominantUnit ? o(X.totalRecoverable, X.dominantUnit) : "—",
|
|
216
220
|
label: X.dominantUnit ? `Total recoverable (${a(X.dominantUnit)})` : "Total recoverable"
|
|
217
221
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
icon: /* @__PURE__ */ g
|
|
222
|
+
/* @__PURE__ */ v(t, {
|
|
223
|
+
icon: /* @__PURE__ */ v(g, { className: "h-5 w-5" }),
|
|
220
224
|
value: X.avgFactor == null ? "—" : i(X.avgFactor),
|
|
221
225
|
label: "Avg recovery factor"
|
|
222
226
|
})
|
|
223
227
|
]
|
|
224
228
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ y("div", {
|
|
226
230
|
className: "mt-6 mb-5 flex flex-wrap items-center gap-3",
|
|
227
|
-
children: [/* @__PURE__ */
|
|
231
|
+
children: [/* @__PURE__ */ v(se, {
|
|
228
232
|
options: ve,
|
|
229
|
-
value:
|
|
233
|
+
value: N,
|
|
230
234
|
onChange: (e) => {
|
|
231
|
-
|
|
235
|
+
xe(e), F.reset();
|
|
232
236
|
}
|
|
233
|
-
}), /* @__PURE__ */
|
|
234
|
-
value:
|
|
237
|
+
}), /* @__PURE__ */ y(C, {
|
|
238
|
+
value: P,
|
|
235
239
|
onValueChange: (e) => {
|
|
236
|
-
|
|
240
|
+
Se(e), F.reset();
|
|
237
241
|
},
|
|
238
|
-
children: [/* @__PURE__ */
|
|
242
|
+
children: [/* @__PURE__ */ v(E, {
|
|
239
243
|
className: "w-56",
|
|
240
244
|
"aria-label": "Filter by asset",
|
|
241
|
-
children: /* @__PURE__ */
|
|
242
|
-
}), /* @__PURE__ */
|
|
245
|
+
children: /* @__PURE__ */ v(D, { placeholder: "All assets" })
|
|
246
|
+
}), /* @__PURE__ */ y(w, { children: [/* @__PURE__ */ v(T, {
|
|
243
247
|
value: "ALL",
|
|
244
248
|
children: "All assets"
|
|
245
|
-
}), Object.entries(
|
|
249
|
+
}), Object.entries(H).map(([e, t]) => /* @__PURE__ */ v(T, {
|
|
246
250
|
value: e,
|
|
247
251
|
children: t
|
|
248
252
|
}, e))] })]
|
|
249
253
|
})]
|
|
250
254
|
}),
|
|
251
|
-
|
|
255
|
+
we ? /* @__PURE__ */ v(ee, { label: "Loading reserve estimates…" }) : Te ? /* @__PURE__ */ v(u, {
|
|
252
256
|
message: "Couldn't load reserve estimates.",
|
|
253
|
-
onRetry: () =>
|
|
254
|
-
}) : J.length === 0 ? /* @__PURE__ */
|
|
257
|
+
onRetry: () => Ee()
|
|
258
|
+
}) : J.length === 0 ? /* @__PURE__ */ v(te, {
|
|
255
259
|
illustration: "empty-data",
|
|
256
|
-
icon: /* @__PURE__ */
|
|
260
|
+
icon: /* @__PURE__ */ v(h, { className: "h-10 w-10" }),
|
|
257
261
|
title: "No reserve estimates",
|
|
258
|
-
description: $ ? "Register a resource asset first, then book its recoverable reserves here." :
|
|
259
|
-
action: $ ? void 0 : /* @__PURE__ */
|
|
262
|
+
description: $ ? "Register a resource asset first, then book its recoverable reserves here." : N === "ALL" && P === "ALL" ? "Book your first recoverable-reserves estimate against an asset." : "No estimates match these filters.",
|
|
263
|
+
action: $ ? void 0 : /* @__PURE__ */ y(b, {
|
|
260
264
|
onClick: Z,
|
|
261
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ v(_, { className: "mr-1.5 h-4 w-4" }), " Add estimate"]
|
|
262
266
|
})
|
|
263
|
-
}) : /* @__PURE__ */
|
|
264
|
-
columns:
|
|
267
|
+
}) : /* @__PURE__ */ y(ue, { children: [/* @__PURE__ */ v(l, {
|
|
268
|
+
columns: De,
|
|
265
269
|
rows: J,
|
|
266
270
|
rowKey: (e) => e.id,
|
|
267
271
|
defaultSort: {
|
|
268
272
|
key: "asOfDate",
|
|
269
273
|
dir: "desc"
|
|
270
274
|
}
|
|
271
|
-
}), /* @__PURE__ */
|
|
272
|
-
page:
|
|
273
|
-
pageSize:
|
|
275
|
+
}), /* @__PURE__ */ v(ce, {
|
|
276
|
+
page: F.page,
|
|
277
|
+
pageSize: O,
|
|
274
278
|
itemCount: J.length,
|
|
275
|
-
hasMore:
|
|
276
|
-
onPageChange:
|
|
279
|
+
hasMore: G?.pageInfo?.hasMore ?? !1,
|
|
280
|
+
onPageChange: F.onPageChange
|
|
277
281
|
})] }),
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
open:
|
|
280
|
-
onOpenChange: (e) => e ?
|
|
281
|
-
children: /* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ v(de, {
|
|
283
|
+
open: Ce,
|
|
284
|
+
onOpenChange: (e) => e ? I(!0) : Q(),
|
|
285
|
+
children: /* @__PURE__ */ y(fe, { children: [/* @__PURE__ */ y(he, { children: [/* @__PURE__ */ v(ge, { children: "Add reserve estimate" }), /* @__PURE__ */ v(pe, { children: "Book a recoverable-reserves figure for an asset as of a valuation date." })] }), /* @__PURE__ */ y("form", {
|
|
282
286
|
onSubmit: (e) => {
|
|
283
|
-
e.preventDefault(),
|
|
287
|
+
e.preventDefault(), Oe();
|
|
284
288
|
},
|
|
285
|
-
children: [/* @__PURE__ */
|
|
289
|
+
children: [/* @__PURE__ */ y("div", {
|
|
286
290
|
className: "grid gap-4 py-2",
|
|
287
291
|
children: [
|
|
288
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ y("div", {
|
|
289
293
|
className: "grid gap-1.5",
|
|
290
|
-
children: [/* @__PURE__ */
|
|
294
|
+
children: [/* @__PURE__ */ v(S, {
|
|
291
295
|
htmlFor: "reAsset",
|
|
292
296
|
children: "Asset *"
|
|
293
|
-
}), /* @__PURE__ */
|
|
294
|
-
value:
|
|
295
|
-
onValueChange: (e) =>
|
|
296
|
-
...
|
|
297
|
+
}), /* @__PURE__ */ y(C, {
|
|
298
|
+
value: L.assetId,
|
|
299
|
+
onValueChange: (e) => R({
|
|
300
|
+
...L,
|
|
297
301
|
assetId: e
|
|
298
302
|
}),
|
|
299
|
-
children: [/* @__PURE__ */
|
|
303
|
+
children: [/* @__PURE__ */ v(E, {
|
|
300
304
|
id: "reAsset",
|
|
301
|
-
children: /* @__PURE__ */
|
|
302
|
-
}), /* @__PURE__ */
|
|
305
|
+
children: /* @__PURE__ */ v(D, { placeholder: "Select an asset" })
|
|
306
|
+
}), /* @__PURE__ */ v(w, { children: Object.entries(H).map(([e, t]) => /* @__PURE__ */ v(T, {
|
|
303
307
|
value: e,
|
|
304
308
|
children: t
|
|
305
309
|
}, e)) })]
|
|
306
310
|
})]
|
|
307
311
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ y("div", {
|
|
309
313
|
className: "grid gap-2 sm:grid-cols-2",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
314
|
+
children: [/* @__PURE__ */ y("div", {
|
|
311
315
|
className: "grid gap-1.5",
|
|
312
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ v(S, {
|
|
313
317
|
htmlFor: "reCategory",
|
|
314
318
|
children: "Category"
|
|
315
|
-
}), /* @__PURE__ */
|
|
316
|
-
value:
|
|
317
|
-
onValueChange: (e) =>
|
|
318
|
-
...
|
|
319
|
+
}), /* @__PURE__ */ y(C, {
|
|
320
|
+
value: L.category,
|
|
321
|
+
onValueChange: (e) => R({
|
|
322
|
+
...L,
|
|
319
323
|
category: e
|
|
320
324
|
}),
|
|
321
|
-
children: [/* @__PURE__ */
|
|
325
|
+
children: [/* @__PURE__ */ v(E, {
|
|
322
326
|
id: "reCategory",
|
|
323
|
-
children: /* @__PURE__ */
|
|
324
|
-
}), /* @__PURE__ */
|
|
327
|
+
children: /* @__PURE__ */ v(D, {})
|
|
328
|
+
}), /* @__PURE__ */ v(w, { children: ye.map((e) => /* @__PURE__ */ v(T, {
|
|
325
329
|
value: e,
|
|
326
330
|
children: r(e)
|
|
327
331
|
}, e)) })]
|
|
328
332
|
})]
|
|
329
|
-
}), /* @__PURE__ */
|
|
333
|
+
}), /* @__PURE__ */ y("div", {
|
|
330
334
|
className: "grid gap-1.5",
|
|
331
|
-
children: [/* @__PURE__ */
|
|
335
|
+
children: [/* @__PURE__ */ v(S, {
|
|
332
336
|
htmlFor: "reAsOf",
|
|
333
337
|
children: "As of date *"
|
|
334
|
-
}), /* @__PURE__ */
|
|
338
|
+
}), /* @__PURE__ */ v(x, {
|
|
335
339
|
id: "reAsOf",
|
|
336
340
|
type: "date",
|
|
337
|
-
value:
|
|
338
|
-
onChange: (e) =>
|
|
339
|
-
...
|
|
341
|
+
value: L.asOfDate,
|
|
342
|
+
onChange: (e) => R({
|
|
343
|
+
...L,
|
|
340
344
|
asOfDate: e.target.value
|
|
341
345
|
})
|
|
342
346
|
})]
|
|
343
347
|
})]
|
|
344
348
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ y("div", {
|
|
346
350
|
className: "grid gap-2 sm:grid-cols-3",
|
|
347
351
|
children: [
|
|
348
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ y("div", {
|
|
349
353
|
className: "grid gap-1.5",
|
|
350
|
-
children: [/* @__PURE__ */
|
|
354
|
+
children: [/* @__PURE__ */ v(S, {
|
|
351
355
|
htmlFor: "reRecoverable",
|
|
352
356
|
children: "Recoverable *"
|
|
353
|
-
}), /* @__PURE__ */
|
|
357
|
+
}), /* @__PURE__ */ v(x, {
|
|
354
358
|
id: "reRecoverable",
|
|
355
359
|
type: "number",
|
|
356
360
|
min: "0",
|
|
357
361
|
step: "any",
|
|
358
|
-
value:
|
|
359
|
-
onChange: (e) =>
|
|
360
|
-
...
|
|
362
|
+
value: L.recoverable,
|
|
363
|
+
onChange: (e) => R({
|
|
364
|
+
...L,
|
|
361
365
|
recoverable: e.target.value
|
|
362
366
|
}),
|
|
363
367
|
placeholder: "1200000"
|
|
364
368
|
})]
|
|
365
369
|
}),
|
|
366
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ y("div", {
|
|
367
371
|
className: "grid gap-1.5",
|
|
368
|
-
children: [/* @__PURE__ */
|
|
372
|
+
children: [/* @__PURE__ */ v(S, {
|
|
369
373
|
htmlFor: "reUnit",
|
|
370
374
|
children: "Unit"
|
|
371
|
-
}), /* @__PURE__ */
|
|
372
|
-
value:
|
|
373
|
-
onValueChange: (e) =>
|
|
374
|
-
...
|
|
375
|
+
}), /* @__PURE__ */ y(C, {
|
|
376
|
+
value: L.unit,
|
|
377
|
+
onValueChange: (e) => R({
|
|
378
|
+
...L,
|
|
375
379
|
unit: e
|
|
376
380
|
}),
|
|
377
|
-
children: [/* @__PURE__ */
|
|
381
|
+
children: [/* @__PURE__ */ v(E, {
|
|
378
382
|
id: "reUnit",
|
|
379
|
-
children: /* @__PURE__ */
|
|
380
|
-
}), /* @__PURE__ */
|
|
383
|
+
children: /* @__PURE__ */ v(D, {})
|
|
384
|
+
}), /* @__PURE__ */ v(w, { children: be.map((e) => /* @__PURE__ */ v(T, {
|
|
381
385
|
value: e,
|
|
382
386
|
children: a(e)
|
|
383
387
|
}, e)) })]
|
|
384
388
|
})]
|
|
385
389
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
390
|
+
/* @__PURE__ */ y("div", {
|
|
387
391
|
className: "grid gap-1.5",
|
|
388
|
-
children: [/* @__PURE__ */
|
|
392
|
+
children: [/* @__PURE__ */ v(S, {
|
|
389
393
|
htmlFor: "reFactor",
|
|
390
394
|
children: "Recovery factor"
|
|
391
|
-
}), /* @__PURE__ */
|
|
395
|
+
}), /* @__PURE__ */ v(x, {
|
|
392
396
|
id: "reFactor",
|
|
393
397
|
type: "number",
|
|
394
398
|
min: "0",
|
|
395
399
|
max: "1",
|
|
396
400
|
step: "any",
|
|
397
|
-
value:
|
|
398
|
-
onChange: (e) =>
|
|
399
|
-
...
|
|
401
|
+
value: L.recoveryFactor,
|
|
402
|
+
onChange: (e) => R({
|
|
403
|
+
...L,
|
|
400
404
|
recoveryFactor: e.target.value
|
|
401
405
|
}),
|
|
402
406
|
placeholder: "0.35"
|
|
@@ -404,48 +408,48 @@ function k() {
|
|
|
404
408
|
})
|
|
405
409
|
]
|
|
406
410
|
}),
|
|
407
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ y("div", {
|
|
408
412
|
className: "grid gap-1.5",
|
|
409
|
-
children: [/* @__PURE__ */
|
|
413
|
+
children: [/* @__PURE__ */ v(S, {
|
|
410
414
|
htmlFor: "reMethodology",
|
|
411
415
|
children: "Methodology"
|
|
412
|
-
}), /* @__PURE__ */
|
|
416
|
+
}), /* @__PURE__ */ v(x, {
|
|
413
417
|
id: "reMethodology",
|
|
414
|
-
value:
|
|
415
|
-
onChange: (e) =>
|
|
416
|
-
...
|
|
418
|
+
value: L.methodology,
|
|
419
|
+
onChange: (e) => R({
|
|
420
|
+
...L,
|
|
417
421
|
methodology: e.target.value
|
|
418
422
|
}),
|
|
419
423
|
placeholder: "Volumetric / decline curve / PRMS deterministic"
|
|
420
424
|
})]
|
|
421
425
|
}),
|
|
422
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ y("div", {
|
|
423
427
|
className: "grid gap-1.5",
|
|
424
|
-
children: [/* @__PURE__ */
|
|
428
|
+
children: [/* @__PURE__ */ v(S, {
|
|
425
429
|
htmlFor: "reNotes",
|
|
426
430
|
children: "Notes"
|
|
427
|
-
}), /* @__PURE__ */
|
|
431
|
+
}), /* @__PURE__ */ v(_e, {
|
|
428
432
|
id: "reNotes",
|
|
429
433
|
rows: 2,
|
|
430
|
-
value:
|
|
431
|
-
onChange: (e) =>
|
|
432
|
-
...
|
|
434
|
+
value: L.notes,
|
|
435
|
+
onChange: (e) => R({
|
|
436
|
+
...L,
|
|
433
437
|
notes: e.target.value
|
|
434
438
|
}),
|
|
435
439
|
placeholder: "Optional context about this estimate."
|
|
436
440
|
})]
|
|
437
441
|
}),
|
|
438
|
-
|
|
442
|
+
z && /* @__PURE__ */ v("p", {
|
|
439
443
|
className: "text-sm text-status-error-text",
|
|
440
|
-
children:
|
|
444
|
+
children: z
|
|
441
445
|
})
|
|
442
446
|
]
|
|
443
|
-
}), /* @__PURE__ */
|
|
447
|
+
}), /* @__PURE__ */ y(me, { children: [/* @__PURE__ */ v(b, {
|
|
444
448
|
type: "button",
|
|
445
449
|
variant: "outline",
|
|
446
450
|
onClick: Q,
|
|
447
451
|
children: "Cancel"
|
|
448
|
-
}), /* @__PURE__ */
|
|
452
|
+
}), /* @__PURE__ */ v(b, {
|
|
449
453
|
type: "submit",
|
|
450
454
|
disabled: q.isPending,
|
|
451
455
|
children: q.isPending ? "Saving…" : "Add estimate"
|
|
@@ -456,6 +460,6 @@ function k() {
|
|
|
456
460
|
});
|
|
457
461
|
}
|
|
458
462
|
//#endregion
|
|
459
|
-
export {
|
|
463
|
+
export { j as ReservesPage };
|
|
460
464
|
|
|
461
465
|
//# sourceMappingURL=ReservesPage.js.map
|