@feedmepos/mf-inventory-portal 0.0.23-dev.41 → 0.0.23-dev.43

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 (42) hide show
  1. package/dist/{App-DW2K97Bb.js → App-C8wsA5dN.js} +104 -99
  2. package/dist/{ApprovalView-BgSxdrwt.js → ApprovalView-ZV8rwQp1.js} +18 -18
  3. package/dist/{BindingsDialog-CQtusdvp.js → BindingsDialog-Sbtijb1i.js} +2 -2
  4. package/dist/{BindingsPicker-BnEjRAah.js → BindingsPicker-wnlrCohJ.js} +1 -1
  5. package/dist/{BindingsTable-DpTPAef_.js → BindingsTable-BZCI3MS6.js} +1 -1
  6. package/dist/{ClosingDraftView-CXKYLCZS.js → ClosingDraftView-DyKbXVev.js} +494 -459
  7. package/dist/{ClosingTemplateView-CMTJHywt.js → ClosingTemplateView-DJr6D7iw.js} +1 -1
  8. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-zOmcCdDR.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-B1mRTbf9.js} +4 -4
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-mAPA5_sB.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUiVV1lj.js} +7 -7
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BjNpfucZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-qU9EBVED.js} +29 -29
  11. package/dist/{IngredientGroupView-CrEfiZvn.js → IngredientGroupView-BWeMME4-.js} +1 -1
  12. package/dist/{IngredientsView-BB8LQlU9.js → IngredientsView-BRxpBv77.js} +14 -15
  13. package/dist/{IntegrationView-D2wTkDyX.js → IntegrationView-DZqL0Ekt.js} +1 -1
  14. package/dist/{InventoryBindingForm-DW7rJDc1.js → InventoryBindingForm-C2zDhhfZ.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ci8UI1eQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BhaK3zOk.js} +44 -44
  16. package/dist/{InventoryBindingSummary-B40KofiI.js → InventoryBindingSummary-CJP0sf4N.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DD7VT9MS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Dplylu1K.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BGuXTfn6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CC1nuQKm.js} +6 -6
  19. package/dist/{PurchaseOrderPrintPreview-DQmx28Be.js → PurchaseOrderPrintPreview-C5afxprc.js} +5 -5
  20. package/dist/{ReceiveRequestView-CJknzKfd.js → ReceiveRequestView-DzbcqmMA.js} +19 -20
  21. package/dist/{RecipeView-D5oWQ9Yd.js → RecipeView-8koCeNhZ.js} +25 -25
  22. package/dist/{StockView-U59PHCy2.js → StockView-C3Ef3mQz.js} +30 -31
  23. package/dist/{SupplierView-CLjjpTNZ.js → SupplierView-BHuYKWgW.js} +11 -12
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DLDDXnyG.js → TransferDetails.vue_vue_type_script_setup_true_lang-8rCAz5GA.js} +104 -104
  25. package/dist/{TransferTemplateView-CFoVrPIX.js → TransferTemplateView-u1u-VV-i.js} +63 -64
  26. package/dist/{UnitView-CAopphN_.js → UnitView-ucQ_K9ot.js} +3 -3
  27. package/dist/{WarehouseView-DUZku5U6.js → WarehouseView-CCwLKR3J.js} +111 -111
  28. package/dist/{app-0klJzLit.js → app-BvW6mdJl.js} +12411 -11415
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-Cu4rlnvU.js → decimal-hD6H0C0M.js} +1 -1
  31. package/dist/{format-unit-display-CMa5UhY1.js → format-unit-display-BfYIFIft.js} +27 -27
  32. package/dist/{index-BJaMpEVJ.js → index-BQUuh_Xy.js} +88 -88
  33. package/dist/{index-HTBqkVVr.js → index-y9SmouGG.js} +3 -3
  34. package/dist/{stock-CB4yNRMO.js → stock-CHW2fGsm.js} +3 -3
  35. package/dist/stores/feature.d.ts +37 -2
  36. package/dist/stores/location.d.ts +1 -1
  37. package/dist/style.css +1 -1
  38. package/dist/{supplier-biIIXGyr.js → supplier-CCUVm2qD.js} +1 -1
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/{use-inventory-binding-dialog-BopoOOxB.js → use-inventory-binding-dialog-B8Cgp_x2.js} +1 -1
  41. package/package.json +1 -1
  42. package/dist/feature-C1wCaXKQ.js +0 -946
@@ -1,90 +1,89 @@
1
- import { ref as x, onUnmounted as F, defineComponent as h, watch as y, onMounted as G, computed as g, resolveComponent as R, openBlock as S, createElementBlock as I, unref as v, createVNode as E, createElementVNode as p, toDisplayString as w, 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-0klJzLit.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-C1wCaXKQ.js";
6
- import { u as Q } from "./useTabStorage-BkIVScW_.js";
7
- import { u as j } from "./googlemap-Dm8ERVai.js";
1
+ import { ref as x, onUnmounted as F, defineComponent as h, watch as y, onMounted as G, computed as g, resolveComponent as R, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as w, createBlock as U, createCommentVNode as M } from "vue";
2
+ import { u as k, a as D, b as H, R as e, c as B, g as a, d as W } from "./app-BvW6mdJl.js";
3
+ import { useCoreStore as A, useI18n as O } from "@feedmepos/mf-common";
4
+ import { useRouter as C, useRoute as K } from "vue-router";
5
+ import { u as $ } from "./useTabStorage-BkIVScW_.js";
6
+ import { u as Q } from "./googlemap-Dm8ERVai.js";
8
7
  import "./array-hChJVZLE.js";
9
- function z() {
8
+ function j() {
10
9
  return {
11
10
  loadingHookInstalled: !1,
12
11
  isLoading: !1
13
12
  };
14
13
  }
15
- const _ = x(z());
16
- function q() {
14
+ const E = x(j());
15
+ function z() {
17
16
  const l = C();
18
- if (!_.value.loadingHookInstalled) {
19
- _.value.loadingHookInstalled = !0;
17
+ if (!E.value.loadingHookInstalled) {
18
+ E.value.loadingHookInstalled = !0;
20
19
  const n = l.beforeEach(() => {
21
- _.value.isLoading = !0;
20
+ E.value.isLoading = !0;
22
21
  }), i = l.afterEach(() => {
23
- _.value.isLoading = !1;
22
+ E.value.isLoading = !1;
24
23
  });
25
24
  F(() => {
26
- _.value.loadingHookInstalled = !1, n(), i();
25
+ E.value.loadingHookInstalled = !1, n(), i();
27
26
  });
28
27
  }
29
28
  return {
30
29
  get isLoading() {
31
- return _.value.isLoading;
30
+ return E.value.isLoading;
32
31
  }
33
32
  };
34
33
  }
35
- const J = {
34
+ const q = {
36
35
  key: 0,
37
36
  class: "flex flex-col items-center w-full h-full gap-24"
38
- }, X = {
37
+ }, J = {
39
38
  key: 1,
40
39
  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({
40
+ }, X = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Y = { class: "fm-typo-en-title-lg-600" }, Z = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ee = { class: "flex gap-16" }, te = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, oe = { href: "https://feedme.ai/form" }, ne = /* @__PURE__ */ h({
42
41
  __name: "InventoryView",
43
42
  setup(l) {
44
- const n = k(), i = D(), u = H(), a = A(), c = C(), o = q(), b = O(), { t: d } = B();
43
+ const n = k(), i = D(), u = H(), s = A(), c = C(), o = z(), b = B(), { t: d } = O();
45
44
  y(
46
- [() => a.sessionUser.value, () => a.currentBusiness.value],
47
- ([t, s]) => {
48
- f(t, s);
45
+ [() => s.sessionUser.value, () => s.currentBusiness.value],
46
+ ([t, r]) => {
47
+ f(t, r);
49
48
  }
50
49
  ), G(async () => {
51
- await b.init(), await a.readBusinesses();
52
- const t = a.sessionUser.value, s = a.currentBusiness.value;
53
- f(t, s);
50
+ await b.init(), await s.readBusinesses();
51
+ const t = s.sessionUser.value, r = s.currentBusiness.value;
52
+ f(t, r);
54
53
  });
55
- function f(t, s) {
56
- !t || !s || T();
54
+ function f(t, r) {
55
+ !t || !r || T();
57
56
  }
58
57
  async function T() {
59
58
  return await n.init(), await u.readSetting().catch((t) => {
60
59
  console.error("error on reading netsuite store", t);
61
60
  }), await i.init();
62
61
  }
63
- const N = g(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? b.enablePoTemplate : !0);
64
- return (t, s) => {
65
- const m = R("FmSpacer"), P = R("FmCircularProgress"), L = R("FmButton"), V = R("RouterView");
62
+ const P = g(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? b.enablePoTemplate : !0);
63
+ return (t, r) => {
64
+ const m = R("FmSpacer"), N = R("FmCircularProgress"), L = R("FmButton"), V = R("RouterView");
66
65
  return S(), I("div", null, [
67
- v(o).isLoading ? (S(), I("div", J, [
68
- E(m),
66
+ v(o).isLoading ? (S(), I("div", q, [
67
+ _(m),
69
68
  p("div", null, [
70
- E(P, { size: "xl" })
69
+ _(N, { size: "xl" })
71
70
  ]),
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
- E(m)
74
- ])) : N.value ? v(a).sessionUser.value ? (S(), U(V, { key: 2 })) : M("", !0) : (S(), I("div", X, [
75
- p("div", Y, [
76
- p("div", Z, w(v(d)("inventory.common.proPlan.title")), 1),
77
- p("div", ee, w(v(d)("inventory.common.proPlan.subtitle")), 1)
71
+ r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
72
+ _(m)
73
+ ])) : P.value ? v(s).sessionUser.value ? (S(), U(V, { key: 2 })) : M("", !0) : (S(), I("div", J, [
74
+ p("div", X, [
75
+ p("div", Y, w(v(d)("inventory.common.proPlan.title")), 1),
76
+ p("div", Z, w(v(d)("inventory.common.proPlan.subtitle")), 1)
78
77
  ]),
79
- p("div", te, [
80
- p("a", oe, [
81
- E(L, {
78
+ p("div", ee, [
79
+ p("a", te, [
80
+ _(L, {
82
81
  label: v(d)("inventory.common.proPlan.comparePlans"),
83
82
  variant: "secondary"
84
83
  }, null, 8, ["label"])
85
84
  ]),
86
- p("a", ne, [
87
- E(L, {
85
+ p("a", oe, [
86
+ _(L, {
88
87
  label: v(d)("inventory.common.proPlan.callUs"),
89
88
  "prepend-icon": "call"
90
89
  }, null, 8, ["label"])
@@ -94,60 +93,66 @@ const J = {
94
93
  ]);
95
94
  };
96
95
  }
97
- }), re = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
96
+ }), re = { class: "h-full flex flex-col overflow-auto py-16" }, se = /* @__PURE__ */ h({
98
97
  __name: "NavigationTab",
99
98
  setup(l) {
100
- const n = $(), i = C(), u = A(), a = O(), c = Q(), { t: o } = B();
101
- y([() => 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 });
99
+ const n = K(), i = C(), u = A(), s = B(), c = $(), { t: o } = O();
100
+ y([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
101
+ (t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
103
102
  });
104
103
  const b = g(() => {
105
- var s;
104
+ var r;
106
105
  const t = [
107
106
  {
108
- label: r(e.STOCK, o),
107
+ label: a(e.STOCK, o),
109
108
  // icon: 'inventory_2',
110
109
  children: [
111
110
  {
112
111
  label: "Stock balance",
113
112
  value: e.STOCK
114
113
  },
115
- {
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),
126
- value: e.CLOSING_TEMPLATE
127
- },
128
- {
129
- label: r(e.CLOSING_DRAFT, o),
130
- value: e.CLOSING_DRAFT
131
- }
114
+ ...s.enableWastageTemplate ? [
115
+ {
116
+ label: a(e.WASTAGE_TEMPLATE, o),
117
+ value: e.WASTAGE_TEMPLATE
118
+ }
119
+ ] : []
132
120
  ]
133
121
  },
122
+ ...s.enableClosingTemplate ? [
123
+ {
124
+ label: "Closing",
125
+ children: [
126
+ {
127
+ label: a(e.CLOSING_TEMPLATE, o),
128
+ value: e.CLOSING_TEMPLATE
129
+ },
130
+ {
131
+ label: a(e.CLOSING_DRAFT, o),
132
+ value: e.CLOSING_DRAFT
133
+ }
134
+ ]
135
+ }
136
+ ] : [],
134
137
  {
135
- label: r(e.INGREDIENTS, o),
138
+ label: a(e.INGREDIENTS, o),
136
139
  // icon: 'grocery',
137
140
  value: e.INGREDIENTS
138
141
  },
142
+ ...s.enableIngredientGroup ? [
143
+ {
144
+ label: a(e.INGREDIENT_GROUP, o),
145
+ // icon: 'grocery',
146
+ value: e.INGREDIENT_GROUP
147
+ }
148
+ ] : [],
139
149
  {
140
- label: r(e.INGREDIENT_GROUP, o),
141
- // icon: 'grocery',
142
- value: e.INGREDIENT_GROUP
143
- },
144
- {
145
- label: r(e.RECIPE, o),
150
+ label: a(e.RECIPE, o),
146
151
  // icon: 'weight',
147
152
  value: e.RECIPE
148
153
  },
149
154
  {
150
- label: r(e.UNIT, o),
155
+ label: a(e.UNIT, o),
151
156
  // icon: 'fastfood',
152
157
  value: e.UNIT
153
158
  },
@@ -156,38 +161,38 @@ const J = {
156
161
  // icon: 'swap_horiz',
157
162
  children: [
158
163
  {
159
- label: r(e.RECEIVE_REQUEST, o),
164
+ label: a(e.RECEIVE_REQUEST, o),
160
165
  value: e.RECEIVE_REQUEST
161
166
  },
162
167
  {
163
- label: r(e.APPROVAL, o),
168
+ label: a(e.APPROVAL, o),
164
169
  value: e.APPROVAL
165
170
  },
166
- ...a.enablePoTemplate ? [
171
+ ...s.enablePoTemplate ? [
167
172
  {
168
- label: r(e.TRANSFER_TEMPLATE, o),
173
+ label: a(e.TRANSFER_TEMPLATE, o),
169
174
  value: e.TRANSFER_TEMPLATE
170
175
  }
171
176
  ] : []
172
177
  ]
173
178
  },
174
179
  {
175
- label: r(e.SUPPLIER, o),
180
+ label: a(e.SUPPLIER, o),
176
181
  // icon: 'group',
177
182
  value: e.SUPPLIER
178
183
  },
179
184
  {
180
- label: r(e.WAREHOUSE, o),
185
+ label: a(e.WAREHOUSE, o),
181
186
  // icon: 'warehouse',
182
187
  value: e.WAREHOUSE
183
188
  },
184
189
  {
185
- label: r(e.INTEGRATION, o),
190
+ label: a(e.INTEGRATION, o),
186
191
  // icon: 'integration_instructions',
187
192
  value: e.INTEGRATION
188
193
  }
189
194
  ];
190
- return ((s = u.currentBusiness.value) == null ? void 0 : s.menuVersion) === "v3" ? t.filter(
195
+ return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
191
196
  (m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
192
197
  ) : t;
193
198
  }), d = g({
@@ -203,7 +208,7 @@ const J = {
203
208
  var t;
204
209
  return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
205
210
  }
206
- ), T = x(!1), N = g({
211
+ ), T = x(!1), P = g({
207
212
  get() {
208
213
  return T.value;
209
214
  },
@@ -213,45 +218,45 @@ const J = {
213
218
  });
214
219
  return y([() => f.value], () => {
215
220
  T.value = !1, setTimeout(() => {
216
- N.value = !c.getItem(f.value);
221
+ P.value = !c.getItem(f.value);
217
222
  }, 2e3);
218
- }), (t, s) => {
223
+ }), (t, r) => {
219
224
  const m = R("FmCollapsibleTabs");
220
225
  return S(), I("div", re, [
221
- E(m, {
226
+ _(m, {
222
227
  modelValue: d.value,
223
- "onUpdate:modelValue": s[0] || (s[0] = (P) => d.value = P),
228
+ "onUpdate:modelValue": r[0] || (r[0] = (N) => d.value = N),
224
229
  items: b.value
225
230
  }, null, 8, ["modelValue", "items"])
226
231
  ]);
227
232
  };
228
233
  }
229
- }), le = /* @__PURE__ */ K(ae, [["__scopeId", "data-v-4515fce1"]]);
234
+ });
230
235
  typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
231
236
  let l, n;
232
- return { promise: new Promise((u, a) => {
233
- l = u, n = a;
237
+ return { promise: new Promise((u, s) => {
238
+ l = u, n = s;
234
239
  }), resolve: l, reject: n };
235
240
  });
236
241
  typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
237
242
  return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
238
243
  });
239
- const _e = /* @__PURE__ */ h({
244
+ const de = /* @__PURE__ */ h({
240
245
  __name: "App",
241
246
  setup(l) {
242
- const n = A(), i = j(), u = W();
247
+ const n = A(), i = Q(), u = W();
243
248
  G(() => {
244
249
  if (window.location.href.includes("print-preview")) {
245
250
  n.setEmbedded(!0);
246
251
  return;
247
252
  }
248
- n.registerSidebarComponent(le), i.initGoogleMap(u.appApi.googleMap).catch(() => {
253
+ n.registerSidebarComponent(se), i.initGoogleMap(u.appApi.googleMap).catch(() => {
249
254
  console.error("Google map cannot be loaded");
250
255
  });
251
256
  }), y([() => n.currentCountry.value], () => {
252
- a();
257
+ s();
253
258
  });
254
- async function a() {
259
+ async function s() {
255
260
  var c;
256
261
  try {
257
262
  await n.readBusinesses(), n.currentBusiness.value = (c = n.businesses.value) == null ? void 0 : c.find((o) => o);
@@ -259,9 +264,9 @@ const _e = /* @__PURE__ */ h({
259
264
  console.error("error when trying to reset businesses:", o);
260
265
  }
261
266
  }
262
- return (c, o) => (S(), U(se));
267
+ return (c, o) => (S(), U(ne));
263
268
  }
264
269
  });
265
270
  export {
266
- _e as default
271
+ de as default
267
272
  };
@@ -1,12 +1,12 @@
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, au as v, aE as de, a8 as K, y as fe, z as ve, B as _e, E as he, G as _ } from "./app-0klJzLit.js";
3
- import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DLDDXnyG.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 ue, mergeProps as pe } from "vue";
2
+ import { u as me, av as v, aF as de, a8 as K, z as fe, _ as ve, B as _e, E as he, G as _ } from "./app-BvW6mdJl.js";
3
+ import { a as De, b as ge, _ as be } from "./TransferDetails.vue_vue_type_script_setup_true_lang-8rCAz5GA.js";
4
+ import { useBreakpoints as xe } from "@feedmepos/ui-library";
5
+ import { useI18n as ye } from "@feedmepos/mf-common";
6
6
  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
7
  key: 0,
8
8
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
9
- }, Te = { class: "pt-8" }, Ve = /* @__PURE__ */ ae({
9
+ }, Te = { class: "pt-8" }, Ye = /* @__PURE__ */ ae({
10
10
  __name: "ApprovalView",
11
11
  setup(Ce) {
12
12
  const o = De("approval"), { columnDefs: Q } = ge("approval", o), W = me();
@@ -35,7 +35,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
35
35
  return;
36
36
  }
37
37
  });
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(() => [
38
+ 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
39
  {
40
40
  label: k("common.refresh"),
41
41
  value: "refresh"
@@ -49,12 +49,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
49
49
  }
50
50
  return (c, l) => {
51
51
  const ee = re("FmTable");
52
- return y(), J(ve, {
52
+ return x(), J(ve, {
53
53
  title: e(k)("inventory.transfer.approval.title"),
54
54
  actions: B.value,
55
55
  "onClick:action": I
56
56
  }, {
57
- default: x(() => [
57
+ default: y(() => [
58
58
  s("div", {
59
59
  class: ne([
60
60
  "flex flex-col gap-8 max-h-full",
@@ -79,13 +79,13 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
79
79
  onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
80
80
  "page-size": X.value
81
81
  }, {
82
- "list-row": x((r) => [
82
+ "list-row": y((r) => [
83
83
  n(he, {
84
84
  row: r,
85
85
  onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
86
86
  }, {
87
- default: x((t) => {
88
- var O, S, T, i, C, z, M, $, u, E, F, p, V, m, Y, q, L, N, P, d, j, A, H, G, f, U;
87
+ default: y((t) => {
88
+ var O, S, T, i, C, z, F, M, u, $, V, p, Y, m, q, E, L, N, P, d, j, A, H, G, f, U;
89
89
  return [
90
90
  s("div", we, [
91
91
  s("div", Re, [
@@ -96,12 +96,12 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
96
96
  ]),
97
97
  s("div", ke, [
98
98
  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: (E = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : E.call(u)
99
+ render: (M = (F = (z = t.to_name) == null ? void 0 : z.column) == null ? void 0 : F.columnDef) == null ? void 0 : M.cell,
100
+ props: ($ = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : $.call(u)
101
101
  }, null, 8, ["render", "props"])
102
102
  ]),
103
- s("div", Oe, le((Y = (m = (V = (p = (F = r.original.purchaseOrder) == null ? void 0 : F.items) == null ? void 0 : p.map) == null ? void 0 : V.call(p, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : Y.call(m, ", ")), 1),
104
- (q = r.original.purchaseOrder) != null && q.ref ? (y(), ce("div", Se, [
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 ? (x(), ce("div", Se, [
105
105
  n(e(_), {
106
106
  render: (P = (N = (L = t.purchaseOrder_ref) == null ? void 0 : L.column) == null ? void 0 : N.columnDef) == null ? void 0 : P.cell,
107
107
  props: (j = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : j.call(d)
@@ -122,7 +122,7 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
122
122
  _: 1
123
123
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
124
124
  ], 2),
125
- (y(), J(ue, { to: "body" }, [
125
+ (x(), J(ue, { to: "body" }, [
126
126
  n(be, pe(e(o).transferDetailsProps.value, {
127
127
  onSubmitted: e(o).fetchData
128
128
  }), null, 16, ["onSubmitted"])
@@ -134,5 +134,5 @@ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-40
134
134
  }
135
135
  });
136
136
  export {
137
- Ve as default
137
+ Ye as default
138
138
  };
@@ -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 L } from "vue";
2
- import { _ as P } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ci8UI1eQ.js";
3
- import { a as V, aL as S } from "./app-0klJzLit.js";
2
+ import { _ as P } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BhaK3zOk.js";
3
+ import { a as V, aL as S } from "./app-BvW6mdJl.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -1,5 +1,5 @@
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, aL as x, J as z } from "./app-0klJzLit.js";
2
+ import { a as M, aL as x, J as z } from "./app-BvW6mdJl.js";
3
3
  const F = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-16"
@@ -1,5 +1,5 @@
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 L } from "vue";
2
- import { F as v, a as x, aL as E } from "./app-0klJzLit.js";
2
+ import { F as v, a as x, aL as E } from "./app-BvW6mdJl.js";
3
3
  import { components as F } from "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
5
  const P = /* @__PURE__ */ _({