@burdenoff/microfe-theglobalfuel 2026.705.4 → 2026.709.1

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