@feedmepos/mf-inventory-portal 0.0.23-dev.41 → 0.0.23-dev.43

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 (42) hide show
  1. package/dist/{App-DW2K97Bb.js → App-C8wsA5dN.js} +104 -99
  2. package/dist/{ApprovalView-BgSxdrwt.js → ApprovalView-ZV8rwQp1.js} +18 -18
  3. package/dist/{BindingsDialog-CQtusdvp.js → BindingsDialog-Sbtijb1i.js} +2 -2
  4. package/dist/{BindingsPicker-BnEjRAah.js → BindingsPicker-wnlrCohJ.js} +1 -1
  5. package/dist/{BindingsTable-DpTPAef_.js → BindingsTable-BZCI3MS6.js} +1 -1
  6. package/dist/{ClosingDraftView-CXKYLCZS.js → ClosingDraftView-DyKbXVev.js} +494 -459
  7. package/dist/{ClosingTemplateView-CMTJHywt.js → ClosingTemplateView-DJr6D7iw.js} +1 -1
  8. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-zOmcCdDR.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-B1mRTbf9.js} +4 -4
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-mAPA5_sB.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUiVV1lj.js} +7 -7
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BjNpfucZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-qU9EBVED.js} +29 -29
  11. package/dist/{IngredientGroupView-CrEfiZvn.js → IngredientGroupView-BWeMME4-.js} +1 -1
  12. package/dist/{IngredientsView-BB8LQlU9.js → IngredientsView-BRxpBv77.js} +14 -15
  13. package/dist/{IntegrationView-D2wTkDyX.js → IntegrationView-DZqL0Ekt.js} +1 -1
  14. package/dist/{InventoryBindingForm-DW7rJDc1.js → InventoryBindingForm-C2zDhhfZ.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ci8UI1eQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BhaK3zOk.js} +44 -44
  16. package/dist/{InventoryBindingSummary-B40KofiI.js → InventoryBindingSummary-CJP0sf4N.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DD7VT9MS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dplylu1K.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BGuXTfn6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CC1nuQKm.js} +6 -6
  19. package/dist/{PurchaseOrderPrintPreview-DQmx28Be.js → PurchaseOrderPrintPreview-C5afxprc.js} +5 -5
  20. package/dist/{ReceiveRequestView-CJknzKfd.js → ReceiveRequestView-DzbcqmMA.js} +19 -20
  21. package/dist/{RecipeView-D5oWQ9Yd.js → RecipeView-8koCeNhZ.js} +25 -25
  22. package/dist/{StockView-U59PHCy2.js → StockView-C3Ef3mQz.js} +30 -31
  23. package/dist/{SupplierView-CLjjpTNZ.js → SupplierView-BHuYKWgW.js} +11 -12
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DLDDXnyG.js → TransferDetails.vue_vue_type_script_setup_true_lang-8rCAz5GA.js} +104 -104
  25. package/dist/{TransferTemplateView-CFoVrPIX.js → TransferTemplateView-u1u-VV-i.js} +63 -64
  26. package/dist/{UnitView-CAopphN_.js → UnitView-ucQ_K9ot.js} +3 -3
  27. package/dist/{WarehouseView-DUZku5U6.js → WarehouseView-CCwLKR3J.js} +111 -111
  28. package/dist/{app-0klJzLit.js → app-BvW6mdJl.js} +12411 -11415
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-Cu4rlnvU.js → decimal-hD6H0C0M.js} +1 -1
  31. package/dist/{format-unit-display-CMa5UhY1.js → format-unit-display-BfYIFIft.js} +27 -27
  32. package/dist/{index-BJaMpEVJ.js → index-BQUuh_Xy.js} +88 -88
  33. package/dist/{index-HTBqkVVr.js → index-y9SmouGG.js} +3 -3
  34. package/dist/{stock-CB4yNRMO.js → stock-CHW2fGsm.js} +3 -3
  35. package/dist/stores/feature.d.ts +37 -2
  36. package/dist/stores/location.d.ts +1 -1
  37. package/dist/style.css +1 -1
  38. package/dist/{supplier-biIIXGyr.js → supplier-CCUVm2qD.js} +1 -1
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/{use-inventory-binding-dialog-BopoOOxB.js → use-inventory-binding-dialog-B8Cgp_x2.js} +1 -1
  41. package/package.json +1 -1
  42. package/dist/feature-C1wCaXKQ.js +0 -946
@@ -1,29 +1,29 @@
1
- import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as xe, openBlock as S, createElementBlock as q, toRaw as be, reactive as Fe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as x, isRef as we, normalizeClass as Se, normalizeStyle as Pe } from "vue";
2
- import { X as Re, ak as Te, al as Ue, f as Ee, D as Ve, h as Z, e as G, am as Le, _ as Ne, l as E, d as T, u as Be, y as qe, z as ze, B as Ie, E as je, G as J } from "./app-0klJzLit.js";
1
+ import { ref as W, defineComponent as I, watch as ee, onMounted as ae, onUnmounted as xe, openBlock as S, createElementBlock as q, toRaw as be, reactive as Fe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as x, isRef as we, normalizeClass as Se, normalizeStyle as Pe } from "vue";
2
+ import { X as Re, al as Te, am as Ue, h as Ee, D as Ve, i as Z, f as G, an as Le, ad as Ne, m as E, e as T, u as Be, z as qe, _ as ze, B as Ie, E as je, G as J } from "./app-BvW6mdJl.js";
3
3
  import { useCoreStore as Ge, useI18n as j } from "@feedmepos/mf-common";
4
- import { useDialogChild as Oe, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
4
+ import { useDialogChild as Oe, useDialog as Me, useSnackbar as te, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
5
5
  import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
6
6
  const Q = Re((m, h) => {
7
7
  const y = Ge();
8
8
  return {
9
9
  async readWarehouses() {
10
10
  var l;
11
- const a = ((l = y.currentBusiness.value) == null ? void 0 : l._id) ?? "", n = `${m.inventoryBackendUrl}/businesses/${a}/warehouses`;
11
+ const t = ((l = y.currentBusiness.value) == null ? void 0 : l._id) ?? "", n = `${m.inventoryBackendUrl}/businesses/${t}/warehouses`;
12
12
  return await h.get(n);
13
13
  },
14
- async createWarehouse(a) {
14
+ async createWarehouse(t) {
15
15
  var p;
16
16
  const n = ((p = y.currentBusiness.value) == null ? void 0 : p._id) ?? "", l = `${m.inventoryBackendUrl}/businesses/${n}/warehouse`;
17
- return await h.post(l, a);
17
+ return await h.post(l, t);
18
18
  },
19
- async updateWarehouse(a, n) {
19
+ async updateWarehouse(t, n) {
20
20
  var s;
21
- const l = ((s = y.currentBusiness.value) == null ? void 0 : s._id) ?? "", p = `${m.inventoryBackendUrl}/businesses/${l}/warehouse/${a}`;
21
+ const l = ((s = y.currentBusiness.value) == null ? void 0 : s._id) ?? "", p = `${m.inventoryBackendUrl}/businesses/${l}/warehouse/${t}`;
22
22
  return await h.put(p, n);
23
23
  },
24
- async deleteWarehouse(a) {
24
+ async deleteWarehouse(t) {
25
25
  var p;
26
- const n = ((p = y.currentBusiness.value) == null ? void 0 : p._id) ?? "", l = `${m.inventoryBackendUrl}/businesses/${n}/warehouse/${a}`;
26
+ const n = ((p = y.currentBusiness.value) == null ? void 0 : p._id) ?? "", l = `${m.inventoryBackendUrl}/businesses/${n}/warehouse/${t}`;
27
27
  return await h.delete(l);
28
28
  }
29
29
  };
@@ -78,25 +78,25 @@ function Xe(m, h) {
78
78
  return;
79
79
  }
80
80
  }
81
- const { t: a } = j(), n = [
81
+ const { t } = j(), n = [
82
82
  {
83
83
  accessorKey: "warehouse",
84
- header: () => a("inventory.warehouse.table.warehouse"),
84
+ header: () => t("inventory.warehouse.table.warehouse"),
85
85
  size: 200
86
86
  },
87
87
  {
88
88
  accessorKey: "contact",
89
- header: () => a("inventory.warehouse.table.contact"),
89
+ header: () => t("inventory.warehouse.table.contact"),
90
90
  size: 200
91
91
  },
92
92
  {
93
93
  accessorKey: "email",
94
- header: () => a("inventory.warehouse.table.email"),
94
+ header: () => t("inventory.warehouse.table.email"),
95
95
  size: 200
96
96
  },
97
97
  {
98
98
  accessorKey: "address",
99
- header: () => a("inventory.warehouse.table.address"),
99
+ header: () => t("inventory.warehouse.table.address"),
100
100
  size: "auto"
101
101
  },
102
102
  {
@@ -165,7 +165,7 @@ const Ze = /* @__PURE__ */ I({
165
165
  },
166
166
  emits: ["map-click", "marker-change", "polygon-change", "polygon-right-click"],
167
167
  setup(m, { expose: h, emit: y }) {
168
- const a = m, n = y;
168
+ const t = m, n = y;
169
169
  h({
170
170
  setCenter: (r) => {
171
171
  var f, b;
@@ -218,12 +218,12 @@ const Ze = /* @__PURE__ */ I({
218
218
  const f = o(r);
219
219
  n("polygon-change", { index: r, path: f });
220
220
  }
221
- function t(r, f) {
221
+ function a(r, f) {
222
222
  const F = o(r).filter((D, O) => O !== f);
223
223
  n("polygon-change", { index: r, path: F });
224
224
  }
225
225
  function B(r, f) {
226
- f.vertex !== void 0 ? t(r, f.vertex) : n("polygon-right-click", r);
226
+ f.vertex !== void 0 ? a(r, f.vertex) : n("polygon-right-click", r);
227
227
  }
228
228
  function w(r) {
229
229
  d(null), i.value = r.map((f, b) => {
@@ -232,7 +232,7 @@ const Ze = /* @__PURE__ */ I({
232
232
  strokeColor: f.strokeColor,
233
233
  fillColor: f.fillColor,
234
234
  fillOpacity: 0.5,
235
- editable: a.editable
235
+ editable: t.editable
236
236
  });
237
237
  return k(F, "contextmenu", (D) => B(b, D)), F.getPaths().forEach((D) => {
238
238
  A(D, "insert_at", () => e(b)), A(D, "set_at", () => e(b));
@@ -247,16 +247,16 @@ const Ze = /* @__PURE__ */ I({
247
247
  }
248
248
  function R() {
249
249
  s.value = new l.maps.Map(p.value, {
250
- center: a.center,
251
- zoom: a.zoom,
250
+ center: t.center,
251
+ zoom: t.zoom,
252
252
  mapTypeControl: !1,
253
253
  streetViewControl: !1,
254
254
  draggable: !0,
255
255
  scrollwheel: !0
256
256
  }), Y(s.value, "click", (r) => n("map-click", _(r)));
257
257
  }
258
- return ee(() => a.markers, C, { deep: !0 }), ee(() => a.polygons, w, { deep: !0 }), te(() => {
259
- !p.value || !l || (R(), C(a.markers), w(a.polygons));
258
+ return ee(() => t.markers, C, { deep: !0 }), ee(() => t.polygons, w, { deep: !0 }), ae(() => {
259
+ !p.value || !l || (R(), C(t.markers), w(t.polygons));
260
260
  }), xe(() => {
261
261
  u.forEach((r) => r.remove());
262
262
  }), (r, f) => (S(), q("div", {
@@ -265,7 +265,7 @@ const Ze = /* @__PURE__ */ I({
265
265
  class: "map app-map"
266
266
  }, null, 512));
267
267
  }
268
- }), Je = { class: "flex flex-col gap-24" }, Qe = { class: "flex flex-col gap-8" }, Ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ I({
268
+ }), Je = { class: "flex flex-col gap-24" }, Qe = { class: "flex flex-col gap-8" }, Ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ao = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ I({
269
269
  __name: "CoordinateDialog",
270
270
  props: {
271
271
  address: {
@@ -278,15 +278,15 @@ const Ze = /* @__PURE__ */ I({
278
278
  }
279
279
  },
280
280
  setup(m) {
281
- const h = m, y = Oe(), a = se(), { t: n } = j(), l = Fe(
281
+ const h = m, y = Oe(), t = se(), { t: n } = j(), l = Fe(
282
282
  G(h.coordinate ? h.coordinate : le.jb)
283
283
  ), p = W(""), s = Le(async function() {
284
- p.value = await a.getFirstMatchingAddress(
284
+ p.value = await t.getFirstMatchingAddress(
285
285
  l.lat,
286
286
  l.lng
287
287
  );
288
288
  }, 1e3);
289
- te(() => {
289
+ ae(() => {
290
290
  y.emitData(G(l)), s();
291
291
  });
292
292
  function u({ position: v }) {
@@ -301,10 +301,10 @@ const Ze = /* @__PURE__ */ I({
301
301
  ]),
302
302
  g("div", null, [
303
303
  g("span", oo, U(c(n)("inventory.formField.coordinate.longitude")) + ": ", 1),
304
- g("span", to, U(l.lng), 1)
304
+ g("span", ao, U(l.lng), 1)
305
305
  ]),
306
306
  g("div", null, [
307
- g("span", ao, U(c(n)("inventory.formField.coordinate.latitude")) + ": ", 1),
307
+ g("span", to, U(c(n)("inventory.formField.coordinate.latitude")) + ": ", 1),
308
308
  g("span", lo, U(l.lat), 1)
309
309
  ])
310
310
  ]),
@@ -347,20 +347,20 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
347
347
  },
348
348
  emits: ["update:modelValue"],
349
349
  setup(m, { emit: h }) {
350
- const y = m, a = h, n = se(), l = Me(), p = ae(), s = oe(y, "modelValue"), u = W(!1), { t: _ } = j();
350
+ const y = m, t = h, n = se(), l = Me(), p = te(), s = oe(y, "modelValue"), u = W(!1), { t: _ } = j();
351
351
  function v(i) {
352
352
  if (i != null && i[0] && (i != null && i[1]))
353
353
  return _("inventory.formField.coordinate.longLat", [i[0].toFixed(3), i[1].toFixed(3)]);
354
354
  }
355
355
  async function M(i) {
356
- var e, t;
356
+ var e, a;
357
357
  const k = y.modelValue, A = !k && ((e = y.address) != null && e.formatted) ? await n.getFirstMatchingCoordinate(y.address.formatted) : null, o = k ? ke(k) : A ? ke(A) : le.jb;
358
358
  l.open({
359
359
  title: y.dialogTitle ?? y.label ?? _("inventory.formField.coordinate.pinLocation"),
360
360
  closeButton: !0,
361
361
  contentComponent: ro,
362
362
  contentComponentProps: {
363
- address: (t = y.address) == null ? void 0 : t.formatted,
363
+ address: (a = y.address) == null ? void 0 : a.formatted,
364
364
  coordinate: o
365
365
  },
366
366
  primaryActions: {
@@ -373,7 +373,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
373
373
  }
374
374
  }).onPrimary(i);
375
375
  }
376
- const $ = (i) => a("update:modelValue", i ? no(i) : null);
376
+ const $ = (i) => t("update:modelValue", i ? no(i) : null);
377
377
  async function C() {
378
378
  if (!y.disabled) {
379
379
  if (!n.isGoogleMapReady) {
@@ -388,7 +388,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
388
388
  }
389
389
  }
390
390
  function P() {
391
- a("update:modelValue", null);
391
+ t("update:modelValue", null);
392
392
  }
393
393
  return (i, k) => {
394
394
  const A = L("FmField"), o = L("FmButton"), e = L("FmFormGroup");
@@ -405,12 +405,12 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
405
405
  focused: u.value,
406
406
  "helper-text": i.helperText,
407
407
  "helper-state": i.helperState,
408
- onClick: k[0] || (k[0] = (t) => C())
408
+ onClick: k[0] || (k[0] = (a) => C())
409
409
  }, $e({
410
- default: N(({ invalid: t }) => [
410
+ default: N(({ invalid: a }) => [
411
411
  i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(), q("div", io, [
412
412
  V(A, {
413
- invalid: t,
413
+ invalid: a,
414
414
  class: "fm-typo-en-body-lg-400"
415
415
  }, {
416
416
  default: N(() => [
@@ -440,7 +440,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
440
440
  key: 0,
441
441
  "prepend-icon": "delete",
442
442
  variant: "tertiary",
443
- onClick: k[1] || (k[1] = (t) => P())
443
+ onClick: k[1] || (k[1] = (a) => P())
444
444
  })) : Ae("", !0)
445
445
  ]);
446
446
  };
@@ -453,110 +453,110 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
453
453
  },
454
454
  emits: ["update:modelValue", "validation-success"],
455
455
  setup(m, { expose: h, emit: y }) {
456
- const a = m, n = y, { t: l } = j(), p = x({
456
+ const t = m, n = y, { t: l } = j(), p = x({
457
457
  get() {
458
458
  var o, e;
459
- return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
459
+ return ((e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
460
460
  },
461
461
  set(o) {
462
- const e = a.modelValue ?? {};
462
+ const e = t.modelValue ?? {};
463
463
  e.profile ?? (e.profile = {}), e.profile.name = o, n("update:modelValue", e);
464
464
  }
465
465
  }), s = x({
466
466
  get() {
467
467
  var o, e;
468
- return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.regNo) ?? "";
468
+ return ((e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.regNo) ?? "";
469
469
  },
470
470
  set(o) {
471
- const e = a.modelValue ?? {};
471
+ const e = t.modelValue ?? {};
472
472
  e.profile ?? (e.profile = {}), e.profile.regNo = o, n("update:modelValue", e);
473
473
  }
474
474
  }), u = x({
475
475
  get() {
476
- var o, e, t;
477
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line1) ?? "";
476
+ var o, e, a;
477
+ return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.line1) ?? "";
478
478
  },
479
479
  set(o) {
480
- var t;
481
- const e = a.modelValue ?? {};
482
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line1 = o, n("update:modelValue", e);
480
+ var a;
481
+ const e = t.modelValue ?? {};
482
+ e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.line1 = o, n("update:modelValue", e);
483
483
  }
484
484
  }), _ = x({
485
485
  get() {
486
- var o, e, t;
487
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line2) ?? "";
486
+ var o, e, a;
487
+ return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.line2) ?? "";
488
488
  },
489
489
  set(o) {
490
- var t;
491
- const e = a.modelValue ?? {};
492
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line2 = o, n("update:modelValue", e);
490
+ var a;
491
+ const e = t.modelValue ?? {};
492
+ e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.line2 = o, n("update:modelValue", e);
493
493
  }
494
494
  }), v = x({
495
495
  get() {
496
- var o, e, t;
497
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.city) ?? "";
496
+ var o, e, a;
497
+ return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.city) ?? "";
498
498
  },
499
499
  set(o) {
500
- var t;
501
- const e = a.modelValue ?? {};
502
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.city = o, n("update:modelValue", e);
500
+ var a;
501
+ const e = t.modelValue ?? {};
502
+ e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.city = o, n("update:modelValue", e);
503
503
  }
504
504
  }), M = x({
505
505
  get() {
506
- var o, e, t;
507
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.postcode) ?? "";
506
+ var o, e, a;
507
+ return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.postcode) ?? "";
508
508
  },
509
509
  set(o) {
510
- var t;
511
- const e = a.modelValue ?? {};
512
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.postcode = o, n("update:modelValue", e);
510
+ var a;
511
+ const e = t.modelValue ?? {};
512
+ e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.postcode = o, n("update:modelValue", e);
513
513
  }
514
514
  }), $ = x({
515
515
  get() {
516
- var o, e, t;
517
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.state) ?? "";
516
+ var o, e, a;
517
+ return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.state) ?? "";
518
518
  },
519
519
  set(o) {
520
- var t;
521
- const e = a.modelValue ?? {};
522
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.state = o, n("update:modelValue", e);
520
+ var a;
521
+ const e = t.modelValue ?? {};
522
+ e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.state = o, n("update:modelValue", e);
523
523
  }
524
524
  }), C = x({
525
525
  get() {
526
- var o, e, t;
527
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.country) ?? "";
526
+ var o, e, a;
527
+ return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.country) ?? "";
528
528
  },
529
529
  set(o) {
530
- var t;
531
- const e = a.modelValue ?? {};
532
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.country = o, n("update:modelValue", e);
530
+ var a;
531
+ const e = t.modelValue ?? {};
532
+ e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.country = o, n("update:modelValue", e);
533
533
  }
534
534
  }), P = x({
535
535
  get() {
536
- var o, e, t;
537
- return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.coordinates) ?? null;
536
+ var o, e, a;
537
+ return ((a = (e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : a.coordinates) ?? null;
538
538
  },
539
539
  set(o) {
540
- var t;
541
- const e = a.modelValue ?? {};
542
- e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.coordinates = o, n("update:modelValue", e);
540
+ var a;
541
+ const e = t.modelValue ?? {};
542
+ e.profile ?? (e.profile = {}), (a = e.profile).address ?? (a.address = {}), e.profile.address.coordinates = o, n("update:modelValue", e);
543
543
  }
544
544
  }), i = x({
545
545
  get() {
546
546
  var o, e;
547
- return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.phoneNo) ?? "";
547
+ return ((e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.phoneNo) ?? "";
548
548
  },
549
549
  set(o) {
550
- const e = a.modelValue ?? {};
550
+ const e = t.modelValue ?? {};
551
551
  e.profile ?? (e.profile = {}), e.profile.phoneNo = o, n("update:modelValue", e);
552
552
  }
553
553
  }), k = x({
554
554
  get() {
555
555
  var o, e;
556
- return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
556
+ return ((e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
557
557
  },
558
558
  set(o) {
559
- const e = a.modelValue ?? {};
559
+ const e = t.modelValue ?? {};
560
560
  e.profile ?? (e.profile = {}), e.profile.email = o, n("update:modelValue", e);
561
561
  }
562
562
  }), A = W();
@@ -574,7 +574,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
574
574
  (e = (o = A.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
575
575
  }
576
576
  }), (o, e) => {
577
- const t = L("FmTextField"), B = L("FmPhoneNumber"), w = L("FmForm");
577
+ const a = L("FmTextField"), B = L("FmPhoneNumber"), w = L("FmForm");
578
578
  return S(), z(w, {
579
579
  ref_key: "formRef",
580
580
  ref: A,
@@ -583,7 +583,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
583
583
  default: N(() => [
584
584
  g("div", mo, [
585
585
  g("div", fo, [
586
- V(t, {
586
+ V(a, {
587
587
  disabled: o.disabled,
588
588
  rules: [c(E)()],
589
589
  "label-mark": "required",
@@ -591,7 +591,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
591
591
  modelValue: p.value,
592
592
  "onUpdate:modelValue": e[0] || (e[0] = (d) => p.value = d)
593
593
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
594
- V(t, {
594
+ V(a, {
595
595
  disabled: o.disabled,
596
596
  rules: [c(E)()],
597
597
  "label-mark": "required",
@@ -603,7 +603,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
603
603
  g("div", ho, [
604
604
  g("div", yo, U(c(l)("inventory.warehouse.address.title")), 1),
605
605
  g("div", vo, [
606
- V(t, {
606
+ V(a, {
607
607
  disabled: o.disabled,
608
608
  rules: [c(E)()],
609
609
  "label-mark": "required",
@@ -611,14 +611,14 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
611
611
  modelValue: u.value,
612
612
  "onUpdate:modelValue": e[2] || (e[2] = (d) => u.value = d)
613
613
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
614
- V(t, {
614
+ V(a, {
615
615
  disabled: o.disabled,
616
616
  "label-mark": "optional",
617
617
  label: c(l)("inventory.warehouse.address.line2"),
618
618
  modelValue: _.value,
619
619
  "onUpdate:modelValue": e[3] || (e[3] = (d) => _.value = d)
620
620
  }, null, 8, ["disabled", "label", "modelValue"]),
621
- V(t, {
621
+ V(a, {
622
622
  disabled: o.disabled,
623
623
  rules: [c(E)()],
624
624
  "label-mark": "required",
@@ -626,7 +626,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
626
626
  modelValue: v.value,
627
627
  "onUpdate:modelValue": e[4] || (e[4] = (d) => v.value = d)
628
628
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
629
- V(t, {
629
+ V(a, {
630
630
  disabled: o.disabled,
631
631
  rules: [c(E)()],
632
632
  "label-mark": "required",
@@ -634,7 +634,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
634
634
  modelValue: M.value,
635
635
  "onUpdate:modelValue": e[5] || (e[5] = (d) => M.value = d)
636
636
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
637
- V(t, {
637
+ V(a, {
638
638
  disabled: o.disabled,
639
639
  rules: [c(E)()],
640
640
  "label-mark": "required",
@@ -642,7 +642,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
642
642
  modelValue: $.value,
643
643
  "onUpdate:modelValue": e[6] || (e[6] = (d) => $.value = d)
644
644
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
645
- V(t, {
645
+ V(a, {
646
646
  disabled: o.disabled,
647
647
  rules: [c(E)()],
648
648
  "label-mark": "required",
@@ -673,7 +673,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
673
673
  modelValue: i.value,
674
674
  "onUpdate:modelValue": e[9] || (e[9] = (d) => i.value = d)
675
675
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
676
- V(t, {
676
+ V(a, {
677
677
  disabled: o.disabled,
678
678
  "label-mark": "optional",
679
679
  label: c(l)("inventory.warehouse.contact.email"),
@@ -697,8 +697,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
697
697
  },
698
698
  emits: ["update:show", "submitted"],
699
699
  setup(m, { expose: h, emit: y }) {
700
- const a = m, n = y, l = W(!1), p = ae(), { t: s } = j(), u = Ce(), _ = x(() => {
701
- switch (a.mode) {
700
+ const t = m, n = y, l = W(!1), p = te(), { t: s } = j(), u = Ce(), _ = x(() => {
701
+ switch (t.mode) {
702
702
  case T.READ:
703
703
  return "";
704
704
  case T.UPDATE:
@@ -708,7 +708,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
708
708
  }
709
709
  return "";
710
710
  }), v = x(() => {
711
- switch (a.mode) {
711
+ switch (t.mode) {
712
712
  case T.READ:
713
713
  return "";
714
714
  case T.UPDATE:
@@ -732,13 +732,13 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
732
732
  (e = (o = M.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
733
733
  }
734
734
  });
735
- const $ = oe(a, "show"), C = oe(a, "warehouse");
735
+ const $ = oe(t, "show"), C = oe(t, "warehouse");
736
736
  function P() {
737
737
  var o, e;
738
738
  (e = (o = M.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
739
739
  }
740
740
  function i() {
741
- switch (a.mode) {
741
+ switch (t.mode) {
742
742
  case T.READ:
743
743
  return;
744
744
  case T.UPDATE:
@@ -753,18 +753,18 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
753
753
  try {
754
754
  await Promise.all([
755
755
  u.createWarehouse(C.value),
756
- new Promise((t) => setTimeout(t, 1e3))
756
+ new Promise((a) => setTimeout(a, 1e3))
757
757
  ]), p.open({
758
758
  title: s("inventory.common.success"),
759
759
  message: s("inventory.warehouse.create.success", { name: (e = (o = C.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
760
760
  type: "success"
761
761
  }), n("update:show", !1), n("submitted");
762
- } catch (t) {
762
+ } catch (a) {
763
763
  p.open({
764
764
  title: s("inventory.warehouse.create.error.title"),
765
765
  message: s("inventory.warehouse.create.error.message"),
766
766
  type: "error"
767
- }), console.error("cannot create warehouse", t);
767
+ }), console.error("cannot create warehouse", a);
768
768
  } finally {
769
769
  l.value = !1;
770
770
  }
@@ -783,24 +783,24 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
783
783
  try {
784
784
  await Promise.all([
785
785
  u.updateWarehouse(C.value),
786
- new Promise((t) => setTimeout(t, 1e3))
786
+ new Promise((a) => setTimeout(a, 1e3))
787
787
  ]), p.open({
788
788
  title: s("inventory.common.success"),
789
789
  message: s("inventory.warehouse.update.success", { name: (e = (o = C.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
790
790
  type: "success"
791
791
  }), n("update:show", !1), n("submitted");
792
- } catch (t) {
792
+ } catch (a) {
793
793
  p.open({
794
794
  title: s("inventory.warehouse.update.error.title"),
795
795
  message: s("inventory.warehouse.update.error.message"),
796
796
  type: "error"
797
- }), console.error("cannot update warehouse", t);
797
+ }), console.error("cannot update warehouse", a);
798
798
  } finally {
799
799
  l.value = !1;
800
800
  }
801
801
  }
802
802
  return (o, e) => {
803
- const t = L("FmButton"), B = L("FmSideSheet");
803
+ const a = L("FmButton"), B = L("FmSideSheet");
804
804
  return S(), z(B, {
805
805
  header: _.value,
806
806
  modelValue: c($),
@@ -826,7 +826,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
826
826
  }),
827
827
  "side-sheet-footer": N(() => [
828
828
  g("div", Ao, [
829
- V(t, {
829
+ V(a, {
830
830
  loading: l.value,
831
831
  label: v.value,
832
832
  onClick: P
@@ -843,8 +843,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
843
843
  }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, Uo = /* @__PURE__ */ I({
844
844
  __name: "WarehouseView",
845
845
  setup(m) {
846
- const h = Ce(), y = Be(), a = x(() => h.warehouses), n = Me(), l = ae(), p = W(!1), { t: s } = j();
847
- te(() => {
846
+ const h = Ce(), y = Be(), t = x(() => h.warehouses), n = Me(), l = te(), p = W(!1), { t: s } = j();
847
+ ae(() => {
848
848
  y._currentLocation && A();
849
849
  }), ee([() => y._currentLocation], () => {
850
850
  y._currentLocation && A();
@@ -913,7 +913,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
913
913
  p.value = !1;
914
914
  }
915
915
  }
916
- const { breakpoints: o } = Ke(), e = x(() => o.value.xs || o.value.sm), t = x(() => e.value ? 10 : 20), B = qe();
916
+ const { breakpoints: o } = Ke(), e = x(() => o.value.xs || o.value.sm), a = x(() => e.value ? 10 : 20), B = qe();
917
917
  return (w, d) => {
918
918
  const Y = L("FmTable");
919
919
  return S(), z(ze, {
@@ -947,12 +947,12 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
947
947
  (S(), z(Y, {
948
948
  style: Pe(c(B).tableHeight),
949
949
  "column-defs": c(C),
950
- "row-data": c(P)(a.value),
950
+ "row-data": c(P)(t.value),
951
951
  "search-value": k.value,
952
952
  loading: !c(y)._currentLocation || p.value,
953
953
  onRowClick: d[1] || (d[1] = (R) => v(R.original.original)),
954
- key: a.value.length,
955
- "page-size": t.value
954
+ key: t.value.length,
955
+ "page-size": a.value
956
956
  }, {
957
957
  "list-row": N((R) => [
958
958
  V(je, {