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