@feedmepos/mf-inventory-portal 1.2.63-dev.1 → 1.2.64

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 (124) hide show
  1. package/dist/{App-BHssUobV.js → App-apJIvz1w.js} +78 -82
  2. package/dist/{ApprovalView-DRGCQeGY.js → ApprovalView-CnT6gEI8.js} +5 -5
  3. package/dist/{BindingsDialog-CWl3LpdO.js → BindingsDialog-DLEGDbV2.js} +5 -5
  4. package/dist/{BindingsPicker-BcASw3JJ.js → BindingsPicker-1Xt1vCu9.js} +3 -3
  5. package/dist/{BindingsTable-BiKiLiVY.js → BindingsTable-_0cOM0Kx.js} +5 -5
  6. package/dist/{ClosingDraftView-mh5Kw46x.js → ClosingDraftView-DsVPsN87.js} +216 -217
  7. package/dist/{ClosingHistoryView-C-ZrFei9.js → ClosingHistoryView-YrEVWvGu.js} +36 -36
  8. package/dist/{ClosingTemplateView-DBNRH0Tt.js → ClosingTemplateView-DB3F1wul.js} +14 -14
  9. package/dist/{DeliveryOrderPrintPreview-Dv3JZ3yr.js → DeliveryOrderPrintPreview-CglCMgHc.js} +7 -7
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CfL1adhx.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-MMPTJodu.js} +16 -16
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Db0JeXbc.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CCID5O2Y.js} +2 -2
  12. package/dist/{FmMultiselectDialog-D9g07F_c.js → FmMultiselectDialog-B8xFmCsH.js} +1 -1
  13. package/dist/{FmMultiselectDialog-DuYKQng9.js → FmMultiselectDialog-lQM1qEEW.js} +16 -16
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CeXRT7Lf.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BLDz8wwK.js} +22 -23
  15. package/dist/{ImportView-DoMyJ1NE.js → ImportView-DeC-MPFn.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CqJQcOBK.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BGDZlmsr.js} +1 -1
  17. package/dist/{IngredientGroupView-D_Cl4kJy.js → IngredientGroupView-CuFwQ8Bo.js} +5 -5
  18. package/dist/{IngredientsView-CG6wUGzt.js → IngredientsView-CfloqEqn.js} +24 -25
  19. package/dist/{IntegrationView-BIWPp1JH.js → IntegrationView-CFU0yG6C.js} +17 -18
  20. package/dist/{InventoryBindingForm-BrL6-2He.js → InventoryBindingForm-i7eNurS2.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-M3uVquEq.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-zOo9YVJe.js} +16 -17
  22. package/dist/{InventoryBindingSummary-mnlQU1Mp.js → InventoryBindingSummary-BbHLCdjj.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ByPOKZRm.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-NEPqmkHR.js} +5 -5
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DHwXNoTs.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BDVHkTSE.js} +2 -2
  25. package/dist/{PublishView-B4iVMq25.js → PublishView-CbwCLtph.js} +8 -8
  26. package/dist/{PurchaseOrderPrintPreview-ws-SKrEC.js → PurchaseOrderPrintPreview-DLhgjhHB.js} +11 -11
  27. package/dist/{ReceiveRequestView-deSiORNX.js → ReceiveRequestView-CE2aQR-o.js} +435 -433
  28. package/dist/RecipeView-B-gmrXHR.js +646 -0
  29. package/dist/{StockView-6j_t2Kf1.js → StockView-BNe2_5bA.js} +105 -106
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CgAMsW8n.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D0BDdq4d.js} +1 -1
  31. package/dist/{SupplierView-D5tSOECx.js → SupplierView-wSzWjZLY.js} +19 -20
  32. package/dist/{SurchargeView-CP81Q4dW.js → SurchargeView-G8OyE60y.js} +6 -6
  33. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bmuw4PTO.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CROQL761.js} +2 -2
  34. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D1FuB-kv.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CwV2luel.js} +1 -1
  35. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Canrz2ri.js → TransferDetails.vue_vue_type_script_setup_true_lang-D1AGDeEP.js} +124 -124
  36. package/dist/{TransferTemplateView-CRI_Lexa.js → TransferTemplateView-CVfi8jsk.js} +21 -22
  37. package/dist/{UnitView-BZmfd-aw.js → UnitView-Dn3nuQHm.js} +10 -11
  38. package/dist/{WarehouseView-BcmSyjA0.js → WarehouseView-GSxQ_Ev2.js} +5 -5
  39. package/dist/{WastageTemplateView-CNsdu0ga.js → WastageTemplateView-BG-y48uc.js} +14 -14
  40. package/dist/api/inventory.d.ts +36 -126
  41. package/dist/api/netsuite.d.ts +1 -8
  42. package/dist/{app-ayv5Jw7D.js → app-CYbiMVcX.js} +7036 -8041
  43. package/dist/app.d.ts +0 -228
  44. package/dist/app.js +1 -1
  45. package/dist/{closing-template-D9UR8sMo.js → closing-template-Dq16W8vW.js} +1 -1
  46. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -37
  47. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +0 -14
  48. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -16
  49. package/dist/{date2-GNP-79dA.js → date2-De3BHKh5.js} +1 -1
  50. package/dist/{dayjs.min-Bg_wgP2J.js → dayjs.min-DxdfVXA-.js} +16 -16
  51. package/dist/{defineDeepModel-Co03tZfS.js → defineDeepModel-2n_afItE.js} +1 -1
  52. package/dist/{duplicate-template-BiPU4Z2Y.js → duplicate-template-DM7YIgor.js} +1 -1
  53. package/dist/{feature-BGeFfaiX.js → feature-_nNpSZuh.js} +89 -94
  54. package/dist/{format-time-from-id-ByV0VX1x.js → format-time-from-id-D5HSMsS-.js} +1 -1
  55. package/dist/{format-unit-display-r1Hb4DfH.js → format-unit-display-CQUFDxVm.js} +15 -16
  56. package/dist/{import-export.helper-PB9pPO3m.js → import-export.helper-BoxczUsX.js} +15 -16
  57. package/dist/{index-ClbYCYSU.js → index-B6nDUCCe.js} +3 -3
  58. package/dist/{index-DMqOVOHw.js → index-CdfF5GGW.js} +1 -1
  59. package/dist/{index-DWWlEK_r.js → index-Cp_mpu5S.js} +1412 -1471
  60. package/dist/{lodash-BbWPSHMM.js → lodash-2R7Rgorb.js} +1 -1
  61. package/dist/{netsuite-VGghPz8h.js → netsuite-Bss4fURp.js} +92 -92
  62. package/dist/{purchase-order-template-BMNxJR59.js → purchase-order-template-CBSvv0b2.js} +1 -1
  63. package/dist/router/name.d.ts +0 -1
  64. package/dist/rules-T-fs8_4_.js +327 -0
  65. package/dist/stock-CFWu5bRA.js +75 -0
  66. package/dist/{stock-b7nNc6ko.js → stock-DMX_hH5c.js} +1 -1
  67. package/dist/stores/feature.d.ts +0 -2
  68. package/dist/stores/integration/netsuite.d.ts +1 -8
  69. package/dist/stores/inventory.d.ts +30 -119
  70. package/dist/{supplier-Dm-bxVXL.js → supplier-Cf5HW15s.js} +2 -2
  71. package/dist/{surcharge-ZM-_XIvY.js → surcharge-CyReT8lG.js} +1 -1
  72. package/dist/tsconfig.app.tsbuildinfo +1 -1
  73. package/dist/{use-ingredient-select-dialog-BYxTRqif.js → use-ingredient-select-dialog-BCyydlHR.js} +2 -2
  74. package/dist/{use-inventory-binding-dialog-Dg9Mp0Vk.js → use-inventory-binding-dialog-WGQs-_2i.js} +2 -2
  75. package/dist/{use-template-enabled-locations-2-BmgcViqJ.js → use-template-enabled-locations-2-B0nlqUjb.js} +2 -2
  76. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -64
  77. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +24 -192
  78. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -8
  79. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +12 -96
  80. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +12 -96
  81. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
  82. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +0 -14
  83. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -32
  84. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -28
  85. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -8
  86. package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +2 -16
  87. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -33
  88. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -16
  89. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +4 -32
  90. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -8
  91. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +6 -41
  92. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +36 -246
  93. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +42 -287
  94. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +0 -16
  95. package/dist/views/stock/components/StockRecordCard.vue.d.ts +0 -1
  96. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -16
  97. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +2 -16
  98. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -16
  99. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +2 -16
  100. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -8
  101. package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +3 -24
  102. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +12 -96
  103. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +12 -96
  104. package/dist/{vue-i18n-BwxQzDKn.js → vue-i18n-DwS_fjo9.js} +510 -510
  105. package/dist/{xlsx-dJMIfias.js → xlsx-9MOvXxhT.js} +1 -1
  106. package/dist/{xlsx.util-dclbjq8C.js → xlsx.util-D1DdGA1N.js} +1 -1
  107. package/package.json +1 -1
  108. package/dist/RecipeView-EEK7PiKl.js +0 -1558
  109. package/dist/UnitCostHistoryView-CT-4QDK8.js +0 -651
  110. package/dist/api/unit-cost-history.d.ts +0 -28
  111. package/dist/number-DPuTdA-J.js +0 -232
  112. package/dist/rules-CyF-4tvp.js +0 -98
  113. package/dist/stock-D1SElOsp.js +0 -75
  114. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -169
  115. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +0 -43
  116. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +0 -25
  117. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +0 -125
  118. package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +0 -129
  119. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +0 -30
  120. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -4
  121. package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +0 -2
  122. package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +0 -19
  123. package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +0 -11
  124. package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +0 -65
@@ -1,34 +1,34 @@
1
- import { ref as B, onUnmounted as D, defineComponent as U, watch as C, onMounted as H, computed as P, resolveComponent as y, openBlock as g, createElementBlock as A, unref as b, createVNode as R, createElementVNode as v, toDisplayString as x, createBlock as M, createCommentVNode as W } from "vue";
2
- import { u as K, a as Y, R as e, m as _, g as a, b as F } from "./app-ayv5Jw7D.js";
3
- import { useCoreStore as O, useI18n as V } from "@feedmepos/mf-common";
4
- import { useRouter as w, useRoute as $ } from "vue-router";
5
- import { u as k } from "./feature-BGeFfaiX.js";
6
- import { u as j } from "./netsuite-VGghPz8h.js";
7
- import { u as z } from "./useTabStorage-BkIVScW_.js";
8
- import { u as Q } from "./googlemap-Dm8ERVai.js";
1
+ import { ref as B, onUnmounted as D, defineComponent as U, watch as C, onMounted as M, computed as P, resolveComponent as y, openBlock as R, createElementBlock as A, unref as T, createVNode as I, createElementVNode as v, toDisplayString as x, createBlock as F, createCommentVNode as W } from "vue";
2
+ import { u as K, a as $, R as e, m as E, g as r, b as H } from "./app-CYbiMVcX.js";
3
+ import { useCoreStore as w, useI18n as V } from "@feedmepos/mf-common";
4
+ import { useRouter as O, useRoute as j } from "vue-router";
5
+ import { u as k } from "./feature-_nNpSZuh.js";
6
+ import { u as z } from "./netsuite-Bss4fURp.js";
7
+ import { u as Q } from "./useTabStorage-BkIVScW_.js";
8
+ import { u as Y } from "./googlemap-Dm8ERVai.js";
9
9
  function q() {
10
10
  return {
11
11
  loadingHookInstalled: !1,
12
12
  isLoading: !1
13
13
  };
14
14
  }
15
- const I = B(q());
15
+ const g = B(q());
16
16
  function J() {
17
- const c = w();
18
- if (!I.value.loadingHookInstalled) {
19
- I.value.loadingHookInstalled = !0;
20
- const r = c.beforeEach(() => {
21
- I.value.isLoading = !0;
17
+ const c = O();
18
+ if (!g.value.loadingHookInstalled) {
19
+ g.value.loadingHookInstalled = !0;
20
+ const a = c.beforeEach(() => {
21
+ g.value.isLoading = !0;
22
22
  }), d = c.afterEach(() => {
23
- I.value.isLoading = !1;
23
+ g.value.isLoading = !1;
24
24
  });
25
25
  D(() => {
26
- I.value.loadingHookInstalled = !1, r(), d();
26
+ g.value.loadingHookInstalled = !1, a(), d();
27
27
  });
28
28
  }
29
29
  return {
30
30
  get isLoading() {
31
- return I.value.isLoading;
31
+ return g.value.isLoading;
32
32
  }
33
33
  };
34
34
  }
@@ -38,16 +38,16 @@ const X = {
38
38
  }, Z = {
39
39
  key: 1,
40
40
  class: "flex flex-col pt-[200px] gap-32 items-center"
41
- }, ee = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, te = { class: "fm-typo-en-title-lg-600" }, oe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ne = { class: "flex gap-16" }, ae = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, re = { href: "https://feedme.ai/form" }, le = /* @__PURE__ */ U({
41
+ }, ee = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, te = { class: "fm-typo-en-title-lg-600" }, oe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ne = { class: "flex gap-16" }, re = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ae = { href: "https://feedme.ai/form" }, le = /* @__PURE__ */ U({
42
42
  __name: "InventoryView",
43
43
  setup(c) {
44
- const r = K(), d = Y(), p = j(), l = O(), s = w(), m = J(), t = k(), { t: E } = V();
44
+ const a = K(), d = $(), p = z(), l = w(), s = O(), m = J(), t = k(), { t: _ } = V();
45
45
  C(
46
46
  [() => l.sessionUser.value, () => l.currentBusiness.value],
47
47
  ([u, i]) => {
48
48
  h(u, i);
49
49
  }
50
- ), H(async () => {
50
+ ), M(async () => {
51
51
  await t.init(), await l.readBusinesses();
52
52
  const u = l.sessionUser.value, i = l.currentBusiness.value;
53
53
  h(u, i);
@@ -56,36 +56,36 @@ const X = {
56
56
  !u || !i || N();
57
57
  }
58
58
  async function N() {
59
- return await r.init(), await p.readSetting().catch((u) => {
59
+ return await a.init(), await p.readSetting().catch((u) => {
60
60
  console.error("[all] error on reading netsuite store", u);
61
61
  }), await d.init();
62
62
  }
63
63
  const L = P(() => s.currentRoute.value.name === e.TRANSFER_TEMPLATE ? t.enablePoTemplate : s.currentRoute.value.name === e.INGREDIENT_GROUP ? t.enableIngredientGroup : !0);
64
64
  return (u, i) => {
65
65
  const S = y("FmSpacer"), G = y("FmCircularProgress"), o = y("FmButton"), n = y("RouterView");
66
- return g(), A("div", null, [
67
- b(m).isLoading ? (g(), A("div", X, [
68
- R(S),
66
+ return R(), A("div", null, [
67
+ T(m).isLoading ? (R(), A("div", X, [
68
+ I(S),
69
69
  v("div", null, [
70
- R(G, { size: "xl" })
70
+ I(G, { size: "xl" })
71
71
  ]),
72
72
  i[0] || (i[0] = v("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
73
- R(S)
74
- ])) : L.value ? b(l).sessionUser.value ? (g(), M(n, { key: 2 })) : W("", !0) : (g(), A("div", Z, [
73
+ I(S)
74
+ ])) : L.value ? T(l).sessionUser.value ? (R(), F(n, { key: 2 })) : W("", !0) : (R(), A("div", Z, [
75
75
  v("div", ee, [
76
- v("div", te, x(b(E)("inventory.common.proPlan.title")), 1),
77
- v("div", oe, x(b(E)("inventory.common.proPlan.subtitle")), 1)
76
+ v("div", te, x(T(_)("inventory.common.proPlan.title")), 1),
77
+ v("div", oe, x(T(_)("inventory.common.proPlan.subtitle")), 1)
78
78
  ]),
79
79
  v("div", ne, [
80
- v("a", ae, [
81
- R(o, {
82
- label: b(E)("inventory.common.proPlan.comparePlans"),
80
+ v("a", re, [
81
+ I(o, {
82
+ label: T(_)("inventory.common.proPlan.comparePlans"),
83
83
  variant: "secondary"
84
84
  }, null, 8, ["label"])
85
85
  ]),
86
- v("a", re, [
87
- R(o, {
88
- label: b(E)("inventory.common.proPlan.callUs"),
86
+ v("a", ae, [
87
+ I(o, {
88
+ label: T(_)("inventory.common.proPlan.callUs"),
89
89
  "prepend-icon": "call"
90
90
  }, null, 8, ["label"])
91
91
  ])
@@ -97,13 +97,13 @@ const X = {
97
97
  }), se = { class: "h-full flex flex-col overflow-auto py-16" }, ie = /* @__PURE__ */ U({
98
98
  __name: "NavigationTab",
99
99
  setup(c) {
100
- const r = _.object({
101
- label: _.string(),
102
- value: _.string().optional(),
103
- icon: _.string().optional(),
104
- hide: _.boolean().optional(),
105
- children: _.array(_.lazy(() => r)).optional()
106
- }), d = $(), p = w(), l = O(), s = k(), m = z(), { t } = V(), { isDev: E } = F();
100
+ const a = E.object({
101
+ label: E.string(),
102
+ value: E.string().optional(),
103
+ icon: E.string().optional(),
104
+ hide: E.boolean().optional(),
105
+ children: E.array(E.lazy(() => a)).optional()
106
+ }), d = j(), p = O(), l = w(), s = k(), m = Q(), { t } = V(), { isDev: _ } = H();
107
107
  C([() => l.currentBusiness.value, () => d.name], ([o, n]) => {
108
108
  (o == null ? void 0 : o.menuVersion) === "v3" && (n === e.INGREDIENTS || n === e.RECIPE || n === e.UNIT) && p.push({ name: e.STOCK });
109
109
  });
@@ -118,10 +118,10 @@ const X = {
118
118
  label: "Non-Production Environment",
119
119
  icon: "logo_dev",
120
120
  disabled: !0,
121
- hide: !E
121
+ hide: !_
122
122
  },
123
123
  {
124
- label: a(e.STOCK, t),
124
+ label: r(e.STOCK, t),
125
125
  // icon: 'inventory_2',
126
126
  children: [
127
127
  {
@@ -129,11 +129,7 @@ const X = {
129
129
  value: e.STOCK
130
130
  },
131
131
  {
132
- label: a(e.UNIT_COST_HISTORY, t),
133
- value: e.UNIT_COST_HISTORY
134
- },
135
- {
136
- label: a(e.WASTAGE_TEMPLATE, t),
132
+ label: r(e.WASTAGE_TEMPLATE, t),
137
133
  value: e.WASTAGE_TEMPLATE,
138
134
  hide: !s.enableWastageTemplate
139
135
  }
@@ -143,39 +139,39 @@ const X = {
143
139
  label: t("inventory.closing.title"),
144
140
  children: [
145
141
  {
146
- label: a(e.CLOSING_HISTORY, t),
142
+ label: r(e.CLOSING_HISTORY, t),
147
143
  value: e.CLOSING_HISTORY
148
144
  },
149
145
  {
150
- label: a(e.CLOSING_TEMPLATE, t),
146
+ label: r(e.CLOSING_TEMPLATE, t),
151
147
  value: e.CLOSING_TEMPLATE,
152
148
  hide: !s.enableClosingTemplate
153
149
  },
154
150
  {
155
- label: a(e.CLOSING_DRAFT, t),
151
+ label: r(e.CLOSING_DRAFT, t),
156
152
  value: e.CLOSING_DRAFT,
157
153
  hide: !s.enableClosingTemplate
158
154
  }
159
155
  ]
160
156
  },
161
157
  {
162
- label: a(e.INGREDIENTS, t),
158
+ label: r(e.INGREDIENTS, t),
163
159
  // icon: 'grocery',
164
160
  value: e.INGREDIENTS
165
161
  },
166
162
  {
167
- label: a(e.INGREDIENT_GROUP, t),
163
+ label: r(e.INGREDIENT_GROUP, t),
168
164
  // icon: 'grocery',
169
165
  value: e.INGREDIENT_GROUP,
170
166
  hide: !s.enableIngredientGroup
171
167
  },
172
168
  {
173
- label: a(e.RECIPE, t),
169
+ label: r(e.RECIPE, t),
174
170
  // icon: 'weight',
175
171
  value: e.RECIPE
176
172
  },
177
173
  {
178
- label: a(e.UNIT, t),
174
+ label: r(e.UNIT, t),
179
175
  // icon: 'fastfood',
180
176
  value: e.UNIT
181
177
  },
@@ -184,52 +180,52 @@ const X = {
184
180
  // icon: 'swap_horiz',
185
181
  children: [
186
182
  {
187
- label: a(e.RECEIVE_REQUEST, t),
183
+ label: r(e.RECEIVE_REQUEST, t),
188
184
  value: e.RECEIVE_REQUEST
189
185
  },
190
186
  {
191
- label: a(e.APPROVAL, t),
187
+ label: r(e.APPROVAL, t),
192
188
  value: e.APPROVAL
193
189
  },
194
190
  {
195
- label: a(e.SURCHARGE, t),
191
+ label: r(e.SURCHARGE, t),
196
192
  value: e.SURCHARGE,
197
193
  hide: !s.enableSurcharge
198
194
  },
199
195
  {
200
- label: a(e.TRANSFER_TEMPLATE, t),
196
+ label: r(e.TRANSFER_TEMPLATE, t),
201
197
  value: e.TRANSFER_TEMPLATE,
202
198
  hide: !s.enablePoTemplate
203
199
  }
204
200
  ]
205
201
  },
206
202
  {
207
- label: a(e.SUPPLIER, t),
203
+ label: r(e.SUPPLIER, t),
208
204
  // icon: 'group',
209
205
  value: e.SUPPLIER
210
206
  },
211
207
  {
212
- label: a(e.WAREHOUSE, t),
208
+ label: r(e.WAREHOUSE, t),
213
209
  // icon: 'warehouse',
214
210
  value: e.WAREHOUSE
215
211
  },
216
212
  {
217
- label: a(e.PUBLISH, t),
213
+ label: r(e.PUBLISH, t),
218
214
  value: e.PUBLISH
219
215
  },
220
216
  {
221
- label: a(e.IMPORT, t),
217
+ label: r(e.IMPORT, t),
222
218
  value: e.IMPORT,
223
219
  hide: !s.enableBulkImport
224
220
  },
225
221
  {
226
- label: a(e.INTEGRATION, t),
222
+ label: r(e.INTEGRATION, t),
227
223
  // icon: 'integration_instructions',
228
224
  value: e.INTEGRATION
229
225
  }
230
226
  ], n = N(h(o));
231
227
  return ((f = l.currentBusiness.value) == null ? void 0 : f.menuVersion) === "v3" ? n.filter(
232
- (T) => T.value !== e.INGREDIENTS && T.value !== e.RECIPE && T.value !== e.UNIT && T.value !== e.PUBLISH
228
+ (b) => b.value !== e.INGREDIENTS && b.value !== e.RECIPE && b.value !== e.UNIT && b.value !== e.PUBLISH
233
229
  ) : n;
234
230
  }), u = P({
235
231
  get() {
@@ -258,10 +254,10 @@ const X = {
258
254
  }, 2e3);
259
255
  }), (o, n) => {
260
256
  const f = y("FmCollapsibleTabs");
261
- return g(), A("div", se, [
262
- R(f, {
257
+ return R(), A("div", se, [
258
+ I(f, {
263
259
  modelValue: u.value,
264
- "onUpdate:modelValue": n[0] || (n[0] = (T) => u.value = T),
260
+ "onUpdate:modelValue": n[0] || (n[0] = (b) => u.value = b),
265
261
  items: L.value
266
262
  }, null, 8, ["modelValue", "items"])
267
263
  ]);
@@ -269,40 +265,40 @@ const X = {
269
265
  }
270
266
  });
271
267
  typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
272
- let c, r;
268
+ let c, a;
273
269
  return { promise: new Promise((p, l) => {
274
- c = p, r = l;
275
- }), resolve: c, reject: r };
270
+ c = p, a = l;
271
+ }), resolve: c, reject: a };
276
272
  });
277
273
  typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(c) {
278
- return await new Promise((r) => setTimeout(r, c)), Promise.resolve(this);
274
+ return await new Promise((a) => setTimeout(a, c)), Promise.resolve(this);
279
275
  });
280
- const Ee = /* @__PURE__ */ U({
276
+ const _e = /* @__PURE__ */ U({
281
277
  __name: "App",
282
278
  setup(c) {
283
- const r = O(), d = Q(), p = F();
284
- H(() => {
279
+ const a = w(), d = Y(), p = H();
280
+ M(() => {
285
281
  if (window.location.href.includes("print-preview")) {
286
- r.setEmbedded(!0), document.body.classList.add("print-mode");
282
+ a.setEmbedded(!0), document.body.classList.add("print-mode");
287
283
  return;
288
284
  }
289
- r.registerSidebarComponent(ie), d.initGoogleMap(p.appApi.googleMap).catch(() => {
285
+ a.registerSidebarComponent(ie), d.initGoogleMap(p.appApi.googleMap).catch(() => {
290
286
  console.error("Google map cannot be loaded");
291
287
  });
292
- }), C([() => r.currentCountry.value], () => {
288
+ }), C([() => a.currentCountry.value], () => {
293
289
  l();
294
290
  });
295
291
  async function l() {
296
292
  var s;
297
293
  try {
298
- await r.readBusinesses(), r.currentBusiness.value = (s = r.businesses.value) == null ? void 0 : s.find((m) => m);
294
+ await a.readBusinesses(), a.currentBusiness.value = (s = a.businesses.value) == null ? void 0 : s.find((m) => m);
299
295
  } catch (m) {
300
296
  console.error("error when trying to reset businesses:", m);
301
297
  }
302
298
  }
303
- return (s, m) => (g(), M(le));
299
+ return (s, m) => (R(), F(le));
304
300
  }
305
301
  });
306
302
  export {
307
- Ee as default
303
+ _e as default
308
304
  };
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as ue, ref as y, watch as ie, computed as d, resolveComponent as ce, openBlock as x, createBlock as X, unref as n, withCtx as P, createElementVNode as c, normalizeClass as pe, createVNode as i, normalizeStyle as de, toDisplayString as me, createElementBlock as fe, createCommentVNode as ve, Teleport as he, mergeProps as _e } from "vue";
2
- import { u as De, m as b } from "./app-ayv5Jw7D.js";
3
- import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Db0JeXbc.js";
4
- import { a as be, P as k, b as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-Canrz2ri.js";
5
- import { d as Z } from "./date2-GNP-79dA.js";
2
+ import { u as De, m as b } from "./app-CYbiMVcX.js";
3
+ import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CCID5O2Y.js";
4
+ import { a as be, P as k, b as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D1AGDeEP.js";
5
+ import { d as Z } from "./date2-De3BHKh5.js";
6
6
  import { u as Se, _ as xe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
7
7
  import { _ as Pe, F as O } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
8
8
  import { useBreakpoints as ke } from "@feedmepos/ui-library";
9
9
  import { useI18n as qe } from "@feedmepos/mf-common";
10
10
  import { P as we, J as Te } from "./app-DiX-EfV6.js";
11
- import { u as Ae } from "./netsuite-VGghPz8h.js";
11
+ import { u as Ae } from "./netsuite-Bss4fURp.js";
12
12
  const Ce = { class: "flex flex-col py-8" }, Ne = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Me = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Fe = {
13
13
  key: 0,
14
14
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
- import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-M3uVquEq.js";
3
- import { a as L, aj as S } from "./app-ayv5Jw7D.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-zOo9YVJe.js";
3
+ import { a as L, ai as S } from "./app-CYbiMVcX.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
7
- }, j = {
7
+ }, E = {
8
8
  key: 1,
9
9
  class: "p-24 flex items-center justify-center gap-16"
10
10
  }, D = /* @__PURE__ */ C({
11
11
  __name: "BindingsDialog",
12
- setup(E) {
12
+ setup(N) {
13
13
  const p = L(), d = o(!0), s = o(new Array()), u = o(), t = S(y);
14
14
  async function y() {
15
15
  await p.readInventory(), u.value = t.onMessage("props:inventory-bindings", (e) => {
@@ -53,7 +53,7 @@ const U = {
53
53
  ref_key: "resizeableRef",
54
54
  ref: m
55
55
  }, [
56
- d.value ? (i(), c("div", j, [
56
+ d.value ? (i(), c("div", E, [
57
57
  a(h, { size: "md" }),
58
58
  n[2] || (n[2] = P("div", null, "Loading bindings dialog...", -1))
59
59
  ])) : (i(), I(B, {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
- import { a as M } from "./FmMultiselectDialog-DuYKQng9.js";
3
- import { a as x, aj as z } from "./app-ayv5Jw7D.js";
2
+ import { a as M } from "./FmMultiselectDialog-lQM1qEEW.js";
3
+ import { a as x, ai as z } from "./app-CYbiMVcX.js";
4
4
  const F = {
5
5
  key: 0,
6
6
  class: "flex flex-col gap-16"
@@ -9,7 +9,7 @@ const F = {
9
9
  class: "p-24 flex items-center justify-center gap-16"
10
10
  }, A = /* @__PURE__ */ S({
11
11
  __name: "BindingsPicker",
12
- setup(j) {
12
+ setup(L) {
13
13
  const d = x(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
14
14
  label: s.name,
15
15
  sublabel: s.code,
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
2
- import { F as b, a as P, aj as R } from "./app-ayv5Jw7D.js";
3
- import "./dayjs.min-Bg_wgP2J.js";
2
+ import { F as b, a as P, ai as R } from "./app-CYbiMVcX.js";
3
+ import "./dayjs.min-DxdfVXA-.js";
4
4
  import "@feedmepos/ui-library";
5
5
  /* empty css */
6
6
  import "@feedmepos/mf-common";
7
7
  import "./app-DiX-EfV6.js";
8
- import "./lodash-BbWPSHMM.js";
8
+ import "./lodash-2R7Rgorb.js";
9
9
  const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
10
10
  __name: "binding-ui",
11
11
  props: {
@@ -66,7 +66,7 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
66
66
  ]);
67
67
  };
68
68
  }
69
- }), j = {
69
+ }), A = {
70
70
  key: 1,
71
71
  class: "p-24 flex items-center justify-center gap-16"
72
72
  }, W = /* @__PURE__ */ x({
@@ -103,7 +103,7 @@ const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-
103
103
  ref_key: "resizeableRef",
104
104
  ref: y
105
105
  }, [
106
- d.value ? (l(), u("div", j, [
106
+ d.value ? (l(), u("div", A, [
107
107
  w(B, { size: "md" }),
108
108
  o[0] || (o[0] = p("div", null, "Loading bindings table...", -1))
109
109
  ])) : (l(), M(T, {