@feedmepos/mf-inventory-portal 0.0.10-dev.2 → 0.0.11

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 (39) hide show
  1. package/dist/{ApprovalView-Df90Kw66.js → ApprovalView-CBO3KV48.js} +8 -8
  2. package/dist/{BindingsDialog-Ds0yCfnA.js → BindingsDialog-BKgZAlZu.js} +7 -7
  3. package/dist/{BindingsPicker-BxGxpPXb.js → BindingsPicker-CImxnSOi.js} +6 -6
  4. package/dist/{BindingsTable-B1S8Szde.js → BindingsTable-2u4seyjB.js} +6 -6
  5. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BTBYwM9n.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-rR7eK074.js} +1 -1
  6. package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-DmkzzRJ8.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-7unoxVAo.js} +9 -9
  7. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DOywJ5xI.js → FmUnitInput.vue_vue_type_script_setup_true_lang-ND2fN_kd.js} +3 -3
  8. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-moaZvwA4.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-t8t4HKkB.js} +1 -1
  9. package/dist/{IngredientsView-L-TwNbQO.js → IngredientsView-Djr7uwGV.js} +6 -6
  10. package/dist/{IntegrationView-BTY01m48.js → IntegrationView-bx6lsxlq.js} +3 -3
  11. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BIIHBy8F.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bs7QMhTG.js} +6 -6
  12. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-xCGNge8h.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CYBdrU03.js} +1 -1
  13. package/dist/{PurchaseOrderPrintPreview-CpFqJ6Kq.js → PurchaseOrderPrintPreview-D4-WJ2aZ.js} +1 -1
  14. package/dist/{ReceiveRequestView-tZIc1aFq.js → ReceiveRequestView-Ca5dHiuL.js} +12 -12
  15. package/dist/{RecipeView-BDeJa6EW.js → RecipeView-CDFygh-M.js} +7 -7
  16. package/dist/StockView-KvI6UIp1.js +1886 -0
  17. package/dist/{SupplierView-XFImKtpX.js → SupplierView-CzBSVtTk.js} +7 -7
  18. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DqbOmmBQ.js → TransferDetails.vue_vue_type_script_setup_true_lang-BBkcEAMT.js} +5 -5
  19. package/dist/{UnitView-pioanu_L.js → UnitView-yJ-ntMwj.js} +6 -6
  20. package/dist/WarehouseView-R02ow3II.js +1047 -0
  21. package/dist/api/stock.d.ts +0 -8
  22. package/dist/{app-Ca3xQzK8.js → app-ngxltyJg.js} +6460 -6363
  23. package/dist/app.js +1 -1
  24. package/dist/{date2-mcCyzcMi.js → date2-BClu5ebo.js} +4 -4
  25. package/dist/{dayjs.min-DrT1y160.js → dayjs.min-BKDcFJCt.js} +2 -2
  26. package/dist/{decimal-nEZt9CuQ.js → decimal-wU-3iCIE.js} +1 -1
  27. package/dist/{fuzzy-DId_c0sp.js → fuzzy-CYMXuBHO.js} +1 -1
  28. package/dist/{init-date-range-Ce1x2L6w.js → init-date-range-CkqYiUfb.js} +1 -1
  29. package/dist/{layout-C3XbCZFW.js → layout-DSJ4j5AA.js} +19 -19
  30. package/dist/{rules-CQ7KZ6CI.js → rules-zJSJdpIG.js} +1 -1
  31. package/dist/{stock-estimate-BinaZfqv.js → stock-estimate-B_3SCaMv.js} +2 -2
  32. package/dist/{supplier-QIh4LGvK.js → supplier-9QGVj5jO.js} +1 -1
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/{use-inventory-binding-dialog-CxwFPCwL.js → use-inventory-binding-dialog-CdiLTcQZ.js} +2 -2
  35. package/dist/{xlsx-CU4Fu6Bf.js → xlsx-Bj1y4vnv.js} +1 -1
  36. package/package.json +2 -2
  37. package/dist/StockView-B2XvGmYh.js +0 -1995
  38. package/dist/WarehouseView-C39yLP8o.js +0 -1139
  39. package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +0 -9
@@ -1,1139 +0,0 @@
1
- import { ref as E, defineComponent as I, watch as oe, onMounted as ae, onUnmounted as Fe, openBlock as D, createElementBlock as B, toRaw as we, reactive as Ee, createElementVNode as g, toDisplayString as ee, createVNode as k, pushScopeId as Pe, popScopeId as De, resolveComponent as U, unref as A, createSlots as Te, withCtx as j, createTextVNode as Re, renderSlot as We, createBlock as N, createCommentVNode as Me, computed as F, isRef as Ve, normalizeStyle as Ue } from "vue";
2
- import { f as Le, j as je, k as Be, c as q, l as Ne, _ as Ie, e as qe } from "./app-Ca3xQzK8.js";
3
- import { useCoreStore as ze } from "@feedmepos/mf-common";
4
- import { D as _e, R as Q, F as R } from "./row-action.enum-BwQbURNh.js";
5
- import { c as Ge, _ as Ke, F as X, u as Oe } from "./layout-C3XbCZFW.js";
6
- import { _ as He } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js";
7
- import { useDialogChild as Ze, useDialog as xe, useSnackbar as le, useProxiedModel as te, useBreakpoints as Je } from "@feedmepos/ui-library";
8
- import { R as L } from "./rules-CQ7KZ6CI.js";
9
- const Y = Le((r, d) => {
10
- const s = ze();
11
- return {
12
- async readWarehouses() {
13
- var u;
14
- const t = ((u = s.currentBusiness.value) == null ? void 0 : u._id) ?? "", l = `${r.inventoryBackendUrl}/businesses/${t}/warehouses`;
15
- return await d.get(l);
16
- },
17
- async createWarehouse(t) {
18
- var i;
19
- const l = ((i = s.currentBusiness.value) == null ? void 0 : i._id) ?? "", u = `${r.inventoryBackendUrl}/businesses/${l}/warehouse`;
20
- return await d.post(u, t);
21
- },
22
- async updateWarehouse(t, l) {
23
- var n;
24
- const u = ((n = s.currentBusiness.value) == null ? void 0 : n._id) ?? "", i = `${r.inventoryBackendUrl}/businesses/${u}/warehouse/${t}`;
25
- return await d.put(i, l);
26
- },
27
- async deleteWarehouse(t) {
28
- var i;
29
- const l = ((i = s.currentBusiness.value) == null ? void 0 : i._id) ?? "", u = `${r.inventoryBackendUrl}/businesses/${l}/warehouse/${t}`;
30
- return await d.delete(u);
31
- }
32
- };
33
- });
34
- function Qe() {
35
- return {
36
- warehouses: []
37
- };
38
- }
39
- const ke = E(Qe());
40
- function $e() {
41
- return {
42
- // state
43
- get warehouses() {
44
- return ke.value.warehouses;
45
- },
46
- set warehouses(r) {
47
- ke.value.warehouses = r;
48
- },
49
- // actions
50
- async readWarehouses() {
51
- const r = Y();
52
- this.warehouses = await r.readWarehouses();
53
- },
54
- async createWarehouse(r) {
55
- await Y().createWarehouse(r);
56
- },
57
- async updateWarehouse(r) {
58
- await Y().updateWarehouse(r._id, r.profile);
59
- },
60
- async deleteWarehouse(r) {
61
- await Y().deleteWarehouse(r._id);
62
- },
63
- async init() {
64
- const r = je();
65
- try {
66
- await this.readWarehouses();
67
- } catch (d) {
68
- throw d instanceof Be || r.error("Error at reading warehouses"), d;
69
- }
70
- }
71
- };
72
- }
73
- function Xe(r, d) {
74
- function s(u, i) {
75
- if (u === Q.Edit) {
76
- r(q(i));
77
- return;
78
- }
79
- if (u === Q.Delete) {
80
- d(q(i));
81
- return;
82
- }
83
- }
84
- const t = [
85
- {
86
- accessorKey: "warehouse",
87
- header: "Warehouse",
88
- size: 200
89
- },
90
- {
91
- accessorKey: "contact",
92
- header: "Contact",
93
- size: 200
94
- },
95
- {
96
- accessorKey: "email",
97
- header: "Email",
98
- size: 200
99
- },
100
- {
101
- accessorKey: "address",
102
- header: "Address",
103
- size: "auto"
104
- },
105
- {
106
- id: "action",
107
- header: "",
108
- cell(u) {
109
- return Ge(
110
- [_e[Q.Edit], _e[Q.Delete]],
111
- (i) => {
112
- s(i, u.row.original.original);
113
- }
114
- );
115
- },
116
- enableSorting: !1,
117
- size: 40,
118
- meta: {
119
- cellClass: "",
120
- headerClass: ""
121
- }
122
- }
123
- ];
124
- function l(u) {
125
- return u.map((i) => ({
126
- original: i,
127
- warehouse: i.profile.name,
128
- contact: i.profile.phoneNo,
129
- email: i.profile.email,
130
- get address() {
131
- const n = i.profile.address;
132
- return [
133
- n == null ? void 0 : n.line1,
134
- n == null ? void 0 : n.line2,
135
- n == null ? void 0 : n.city,
136
- n == null ? void 0 : n.postcode,
137
- n == null ? void 0 : n.state,
138
- n == null ? void 0 : n.country
139
- ].map((y) => y == null ? void 0 : y.trim()).filter((y) => y).join(", ");
140
- }
141
- }));
142
- }
143
- return { columnDefs: t, formatRowData: l };
144
- }
145
- class z {
146
- constructor(d = null, s = {}) {
147
- if (this.apiKey = d, this.options = s, typeof window > "u")
148
- throw new Error("google-maps is supported only in browser environment");
149
- }
150
- load() {
151
- return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[z.CALLBACK_NAME] = () => {
152
- if (this.api = window.google, typeof this.resolve > "u")
153
- throw new Error("Should not happen");
154
- this.resolve(this.api);
155
- }, window.gm_authFailure = () => {
156
- if (typeof this.reject > "u")
157
- throw new Error("Should not happen");
158
- this.reject(new Error("google-maps: authentication error"));
159
- }, this.loader = new Promise((d, s) => {
160
- this.resolve = d, this.reject = s;
161
- const t = document.createElement("script");
162
- t.src = this.createUrl(), t.async = !0, t.onerror = (l) => s(l), document.head.appendChild(t);
163
- }));
164
- }
165
- createUrl() {
166
- const d = [
167
- `callback=${z.CALLBACK_NAME}`
168
- ];
169
- this.apiKey && d.push(`key=${this.apiKey}`);
170
- for (let s in this.options)
171
- if (this.options.hasOwnProperty(s)) {
172
- let t = this.options[s];
173
- s === "version" && (s = "v"), s === "libraries" && (t = t.join(",")), d.push(`${s}=${t}`);
174
- }
175
- return `https://maps.googleapis.com/maps/api/js?${d.join("&")}`;
176
- }
177
- }
178
- z.CALLBACK_NAME = "_dk_google_maps_loader_cb";
179
- const G = Object.freeze({
180
- jb: {
181
- lat: 1.492659,
182
- lng: 103.7413591
183
- }
184
- }), Ce = E({});
185
- function se() {
186
- return {
187
- // state
188
- get _googleMap() {
189
- return Ce.value._googleMap;
190
- },
191
- set _googleMap(r) {
192
- Ce.value._googleMap = r;
193
- },
194
- // computed
195
- get googleMap() {
196
- if (!this._googleMap) throw new Error("Google Map is not initialized!");
197
- return this._googleMap;
198
- },
199
- get isGoogleMapReady() {
200
- return !!this._googleMap;
201
- },
202
- // actions
203
- async initGoogleMap(r) {
204
- if (this._googleMap) return;
205
- const s = await new z(r, {
206
- libraries: ["places"]
207
- }).load();
208
- this._googleMap = s;
209
- },
210
- getGeocoder() {
211
- return new this.googleMap.maps.Geocoder();
212
- },
213
- getFirstMatchingAddress(r, d) {
214
- return new Promise((s) => {
215
- this.getGeocoder().geocode({ location: { lat: r, lng: d } }, (t) => {
216
- if (t != null && t.length) {
217
- const [l] = t;
218
- s(l.formatted_address);
219
- } else
220
- s("");
221
- });
222
- });
223
- },
224
- getFirstMatchingCoordinate(r) {
225
- return new Promise((d) => {
226
- this.getGeocoder().geocode({ address: r }, (s) => {
227
- if (s != null && s.length) {
228
- const [{ geometry: t }] = s;
229
- d([t.location.lng(), t.location.lat()]);
230
- } else
231
- d([G.jb.lng, G.jb.lat]);
232
- });
233
- });
234
- }
235
- };
236
- }
237
- const Ye = /* @__PURE__ */ I({
238
- __name: "GoogleMap",
239
- props: {
240
- markers: {
241
- type: Array,
242
- default: () => []
243
- },
244
- polygons: {
245
- type: Array,
246
- default: () => []
247
- },
248
- zoom: {
249
- type: Number,
250
- default: 14
251
- },
252
- editable: {
253
- type: Boolean,
254
- default: !1
255
- },
256
- center: {
257
- type: Object,
258
- default: G.jb
259
- }
260
- },
261
- emits: ["map-click", "marker-change", "polygon-change", "polygon-right-click"],
262
- setup(r, { expose: d, emit: s }) {
263
- const t = r, l = s;
264
- d({
265
- setCenter: (p) => {
266
- var m, V;
267
- (m = n.value) == null || m.setCenter(p), (V = n.value) == null || V.setZoom(18);
268
- }
269
- });
270
- const { googleMap: u } = se(), i = E(), n = E(null), M = [];
271
- function y(p) {
272
- return {
273
- lat: p.latLng.lat(),
274
- lng: p.latLng.lng()
275
- };
276
- }
277
- function w(p, m, V) {
278
- const $ = u.maps.event.addListener(p, m, V);
279
- M.push($);
280
- }
281
- const _ = E([]);
282
- function v(p, m, V) {
283
- w(p, m, V);
284
- }
285
- function S(p) {
286
- c(null), _.value = p.map((m, V) => {
287
- const $ = new u.maps.Marker({
288
- position: m,
289
- draggable: !0
290
- });
291
- return v($, "dragend", (W) => {
292
- l("marker-change", { index: V, position: y(W) });
293
- }), $;
294
- }), c(n.value);
295
- }
296
- function c(p) {
297
- _.value.map((m) => we(m).setMap(p));
298
- }
299
- const C = E([]);
300
- function x(p, m, V) {
301
- w(p, m, V);
302
- }
303
- function o(p, m, V) {
304
- w(p, m, V);
305
- }
306
- function e(p) {
307
- return C.value[p].getPath().getArray().map(({ lat: V, lng: $ }) => ({
308
- lat: V(),
309
- lng: $()
310
- }));
311
- }
312
- function a(p) {
313
- const m = e(p);
314
- l("polygon-change", { index: p, path: m });
315
- }
316
- function b(p, m) {
317
- const $ = e(p).filter((W, O) => O !== m);
318
- l("polygon-change", { index: p, path: $ });
319
- }
320
- function h(p, m) {
321
- m.vertex !== void 0 ? b(p, m.vertex) : l("polygon-right-click", p);
322
- }
323
- function f(p) {
324
- K(null), C.value = p.map((m, V) => {
325
- const $ = new u.maps.Polygon({
326
- paths: m.paths,
327
- strokeColor: m.strokeColor,
328
- fillColor: m.fillColor,
329
- fillOpacity: 0.5,
330
- editable: t.editable
331
- });
332
- return x($, "contextmenu", (W) => h(V, W)), $.getPaths().forEach((W) => {
333
- o(W, "insert_at", () => a(V)), o(W, "set_at", () => a(V));
334
- }), $;
335
- }), K(n.value);
336
- }
337
- function K(p) {
338
- C.value.map((m) => we(m).setMap(p));
339
- }
340
- function T(p, m, V) {
341
- w(p, m, V);
342
- }
343
- function P() {
344
- n.value = new u.maps.Map(i.value, {
345
- center: t.center,
346
- zoom: t.zoom,
347
- mapTypeControl: !1,
348
- streetViewControl: !1,
349
- draggable: !0,
350
- scrollwheel: !0
351
- }), T(n.value, "click", (p) => l("map-click", y(p)));
352
- }
353
- return oe(() => t.markers, S, { deep: !0 }), oe(() => t.polygons, f, { deep: !0 }), ae(() => {
354
- !i.value || !u || (P(), S(t.markers), f(t.polygons));
355
- }), Fe(() => {
356
- M.forEach((p) => p.remove());
357
- }), (p, m) => (D(), B("div", {
358
- ref_key: "mapRef",
359
- ref: i,
360
- class: "map app-map"
361
- }, null, 512));
362
- }
363
- });
364
- var ne = { exports: {} };
365
- function Se(r, d = 100, s = {}) {
366
- if (typeof r != "function")
367
- throw new TypeError(`Expected the first parameter to be a function, got \`${typeof r}\`.`);
368
- if (d < 0)
369
- throw new RangeError("`wait` must not be negative.");
370
- const { immediate: t } = typeof s == "boolean" ? { immediate: s } : s;
371
- let l, u, i, n, M;
372
- function y() {
373
- const _ = Date.now() - n;
374
- if (_ < d && _ >= 0)
375
- i = setTimeout(y, d - _);
376
- else if (i = void 0, !t) {
377
- const v = l, S = u;
378
- l = void 0, u = void 0, M = r.apply(v, S);
379
- }
380
- }
381
- const w = function(..._) {
382
- if (l && this !== l)
383
- throw new Error("Debounced method called with different contexts.");
384
- l = this, u = _, n = Date.now();
385
- const v = t && !i;
386
- if (i || (i = setTimeout(y, d)), v) {
387
- const S = l, c = u;
388
- l = void 0, u = void 0, M = r.apply(S, c);
389
- }
390
- return M;
391
- };
392
- return w.clear = () => {
393
- i && (clearTimeout(i), i = void 0);
394
- }, w.flush = () => {
395
- if (!i)
396
- return;
397
- const _ = l, v = u;
398
- l = void 0, u = void 0, M = r.apply(_, v), clearTimeout(i), i = void 0;
399
- }, w;
400
- }
401
- ne.exports.debounce = Se;
402
- ne.exports = Se;
403
- var eo = ne.exports;
404
- const oo = /* @__PURE__ */ Ne(eo), re = (r) => (Pe("data-v-ea67d23a"), r = r(), De(), r), to = { class: "flex flex-col gap-24" }, ao = { class: "flex flex-col gap-8" }, lo = /* @__PURE__ */ re(() => /* @__PURE__ */ g("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Address: ", -1)), so = { class: "fm-typo-en-body-lg-600" }, no = /* @__PURE__ */ re(() => /* @__PURE__ */ g("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Longitude: ", -1)), ro = { class: "fm-typo-en-body-lg-600" }, io = /* @__PURE__ */ re(() => /* @__PURE__ */ g("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, "Latitude: ", -1)), uo = { class: "fm-typo-en-body-lg-600" }, co = /* @__PURE__ */ I({
405
- __name: "CoordinateDialog",
406
- props: {
407
- address: {
408
- type: String,
409
- required: !0
410
- },
411
- coordinate: {
412
- type: Object,
413
- default: void 0
414
- }
415
- },
416
- setup(r) {
417
- const d = r, s = Ze(), t = se(), l = Ee(
418
- q(d.coordinate ? d.coordinate : G.jb)
419
- ), u = E(""), i = oo(async function() {
420
- u.value = await t.getFirstMatchingAddress(
421
- l.lat,
422
- l.lng
423
- );
424
- }, 1e3);
425
- ae(() => {
426
- s.emitData(q(l)), i();
427
- });
428
- function n({ position: y }) {
429
- l.lat = y.lat, l.lng = y.lng, s.emitData(q(l)), i();
430
- }
431
- const M = E();
432
- return (y, w) => (D(), B("div", to, [
433
- g("div", ao, [
434
- g("div", null, [
435
- lo,
436
- g("span", so, ee(u.value), 1)
437
- ]),
438
- g("div", null, [
439
- no,
440
- g("span", ro, ee(l.lng), 1)
441
- ]),
442
- g("div", null, [
443
- io,
444
- g("span", uo, ee(l.lat), 1)
445
- ])
446
- ]),
447
- k(Ye, {
448
- ref_key: "gmapRef",
449
- ref: M,
450
- class: "h-[272px] sm:h-[240px] xs:h-[240px]",
451
- editable: "",
452
- center: l,
453
- markers: [l],
454
- onMarkerChange: n,
455
- onMapClick: w[0] || (w[0] = (_) => n({ position: _ }))
456
- }, null, 8, ["center", "markers"])
457
- ]));
458
- }
459
- }), po = /* @__PURE__ */ Ie(co, [["__scopeId", "data-v-ea67d23a"]]);
460
- function Ae([r, d]) {
461
- return {
462
- lat: d,
463
- lng: r
464
- };
465
- }
466
- function mo({ lng: r, lat: d }) {
467
- return [r, d];
468
- }
469
- const fo = { class: "flex gap-8 items-center" }, ho = { key: 0 }, go = { key: 1 }, yo = /* @__PURE__ */ I({
470
- __name: "FmCoordinateInput",
471
- props: {
472
- address: {},
473
- modelValue: {},
474
- dialogTitle: {},
475
- label: {},
476
- helperText: {},
477
- helperState: {},
478
- labelMark: {},
479
- labelInfo: {},
480
- placeholder: {},
481
- disabled: { type: Boolean },
482
- rules: {}
483
- },
484
- emits: ["update:modelValue"],
485
- setup(r, { emit: d }) {
486
- const s = r, t = d, l = se(), u = xe(), i = le(), n = te(s, "modelValue"), M = E(!1);
487
- function y(c) {
488
- if (c != null && c[0] && (c != null && c[1]))
489
- return `${c[0].toFixed(3)} Long ${c[1].toFixed(3)} Lat`;
490
- }
491
- async function w(c) {
492
- var e, a;
493
- const C = s.modelValue, x = !C && ((e = s.address) != null && e.formatted) ? await l.getFirstMatchingCoordinate(s.address.formatted) : null, o = C ? Ae(C) : x ? Ae(x) : G.jb;
494
- u.open({
495
- title: s.dialogTitle ?? s.label ?? "Pin location",
496
- closeButton: !0,
497
- contentComponent: po,
498
- contentComponentProps: {
499
- address: (a = s.address) == null ? void 0 : a.formatted,
500
- coordinate: o
501
- },
502
- primaryActions: {
503
- text: "Select",
504
- close: !0
505
- },
506
- secondaryActions: {
507
- text: "Close",
508
- close: !0
509
- }
510
- }).onPrimary(c);
511
- }
512
- const _ = (c) => t("update:modelValue", c ? mo(c) : null);
513
- async function v() {
514
- if (!s.disabled) {
515
- if (!l.isGoogleMapReady) {
516
- i.open({
517
- title: "Something went wrong",
518
- message: "Cannot load map component. Please try again.",
519
- type: "error"
520
- });
521
- return;
522
- }
523
- w(_);
524
- }
525
- }
526
- function S() {
527
- t("update:modelValue", null);
528
- }
529
- return (c, C) => {
530
- const x = U("FmField"), o = U("FmButton"), e = U("FmFormGroup");
531
- return D(), B("div", fo, [
532
- k(e, {
533
- class: "flex-1",
534
- "model-value": A(n),
535
- label: c.label,
536
- disabled: c.disabled,
537
- required: c.labelMark === "required",
538
- optional: c.labelMark === "optional",
539
- info: c.labelInfo,
540
- rules: c.rules,
541
- focused: M.value,
542
- "helper-text": c.helperText,
543
- "helper-state": c.helperState,
544
- onClick: C[0] || (C[0] = (a) => v())
545
- }, Te({
546
- default: j(({ invalid: a }) => [
547
- c.modelValue && c.modelValue[0] && c.modelValue[1] ? (D(), B("div", ho, [
548
- k(x, {
549
- invalid: a,
550
- class: "fm-typo-en-body-lg-400"
551
- }, {
552
- default: j(() => [
553
- Re(ee(y(c.modelValue)), 1)
554
- ]),
555
- _: 2
556
- }, 1032, ["invalid"])
557
- ])) : (D(), B("div", go, [
558
- k(o, {
559
- label: "Add coordinate",
560
- "prepend-icon": "add",
561
- variant: "plain"
562
- })
563
- ]))
564
- ]),
565
- _: 2
566
- }, [
567
- c.$slots.label ? {
568
- name: "label",
569
- fn: j(() => [
570
- We(c.$slots, "label")
571
- ]),
572
- key: "0"
573
- } : void 0
574
- ]), 1032, ["model-value", "label", "disabled", "required", "optional", "info", "rules", "focused", "helper-text", "helper-state"]),
575
- c.modelValue && c.modelValue[0] && c.modelValue[1] ? (D(), N(o, {
576
- key: 0,
577
- "prepend-icon": "delete",
578
- variant: "tertiary",
579
- onClick: C[1] || (C[1] = (a) => S())
580
- })) : Me("", !0)
581
- ]);
582
- };
583
- }
584
- }), vo = { class: "flex flex-col gap-40" }, bo = { class: "flex flex-col gap-16" }, wo = { class: "flex flex-col gap-8" }, Vo = /* @__PURE__ */ g("div", { class: "fm-typo-en-title-sm-800" }, "Address", -1), _o = { class: "grid grid-cols-2 gap-24" }, ko = { class: "flex flex-col gap-8" }, Co = /* @__PURE__ */ g("div", { class: "fm-typo-en-title-sm-800" }, "Coordinate", -1), Ao = { class: "flex flex-col gap-8" }, Mo = /* @__PURE__ */ g("div", { class: "fm-typo-en-title-sm-800" }, "Contact", -1), xo = { class: "flex flex-col gap-16" }, $o = /* @__PURE__ */ I({
585
- __name: "WarehouseForm",
586
- props: {
587
- modelValue: {},
588
- disabled: { type: Boolean }
589
- },
590
- emits: ["update:modelValue", "validation-success"],
591
- setup(r, { expose: d, emit: s }) {
592
- const t = r, l = s, u = F({
593
- get() {
594
- var o, e;
595
- return ((e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
596
- },
597
- set(o) {
598
- const e = t.modelValue ?? {};
599
- e.profile ?? (e.profile = {}), e.profile.name = o, l("update:modelValue", e);
600
- }
601
- }), i = F({
602
- get() {
603
- var o, e;
604
- return ((e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.regNo) ?? "";
605
- },
606
- set(o) {
607
- const e = t.modelValue ?? {};
608
- e.profile ?? (e.profile = {}), e.profile.regNo = o, l("update:modelValue", e);
609
- }
610
- }), n = F({
611
- get() {
612
- var o, e, a;
613
- return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.line1) ?? "";
614
- },
615
- set(o) {
616
- var a;
617
- const e = t.modelValue ?? {};
618
- e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.line1 = o, l("update:modelValue", e);
619
- }
620
- }), M = F({
621
- get() {
622
- var o, e, a;
623
- return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.line2) ?? "";
624
- },
625
- set(o) {
626
- var a;
627
- const e = t.modelValue ?? {};
628
- e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.line2 = o, l("update:modelValue", e);
629
- }
630
- }), y = F({
631
- get() {
632
- var o, e, a;
633
- return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.city) ?? "";
634
- },
635
- set(o) {
636
- var a;
637
- const e = t.modelValue ?? {};
638
- e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.city = o, l("update:modelValue", e);
639
- }
640
- }), w = F({
641
- get() {
642
- var o, e, a;
643
- return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.postcode) ?? "";
644
- },
645
- set(o) {
646
- var a;
647
- const e = t.modelValue ?? {};
648
- e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.postcode = o, l("update:modelValue", e);
649
- }
650
- }), _ = F({
651
- get() {
652
- var o, e, a;
653
- return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.state) ?? "";
654
- },
655
- set(o) {
656
- var a;
657
- const e = t.modelValue ?? {};
658
- e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.state = o, l("update:modelValue", e);
659
- }
660
- }), v = F({
661
- get() {
662
- var o, e, a;
663
- return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.country) ?? "";
664
- },
665
- set(o) {
666
- var a;
667
- const e = t.modelValue ?? {};
668
- e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.country = o, l("update:modelValue", e);
669
- }
670
- }), S = F({
671
- get() {
672
- var o, e, a;
673
- return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.coordinates) ?? null;
674
- },
675
- set(o) {
676
- var a;
677
- const e = t.modelValue ?? {};
678
- e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.coordinates = o, l("update:modelValue", e);
679
- }
680
- }), c = F({
681
- get() {
682
- var o, e;
683
- return ((e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.phoneNo) ?? "";
684
- },
685
- set(o) {
686
- const e = t.modelValue ?? {};
687
- e.profile ?? (e.profile = {}), e.profile.phoneNo = o, l("update:modelValue", e);
688
- }
689
- }), C = F({
690
- get() {
691
- var o, e;
692
- return ((e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
693
- },
694
- set(o) {
695
- const e = t.modelValue ?? {};
696
- e.profile ?? (e.profile = {}), e.profile.email = o, l("update:modelValue", e);
697
- }
698
- }), x = E();
699
- return d({
700
- validateInputs: () => {
701
- var o, e;
702
- (e = (o = x.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
703
- },
704
- resetInputsValidation: () => {
705
- var o, e;
706
- (e = (o = x.value) == null ? void 0 : o.resetInputsValidation) == null || e.call(o);
707
- },
708
- resetInputs: () => {
709
- var o, e;
710
- (e = (o = x.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
711
- }
712
- }), (o, e) => {
713
- const a = U("FmTextField"), b = U("FmPhoneNumber"), h = U("FmForm");
714
- return D(), N(h, {
715
- ref_key: "formRef",
716
- ref: x,
717
- onValidationSuccess: e[11] || (e[11] = (f) => l("validation-success"))
718
- }, {
719
- default: j(() => [
720
- g("div", vo, [
721
- g("div", bo, [
722
- k(a, {
723
- disabled: o.disabled,
724
- rules: [A(L)()],
725
- "label-mark": "required",
726
- label: "Company name",
727
- modelValue: u.value,
728
- "onUpdate:modelValue": e[0] || (e[0] = (f) => u.value = f)
729
- }, null, 8, ["disabled", "rules", "modelValue"]),
730
- k(a, {
731
- disabled: o.disabled,
732
- rules: [A(L)()],
733
- "label-mark": "required",
734
- label: "Registration no.",
735
- modelValue: i.value,
736
- "onUpdate:modelValue": e[1] || (e[1] = (f) => i.value = f)
737
- }, null, 8, ["disabled", "rules", "modelValue"])
738
- ]),
739
- g("div", wo, [
740
- Vo,
741
- g("div", _o, [
742
- k(a, {
743
- disabled: o.disabled,
744
- rules: [A(L)()],
745
- "label-mark": "required",
746
- label: "Line 1",
747
- modelValue: n.value,
748
- "onUpdate:modelValue": e[2] || (e[2] = (f) => n.value = f)
749
- }, null, 8, ["disabled", "rules", "modelValue"]),
750
- k(a, {
751
- disabled: o.disabled,
752
- "label-mark": "optional",
753
- label: "Line 2",
754
- modelValue: M.value,
755
- "onUpdate:modelValue": e[3] || (e[3] = (f) => M.value = f)
756
- }, null, 8, ["disabled", "modelValue"]),
757
- k(a, {
758
- disabled: o.disabled,
759
- rules: [A(L)()],
760
- "label-mark": "required",
761
- label: "City",
762
- modelValue: y.value,
763
- "onUpdate:modelValue": e[4] || (e[4] = (f) => y.value = f)
764
- }, null, 8, ["disabled", "rules", "modelValue"]),
765
- k(a, {
766
- disabled: o.disabled,
767
- rules: [A(L)()],
768
- "label-mark": "required",
769
- label: "Postal code",
770
- modelValue: w.value,
771
- "onUpdate:modelValue": e[5] || (e[5] = (f) => w.value = f)
772
- }, null, 8, ["disabled", "rules", "modelValue"]),
773
- k(a, {
774
- disabled: o.disabled,
775
- rules: [A(L)()],
776
- "label-mark": "required",
777
- label: "State",
778
- modelValue: _.value,
779
- "onUpdate:modelValue": e[6] || (e[6] = (f) => _.value = f)
780
- }, null, 8, ["disabled", "rules", "modelValue"]),
781
- k(a, {
782
- disabled: o.disabled,
783
- rules: [A(L)()],
784
- "label-mark": "required",
785
- label: "Country",
786
- modelValue: v.value,
787
- "onUpdate:modelValue": e[7] || (e[7] = (f) => v.value = f)
788
- }, null, 8, ["disabled", "rules", "modelValue"])
789
- ])
790
- ]),
791
- g("div", ko, [
792
- Co,
793
- k(yo, {
794
- disabled: o.disabled,
795
- rules: [A(L)()],
796
- "label-mark": "required",
797
- modelValue: S.value,
798
- "onUpdate:modelValue": e[8] || (e[8] = (f) => S.value = f)
799
- }, null, 8, ["disabled", "rules", "modelValue"])
800
- ]),
801
- g("div", Ao, [
802
- Mo,
803
- g("div", xo, [
804
- k(b, {
805
- disabled: o.disabled,
806
- rules: [A(L)()],
807
- "label-mark": "required",
808
- label: "Phone number",
809
- modelValue: c.value,
810
- "onUpdate:modelValue": e[9] || (e[9] = (f) => c.value = f)
811
- }, null, 8, ["disabled", "rules", "modelValue"]),
812
- k(a, {
813
- disabled: o.disabled,
814
- "label-mark": "optional",
815
- label: "Email",
816
- modelValue: C.value,
817
- "onUpdate:modelValue": e[10] || (e[10] = (f) => C.value = f)
818
- }, null, 8, ["disabled", "modelValue"])
819
- ])
820
- ])
821
- ])
822
- ]),
823
- _: 1
824
- }, 512);
825
- };
826
- }
827
- }), So = { class: "flex gap-4" }, Fo = /* @__PURE__ */ I({
828
- __name: "WarehouseDialog",
829
- props: {
830
- mode: {},
831
- warehouse: {},
832
- show: { type: Boolean }
833
- },
834
- emits: ["update:show", "submitted"],
835
- setup(r, { expose: d, emit: s }) {
836
- const t = r, l = s, u = E(!1), i = le(), n = $e(), M = F(() => {
837
- switch (t.mode) {
838
- case R.CREATE:
839
- return "Add warehouse";
840
- case R.READ:
841
- return "View";
842
- case R.UPDATE:
843
- return "Edit warehouse";
844
- }
845
- return "";
846
- }), y = F(() => {
847
- switch (t.mode) {
848
- case R.READ:
849
- return "";
850
- case R.UPDATE:
851
- return "Save";
852
- case R.CREATE:
853
- return "Add";
854
- }
855
- return "";
856
- }), w = E();
857
- d({
858
- validateInputs: () => {
859
- var o, e;
860
- (e = (o = w.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
861
- },
862
- resetInputsValidation: () => {
863
- var o, e;
864
- (e = (o = w.value) == null ? void 0 : o.resetInputsValidation) == null || e.call(o);
865
- },
866
- resetInputs: () => {
867
- var o, e;
868
- (e = (o = w.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
869
- }
870
- });
871
- const _ = te(t, "show"), v = te(t, "warehouse");
872
- function S() {
873
- var o, e;
874
- (e = (o = w.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
875
- }
876
- function c() {
877
- switch (t.mode) {
878
- case R.READ:
879
- return;
880
- case R.UPDATE:
881
- return x();
882
- case R.CREATE:
883
- return C();
884
- }
885
- }
886
- async function C() {
887
- var o, e, a, b;
888
- u.value = !0;
889
- try {
890
- await Promise.all([
891
- n.createWarehouse(v.value),
892
- new Promise((h) => setTimeout(h, 1e3))
893
- ]), i.open({
894
- title: "Success",
895
- message: `Created ${(e = (o = v.value) == null ? void 0 : o.profile) == null ? void 0 : e.name} warehouse`,
896
- type: "success"
897
- }), l("update:show", !1), l("submitted");
898
- } catch (h) {
899
- i.open({
900
- title: "Something went wrong",
901
- message: `Cannot create ${(b = (a = v.value) == null ? void 0 : a.profile) == null ? void 0 : b.name} warehouse. Please try again`,
902
- type: "error"
903
- }), console.error("cannot create warehouse", h);
904
- } finally {
905
- u.value = !1;
906
- }
907
- }
908
- async function x() {
909
- var o, e, a, b;
910
- if (v.value === null) {
911
- i.open({
912
- title: "Something went wrong",
913
- message: "Cannot update empty warehouse info",
914
- type: "error"
915
- });
916
- return;
917
- }
918
- u.value = !0;
919
- try {
920
- await Promise.all([
921
- n.updateWarehouse(v.value),
922
- new Promise((h) => setTimeout(h, 1e3))
923
- ]), i.open({
924
- title: "Success",
925
- message: `Updated ${(e = (o = v.value) == null ? void 0 : o.profile) == null ? void 0 : e.name} warehouse`,
926
- type: "success"
927
- }), l("update:show", !1), l("submitted");
928
- } catch (h) {
929
- i.open({
930
- title: "Something went wrong",
931
- message: `Cannot update ${(b = (a = v.value) == null ? void 0 : a.profile) == null ? void 0 : b.name} warehouse. Please try again`,
932
- type: "error"
933
- }), console.error("cannot update warehouse", h);
934
- } finally {
935
- u.value = !1;
936
- }
937
- }
938
- return (o, e) => {
939
- const a = U("FmButton"), b = U("FmSideSheet");
940
- return D(), N(b, {
941
- header: M.value,
942
- modelValue: A(_),
943
- "onUpdate:modelValue": e[1] || (e[1] = (h) => Ve(_) ? _.value = h : null),
944
- "dismiss-away": !u.value,
945
- "close-button": "",
946
- "max-width": 500
947
- }, {
948
- default: j(() => {
949
- var h;
950
- return [
951
- (D(), N($o, {
952
- class: "w-full",
953
- ref_key: "formRef",
954
- ref: w,
955
- modelValue: A(v),
956
- "onUpdate:modelValue": e[0] || (e[0] = (f) => Ve(v) ? v.value = f : null),
957
- onValidationSuccess: c,
958
- key: ((h = o.warehouse) == null ? void 0 : h._id) ?? "",
959
- disabled: u.value
960
- }, null, 8, ["modelValue", "disabled"]))
961
- ];
962
- }),
963
- "side-sheet-footer": j(() => [
964
- g("div", So, [
965
- k(a, {
966
- loading: u.value,
967
- label: y.value,
968
- onClick: S
969
- }, null, 8, ["loading", "label"])
970
- ])
971
- ]),
972
- _: 1
973
- }, 8, ["header", "modelValue", "dismiss-away"]);
974
- };
975
- }
976
- }), Eo = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Po = { class: "px-8 flex gap-8 items-center xs:gap-0 xs:flex-col-reverse sm:gap-0 sm:flex-col-reverse" }, Do = { class: "flex-1 w-full" }, To = { class: "flex flex-col py-8" }, Ro = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Uo = {
977
- key: 0,
978
- class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
979
- }, Lo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, Oo = /* @__PURE__ */ I({
980
- __name: "WarehouseView",
981
- setup(r) {
982
- const d = $e(), s = qe(), t = F(() => d.warehouses), l = xe(), u = le(), i = E(!1);
983
- ae(() => {
984
- s._currentLocation && x();
985
- }), oe([() => s._currentLocation], () => {
986
- s._currentLocation && x();
987
- });
988
- const n = E({});
989
- function M() {
990
- n.value.mode = R.CREATE, n.value.warehouse = {}, n.value.show = !0;
991
- }
992
- function y(b) {
993
- n.value.mode = R.UPDATE, n.value.warehouse = b, n.value.show = !0;
994
- }
995
- async function w(b) {
996
- l.open({
997
- title: "Delete warehouse?",
998
- message: `Confirm deleting ${b.profile.name}?`,
999
- primaryActions: {
1000
- text: "Delete",
1001
- close: !0,
1002
- variant: "destructive"
1003
- },
1004
- secondaryActions: {
1005
- text: "Cancel",
1006
- close: !0
1007
- }
1008
- }).onPrimary(() => _(b));
1009
- }
1010
- async function _(b) {
1011
- l.open({
1012
- title: "Deleting warehouse...",
1013
- closeButton: !1
1014
- });
1015
- try {
1016
- await d.deleteWarehouse(b), u.open({
1017
- title: "Success",
1018
- message: `Deleted ${b.profile.name}.`,
1019
- type: "success"
1020
- }), await x(!0);
1021
- } catch (h) {
1022
- u.open({
1023
- title: "Something went wrong",
1024
- message: `Cannot delete ${b.profile.name}. Please try again.`,
1025
- type: "error"
1026
- }), console.error("failed to delete warehouse", h);
1027
- } finally {
1028
- l.close();
1029
- }
1030
- }
1031
- const { columnDefs: v, formatRowData: S } = Xe(
1032
- y,
1033
- w
1034
- );
1035
- function c(b) {
1036
- b === "create" && M();
1037
- }
1038
- const C = E("");
1039
- async function x(b = !1) {
1040
- i.value = !0;
1041
- try {
1042
- await d.readWarehouses(), b && await s.readLocations();
1043
- } catch {
1044
- u.open({
1045
- title: "Cannot fetch warehouse list",
1046
- type: "error"
1047
- });
1048
- } finally {
1049
- i.value = !1;
1050
- }
1051
- }
1052
- const { breakpoints: o } = Je(), e = F(() => o.value.xs || o.value.sm ? 10 : 20), a = Oe();
1053
- return (b, h) => {
1054
- const f = U("FmTableToolbar"), K = U("FmTable");
1055
- return D(), N(He, {
1056
- title: "Warehouse",
1057
- actions: [{ label: "Create warehouse", value: "create", isPrimary: !0, prependIcon: "add" }],
1058
- "onClick:action": c
1059
- }, {
1060
- default: j(() => [
1061
- g("div", Eo, [
1062
- g("div", Po, [
1063
- g("div", Do, [
1064
- k(f, {
1065
- class: "xs:px-8",
1066
- searchable: "",
1067
- "search-model": C.value,
1068
- "onUpdate:searchModel": h[0] || (h[0] = (T) => C.value = T)
1069
- }, null, 8, ["search-model"])
1070
- ])
1071
- ]),
1072
- (D(), N(K, {
1073
- style: Ue(A(a).tableHeight),
1074
- "column-defs": A(v),
1075
- "row-data": A(S)(t.value),
1076
- "search-value": C.value,
1077
- loading: !A(s)._currentLocation || i.value,
1078
- onRowClick: h[1] || (h[1] = (T) => y(T.original.original)),
1079
- key: t.value.length,
1080
- "page-size": e.value
1081
- }, {
1082
- "list-row": j((T) => [
1083
- k(Ke, {
1084
- row: T,
1085
- onRowClick: (P) => y(P.original)
1086
- }, {
1087
- default: j((P) => {
1088
- var p, m, V, $, W, O, ie, de, H, ue, ce, pe, me, fe, Z, he, ge, ye, ve, J, be;
1089
- return [
1090
- g("div", To, [
1091
- g("div", Ro, [
1092
- k(A(X), {
1093
- render: (V = (m = (p = P.warehouse) == null ? void 0 : p.column) == null ? void 0 : m.columnDef) == null ? void 0 : V.cell,
1094
- props: (W = ($ = P.warehouse) == null ? void 0 : $.getContext) == null ? void 0 : W.call($)
1095
- }, null, 8, ["render", "props"])
1096
- ]),
1097
- g("div", Wo, [
1098
- k(A(X), {
1099
- render: (de = (ie = (O = P.contact) == null ? void 0 : O.column) == null ? void 0 : ie.columnDef) == null ? void 0 : de.cell,
1100
- props: (ue = (H = P.contact) == null ? void 0 : H.getContext) == null ? void 0 : ue.call(H)
1101
- }, null, 8, ["render", "props"])
1102
- ]),
1103
- (ce = T.original) != null && ce.email ? (D(), B("div", Uo, [
1104
- k(A(X), {
1105
- render: (fe = (me = (pe = P.email) == null ? void 0 : pe.column) == null ? void 0 : me.columnDef) == null ? void 0 : fe.cell,
1106
- props: (he = (Z = P.email) == null ? void 0 : Z.getContext) == null ? void 0 : he.call(Z)
1107
- }, null, 8, ["render", "props"])
1108
- ])) : Me("", !0),
1109
- g("div", Lo, [
1110
- k(A(X), {
1111
- render: (ve = (ye = (ge = P.address) == null ? void 0 : ge.column) == null ? void 0 : ye.columnDef) == null ? void 0 : ve.cell,
1112
- props: (be = (J = P.address) == null ? void 0 : J.getContext) == null ? void 0 : be.call(J)
1113
- }, null, 8, ["render", "props"])
1114
- ])
1115
- ])
1116
- ];
1117
- }),
1118
- _: 2
1119
- }, 1032, ["row", "onRowClick"])
1120
- ]),
1121
- _: 1
1122
- }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
1123
- ]),
1124
- k(Fo, {
1125
- show: n.value.show,
1126
- "onUpdate:show": h[2] || (h[2] = (T) => n.value.show = T),
1127
- warehouse: n.value.warehouse,
1128
- mode: n.value.mode,
1129
- onSubmitted: h[3] || (h[3] = (T) => x(!0))
1130
- }, null, 8, ["show", "warehouse", "mode"])
1131
- ]),
1132
- _: 1
1133
- });
1134
- };
1135
- }
1136
- });
1137
- export {
1138
- Oo as default
1139
- };