@feedmepos/mf-inventory-portal 0.0.22-dev.1 → 0.0.22-dev.10

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 (76) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/{ApprovalView-CtH8I01g.js → ApprovalView-FwJEAzkU.js} +19 -19
  3. package/dist/{BindingsDialog-DFrk_fyd.js → BindingsDialog-DFLnNDpl.js} +1 -1
  4. package/dist/{BindingsPicker-400gISaV.js → BindingsPicker-Dsd2wQUR.js} +19 -19
  5. package/dist/{BindingsTable-CnFKI6iP.js → BindingsTable-CTvUEEjT.js} +1 -1
  6. package/dist/ClosingTemplateView-CPbDZmei.js +1066 -0
  7. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B9RU_arW.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-MW-Ni07p.js} +13 -15
  8. package/dist/{IngredientsView-CRTAgKJz.js → IngredientsView-C07TvvCQ.js} +5 -6
  9. package/dist/{IntegrationView-CNFTKqjk.js → IntegrationView-BAnrTgio.js} +2 -2
  10. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-VkiVLx1K.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-YAjDfJ_v.js} +1 -1
  11. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DkZrgqyr.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CvzA5XrI.js} +1 -1
  12. package/dist/{PurchaseOrderPrintPreview-CJli-_Vn.js → PurchaseOrderPrintPreview-FiOxyAL2.js} +1 -1
  13. package/dist/{ReceiveRequestView-DV_GDzJG.js → ReceiveRequestView-BTZ_99LY.js} +15 -16
  14. package/dist/{RecipeView-CTm_7oNG.js → RecipeView-BTRlXuIp.js} +3 -3
  15. package/dist/{StockView-DtHT2ulM.js → StockView-B50nZjP-.js} +8 -9
  16. package/dist/{SupplierView-B9A5R2Vm.js → SupplierView-CYEdoZ7g.js} +37 -37
  17. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CMMMgbwA.js +762 -0
  18. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BKmp6Emq.js +1505 -0
  19. package/dist/TransferTemplateView-DJYoQWDE.js +1277 -0
  20. package/dist/{UnitView-BL-jtVuZ.js → UnitView-Cg9lop9G.js} +4 -4
  21. package/dist/WarehouseView-DQKq_W8l.js +1017 -0
  22. package/dist/api/closing-template.d.ts +14 -0
  23. package/dist/api/inventory.d.ts +5 -7
  24. package/dist/api/netsuite.d.ts +46 -0
  25. package/dist/api/purchase-order-template.d.ts +0 -4
  26. package/dist/{app-C-z1MfF6.js → app-CRbOk4dN.js} +15759 -15399
  27. package/dist/app.d.ts +6 -0
  28. package/dist/app.js +2 -2
  29. package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
  30. package/dist/components/VirtualScroll.vue.d.ts +47 -0
  31. package/dist/{decimal-DZz-_lgE.js → decimal-BrFW4i9P.js} +1 -1
  32. package/dist/{defineDeepModel-7VQajdPt.js → defineDeepModel-Dihj57Tu.js} +4 -4
  33. package/dist/extensions/promises.d.ts +14 -0
  34. package/dist/{format-time-from-id-9XFszs1J.js → format-time-from-id-CAMmsTAi.js} +1 -1
  35. package/dist/helper/date2.d.ts +1 -0
  36. package/dist/{id-to-date-Bkue77uI.js → id-to-date-CLOPCZAL.js} +1 -1
  37. package/dist/purchase-order-transaction-type-C6B_s24N.js +676 -0
  38. package/dist/stores/api.d.ts +1 -0
  39. package/dist/stores/feature.d.ts +0 -1
  40. package/dist/stores/helper/core-store-proxy.d.ts +3 -0
  41. package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
  42. package/dist/stores/inventory.d.ts +7 -0
  43. package/dist/stores/location.d.ts +24 -42
  44. package/dist/stores/netsuite.d.ts +56 -0
  45. package/dist/stores/route.d.ts +0 -5
  46. package/dist/stores/warehouse.d.ts +4 -7
  47. package/dist/style.css +1 -1
  48. package/dist/{supplier-C6YWXF2Y.js → supplier-CQ57ob8j.js} +1 -1
  49. package/dist/tsconfig.app.tsbuildinfo +1 -1
  50. package/dist/use-template-enabled-locations-2-D5I1uMwS.js +85 -0
  51. package/dist/views/closing-template/components/closing-template-publish/ClosingTemplatePublish.vue.d.ts +6 -0
  52. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +276 -84
  53. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +341 -85
  54. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +14 -0
  55. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +42 -0
  56. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +42 -0
  57. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
  58. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +4 -7
  59. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +2 -2
  60. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +132 -84
  61. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +44 -1014
  62. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +251 -0
  63. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -14
  64. package/dist/{xlsx-Dl6dAHFx.js → xlsx-WWSZpgZu.js} +1 -1
  65. package/dist/{xlsx.util-C1tUhDb8.js → xlsx.util-DjCdSP8D.js} +2 -2
  66. package/package.json +5 -5
  67. package/dist/ClosingTemplateView--8m8cua_.js +0 -919
  68. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-mUNCQTNw.js +0 -740
  69. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BwkUuXqj.js +0 -1428
  70. package/dist/TransferTemplateView-DnyenkGu.js +0 -1349
  71. package/dist/WarehouseView-BkUv1792.js +0 -1056
  72. package/dist/array-ClJzD_Lt.js +0 -30
  73. package/dist/layout/InventoryLayout.vue.d.ts +0 -2
  74. package/dist/layout/layout-routes.d.ts +0 -6
  75. package/dist/purchase-order-transaction-type-DHzMBgFs.js +0 -712
  76. package/dist/use-template-enabled-locations-CFCfbaOd.js +0 -57
@@ -1,1056 +0,0 @@
1
- import { ref as D, defineComponent as z, watch as ee, onMounted as te, onUnmounted as $e, openBlock as P, createElementBlock as I, toRaw as we, reactive as De, createElementVNode as b, toDisplayString as E, unref as p, createVNode as k, resolveComponent as L, createSlots as We, withCtx as N, createTextVNode as Pe, renderSlot as Se, createBlock as j, createCommentVNode as Ae, computed as F, isRef as Ve, normalizeClass as Re, normalizeStyle as Te } from "vue";
2
- import { n as Ee, Q as Ue, T as Le, c as G, V as ae, W as le, X as Ne, i as Be, R as U, j as qe } from "./app-C-z1MfF6.js";
3
- import { useCoreStore as Ie, useI18n as q } from "@feedmepos/mf-common";
4
- import { D as _e, R as Z, F as T } from "./row-action.enum-PMKMRrZR.js";
5
- import { c as je, _ as ze, F as J } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
6
- import { u as Oe, _ as Ge, a as Ke } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B9RU_arW.js";
7
- import { useDialogChild as He, useDialog as Me, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Qe } from "@feedmepos/ui-library";
8
- const Y = Ee((m, f) => {
9
- const h = Ie();
10
- return {
11
- async readWarehouses() {
12
- var l;
13
- const a = ((l = h.currentBusiness.value) == null ? void 0 : l._id) ?? "", s = `${m.inventoryBackendUrl}/businesses/${a}/warehouses`;
14
- return await f.get(s);
15
- },
16
- async createWarehouse(a) {
17
- var i;
18
- const s = ((i = h.currentBusiness.value) == null ? void 0 : i._id) ?? "", l = `${m.inventoryBackendUrl}/businesses/${s}/warehouse`;
19
- return await f.post(l, a);
20
- },
21
- async updateWarehouse(a, s) {
22
- var r;
23
- const l = ((r = h.currentBusiness.value) == null ? void 0 : r._id) ?? "", i = `${m.inventoryBackendUrl}/businesses/${l}/warehouse/${a}`;
24
- return await f.put(i, s);
25
- },
26
- async deleteWarehouse(a) {
27
- var i;
28
- const s = ((i = h.currentBusiness.value) == null ? void 0 : i._id) ?? "", l = `${m.inventoryBackendUrl}/businesses/${s}/warehouse/${a}`;
29
- return await f.delete(l);
30
- }
31
- };
32
- });
33
- function Xe() {
34
- return {
35
- warehouses: []
36
- };
37
- }
38
- const ke = D(Xe());
39
- function Ce() {
40
- return {
41
- // state
42
- get warehouses() {
43
- return ke.value.warehouses;
44
- },
45
- set warehouses(m) {
46
- ke.value.warehouses = m;
47
- },
48
- // actions
49
- async readWarehouses() {
50
- const m = Y();
51
- this.warehouses = await m.readWarehouses();
52
- },
53
- async createWarehouse(m) {
54
- await Y().createWarehouse(m);
55
- },
56
- async updateWarehouse(m) {
57
- await Y().updateWarehouse(m._id, m.profile);
58
- },
59
- async deleteWarehouse(m) {
60
- await Y().deleteWarehouse(m._id);
61
- },
62
- async init() {
63
- const m = Ue();
64
- try {
65
- await this.readWarehouses();
66
- } catch (f) {
67
- throw f instanceof Le || m.error("Error at reading warehouses"), f;
68
- }
69
- }
70
- };
71
- }
72
- function Ze(m, f) {
73
- function h(i, r) {
74
- if (i === Z.Edit) {
75
- m(G(r));
76
- return;
77
- }
78
- if (i === Z.Delete) {
79
- f(G(r));
80
- return;
81
- }
82
- }
83
- const { t: a } = q(), s = [
84
- {
85
- accessorKey: "warehouse",
86
- header: () => a("inventory.warehouse.table.warehouse"),
87
- size: 200
88
- },
89
- {
90
- accessorKey: "contact",
91
- header: () => a("inventory.warehouse.table.contact"),
92
- size: 200
93
- },
94
- {
95
- accessorKey: "email",
96
- header: () => a("inventory.warehouse.table.email"),
97
- size: 200
98
- },
99
- {
100
- accessorKey: "address",
101
- header: () => a("inventory.warehouse.table.address"),
102
- size: "auto"
103
- },
104
- {
105
- id: "action",
106
- header: "",
107
- cell(i) {
108
- return je(
109
- [_e[Z.Edit], _e[Z.Delete]],
110
- (r) => {
111
- h(r, i.row.original.original);
112
- }
113
- );
114
- },
115
- enableSorting: !1,
116
- size: 40,
117
- meta: {
118
- cellClass: "",
119
- headerClass: ""
120
- }
121
- }
122
- ];
123
- function l(i) {
124
- return i.map((r) => ({
125
- original: r,
126
- warehouse: r.profile.name,
127
- contact: r.profile.phoneNo,
128
- email: r.profile.email,
129
- get address() {
130
- const n = r.profile.address;
131
- return [
132
- n == null ? void 0 : n.line1,
133
- n == null ? void 0 : n.line2,
134
- n == null ? void 0 : n.city,
135
- n == null ? void 0 : n.postcode,
136
- n == null ? void 0 : n.state,
137
- n == null ? void 0 : n.country
138
- ].map((v) => v == null ? void 0 : v.trim()).filter((v) => v).join(", ");
139
- }
140
- }));
141
- }
142
- return { columnDefs: s, formatRowData: l };
143
- }
144
- const Je = /* @__PURE__ */ z({
145
- __name: "GoogleMap",
146
- props: {
147
- markers: {
148
- type: Array,
149
- default: () => []
150
- },
151
- polygons: {
152
- type: Array,
153
- default: () => []
154
- },
155
- zoom: {
156
- type: Number,
157
- default: 14
158
- },
159
- editable: {
160
- type: Boolean,
161
- default: !1
162
- },
163
- center: {
164
- type: Object,
165
- default: ae.jb
166
- }
167
- },
168
- emits: ["map-click", "marker-change", "polygon-change", "polygon-right-click"],
169
- setup(m, { expose: f, emit: h }) {
170
- const a = m, s = h;
171
- f({
172
- setCenter: (u) => {
173
- var y, V;
174
- (y = r.value) == null || y.setCenter(u), (V = r.value) == null || V.setZoom(18);
175
- }
176
- });
177
- const { googleMap: l } = le(), i = D(), r = D(null), n = [];
178
- function w(u) {
179
- return {
180
- lat: u.latLng.lat(),
181
- lng: u.latLng.lng()
182
- };
183
- }
184
- function v(u, y, V) {
185
- const $ = l.maps.event.addListener(u, y, V);
186
- n.push($);
187
- }
188
- const g = D([]);
189
- function x(u, y, V) {
190
- v(u, y, V);
191
- }
192
- function A(u) {
193
- S(null), g.value = u.map((y, V) => {
194
- const $ = new l.maps.Marker({
195
- position: y,
196
- draggable: !0
197
- });
198
- return x($, "dragend", (W) => {
199
- s("marker-change", { index: V, position: w(W) });
200
- }), $;
201
- }), S(r.value);
202
- }
203
- function S(u) {
204
- g.value.map((y) => we(y).setMap(u));
205
- }
206
- const c = D([]);
207
- function M(u, y, V) {
208
- v(u, y, V);
209
- }
210
- function C(u, y, V) {
211
- v(u, y, V);
212
- }
213
- function o(u) {
214
- return c.value[u].getPath().getArray().map(({ lat: V, lng: $ }) => ({
215
- lat: V(),
216
- lng: $()
217
- }));
218
- }
219
- function e(u) {
220
- const y = o(u);
221
- s("polygon-change", { index: u, path: y });
222
- }
223
- function t(u, y) {
224
- const $ = o(u).filter((W, K) => K !== y);
225
- s("polygon-change", { index: u, path: $ });
226
- }
227
- function B(u, y) {
228
- y.vertex !== void 0 ? t(u, y.vertex) : s("polygon-right-click", u);
229
- }
230
- function _(u) {
231
- d(null), c.value = u.map((y, V) => {
232
- const $ = new l.maps.Polygon({
233
- paths: y.paths,
234
- strokeColor: y.strokeColor,
235
- fillColor: y.fillColor,
236
- fillOpacity: 0.5,
237
- editable: a.editable
238
- });
239
- return M($, "contextmenu", (W) => B(V, W)), $.getPaths().forEach((W) => {
240
- C(W, "insert_at", () => e(V)), C(W, "set_at", () => e(V));
241
- }), $;
242
- }), d(r.value);
243
- }
244
- function d(u) {
245
- c.value.map((y) => we(y).setMap(u));
246
- }
247
- function O(u, y, V) {
248
- v(u, y, V);
249
- }
250
- function R() {
251
- r.value = new l.maps.Map(i.value, {
252
- center: a.center,
253
- zoom: a.zoom,
254
- mapTypeControl: !1,
255
- streetViewControl: !1,
256
- draggable: !0,
257
- scrollwheel: !0
258
- }), O(r.value, "click", (u) => s("map-click", w(u)));
259
- }
260
- return ee(() => a.markers, A, { deep: !0 }), ee(() => a.polygons, _, { deep: !0 }), te(() => {
261
- !i.value || !l || (R(), A(a.markers), _(a.polygons));
262
- }), $e(() => {
263
- n.forEach((u) => u.remove());
264
- }), (u, y) => (P(), I("div", {
265
- ref_key: "mapRef",
266
- ref: i,
267
- class: "map app-map"
268
- }, null, 512));
269
- }
270
- });
271
- var re = { exports: {} };
272
- function Fe(m, f = 100, h = {}) {
273
- if (typeof m != "function")
274
- throw new TypeError(`Expected the first parameter to be a function, got \`${typeof m}\`.`);
275
- if (f < 0)
276
- throw new RangeError("`wait` must not be negative.");
277
- const { immediate: a } = typeof h == "boolean" ? { immediate: h } : h;
278
- let s, l, i, r, n;
279
- function w() {
280
- const x = s, A = l;
281
- return s = void 0, l = void 0, n = m.apply(x, A), n;
282
- }
283
- function v() {
284
- const x = Date.now() - r;
285
- x < f && x >= 0 ? i = setTimeout(v, f - x) : (i = void 0, a || (n = w()));
286
- }
287
- const g = function(...x) {
288
- if (s && this !== s && Object.getPrototypeOf(this) === Object.getPrototypeOf(s))
289
- throw new Error("Debounced method called with different contexts of the same prototype.");
290
- s = this, l = x, r = Date.now();
291
- const A = a && !i;
292
- return i || (i = setTimeout(v, f)), A && (n = w()), n;
293
- };
294
- return Object.defineProperty(g, "isPending", {
295
- get() {
296
- return i !== void 0;
297
- }
298
- }), g.clear = () => {
299
- i && (clearTimeout(i), i = void 0);
300
- }, g.flush = () => {
301
- i && g.trigger();
302
- }, g.trigger = () => {
303
- n = w(), g.clear();
304
- }, g;
305
- }
306
- re.exports.debounce = Fe;
307
- re.exports = Fe;
308
- var Ye = re.exports;
309
- const eo = /* @__PURE__ */ Ne(Ye), oo = { class: "flex flex-col gap-24" }, to = { class: "flex flex-col gap-8" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ro = { class: "fm-typo-en-body-lg-600" }, no = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, uo = { class: "fm-typo-en-body-lg-600" }, io = /* @__PURE__ */ z({
310
- __name: "CoordinateDialog",
311
- props: {
312
- address: {
313
- type: String,
314
- required: !0
315
- },
316
- coordinate: {
317
- type: Object,
318
- default: void 0
319
- }
320
- },
321
- setup(m) {
322
- const f = m, h = He(), a = le(), { t: s } = q(), l = De(
323
- G(f.coordinate ? f.coordinate : ae.jb)
324
- ), i = D(""), r = eo(async function() {
325
- i.value = await a.getFirstMatchingAddress(
326
- l.lat,
327
- l.lng
328
- );
329
- }, 1e3);
330
- te(() => {
331
- h.emitData(G(l)), r();
332
- });
333
- function n({ position: v }) {
334
- l.lat = v.lat, l.lng = v.lng, h.emitData(G(l)), r();
335
- }
336
- const w = D();
337
- return (v, g) => (P(), I("div", oo, [
338
- b("div", to, [
339
- b("div", null, [
340
- b("span", ao, E(p(s)("inventory.formField.coordinate.address")) + ": ", 1),
341
- b("span", lo, E(i.value), 1)
342
- ]),
343
- b("div", null, [
344
- b("span", so, E(p(s)("inventory.formField.coordinate.longitude")) + ": ", 1),
345
- b("span", ro, E(l.lng), 1)
346
- ]),
347
- b("div", null, [
348
- b("span", no, E(p(s)("inventory.formField.coordinate.latitude")) + ": ", 1),
349
- b("span", uo, E(l.lat), 1)
350
- ])
351
- ]),
352
- k(Je, {
353
- ref_key: "gmapRef",
354
- ref: w,
355
- class: "h-[272px] sm:h-[240px] xs:h-[240px]",
356
- editable: "",
357
- center: l,
358
- markers: [l],
359
- onMarkerChange: n,
360
- onMapClick: g[0] || (g[0] = (x) => n({ position: x }))
361
- }, null, 8, ["center", "markers"])
362
- ]));
363
- }
364
- }), co = /* @__PURE__ */ Be(io, [["__scopeId", "data-v-272f5e8b"]]);
365
- function xe([m, f]) {
366
- return {
367
- lat: f,
368
- lng: m
369
- };
370
- }
371
- function po({ lng: m, lat: f }) {
372
- return [m, f];
373
- }
374
- const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, ho = { key: 1 }, yo = /* @__PURE__ */ z({
375
- __name: "FmCoordinateInput",
376
- props: {
377
- address: {},
378
- modelValue: {},
379
- dialogTitle: {},
380
- label: {},
381
- helperText: {},
382
- helperState: {},
383
- labelMark: {},
384
- labelInfo: {},
385
- placeholder: {},
386
- disabled: { type: Boolean },
387
- rules: {}
388
- },
389
- emits: ["update:modelValue"],
390
- setup(m, { emit: f }) {
391
- const h = m, a = f, s = le(), l = Me(), i = se(), r = oe(h, "modelValue"), n = D(!1), { t: w } = q();
392
- function v(c) {
393
- if (c != null && c[0] && (c != null && c[1]))
394
- return w("inventory.formField.coordinate.longLat", [c[0].toFixed(3), c[1].toFixed(3)]);
395
- }
396
- async function g(c) {
397
- var e, t;
398
- const M = h.modelValue, C = !M && ((e = h.address) != null && e.formatted) ? await s.getFirstMatchingCoordinate(h.address.formatted) : null, o = M ? xe(M) : C ? xe(C) : ae.jb;
399
- l.open({
400
- title: h.dialogTitle ?? h.label ?? w("inventory.formField.coordinate.pinLocation"),
401
- closeButton: !0,
402
- contentComponent: co,
403
- contentComponentProps: {
404
- address: (t = h.address) == null ? void 0 : t.formatted,
405
- coordinate: o
406
- },
407
- primaryActions: {
408
- text: w("common.select"),
409
- close: !0
410
- },
411
- secondaryActions: {
412
- text: w("common.close"),
413
- close: !0
414
- }
415
- }).onPrimary(c);
416
- }
417
- const x = (c) => a("update:modelValue", c ? po(c) : null);
418
- async function A() {
419
- if (!h.disabled) {
420
- if (!s.isGoogleMapReady) {
421
- i.open({
422
- title: w("common.error"),
423
- message: w("inventory.formField.coordinate.error.loadMap"),
424
- type: "error"
425
- });
426
- return;
427
- }
428
- g(x);
429
- }
430
- }
431
- function S() {
432
- a("update:modelValue", null);
433
- }
434
- return (c, M) => {
435
- const C = L("FmField"), o = L("FmButton"), e = L("FmFormGroup");
436
- return P(), I("div", mo, [
437
- k(e, {
438
- class: "flex-1",
439
- "model-value": p(r),
440
- label: c.label,
441
- disabled: c.disabled,
442
- required: c.labelMark === "required",
443
- optional: c.labelMark === "optional",
444
- info: c.labelInfo,
445
- rules: c.rules,
446
- focused: n.value,
447
- "helper-text": c.helperText,
448
- "helper-state": c.helperState,
449
- onClick: M[0] || (M[0] = (t) => A())
450
- }, We({
451
- default: N(({ invalid: t }) => [
452
- c.modelValue && c.modelValue[0] && c.modelValue[1] ? (P(), I("div", fo, [
453
- k(C, {
454
- invalid: t,
455
- class: "fm-typo-en-body-lg-400"
456
- }, {
457
- default: N(() => [
458
- Pe(E(v(c.modelValue)), 1)
459
- ]),
460
- _: 2
461
- }, 1032, ["invalid"])
462
- ])) : (P(), I("div", ho, [
463
- k(o, {
464
- label: p(w)("inventory.formField.coordinate.addCoordinate"),
465
- "prepend-icon": "add",
466
- variant: "plain"
467
- }, null, 8, ["label"])
468
- ]))
469
- ]),
470
- _: 2
471
- }, [
472
- c.$slots.label ? {
473
- name: "label",
474
- fn: N(() => [
475
- Se(c.$slots, "label")
476
- ]),
477
- key: "0"
478
- } : void 0
479
- ]), 1032, ["model-value", "label", "disabled", "required", "optional", "info", "rules", "focused", "helper-text", "helper-state"]),
480
- c.modelValue && c.modelValue[0] && c.modelValue[1] ? (P(), j(o, {
481
- key: 0,
482
- "prepend-icon": "delete",
483
- variant: "tertiary",
484
- onClick: M[1] || (M[1] = (t) => S())
485
- })) : Ae("", !0)
486
- ]);
487
- };
488
- }
489
- }), vo = { class: "flex flex-col gap-40" }, go = { class: "flex flex-col gap-16" }, bo = { class: "flex flex-col gap-8" }, wo = { class: "fm-typo-en-title-sm-800" }, Vo = { class: "grid grid-cols-2 gap-24" }, _o = { class: "flex flex-col gap-8" }, ko = { class: "fm-typo-en-title-sm-800" }, xo = { class: "flex flex-col gap-8" }, Ao = { class: "fm-typo-en-title-sm-800" }, Mo = { class: "flex flex-col gap-16" }, Co = /* @__PURE__ */ z({
490
- __name: "WarehouseForm",
491
- props: {
492
- modelValue: {},
493
- disabled: { type: Boolean }
494
- },
495
- emits: ["update:modelValue", "validation-success"],
496
- setup(m, { expose: f, emit: h }) {
497
- const a = m, s = h, { t: l } = q(), i = F({
498
- get() {
499
- var o, e;
500
- return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
501
- },
502
- set(o) {
503
- const e = a.modelValue ?? {};
504
- e.profile ?? (e.profile = {}), e.profile.name = o, s("update:modelValue", e);
505
- }
506
- }), r = F({
507
- get() {
508
- var o, e;
509
- return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.regNo) ?? "";
510
- },
511
- set(o) {
512
- const e = a.modelValue ?? {};
513
- e.profile ?? (e.profile = {}), e.profile.regNo = o, s("update:modelValue", e);
514
- }
515
- }), n = F({
516
- get() {
517
- var o, e, t;
518
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line1) ?? "";
519
- },
520
- set(o) {
521
- var t;
522
- const e = a.modelValue ?? {};
523
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line1 = o, s("update:modelValue", e);
524
- }
525
- }), w = F({
526
- get() {
527
- var o, e, t;
528
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line2) ?? "";
529
- },
530
- set(o) {
531
- var t;
532
- const e = a.modelValue ?? {};
533
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line2 = o, s("update:modelValue", e);
534
- }
535
- }), v = F({
536
- get() {
537
- var o, e, t;
538
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.city) ?? "";
539
- },
540
- set(o) {
541
- var t;
542
- const e = a.modelValue ?? {};
543
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.city = o, s("update:modelValue", e);
544
- }
545
- }), g = F({
546
- get() {
547
- var o, e, t;
548
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.postcode) ?? "";
549
- },
550
- set(o) {
551
- var t;
552
- const e = a.modelValue ?? {};
553
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.postcode = o, s("update:modelValue", e);
554
- }
555
- }), x = F({
556
- get() {
557
- var o, e, t;
558
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.state) ?? "";
559
- },
560
- set(o) {
561
- var t;
562
- const e = a.modelValue ?? {};
563
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.state = o, s("update:modelValue", e);
564
- }
565
- }), A = F({
566
- get() {
567
- var o, e, t;
568
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.country) ?? "";
569
- },
570
- set(o) {
571
- var t;
572
- const e = a.modelValue ?? {};
573
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.country = o, s("update:modelValue", e);
574
- }
575
- }), S = F({
576
- get() {
577
- var o, e, t;
578
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.coordinates) ?? null;
579
- },
580
- set(o) {
581
- var t;
582
- const e = a.modelValue ?? {};
583
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.coordinates = o, s("update:modelValue", e);
584
- }
585
- }), c = F({
586
- get() {
587
- var o, e;
588
- return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.phoneNo) ?? "";
589
- },
590
- set(o) {
591
- const e = a.modelValue ?? {};
592
- e.profile ?? (e.profile = {}), e.profile.phoneNo = o, s("update:modelValue", e);
593
- }
594
- }), M = F({
595
- get() {
596
- var o, e;
597
- return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
598
- },
599
- set(o) {
600
- const e = a.modelValue ?? {};
601
- e.profile ?? (e.profile = {}), e.profile.email = o, s("update:modelValue", e);
602
- }
603
- }), C = D();
604
- return f({
605
- validateInputs: () => {
606
- var o, e;
607
- (e = (o = C.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
608
- },
609
- resetInputsValidation: () => {
610
- var o, e;
611
- (e = (o = C.value) == null ? void 0 : o.resetInputsValidation) == null || e.call(o);
612
- },
613
- resetInputs: () => {
614
- var o, e;
615
- (e = (o = C.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
616
- }
617
- }), (o, e) => {
618
- const t = L("FmTextField"), B = L("FmPhoneNumber"), _ = L("FmForm");
619
- return P(), j(_, {
620
- ref_key: "formRef",
621
- ref: C,
622
- onValidationSuccess: e[11] || (e[11] = (d) => s("validation-success"))
623
- }, {
624
- default: N(() => [
625
- b("div", vo, [
626
- b("div", go, [
627
- k(t, {
628
- disabled: o.disabled,
629
- rules: [p(U)()],
630
- "label-mark": "required",
631
- label: p(l)("inventory.warehouse.companyName"),
632
- modelValue: i.value,
633
- "onUpdate:modelValue": e[0] || (e[0] = (d) => i.value = d)
634
- }, null, 8, ["disabled", "rules", "label", "modelValue"]),
635
- k(t, {
636
- disabled: o.disabled,
637
- rules: [p(U)()],
638
- "label-mark": "required",
639
- label: p(l)("inventory.warehouse.registrationNo"),
640
- modelValue: r.value,
641
- "onUpdate:modelValue": e[1] || (e[1] = (d) => r.value = d)
642
- }, null, 8, ["disabled", "rules", "label", "modelValue"])
643
- ]),
644
- b("div", bo, [
645
- b("div", wo, E(p(l)("inventory.warehouse.address.title")), 1),
646
- b("div", Vo, [
647
- k(t, {
648
- disabled: o.disabled,
649
- rules: [p(U)()],
650
- "label-mark": "required",
651
- label: p(l)("inventory.warehouse.address.line1"),
652
- modelValue: n.value,
653
- "onUpdate:modelValue": e[2] || (e[2] = (d) => n.value = d)
654
- }, null, 8, ["disabled", "rules", "label", "modelValue"]),
655
- k(t, {
656
- disabled: o.disabled,
657
- "label-mark": "optional",
658
- label: p(l)("inventory.warehouse.address.line2"),
659
- modelValue: w.value,
660
- "onUpdate:modelValue": e[3] || (e[3] = (d) => w.value = d)
661
- }, null, 8, ["disabled", "label", "modelValue"]),
662
- k(t, {
663
- disabled: o.disabled,
664
- rules: [p(U)()],
665
- "label-mark": "required",
666
- label: p(l)("inventory.warehouse.address.city"),
667
- modelValue: v.value,
668
- "onUpdate:modelValue": e[4] || (e[4] = (d) => v.value = d)
669
- }, null, 8, ["disabled", "rules", "label", "modelValue"]),
670
- k(t, {
671
- disabled: o.disabled,
672
- rules: [p(U)()],
673
- "label-mark": "required",
674
- label: p(l)("inventory.warehouse.address.postcode"),
675
- modelValue: g.value,
676
- "onUpdate:modelValue": e[5] || (e[5] = (d) => g.value = d)
677
- }, null, 8, ["disabled", "rules", "label", "modelValue"]),
678
- k(t, {
679
- disabled: o.disabled,
680
- rules: [p(U)()],
681
- "label-mark": "required",
682
- label: p(l)("inventory.warehouse.address.state"),
683
- modelValue: x.value,
684
- "onUpdate:modelValue": e[6] || (e[6] = (d) => x.value = d)
685
- }, null, 8, ["disabled", "rules", "label", "modelValue"]),
686
- k(t, {
687
- disabled: o.disabled,
688
- rules: [p(U)()],
689
- "label-mark": "required",
690
- label: p(l)("inventory.warehouse.address.country"),
691
- modelValue: A.value,
692
- "onUpdate:modelValue": e[7] || (e[7] = (d) => A.value = d)
693
- }, null, 8, ["disabled", "rules", "label", "modelValue"])
694
- ])
695
- ]),
696
- b("div", _o, [
697
- b("div", ko, E(p(l)("inventory.warehouse.coordinate.title")), 1),
698
- k(yo, {
699
- disabled: o.disabled,
700
- rules: [p(U)()],
701
- "label-mark": "required",
702
- modelValue: S.value,
703
- "onUpdate:modelValue": e[8] || (e[8] = (d) => S.value = d)
704
- }, null, 8, ["disabled", "rules", "modelValue"])
705
- ]),
706
- b("div", xo, [
707
- b("div", Ao, E(p(l)("inventory.warehouse.contact.title")), 1),
708
- b("div", Mo, [
709
- k(B, {
710
- disabled: o.disabled,
711
- rules: [p(U)()],
712
- "label-mark": "required",
713
- label: p(l)("inventory.warehouse.contact.phoneNumber"),
714
- modelValue: c.value,
715
- "onUpdate:modelValue": e[9] || (e[9] = (d) => c.value = d)
716
- }, null, 8, ["disabled", "rules", "label", "modelValue"]),
717
- k(t, {
718
- disabled: o.disabled,
719
- "label-mark": "optional",
720
- label: p(l)("inventory.warehouse.contact.email"),
721
- modelValue: M.value,
722
- "onUpdate:modelValue": e[10] || (e[10] = (d) => M.value = d)
723
- }, null, 8, ["disabled", "label", "modelValue"])
724
- ])
725
- ])
726
- ])
727
- ]),
728
- _: 1
729
- }, 512);
730
- };
731
- }
732
- }), Fo = { class: "flex gap-4" }, $o = /* @__PURE__ */ z({
733
- __name: "WarehouseDialog",
734
- props: {
735
- mode: {},
736
- warehouse: {},
737
- show: { type: Boolean }
738
- },
739
- emits: ["update:show", "submitted"],
740
- setup(m, { expose: f, emit: h }) {
741
- const a = m, s = h, l = D(!1), i = se(), { t: r } = q(), n = Ce(), w = F(() => {
742
- switch (a.mode) {
743
- case T.READ:
744
- return "";
745
- case T.UPDATE:
746
- return r("inventory.warehouse.update.title");
747
- case T.CREATE:
748
- return r("inventory.warehouse.create.title");
749
- }
750
- return "";
751
- }), v = F(() => {
752
- switch (a.mode) {
753
- case T.READ:
754
- return "";
755
- case T.UPDATE:
756
- return r("common.save");
757
- case T.CREATE:
758
- return r("common.add");
759
- }
760
- return "";
761
- }), g = D();
762
- f({
763
- validateInputs: () => {
764
- var o, e;
765
- (e = (o = g.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
766
- },
767
- resetInputsValidation: () => {
768
- var o, e;
769
- (e = (o = g.value) == null ? void 0 : o.resetInputsValidation) == null || e.call(o);
770
- },
771
- resetInputs: () => {
772
- var o, e;
773
- (e = (o = g.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
774
- }
775
- });
776
- const x = oe(a, "show"), A = oe(a, "warehouse");
777
- function S() {
778
- var o, e;
779
- (e = (o = g.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
780
- }
781
- function c() {
782
- switch (a.mode) {
783
- case T.READ:
784
- return;
785
- case T.UPDATE:
786
- return C();
787
- case T.CREATE:
788
- return M();
789
- }
790
- }
791
- async function M() {
792
- var o, e;
793
- l.value = !0;
794
- try {
795
- await Promise.all([
796
- n.createWarehouse(A.value),
797
- new Promise((t) => setTimeout(t, 1e3))
798
- ]), i.open({
799
- title: r("common.success"),
800
- message: r("inventory.warehouse.create.success", { name: (e = (o = A.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
801
- type: "success"
802
- }), s("update:show", !1), s("submitted");
803
- } catch (t) {
804
- i.open({
805
- title: r("inventory.warehouse.create.error.title"),
806
- message: r("inventory.warehouse.create.error.message"),
807
- type: "error"
808
- }), console.error("cannot create warehouse", t);
809
- } finally {
810
- l.value = !1;
811
- }
812
- }
813
- async function C() {
814
- var o, e;
815
- if (A.value === null) {
816
- i.open({
817
- title: r("inventory.warehouse.update.error.title"),
818
- message: r("inventory.warehouse.update.error.emptyWarehouse"),
819
- type: "error"
820
- });
821
- return;
822
- }
823
- l.value = !0;
824
- try {
825
- await Promise.all([
826
- n.updateWarehouse(A.value),
827
- new Promise((t) => setTimeout(t, 1e3))
828
- ]), i.open({
829
- title: r("common.success"),
830
- message: r("inventory.warehouse.update.success", { name: (e = (o = A.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
831
- type: "success"
832
- }), s("update:show", !1), s("submitted");
833
- } catch (t) {
834
- i.open({
835
- title: r("inventory.warehouse.update.error.title"),
836
- message: r("inventory.warehouse.update.error.message"),
837
- type: "error"
838
- }), console.error("cannot update warehouse", t);
839
- } finally {
840
- l.value = !1;
841
- }
842
- }
843
- return (o, e) => {
844
- const t = L("FmButton"), B = L("FmSideSheet");
845
- return P(), j(B, {
846
- header: w.value,
847
- modelValue: p(x),
848
- "onUpdate:modelValue": e[1] || (e[1] = (_) => Ve(x) ? x.value = _ : null),
849
- "dismiss-away": !l.value,
850
- "close-button": "",
851
- "max-width": 500
852
- }, {
853
- default: N(() => {
854
- var _;
855
- return [
856
- (P(), j(Co, {
857
- class: "w-full",
858
- ref_key: "formRef",
859
- ref: g,
860
- modelValue: p(A),
861
- "onUpdate:modelValue": e[0] || (e[0] = (d) => Ve(A) ? A.value = d : null),
862
- onValidationSuccess: c,
863
- key: ((_ = o.warehouse) == null ? void 0 : _._id) ?? "",
864
- disabled: l.value
865
- }, null, 8, ["modelValue", "disabled"]))
866
- ];
867
- }),
868
- "side-sheet-footer": N(() => [
869
- b("div", Fo, [
870
- k(t, {
871
- loading: l.value,
872
- label: v.value,
873
- onClick: S
874
- }, null, 8, ["loading", "label"])
875
- ])
876
- ]),
877
- _: 1
878
- }, 8, ["header", "modelValue", "dismiss-away"]);
879
- };
880
- }
881
- }), Do = { class: "flex flex-col py-8" }, Wo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Po = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, So = {
882
- key: 0,
883
- class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
884
- }, Ro = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, Io = /* @__PURE__ */ z({
885
- __name: "WarehouseView",
886
- setup(m) {
887
- const f = Ce(), h = qe(), a = F(() => f.warehouses), s = Me(), l = se(), i = D(!1), { t: r } = q();
888
- te(() => {
889
- h._currentLocation && C();
890
- }), ee([() => h._currentLocation], () => {
891
- h._currentLocation && C();
892
- });
893
- const n = D({});
894
- function w() {
895
- n.value.mode = T.CREATE, n.value.warehouse = {}, n.value.show = !0;
896
- }
897
- function v(_) {
898
- n.value.mode = T.UPDATE, n.value.warehouse = _, n.value.show = !0;
899
- }
900
- async function g(_) {
901
- s.open({
902
- title: r("inventory.warehouse.delete.confirm"),
903
- message: r("inventory.warehouse.delete.confirmMessage", { name: _.profile.name }),
904
- primaryActions: {
905
- text: "Delete",
906
- close: !0,
907
- variant: "destructive"
908
- },
909
- secondaryActions: {
910
- text: "Cancel",
911
- close: !0
912
- }
913
- }).onPrimary(() => x(_));
914
- }
915
- async function x(_) {
916
- const { t: d } = q();
917
- s.open({
918
- title: d("inventory.warehouse.delete.deletingWarehouse"),
919
- closeButton: !1
920
- });
921
- try {
922
- await f.deleteWarehouse(_), l.open({
923
- title: d("inventory.warehouse.delete.success"),
924
- message: d("inventory.warehouse.delete.deletedWarehouse", { name: _.profile.name }),
925
- type: "success"
926
- }), await C(!0);
927
- } catch (O) {
928
- l.open({
929
- title: d("inventory.warehouse.delete.error"),
930
- message: d("inventory.warehouse.delete.errorMessage", { name: _.profile.name }),
931
- type: "error"
932
- }), console.error("failed to delete warehouse", O);
933
- } finally {
934
- s.close();
935
- }
936
- }
937
- const { columnDefs: A, formatRowData: S } = Ze(
938
- v,
939
- g
940
- );
941
- function c(_) {
942
- _ === "create" && w();
943
- }
944
- const M = D("");
945
- async function C(_ = !1) {
946
- i.value = !0;
947
- try {
948
- await f.readWarehouses(), _ && await h.readLocations();
949
- } catch {
950
- l.open({
951
- title: "Cannot fetch warehouse list",
952
- type: "error"
953
- });
954
- } finally {
955
- i.value = !1;
956
- }
957
- }
958
- const { breakpoints: o } = Qe(), e = F(() => o.value.xs || o.value.sm), t = F(() => e.value ? 10 : 20), B = Oe();
959
- return (_, d) => {
960
- const O = L("FmTable");
961
- return P(), j(Ge, {
962
- title: p(r)("inventory.warehouse.title"),
963
- actions: [
964
- {
965
- label: p(r)("inventory.warehouse.create.title"),
966
- value: "create",
967
- isPrimary: !0,
968
- prependIcon: "add"
969
- }
970
- ],
971
- "onClick:action": c
972
- }, {
973
- default: N(() => [
974
- b("div", {
975
- class: Re([
976
- "flex flex-col gap-8 max-h-full",
977
- {
978
- "p-0": e.value,
979
- "px-24 ": !e.value
980
- }
981
- ])
982
- }, [
983
- k(Ke, {
984
- searchable: "",
985
- "change-location": "",
986
- search: M.value,
987
- "onUpdate:search": d[0] || (d[0] = (R) => M.value = R)
988
- }, null, 8, ["search"]),
989
- (P(), j(O, {
990
- style: Te(p(B).tableHeight),
991
- "column-defs": p(A),
992
- "row-data": p(S)(a.value),
993
- "search-value": M.value,
994
- loading: !p(h)._currentLocation || i.value,
995
- onRowClick: d[1] || (d[1] = (R) => v(R.original.original)),
996
- key: a.value.length,
997
- "page-size": t.value
998
- }, {
999
- "list-row": N((R) => [
1000
- k(ze, {
1001
- row: R,
1002
- onRowClick: (u) => v(u.original)
1003
- }, {
1004
- default: N((u) => {
1005
- var y, V, $, W, K, ne, ue, ie, H, de, ce, pe, me, fe, Q, he, ye, ve, ge, X, be;
1006
- return [
1007
- b("div", Do, [
1008
- b("div", Wo, [
1009
- k(p(J), {
1010
- render: ($ = (V = (y = u.warehouse) == null ? void 0 : y.column) == null ? void 0 : V.columnDef) == null ? void 0 : $.cell,
1011
- props: (K = (W = u.warehouse) == null ? void 0 : W.getContext) == null ? void 0 : K.call(W)
1012
- }, null, 8, ["render", "props"])
1013
- ]),
1014
- b("div", Po, [
1015
- k(p(J), {
1016
- render: (ie = (ue = (ne = u.contact) == null ? void 0 : ne.column) == null ? void 0 : ue.columnDef) == null ? void 0 : ie.cell,
1017
- props: (de = (H = u.contact) == null ? void 0 : H.getContext) == null ? void 0 : de.call(H)
1018
- }, null, 8, ["render", "props"])
1019
- ]),
1020
- (ce = R.original) != null && ce.email ? (P(), I("div", So, [
1021
- k(p(J), {
1022
- render: (fe = (me = (pe = u.email) == null ? void 0 : pe.column) == null ? void 0 : me.columnDef) == null ? void 0 : fe.cell,
1023
- props: (he = (Q = u.email) == null ? void 0 : Q.getContext) == null ? void 0 : he.call(Q)
1024
- }, null, 8, ["render", "props"])
1025
- ])) : Ae("", !0),
1026
- b("div", Ro, [
1027
- k(p(J), {
1028
- render: (ge = (ve = (ye = u.address) == null ? void 0 : ye.column) == null ? void 0 : ve.columnDef) == null ? void 0 : ge.cell,
1029
- props: (be = (X = u.address) == null ? void 0 : X.getContext) == null ? void 0 : be.call(X)
1030
- }, null, 8, ["render", "props"])
1031
- ])
1032
- ])
1033
- ];
1034
- }),
1035
- _: 2
1036
- }, 1032, ["row", "onRowClick"])
1037
- ]),
1038
- _: 1
1039
- }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
1040
- ], 2),
1041
- k($o, {
1042
- show: n.value.show,
1043
- "onUpdate:show": d[2] || (d[2] = (R) => n.value.show = R),
1044
- warehouse: n.value.warehouse,
1045
- mode: n.value.mode,
1046
- onSubmitted: d[3] || (d[3] = (R) => C(!0))
1047
- }, null, 8, ["show", "warehouse", "mode"])
1048
- ]),
1049
- _: 1
1050
- }, 8, ["title", "actions"]);
1051
- };
1052
- }
1053
- });
1054
- export {
1055
- Io as default
1056
- };