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