@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,24 +1,28 @@
|
|
|
1
1
|
import { useTheGlobalFuel as e } from "../../context/TheGlobalFuelContext.js";
|
|
2
2
|
import { PageLayout as t } from "../../components/PageLayout.js";
|
|
3
|
-
import { formatEnumLabel as n, formatPercent as
|
|
4
|
-
import { StatusBadge as
|
|
5
|
-
import { DataTable as
|
|
6
|
-
import { ErrorView as
|
|
7
|
-
import { EmptyState as
|
|
3
|
+
import { formatEnumLabel as n, formatPercent as ee, formatRelativeTime as te, formatVolume as ne } from "../../utils/formatters.js";
|
|
4
|
+
import { StatusBadge as re } from "../../components/StatusBadge.js";
|
|
5
|
+
import { DataTable as r } from "../../components/DataTable.js";
|
|
6
|
+
import { ErrorView as i, LoadingView as a } from "../../components/StateViews.js";
|
|
7
|
+
import { EmptyState as o } from "../../components/EmptyState.js";
|
|
8
8
|
import "../../context/index.js";
|
|
9
|
-
import { useTheAssets as
|
|
10
|
-
import { useCursorPager as
|
|
11
|
-
import { useNotify as
|
|
9
|
+
import { useTheAssets as s, useTheCreateAsset as c } from "../../hooks/useTheGlobalFuelApi.js";
|
|
10
|
+
import { useCursorPager as l } from "../../hooks/useCursorPager.js";
|
|
11
|
+
import { useNotify as u } from "../../hooks/useNotify.js";
|
|
12
|
+
import { useTheAnalytics as d } from "../../hooks/useTheAnalytics.js";
|
|
13
|
+
import { useThePageView as f } from "../../hooks/useThePageView.js";
|
|
14
|
+
import { useTheNativeControls as ie } from "../../hooks/useTheNativeControls.js";
|
|
15
|
+
import { useTheTranslation as ae } from "../../hooks/useTheTranslation.js";
|
|
12
16
|
import "../../hooks/index.js";
|
|
13
|
-
import { FilterTabs as
|
|
14
|
-
import { Pagination as
|
|
17
|
+
import { FilterTabs as oe } from "../../components/FilterTabs.js";
|
|
18
|
+
import { Pagination as se } from "../../components/Pagination.js";
|
|
15
19
|
import "../../components/index.js";
|
|
16
|
-
import { useMemo as
|
|
17
|
-
import { Fuel as
|
|
18
|
-
import { Fragment as
|
|
19
|
-
import { Button as
|
|
20
|
+
import { useMemo as ce, useState as p } from "react";
|
|
21
|
+
import { Fuel as m, MapPin as le, Plus as h } from "lucide-react";
|
|
22
|
+
import { Fragment as ue, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
23
|
+
import { Button as v, Input as y, Label as b, ResponsiveDialog as x, ResponsiveDialogContent as S, ResponsiveDialogDescription as C, ResponsiveDialogFooter as de, ResponsiveDialogHeader as fe, ResponsiveDialogTitle as pe, Select as w, SelectContent as T, SelectItem as E, SelectTrigger as D, SelectValue as O } from "@burdenoff/fe-libs/ui";
|
|
20
24
|
//#region src/theglobalfuel/pages/assets/AssetsPage.tsx
|
|
21
|
-
var
|
|
25
|
+
var k = [
|
|
22
26
|
{
|
|
23
27
|
value: "ALL",
|
|
24
28
|
label: "All"
|
|
@@ -51,7 +55,7 @@ var A = [
|
|
|
51
55
|
value: "RETIRED",
|
|
52
56
|
label: "Retired"
|
|
53
57
|
}
|
|
54
|
-
],
|
|
58
|
+
], A = [
|
|
55
59
|
"OIL_FIELD",
|
|
56
60
|
"GAS_FIELD",
|
|
57
61
|
"WELL",
|
|
@@ -64,7 +68,7 @@ var A = [
|
|
|
64
68
|
"WIND_FARM",
|
|
65
69
|
"STORAGE_TERMINAL",
|
|
66
70
|
"PIPELINE"
|
|
67
|
-
],
|
|
71
|
+
], j = [
|
|
68
72
|
"CRUDE_OIL",
|
|
69
73
|
"NATURAL_GAS",
|
|
70
74
|
"LNG",
|
|
@@ -78,7 +82,7 @@ var A = [
|
|
|
78
82
|
"GOLD",
|
|
79
83
|
"LITHIUM",
|
|
80
84
|
"RARE_EARTH"
|
|
81
|
-
],
|
|
85
|
+
], M = [
|
|
82
86
|
"BARRELS",
|
|
83
87
|
"CUBIC_METERS",
|
|
84
88
|
"TONNES",
|
|
@@ -86,7 +90,7 @@ var A = [
|
|
|
86
90
|
"MWH",
|
|
87
91
|
"GJ",
|
|
88
92
|
"MCF"
|
|
89
|
-
],
|
|
93
|
+
], N = 25, P = {
|
|
90
94
|
name: "",
|
|
91
95
|
code: "",
|
|
92
96
|
commodity: "CRUDE_OIL",
|
|
@@ -99,30 +103,31 @@ var A = [
|
|
|
99
103
|
capacityUnit: "BARRELS",
|
|
100
104
|
workingInterestPct: ""
|
|
101
105
|
};
|
|
102
|
-
function
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
function F() {
|
|
107
|
+
f("assets");
|
|
108
|
+
let F = ae(), { navigateTo: I } = e(), L = u(), { haptic: R } = ie(), { trackAssetCreateClicked: z, trackAssetCreated: B } = d(), [V, me] = p("ALL"), [H, he] = p("ALL"), [U, ge] = p("ALL"), W = l(), [_e, G] = p(!1), [K, q] = p(P), [J, Y] = p(null), { data: X, isLoading: ve, isError: ye, refetch: be } = s({
|
|
109
|
+
status: V === "ALL" ? void 0 : V,
|
|
110
|
+
commodity: H === "ALL" ? void 0 : H,
|
|
111
|
+
kind: U === "ALL" ? void 0 : U,
|
|
107
112
|
pagination: {
|
|
108
|
-
limit:
|
|
109
|
-
offset:
|
|
113
|
+
limit: N,
|
|
114
|
+
offset: W.page * N
|
|
110
115
|
}
|
|
111
|
-
}), Z =
|
|
116
|
+
}), Z = c(), Q = ce(() => X?.items ?? [], [X]), xe = V !== "ALL" || H !== "ALL" || U !== "ALL", Se = [
|
|
112
117
|
{
|
|
113
118
|
key: "name",
|
|
114
119
|
header: "Asset",
|
|
115
|
-
render: (e) => /* @__PURE__ */
|
|
120
|
+
render: (e) => /* @__PURE__ */ _("div", {
|
|
116
121
|
className: "flex items-center gap-3",
|
|
117
|
-
children: [/* @__PURE__ */
|
|
122
|
+
children: [/* @__PURE__ */ g("span", {
|
|
118
123
|
className: "grid size-9 shrink-0 place-items-center rounded-lg bg-bg-sunken text-text-secondary",
|
|
119
|
-
children: /* @__PURE__ */
|
|
120
|
-
}), /* @__PURE__ */
|
|
124
|
+
children: /* @__PURE__ */ g(m, { className: "h-4 w-4" })
|
|
125
|
+
}), /* @__PURE__ */ _("div", {
|
|
121
126
|
className: "min-w-0",
|
|
122
|
-
children: [/* @__PURE__ */
|
|
127
|
+
children: [/* @__PURE__ */ g("p", {
|
|
123
128
|
className: "truncate font-semibold text-text-primary",
|
|
124
129
|
children: e.name
|
|
125
|
-
}), e.code && /* @__PURE__ */
|
|
130
|
+
}), e.code && /* @__PURE__ */ g("p", {
|
|
126
131
|
className: "truncate text-xs text-text-tertiary",
|
|
127
132
|
children: e.code
|
|
128
133
|
})]
|
|
@@ -133,7 +138,7 @@ function I() {
|
|
|
133
138
|
key: "kind",
|
|
134
139
|
header: "Kind",
|
|
135
140
|
hideOnMobile: !0,
|
|
136
|
-
render: (e) => /* @__PURE__ */
|
|
141
|
+
render: (e) => /* @__PURE__ */ g("span", {
|
|
137
142
|
className: "text-text-secondary",
|
|
138
143
|
children: n(e.kind)
|
|
139
144
|
})
|
|
@@ -142,7 +147,7 @@ function I() {
|
|
|
142
147
|
key: "commodity",
|
|
143
148
|
header: "Commodity",
|
|
144
149
|
hideOnMobile: !0,
|
|
145
|
-
render: (e) => /* @__PURE__ */
|
|
150
|
+
render: (e) => /* @__PURE__ */ g("span", {
|
|
146
151
|
className: "text-text-secondary",
|
|
147
152
|
children: n(e.commodity)
|
|
148
153
|
})
|
|
@@ -150,7 +155,7 @@ function I() {
|
|
|
150
155
|
{
|
|
151
156
|
key: "status",
|
|
152
157
|
header: "Status",
|
|
153
|
-
render: (e) => /* @__PURE__ */
|
|
158
|
+
render: (e) => /* @__PURE__ */ g(re, { status: e.status })
|
|
154
159
|
},
|
|
155
160
|
{
|
|
156
161
|
key: "capacity",
|
|
@@ -158,10 +163,10 @@ function I() {
|
|
|
158
163
|
align: "right",
|
|
159
164
|
hideOnMobile: !0,
|
|
160
165
|
sortValue: (e) => e.capacityPerDay,
|
|
161
|
-
render: (e) => e.capacityPerDay > 0 ? /* @__PURE__ */
|
|
166
|
+
render: (e) => e.capacityPerDay > 0 ? /* @__PURE__ */ _("span", {
|
|
162
167
|
className: "tabular-nums text-text-secondary",
|
|
163
|
-
children: [
|
|
164
|
-
}) : /* @__PURE__ */
|
|
168
|
+
children: [ne(e.capacityPerDay, e.capacityUnit), "/day"]
|
|
169
|
+
}) : /* @__PURE__ */ g("span", {
|
|
165
170
|
className: "text-text-tertiary",
|
|
166
171
|
children: "—"
|
|
167
172
|
})
|
|
@@ -172,19 +177,19 @@ function I() {
|
|
|
172
177
|
align: "right",
|
|
173
178
|
hideOnMobile: !0,
|
|
174
179
|
sortValue: (e) => e.workingInterestPct,
|
|
175
|
-
render: (e) => /* @__PURE__ */
|
|
180
|
+
render: (e) => /* @__PURE__ */ g("span", {
|
|
176
181
|
className: "tabular-nums text-text-secondary",
|
|
177
|
-
children:
|
|
182
|
+
children: ee(e.workingInterestPct)
|
|
178
183
|
})
|
|
179
184
|
},
|
|
180
185
|
{
|
|
181
186
|
key: "location",
|
|
182
187
|
header: "Location",
|
|
183
188
|
hideOnMobile: !0,
|
|
184
|
-
render: (e) => e.location ? /* @__PURE__ */
|
|
189
|
+
render: (e) => e.location ? /* @__PURE__ */ _("span", {
|
|
185
190
|
className: "inline-flex items-center gap-1.5 text-text-secondary",
|
|
186
|
-
children: [/* @__PURE__ */
|
|
187
|
-
}) : /* @__PURE__ */
|
|
191
|
+
children: [/* @__PURE__ */ g(le, { className: "h-3.5 w-3.5 shrink-0 text-text-tertiary" }), e.location]
|
|
192
|
+
}) : /* @__PURE__ */ g("span", {
|
|
188
193
|
className: "text-text-tertiary",
|
|
189
194
|
children: "—"
|
|
190
195
|
})
|
|
@@ -194,19 +199,19 @@ function I() {
|
|
|
194
199
|
header: "Updated",
|
|
195
200
|
align: "right",
|
|
196
201
|
hideOnMobile: !0,
|
|
197
|
-
render: (e) => /* @__PURE__ */
|
|
202
|
+
render: (e) => /* @__PURE__ */ g("span", {
|
|
198
203
|
className: "text-text-tertiary",
|
|
199
|
-
children:
|
|
204
|
+
children: te(e.updatedAt)
|
|
200
205
|
})
|
|
201
206
|
}
|
|
202
207
|
], $ = () => {
|
|
203
|
-
q(
|
|
204
|
-
},
|
|
208
|
+
q(P), Y(null);
|
|
209
|
+
}, Ce = async () => {
|
|
205
210
|
if (!K.name.trim()) {
|
|
206
211
|
Y("Asset name is required.");
|
|
207
212
|
return;
|
|
208
213
|
}
|
|
209
|
-
Y(null);
|
|
214
|
+
Y(null), R("light"), z();
|
|
210
215
|
try {
|
|
211
216
|
let e = await Z.mutateAsync({
|
|
212
217
|
name: K.name.trim(),
|
|
@@ -221,112 +226,113 @@ function I() {
|
|
|
221
226
|
capacityUnit: K.capacityUnit,
|
|
222
227
|
workingInterestPct: K.workingInterestPct ? Number(K.workingInterestPct) : null
|
|
223
228
|
});
|
|
224
|
-
L.success("Asset created"), G(!1), $(), I(`assets/${e.id}`);
|
|
229
|
+
B(e.id), L.success("Asset created"), G(!1), $(), I(`assets/${e.id}`);
|
|
225
230
|
} catch (e) {
|
|
226
231
|
L.fromError(e), Y(e instanceof Error ? e.message : "Failed to create asset.");
|
|
227
232
|
}
|
|
228
233
|
};
|
|
229
|
-
return /* @__PURE__ */
|
|
230
|
-
title: "Assets",
|
|
231
|
-
description: "Resource registry — fields, wells, mines, plants, terminals & pipelines across every commodity.",
|
|
232
|
-
|
|
234
|
+
return /* @__PURE__ */ _(t, {
|
|
235
|
+
title: F("theglobalfuel.pages.assets.title", "Assets"),
|
|
236
|
+
description: F("theglobalfuel.pages.assets.description", "Resource registry — fields, wells, mines, plants, terminals & pipelines across every commodity."),
|
|
237
|
+
dataTour: "theglobalfuel-assets-page",
|
|
238
|
+
actions: /* @__PURE__ */ _(v, {
|
|
233
239
|
onClick: () => G(!0),
|
|
234
|
-
children: [/* @__PURE__ */ h
|
|
240
|
+
children: [/* @__PURE__ */ g(h, { className: "mr-1.5 h-4 w-4" }), " New asset"]
|
|
235
241
|
}),
|
|
236
242
|
children: [
|
|
237
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ _("div", {
|
|
238
244
|
className: "mb-5 flex flex-wrap items-center gap-3",
|
|
239
245
|
children: [
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
-
options:
|
|
242
|
-
value:
|
|
246
|
+
/* @__PURE__ */ g(oe, {
|
|
247
|
+
options: k,
|
|
248
|
+
value: V,
|
|
243
249
|
onChange: (e) => {
|
|
244
|
-
|
|
250
|
+
me(e), W.reset();
|
|
245
251
|
}
|
|
246
252
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
248
|
-
value:
|
|
253
|
+
/* @__PURE__ */ _(w, {
|
|
254
|
+
value: H,
|
|
249
255
|
onValueChange: (e) => {
|
|
250
|
-
|
|
256
|
+
he(e), W.reset();
|
|
251
257
|
},
|
|
252
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ g(D, {
|
|
253
259
|
className: "w-48",
|
|
254
260
|
"aria-label": "Filter by commodity",
|
|
255
|
-
children: /* @__PURE__ */
|
|
256
|
-
}), /* @__PURE__ */
|
|
261
|
+
children: /* @__PURE__ */ g(O, { placeholder: "All commodities" })
|
|
262
|
+
}), /* @__PURE__ */ _(T, { children: [/* @__PURE__ */ g(E, {
|
|
257
263
|
value: "ALL",
|
|
258
264
|
children: "All commodities"
|
|
259
|
-
}),
|
|
265
|
+
}), j.map((e) => /* @__PURE__ */ g(E, {
|
|
260
266
|
value: e,
|
|
261
267
|
children: n(e)
|
|
262
268
|
}, e))] })]
|
|
263
269
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
value:
|
|
270
|
+
/* @__PURE__ */ _(w, {
|
|
271
|
+
value: U,
|
|
266
272
|
onValueChange: (e) => {
|
|
267
|
-
|
|
273
|
+
ge(e), W.reset();
|
|
268
274
|
},
|
|
269
|
-
children: [/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ g(D, {
|
|
270
276
|
className: "w-48",
|
|
271
277
|
"aria-label": "Filter by kind",
|
|
272
|
-
children: /* @__PURE__ */
|
|
273
|
-
}), /* @__PURE__ */
|
|
278
|
+
children: /* @__PURE__ */ g(O, { placeholder: "All kinds" })
|
|
279
|
+
}), /* @__PURE__ */ _(T, { children: [/* @__PURE__ */ g(E, {
|
|
274
280
|
value: "ALL",
|
|
275
281
|
children: "All kinds"
|
|
276
|
-
}),
|
|
282
|
+
}), A.map((e) => /* @__PURE__ */ g(E, {
|
|
277
283
|
value: e,
|
|
278
284
|
children: n(e)
|
|
279
285
|
}, e))] })]
|
|
280
286
|
})
|
|
281
287
|
]
|
|
282
288
|
}),
|
|
283
|
-
|
|
289
|
+
ve ? /* @__PURE__ */ g(a, { label: "Loading assets…" }) : ye ? /* @__PURE__ */ g(i, {
|
|
284
290
|
message: "Couldn't load assets.",
|
|
285
|
-
onRetry: () =>
|
|
286
|
-
}) : Q.length === 0 ? /* @__PURE__ */
|
|
291
|
+
onRetry: () => be()
|
|
292
|
+
}) : Q.length === 0 ? /* @__PURE__ */ g(o, {
|
|
287
293
|
illustration: "empty-data",
|
|
288
|
-
icon: /* @__PURE__ */
|
|
294
|
+
icon: /* @__PURE__ */ g(m, { className: "h-10 w-10" }),
|
|
289
295
|
title: "No assets yet",
|
|
290
|
-
description:
|
|
291
|
-
action: /* @__PURE__ */
|
|
296
|
+
description: xe ? "No assets match these filters." : "Register your first resource asset to start tracking production, reserves & emissions.",
|
|
297
|
+
action: /* @__PURE__ */ _(v, {
|
|
292
298
|
onClick: () => G(!0),
|
|
293
|
-
children: [/* @__PURE__ */ h
|
|
299
|
+
children: [/* @__PURE__ */ g(h, { className: "mr-1.5 h-4 w-4" }), " New asset"]
|
|
294
300
|
})
|
|
295
|
-
}) : /* @__PURE__ */
|
|
296
|
-
columns:
|
|
301
|
+
}) : /* @__PURE__ */ _(ue, { children: [/* @__PURE__ */ g(r, {
|
|
302
|
+
columns: Se,
|
|
297
303
|
rows: Q,
|
|
298
304
|
rowKey: (e) => e.id,
|
|
299
305
|
onRowClick: (e) => I(`assets/${e.id}`),
|
|
300
306
|
rowLabel: (e) => `Open ${e.name}`
|
|
301
|
-
}), /* @__PURE__ */
|
|
302
|
-
page:
|
|
303
|
-
pageSize:
|
|
307
|
+
}), /* @__PURE__ */ g(se, {
|
|
308
|
+
page: W.page,
|
|
309
|
+
pageSize: N,
|
|
304
310
|
itemCount: Q.length,
|
|
305
311
|
hasMore: X?.pageInfo?.hasMore ?? !1,
|
|
306
|
-
onPageChange:
|
|
312
|
+
onPageChange: W.onPageChange
|
|
307
313
|
})] }),
|
|
308
|
-
/* @__PURE__ */
|
|
309
|
-
open:
|
|
314
|
+
/* @__PURE__ */ g(x, {
|
|
315
|
+
open: _e,
|
|
310
316
|
onOpenChange: (e) => {
|
|
311
317
|
G(e), e || $();
|
|
312
318
|
},
|
|
313
|
-
children: /* @__PURE__ */
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
-
/* @__PURE__ */
|
|
319
|
+
children: /* @__PURE__ */ _(S, { children: [
|
|
320
|
+
/* @__PURE__ */ _(fe, { children: [/* @__PURE__ */ g(pe, { children: "New asset" }), /* @__PURE__ */ g(C, { children: "Register a resource asset — a field, well, mine, plant, terminal or pipeline." })] }),
|
|
321
|
+
/* @__PURE__ */ _("form", {
|
|
316
322
|
id: "createAssetForm",
|
|
317
323
|
onSubmit: (e) => {
|
|
318
|
-
e.preventDefault(),
|
|
324
|
+
e.preventDefault(), Ce();
|
|
319
325
|
},
|
|
320
326
|
className: "grid gap-4 py-2",
|
|
321
327
|
children: [
|
|
322
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ _("div", {
|
|
323
329
|
className: "grid gap-2 sm:grid-cols-2",
|
|
324
|
-
children: [/* @__PURE__ */
|
|
330
|
+
children: [/* @__PURE__ */ _("div", {
|
|
325
331
|
className: "grid gap-1.5",
|
|
326
|
-
children: [/* @__PURE__ */
|
|
332
|
+
children: [/* @__PURE__ */ g(b, {
|
|
327
333
|
htmlFor: "assetName",
|
|
328
334
|
children: "Name *"
|
|
329
|
-
}), /* @__PURE__ */
|
|
335
|
+
}), /* @__PURE__ */ g(y, {
|
|
330
336
|
id: "assetName",
|
|
331
337
|
value: K.name,
|
|
332
338
|
onChange: (e) => q({
|
|
@@ -335,12 +341,12 @@ function I() {
|
|
|
335
341
|
}),
|
|
336
342
|
placeholder: "Rumaila North Field"
|
|
337
343
|
})]
|
|
338
|
-
}), /* @__PURE__ */
|
|
344
|
+
}), /* @__PURE__ */ _("div", {
|
|
339
345
|
className: "grid gap-1.5",
|
|
340
|
-
children: [/* @__PURE__ */
|
|
346
|
+
children: [/* @__PURE__ */ g(b, {
|
|
341
347
|
htmlFor: "assetCode",
|
|
342
348
|
children: "Code"
|
|
343
|
-
}), /* @__PURE__ */
|
|
349
|
+
}), /* @__PURE__ */ g(y, {
|
|
344
350
|
id: "assetCode",
|
|
345
351
|
value: K.code,
|
|
346
352
|
onChange: (e) => q({
|
|
@@ -351,64 +357,64 @@ function I() {
|
|
|
351
357
|
})]
|
|
352
358
|
})]
|
|
353
359
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
360
|
+
/* @__PURE__ */ _("div", {
|
|
355
361
|
className: "grid gap-2 sm:grid-cols-3",
|
|
356
362
|
children: [
|
|
357
|
-
/* @__PURE__ */
|
|
363
|
+
/* @__PURE__ */ _("div", {
|
|
358
364
|
className: "grid gap-1.5",
|
|
359
|
-
children: [/* @__PURE__ */
|
|
365
|
+
children: [/* @__PURE__ */ g(b, {
|
|
360
366
|
htmlFor: "assetCommodity",
|
|
361
367
|
children: "Commodity *"
|
|
362
|
-
}), /* @__PURE__ */
|
|
368
|
+
}), /* @__PURE__ */ _(w, {
|
|
363
369
|
value: K.commodity,
|
|
364
370
|
onValueChange: (e) => q({
|
|
365
371
|
...K,
|
|
366
372
|
commodity: e
|
|
367
373
|
}),
|
|
368
|
-
children: [/* @__PURE__ */
|
|
374
|
+
children: [/* @__PURE__ */ g(D, {
|
|
369
375
|
id: "assetCommodity",
|
|
370
|
-
children: /* @__PURE__ */
|
|
371
|
-
}), /* @__PURE__ */
|
|
376
|
+
children: /* @__PURE__ */ g(O, {})
|
|
377
|
+
}), /* @__PURE__ */ g(T, { children: j.map((e) => /* @__PURE__ */ g(E, {
|
|
372
378
|
value: e,
|
|
373
379
|
children: n(e)
|
|
374
380
|
}, e)) })]
|
|
375
381
|
})]
|
|
376
382
|
}),
|
|
377
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ _("div", {
|
|
378
384
|
className: "grid gap-1.5",
|
|
379
|
-
children: [/* @__PURE__ */
|
|
385
|
+
children: [/* @__PURE__ */ g(b, {
|
|
380
386
|
htmlFor: "assetKind",
|
|
381
387
|
children: "Kind"
|
|
382
|
-
}), /* @__PURE__ */
|
|
388
|
+
}), /* @__PURE__ */ _(w, {
|
|
383
389
|
value: K.kind,
|
|
384
390
|
onValueChange: (e) => q({
|
|
385
391
|
...K,
|
|
386
392
|
kind: e
|
|
387
393
|
}),
|
|
388
|
-
children: [/* @__PURE__ */
|
|
394
|
+
children: [/* @__PURE__ */ g(D, {
|
|
389
395
|
id: "assetKind",
|
|
390
|
-
children: /* @__PURE__ */
|
|
391
|
-
}), /* @__PURE__ */
|
|
396
|
+
children: /* @__PURE__ */ g(O, {})
|
|
397
|
+
}), /* @__PURE__ */ g(T, { children: A.map((e) => /* @__PURE__ */ g(E, {
|
|
392
398
|
value: e,
|
|
393
399
|
children: n(e)
|
|
394
400
|
}, e)) })]
|
|
395
401
|
})]
|
|
396
402
|
}),
|
|
397
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ _("div", {
|
|
398
404
|
className: "grid gap-1.5",
|
|
399
|
-
children: [/* @__PURE__ */
|
|
405
|
+
children: [/* @__PURE__ */ g(b, {
|
|
400
406
|
htmlFor: "assetStatus",
|
|
401
407
|
children: "Status"
|
|
402
|
-
}), /* @__PURE__ */
|
|
408
|
+
}), /* @__PURE__ */ _(w, {
|
|
403
409
|
value: K.status,
|
|
404
410
|
onValueChange: (e) => q({
|
|
405
411
|
...K,
|
|
406
412
|
status: e
|
|
407
413
|
}),
|
|
408
|
-
children: [/* @__PURE__ */
|
|
414
|
+
children: [/* @__PURE__ */ g(D, {
|
|
409
415
|
id: "assetStatus",
|
|
410
|
-
children: /* @__PURE__ */
|
|
411
|
-
}), /* @__PURE__ */
|
|
416
|
+
children: /* @__PURE__ */ g(O, {})
|
|
417
|
+
}), /* @__PURE__ */ g(T, { children: k.filter((e) => e.value !== "ALL").map((e) => /* @__PURE__ */ g(E, {
|
|
412
418
|
value: e.value,
|
|
413
419
|
children: e.label
|
|
414
420
|
}, e.value)) })]
|
|
@@ -416,12 +422,12 @@ function I() {
|
|
|
416
422
|
})
|
|
417
423
|
]
|
|
418
424
|
}),
|
|
419
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ _("div", {
|
|
420
426
|
className: "grid gap-1.5",
|
|
421
|
-
children: [/* @__PURE__ */
|
|
427
|
+
children: [/* @__PURE__ */ g(b, {
|
|
422
428
|
htmlFor: "assetLocation",
|
|
423
429
|
children: "Location"
|
|
424
|
-
}), /* @__PURE__ */
|
|
430
|
+
}), /* @__PURE__ */ g(y, {
|
|
425
431
|
id: "assetLocation",
|
|
426
432
|
value: K.location,
|
|
427
433
|
onChange: (e) => q({
|
|
@@ -431,14 +437,14 @@ function I() {
|
|
|
431
437
|
placeholder: "Basra, Iraq"
|
|
432
438
|
})]
|
|
433
439
|
}),
|
|
434
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ _("div", {
|
|
435
441
|
className: "grid gap-2 sm:grid-cols-2",
|
|
436
|
-
children: [/* @__PURE__ */
|
|
442
|
+
children: [/* @__PURE__ */ _("div", {
|
|
437
443
|
className: "grid gap-1.5",
|
|
438
|
-
children: [/* @__PURE__ */
|
|
444
|
+
children: [/* @__PURE__ */ g(b, {
|
|
439
445
|
htmlFor: "assetLat",
|
|
440
446
|
children: "Latitude"
|
|
441
|
-
}), /* @__PURE__ */
|
|
447
|
+
}), /* @__PURE__ */ g(y, {
|
|
442
448
|
id: "assetLat",
|
|
443
449
|
type: "number",
|
|
444
450
|
step: "any",
|
|
@@ -449,12 +455,12 @@ function I() {
|
|
|
449
455
|
}),
|
|
450
456
|
placeholder: "30.5085"
|
|
451
457
|
})]
|
|
452
|
-
}), /* @__PURE__ */
|
|
458
|
+
}), /* @__PURE__ */ _("div", {
|
|
453
459
|
className: "grid gap-1.5",
|
|
454
|
-
children: [/* @__PURE__ */
|
|
460
|
+
children: [/* @__PURE__ */ g(b, {
|
|
455
461
|
htmlFor: "assetLng",
|
|
456
462
|
children: "Longitude"
|
|
457
|
-
}), /* @__PURE__ */
|
|
463
|
+
}), /* @__PURE__ */ g(y, {
|
|
458
464
|
id: "assetLng",
|
|
459
465
|
type: "number",
|
|
460
466
|
step: "any",
|
|
@@ -467,15 +473,15 @@ function I() {
|
|
|
467
473
|
})]
|
|
468
474
|
})]
|
|
469
475
|
}),
|
|
470
|
-
/* @__PURE__ */
|
|
476
|
+
/* @__PURE__ */ _("div", {
|
|
471
477
|
className: "grid gap-2 sm:grid-cols-3",
|
|
472
478
|
children: [
|
|
473
|
-
/* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ _("div", {
|
|
474
480
|
className: "grid gap-1.5 sm:col-span-1",
|
|
475
|
-
children: [/* @__PURE__ */
|
|
481
|
+
children: [/* @__PURE__ */ g(b, {
|
|
476
482
|
htmlFor: "assetCapacity",
|
|
477
483
|
children: "Capacity / day"
|
|
478
|
-
}), /* @__PURE__ */
|
|
484
|
+
}), /* @__PURE__ */ g(y, {
|
|
479
485
|
id: "assetCapacity",
|
|
480
486
|
type: "number",
|
|
481
487
|
min: "0",
|
|
@@ -488,32 +494,32 @@ function I() {
|
|
|
488
494
|
placeholder: "120000"
|
|
489
495
|
})]
|
|
490
496
|
}),
|
|
491
|
-
/* @__PURE__ */
|
|
497
|
+
/* @__PURE__ */ _("div", {
|
|
492
498
|
className: "grid gap-1.5",
|
|
493
|
-
children: [/* @__PURE__ */
|
|
499
|
+
children: [/* @__PURE__ */ g(b, {
|
|
494
500
|
htmlFor: "assetUnit",
|
|
495
501
|
children: "Capacity unit"
|
|
496
|
-
}), /* @__PURE__ */
|
|
502
|
+
}), /* @__PURE__ */ _(w, {
|
|
497
503
|
value: K.capacityUnit,
|
|
498
504
|
onValueChange: (e) => q({
|
|
499
505
|
...K,
|
|
500
506
|
capacityUnit: e
|
|
501
507
|
}),
|
|
502
|
-
children: [/* @__PURE__ */
|
|
508
|
+
children: [/* @__PURE__ */ g(D, {
|
|
503
509
|
id: "assetUnit",
|
|
504
|
-
children: /* @__PURE__ */
|
|
505
|
-
}), /* @__PURE__ */
|
|
510
|
+
children: /* @__PURE__ */ g(O, {})
|
|
511
|
+
}), /* @__PURE__ */ g(T, { children: M.map((e) => /* @__PURE__ */ g(E, {
|
|
506
512
|
value: e,
|
|
507
513
|
children: n(e)
|
|
508
514
|
}, e)) })]
|
|
509
515
|
})]
|
|
510
516
|
}),
|
|
511
|
-
/* @__PURE__ */
|
|
517
|
+
/* @__PURE__ */ _("div", {
|
|
512
518
|
className: "grid gap-1.5",
|
|
513
|
-
children: [/* @__PURE__ */
|
|
519
|
+
children: [/* @__PURE__ */ g(b, {
|
|
514
520
|
htmlFor: "assetWi",
|
|
515
521
|
children: "Working interest (%)"
|
|
516
|
-
}), /* @__PURE__ */
|
|
522
|
+
}), /* @__PURE__ */ g(y, {
|
|
517
523
|
id: "assetWi",
|
|
518
524
|
type: "number",
|
|
519
525
|
min: "0",
|
|
@@ -529,20 +535,20 @@ function I() {
|
|
|
529
535
|
})
|
|
530
536
|
]
|
|
531
537
|
}),
|
|
532
|
-
J && /* @__PURE__ */
|
|
538
|
+
J && /* @__PURE__ */ g("p", {
|
|
533
539
|
className: "text-sm text-status-error-text",
|
|
534
540
|
children: J
|
|
535
541
|
})
|
|
536
542
|
]
|
|
537
543
|
}),
|
|
538
|
-
/* @__PURE__ */
|
|
544
|
+
/* @__PURE__ */ _(de, { children: [/* @__PURE__ */ g(v, {
|
|
539
545
|
variant: "outline",
|
|
540
546
|
type: "button",
|
|
541
547
|
onClick: () => {
|
|
542
548
|
G(!1), $();
|
|
543
549
|
},
|
|
544
550
|
children: "Cancel"
|
|
545
|
-
}), /* @__PURE__ */
|
|
551
|
+
}), /* @__PURE__ */ g(v, {
|
|
546
552
|
type: "submit",
|
|
547
553
|
form: "createAssetForm",
|
|
548
554
|
disabled: Z.isPending,
|
|
@@ -554,6 +560,6 @@ function I() {
|
|
|
554
560
|
});
|
|
555
561
|
}
|
|
556
562
|
//#endregion
|
|
557
|
-
export {
|
|
563
|
+
export { F as AssetsPage };
|
|
558
564
|
|
|
559
565
|
//# sourceMappingURL=AssetsPage.js.map
|