@feedmepos/mf-inventory-portal 0.0.23-dev.23 → 0.0.23-dev.25

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 (50) hide show
  1. package/dist/{App-BvEB-iR6.js → App-CNgj7enS.js} +49 -45
  2. package/dist/{ApprovalView-BmPYoGNQ.js → ApprovalView-CaVxfwVZ.js} +15 -15
  3. package/dist/{BindingsDialog-BqKMRdvl.js → BindingsDialog-jRZXoJFn.js} +9 -9
  4. package/dist/{BindingsPicker-BaEdafvS.js → BindingsPicker-B1HSa3PR.js} +5 -5
  5. package/dist/{BindingsTable--d-nM2Gv.js → BindingsTable-OF56C-md.js} +8 -8
  6. package/dist/ClosingDraftView-B6okKype.js +1134 -0
  7. package/dist/{ClosingTemplateView-BdUGSMOi.js → ClosingTemplateView-iX4shLcv.js} +251 -255
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CIk6CwoD.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bj2M9OAD.js} +13 -13
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Bt1hyXul.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CnPZaNTp.js} +46 -46
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-wYnVSXtH.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CGpmbbpm.js} +7 -7
  11. package/dist/{IngredientGroupView-0-nzZJcl.js → IngredientGroupView-BeW-0hWb.js} +40 -40
  12. package/dist/{IngredientsView-ClRyZ-cb.js → IngredientsView-CuVBlnOu.js} +207 -210
  13. package/dist/{IntegrationView-CgmsV7oX.js → IntegrationView-lDfeScNo.js} +89 -90
  14. package/dist/{InventoryBindingForm-DnnGejy0.js → InventoryBindingForm-D6EuWIkE.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CapSS-KQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CUpKKG4l.js} +27 -27
  16. package/dist/{InventoryBindingSummary-Dz-F2ofe.js → InventoryBindingSummary-CD60iCr_.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-glXw963h.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-7jkFhj27.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DpIyyZL-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DDXsfGVf.js} +17 -18
  19. package/dist/{PurchaseOrderPrintPreview--hGI0aFU.js → PurchaseOrderPrintPreview-eJxn76Ir.js} +1 -1
  20. package/dist/{ReceiveRequestView-cPIOC0rj.js → ReceiveRequestView-D6Cdkd36.js} +26 -27
  21. package/dist/{RecipeView-BK74973y.js → RecipeView-BWy56DhW.js} +47 -48
  22. package/dist/{StockView-D6TYfv5x.js → StockView-BEXAvBjP.js} +7 -7
  23. package/dist/{SupplierView-BFwzHw7l.js → SupplierView-C4vwkzdX.js} +203 -206
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-ChwtBdsS.js → TransferDetails.vue_vue_type_script_setup_true_lang-CIcj9NWg.js} +61 -62
  25. package/dist/{TransferTemplateView-De5sG12Q.js → TransferTemplateView-27Ng_EgG.js} +144 -145
  26. package/dist/{UnitView-CQoB6Uq_.js → UnitView-CXvkO_fh.js} +3 -3
  27. package/dist/{WarehouseView-Di4mLjoS.js → WarehouseView-Cl6HN1EW.js} +52 -52
  28. package/dist/app-Dt6Yd1pM.js +84133 -0
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-D2WMzK1d.js → decimal-D1M8NkLV.js} +1 -1
  31. package/dist/{feature-SYqA_m5m.js → feature-CqDcAtUy.js} +1 -1
  32. package/dist/{format-unit-display-D0G-LaQY.js → format-unit-display-BI9EVHb3.js} +50 -53
  33. package/dist/{index-Bj8PDCww.js → index-7V6E004u.js} +1 -1
  34. package/dist/{stock-CEexJdO3.js → stock-wjdjOqbM.js} +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/{supplier-BdB47EjI.js → supplier-D3-7dgm5.js} +1 -1
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{use-inventory-binding-dialog-n3khDS2D.js → use-inventory-binding-dialog-BLHffZgi.js} +1 -1
  39. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
  40. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
  41. package/dist/views/adjustment-template/import/export.d.ts +60 -0
  42. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +178 -8
  43. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1498 -478
  44. package/package.json +3 -3
  45. package/dist/ClosingDraftView-Clh7bujC.js +0 -1116
  46. package/dist/FmDroppableField-DHhcKcJf.js +0 -154
  47. package/dist/app-DpJictvi.js +0 -58871
  48. package/dist/netsuite-TWj-9PDj.js +0 -251
  49. package/dist/xlsx-Cbd5szA2.js +0 -24004
  50. package/dist/xlsx.util-hCH_XTAD.js +0 -78
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as K, computed as _, openBlock as v, createElementBlock as w, createElementVNode as l, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as I, createBlock as T, withCtx as R, createVNode as y, unref as a, isRef as Z, normalizeClass as ae, normalizeStyle as re, Teleport as ie, normalizeProps as ue, guardReactiveProps as de } from "vue";
2
- import { a as G, c as U, S as me, e as ce, D as ee, f as N, d as oe, k as j, A as pe, h as J, z as fe, B as ve, m as te, u as ye, p as be, q as ge, r as xe, s as _e, v as he } from "./app-DpJictvi.js";
2
+ import { a as G, d as U, S as me, f as ce, D as ee, h as N, e as oe, l as j, A as pe, i as J, K as fe, L as ve, n as te, u as ye, x as be, y as ge, z as xe, B as _e, E as he } from "./app-Dt6Yd1pM.js";
3
3
  import { useDialog as Ve, useSnackbar as le, useProxiedModel as ne, useBreakpoints as Ue } from "@feedmepos/ui-library";
4
4
  import { i as we, _ as Ce } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { defineStore as ke, storeToRefs as Se } from "pinia";
6
6
  import { useI18n as O } from "@feedmepos/mf-common";
7
- import { F as Fe } from "./decimal-D2WMzK1d.js";
8
- import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-glXw963h.js";
7
+ import { F as Fe } from "./decimal-D1M8NkLV.js";
8
+ import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-7jkFhj27.js";
9
9
  const Ee = { class: "flex flex-col gap-8" }, Ie = {
10
10
  key: 0,
11
11
  class: "flex flex-col"
@@ -1,5 +1,5 @@
1
- import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as xe, openBlock as S, createElementBlock as B, 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 { N as Re, af as Te, ag as Ue, e as Ee, D as Ve, f as J, d as O, ah as Le, _ as Ne, k as E, c as T, u as qe, p as Be, q as ze, r as Ie, s as je, v as Q } from "./app-DpJictvi.js";
1
+ import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as Ce, 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 C, isRef as we, normalizeClass as Se, normalizeStyle as Pe } from "vue";
2
+ import { W as Re, an as Te, ao as Ue, f as Ee, D as Ve, h as J, e as O, ap as Le, _ as Ne, l as E, d as T, u as Be, x as qe, y as ze, z as Ie, B as je, E as Q } from "./app-Dt6Yd1pM.js";
3
3
  import { useCoreStore as Oe, useI18n as j } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as Ge, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
5
5
  import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
@@ -34,7 +34,7 @@ function He() {
34
34
  };
35
35
  }
36
36
  const _e = W(He());
37
- function Ce() {
37
+ function xe() {
38
38
  return {
39
39
  // state
40
40
  get warehouses() {
@@ -187,7 +187,7 @@ const Je = /* @__PURE__ */ I({
187
187
  function $(r, f, b) {
188
188
  v(r, f, b);
189
189
  }
190
- function C(r) {
190
+ function x(r) {
191
191
  P(null), M.value = r.map((f, b) => {
192
192
  const F = new l.maps.Marker({
193
193
  position: f,
@@ -222,7 +222,7 @@ const Je = /* @__PURE__ */ I({
222
222
  const F = o(r).filter((D, G) => G !== f);
223
223
  n("polygon-change", { index: r, path: F });
224
224
  }
225
- function q(r, f) {
225
+ function B(r, f) {
226
226
  f.vertex !== void 0 ? t(r, f.vertex) : n("polygon-right-click", r);
227
227
  }
228
228
  function w(r) {
@@ -234,7 +234,7 @@ const Je = /* @__PURE__ */ I({
234
234
  fillOpacity: 0.5,
235
235
  editable: a.editable
236
236
  });
237
- return k(F, "contextmenu", (D) => q(b, D)), F.getPaths().forEach((D) => {
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));
239
239
  }), F;
240
240
  }), d(s.value);
@@ -255,11 +255,11 @@ const Je = /* @__PURE__ */ I({
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));
260
- }), xe(() => {
258
+ return ee(() => a.markers, x, { deep: !0 }), ee(() => a.polygons, w, { deep: !0 }), te(() => {
259
+ !p.value || !l || (R(), x(a.markers), w(a.polygons));
260
+ }), Ce(() => {
261
261
  u.forEach((r) => r.remove());
262
- }), (r, f) => (S(), B("div", {
262
+ }), (r, f) => (S(), q("div", {
263
263
  ref_key: "mapRef",
264
264
  ref: p,
265
265
  class: "map app-map"
@@ -293,7 +293,7 @@ const Je = /* @__PURE__ */ I({
293
293
  l.lat = v.lat, l.lng = v.lng, y.emitData(O(l)), s();
294
294
  }
295
295
  const _ = W();
296
- return (v, M) => (S(), B("div", Qe, [
296
+ return (v, M) => (S(), q("div", Qe, [
297
297
  g("div", Xe, [
298
298
  g("div", null, [
299
299
  g("span", Ye, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
@@ -374,7 +374,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
374
374
  }).onPrimary(i);
375
375
  }
376
376
  const $ = (i) => a("update:modelValue", i ? no(i) : null);
377
- async function C() {
377
+ async function x() {
378
378
  if (!y.disabled) {
379
379
  if (!n.isGoogleMapReady) {
380
380
  p.open({
@@ -392,7 +392,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
392
392
  }
393
393
  return (i, k) => {
394
394
  const A = L("FmField"), o = L("FmButton"), e = L("FmFormGroup");
395
- return S(), B("div", uo, [
395
+ return S(), q("div", uo, [
396
396
  V(e, {
397
397
  class: "flex-1",
398
398
  "model-value": c(s),
@@ -405,10 +405,10 @@ 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] = (t) => x())
409
409
  }, $e({
410
410
  default: N(({ invalid: t }) => [
411
- i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(), B("div", io, [
411
+ i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(), q("div", io, [
412
412
  V(A, {
413
413
  invalid: t,
414
414
  class: "fm-typo-en-body-lg-400"
@@ -418,7 +418,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
418
418
  ]),
419
419
  _: 2
420
420
  }, 1032, ["invalid"])
421
- ])) : (S(), B("div", co, [
421
+ ])) : (S(), q("div", co, [
422
422
  V(o, {
423
423
  label: c(_)("inventory.formField.coordinate.addCoordinate"),
424
424
  "prepend-icon": "add",
@@ -453,7 +453,7 @@ 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 a = m, n = y, { t: l } = j(), p = C({
457
457
  get() {
458
458
  var o, e;
459
459
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
@@ -462,7 +462,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
462
462
  const e = a.modelValue ?? {};
463
463
  e.profile ?? (e.profile = {}), e.profile.name = o, n("update:modelValue", e);
464
464
  }
465
- }), s = x({
465
+ }), s = C({
466
466
  get() {
467
467
  var o, e;
468
468
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.regNo) ?? "";
@@ -471,7 +471,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
471
471
  const e = a.modelValue ?? {};
472
472
  e.profile ?? (e.profile = {}), e.profile.regNo = o, n("update:modelValue", e);
473
473
  }
474
- }), u = x({
474
+ }), u = C({
475
475
  get() {
476
476
  var o, e, t;
477
477
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line1) ?? "";
@@ -481,7 +481,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
481
481
  const e = a.modelValue ?? {};
482
482
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line1 = o, n("update:modelValue", e);
483
483
  }
484
- }), _ = x({
484
+ }), _ = C({
485
485
  get() {
486
486
  var o, e, t;
487
487
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line2) ?? "";
@@ -491,7 +491,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
491
491
  const e = a.modelValue ?? {};
492
492
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line2 = o, n("update:modelValue", e);
493
493
  }
494
- }), v = x({
494
+ }), v = C({
495
495
  get() {
496
496
  var o, e, t;
497
497
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.city) ?? "";
@@ -501,7 +501,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
501
501
  const e = a.modelValue ?? {};
502
502
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.city = o, n("update:modelValue", e);
503
503
  }
504
- }), M = x({
504
+ }), M = C({
505
505
  get() {
506
506
  var o, e, t;
507
507
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.postcode) ?? "";
@@ -511,7 +511,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
511
511
  const e = a.modelValue ?? {};
512
512
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.postcode = o, n("update:modelValue", e);
513
513
  }
514
- }), $ = x({
514
+ }), $ = C({
515
515
  get() {
516
516
  var o, e, t;
517
517
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.state) ?? "";
@@ -521,7 +521,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
521
521
  const e = a.modelValue ?? {};
522
522
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.state = o, n("update:modelValue", e);
523
523
  }
524
- }), C = x({
524
+ }), x = C({
525
525
  get() {
526
526
  var o, e, t;
527
527
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.country) ?? "";
@@ -531,7 +531,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
531
531
  const e = a.modelValue ?? {};
532
532
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.country = o, n("update:modelValue", e);
533
533
  }
534
- }), P = x({
534
+ }), P = C({
535
535
  get() {
536
536
  var o, e, t;
537
537
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.coordinates) ?? null;
@@ -541,7 +541,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
541
541
  const e = a.modelValue ?? {};
542
542
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.coordinates = o, n("update:modelValue", e);
543
543
  }
544
- }), i = x({
544
+ }), i = C({
545
545
  get() {
546
546
  var o, e;
547
547
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.phoneNo) ?? "";
@@ -550,7 +550,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
550
550
  const e = a.modelValue ?? {};
551
551
  e.profile ?? (e.profile = {}), e.profile.phoneNo = o, n("update:modelValue", e);
552
552
  }
553
- }), k = x({
553
+ }), k = C({
554
554
  get() {
555
555
  var o, e;
556
556
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
@@ -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"), q = L("FmPhoneNumber"), w = L("FmForm");
577
+ const t = L("FmTextField"), B = L("FmPhoneNumber"), w = L("FmForm");
578
578
  return S(), z(w, {
579
579
  ref_key: "formRef",
580
580
  ref: A,
@@ -647,8 +647,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
647
647
  rules: [c(E)()],
648
648
  "label-mark": "required",
649
649
  label: c(l)("inventory.warehouse.address.country"),
650
- modelValue: C.value,
651
- "onUpdate:modelValue": e[7] || (e[7] = (d) => C.value = d)
650
+ modelValue: x.value,
651
+ "onUpdate:modelValue": e[7] || (e[7] = (d) => x.value = d)
652
652
  }, null, 8, ["disabled", "rules", "label", "modelValue"])
653
653
  ])
654
654
  ]),
@@ -665,7 +665,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
665
665
  g("div", wo, [
666
666
  g("div", Vo, U(c(l)("inventory.warehouse.contact.title")), 1),
667
667
  g("div", _o, [
668
- V(q, {
668
+ V(B, {
669
669
  disabled: o.disabled,
670
670
  rules: [c(E)()],
671
671
  "label-mark": "required",
@@ -697,7 +697,7 @@ 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(() => {
700
+ const a = m, n = y, l = W(!1), p = ae(), { t: s } = j(), u = xe(), _ = C(() => {
701
701
  switch (a.mode) {
702
702
  case T.READ:
703
703
  return "";
@@ -707,7 +707,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
707
707
  return s("inventory.warehouse.create.title");
708
708
  }
709
709
  return "";
710
- }), v = x(() => {
710
+ }), v = C(() => {
711
711
  switch (a.mode) {
712
712
  case T.READ:
713
713
  return "";
@@ -732,7 +732,7 @@ 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(a, "show"), x = oe(a, "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);
@@ -752,11 +752,11 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
752
752
  l.value = !0;
753
753
  try {
754
754
  await Promise.all([
755
- u.createWarehouse(C.value),
755
+ u.createWarehouse(x.value),
756
756
  new Promise((t) => setTimeout(t, 1e3))
757
757
  ]), p.open({
758
758
  title: s("inventory.common.success"),
759
- message: s("inventory.warehouse.create.success", { name: (e = (o = C.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
759
+ message: s("inventory.warehouse.create.success", { name: (e = (o = x.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
760
760
  type: "success"
761
761
  }), n("update:show", !1), n("submitted");
762
762
  } catch (t) {
@@ -771,7 +771,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
771
771
  }
772
772
  async function A() {
773
773
  var o, e;
774
- if (C.value === null) {
774
+ if (x.value === null) {
775
775
  p.open({
776
776
  title: s("inventory.warehouse.update.error.title"),
777
777
  message: s("inventory.warehouse.update.error.emptyWarehouse"),
@@ -782,11 +782,11 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
782
782
  l.value = !0;
783
783
  try {
784
784
  await Promise.all([
785
- u.updateWarehouse(C.value),
785
+ u.updateWarehouse(x.value),
786
786
  new Promise((t) => setTimeout(t, 1e3))
787
787
  ]), p.open({
788
788
  title: s("inventory.common.success"),
789
- message: s("inventory.warehouse.update.success", { name: (e = (o = C.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
789
+ message: s("inventory.warehouse.update.success", { name: (e = (o = x.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
790
790
  type: "success"
791
791
  }), n("update:show", !1), n("submitted");
792
792
  } catch (t) {
@@ -800,8 +800,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
800
800
  }
801
801
  }
802
802
  return (o, e) => {
803
- const t = L("FmButton"), q = L("FmSideSheet");
804
- return S(), z(q, {
803
+ const t = L("FmButton"), B = L("FmSideSheet");
804
+ return S(), z(B, {
805
805
  header: _.value,
806
806
  modelValue: c($),
807
807
  "onUpdate:modelValue": e[1] || (e[1] = (w) => we($) ? $.value = w : null),
@@ -816,8 +816,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
816
816
  class: "w-full",
817
817
  ref_key: "formRef",
818
818
  ref: M,
819
- modelValue: c(C),
820
- "onUpdate:modelValue": e[0] || (e[0] = (d) => we(C) ? C.value = d : null),
819
+ modelValue: c(x),
820
+ "onUpdate:modelValue": e[0] || (e[0] = (d) => we(x) ? x.value = d : null),
821
821
  onValidationSuccess: i,
822
822
  key: ((w = o.warehouse) == null ? void 0 : w._id) ?? "",
823
823
  disabled: l.value
@@ -837,13 +837,13 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
837
837
  }, 8, ["header", "modelValue", "dismiss-away"]);
838
838
  };
839
839
  }
840
- }), Co = { class: "flex flex-col py-8" }, xo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Fo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $o = {
840
+ }), xo = { class: "flex flex-col py-8" }, Co = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Fo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $o = {
841
841
  key: 0,
842
842
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
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 = qe(), a = x(() => h.warehouses), n = Me(), l = ae(), p = W(!1), { t: s } = j();
846
+ const h = xe(), y = Be(), a = C(() => h.warehouses), n = Me(), l = ae(), p = W(!1), { t: s } = j();
847
847
  te(() => {
848
848
  y._currentLocation && A();
849
849
  }), ee([() => y._currentLocation], () => {
@@ -892,7 +892,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
892
892
  n.close();
893
893
  }
894
894
  }
895
- const { columnDefs: C, formatRowData: P } = Ze(
895
+ const { columnDefs: x, formatRowData: P } = Ze(
896
896
  v,
897
897
  M
898
898
  );
@@ -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), q = Be();
916
+ const { breakpoints: o } = Ke(), e = C(() => o.value.xs || o.value.sm), t = C(() => e.value ? 10 : 20), B = qe();
917
917
  return (w, d) => {
918
918
  const Y = L("FmTable");
919
919
  return S(), z(ze, {
@@ -945,8 +945,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
945
945
  "onUpdate:search": d[0] || (d[0] = (R) => k.value = R)
946
946
  }, null, 8, ["search"]),
947
947
  (S(), z(Y, {
948
- style: Pe(c(q).tableHeight),
949
- "column-defs": c(C),
948
+ style: Pe(c(B).tableHeight),
949
+ "column-defs": c(x),
950
950
  "row-data": c(P)(a.value),
951
951
  "search-value": k.value,
952
952
  loading: !c(y)._currentLocation || p.value,
@@ -962,8 +962,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
962
962
  default: N((r) => {
963
963
  var f, b, F, D, G, re, ne, ue, K, ie, de, ce, pe, me, H, fe, he, ye, ve, Z, ge;
964
964
  return [
965
- g("div", Co, [
966
- g("div", xo, [
965
+ g("div", xo, [
966
+ g("div", Co, [
967
967
  V(c(Q), {
968
968
  render: (F = (b = (f = r.warehouse) == null ? void 0 : f.column) == null ? void 0 : b.columnDef) == null ? void 0 : F.cell,
969
969
  props: (G = (D = r.warehouse) == null ? void 0 : D.getContext) == null ? void 0 : G.call(D)
@@ -975,7 +975,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
975
975
  props: (ie = (K = r.contact) == null ? void 0 : K.getContext) == null ? void 0 : ie.call(K)
976
976
  }, null, 8, ["render", "props"])
977
977
  ]),
978
- (de = R.original) != null && de.email ? (S(), B("div", $o, [
978
+ (de = R.original) != null && de.email ? (S(), q("div", $o, [
979
979
  V(c(Q), {
980
980
  render: (me = (pe = (ce = r.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
981
981
  props: (fe = (H = r.email) == null ? void 0 : H.getContext) == null ? void 0 : fe.call(H)