@feedmepos/mf-inventory-portal 0.0.23-dev.30 → 0.0.23-dev.4

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 (100) hide show
  1. package/dist/{App-Brc7GX7l.js → App-DReDvY0M.js} +73 -85
  2. package/dist/{ApprovalView-CMRd7pcC.js → ApprovalView-BMZlYmRk.js} +27 -24
  3. package/dist/{BindingsDialog-DoakDtFI.js → BindingsDialog-Y2K4I7H7.js} +4 -4
  4. package/dist/{BindingsPicker-BC3rjqKw.js → BindingsPicker-DKBq9c37.js} +9 -8
  5. package/dist/{BindingsTable-xKRvhEV5.js → BindingsTable-45v4SDfp.js} +22 -18
  6. package/dist/{ClosingTemplateView-DFxLuV8k.js → ClosingTemplateView-CKJVYSbj.js} +286 -272
  7. package/dist/FmDroppableField-8RzKjEdL.js +154 -0
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjGGEGQ9.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CMEOp-0r.js} +23 -22
  9. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js +436 -0
  10. package/dist/FmMultiselectDialog-D7YtdoyJ.js +415 -0
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DNEwc797.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C1DjyjyH.js} +49 -48
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DlM-xGKh.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-zjvFEF5C.js} +5 -5
  13. package/dist/{IngredientGroupView-C4bL0O5L.js → IngredientGroupView-BuP-HGeg.js} +69 -63
  14. package/dist/IngredientsView-DMRN-odY.js +1613 -0
  15. package/dist/{IntegrationView-aSAeFNtp.js → IntegrationView-kYCaKG0o.js} +95 -92
  16. package/dist/{InventoryBindingForm-C7rIUyV1.js → InventoryBindingForm-BXHq4h-n.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ba6WLcom.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js} +27 -25
  18. package/dist/{InventoryBindingSummary-Ix92wSE6.js → InventoryBindingSummary-Bjasfc_v.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-6BUIvm7C.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DM0C4raP.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Cd6LQ6Yz.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C3O3JebE.js} +24 -23
  21. package/dist/{PurchaseOrderPrintPreview-DJSF8YaR.js → PurchaseOrderPrintPreview-CmjkfTTS.js} +14 -13
  22. package/dist/{ReceiveRequestView-BUyShiP2.js → ReceiveRequestView-aQZJO8sq.js} +1302 -1325
  23. package/dist/{RecipeView-c0XB2_P8.js → RecipeView-DXO43tFi.js} +85 -79
  24. package/dist/{StockView-DNPNymCW.js → StockView-D9no-mrA.js} +1446 -1338
  25. package/dist/{SupplierView-Cz0hgito.js → SupplierView-DAx7E7sR.js} +787 -2325
  26. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js +1209 -0
  28. package/dist/TransferTemplateView-CfxdQF1t.js +1261 -0
  29. package/dist/{UnitView-BKWbaZfc.js → UnitView-CQPGZ8-r.js} +44 -40
  30. package/dist/{WarehouseView-BgE3teyT.js → WarehouseView-jy-RNCgy.js} +100 -94
  31. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  32. package/dist/api/closing.d.ts +0 -1
  33. package/dist/api/netsuite.d.ts +1 -1
  34. package/dist/app-KnSMkJBV.js +33496 -0
  35. package/dist/app.d.ts +0 -56
  36. package/dist/app.js +2 -2
  37. package/dist/components/FmMultiselectDialogProps.d.ts +0 -1
  38. package/dist/components/row-action.enum.d.ts +0 -1
  39. package/dist/composable/defineDeepModel.d.ts +1 -1
  40. package/dist/date2-CIeUqUIc.js +117 -0
  41. package/dist/dayjs.min-Df5jSnDJ.js +282 -0
  42. package/dist/{decimal-CZ3lFF__.js → decimal-BAc9M88Q.js} +1 -1
  43. package/dist/defineDeepModel-BfuQAIoM.js +13 -0
  44. package/dist/{feature-By_PNrnn.js → feature-dwB4OxRQ.js} +6 -12
  45. package/dist/format-time-from-id-BbvzyIN6.js +15 -0
  46. package/dist/{format-unit-display-ZlJT10zr.js → format-unit-display-BBWblJEt.js} +171 -162
  47. package/dist/fuzzy-B9ryZ9VZ.js +41 -0
  48. package/dist/index-BN0CY3sZ.js +22277 -0
  49. package/dist/index-Bj1fJum-.js +45 -0
  50. package/dist/index-C4yL_7rR.js +10545 -0
  51. package/dist/netsuite-ByWOS6tI.js +194 -0
  52. package/dist/normalizeArguments-DP7Hrren.js +1552 -0
  53. package/dist/router/name.d.ts +0 -2
  54. package/dist/row-action.enum-PMKMRrZR.js +50 -0
  55. package/dist/rules-C12nWDD1.js +198 -0
  56. package/dist/stores/feature.d.ts +0 -1
  57. package/dist/stores/integration/netsuite.d.ts +1 -69
  58. package/dist/stores/inventory.d.ts +4 -1
  59. package/dist/style.css +1 -1
  60. package/dist/{supplier-eaFF1izE.js → supplier-DJC0UZWv.js} +15 -15
  61. package/dist/tsconfig.app.tsbuildinfo +1 -1
  62. package/dist/{use-inventory-binding-dialog-14JW4t6q.js → use-inventory-binding-dialog-PEQbFRvO.js} +11 -10
  63. package/dist/use-template-enabled-locations-2-k9g5t8tt.js +86 -0
  64. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +192 -24
  65. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +193 -25
  66. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  67. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  68. package/dist/xlsx-B4XHad7S.js +24004 -0
  69. package/dist/xlsx.util-BSO4SHJi.js +78 -0
  70. package/package.json +3 -3
  71. package/dist/ClosingDraftView-DlaVbAHy.js +0 -1190
  72. package/dist/IngredientsView-CfS8FgxA.js +0 -1657
  73. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-ySR4KngR.js +0 -1227
  74. package/dist/TransferTemplateView-B7kzPdfT.js +0 -1264
  75. package/dist/api/adjustment-template.d.ts +0 -23
  76. package/dist/api/closing-draft.d.ts +0 -6
  77. package/dist/app-Bkg0JUKr.js +0 -84182
  78. package/dist/index-B4nO9Djl.js +0 -12087
  79. package/dist/stock-DNajb8lV.js +0 -125
  80. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +0 -2
  81. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +0 -18
  82. package/dist/views/adjustment-template/import/export.d.ts +0 -60
  83. package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +0 -2
  84. package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +0 -22
  85. package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +0 -6
  86. package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +0 -2
  87. package/dist/views/adjustment-template/wastage-template/actions.d.ts +0 -1295
  88. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +0 -16
  89. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +0 -35
  90. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +0 -20
  91. package/dist/views/adjustment-template/wastage-template/props.d.ts +0 -29
  92. package/dist/views/adjustment-template/wastage-template/table.d.ts +0 -1273
  93. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +0 -2
  94. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +0 -22
  95. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -621
  96. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +0 -25
  97. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -3621
  98. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +0 -1
  99. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +0 -19
  100. package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +0 -4
@@ -1,9 +1,11 @@
1
- import { ref as w, onUnmounted as F, defineComponent as h, watch as I, onMounted as G, computed as g, resolveComponent as R, openBlock as S, createElementBlock as b, unref as v, createVNode as E, createElementVNode as p, toDisplayString as x, createBlock as U, createCommentVNode as M } from "vue";
2
- import { u as k, a as D, b as H, R as e, g as r, _ as K, c as W } from "./app-Bkg0JUKr.js";
3
- import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
4
- import { useRouter as C, useRoute as $ } from "vue-router";
5
- import { u as O } from "./feature-By_PNrnn.js";
1
+ import { ref as L, onUnmounted as k, defineComponent as h, watch as b, onMounted as U, computed as R, resolveComponent as T, openBlock as S, createElementBlock as I, unref as v, createVNode as E, createElementVNode as p, toDisplayString as w, createBlock as B, createCommentVNode as F } from "vue";
2
+ import { u as M, a as D, R as e, g as s, b as H } from "./app-KnSMkJBV.js";
3
+ import { useCoreStore as x, useI18n as G } from "@feedmepos/mf-common";
4
+ import { useRouter as A, useRoute as K } from "vue-router";
5
+ import { u as V } from "./feature-dwB4OxRQ.js";
6
+ import { u as $ } from "./netsuite-ByWOS6tI.js";
6
7
  import { u as Q } from "./useTabStorage-BkIVScW_.js";
8
+ import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
9
  import { u as j } from "./googlemap-Dm8ERVai.js";
8
10
  import "./array-hChJVZLE.js";
9
11
  function z() {
@@ -12,9 +14,9 @@ function z() {
12
14
  isLoading: !1
13
15
  };
14
16
  }
15
- const _ = w(z());
17
+ const _ = L(z());
16
18
  function q() {
17
- const l = C();
19
+ const l = A();
18
20
  if (!_.value.loadingHookInstalled) {
19
21
  _.value.loadingHookInstalled = !0;
20
22
  const n = l.beforeEach(() => {
@@ -22,7 +24,7 @@ function q() {
22
24
  }), i = l.afterEach(() => {
23
25
  _.value.isLoading = !1;
24
26
  });
25
- F(() => {
27
+ k(() => {
26
28
  _.value.loadingHookInstalled = !1, n(), i();
27
29
  });
28
30
  }
@@ -38,54 +40,53 @@ const J = {
38
40
  }, X = {
39
41
  key: 1,
40
42
  class: "flex flex-col pt-[200px] gap-32 items-center"
41
- }, Y = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Z = { class: "fm-typo-en-title-lg-600" }, ee = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, te = { class: "flex gap-16" }, oe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ne = { href: "https://feedme.ai/form" }, se = /* @__PURE__ */ h({
43
+ }, Y = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Z = { class: "fm-typo-en-title-lg-600" }, ee = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, te = { class: "flex gap-16" }, oe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ne = { href: "https://feedme.ai/form" }, re = /* @__PURE__ */ h({
42
44
  __name: "InventoryView",
43
45
  setup(l) {
44
- const n = k(), i = D(), u = H(), a = A(), c = C(), o = q(), y = O(), { t: d } = B();
45
- I(
46
+ const n = M(), i = D(), u = $(), a = x(), c = A(), o = q(), y = V(), { t: f } = G();
47
+ b(
46
48
  [() => a.sessionUser.value, () => a.currentBusiness.value],
47
- ([t, s]) => {
48
- f(t, s);
49
+ ([t, r]) => {
50
+ d(t, r);
49
51
  }
50
- ), G(async () => {
51
- await a.readBusinesses();
52
- const t = a.sessionUser.value, s = a.currentBusiness.value;
53
- f(t, s);
52
+ ), U(() => {
53
+ const t = a.sessionUser.value, r = a.currentBusiness.value;
54
+ d(t, r);
54
55
  });
55
- function f(t, s) {
56
- !t || !s || T();
56
+ function d(t, r) {
57
+ !t || !r || g();
57
58
  }
58
- async function T() {
59
+ async function g() {
59
60
  return await n.init(), await u.readSetting().catch((t) => {
60
61
  console.error("error on reading netsuite store", t);
61
62
  }), await i.init();
62
63
  }
63
- const N = g(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? y.enablePoTemplate : !0);
64
- return (t, s) => {
65
- const m = R("FmSpacer"), P = R("FmCircularProgress"), L = R("FmButton"), V = R("RouterView");
66
- return S(), b("div", null, [
67
- v(o).isLoading ? (S(), b("div", J, [
64
+ const N = R(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? y.enablePoTemplate : !0);
65
+ return (t, r) => {
66
+ const m = T("FmSpacer"), P = T("FmCircularProgress"), C = T("FmButton"), O = T("RouterView");
67
+ return S(), I("div", null, [
68
+ v(o).isLoading ? (S(), I("div", J, [
68
69
  E(m),
69
70
  p("div", null, [
70
71
  E(P, { size: "xl" })
71
72
  ]),
72
- s[0] || (s[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
73
+ r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
73
74
  E(m)
74
- ])) : N.value ? v(a).sessionUser.value ? (S(), U(V, { key: 2 })) : M("", !0) : (S(), b("div", X, [
75
+ ])) : N.value ? v(a).sessionUser.value ? (S(), B(O, { key: 2 })) : F("", !0) : (S(), I("div", X, [
75
76
  p("div", Y, [
76
- p("div", Z, x(v(d)("inventory.common.proPlan.title")), 1),
77
- p("div", ee, x(v(d)("inventory.common.proPlan.subtitle")), 1)
77
+ p("div", Z, w(v(f)("inventory.common.proPlan.title")), 1),
78
+ p("div", ee, w(v(f)("inventory.common.proPlan.subtitle")), 1)
78
79
  ]),
79
80
  p("div", te, [
80
81
  p("a", oe, [
81
- E(L, {
82
- label: v(d)("inventory.common.proPlan.comparePlans"),
82
+ E(C, {
83
+ label: v(f)("inventory.common.proPlan.comparePlans"),
83
84
  variant: "secondary"
84
85
  }, null, 8, ["label"])
85
86
  ]),
86
87
  p("a", ne, [
87
- E(L, {
88
- label: v(d)("inventory.common.proPlan.callUs"),
88
+ E(C, {
89
+ label: v(f)("inventory.common.proPlan.callUs"),
89
90
  "prepend-icon": "call"
90
91
  }, null, 8, ["label"])
91
92
  ])
@@ -94,18 +95,18 @@ const J = {
94
95
  ]);
95
96
  };
96
97
  }
97
- }), re = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
98
+ }), se = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
98
99
  __name: "NavigationTab",
99
100
  setup(l) {
100
- const n = $(), i = C(), u = A(), a = O(), c = Q(), { t: o } = B();
101
- I([() => u.currentBusiness.value, () => n.name], ([t, s]) => {
102
- (t == null ? void 0 : t.menuVersion) === "v3" && (s === e.INGREDIENTS || s === e.RECIPE || s === e.UNIT) && i.push({ name: e.STOCK });
101
+ const n = K(), i = A(), u = x(), a = V(), c = Q(), { t: o } = G();
102
+ b([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
103
+ (t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
103
104
  });
104
- const y = g(() => {
105
- var s;
105
+ const y = R(() => {
106
+ var r;
106
107
  const t = [
107
108
  {
108
- label: r(e.STOCK, o),
109
+ label: s(e.STOCK, o),
109
110
  // icon: 'inventory_2',
110
111
  children: [
111
112
  {
@@ -113,41 +114,28 @@ const J = {
113
114
  value: e.STOCK
114
115
  },
115
116
  {
116
- label: r(e.WASTAGE_TEMPLATE, o),
117
- value: e.WASTAGE_TEMPLATE
118
- }
119
- ]
120
- },
121
- {
122
- label: "Closing",
123
- children: [
124
- {
125
- label: r(e.CLOSING_TEMPLATE, o),
117
+ label: s(e.CLOSING_TEMPLATE, o),
126
118
  value: e.CLOSING_TEMPLATE
127
- },
128
- {
129
- label: r(e.CLOSING_DRAFT, o),
130
- value: e.CLOSING_DRAFT
131
119
  }
132
120
  ]
133
121
  },
134
122
  {
135
- label: r(e.INGREDIENTS, o),
123
+ label: s(e.INGREDIENTS, o),
136
124
  // icon: 'grocery',
137
125
  value: e.INGREDIENTS
138
126
  },
139
127
  {
140
- label: r(e.INGREDIENT_GROUP, o),
128
+ label: s(e.INGREDIENT_GROUP, o),
141
129
  // icon: 'grocery',
142
130
  value: e.INGREDIENT_GROUP
143
131
  },
144
132
  {
145
- label: r(e.RECIPE, o),
133
+ label: s(e.RECIPE, o),
146
134
  // icon: 'weight',
147
135
  value: e.RECIPE
148
136
  },
149
137
  {
150
- label: r(e.UNIT, o),
138
+ label: s(e.UNIT, o),
151
139
  // icon: 'fastfood',
152
140
  value: e.UNIT
153
141
  },
@@ -156,41 +144,41 @@ const J = {
156
144
  // icon: 'swap_horiz',
157
145
  children: [
158
146
  {
159
- label: r(e.RECEIVE_REQUEST, o),
147
+ label: s(e.RECEIVE_REQUEST, o),
160
148
  value: e.RECEIVE_REQUEST
161
149
  },
162
150
  {
163
- label: r(e.APPROVAL, o),
151
+ label: s(e.APPROVAL, o),
164
152
  value: e.APPROVAL
165
153
  },
166
154
  ...a.enablePoTemplate ? [
167
155
  {
168
- label: r(e.TRANSFER_TEMPLATE, o),
156
+ label: s(e.TRANSFER_TEMPLATE, o),
169
157
  value: e.TRANSFER_TEMPLATE
170
158
  }
171
159
  ] : []
172
160
  ]
173
161
  },
174
162
  {
175
- label: r(e.SUPPLIER, o),
163
+ label: s(e.SUPPLIER, o),
176
164
  // icon: 'group',
177
165
  value: e.SUPPLIER
178
166
  },
179
167
  {
180
- label: r(e.WAREHOUSE, o),
168
+ label: s(e.WAREHOUSE, o),
181
169
  // icon: 'warehouse',
182
170
  value: e.WAREHOUSE
183
171
  },
184
172
  {
185
- label: r(e.INTEGRATION, o),
173
+ label: s(e.INTEGRATION, o),
186
174
  // icon: 'integration_instructions',
187
175
  value: e.INTEGRATION
188
176
  }
189
177
  ];
190
- return ((s = u.currentBusiness.value) == null ? void 0 : s.menuVersion) === "v3" ? t.filter(
178
+ return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
191
179
  (m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
192
180
  ) : t;
193
- }), d = g({
181
+ }), f = R({
194
182
  get() {
195
183
  if (n.name)
196
184
  return String(n.name);
@@ -198,35 +186,35 @@ const J = {
198
186
  set(t) {
199
187
  t && i.push({ name: t });
200
188
  }
201
- }), f = g(
189
+ }), d = R(
202
190
  () => {
203
191
  var t;
204
192
  return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
205
193
  }
206
- ), T = w(!1), N = g({
194
+ ), g = L(!1), N = R({
207
195
  get() {
208
- return T.value;
196
+ return g.value;
209
197
  },
210
198
  set(t) {
211
- T.value = t, t || c.setItem(f.value, "true");
199
+ g.value = t, t || c.setItem(d.value, "true");
212
200
  }
213
201
  });
214
- return I([() => f.value], () => {
215
- T.value = !1, setTimeout(() => {
216
- N.value = !c.getItem(f.value);
202
+ return b([() => d.value], () => {
203
+ g.value = !1, setTimeout(() => {
204
+ N.value = !c.getItem(d.value);
217
205
  }, 2e3);
218
- }), (t, s) => {
219
- const m = R("FmCollapsibleTabs");
220
- return S(), b("div", re, [
206
+ }), (t, r) => {
207
+ const m = T("FmCollapsibleTabs");
208
+ return S(), I("div", se, [
221
209
  E(m, {
222
- modelValue: d.value,
223
- "onUpdate:modelValue": s[0] || (s[0] = (P) => d.value = P),
210
+ modelValue: f.value,
211
+ "onUpdate:modelValue": r[0] || (r[0] = (P) => f.value = P),
224
212
  items: y.value
225
213
  }, null, 8, ["modelValue", "items"])
226
214
  ]);
227
215
  };
228
216
  }
229
- }), le = /* @__PURE__ */ K(ae, [["__scopeId", "data-v-4515fce1"]]);
217
+ }), le = /* @__PURE__ */ W(ae, [["__scopeId", "data-v-0fe980e2"]]);
230
218
  typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
231
219
  let l, n;
232
220
  return { promise: new Promise((u, a) => {
@@ -236,11 +224,11 @@ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
236
224
  typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
237
225
  return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
238
226
  });
239
- const _e = /* @__PURE__ */ h({
227
+ const Se = /* @__PURE__ */ h({
240
228
  __name: "App",
241
229
  setup(l) {
242
- const n = A(), i = j(), u = W();
243
- G(() => {
230
+ const n = x(), i = j(), u = H();
231
+ U(() => {
244
232
  if (window.location.href.includes("print-preview")) {
245
233
  n.setEmbedded(!0);
246
234
  return;
@@ -248,7 +236,7 @@ const _e = /* @__PURE__ */ h({
248
236
  n.registerSidebarComponent(le), i.initGoogleMap(u.appApi.googleMap).catch(() => {
249
237
  console.error("Google map cannot be loaded");
250
238
  });
251
- }), I([() => n.currentCountry.value], () => {
239
+ }), b([() => n.currentCountry.value], () => {
252
240
  a();
253
241
  });
254
242
  async function a() {
@@ -259,9 +247,9 @@ const _e = /* @__PURE__ */ h({
259
247
  console.error("error when trying to reset businesses:", o);
260
248
  }
261
249
  }
262
- return (c, o) => (S(), U(se));
250
+ return (c, o) => (S(), B(re));
263
251
  }
264
252
  });
265
253
  export {
266
- _e as default
254
+ Se as default
267
255
  };
@@ -1,15 +1,18 @@
1
- import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as y, createBlock as J, unref as e, withCtx as x, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as ue, mergeProps as pe } from "vue";
2
- import { u as me, ay as v, aI as de, ab as K, x as fe, y as ve, z as _e, B as he, E as _ } from "./app-Bkg0JUKr.js";
3
- import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-ySR4KngR.js";
4
- import { useBreakpoints as ye } from "@feedmepos/ui-library";
5
- import { useI18n as xe } from "@feedmepos/mf-common";
1
+ import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as x, createBlock as J, unref as e, withCtx as y, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as pe, mergeProps as ue } from "vue";
2
+ import { u as me, w as v } from "./app-KnSMkJBV.js";
3
+ import { b as de, u as fe, _ as ve, a as _e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js";
4
+ import { a as he, b as De, _ as ge } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js";
5
+ import { c as K } from "./date2-CIeUqUIc.js";
6
+ import { _ as be, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
7
+ import { useBreakpoints as xe } from "@feedmepos/ui-library";
8
+ import { useI18n as ye } from "@feedmepos/mf-common";
6
9
  const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Se = {
7
10
  key: 0,
8
11
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
9
- }, Te = { class: "pt-8" }, Ye = /* @__PURE__ */ ae({
12
+ }, Te = { class: "pt-8" }, Ne = /* @__PURE__ */ ae({
10
13
  __name: "ApprovalView",
11
14
  setup(Ce) {
12
- const o = De("approval"), { columnDefs: Q } = ge("approval", o), W = me();
15
+ const o = he("approval"), { columnDefs: Q } = De("approval", o), W = me();
13
16
  v.object({
14
17
  name: v.string().optional().nullable(),
15
18
  start: v.date().optional().nullable(),
@@ -35,7 +38,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
35
38
  return;
36
39
  }
37
40
  });
38
- const h = g(""), { breakpoints: R } = ye(), D = b(() => R.value.xs || R.value.sm), X = b(() => D.value ? 10 : 20), Z = fe(), { t: k } = xe(), B = b(() => [
41
+ const h = g(""), { breakpoints: R } = xe(), D = b(() => R.value.xs || R.value.sm), X = b(() => D.value ? 10 : 20), Z = fe(), { t: k } = ye(), B = b(() => [
39
42
  {
40
43
  label: k("common.refresh"),
41
44
  value: "refresh"
@@ -49,12 +52,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
49
52
  }
50
53
  return (c, l) => {
51
54
  const ee = re("FmTable");
52
- return y(), J(ve, {
55
+ return x(), J(ve, {
53
56
  title: e(k)("inventory.transfer.approval.title"),
54
57
  actions: B.value,
55
58
  "onClick:action": I
56
59
  }, {
57
- default: x(() => [
60
+ default: y(() => [
58
61
  s("div", {
59
62
  class: ne([
60
63
  "flex flex-col gap-8 max-h-full",
@@ -79,13 +82,13 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
79
82
  onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
80
83
  "page-size": X.value
81
84
  }, {
82
- "list-row": x((r) => [
83
- n(he, {
85
+ "list-row": y((r) => [
86
+ n(be, {
84
87
  row: r,
85
88
  onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
86
89
  }, {
87
- default: x((t) => {
88
- var O, S, T, i, C, z, M, $, u, F, V, p, Y, m, q, E, L, N, P, d, j, A, H, U, f, G;
90
+ default: y((t) => {
91
+ var O, S, T, i, C, z, F, M, p, $, V, u, Y, m, q, L, N, P, j, d, A, E, H, U, f, G;
89
92
  return [
90
93
  s("div", we, [
91
94
  s("div", Re, [
@@ -96,20 +99,20 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
96
99
  ]),
97
100
  s("div", ke, [
98
101
  n(e(_), {
99
- render: ($ = (M = (z = t.to_name) == null ? void 0 : z.column) == null ? void 0 : M.columnDef) == null ? void 0 : $.cell,
100
- props: (F = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : F.call(u)
102
+ render: (M = (F = (z = t.to_name) == null ? void 0 : z.column) == null ? void 0 : F.columnDef) == null ? void 0 : M.cell,
103
+ props: ($ = (p = t.to_name) == null ? void 0 : p.getContext) == null ? void 0 : $.call(p)
101
104
  }, null, 8, ["render", "props"])
102
105
  ]),
103
- s("div", Oe, le((q = (m = (Y = (p = (V = r.original.purchaseOrder) == null ? void 0 : V.items) == null ? void 0 : p.map) == null ? void 0 : Y.call(p, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : q.call(m, ", ")), 1),
104
- (E = r.original.purchaseOrder) != null && E.ref ? (y(), ce("div", Se, [
106
+ s("div", Oe, le((q = (m = (Y = (u = (V = r.original.purchaseOrder) == null ? void 0 : V.items) == null ? void 0 : u.map) == null ? void 0 : Y.call(u, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : q.call(m, ", ")), 1),
107
+ (L = r.original.purchaseOrder) != null && L.ref ? (x(), ce("div", Se, [
105
108
  n(e(_), {
106
- render: (P = (N = (L = t.purchaseOrder_ref) == null ? void 0 : L.column) == null ? void 0 : N.columnDef) == null ? void 0 : P.cell,
107
- props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
109
+ render: (j = (P = (N = t.purchaseOrder_ref) == null ? void 0 : N.column) == null ? void 0 : P.columnDef) == null ? void 0 : j.cell,
110
+ props: (A = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : A.call(d)
108
111
  }, null, 8, ["render", "props"])
109
112
  ])) : ie("", !0),
110
113
  s("div", Te, [
111
114
  n(e(_), {
112
- render: (U = (H = (A = t.purchaseOrder_status) == null ? void 0 : A.column) == null ? void 0 : H.columnDef) == null ? void 0 : U.cell,
115
+ render: (U = (H = (E = t.purchaseOrder_status) == null ? void 0 : E.column) == null ? void 0 : H.columnDef) == null ? void 0 : U.cell,
113
116
  props: (G = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : G.call(f)
114
117
  }, null, 8, ["render", "props"])
115
118
  ])
@@ -122,8 +125,8 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
122
125
  _: 1
123
126
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
124
127
  ], 2),
125
- (y(), J(ue, { to: "body" }, [
126
- n(be, pe(e(o).transferDetailsProps.value, {
128
+ (x(), J(pe, { to: "body" }, [
129
+ n(ge, ue(e(o).transferDetailsProps.value, {
127
130
  onSubmitted: e(o).fetchData
128
131
  }), null, 16, ["onSubmitted"])
129
132
  ]))
@@ -134,5 +137,5 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
134
137
  }
135
138
  });
136
139
  export {
137
- Ye as default
140
+ Ne as default
138
141
  };
@@ -1,13 +1,13 @@
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-Ba6WLcom.js";
3
- import { a as L, aO as S } from "./app-Bkg0JUKr.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js";
3
+ import { a as L, G as S } from "./app-KnSMkJBV.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
7
7
  }, E = {
8
8
  key: 1,
9
9
  class: "p-24 flex items-center justify-center gap-16"
10
- }, A = /* @__PURE__ */ C({
10
+ }, D = /* @__PURE__ */ C({
11
11
  __name: "BindingsDialog",
12
12
  setup(N) {
13
13
  const p = L(), d = o(!0), s = o(new Array()), u = o(), t = S(y);
@@ -90,5 +90,5 @@ const U = {
90
90
  }
91
91
  });
92
92
  export {
93
- A as default
93
+ D as default
94
94
  };
@@ -1,15 +1,16 @@
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, aO as x, H as z } from "./app-Bkg0JUKr.js";
3
- const F = {
2
+ import { F as M } from "./FmMultiselectDialog-D7YtdoyJ.js";
3
+ import { a as x, G as F } from "./app-KnSMkJBV.js";
4
+ const z = {
4
5
  key: 0,
5
6
  class: "flex flex-col gap-16"
6
7
  }, K = { class: "flex justify-end gap-8 items-center" }, w = {
7
8
  key: 1,
8
9
  class: "p-24 flex items-center justify-center gap-16"
9
- }, H = /* @__PURE__ */ S({
10
+ }, A = /* @__PURE__ */ S({
10
11
  __name: "BindingsPicker",
11
12
  setup(L) {
12
- const d = M(), 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) => ({
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) => ({
13
14
  label: s.name,
14
15
  sublabel: s.code,
15
16
  value: s
@@ -62,7 +63,7 @@ const F = {
62
63
  ];
63
64
  }
64
65
  }
65
- }), _ = l(), o = x(B);
66
+ }), _ = l(), o = F(B);
66
67
  async function B() {
67
68
  await d.readInventory(), _.value = o.onMessage(
68
69
  "props:binding-items",
@@ -96,8 +97,8 @@ const F = {
96
97
  g.value ? (p(), f("div", w, [
97
98
  u(t, { size: "md" }),
98
99
  s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
99
- ])) : (p(), f("div", F, [
100
- u(z, {
100
+ ])) : (p(), f("div", z, [
101
+ u(M, {
101
102
  "model-value": b.value,
102
103
  "onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
103
104
  items: c.value
@@ -119,5 +120,5 @@ const F = {
119
120
  }
120
121
  });
121
122
  export {
122
- H as default
123
+ A as default
123
124
  };
@@ -1,8 +1,12 @@
1
1
  import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
2
- import { F as v, a as E, aO as F } from "./app-Bkg0JUKr.js";
2
+ import { F as v, a as E, G as F } from "./app-KnSMkJBV.js";
3
+ import "./index-BN0CY3sZ.js";
3
4
  import { components as L } from "@feedmepos/ui-library";
5
+ import "./fuzzy-B9ryZ9VZ.js";
6
+ /* empty css */
4
7
  import "@feedmepos/mf-common";
5
- const O = /* @__PURE__ */ _({
8
+ import "./dayjs.min-Df5jSnDJ.js";
9
+ const P = /* @__PURE__ */ _({
6
10
  __name: "binding-ui",
7
11
  props: {
8
12
  items: { default: () => [] },
@@ -22,17 +26,17 @@ const O = /* @__PURE__ */ _({
22
26
  C("closeDialog", () => {
23
27
  u.value.isOpen = !u.value.isOpen;
24
28
  });
25
- const o = k, m = d, a = f(() => o.items.map((e) => ({
29
+ const s = k, m = d, a = f(() => s.items.map((e) => ({
26
30
  key: e.key,
27
31
  name: e.name,
28
32
  _skuLinked: e.bindings.filter(
29
- ({ type: n, id: s }) => n === v.enum.SKU && o.skus.some((l) => l._id === s)
33
+ ({ type: n, id: o }) => n === v.enum.SKU && s.skus.some((l) => l._id === o)
30
34
  ).length,
31
35
  _recipeLinked: e.bindings.filter(
32
- ({ type: n, id: s }) => n === v.enum.RECIPE && o.recipes.some((l) => l._id === s)
36
+ ({ type: n, id: o }) => n === v.enum.RECIPE && s.recipes.some((l) => l._id === o)
33
37
  ).length,
34
38
  onUpdate: async () => {
35
- o.editable && m("click:open-binding-dialog", o.type, e);
39
+ s.editable && m("click:open-binding-dialog", s.type, e);
36
40
  }
37
41
  }))), g = [
38
42
  {
@@ -45,7 +49,7 @@ const O = /* @__PURE__ */ _({
45
49
  header: "Ingredient",
46
50
  size: 200,
47
51
  cell(i) {
48
- const e = a.value.find((s) => s.key === i.row.original.key), n = e == null ? void 0 : e._skuLinked;
52
+ const e = a.value.find((o) => o.key === i.row.original.key), n = e == null ? void 0 : e._skuLinked;
49
53
  return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
50
54
  }
51
55
  },
@@ -54,7 +58,7 @@ const O = /* @__PURE__ */ _({
54
58
  header: "Recipe",
55
59
  size: 200,
56
60
  cell(i) {
57
- const e = a.value.find((s) => s.key === i.row.original.key), n = e == null ? void 0 : e._recipeLinked;
61
+ const e = a.value.find((o) => o.key === i.row.original.key), n = e == null ? void 0 : e._recipeLinked;
58
62
  return n === 1 ? "1 item" : n ? `${n} items` : "Not set";
59
63
  }
60
64
  },
@@ -87,22 +91,22 @@ const O = /* @__PURE__ */ _({
87
91
  }, null, 8, ["row-data"]);
88
92
  };
89
93
  }
90
- }), P = {
94
+ }), R = {
91
95
  key: 1,
92
96
  class: "p-24 flex items-center justify-center gap-16"
93
- }, D = /* @__PURE__ */ _({
97
+ }, K = /* @__PURE__ */ _({
94
98
  __name: "BindingsTable",
95
99
  setup(k) {
96
- const d = E(), u = c(!0), o = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = F(n), e = c();
100
+ const d = E(), u = c(!0), s = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = F(n), e = c();
97
101
  async function n() {
98
102
  await d.readInventory(), e.value = i.onMessage(
99
103
  "props:grouped-bindings",
100
104
  (t) => {
101
- u.value = !1, o.value = t;
105
+ u.value = !1, s.value = t;
102
106
  }
103
107
  ), i.sendMessage("props:grouped-bindings");
104
108
  }
105
- async function s(t, r) {
109
+ async function o(t, r) {
106
110
  i.sendMessage("@click:open-binding-dialog", {
107
111
  key: t,
108
112
  binding: r
@@ -124,22 +128,22 @@ const O = /* @__PURE__ */ _({
124
128
  ref_key: "resizeableRef",
125
129
  ref: l
126
130
  }, [
127
- u.value ? (p(), y("div", P, [
131
+ u.value ? (p(), y("div", R, [
128
132
  N(w, { size: "md" }),
129
133
  r[0] || (r[0] = x("div", null, "Loading bindings table...", -1))
130
- ])) : (p(), h(O, {
134
+ ])) : (p(), h(P, {
131
135
  key: 0,
132
- items: o.value,
136
+ items: s.value,
133
137
  recipes: m.value,
134
138
  skus: a.value,
135
139
  type: g.value,
136
140
  editable: "",
137
- "onClick:openBindingDialog": s
141
+ "onClick:openBindingDialog": o
138
142
  }, null, 8, ["items", "recipes", "skus", "type"]))
139
143
  ], 512);
140
144
  };
141
145
  }
142
146
  });
143
147
  export {
144
- D as default
148
+ K as default
145
149
  };