@feedmepos/mf-inventory-portal 1.2.60 → 1.2.61-dev.1

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-B6JtYLP4.js → App-Dj4TFhg1.js} +82 -78
  2. package/dist/{ApprovalView-fiHlFJKJ.js → ApprovalView-Cpbfph-H.js} +5 -5
  3. package/dist/{BindingsDialog-BlF79qCu.js → BindingsDialog-CUbU9tih.js} +5 -5
  4. package/dist/{BindingsPicker-BS2OcyII.js → BindingsPicker-CMlAGOJT.js} +3 -3
  5. package/dist/{BindingsTable-RyfzT4g6.js → BindingsTable-DvOE5QM2.js} +5 -5
  6. package/dist/{ClosingDraftView-B2d-XA_E.js → ClosingDraftView-DKv-ehO_.js} +217 -216
  7. package/dist/{ClosingHistoryView-DZPNorN6.js → ClosingHistoryView-DIl78iH9.js} +36 -36
  8. package/dist/{ClosingTemplateView-L596UQJH.js → ClosingTemplateView-DPDh_geQ.js} +14 -14
  9. package/dist/{DeliveryOrderPrintPreview-C82JPcVR.js → DeliveryOrderPrintPreview-Bi3xgagw.js} +7 -7
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CNf3PA0N.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B_5_SxUn.js} +17 -17
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-WWzwaGw-.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B3Kl8YBw.js} +2 -2
  12. package/dist/{FmMultiselectDialog-CcMB_4yD.js → FmMultiselectDialog-1IUxEPwt.js} +16 -16
  13. package/dist/{FmMultiselectDialog-DTLcPYaF.js → FmMultiselectDialog-BSOTemHV.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-ChqG8Av1.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BMK8Az4J.js} +23 -22
  15. package/dist/{ImportView-diTEPSKt.js → ImportView-CkitDDEU.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Cu-dNL-B.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DZUQavPo.js} +1 -1
  17. package/dist/{IngredientGroupView-CYqZOXH1.js → IngredientGroupView-ogDZwQFL.js} +5 -5
  18. package/dist/{IngredientsView-DoCTezXa.js → IngredientsView-B5AWPQhS.js} +25 -24
  19. package/dist/{IntegrationView-JboVfhvd.js → IntegrationView-DIx6B_wR.js} +18 -17
  20. package/dist/{InventoryBindingForm-B1MrDzRK.js → InventoryBindingForm-CAs2PaKF.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Br1hzlQ5.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-D62U_Ewm.js} +17 -16
  22. package/dist/{InventoryBindingSummary-B09SU9pE.js → InventoryBindingSummary-DNWMJUDR.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BX26mYQG.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-flGJ-4xe.js} +5 -5
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DIk5aP_6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CwcKHn69.js} +2 -2
  25. package/dist/{PublishView-BLu0VGTW.js → PublishView-IYCGQZF7.js} +8 -8
  26. package/dist/{PurchaseOrderPrintPreview-CFZX2Yen.js → PurchaseOrderPrintPreview-CQ-J1uJn.js} +11 -11
  27. package/dist/{ReceiveRequestView-DD0kz7x8.js → ReceiveRequestView-NOIHVxoI.js} +38 -37
  28. package/dist/RecipeView-KZV269Yw.js +1558 -0
  29. package/dist/{StockView-CJk1YeM_.js → StockView-F7oGArF7.js} +106 -105
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BFCjZO6S.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-j6pS_g4o.js} +1 -1
  31. package/dist/{SupplierView-CTEInwI-.js → SupplierView-DaDXVRF6.js} +20 -19
  32. package/dist/{SurchargeView-CKJ2LS9l.js → SurchargeView-CBkF-szL.js} +6 -6
  33. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DVhI5Qy6.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BDxbVt07.js} +2 -2
  34. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DjjLI4tM.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DnoutmMc.js} +1 -1
  35. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dte8E0MX.js → TransferDetails.vue_vue_type_script_setup_true_lang-B_u8kuNh.js} +13 -13
  36. package/dist/{TransferTemplateView-rmrQtfX8.js → TransferTemplateView-BlyMl_7M.js} +22 -21
  37. package/dist/UnitCostHistoryView-B6mco57v.js +651 -0
  38. package/dist/{UnitView-Drvo3Tew.js → UnitView-JRqgYWbI.js} +11 -10
  39. package/dist/{WarehouseView-DIBgCCzG.js → WarehouseView-Cb5Dj6f4.js} +5 -5
  40. package/dist/{WastageTemplateView-Cdvx4Ist.js → WastageTemplateView-DoyXkHM6.js} +14 -14
  41. package/dist/api/inventory.d.ts +126 -36
  42. package/dist/api/netsuite.d.ts +8 -1
  43. package/dist/api/unit-cost-history.d.ts +28 -0
  44. package/dist/{app-BQahEYX9.js → app-DMbbrEyL.js} +7671 -6666
  45. package/dist/app.d.ts +228 -0
  46. package/dist/app.js +1 -1
  47. package/dist/{closing-template-ByR8ktYf.js → closing-template-B68c4BCg.js} +1 -1
  48. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +37 -1
  49. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +14 -0
  50. package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -1
  51. package/dist/{date2-BTP8kRm1.js → date2-WSrIZrGN.js} +1 -1
  52. package/dist/{dayjs.min-1rxaqCQM.js → dayjs.min-BEzS3oNC.js} +16 -16
  53. package/dist/{defineDeepModel-BaJIlpWC.js → defineDeepModel-B7GuNHyt.js} +1 -1
  54. package/dist/{duplicate-template-XaB2svr5.js → duplicate-template-BTdZ25aR.js} +1 -1
  55. package/dist/{feature-Ce7hky70.js → feature-DJFFmYSS.js} +94 -89
  56. package/dist/{format-time-from-id-DwTuSEMw.js → format-time-from-id-BEqcrmTR.js} +1 -1
  57. package/dist/{format-unit-display-DviFIF9R.js → format-unit-display-DIqyPFuN.js} +16 -15
  58. package/dist/{import-export.helper-CyeFjIHv.js → import-export.helper-Dnvx2Wa0.js} +16 -15
  59. package/dist/{index-f1rjUE_a.js → index-BNBtrozQ.js} +1 -1
  60. package/dist/{index-CeTIFqwk.js → index-J3wFLjDN.js} +3 -3
  61. package/dist/{index-CC_ls9B4.js → index-dh2P5FKl.js} +1471 -1412
  62. package/dist/{lodash-Be4onxQF.js → lodash-DoqYeksT.js} +1 -1
  63. package/dist/{netsuite-CB9u725A.js → netsuite-C87QvoFY.js} +3 -3
  64. package/dist/number-nN9jCKom.js +232 -0
  65. package/dist/{purchase-order-template-DoBDYEtP.js → purchase-order-template-CbRmEHxi.js} +1 -1
  66. package/dist/router/name.d.ts +1 -0
  67. package/dist/rules-Dbz4JyZU.js +98 -0
  68. package/dist/stock-ChSl_QOD.js +75 -0
  69. package/dist/{stock-DjHGX36M.js → stock-DrdiXQFX.js} +1 -1
  70. package/dist/stores/feature.d.ts +2 -0
  71. package/dist/stores/integration/netsuite.d.ts +8 -1
  72. package/dist/stores/inventory.d.ts +119 -30
  73. package/dist/{supplier-BtZvsnMx.js → supplier-DWophRmk.js} +2 -2
  74. package/dist/{surcharge-CDGjoxGm.js → surcharge-Ds9TtpDs.js} +1 -1
  75. package/dist/tsconfig.app.tsbuildinfo +1 -1
  76. package/dist/{use-ingredient-select-dialog-l54ucmfp.js → use-ingredient-select-dialog-CPugamev.js} +2 -2
  77. package/dist/{use-inventory-binding-dialog-adxsJaIL.js → use-inventory-binding-dialog-Vj7T-h-w.js} +2 -2
  78. package/dist/{use-template-enabled-locations-2-CgWtnf8k.js → use-template-enabled-locations-2-DfKY5avH.js} +2 -2
  79. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +64 -8
  80. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +192 -24
  81. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +8 -1
  82. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +96 -12
  83. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +96 -12
  84. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
  85. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +14 -0
  86. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -4
  87. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +28 -0
  88. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +169 -0
  89. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +43 -0
  90. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +25 -0
  91. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +125 -0
  92. package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +129 -0
  93. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +30 -0
  94. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +4 -0
  95. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +8 -1
  96. package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +16 -2
  97. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +33 -5
  98. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +16 -2
  99. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +32 -4
  100. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
  101. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +41 -6
  102. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +246 -36
  103. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +287 -42
  104. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +16 -0
  105. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -0
  106. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +16 -2
  107. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +16 -2
  108. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +16 -2
  109. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +16 -2
  110. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -1
  111. package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +24 -3
  112. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -12
  113. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -12
  114. package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +2 -0
  115. package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +19 -0
  116. package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +11 -0
  117. package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +65 -0
  118. package/dist/{vue-i18n-CgWPe8oO.js → vue-i18n-Td4-wYd2.js} +497 -497
  119. package/dist/{xlsx-FLEhrhiP.js → xlsx-DFL__z5b.js} +398 -398
  120. package/dist/{xlsx.util-DoAD8sxa.js → xlsx.util-Bi7Vb-wa.js} +1 -1
  121. package/package.json +2 -2
  122. package/dist/RecipeView-Cg7v20hW.js +0 -646
  123. package/dist/rules-DZnC9R5E.js +0 -327
  124. package/dist/stock-DcXdnfU0.js +0 -75
@@ -1,34 +1,34 @@
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-BQahEYX9.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-Ce7hky70.js";
6
- import { u as z } from "./netsuite-CB9u725A.js";
7
- import { u as Q } from "./useTabStorage-BkIVScW_.js";
8
- import { u as Y } from "./googlemap-Dm8ERVai.js";
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-DMbbrEyL.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-DJFFmYSS.js";
6
+ import { u as j } from "./netsuite-C87QvoFY.js";
7
+ import { u as z } from "./useTabStorage-BkIVScW_.js";
8
+ import { u as Q } 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 g = B(q());
15
+ const I = B(q());
16
16
  function J() {
17
- const c = O();
18
- if (!g.value.loadingHookInstalled) {
19
- g.value.loadingHookInstalled = !0;
20
- const a = c.beforeEach(() => {
21
- g.value.isLoading = !0;
17
+ const c = w();
18
+ if (!I.value.loadingHookInstalled) {
19
+ I.value.loadingHookInstalled = !0;
20
+ const r = c.beforeEach(() => {
21
+ I.value.isLoading = !0;
22
22
  }), d = c.afterEach(() => {
23
- g.value.isLoading = !1;
23
+ I.value.isLoading = !1;
24
24
  });
25
25
  D(() => {
26
- g.value.loadingHookInstalled = !1, a(), d();
26
+ I.value.loadingHookInstalled = !1, r(), d();
27
27
  });
28
28
  }
29
29
  return {
30
30
  get isLoading() {
31
- return g.value.isLoading;
31
+ return I.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" }, re = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ae = { 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" }, ae = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, re = { href: "https://feedme.ai/form" }, le = /* @__PURE__ */ U({
42
42
  __name: "InventoryView",
43
43
  setup(c) {
44
- const a = K(), d = $(), p = z(), l = w(), s = O(), m = J(), t = k(), { t: _ } = V();
44
+ const r = K(), d = Y(), p = j(), l = O(), s = w(), m = J(), t = k(), { t: E } = V();
45
45
  C(
46
46
  [() => l.sessionUser.value, () => l.currentBusiness.value],
47
47
  ([u, i]) => {
48
48
  h(u, i);
49
49
  }
50
- ), M(async () => {
50
+ ), H(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 a.init(), await p.readSetting().catch((u) => {
59
+ return await r.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 R(), A("div", null, [
67
- T(m).isLoading ? (R(), A("div", X, [
68
- I(S),
66
+ return g(), A("div", null, [
67
+ b(m).isLoading ? (g(), A("div", X, [
68
+ R(S),
69
69
  v("div", null, [
70
- I(G, { size: "xl" })
70
+ R(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
- I(S)
74
- ])) : L.value ? T(l).sessionUser.value ? (R(), F(n, { key: 2 })) : W("", !0) : (R(), A("div", Z, [
73
+ R(S)
74
+ ])) : L.value ? b(l).sessionUser.value ? (g(), M(n, { key: 2 })) : W("", !0) : (g(), A("div", Z, [
75
75
  v("div", ee, [
76
- v("div", te, x(T(_)("inventory.common.proPlan.title")), 1),
77
- v("div", oe, x(T(_)("inventory.common.proPlan.subtitle")), 1)
76
+ v("div", te, x(b(E)("inventory.common.proPlan.title")), 1),
77
+ v("div", oe, x(b(E)("inventory.common.proPlan.subtitle")), 1)
78
78
  ]),
79
79
  v("div", ne, [
80
- v("a", re, [
81
- I(o, {
82
- label: T(_)("inventory.common.proPlan.comparePlans"),
80
+ v("a", ae, [
81
+ R(o, {
82
+ label: b(E)("inventory.common.proPlan.comparePlans"),
83
83
  variant: "secondary"
84
84
  }, null, 8, ["label"])
85
85
  ]),
86
- v("a", ae, [
87
- I(o, {
88
- label: T(_)("inventory.common.proPlan.callUs"),
86
+ v("a", re, [
87
+ R(o, {
88
+ label: b(E)("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 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();
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();
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: !_
121
+ hide: !E
122
122
  },
123
123
  {
124
- label: r(e.STOCK, t),
124
+ label: a(e.STOCK, t),
125
125
  // icon: 'inventory_2',
126
126
  children: [
127
127
  {
@@ -129,7 +129,11 @@ const X = {
129
129
  value: e.STOCK
130
130
  },
131
131
  {
132
- label: r(e.WASTAGE_TEMPLATE, t),
132
+ label: a(e.UNIT_COST_HISTORY, t),
133
+ value: e.UNIT_COST_HISTORY
134
+ },
135
+ {
136
+ label: a(e.WASTAGE_TEMPLATE, t),
133
137
  value: e.WASTAGE_TEMPLATE,
134
138
  hide: !s.enableWastageTemplate
135
139
  }
@@ -139,39 +143,39 @@ const X = {
139
143
  label: t("inventory.closing.title"),
140
144
  children: [
141
145
  {
142
- label: r(e.CLOSING_HISTORY, t),
146
+ label: a(e.CLOSING_HISTORY, t),
143
147
  value: e.CLOSING_HISTORY
144
148
  },
145
149
  {
146
- label: r(e.CLOSING_TEMPLATE, t),
150
+ label: a(e.CLOSING_TEMPLATE, t),
147
151
  value: e.CLOSING_TEMPLATE,
148
152
  hide: !s.enableClosingTemplate
149
153
  },
150
154
  {
151
- label: r(e.CLOSING_DRAFT, t),
155
+ label: a(e.CLOSING_DRAFT, t),
152
156
  value: e.CLOSING_DRAFT,
153
157
  hide: !s.enableClosingTemplate
154
158
  }
155
159
  ]
156
160
  },
157
161
  {
158
- label: r(e.INGREDIENTS, t),
162
+ label: a(e.INGREDIENTS, t),
159
163
  // icon: 'grocery',
160
164
  value: e.INGREDIENTS
161
165
  },
162
166
  {
163
- label: r(e.INGREDIENT_GROUP, t),
167
+ label: a(e.INGREDIENT_GROUP, t),
164
168
  // icon: 'grocery',
165
169
  value: e.INGREDIENT_GROUP,
166
170
  hide: !s.enableIngredientGroup
167
171
  },
168
172
  {
169
- label: r(e.RECIPE, t),
173
+ label: a(e.RECIPE, t),
170
174
  // icon: 'weight',
171
175
  value: e.RECIPE
172
176
  },
173
177
  {
174
- label: r(e.UNIT, t),
178
+ label: a(e.UNIT, t),
175
179
  // icon: 'fastfood',
176
180
  value: e.UNIT
177
181
  },
@@ -180,52 +184,52 @@ const X = {
180
184
  // icon: 'swap_horiz',
181
185
  children: [
182
186
  {
183
- label: r(e.RECEIVE_REQUEST, t),
187
+ label: a(e.RECEIVE_REQUEST, t),
184
188
  value: e.RECEIVE_REQUEST
185
189
  },
186
190
  {
187
- label: r(e.APPROVAL, t),
191
+ label: a(e.APPROVAL, t),
188
192
  value: e.APPROVAL
189
193
  },
190
194
  {
191
- label: r(e.SURCHARGE, t),
195
+ label: a(e.SURCHARGE, t),
192
196
  value: e.SURCHARGE,
193
197
  hide: !s.enableSurcharge
194
198
  },
195
199
  {
196
- label: r(e.TRANSFER_TEMPLATE, t),
200
+ label: a(e.TRANSFER_TEMPLATE, t),
197
201
  value: e.TRANSFER_TEMPLATE,
198
202
  hide: !s.enablePoTemplate
199
203
  }
200
204
  ]
201
205
  },
202
206
  {
203
- label: r(e.SUPPLIER, t),
207
+ label: a(e.SUPPLIER, t),
204
208
  // icon: 'group',
205
209
  value: e.SUPPLIER
206
210
  },
207
211
  {
208
- label: r(e.WAREHOUSE, t),
212
+ label: a(e.WAREHOUSE, t),
209
213
  // icon: 'warehouse',
210
214
  value: e.WAREHOUSE
211
215
  },
212
216
  {
213
- label: r(e.PUBLISH, t),
217
+ label: a(e.PUBLISH, t),
214
218
  value: e.PUBLISH
215
219
  },
216
220
  {
217
- label: r(e.IMPORT, t),
221
+ label: a(e.IMPORT, t),
218
222
  value: e.IMPORT,
219
223
  hide: !s.enableBulkImport
220
224
  },
221
225
  {
222
- label: r(e.INTEGRATION, t),
226
+ label: a(e.INTEGRATION, t),
223
227
  // icon: 'integration_instructions',
224
228
  value: e.INTEGRATION
225
229
  }
226
230
  ], n = N(h(o));
227
231
  return ((f = l.currentBusiness.value) == null ? void 0 : f.menuVersion) === "v3" ? n.filter(
228
- (b) => b.value !== e.INGREDIENTS && b.value !== e.RECIPE && b.value !== e.UNIT && b.value !== e.PUBLISH
232
+ (T) => T.value !== e.INGREDIENTS && T.value !== e.RECIPE && T.value !== e.UNIT && T.value !== e.PUBLISH
229
233
  ) : n;
230
234
  }), u = P({
231
235
  get() {
@@ -254,10 +258,10 @@ const X = {
254
258
  }, 2e3);
255
259
  }), (o, n) => {
256
260
  const f = y("FmCollapsibleTabs");
257
- return R(), A("div", se, [
258
- I(f, {
261
+ return g(), A("div", se, [
262
+ R(f, {
259
263
  modelValue: u.value,
260
- "onUpdate:modelValue": n[0] || (n[0] = (b) => u.value = b),
264
+ "onUpdate:modelValue": n[0] || (n[0] = (T) => u.value = T),
261
265
  items: L.value
262
266
  }, null, 8, ["modelValue", "items"])
263
267
  ]);
@@ -265,40 +269,40 @@ const X = {
265
269
  }
266
270
  });
267
271
  typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
268
- let c, a;
272
+ let c, r;
269
273
  return { promise: new Promise((p, l) => {
270
- c = p, a = l;
271
- }), resolve: c, reject: a };
274
+ c = p, r = l;
275
+ }), resolve: c, reject: r };
272
276
  });
273
277
  typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(c) {
274
- return await new Promise((a) => setTimeout(a, c)), Promise.resolve(this);
278
+ return await new Promise((r) => setTimeout(r, c)), Promise.resolve(this);
275
279
  });
276
- const _e = /* @__PURE__ */ U({
280
+ const Ee = /* @__PURE__ */ U({
277
281
  __name: "App",
278
282
  setup(c) {
279
- const a = w(), d = Y(), p = H();
280
- M(() => {
283
+ const r = O(), d = Q(), p = F();
284
+ H(() => {
281
285
  if (window.location.href.includes("print-preview")) {
282
- a.setEmbedded(!0), document.body.classList.add("print-mode");
286
+ r.setEmbedded(!0), document.body.classList.add("print-mode");
283
287
  return;
284
288
  }
285
- a.registerSidebarComponent(ie), d.initGoogleMap(p.appApi.googleMap).catch(() => {
289
+ r.registerSidebarComponent(ie), d.initGoogleMap(p.appApi.googleMap).catch(() => {
286
290
  console.error("Google map cannot be loaded");
287
291
  });
288
- }), C([() => a.currentCountry.value], () => {
292
+ }), C([() => r.currentCountry.value], () => {
289
293
  l();
290
294
  });
291
295
  async function l() {
292
296
  var s;
293
297
  try {
294
- await a.readBusinesses(), a.currentBusiness.value = (s = a.businesses.value) == null ? void 0 : s.find((m) => m);
298
+ await r.readBusinesses(), r.currentBusiness.value = (s = r.businesses.value) == null ? void 0 : s.find((m) => m);
295
299
  } catch (m) {
296
300
  console.error("error when trying to reset businesses:", m);
297
301
  }
298
302
  }
299
- return (s, m) => (R(), F(le));
303
+ return (s, m) => (g(), M(le));
300
304
  }
301
305
  });
302
306
  export {
303
- _e as default
307
+ Ee as default
304
308
  };
@@ -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-BQahEYX9.js";
3
- import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-WWzwaGw-.js";
4
- import { u as be, P as k, a as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-Dte8E0MX.js";
5
- import { d as Z } from "./date2-BTP8kRm1.js";
2
+ import { u as De, m as b } from "./app-DMbbrEyL.js";
3
+ import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B3Kl8YBw.js";
4
+ import { u as be, P as k, a as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-B_u8kuNh.js";
5
+ import { d as Z } from "./date2-WSrIZrGN.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-CB9u725A.js";
11
+ import { u as Ae } from "./netsuite-C87QvoFY.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-Br1hzlQ5.js";
3
- import { a as L, ai as S } from "./app-BQahEYX9.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-D62U_Ewm.js";
3
+ import { a as L, aj as S } from "./app-DMbbrEyL.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
7
- }, E = {
7
+ }, j = {
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(N) {
12
+ setup(E) {
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", E, [
56
+ d.value ? (i(), c("div", j, [
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-CcMB_4yD.js";
3
- import { a as x, ai as z } from "./app-BQahEYX9.js";
2
+ import { a as M } from "./FmMultiselectDialog-1IUxEPwt.js";
3
+ import { a as x, aj as z } from "./app-DMbbrEyL.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(L) {
12
+ setup(j) {
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, ai as R } from "./app-BQahEYX9.js";
3
- import "./dayjs.min-1rxaqCQM.js";
2
+ import { F as b, a as P, aj as R } from "./app-DMbbrEyL.js";
3
+ import "./dayjs.min-BEzS3oNC.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-Be4onxQF.js";
8
+ import "./lodash-DoqYeksT.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
- }), A = {
69
+ }), j = {
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", A, [
106
+ d.value ? (l(), u("div", j, [
107
107
  w(B, { size: "md" }),
108
108
  o[0] || (o[0] = p("div", null, "Loading bindings table...", -1))
109
109
  ])) : (l(), M(T, {