@feedmepos/mf-inventory-portal 1.2.51-dev.1 → 1.2.51

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 (96) hide show
  1. package/dist/{App-bY_YcLwH.js → App-BJ_vKOR1.js} +70 -75
  2. package/dist/{ApprovalView-vzIiBqt2.js → ApprovalView-B_prTTtl.js} +34 -34
  3. package/dist/{BindingsDialog-DCh2ORem.js → BindingsDialog-BPuKgJIk.js} +2 -2
  4. package/dist/{BindingsPicker-DcNG03p-.js → BindingsPicker-Dv_cmEil.js} +2 -2
  5. package/dist/{BindingsTable-B_Yaq-z3.js → BindingsTable-BNSfYRfq.js} +4 -4
  6. package/dist/{ClosingDraftView-C0T8cWEB.js → ClosingDraftView-C78tcaJ3.js} +399 -413
  7. package/dist/{ClosingHistoryView-DkKAjh7T.js → ClosingHistoryView-DY8liEk3.js} +27 -27
  8. package/dist/{ClosingTemplateView-DpH1EyW5.js → ClosingTemplateView-pJXEcrjO.js} +17 -18
  9. package/dist/{DeliveryOrderPrintPreview-B2ecLaLu.js → DeliveryOrderPrintPreview-Bu_l-kxu.js} +1 -1
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dgibb-Fh.js +231 -0
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js} +12 -12
  12. package/dist/{FmMultiselectDialog-DGUwruxs.js → FmMultiselectDialog-C3iCMK5I.js} +1 -1
  13. package/dist/FmMultiselectDialog-CDONDKxE.js +598 -0
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CRTG3VFo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CefvebOx.js} +3 -3
  15. package/dist/{ImportView-Bk4Z7nGh.js → ImportView-JrenRgiI.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BEJ19Uej.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CSdxodp6.js} +1 -1
  17. package/dist/{IngredientGroupView-8GHMMOux.js → IngredientGroupView-aDFq_ZDh.js} +107 -108
  18. package/dist/{IngredientsView-DbmODx-v.js → IngredientsView-DSh3UqDg.js} +125 -126
  19. package/dist/{IntegrationView-DC0O_Lk4.js → IntegrationView-KhZ78uxM.js} +80 -80
  20. package/dist/{InventoryBindingForm-ln0q25n_.js → InventoryBindingForm-DZu0CZYh.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFgk9rSe.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-YuCn0irA.js} +21 -21
  22. package/dist/{InventoryBindingSummary-BlNXhS4v.js → InventoryBindingSummary-DZxLhZ_-.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BY_mXqPr.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DAwpZY3n.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BhNjwE3X.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CPDxwz-V.js} +2 -2
  25. package/dist/{PublishView-5GkTzxbi.js → PublishView-CLnQ7NBN.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-Dj5lJ5Ou.js → PurchaseOrderPrintPreview-DiBztBma.js} +1 -1
  27. package/dist/ReceiveRequestView-_TOSnDGJ.js +2913 -0
  28. package/dist/{RecipeView-OLPRwnVx.js → RecipeView-BPIMvoTw.js} +82 -83
  29. package/dist/{StockView-TcA5zJqr.js → StockView-CI8MUJay.js} +112 -113
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DZ6TDkKR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DEBHEMkh.js} +1 -1
  31. package/dist/{SupplierView-77qI9YCg.js → SupplierView-COihDMNY.js} +27 -28
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-_8YeihNH.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-D-c0Ayis.js} +2 -2
  33. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +162 -0
  34. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-ByPIjcED.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D8vbPlie.js} +13 -13
  35. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-7BoFD5wV.js → TransferDetails.vue_vue_type_script_setup_true_lang-BVuuw11z.js} +659 -658
  36. package/dist/{TransferTemplateView-CI0U36Tr.js → TransferTemplateView-B2NNfrEq.js} +81 -82
  37. package/dist/{UnitView-fNFFUNlb.js → UnitView-ZsbM07hw.js} +19 -20
  38. package/dist/{WarehouseView-BAXgnZnO.js → WarehouseView-Cd5RFu5v.js} +20 -21
  39. package/dist/{WastageTemplateView-C5qCXWqZ.js → WastageTemplateView-DpikyyZW.js} +164 -165
  40. package/dist/api/netsuite.d.ts +0 -8
  41. package/dist/{app-CddcvygU.js → app-CySQTQxj.js} +4410 -4513
  42. package/dist/app-uBuHtW8m.js +8127 -0
  43. package/dist/app.d.ts +0 -52
  44. package/dist/app.js +1 -1
  45. package/dist/{closing-template-DxdLqlb1.js → closing-template-DXGjC5AG.js} +1 -1
  46. package/dist/components/FmInventoryTableToolbar.vue.d.ts +0 -8
  47. package/dist/components/FmMultiselectDialogProps.d.ts +0 -5
  48. package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +2 -0
  49. package/dist/{date2-CVZy20Q_.js → date2-BWoUn1K_.js} +1 -1
  50. package/dist/{dayjs.min-NrRtjg32.js → dayjs.min-cMW8olEu.js} +26 -26
  51. package/dist/{decimal-Du3Grkk9.js → decimal-8BRzZQU6.js} +2 -2
  52. package/dist/{defineDeepModel-DgRoiQBp.js → defineDeepModel-AsUZ-DyW.js} +1 -1
  53. package/dist/{duplicate-template-DvnZ4BW6.js → duplicate-template-CyHfZR3S.js} +1 -1
  54. package/dist/{feature-CTA18HlL.js → feature-Dm0FnWf9.js} +6178 -8906
  55. package/dist/{format-time-from-id-6kt1RMWs.js → format-time-from-id-C9lmv5BP.js} +1 -1
  56. package/dist/{format-unit-display-mVJ-nuJe.js → format-unit-display-BV8pJisO.js} +11 -11
  57. package/dist/{import-export.helper-DWwlJy7N.js → import-export.helper-Djxw_H5S.js} +5 -5
  58. package/dist/{index-By-jyWOP.js → index-8hCa5_Gb.js} +1 -1
  59. package/dist/{index-BfcdagSF.js → index-D6u3kywf.js} +1 -1
  60. package/dist/{index-BEcj1jGd.js → index-DidYtgNc.js} +3 -3
  61. package/dist/{lodash-D0COOw3m.js → lodash-CW_Ea6mA.js} +1 -1
  62. package/dist/netsuite-BEto-z0v.js +5131 -0
  63. package/dist/{purchase-order-template-CJCmABzP.js → purchase-order-template-BTzjcgrO.js} +1 -1
  64. package/dist/router/name.d.ts +0 -1
  65. package/dist/{rules-hQBVd1Mn.js → rules-DkVWS5mF.js} +9 -9
  66. package/dist/{stock-4xGaezEy.js → stock-CHw8pI8V.js} +3 -3
  67. package/dist/{stock-B6QW-S14.js → stock-D8hLHgeN.js} +1 -1
  68. package/dist/stores/feature.d.ts +2 -4
  69. package/dist/stores/integration/netsuite.d.ts +0 -5
  70. package/dist/style.css +1 -1
  71. package/dist/{supplier-C-dmFnqw.js → supplier-Dv83IfQr.js} +2 -2
  72. package/dist/tsconfig.app.tsbuildinfo +1 -1
  73. package/dist/{use-ingredient-select-dialog-DgYSZDN8.js → use-ingredient-select-dialog-CJjd4g-6.js} +2 -2
  74. package/dist/{use-inventory-binding-dialog-CnYcA_Fo.js → use-inventory-binding-dialog-D4g79p5S.js} +2 -2
  75. package/dist/{use-template-enabled-locations-2-B_aZrMUU.js → use-template-enabled-locations-2-Cg2iqQdq.js} +2 -2
  76. package/dist/views/ingredients/helper/calculate-default-cost.d.ts +9 -0
  77. package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +22 -0
  78. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +0 -714
  79. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -8
  80. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  81. package/dist/{vue-i18n-BCEDBY4T.js → vue-i18n-kUcLfpvT.js} +563 -563
  82. package/dist/{xlsx-CJsXiiEq.js → xlsx-BjeMbhDF.js} +398 -398
  83. package/dist/{xlsx.util-CSudzOii.js → xlsx.util-9eMlJfd9.js} +1 -1
  84. package/package.json +5 -5
  85. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CI4z5XYQ.js +0 -188
  86. package/dist/FmMultiselectDialog-BviFuAM5.js +0 -618
  87. package/dist/ReceiveRequestView-BAYczSpW.js +0 -2913
  88. package/dist/SurchargeView-CxW2ZZ8a.js +0 -460
  89. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +0 -84
  90. package/dist/api/surcharge.d.ts +0 -31
  91. package/dist/app-DiX-EfV6.js +0 -8167
  92. package/dist/component-DpCUABT3.js +0 -82
  93. package/dist/netsuite-3LgQ5ztL.js +0 -5402
  94. package/dist/stores/surcharge.d.ts +0 -18
  95. package/dist/surcharge-Db4IiSEQ.js +0 -71
  96. package/dist/views/surcharge/SurchargeView.vue.d.ts +0 -2
@@ -1,9 +1,9 @@
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-CddcvygU.js";
3
- import { useCoreStore as w, useI18n as V } from "@feedmepos/mf-common";
1
+ import { ref as B, onUnmounted as D, defineComponent as w, watch as L, onMounted as M, computed as P, resolveComponent as y, openBlock as R, createElementBlock as A, unref as T, createVNode as g, 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 _, g as a, b as V } from "./app-CySQTQxj.js";
3
+ import { useCoreStore as U, useI18n as k } from "@feedmepos/mf-common";
4
4
  import { useRouter as O, useRoute as j } from "vue-router";
5
- import { u as k } from "./feature-CTA18HlL.js";
6
- import { u as z } from "./netsuite-3LgQ5ztL.js";
5
+ import { u as H } from "./feature-Dm0FnWf9.js";
6
+ import { u as z } from "./netsuite-BEto-z0v.js";
7
7
  import { u as Q } from "./useTabStorage-BkIVScW_.js";
8
8
  import { u as Y } from "./googlemap-Dm8ERVai.js";
9
9
  function q() {
@@ -12,23 +12,23 @@ function q() {
12
12
  isLoading: !1
13
13
  };
14
14
  }
15
- const g = B(q());
15
+ const I = B(q());
16
16
  function J() {
17
17
  const c = O();
18
- if (!g.value.loadingHookInstalled) {
19
- g.value.loadingHookInstalled = !0;
20
- const a = c.beforeEach(() => {
21
- g.value.isLoading = !0;
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,11 +38,11 @@ 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" }, re = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ae = { href: "https://feedme.ai/form" }, le = /* @__PURE__ */ w({
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();
45
- C(
44
+ const r = K(), d = $(), p = z(), l = U(), s = O(), m = J(), t = H(), { t: E } = k();
45
+ L(
46
46
  [() => l.sessionUser.value, () => l.currentBusiness.value],
47
47
  ([u, i]) => {
48
48
  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
- const L = P(() => s.currentRoute.value.name === e.TRANSFER_TEMPLATE ? t.enablePoTemplate : s.currentRoute.value.name === e.INGREDIENT_GROUP ? t.enableIngredientGroup : !0);
63
+ const C = 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
66
  return R(), A("div", null, [
67
67
  T(m).isLoading ? (R(), A("div", X, [
68
- I(S),
68
+ g(S),
69
69
  v("div", null, [
70
- I(G, { size: "xl" })
70
+ g(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
+ g(S)
74
+ ])) : C.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(T(_)("inventory.common.proPlan.title")), 1),
77
- v("div", oe, x(T(_)("inventory.common.proPlan.subtitle")), 1)
76
+ v("div", te, x(T(E)("inventory.common.proPlan.title")), 1),
77
+ v("div", oe, x(T(E)("inventory.common.proPlan.subtitle")), 1)
78
78
  ]),
79
79
  v("div", ne, [
80
80
  v("a", re, [
81
- I(o, {
82
- label: T(_)("inventory.common.proPlan.comparePlans"),
81
+ g(o, {
82
+ label: T(E)("inventory.common.proPlan.comparePlans"),
83
83
  variant: "secondary"
84
84
  }, null, 8, ["label"])
85
85
  ]),
86
86
  v("a", ae, [
87
- I(o, {
88
- label: T(_)("inventory.common.proPlan.callUs"),
87
+ g(o, {
88
+ label: T(E)("inventory.common.proPlan.callUs"),
89
89
  "prepend-icon": "call"
90
90
  }, null, 8, ["label"])
91
91
  ])
@@ -94,34 +94,34 @@ const X = {
94
94
  ]);
95
95
  };
96
96
  }
97
- }), se = { class: "h-full flex flex-col overflow-auto py-16" }, ie = /* @__PURE__ */ U({
97
+ }), se = { class: "h-full flex flex-col overflow-auto py-16" }, ie = /* @__PURE__ */ w({
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();
107
- C([() => l.currentBusiness.value, () => d.name], ([o, n]) => {
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 = j(), p = O(), l = U(), s = H(), m = Q(), { t } = k(), { isDev: E } = V();
107
+ L([() => 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
  });
110
110
  const h = (o) => o.filter((n) => !n.hide).map((n) => n.children ? { ...n, children: h(n.children) } : n), N = (o) => o.map((n) => {
111
111
  delete n.hide;
112
112
  const f = n;
113
113
  return n.children && (f.children = N(n.children)), f;
114
- }), L = P(() => {
114
+ }), C = P(() => {
115
115
  var f;
116
116
  const o = [
117
117
  {
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,7 @@ const X = {
129
129
  value: e.STOCK
130
130
  },
131
131
  {
132
- label: r(e.WASTAGE_TEMPLATE, t),
132
+ label: a(e.WASTAGE_TEMPLATE, t),
133
133
  value: e.WASTAGE_TEMPLATE,
134
134
  hide: !s.enableWastageTemplate
135
135
  }
@@ -139,39 +139,39 @@ const X = {
139
139
  label: t("inventory.closing.title"),
140
140
  children: [
141
141
  {
142
- label: r(e.CLOSING_HISTORY, t),
142
+ label: a(e.CLOSING_HISTORY, t),
143
143
  value: e.CLOSING_HISTORY
144
144
  },
145
145
  {
146
- label: r(e.CLOSING_TEMPLATE, t),
146
+ label: a(e.CLOSING_TEMPLATE, t),
147
147
  value: e.CLOSING_TEMPLATE,
148
148
  hide: !s.enableClosingTemplate
149
149
  },
150
150
  {
151
- label: r(e.CLOSING_DRAFT, t),
151
+ label: a(e.CLOSING_DRAFT, t),
152
152
  value: e.CLOSING_DRAFT,
153
153
  hide: !s.enableClosingTemplate
154
154
  }
155
155
  ]
156
156
  },
157
157
  {
158
- label: r(e.INGREDIENTS, t),
158
+ label: a(e.INGREDIENTS, t),
159
159
  // icon: 'grocery',
160
160
  value: e.INGREDIENTS
161
161
  },
162
162
  {
163
- label: r(e.INGREDIENT_GROUP, t),
163
+ label: a(e.INGREDIENT_GROUP, t),
164
164
  // icon: 'grocery',
165
165
  value: e.INGREDIENT_GROUP,
166
166
  hide: !s.enableIngredientGroup
167
167
  },
168
168
  {
169
- label: r(e.RECIPE, t),
169
+ label: a(e.RECIPE, t),
170
170
  // icon: 'weight',
171
171
  value: e.RECIPE
172
172
  },
173
173
  {
174
- label: r(e.UNIT, t),
174
+ label: a(e.UNIT, t),
175
175
  // icon: 'fastfood',
176
176
  value: e.UNIT
177
177
  },
@@ -180,46 +180,41 @@ const X = {
180
180
  // icon: 'swap_horiz',
181
181
  children: [
182
182
  {
183
- label: r(e.RECEIVE_REQUEST, t),
183
+ label: a(e.RECEIVE_REQUEST, t),
184
184
  value: e.RECEIVE_REQUEST
185
185
  },
186
186
  {
187
- label: r(e.APPROVAL, t),
187
+ label: a(e.APPROVAL, t),
188
188
  value: e.APPROVAL
189
189
  },
190
190
  {
191
- label: r(e.SURCHARGE, t),
192
- value: e.SURCHARGE,
193
- hide: !s.enableSurcharge
194
- },
195
- {
196
- label: r(e.TRANSFER_TEMPLATE, t),
191
+ label: a(e.TRANSFER_TEMPLATE, t),
197
192
  value: e.TRANSFER_TEMPLATE,
198
193
  hide: !s.enablePoTemplate
199
194
  }
200
195
  ]
201
196
  },
202
197
  {
203
- label: r(e.SUPPLIER, t),
198
+ label: a(e.SUPPLIER, t),
204
199
  // icon: 'group',
205
200
  value: e.SUPPLIER
206
201
  },
207
202
  {
208
- label: r(e.WAREHOUSE, t),
203
+ label: a(e.WAREHOUSE, t),
209
204
  // icon: 'warehouse',
210
205
  value: e.WAREHOUSE
211
206
  },
212
207
  {
213
- label: r(e.PUBLISH, t),
208
+ label: a(e.PUBLISH, t),
214
209
  value: e.PUBLISH
215
210
  },
216
211
  {
217
- label: r(e.IMPORT, t),
212
+ label: a(e.IMPORT, t),
218
213
  value: e.IMPORT,
219
214
  hide: !s.enableBulkImport
220
215
  },
221
216
  {
222
- label: r(e.INTEGRATION, t),
217
+ label: a(e.INTEGRATION, t),
223
218
  // icon: 'integration_instructions',
224
219
  value: e.INTEGRATION
225
220
  }
@@ -248,50 +243,50 @@ const X = {
248
243
  S.value = o, o || m.setItem(i.value, "true");
249
244
  }
250
245
  });
251
- return C([() => i.value], () => {
246
+ return L([() => i.value], () => {
252
247
  S.value = !1, setTimeout(() => {
253
248
  G.value = !m.getItem(i.value);
254
249
  }, 2e3);
255
250
  }), (o, n) => {
256
251
  const f = y("FmCollapsibleTabs");
257
252
  return R(), A("div", se, [
258
- I(f, {
253
+ g(f, {
259
254
  modelValue: u.value,
260
255
  "onUpdate:modelValue": n[0] || (n[0] = (b) => u.value = b),
261
- items: L.value
256
+ items: C.value
262
257
  }, null, 8, ["modelValue", "items"])
263
258
  ]);
264
259
  };
265
260
  }
266
261
  });
267
262
  typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
268
- let c, a;
263
+ let c, r;
269
264
  return { promise: new Promise((p, l) => {
270
- c = p, a = l;
271
- }), resolve: c, reject: a };
265
+ c = p, r = l;
266
+ }), resolve: c, reject: r };
272
267
  });
273
268
  typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(c) {
274
- return await new Promise((a) => setTimeout(a, c)), Promise.resolve(this);
269
+ return await new Promise((r) => setTimeout(r, c)), Promise.resolve(this);
275
270
  });
276
- const _e = /* @__PURE__ */ U({
271
+ const Ee = /* @__PURE__ */ w({
277
272
  __name: "App",
278
273
  setup(c) {
279
- const a = w(), d = Y(), p = H();
274
+ const r = U(), d = Y(), p = V();
280
275
  M(() => {
281
276
  if (window.location.href.includes("print-preview")) {
282
- a.setEmbedded(!0), document.body.classList.add("print-mode");
277
+ r.setEmbedded(!0), document.body.classList.add("print-mode");
283
278
  return;
284
279
  }
285
- a.registerSidebarComponent(ie), d.initGoogleMap(p.appApi.googleMap).catch(() => {
280
+ r.registerSidebarComponent(ie), d.initGoogleMap(p.appApi.googleMap).catch(() => {
286
281
  console.error("Google map cannot be loaded");
287
282
  });
288
- }), C([() => a.currentCountry.value], () => {
283
+ }), L([() => r.currentCountry.value], () => {
289
284
  l();
290
285
  });
291
286
  async function l() {
292
287
  var s;
293
288
  try {
294
- await a.readBusinesses(), a.currentBusiness.value = (s = a.businesses.value) == null ? void 0 : s.find((m) => m);
289
+ await r.readBusinesses(), r.currentBusiness.value = (s = r.businesses.value) == null ? void 0 : s.find((m) => m);
295
290
  } catch (m) {
296
291
  console.error("error when trying to reset businesses:", m);
297
292
  }
@@ -300,5 +295,5 @@ const _e = /* @__PURE__ */ U({
300
295
  }
301
296
  });
302
297
  export {
303
- _e as default
298
+ Ee as default
304
299
  };
@@ -1,32 +1,32 @@
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-CddcvygU.js";
3
- import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js";
4
- import { u as be, P as k, a as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-7BoFD5wV.js";
5
- import { d as Z } from "./date2-CVZy20Q_.js";
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 k, 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-CySQTQxj.js";
3
+ import { a as ge, _ as ye } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js";
4
+ import { u as be, P as q, a as Oe, _ as Re } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BVuuw11z.js";
5
+ import { d as Z } from "./date2-BWoUn1K_.js";
6
6
  import { u as Se, _ as xe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
7
- import { _ as Pe, F as O } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
8
- import { useBreakpoints as ke } from "@feedmepos/ui-library";
9
- import { useI18n as qe } from "@feedmepos/mf-common";
10
- import { P as we, J as Te } from "./app-DiX-EfV6.js";
11
- import { u as Ae } from "./netsuite-3LgQ5ztL.js";
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 = {
7
+ import { _ as ke, F as O } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js";
8
+ import { useBreakpoints as qe } from "@feedmepos/ui-library";
9
+ import { useI18n as we } from "@feedmepos/mf-common";
10
+ import { N as Pe, H as Ne } from "./app-uBuHtW8m.js";
11
+ import { u as Te } from "./netsuite-BEto-z0v.js";
12
+ const Ae = { class: "flex flex-col py-8" }, Ce = { 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"
15
15
  }, Le = { class: "pt-8" }, Xe = /* @__PURE__ */ ue({
16
16
  __name: "ApprovalView",
17
17
  setup(ze) {
18
- const a = be(k.APPROVAL), { columnDefs: I } = Oe(k.APPROVAL, a, a.shipments), B = De(), ee = Ae();
18
+ const a = be(q.APPROVAL), { columnDefs: I } = Oe(q.APPROVAL, a, a.shipments), B = De(), ee = Te();
19
19
  b.object({
20
20
  name: b.string().optional().nullable(),
21
21
  start: b.date().optional().nullable(),
22
22
  end: b.date().optional().nullable()
23
23
  });
24
- const q = y({
24
+ const w = y({
25
25
  name: "",
26
26
  ...ge()
27
27
  }), l = y({
28
- startDate: Z(q.value.start ?? /* @__PURE__ */ new Date()),
29
- endDate: Z(q.value.end ?? /* @__PURE__ */ new Date())
28
+ startDate: Z(w.value.start ?? /* @__PURE__ */ new Date()),
29
+ endDate: Z(w.value.end ?? /* @__PURE__ */ new Date())
30
30
  });
31
31
  ie([() => l.value.startDate], () => {
32
32
  if (!l.value.startDate)
@@ -42,9 +42,9 @@ const Ce = { class: "flex flex-col py-8" }, Ne = { class: "fm-typo-en-body-md-40
42
42
  }
43
43
  a.updateDateRange(l.value.startDate, l.value.endDate);
44
44
  });
45
- const R = y(""), { breakpoints: w } = ke(), S = d(() => w.value.xs || w.value.sm), te = d(() => S.value ? 10 : 20), ae = Se(), { t: T } = qe(), re = d(() => [
45
+ const R = y(""), { breakpoints: P } = qe(), S = d(() => P.value.xs || P.value.sm), te = d(() => S.value ? 10 : 20), ae = Se(), { t: N } = we(), re = d(() => [
46
46
  {
47
- label: T("inventory.common.refresh"),
47
+ label: N("inventory.common.refresh"),
48
48
  value: "refresh"
49
49
  }
50
50
  ]);
@@ -102,10 +102,10 @@ const Ce = { class: "flex flex-col py-8" }, Ne = { class: "fm-typo-en-body-md-40
102
102
  }), m = y(null), oe = d(() => {
103
103
  if (!m.value)
104
104
  return a.purchaseRequests.value;
105
- const u = we.build(m.value);
105
+ const u = Pe.build(m.value);
106
106
  return a.purchaseRequests.value.filter((s) => {
107
107
  var e, r, t, o, p;
108
- return Te(
108
+ return Ne(
109
109
  {
110
110
  netsuiteTransactionNumber: (r = (e = s.netSuite) == null ? void 0 : e.additionalInfo) == null ? void 0 : r.transactionnumber,
111
111
  netsuiteOrderNo: (t = s.netSuite) == null ? void 0 : t.refNo,
@@ -119,11 +119,11 @@ const Ce = { class: "flex flex-col py-8" }, Ne = { class: "fm-typo-en-body-md-40
119
119
  return (u, s) => {
120
120
  const e = ce("FmTable");
121
121
  return x(), X(xe, {
122
- title: n(T)("inventory.transfer.approval.title"),
122
+ title: n(N)("inventory.transfer.approval.title"),
123
123
  actions: re.value,
124
124
  "onClick:action": se
125
125
  }, {
126
- default: P(() => {
126
+ default: k(() => {
127
127
  var r;
128
128
  return [
129
129
  c("div", {
@@ -160,19 +160,19 @@ const Ce = { class: "flex flex-col py-8" }, Ne = { class: "fm-typo-en-body-md-40
160
160
  )),
161
161
  "page-size": te.value
162
162
  }, {
163
- "list-row": P((t) => [
164
- i(Pe, {
163
+ "list-row": k((t) => [
164
+ i(ke, {
165
165
  row: t,
166
166
  onRowClick: (o) => n(a).promptShowTransferDetails(o.purchaseOrder, o)
167
167
  }, {
168
- default: P((o) => {
169
- var p, A, C, f, N, M, V, F, v, L, z, h, $, _, E, Y, U, j, H, D, J, G, K, Q, g, W;
168
+ default: k((o) => {
169
+ var p, T, A, f, C, M, V, F, v, L, z, h, $, _, E, H, Y, U, j, D, G, J, K, Q, g, W;
170
170
  return [
171
- c("div", Ce, [
172
- c("div", Ne, [
171
+ c("div", Ae, [
172
+ c("div", Ce, [
173
173
  i(n(O), {
174
- render: (C = (A = (p = o.purchaseOrder__id) == null ? void 0 : p.column) == null ? void 0 : A.columnDef) == null ? void 0 : C.cell,
175
- props: (N = (f = o.purchaseOrder__id) == null ? void 0 : f.getContext) == null ? void 0 : N.call(f)
174
+ render: (A = (T = (p = o.purchaseOrder__id) == null ? void 0 : p.column) == null ? void 0 : T.columnDef) == null ? void 0 : A.cell,
175
+ props: (C = (f = o.purchaseOrder__id) == null ? void 0 : f.getContext) == null ? void 0 : C.call(f)
176
176
  }, null, 8, ["render", "props"])
177
177
  ]),
178
178
  c("div", Me, [
@@ -182,15 +182,15 @@ const Ce = { class: "flex flex-col py-8" }, Ne = { class: "fm-typo-en-body-md-40
182
182
  }, null, 8, ["render", "props"])
183
183
  ]),
184
184
  c("div", Ve, me((E = (_ = ($ = (h = (z = t.original.purchaseOrder) == null ? void 0 : z.items) == null ? void 0 : h.map) == null ? void 0 : $.call(h, (le) => `${le.name}`)) == null ? void 0 : _.join) == null ? void 0 : E.call(_, ", ")), 1),
185
- (Y = t.original.purchaseOrder) != null && Y.ref ? (x(), fe("div", Fe, [
185
+ (H = t.original.purchaseOrder) != null && H.ref ? (x(), fe("div", Fe, [
186
186
  i(n(O), {
187
- render: (H = (j = (U = o.purchaseOrder_ref) == null ? void 0 : U.column) == null ? void 0 : j.columnDef) == null ? void 0 : H.cell,
188
- props: (J = (D = o.purchaseOrder_ref) == null ? void 0 : D.getContext) == null ? void 0 : J.call(D)
187
+ render: (j = (U = (Y = o.purchaseOrder_ref) == null ? void 0 : Y.column) == null ? void 0 : U.columnDef) == null ? void 0 : j.cell,
188
+ props: (G = (D = o.purchaseOrder_ref) == null ? void 0 : D.getContext) == null ? void 0 : G.call(D)
189
189
  }, null, 8, ["render", "props"])
190
190
  ])) : ve("", !0),
191
191
  c("div", Le, [
192
192
  i(n(O), {
193
- render: (Q = (K = (G = o.purchaseOrder_status) == null ? void 0 : G.column) == null ? void 0 : K.columnDef) == null ? void 0 : Q.cell,
193
+ render: (Q = (K = (J = o.purchaseOrder_status) == null ? void 0 : J.column) == null ? void 0 : K.columnDef) == null ? void 0 : Q.cell,
194
194
  props: (W = (g = o.purchaseOrder_status) == null ? void 0 : g.getContext) == null ? void 0 : W.call(g)
195
195
  }, null, 8, ["render", "props"])
196
196
  ])
@@ -205,7 +205,7 @@ const Ce = { class: "flex flex-col py-8" }, Ne = { class: "fm-typo-en-body-md-40
205
205
  ], 2),
206
206
  (x(), X(he, { to: "body" }, [
207
207
  i(Re, _e({
208
- scope: n(k).APPROVAL
208
+ scope: n(q).APPROVAL
209
209
  }, {
210
210
  ...n(a).transferDetailsProps.value,
211
211
  receivedMap: ((r = n(a).transferDetailsProps.value) == null ? void 0 : r.receivedMap) ?? {},
@@ -1,6 +1,6 @@
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-CFgk9rSe.js";
3
- import { a as L, ai as S } from "./app-CddcvygU.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-YuCn0irA.js";
3
+ import { a as L, ai as S } from "./app-CySQTQxj.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -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-BviFuAM5.js";
3
- import { a as x, ai as z } from "./app-CddcvygU.js";
2
+ import { a as M } from "./FmMultiselectDialog-CDONDKxE.js";
3
+ import { a as x, ai as z } from "./app-CySQTQxj.js";
4
4
  const F = {
5
5
  key: 0,
6
6
  class: "flex flex-col gap-16"
@@ -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-CddcvygU.js";
3
- import "./dayjs.min-NrRtjg32.js";
2
+ import { F as b, a as P, ai as R } from "./app-CySQTQxj.js";
3
+ import "./dayjs.min-cMW8olEu.js";
4
4
  import "@feedmepos/ui-library";
5
5
  /* empty css */
6
6
  import "@feedmepos/mf-common";
7
- import "./app-DiX-EfV6.js";
8
- import "./lodash-D0COOw3m.js";
7
+ import "./app-uBuHtW8m.js";
8
+ import "./lodash-CW_Ea6mA.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: {