@feedmepos/mf-inventory-portal 1.2.7-dev.7 → 1.2.7

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 (87) hide show
  1. package/dist/{App-Bp3RZliL.js → App-BtLCesbn.js} +1 -1
  2. package/dist/{ApprovalView-GJRR3rcl.js → ApprovalView-Ba4XBhGf.js} +68 -69
  3. package/dist/{BindingsDialog-CAEU5bJn.js → BindingsDialog-BbBUniCu.js} +2 -2
  4. package/dist/{BindingsPicker-bORI4mV1.js → BindingsPicker-C3q3ROku.js} +1 -1
  5. package/dist/{BindingsTable-CuH5tXgK.js → BindingsTable-BTxWMif_.js} +1 -1
  6. package/dist/{ClosingDraftView-CadMahym.js → ClosingDraftView-DGITBnaY.js} +203 -203
  7. package/dist/{ClosingTemplateView-D3o4odDY.js → ClosingTemplateView-eRvwxXBq.js} +53 -53
  8. package/dist/{DeliveryOrderPrintPreview-CsHfTBcq.js → DeliveryOrderPrintPreview-CUaHpblV.js} +8 -8
  9. package/dist/{FmAdminBadge-CzMn-J60.js → FmAdminBadge-BdwGZY-f.js} +6 -6
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lDkElrkF.js +227 -0
  11. package/dist/{FmMultiselectDialog-B8ArrIt7.js → FmMultiselectDialog-BETfHs3j.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-HndkjqBa.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BNdbeRQp.js} +23 -23
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-8ubEC227.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-VYMMcwLl.js} +1 -1
  14. package/dist/{IngredientGroupView-CwKJnrhc.js → IngredientGroupView-C4d9b3Td.js} +12 -12
  15. package/dist/IngredientsView-BvqWuIVT.js +1876 -0
  16. package/dist/{IntegrationView-BIRbf4l3.js → IntegrationView-CWFzRDWO.js} +1552 -1430
  17. package/dist/{InventoryBindingForm-DWyymzbI.js → InventoryBindingForm-Cx0Prlq8.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DyQrNaoP.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-cpR3Sf2Y.js} +41 -41
  19. package/dist/{InventoryBindingSummary-CXbQXbqS.js → InventoryBindingSummary-l8XvpxVU.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bj_HAWfH.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjRvIX-v.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DU2Qpd8s.js → PremiumBadge.vue_vue_type_script_setup_true_lang-gjuZveKy.js} +11 -11
  22. package/dist/{PublishView-CehXv5wb.js → PublishView-D2iUnDan.js} +14 -14
  23. package/dist/{PurchaseOrderPrintPreview-Uf0DxlXw.js → PurchaseOrderPrintPreview-DdLvM-wt.js} +11 -11
  24. package/dist/{ReceiveRequestView-ByIAx9ej.js → ReceiveRequestView-DpF5ZzvH.js} +145 -148
  25. package/dist/{RecipeView-YwG4k-4A.js → RecipeView-Dvtm8o1Y.js} +49 -49
  26. package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +59 -0
  27. package/dist/StockView-CRDu_GQ_.js +2086 -0
  28. package/dist/{SupplierView-CC3KnRbQ.js → SupplierView-7GtIJ3Fz.js} +1015 -1133
  29. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DbmLtbZt.js +2494 -0
  30. package/dist/{TransferTemplateView-SCtPnAd9.js → TransferTemplateView-Cmvg-yvW.js} +130 -131
  31. package/dist/{UnitView-DJkTEgLx.js → UnitView-DjVm1iVX.js} +59 -59
  32. package/dist/WarehouseView-CBso3SXT.js +1034 -0
  33. package/dist/api/inventory.d.ts +0 -8
  34. package/dist/api/netsuite.d.ts +0 -3
  35. package/dist/api/purchase-order-template.d.ts +0 -1
  36. package/dist/api/purchase-order.d.ts +0 -2
  37. package/dist/api/warehouse.d.ts +1 -3
  38. package/dist/{app-DSCOQo53.js → app-Z-ylwRmy.js} +17114 -17862
  39. package/dist/app.d.ts +9 -81
  40. package/dist/app.js +3 -3
  41. package/dist/components/FmEnhancedSelect.vue.d.ts +30 -0
  42. package/dist/components/FmInventoryTableToolbar.vue.d.ts +2 -9
  43. package/dist/{decimal-BZnhdSsA.js → decimal-D1pJ2776.js} +1 -1
  44. package/dist/{format-unit-display-d7QLVQil.js → format-unit-display-9BMm-8A4.js} +404 -372
  45. package/dist/{index-Bhroqat1.js → index-BOl10vcm.js} +282 -267
  46. package/dist/{index-Dyt2acoh.js → index-rEIM0AVC.js} +1 -1
  47. package/dist/{stock-CQFxEDCX.js → stock-B8ewk80v.js} +1 -1
  48. package/dist/stores/feature.d.ts +0 -10
  49. package/dist/stores/integration/netsuite.d.ts +0 -19
  50. package/dist/stores/inventory.d.ts +0 -1
  51. package/dist/stores/location.d.ts +1 -57
  52. package/dist/stores/supplier.d.ts +0 -96
  53. package/dist/stores/warehouse.d.ts +0 -4
  54. package/dist/{supplier-dlDvID4f.js → supplier-DLSXYY1o.js} +1 -1
  55. package/dist/tsconfig.app.tsbuildinfo +1 -1
  56. package/dist/{use-ingredient-select-dialog-B2IP0HFs.js → use-ingredient-select-dialog-CTjwdY3T.js} +5 -5
  57. package/dist/{use-inventory-binding-dialog-5KDq4yCL.js → use-inventory-binding-dialog-zXJB7MQY.js} +8 -8
  58. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +0 -16
  59. package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +0 -4
  60. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +0 -2
  61. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +0 -1
  62. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -60
  63. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -10
  64. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -94
  65. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1 -72
  66. package/dist/views/supplier/components/SupplierForm.vue.d.ts +0 -8
  67. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +0 -3
  68. package/dist/views/supplier/composables/use-supplier-table.d.ts +0 -4
  69. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -8
  70. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +0 -16
  71. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +0 -48
  72. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -48
  73. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +0 -8
  74. package/package.json +4 -4
  75. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Vp1K2ZCX.js +0 -230
  76. package/dist/IngredientsView-K4NOgofz.js +0 -2197
  77. package/dist/StockView-C6cH0sRY.js +0 -2104
  78. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DbiWKY49.js +0 -158
  79. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Ctx-rXrn.js +0 -3058
  80. package/dist/WarehouseView-B7lrZDx5.js +0 -1066
  81. package/dist/api/shipment.d.ts +0 -11
  82. package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +0 -2
  83. package/dist/purchase-order-template-DiLZPW9w.js +0 -41
  84. package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +0 -16
  85. package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +0 -4
  86. package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +0 -16
  87. package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +0 -4
@@ -1,9 +1,9 @@
1
- import { ref as M, h as F, defineComponent as L, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Me, toDisplayString as C, unref as y, createCommentVNode as G, createVNode as $, withCtx as A, Fragment as j, renderList as J, computed as E, watch as Fe, createSlots as Re, createBlock as V, isRef as Oe, normalizeStyle as Ye, Teleport as Ke, normalizeProps as Ge, guardReactiveProps as Je, mergeProps as We } from "vue";
2
- import { a6 as qe, u as ie, al as Qe, D as Z, i as N, h as Xe, f as Ae, am as Ze, an as ae, z as et, ao as Ee, B as Ne, a as ce, b as tt, C as nt, E as Ue, G as ot, H as st, ap as lt, e as H, P as O, T as at, aq as rt, o as it, O as Ve, A as ct, ar as mt, a7 as le, K as ut, _ as dt, L as pt } from "./app-DSCOQo53.js";
1
+ import { ref as P, h as F, defineComponent as L, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Pe, toDisplayString as C, unref as y, createCommentVNode as K, createVNode as $, withCtx as A, Fragment as j, renderList as J, computed as E, watch as Fe, createSlots as Re, createBlock as V, isRef as Oe, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as Je, mergeProps as We } from "vue";
2
+ import { a4 as qe, u as ie, aj as Qe, D as Z, i as N, h as Xe, f as Ae, ak as Ze, al as ae, v as et, am as Ee, w as Ne, a as ce, b as tt, x as nt, y as Ue, z as ot, B as st, an as lt, e as H, J as O, L as at, ao as rt, n as it, G as Ve, A as ct, ap as mt, a5 as le, C as ut, _ as dt, E as pt } from "./app-Z-ylwRmy.js";
3
3
  import { useCoreStore as me, useI18n as z } from "@feedmepos/mf-common";
4
4
  import { useDialog as te, useDialogChild as ft, useSnackbar as ne, FmButtonVariant as ee, components as B, useProxiedModel as vt, useBreakpoints as gt } from "@feedmepos/ui-library";
5
5
  import { defineStore as Be, storeToRefs as Le } from "pinia";
6
- import { u as yt } from "./use-ingredient-select-dialog-B2IP0HFs.js";
6
+ import { u as yt } from "./use-ingredient-select-dialog-CTjwdY3T.js";
7
7
  const oe = qe((c, o) => {
8
8
  function l() {
9
9
  var t;
@@ -54,7 +54,7 @@ const oe = qe((c, o) => {
54
54
  }), se = Be(
55
55
  "closingTemplateTable",
56
56
  function() {
57
- const { t: o } = z(), l = te(), a = M({}), e = re(), t = M({}), g = M(new Array()), u = M(!1), f = ie(), i = oe();
57
+ const { t: o } = z(), l = te(), a = P({}), e = re(), t = P({}), g = P(new Array()), u = P(!1), f = ie(), i = oe();
58
58
  function v(s) {
59
59
  const r = {
60
60
  title: s.name,
@@ -572,7 +572,7 @@ function $t(c) {
572
572
  const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-col" }, St = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, Dt = {
573
573
  key: 0,
574
574
  class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
575
- }, Pt = { key: 0 }, Pe = /* @__PURE__ */ L({
575
+ }, Mt = { key: 0 }, Me = /* @__PURE__ */ L({
576
576
  __name: "ClosingTemplateImportItem",
577
577
  props: {
578
578
  type: {},
@@ -595,10 +595,10 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
595
595
  "text-fm-color-system-error-300": l.errors.length
596
596
  })
597
597
  }, [
598
- Me(C(l.name) + " ", 1),
599
- l.type === "create" ? (k(), I("span", Dt, "(" + C(y(o)("inventory.closing.template.import.new")) + ")", 1)) : G("", !0)
598
+ Pe(C(l.name) + " ", 1),
599
+ l.type === "create" ? (k(), I("span", Dt, "(" + C(y(o)("inventory.closing.template.import.new")) + ")", 1)) : K("", !0)
600
600
  ], 2),
601
- l.errors.length ? (k(), I("div", Pt, [
601
+ l.errors.length ? (k(), I("div", Mt, [
602
602
  $(t, { "z-index": 50 }, {
603
603
  content: A(() => [
604
604
  _("ol", null, [
@@ -614,7 +614,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
614
614
  ]),
615
615
  _: 1
616
616
  })
617
- ])) : G("", !0)
617
+ ])) : K("", !0)
618
618
  ]),
619
619
  _("div", {
620
620
  class: Y([
@@ -629,7 +629,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
629
629
  ]);
630
630
  };
631
631
  }
632
- }), Mt = { class: "flex flex-col gap-24" }, Ft = { class: "fm-typo-en-body-md-400" }, Rt = {
632
+ }), Pt = { class: "flex flex-col gap-24" }, Ft = { class: "fm-typo-en-body-md-400" }, Rt = {
633
633
  key: 0,
634
634
  class: "flex items-center gap-8"
635
635
  }, At = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Et = { class: "flex flex-col gap-8" }, Nt = { class: "line-clamp-2 text-ellipsis break-all" }, Ut = {
@@ -644,7 +644,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
644
644
  }, zt = { class: "fm-typo-en-body-lg-600" }, Ht = /* @__PURE__ */ L({
645
645
  __name: "ClosingTemplateImport",
646
646
  setup(c) {
647
- const o = M(null), l = ft(), a = ne(), e = M(!1), t = M(!1), g = M(new Array()), u = M([]), f = M([]), i = E(
647
+ const o = P(null), l = ft(), a = ne(), e = P(!1), t = P(!1), g = P(new Array()), u = P([]), f = P([]), i = E(
648
648
  () => !!g.value.length || u.value.some((T) => T.errors.length) || f.value.some((T) => T.errors.length)
649
649
  ), v = E(
650
650
  () => !!u.value.length || !!f.value.length
@@ -693,7 +693,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
693
693
  T && x(T);
694
694
  }), (T, h) => {
695
695
  const s = R("FmCircularProgress"), r = R("FmIcon"), m = R("FmButton");
696
- return k(), I("div", Mt, [
696
+ return k(), I("div", Pt, [
697
697
  _("div", Ft, C(y(d)("inventory.closing.template.import.message")), 1),
698
698
  t.value ? (k(), I("div", Rt, [
699
699
  _("div", null, [
@@ -749,7 +749,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
749
749
  }, [
750
750
  _("div", Nt, C(o.value.name), 1)
751
751
  ], 2),
752
- e.value ? G("", !0) : (k(), I("div", Ut, [
752
+ e.value ? K("", !0) : (k(), I("div", Ut, [
753
753
  $(m, {
754
754
  label: y(d)("inventory.ingredient.import.replaceFile"),
755
755
  variant: i.value ? "destructive" : "secondary",
@@ -770,7 +770,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
770
770
  }),
771
771
  _("div", Bt, C(w), 1)
772
772
  ]))), 128))
773
- ])) : G("", !0)
773
+ ])) : K("", !0)
774
774
  ])
775
775
  ]),
776
776
  key: "0"
@@ -778,7 +778,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
778
778
  ]), 1032, ["class", "label", "button-label"]),
779
779
  v.value ? (k(), I("div", Lt, [
780
780
  _("div", zt, C(y(d)("inventory.ingredient.import.summary")), 1),
781
- (k(!0), I(j, null, J(u.value, (n, w) => (k(), V(Pe, {
781
+ (k(!0), I(j, null, J(u.value, (n, w) => (k(), V(Me, {
782
782
  key: w,
783
783
  name: n.template.name,
784
784
  locations: n.template.locations,
@@ -786,7 +786,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
786
786
  errors: n.errors,
787
787
  type: "create"
788
788
  }, null, 8, ["name", "locations", "items", "errors"]))), 128)),
789
- (k(!0), I(j, null, J(f.value, (n) => (k(), V(Pe, {
789
+ (k(!0), I(j, null, J(f.value, (n) => (k(), V(Me, {
790
790
  key: n.template._id,
791
791
  name: n.template.name,
792
792
  locations: n.template.locations,
@@ -794,13 +794,13 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
794
794
  errors: n.errors,
795
795
  type: "update"
796
796
  }, null, 8, ["name", "locations", "items", "errors"]))), 128))
797
- ])) : G("", !0)
797
+ ])) : K("", !0)
798
798
  ], 64))
799
799
  ]);
800
800
  };
801
801
  }
802
802
  }), re = Be("closingTemplateActions", () => {
803
- const { t: c } = z(), o = te(), l = ne(), a = oe(), e = lt(), t = se(), { loading: g } = Le(t), u = M({});
803
+ const { t: c } = z(), o = te(), l = ne(), a = oe(), e = lt(), t = se(), { loading: g } = Le(t), u = P({});
804
804
  function f() {
805
805
  u.value = {
806
806
  mode: H.CREATE,
@@ -916,7 +916,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
916
916
  }
917
917
  });
918
918
  }
919
- const x = M({});
919
+ const x = P({});
920
920
  function T(m) {
921
921
  x.value = {
922
922
  template: m,
@@ -1038,7 +1038,7 @@ const Ct = { class: "flex items-center gap-12 pl-8" }, It = { class: "flex flex-
1038
1038
  templateDetailsProps: x
1039
1039
  };
1040
1040
  });
1041
- var K = /* @__PURE__ */ ((c) => (c.Name = "Name", c.Unit = "Unit", c.Delete = "Delete", c))(K || {});
1041
+ var G = /* @__PURE__ */ ((c) => (c.Name = "Name", c.Unit = "Unit", c.Delete = "Delete", c))(G || {});
1042
1042
  function jt(c) {
1043
1043
  return {
1044
1044
  columnDefs: E(() => {
@@ -1240,7 +1240,7 @@ function jt(c) {
1240
1240
  })
1241
1241
  };
1242
1242
  }
1243
- const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Kt = { class: "flex-1 flex flex-col" }, Gt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Jt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Wt = { class: "flex flex-col gap-4" }, qt = /* @__PURE__ */ L({
1243
+ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Gt = { class: "flex-1 flex flex-col" }, Kt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Jt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Wt = { class: "flex flex-col gap-4" }, qt = /* @__PURE__ */ L({
1244
1244
  __name: "ClosingTemplateItem",
1245
1245
  props: {
1246
1246
  cellByColId: {},
@@ -1248,20 +1248,20 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Kt =
1248
1248
  },
1249
1249
  setup(c) {
1250
1250
  const o = c, l = E(() => o.row), a = E(
1251
- () => l.value.getVisibleCells().filter((e) => e.column.id !== K.Name && e.column.id !== K.Delete)
1251
+ () => l.value.getVisibleCells().filter((e) => e.column.id !== G.Name && e.column.id !== G.Delete)
1252
1252
  );
1253
1253
  return (e, t) => {
1254
1254
  var g, u, f, i, v;
1255
1255
  return k(), I("div", Ot, [
1256
1256
  _("div", Yt, [
1257
- _("div", Kt, [
1258
- _("div", Gt, C(l.value.original.sku.name), 1),
1257
+ _("div", Gt, [
1258
+ _("div", Kt, C(l.value.original.sku.name), 1),
1259
1259
  _("div", Jt, C(l.value.original.sku.code), 1)
1260
1260
  ]),
1261
1261
  _("div", null, [
1262
1262
  $(y(O), {
1263
- render: (f = (u = (g = e.cellByColId[y(K).Delete]) == null ? void 0 : g.column) == null ? void 0 : u.columnDef) == null ? void 0 : f.cell,
1264
- props: (v = (i = e.cellByColId[y(K).Delete]) == null ? void 0 : i.getContext) == null ? void 0 : v.call(i)
1263
+ render: (f = (u = (g = e.cellByColId[y(G).Delete]) == null ? void 0 : g.column) == null ? void 0 : u.columnDef) == null ? void 0 : f.cell,
1264
+ props: (v = (i = e.cellByColId[y(G).Delete]) == null ? void 0 : i.getContext) == null ? void 0 : v.call(i)
1265
1265
  }, null, 8, ["render", "props"])
1266
1266
  ])
1267
1267
  ]),
@@ -1302,7 +1302,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Kt =
1302
1302
  setLocations(s) {
1303
1303
  a.locations = s;
1304
1304
  }
1305
- }), i = M(), v = M("");
1305
+ }), i = P(), v = P("");
1306
1306
  o({
1307
1307
  validateInputs: () => {
1308
1308
  var s, r;
@@ -1437,12 +1437,12 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Kt =
1437
1437
  "list-row": A((D) => [
1438
1438
  (k(), V(Ve, {
1439
1439
  row: D,
1440
- key: y(a).items.map((P) => P.sku._id).join(".")
1440
+ key: y(a).items.map((M) => M.sku._id).join(".")
1441
1441
  }, {
1442
- default: A((P) => [
1442
+ default: A((M) => [
1443
1443
  $(qt, {
1444
1444
  row: D,
1445
- "cell-by-col-id": P
1445
+ "cell-by-col-id": M
1446
1446
  }, null, 8, ["row", "cell-by-col-id"])
1447
1447
  ]),
1448
1448
  _: 2
@@ -1478,7 +1478,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Kt =
1478
1478
  items: []
1479
1479
  };
1480
1480
  }
1481
- const v = M(a.modelValue ?? i()), d = M(((w = a.modelValue) == null ? void 0 : w._id) ?? `${Math.random()}`);
1481
+ const v = P(a.modelValue ?? i()), d = P(((w = a.modelValue) == null ? void 0 : w._id) ?? `${Math.random()}`);
1482
1482
  Fe(
1483
1483
  () => a.show,
1484
1484
  (p) => {
@@ -1486,7 +1486,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Kt =
1486
1486
  p && (v.value = a.modelValue ?? i(), d.value = ((b = a.modelValue) == null ? void 0 : b._id) ?? `${Math.random()}`);
1487
1487
  }
1488
1488
  );
1489
- const x = M(!1), T = E(() => {
1489
+ const x = P(!1), T = E(() => {
1490
1490
  switch (a.mode) {
1491
1491
  case H.READ:
1492
1492
  return "";
@@ -1496,7 +1496,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Kt =
1496
1496
  return u("inventory.closing.template.update.title");
1497
1497
  }
1498
1498
  return "";
1499
- }), h = M();
1499
+ }), h = P();
1500
1500
  o({
1501
1501
  validateInputs: () => {
1502
1502
  var p, b;
@@ -1572,7 +1572,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Kt =
1572
1572
  const S = R("FmButton"), D = R("FmSideSheet");
1573
1573
  return k(), V(D, {
1574
1574
  modelValue: y(f),
1575
- "onUpdate:modelValue": b[2] || (b[2] = (P) => Oe(f) ? f.value = P : null),
1575
+ "onUpdate:modelValue": b[2] || (b[2] = (M) => Oe(f) ? f.value = M : null),
1576
1576
  "dismiss-away": "",
1577
1577
  "close-button": "",
1578
1578
  "max-width": 800
@@ -1589,7 +1589,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Kt =
1589
1589
  ref: h,
1590
1590
  onValidationSuccess: m,
1591
1591
  "model-value": v.value,
1592
- "onUpdate:modelValue": b[0] || (b[0] = (P) => v.value = P),
1592
+ "onUpdate:modelValue": b[0] || (b[0] = (M) => v.value = M),
1593
1593
  disabled: x.value,
1594
1594
  key: d.value
1595
1595
  }, null, 8, ["model-value", "disabled"]))
@@ -1605,7 +1605,7 @@ const Ot = { class: "flex flex-col gap-16 py-12" }, Yt = { class: "flex" }, Kt =
1605
1605
  disabled: x.value,
1606
1606
  variant: "tertiary",
1607
1607
  label: y(u)("common.close"),
1608
- onClick: b[1] || (b[1] = (P) => e("update:show", !1))
1608
+ onClick: b[1] || (b[1] = (M) => e("update:show", !1))
1609
1609
  }, null, 8, ["disabled", "label"])
1610
1610
  ])
1611
1611
  ]),
@@ -1630,7 +1630,7 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
1630
1630
  __name: "ClosingTemplatePublish",
1631
1631
  emits: ["close"],
1632
1632
  setup(c, { emit: o }) {
1633
- const l = M(!1), a = ne(), e = oe(), t = se(), { t: g } = z(), u = o;
1633
+ const l = P(!1), a = ne(), e = oe(), t = se(), { t: g } = z(), u = o;
1634
1634
  async function f() {
1635
1635
  l.value = !0;
1636
1636
  try {
@@ -1695,7 +1695,7 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
1695
1695
  ]),
1696
1696
  _: 1
1697
1697
  }),
1698
- Me(" Your recent publishing task is still pending (" + C(i.value.completed.length) + " / " + C(i.value.outlets.length) + "). Please wait until all publishing task has completed. ", 1)
1698
+ Pe(" Your recent publishing task is still pending (" + C(i.value.completed.length) + " / " + C(i.value.outlets.length) + "). Please wait until all publishing task has completed. ", 1)
1699
1699
  ])) : (k(), I("div", hn, [
1700
1700
  _("p", null, C(y(g)("inventory.closing.template.publish.noRecentActivity")), 1),
1701
1701
  _("p", null, C(y(g)("inventory.closing.template.publish.message")), 1)
@@ -1718,12 +1718,12 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
1718
1718
  ]);
1719
1719
  };
1720
1720
  }
1721
- }), In = { class: "flex-1 flex flex-col gap-8" }, Sn = { class: "flex flex-col" }, Dn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Mn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Fn = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Bn = /* @__PURE__ */ L({
1721
+ }), In = { class: "flex-1 flex flex-col gap-8" }, Sn = { class: "flex flex-col" }, Dn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Mn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Pn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Fn = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Bn = /* @__PURE__ */ L({
1722
1722
  __name: "ClosingTemplateView",
1723
1723
  setup(c) {
1724
1724
  const { t: o } = z(), { createTemplate: l, updateTemplate: a, exportTemplates: e, importTemplates: t } = re(), { templateDialogProps: g, templateDetailsProps: u } = Le(re()), f = ie(), i = te(), v = se(), d = ut(), { breakpoints: x } = gt();
1725
1725
  f.watchLocation(v.fetchTemplates);
1726
- const T = E(() => v.loading), h = M(""), s = E(() => x.value.xs || x.value.sm), r = E(() => s.value ? 10 : 20);
1726
+ const T = E(() => v.loading), h = P(""), s = E(() => x.value.xs || x.value.sm), r = E(() => s.value ? 10 : 20);
1727
1727
  function m(b) {
1728
1728
  switch (b) {
1729
1729
  case N.Add:
@@ -1828,7 +1828,7 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
1828
1828
  $(pt, {
1829
1829
  searchable: "",
1830
1830
  search: h.value,
1831
- "onUpdate:search": S[0] || (S[0] = (P) => h.value = P)
1831
+ "onUpdate:search": S[0] || (S[0] = (M) => h.value = M)
1832
1832
  }, null, 8, ["search"]),
1833
1833
  $(D, {
1834
1834
  style: Ye(y(d).tableHeight),
@@ -1836,12 +1836,12 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
1836
1836
  "row-data": y(v).templates,
1837
1837
  "search-value": h.value,
1838
1838
  loading: T.value,
1839
- onRowClick: S[1] || (S[1] = (P) => y(a)(P.original)),
1839
+ onRowClick: S[1] || (S[1] = (M) => y(a)(M.original)),
1840
1840
  "page-size": r.value
1841
1841
  }, {
1842
- "list-row": A((P) => [
1842
+ "list-row": A((M) => [
1843
1843
  $(Ve, {
1844
- row: P,
1844
+ row: M,
1845
1845
  onRowClick: (U) => y(a)(U)
1846
1846
  }, {
1847
1847
  default: A((U) => {
@@ -1855,18 +1855,18 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
1855
1855
  props: (ve = (W = U._id) == null ? void 0 : W.getContext) == null ? void 0 : ve.call(W)
1856
1856
  }, null, 8, ["render", "props"])
1857
1857
  ]),
1858
- _("div", Pn, [
1858
+ _("div", Mn, [
1859
1859
  $(y(O), {
1860
1860
  render: (he = (ye = (ge = U.name) == null ? void 0 : ge.column) == null ? void 0 : ye.columnDef) == null ? void 0 : he.cell,
1861
1861
  props: (be = (q = U.name) == null ? void 0 : q.getContext) == null ? void 0 : be.call(q)
1862
1862
  }, null, 8, ["render", "props"])
1863
1863
  ]),
1864
- _("div", null, C((_e = P.original.locations) != null && _e.length ? y(o)("inventory.closing.table.enabledForN", {
1865
- count: ((xe = P.original.locations) == null ? void 0 : xe.length) ?? 0
1864
+ _("div", null, C((_e = M.original.locations) != null && _e.length ? y(o)("inventory.closing.table.enabledForN", {
1865
+ count: ((xe = M.original.locations) == null ? void 0 : xe.length) ?? 0
1866
1866
  }) : y(o)("inventory.closing.table.enabledForAll")), 1),
1867
- _("div", Mn, C([
1868
- ...P.original.items.slice(0, 3).map((je) => je.sku.name),
1869
- ...P.original.items.length >= 3 ? [`and ${P.original.items.length - 3} more items`] : []
1867
+ _("div", Pn, C([
1868
+ ...M.original.items.slice(0, 3).map((je) => je.sku.name),
1869
+ ...M.original.items.length >= 3 ? [`and ${M.original.items.length - 3} more items`] : []
1870
1870
  ].join(", ")), 1),
1871
1871
  _("div", Fn, [
1872
1872
  $(y(O), {
@@ -1893,10 +1893,10 @@ const pn = /* @__PURE__ */ mt(un, [["render", dn]]), fn = { class: "flex flex-co
1893
1893
  ]),
1894
1894
  _: 1
1895
1895
  }, 8, ["title", "actions"]),
1896
- (k(), V(Ke, { to: "body" }, [
1897
- $(pn, Ge(Je(y(u))), null, 16),
1896
+ (k(), V(Ge, { to: "body" }, [
1897
+ $(pn, Ke(Je(y(u))), null, 16),
1898
1898
  $(mn, We(y(g), {
1899
- onSubmitted: S[2] || (S[2] = (P) => y(v).fetchTemplates())
1899
+ onSubmitted: S[2] || (S[2] = (M) => y(v).fetchTemplates())
1900
1900
  }), null, 16)
1901
1901
  ]))
1902
1902
  ], 64);
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as x, computed as f, ref as h, onMounted as g, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as _ } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { aE as y, ar as w } from "./app-DSCOQo53.js";
4
- const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, E = {
3
+ import { aB as y, ap as w } from "./app-Z-ylwRmy.js";
4
+ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
5
5
  key: 0,
6
6
  class: "subtitle"
7
- }, R = { class: "sub-header" }, S = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" }, U = { class: "purchase-body" }, B = { class: "text-left" }, H = { class: "text-left" }, L = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, J = { class: "text-right" }, j = { key: 0 }, z = {
7
+ }, S = { class: "sub-header" }, E = { class: "caption" }, T = { class: "address" }, q = { class: "text-right" }, F = { class: "sub-header" }, I = { class: "address" }, B = { class: "purchase-body" }, U = { class: "text-left" }, H = { class: "text-left" }, L = { class: "text-left" }, M = { class: "text-left" }, V = { class: "text-left" }, J = { class: "text-right" }, j = { key: 0 }, z = {
8
8
  key: 1,
9
9
  style: { "padding-top": "30px" }
10
10
  }, G = { valign: "bottom" }, Q = { class: "header" }, K = { class: "caption" }, W = {
@@ -63,7 +63,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
63
63
  ]),
64
64
  t("td", D, [
65
65
  l[8] || (l[8] = t("div", { class: "title" }, "Delivery Order", -1)),
66
- s.value.fulfillmentId ? (u(), i("div", E, "#" + e(s.value.fulfillmentId), 1)) : d("", !0),
66
+ s.value.fulfillmentId ? (u(), i("div", R, "#" + e(s.value.fulfillmentId), 1)) : d("", !0),
67
67
  t("div", null, e(s.value.createdAt), 1)
68
68
  ])
69
69
  ])
@@ -73,8 +73,8 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
73
73
  t("tr", null, [
74
74
  t("td", null, [
75
75
  l[13] || (l[13] = t("div", { class: "header" }, "Bill To", -1)),
76
- t("div", R, e(s.value.supplier.name), 1),
77
- t("div", S, e(s.value.supplier.registrationNumber), 1),
76
+ t("div", S, e(s.value.supplier.name), 1),
77
+ t("div", E, e(s.value.supplier.registrationNumber), 1),
78
78
  t("div", T, [
79
79
  n(e(s.value.supplier.line1), 1),
80
80
  l[10] || (l[10] = t("br", null, null, -1)),
@@ -106,7 +106,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
106
106
  ])
107
107
  ])
108
108
  ]),
109
- t("div", U, [
109
+ t("div", B, [
110
110
  t("table", null, [
111
111
  l[19] || (l[19] = t("thead", { class: "item-header" }, [
112
112
  t("tr", null, [
@@ -126,7 +126,7 @@ const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub
126
126
  ], -1)),
127
127
  t("tbody", null, [
128
128
  t("tr", null, [
129
- t("td", B, e(s.value.orderNumber), 1),
129
+ t("td", U, e(s.value.orderNumber), 1),
130
130
  t("td", H, e(s.value.ref), 1),
131
131
  t("td", L, e(s.value.supplier.phoneNumber), 1)
132
132
  ])
@@ -1,6 +1,6 @@
1
- import { defineComponent as m, resolveComponent as i, unref as l, openBlock as p, createElementBlock as d, renderSlot as t, createElementVNode as s, normalizeClass as u, createVNode as f } from "vue";
1
+ import { defineComponent as m, resolveComponent as i, unref as p, openBlock as l, createElementBlock as d, renderSlot as t, createElementVNode as s, normalizeClass as u, createVNode as f } from "vue";
2
2
  import { useCoreStore as _ } from "@feedmepos/mf-common";
3
- import { ar as v } from "./app-DSCOQo53.js";
3
+ import { ap as v } from "./app-Z-ylwRmy.js";
4
4
  const g = {
5
5
  key: 0,
6
6
  class: "group gap-8 inline-flex items-center relative select-none"
@@ -9,18 +9,18 @@ const g = {
9
9
  props: {
10
10
  class: { default: void 0 }
11
11
  },
12
- setup(r) {
13
- const n = r, a = _();
12
+ setup(n) {
13
+ const r = n, a = _();
14
14
  return (e, h) => {
15
15
  var o;
16
16
  const c = i("FmIcon");
17
- return (o = l(a).sessionUser.value) != null && o.role.isAdmin ? (p(), d("div", g, [
17
+ return (o = p(a).sessionUser.value) != null && o.role.isAdmin ? (l(), d("div", g, [
18
18
  t(e.$slots, "default", {}, void 0, !0),
19
19
  s("div", {
20
20
  class: u([
21
21
  "fm-admin-badge",
22
22
  "group-hover:opacity-20",
23
- n.class,
23
+ r.class,
24
24
  {
25
25
  absolute: !0,
26
26
  "bottom-[-5px] right-[-8px] px-4 h-[25px] w-[25px] border-2 border-red-800": !0