@burdenoff/microfe-theglobalfuel 2026.705.2 → 2026.705.3
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/dist/theglobalfuel/hooks/useCursorPager.js +6 -15
- package/dist/theglobalfuel/hooks/useCursorPager.js.map +1 -1
- package/dist/theglobalfuel/pages/assets/AssetsPage.js +99 -99
- package/dist/theglobalfuel/pages/assets/AssetsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/compliance/CompliancePage.js +250 -250
- package/dist/theglobalfuel/pages/compliance/CompliancePage.js.map +1 -1
- package/dist/theglobalfuel/pages/contracts/ContractsPage.js +2 -2
- package/dist/theglobalfuel/pages/contracts/ContractsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.js +174 -174
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/inventory/InventoryPage.js +60 -60
- package/dist/theglobalfuel/pages/inventory/InventoryPage.js.map +1 -1
- package/dist/theglobalfuel/pages/production/ProductionPage.js +2 -2
- package/dist/theglobalfuel/pages/production/ProductionPage.js.map +1 -1
- package/dist/theglobalfuel/pages/reserves/ReservesPage.js +152 -152
- package/dist/theglobalfuel/pages/reserves/ReservesPage.js.map +1 -1
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js +6 -6
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
import { useCallback as e, useState as t } from "react";
|
|
2
2
|
//#region src/theglobalfuel/hooks/useCursorPager.ts
|
|
3
3
|
function n() {
|
|
4
|
-
let [n, r] = t(
|
|
4
|
+
let [n, r] = t(0);
|
|
5
5
|
return {
|
|
6
|
-
page:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
prev: e(() => {
|
|
12
|
-
r((e) => e.length > 1 ? e.slice(0, -1) : e);
|
|
13
|
-
}, []),
|
|
14
|
-
reset: e(() => {
|
|
15
|
-
r([null]);
|
|
16
|
-
}, []),
|
|
17
|
-
onPageChange: e((e, t) => {
|
|
18
|
-
r((n) => e > n.length - 1 ? t ? [...n, t] : n : n.length > 1 ? n.slice(0, -1) : n);
|
|
19
|
-
}, [])
|
|
6
|
+
page: n,
|
|
7
|
+
next: e(() => r((e) => e + 1), []),
|
|
8
|
+
prev: e(() => r((e) => Math.max(0, e - 1)), []),
|
|
9
|
+
reset: e(() => r(0), []),
|
|
10
|
+
onPageChange: e((e) => r(Math.max(0, e)), [])
|
|
20
11
|
};
|
|
21
12
|
}
|
|
22
13
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCursorPager.js","names":[],"sources":["../../../src/theglobalfuel/hooks/useCursorPager.ts"],"sourcesContent":["/**\n * useCursorPager — forward/back
|
|
1
|
+
{"version":3,"file":"useCursorPager.js","names":[],"sources":["../../../src/theglobalfuel/hooks/useCursorPager.ts"],"sourcesContent":["/**\n * useCursorPager — forward/back pager for the `The*Connection` list queries.\n * @module theglobalfuel/hooks\n *\n * Paginates by OFFSET, not cursor. The workspaces gateway's composed\n * `PaginationInput` does not reliably carry `cursor` (a shared federated input\n * type), so sending `pagination.cursor` fails at the gateway / subgraph\n * (VALIDATION_FAILED or, for a null/absent end-cursor, INTERNAL_SERVER_ERROR).\n * The svc DOES honor `offset` (Prisma `skip`), so a page requests\n * `pagination = { limit, offset: page * limit }` and uses `pageInfo.hasMore`\n * to enable Next. Keeps a 0-indexed `page` for display.\n */\n\nimport { useCallback, useState } from 'react';\n\nexport interface CursorPager {\n /** 0-indexed page number for display; multiply by pageSize for the offset. */\n page: number;\n /** Advance one page. */\n next: () => void;\n /** Go back one page (no-op on the first page). */\n prev: () => void;\n /** Reset to the first page (call when filters change). */\n reset: () => void;\n /** Adapter for `<Pagination onPageChange>` — jump to an absolute page index. */\n onPageChange: (targetPage: number) => void;\n}\n\nexport function useCursorPager(): CursorPager {\n const [page, setPage] = useState(0);\n\n const next = useCallback(() => setPage((p) => p + 1), []);\n const prev = useCallback(() => setPage((p) => Math.max(0, p - 1)), []);\n const reset = useCallback(() => setPage(0), []);\n const onPageChange = useCallback((targetPage: number) => setPage(Math.max(0, targetPage)), []);\n\n return { page, next, prev, reset, onPageChange };\n}\n"],"mappings":";;AA4BA,SAAgB,IAA8B;CAC5C,IAAM,CAAC,GAAM,KAAW,EAAS,EAAE;AAOnC,QAAO;EAAE;EAAM,MALF,QAAkB,GAAS,MAAM,IAAI,EAAE,EAAE,EAAE,CAAC;EAKpC,MAJR,QAAkB,GAAS,MAAM,KAAK,IAAI,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC;EAI3C,OAHb,QAAkB,EAAQ,EAAE,EAAE,EAAE,CAAC;EAGb,cAFb,GAAa,MAAuB,EAAQ,KAAK,IAAI,GAAG,EAAW,CAAC,EAAE,EAAE,CAAC;EAE9C"}
|
|
@@ -14,9 +14,9 @@ import { FilterTabs as c } from "../../components/FilterTabs.js";
|
|
|
14
14
|
import { Pagination as l } from "../../components/Pagination.js";
|
|
15
15
|
import "../../components/index.js";
|
|
16
16
|
import { useMemo as u, useState as d } from "react";
|
|
17
|
-
import { Fuel as f, MapPin as
|
|
18
|
-
import { Fragment as
|
|
19
|
-
import { Button as
|
|
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";
|
|
20
20
|
//#region src/theglobalfuel/pages/assets/AssetsPage.tsx
|
|
21
21
|
var A = [
|
|
22
22
|
{
|
|
@@ -106,23 +106,23 @@ function I() {
|
|
|
106
106
|
kind: H === "ALL" ? void 0 : H,
|
|
107
107
|
pagination: {
|
|
108
108
|
limit: P,
|
|
109
|
-
|
|
109
|
+
offset: U.page * P
|
|
110
110
|
}
|
|
111
111
|
}), Z = a(), Q = u(() => X?.items ?? [], [X]), pe = R !== "ALL" || B !== "ALL" || H !== "ALL", me = [
|
|
112
112
|
{
|
|
113
113
|
key: "name",
|
|
114
114
|
header: "Asset",
|
|
115
|
-
render: (e) => /* @__PURE__ */
|
|
115
|
+
render: (e) => /* @__PURE__ */ g("div", {
|
|
116
116
|
className: "flex items-center gap-3",
|
|
117
|
-
children: [/* @__PURE__ */
|
|
117
|
+
children: [/* @__PURE__ */ h("span", {
|
|
118
118
|
className: "grid size-9 shrink-0 place-items-center rounded-lg bg-bg-sunken text-text-secondary",
|
|
119
|
-
children: /* @__PURE__ */
|
|
120
|
-
}), /* @__PURE__ */
|
|
119
|
+
children: /* @__PURE__ */ h(f, { className: "h-4 w-4" })
|
|
120
|
+
}), /* @__PURE__ */ g("div", {
|
|
121
121
|
className: "min-w-0",
|
|
122
|
-
children: [/* @__PURE__ */
|
|
122
|
+
children: [/* @__PURE__ */ h("p", {
|
|
123
123
|
className: "truncate font-semibold text-text-primary",
|
|
124
124
|
children: e.name
|
|
125
|
-
}), e.code && /* @__PURE__ */
|
|
125
|
+
}), e.code && /* @__PURE__ */ h("p", {
|
|
126
126
|
className: "truncate text-xs text-text-tertiary",
|
|
127
127
|
children: e.code
|
|
128
128
|
})]
|
|
@@ -133,7 +133,7 @@ function I() {
|
|
|
133
133
|
key: "kind",
|
|
134
134
|
header: "Kind",
|
|
135
135
|
hideOnMobile: !0,
|
|
136
|
-
render: (e) => /* @__PURE__ */
|
|
136
|
+
render: (e) => /* @__PURE__ */ h("span", {
|
|
137
137
|
className: "text-text-secondary",
|
|
138
138
|
children: n(e.kind)
|
|
139
139
|
})
|
|
@@ -142,7 +142,7 @@ function I() {
|
|
|
142
142
|
key: "commodity",
|
|
143
143
|
header: "Commodity",
|
|
144
144
|
hideOnMobile: !0,
|
|
145
|
-
render: (e) => /* @__PURE__ */
|
|
145
|
+
render: (e) => /* @__PURE__ */ h("span", {
|
|
146
146
|
className: "text-text-secondary",
|
|
147
147
|
children: n(e.commodity)
|
|
148
148
|
})
|
|
@@ -150,7 +150,7 @@ function I() {
|
|
|
150
150
|
{
|
|
151
151
|
key: "status",
|
|
152
152
|
header: "Status",
|
|
153
|
-
render: (e) => /* @__PURE__ */
|
|
153
|
+
render: (e) => /* @__PURE__ */ h(ne, { status: e.status })
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
key: "capacity",
|
|
@@ -158,10 +158,10 @@ function I() {
|
|
|
158
158
|
align: "right",
|
|
159
159
|
hideOnMobile: !0,
|
|
160
160
|
sortValue: (e) => e.capacityPerDay,
|
|
161
|
-
render: (e) => e.capacityPerDay > 0 ? /* @__PURE__ */
|
|
161
|
+
render: (e) => e.capacityPerDay > 0 ? /* @__PURE__ */ g("span", {
|
|
162
162
|
className: "tabular-nums text-text-secondary",
|
|
163
163
|
children: [te(e.capacityPerDay, e.capacityUnit), "/day"]
|
|
164
|
-
}) : /* @__PURE__ */
|
|
164
|
+
}) : /* @__PURE__ */ h("span", {
|
|
165
165
|
className: "text-text-tertiary",
|
|
166
166
|
children: "—"
|
|
167
167
|
})
|
|
@@ -172,7 +172,7 @@ function I() {
|
|
|
172
172
|
align: "right",
|
|
173
173
|
hideOnMobile: !0,
|
|
174
174
|
sortValue: (e) => e.workingInterestPct,
|
|
175
|
-
render: (e) => /* @__PURE__ */
|
|
175
|
+
render: (e) => /* @__PURE__ */ h("span", {
|
|
176
176
|
className: "tabular-nums text-text-secondary",
|
|
177
177
|
children: r(e.workingInterestPct)
|
|
178
178
|
})
|
|
@@ -181,10 +181,10 @@ function I() {
|
|
|
181
181
|
key: "location",
|
|
182
182
|
header: "Location",
|
|
183
183
|
hideOnMobile: !0,
|
|
184
|
-
render: (e) => e.location ? /* @__PURE__ */
|
|
184
|
+
render: (e) => e.location ? /* @__PURE__ */ g("span", {
|
|
185
185
|
className: "inline-flex items-center gap-1.5 text-text-secondary",
|
|
186
|
-
children: [/* @__PURE__ */
|
|
187
|
-
}) : /* @__PURE__ */
|
|
186
|
+
children: [/* @__PURE__ */ h(p, { className: "h-3.5 w-3.5 shrink-0 text-text-tertiary" }), e.location]
|
|
187
|
+
}) : /* @__PURE__ */ h("span", {
|
|
188
188
|
className: "text-text-tertiary",
|
|
189
189
|
children: "—"
|
|
190
190
|
})
|
|
@@ -194,7 +194,7 @@ function I() {
|
|
|
194
194
|
header: "Updated",
|
|
195
195
|
align: "right",
|
|
196
196
|
hideOnMobile: !0,
|
|
197
|
-
render: (e) => /* @__PURE__ */
|
|
197
|
+
render: (e) => /* @__PURE__ */ h("span", {
|
|
198
198
|
className: "text-text-tertiary",
|
|
199
199
|
children: ee(e.updatedAt)
|
|
200
200
|
})
|
|
@@ -226,107 +226,107 @@ function I() {
|
|
|
226
226
|
L.fromError(e), Y(e instanceof Error ? e.message : "Failed to create asset.");
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
|
-
return /* @__PURE__ */
|
|
229
|
+
return /* @__PURE__ */ g(t, {
|
|
230
230
|
title: "Assets",
|
|
231
231
|
description: "Resource registry — fields, wells, mines, plants, terminals & pipelines across every commodity.",
|
|
232
|
-
actions: /* @__PURE__ */
|
|
232
|
+
actions: /* @__PURE__ */ g(_, {
|
|
233
233
|
onClick: () => G(!0),
|
|
234
|
-
children: [/* @__PURE__ */ m
|
|
234
|
+
children: [/* @__PURE__ */ h(m, { className: "mr-1.5 h-4 w-4" }), " New asset"]
|
|
235
235
|
}),
|
|
236
236
|
children: [
|
|
237
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ g("div", {
|
|
238
238
|
className: "mb-5 flex flex-wrap items-center gap-3",
|
|
239
239
|
children: [
|
|
240
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ h(c, {
|
|
241
241
|
options: A,
|
|
242
242
|
value: R,
|
|
243
243
|
onChange: (e) => {
|
|
244
244
|
z(e), U.reset();
|
|
245
245
|
}
|
|
246
246
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ g(T, {
|
|
248
248
|
value: B,
|
|
249
249
|
onValueChange: (e) => {
|
|
250
250
|
V(e), U.reset();
|
|
251
251
|
},
|
|
252
|
-
children: [/* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ h(O, {
|
|
253
253
|
className: "w-48",
|
|
254
254
|
"aria-label": "Filter by commodity",
|
|
255
|
-
children: /* @__PURE__ */
|
|
256
|
-
}), /* @__PURE__ */
|
|
255
|
+
children: /* @__PURE__ */ h(k, { placeholder: "All commodities" })
|
|
256
|
+
}), /* @__PURE__ */ g(E, { children: [/* @__PURE__ */ h(D, {
|
|
257
257
|
value: "ALL",
|
|
258
258
|
children: "All commodities"
|
|
259
|
-
}), M.map((e) => /* @__PURE__ */
|
|
259
|
+
}), M.map((e) => /* @__PURE__ */ h(D, {
|
|
260
260
|
value: e,
|
|
261
261
|
children: n(e)
|
|
262
262
|
}, e))] })]
|
|
263
263
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ g(T, {
|
|
265
265
|
value: H,
|
|
266
266
|
onValueChange: (e) => {
|
|
267
267
|
le(e), U.reset();
|
|
268
268
|
},
|
|
269
|
-
children: [/* @__PURE__ */
|
|
269
|
+
children: [/* @__PURE__ */ h(O, {
|
|
270
270
|
className: "w-48",
|
|
271
271
|
"aria-label": "Filter by kind",
|
|
272
|
-
children: /* @__PURE__ */
|
|
273
|
-
}), /* @__PURE__ */
|
|
272
|
+
children: /* @__PURE__ */ h(k, { placeholder: "All kinds" })
|
|
273
|
+
}), /* @__PURE__ */ g(E, { children: [/* @__PURE__ */ h(D, {
|
|
274
274
|
value: "ALL",
|
|
275
275
|
children: "All kinds"
|
|
276
|
-
}), j.map((e) => /* @__PURE__ */
|
|
276
|
+
}), j.map((e) => /* @__PURE__ */ h(D, {
|
|
277
277
|
value: e,
|
|
278
278
|
children: n(e)
|
|
279
279
|
}, e))] })]
|
|
280
280
|
})
|
|
281
281
|
]
|
|
282
282
|
}),
|
|
283
|
-
ue ? /* @__PURE__ */
|
|
283
|
+
ue ? /* @__PURE__ */ h(i, { label: "Loading assets…" }) : de ? /* @__PURE__ */ h(ie, {
|
|
284
284
|
message: "Couldn't load assets.",
|
|
285
285
|
onRetry: () => fe()
|
|
286
|
-
}) : Q.length === 0 ? /* @__PURE__ */
|
|
286
|
+
}) : Q.length === 0 ? /* @__PURE__ */ h(ae, {
|
|
287
287
|
illustration: "empty-data",
|
|
288
|
-
icon: /* @__PURE__ */
|
|
288
|
+
icon: /* @__PURE__ */ h(f, { className: "h-10 w-10" }),
|
|
289
289
|
title: "No assets yet",
|
|
290
290
|
description: pe ? "No assets match these filters." : "Register your first resource asset to start tracking production, reserves & emissions.",
|
|
291
|
-
action: /* @__PURE__ */
|
|
291
|
+
action: /* @__PURE__ */ g(_, {
|
|
292
292
|
onClick: () => G(!0),
|
|
293
|
-
children: [/* @__PURE__ */ m
|
|
293
|
+
children: [/* @__PURE__ */ h(m, { className: "mr-1.5 h-4 w-4" }), " New asset"]
|
|
294
294
|
})
|
|
295
|
-
}) : /* @__PURE__ */
|
|
295
|
+
}) : /* @__PURE__ */ g(se, { children: [/* @__PURE__ */ h(re, {
|
|
296
296
|
columns: me,
|
|
297
297
|
rows: Q,
|
|
298
298
|
rowKey: (e) => e.id,
|
|
299
299
|
onRowClick: (e) => I(`assets/${e.id}`),
|
|
300
300
|
rowLabel: (e) => `Open ${e.name}`
|
|
301
|
-
}), /* @__PURE__ */
|
|
301
|
+
}), /* @__PURE__ */ h(l, {
|
|
302
302
|
page: U.page,
|
|
303
303
|
pageSize: P,
|
|
304
304
|
itemCount: Q.length,
|
|
305
305
|
hasMore: X?.pageInfo?.hasMore ?? !1,
|
|
306
|
-
onPageChange:
|
|
306
|
+
onPageChange: U.onPageChange
|
|
307
307
|
})] }),
|
|
308
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ h(ce, {
|
|
309
309
|
open: W,
|
|
310
310
|
onOpenChange: (e) => {
|
|
311
311
|
G(e), e || $();
|
|
312
312
|
},
|
|
313
|
-
children: /* @__PURE__ */
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
-
/* @__PURE__ */
|
|
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
316
|
id: "createAssetForm",
|
|
317
317
|
onSubmit: (e) => {
|
|
318
318
|
e.preventDefault(), he();
|
|
319
319
|
},
|
|
320
320
|
className: "grid gap-4 py-2",
|
|
321
321
|
children: [
|
|
322
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ g("div", {
|
|
323
323
|
className: "grid gap-2 sm:grid-cols-2",
|
|
324
|
-
children: [/* @__PURE__ */
|
|
324
|
+
children: [/* @__PURE__ */ g("div", {
|
|
325
325
|
className: "grid gap-1.5",
|
|
326
|
-
children: [/* @__PURE__ */
|
|
326
|
+
children: [/* @__PURE__ */ h(y, {
|
|
327
327
|
htmlFor: "assetName",
|
|
328
328
|
children: "Name *"
|
|
329
|
-
}), /* @__PURE__ */
|
|
329
|
+
}), /* @__PURE__ */ h(v, {
|
|
330
330
|
id: "assetName",
|
|
331
331
|
value: K.name,
|
|
332
332
|
onChange: (e) => q({
|
|
@@ -335,12 +335,12 @@ function I() {
|
|
|
335
335
|
}),
|
|
336
336
|
placeholder: "Rumaila North Field"
|
|
337
337
|
})]
|
|
338
|
-
}), /* @__PURE__ */
|
|
338
|
+
}), /* @__PURE__ */ g("div", {
|
|
339
339
|
className: "grid gap-1.5",
|
|
340
|
-
children: [/* @__PURE__ */
|
|
340
|
+
children: [/* @__PURE__ */ h(y, {
|
|
341
341
|
htmlFor: "assetCode",
|
|
342
342
|
children: "Code"
|
|
343
|
-
}), /* @__PURE__ */
|
|
343
|
+
}), /* @__PURE__ */ h(v, {
|
|
344
344
|
id: "assetCode",
|
|
345
345
|
value: K.code,
|
|
346
346
|
onChange: (e) => q({
|
|
@@ -351,64 +351,64 @@ function I() {
|
|
|
351
351
|
})]
|
|
352
352
|
})]
|
|
353
353
|
}),
|
|
354
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ g("div", {
|
|
355
355
|
className: "grid gap-2 sm:grid-cols-3",
|
|
356
356
|
children: [
|
|
357
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ g("div", {
|
|
358
358
|
className: "grid gap-1.5",
|
|
359
|
-
children: [/* @__PURE__ */
|
|
359
|
+
children: [/* @__PURE__ */ h(y, {
|
|
360
360
|
htmlFor: "assetCommodity",
|
|
361
361
|
children: "Commodity *"
|
|
362
|
-
}), /* @__PURE__ */
|
|
362
|
+
}), /* @__PURE__ */ g(T, {
|
|
363
363
|
value: K.commodity,
|
|
364
364
|
onValueChange: (e) => q({
|
|
365
365
|
...K,
|
|
366
366
|
commodity: e
|
|
367
367
|
}),
|
|
368
|
-
children: [/* @__PURE__ */
|
|
368
|
+
children: [/* @__PURE__ */ h(O, {
|
|
369
369
|
id: "assetCommodity",
|
|
370
|
-
children: /* @__PURE__ */
|
|
371
|
-
}), /* @__PURE__ */
|
|
370
|
+
children: /* @__PURE__ */ h(k, {})
|
|
371
|
+
}), /* @__PURE__ */ h(E, { children: M.map((e) => /* @__PURE__ */ h(D, {
|
|
372
372
|
value: e,
|
|
373
373
|
children: n(e)
|
|
374
374
|
}, e)) })]
|
|
375
375
|
})]
|
|
376
376
|
}),
|
|
377
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ g("div", {
|
|
378
378
|
className: "grid gap-1.5",
|
|
379
|
-
children: [/* @__PURE__ */
|
|
379
|
+
children: [/* @__PURE__ */ h(y, {
|
|
380
380
|
htmlFor: "assetKind",
|
|
381
381
|
children: "Kind"
|
|
382
|
-
}), /* @__PURE__ */
|
|
382
|
+
}), /* @__PURE__ */ g(T, {
|
|
383
383
|
value: K.kind,
|
|
384
384
|
onValueChange: (e) => q({
|
|
385
385
|
...K,
|
|
386
386
|
kind: e
|
|
387
387
|
}),
|
|
388
|
-
children: [/* @__PURE__ */
|
|
388
|
+
children: [/* @__PURE__ */ h(O, {
|
|
389
389
|
id: "assetKind",
|
|
390
|
-
children: /* @__PURE__ */
|
|
391
|
-
}), /* @__PURE__ */
|
|
390
|
+
children: /* @__PURE__ */ h(k, {})
|
|
391
|
+
}), /* @__PURE__ */ h(E, { children: j.map((e) => /* @__PURE__ */ h(D, {
|
|
392
392
|
value: e,
|
|
393
393
|
children: n(e)
|
|
394
394
|
}, e)) })]
|
|
395
395
|
})]
|
|
396
396
|
}),
|
|
397
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ g("div", {
|
|
398
398
|
className: "grid gap-1.5",
|
|
399
|
-
children: [/* @__PURE__ */
|
|
399
|
+
children: [/* @__PURE__ */ h(y, {
|
|
400
400
|
htmlFor: "assetStatus",
|
|
401
401
|
children: "Status"
|
|
402
|
-
}), /* @__PURE__ */
|
|
402
|
+
}), /* @__PURE__ */ g(T, {
|
|
403
403
|
value: K.status,
|
|
404
404
|
onValueChange: (e) => q({
|
|
405
405
|
...K,
|
|
406
406
|
status: e
|
|
407
407
|
}),
|
|
408
|
-
children: [/* @__PURE__ */
|
|
408
|
+
children: [/* @__PURE__ */ h(O, {
|
|
409
409
|
id: "assetStatus",
|
|
410
|
-
children: /* @__PURE__ */
|
|
411
|
-
}), /* @__PURE__ */
|
|
410
|
+
children: /* @__PURE__ */ h(k, {})
|
|
411
|
+
}), /* @__PURE__ */ h(E, { children: A.filter((e) => e.value !== "ALL").map((e) => /* @__PURE__ */ h(D, {
|
|
412
412
|
value: e.value,
|
|
413
413
|
children: e.label
|
|
414
414
|
}, e.value)) })]
|
|
@@ -416,12 +416,12 @@ function I() {
|
|
|
416
416
|
})
|
|
417
417
|
]
|
|
418
418
|
}),
|
|
419
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ g("div", {
|
|
420
420
|
className: "grid gap-1.5",
|
|
421
|
-
children: [/* @__PURE__ */
|
|
421
|
+
children: [/* @__PURE__ */ h(y, {
|
|
422
422
|
htmlFor: "assetLocation",
|
|
423
423
|
children: "Location"
|
|
424
|
-
}), /* @__PURE__ */
|
|
424
|
+
}), /* @__PURE__ */ h(v, {
|
|
425
425
|
id: "assetLocation",
|
|
426
426
|
value: K.location,
|
|
427
427
|
onChange: (e) => q({
|
|
@@ -431,14 +431,14 @@ function I() {
|
|
|
431
431
|
placeholder: "Basra, Iraq"
|
|
432
432
|
})]
|
|
433
433
|
}),
|
|
434
|
-
/* @__PURE__ */
|
|
434
|
+
/* @__PURE__ */ g("div", {
|
|
435
435
|
className: "grid gap-2 sm:grid-cols-2",
|
|
436
|
-
children: [/* @__PURE__ */
|
|
436
|
+
children: [/* @__PURE__ */ g("div", {
|
|
437
437
|
className: "grid gap-1.5",
|
|
438
|
-
children: [/* @__PURE__ */
|
|
438
|
+
children: [/* @__PURE__ */ h(y, {
|
|
439
439
|
htmlFor: "assetLat",
|
|
440
440
|
children: "Latitude"
|
|
441
|
-
}), /* @__PURE__ */
|
|
441
|
+
}), /* @__PURE__ */ h(v, {
|
|
442
442
|
id: "assetLat",
|
|
443
443
|
type: "number",
|
|
444
444
|
step: "any",
|
|
@@ -449,12 +449,12 @@ function I() {
|
|
|
449
449
|
}),
|
|
450
450
|
placeholder: "30.5085"
|
|
451
451
|
})]
|
|
452
|
-
}), /* @__PURE__ */
|
|
452
|
+
}), /* @__PURE__ */ g("div", {
|
|
453
453
|
className: "grid gap-1.5",
|
|
454
|
-
children: [/* @__PURE__ */
|
|
454
|
+
children: [/* @__PURE__ */ h(y, {
|
|
455
455
|
htmlFor: "assetLng",
|
|
456
456
|
children: "Longitude"
|
|
457
|
-
}), /* @__PURE__ */
|
|
457
|
+
}), /* @__PURE__ */ h(v, {
|
|
458
458
|
id: "assetLng",
|
|
459
459
|
type: "number",
|
|
460
460
|
step: "any",
|
|
@@ -467,15 +467,15 @@ function I() {
|
|
|
467
467
|
})]
|
|
468
468
|
})]
|
|
469
469
|
}),
|
|
470
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ g("div", {
|
|
471
471
|
className: "grid gap-2 sm:grid-cols-3",
|
|
472
472
|
children: [
|
|
473
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ g("div", {
|
|
474
474
|
className: "grid gap-1.5 sm:col-span-1",
|
|
475
|
-
children: [/* @__PURE__ */
|
|
475
|
+
children: [/* @__PURE__ */ h(y, {
|
|
476
476
|
htmlFor: "assetCapacity",
|
|
477
477
|
children: "Capacity / day"
|
|
478
|
-
}), /* @__PURE__ */
|
|
478
|
+
}), /* @__PURE__ */ h(v, {
|
|
479
479
|
id: "assetCapacity",
|
|
480
480
|
type: "number",
|
|
481
481
|
min: "0",
|
|
@@ -488,32 +488,32 @@ function I() {
|
|
|
488
488
|
placeholder: "120000"
|
|
489
489
|
})]
|
|
490
490
|
}),
|
|
491
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ g("div", {
|
|
492
492
|
className: "grid gap-1.5",
|
|
493
|
-
children: [/* @__PURE__ */
|
|
493
|
+
children: [/* @__PURE__ */ h(y, {
|
|
494
494
|
htmlFor: "assetUnit",
|
|
495
495
|
children: "Capacity unit"
|
|
496
|
-
}), /* @__PURE__ */
|
|
496
|
+
}), /* @__PURE__ */ g(T, {
|
|
497
497
|
value: K.capacityUnit,
|
|
498
498
|
onValueChange: (e) => q({
|
|
499
499
|
...K,
|
|
500
500
|
capacityUnit: e
|
|
501
501
|
}),
|
|
502
|
-
children: [/* @__PURE__ */
|
|
502
|
+
children: [/* @__PURE__ */ h(O, {
|
|
503
503
|
id: "assetUnit",
|
|
504
|
-
children: /* @__PURE__ */
|
|
505
|
-
}), /* @__PURE__ */
|
|
504
|
+
children: /* @__PURE__ */ h(k, {})
|
|
505
|
+
}), /* @__PURE__ */ h(E, { children: N.map((e) => /* @__PURE__ */ h(D, {
|
|
506
506
|
value: e,
|
|
507
507
|
children: n(e)
|
|
508
508
|
}, e)) })]
|
|
509
509
|
})]
|
|
510
510
|
}),
|
|
511
|
-
/* @__PURE__ */
|
|
511
|
+
/* @__PURE__ */ g("div", {
|
|
512
512
|
className: "grid gap-1.5",
|
|
513
|
-
children: [/* @__PURE__ */
|
|
513
|
+
children: [/* @__PURE__ */ h(y, {
|
|
514
514
|
htmlFor: "assetWi",
|
|
515
515
|
children: "Working interest (%)"
|
|
516
|
-
}), /* @__PURE__ */
|
|
516
|
+
}), /* @__PURE__ */ h(v, {
|
|
517
517
|
id: "assetWi",
|
|
518
518
|
type: "number",
|
|
519
519
|
min: "0",
|
|
@@ -529,20 +529,20 @@ function I() {
|
|
|
529
529
|
})
|
|
530
530
|
]
|
|
531
531
|
}),
|
|
532
|
-
J && /* @__PURE__ */
|
|
532
|
+
J && /* @__PURE__ */ h("p", {
|
|
533
533
|
className: "text-sm text-status-error-text",
|
|
534
534
|
children: J
|
|
535
535
|
})
|
|
536
536
|
]
|
|
537
537
|
}),
|
|
538
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ g(S, { children: [/* @__PURE__ */ h(_, {
|
|
539
539
|
variant: "outline",
|
|
540
540
|
type: "button",
|
|
541
541
|
onClick: () => {
|
|
542
542
|
G(!1), $();
|
|
543
543
|
},
|
|
544
544
|
children: "Cancel"
|
|
545
|
-
}), /* @__PURE__ */
|
|
545
|
+
}), /* @__PURE__ */ h(_, {
|
|
546
546
|
type: "submit",
|
|
547
547
|
form: "createAssetForm",
|
|
548
548
|
disabled: Z.isPending,
|