@feedmepos/mf-inventory-portal 0.0.25-dev.35 → 0.0.25-dev.36

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 (60) hide show
  1. package/dist/App-DQ1tRUiM.js +277 -0
  2. package/dist/{ApprovalView-lHxxupqD.js → ApprovalView-BUmU49FD.js} +12 -18
  3. package/dist/{BindingsDialog-BYXxxF3D.js → BindingsDialog-Y532GuoP.js} +4 -4
  4. package/dist/{BindingsPicker-BiOmhG63.js → BindingsPicker-DY6xFdJP.js} +5 -5
  5. package/dist/{BindingsTable-C2CG0Wzx.js → BindingsTable-CCuF5SAC.js} +5 -5
  6. package/dist/{ClosingDraftView-BO8Fg9uW.js → ClosingDraftView-DLMvC1jo.js} +2 -2
  7. package/dist/{ClosingTemplateView-DmBvstOM.js → ClosingTemplateView-RleWcrqE.js} +2 -2
  8. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Ddnik1Ta.js +211 -0
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CQB9QYnf.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C1b4i_8q.js} +1 -1
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DditohRx.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-C5CJBYAk.js} +1 -1
  11. package/dist/{IngredientGroupView-D5SpwtqP.js → IngredientGroupView-DwyOvG6_.js} +1 -1
  12. package/dist/{IngredientsView-Dgw0nCeT.js → IngredientsView-BpfsSBrA.js} +4 -4
  13. package/dist/{IntegrationView-BPkBh8lR.js → IntegrationView-DA446r1v.js} +23 -23
  14. package/dist/{InventoryBindingForm-COpLVAaA.js → InventoryBindingForm-CRgMyrrx.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BkyQOb8e.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CGZRNWPd.js} +11 -11
  16. package/dist/{InventoryBindingSummary-D6lmFeFs.js → InventoryBindingSummary-DBog6On8.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BKzL_obr.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D-PypyCr.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CRrDyI6N.js → PremiumBadge.vue_vue_type_script_setup_true_lang-uKJ-jfWq.js} +1 -1
  19. package/dist/{PublishView-DRLVREhD.js → PublishView-C87RPEbp.js} +11 -11
  20. package/dist/{PurchaseOrderPrintPreview-DvaJAeNk.js → PurchaseOrderPrintPreview-KAb787O5.js} +1 -1
  21. package/dist/ReceiveRequestView-DeYXa-0i.js +2547 -0
  22. package/dist/{RecipeView-BFVpv5zA.js → RecipeView-Cv-7Saob.js} +3 -3
  23. package/dist/{StockView-BOzx7POz.js → StockView-AXzSI_Bk.js} +7 -7
  24. package/dist/{SupplierView-DA3-b1sK.js → SupplierView-B0D8qgcj.js} +4 -4
  25. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BhHLKR7l.js +1540 -0
  26. package/dist/{TransferTemplateView-V4C_flzB.js → TransferTemplateView-CvIUVEI2.js} +7 -7
  27. package/dist/{UnitView-CfQSRLN9.js → UnitView-C0ZA2PSB.js} +3 -3
  28. package/dist/{WarehouseView-B5mEXts4.js → WarehouseView-xGjUBQ-o.js} +1 -1
  29. package/dist/api/purchase-order.d.ts +2 -2
  30. package/dist/{app-tDCjbNqA.js → app-919hV-st.js} +6632 -6672
  31. package/dist/app.js +1 -1
  32. package/dist/components/FmMultiselectDialog.d.ts +1 -24
  33. package/dist/{decimal-BXNZd-qR.js → decimal-DuOW_4ci.js} +1 -1
  34. package/dist/{feature-RoIIaF13.js → feature-rBOIvOmx.js} +227 -231
  35. package/dist/{format-unit-display-B2P_1U8-.js → format-unit-display-A-4x0S_H.js} +2 -2
  36. package/dist/{index-0DbWAreR.js → index-Cmphq0jp.js} +2 -2
  37. package/dist/{stock-BkYwqicV.js → stock-BFy-jtUF.js} +1 -1
  38. package/dist/stores/feature.d.ts +2 -3
  39. package/dist/{supplier-2qlZME6l.js → supplier-R9zQjgDT.js} +1 -1
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/{use-ingredient-select-dialog-D9bLhIPr.js → use-ingredient-select-dialog-RkRHFHZ_.js} +1 -1
  42. package/dist/{use-inventory-binding-dialog-FprlSH51.js → use-inventory-binding-dialog-c-kQBcKz.js} +1 -1
  43. package/dist/views/receive-request/components/transfer-details/TransferDetails.vue.d.ts +0 -1375
  44. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -3
  45. package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +0 -3
  46. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +3022 -0
  47. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +2 -1
  48. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
  49. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +9 -27
  50. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +9 -22
  51. package/dist/views/receive-request/helper/print-po.d.ts +2 -9
  52. package/dist/{vue-i18n-C2CwX0tc.js → vue-i18n-sOX8ad1n.js} +134 -134
  53. package/package.json +1 -1
  54. package/dist/App-DPw6U_NJ.js +0 -280
  55. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CJ7BgFh6.js +0 -215
  56. package/dist/ReceiveRequestView-C9Hqtit6.js +0 -2661
  57. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DRUroMZS.js +0 -1843
  58. package/dist/components/MountListener.vue.d.ts +0 -15
  59. package/dist/views/receive-request/helper/po-to-po-template.util.d.ts +0 -1
  60. package/dist/views/transfer-template/helpers/location-to-po-supplier.util.d.ts +0 -75
@@ -0,0 +1,277 @@
1
+ import { ref as x, onUnmounted as F, defineComponent as h, watch as P, onMounted as U, computed as g, resolveComponent as b, openBlock as S, createElementBlock as I, unref as v, createVNode as _, createElementVNode as p, toDisplayString as w, createBlock as G, createCommentVNode as M } from "vue";
2
+ import { u as k, a as D, b as H, R as e, g as s, c as W } from "./app-919hV-st.js";
3
+ import { useCoreStore as A, useI18n as B } from "@feedmepos/mf-common";
4
+ import { useRouter as C, useRoute as K } from "vue-router";
5
+ import { u as O } from "./feature-rBOIvOmx.js";
6
+ import { u as $ } from "./useTabStorage-BkIVScW_.js";
7
+ import { u as Q } from "./googlemap-Dm8ERVai.js";
8
+ import "./array-hChJVZLE.js";
9
+ function j() {
10
+ return {
11
+ loadingHookInstalled: !1,
12
+ isLoading: !1
13
+ };
14
+ }
15
+ const E = x(j());
16
+ function z() {
17
+ const l = C();
18
+ if (!E.value.loadingHookInstalled) {
19
+ E.value.loadingHookInstalled = !0;
20
+ const n = l.beforeEach(() => {
21
+ E.value.isLoading = !0;
22
+ }), i = l.afterEach(() => {
23
+ E.value.isLoading = !1;
24
+ });
25
+ F(() => {
26
+ E.value.loadingHookInstalled = !1, n(), i();
27
+ });
28
+ }
29
+ return {
30
+ get isLoading() {
31
+ return E.value.isLoading;
32
+ }
33
+ };
34
+ }
35
+ const q = {
36
+ key: 0,
37
+ class: "flex flex-col items-center w-full h-full gap-24"
38
+ }, J = {
39
+ key: 1,
40
+ class: "flex flex-col pt-[200px] gap-32 items-center"
41
+ }, 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
+ __name: "InventoryView",
43
+ setup(l) {
44
+ const n = k(), i = D(), u = H(), a = A(), c = C(), o = z(), R = O(), { t: d } = B();
45
+ P(
46
+ [() => a.sessionUser.value, () => a.currentBusiness.value],
47
+ ([t, r]) => {
48
+ f(t, r);
49
+ }
50
+ ), U(async () => {
51
+ await R.init(), await a.readBusinesses();
52
+ const t = a.sessionUser.value, r = a.currentBusiness.value;
53
+ f(t, r);
54
+ });
55
+ function f(t, r) {
56
+ !t || !r || T();
57
+ }
58
+ async function T() {
59
+ return await n.init(), await u.readSetting().catch((t) => {
60
+ console.error("error on reading netsuite store", t);
61
+ }), await i.init();
62
+ }
63
+ const y = g(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? R.enablePoTemplate : !0);
64
+ return (t, r) => {
65
+ const m = b("FmSpacer"), N = b("FmCircularProgress"), L = b("FmButton"), V = b("RouterView");
66
+ return S(), I("div", null, [
67
+ v(o).isLoading ? (S(), I("div", q, [
68
+ _(m),
69
+ p("div", null, [
70
+ _(N, { size: "xl" })
71
+ ]),
72
+ r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
73
+ _(m)
74
+ ])) : y.value ? v(a).sessionUser.value ? (S(), G(V, { key: 2 })) : M("", !0) : (S(), I("div", J, [
75
+ p("div", X, [
76
+ p("div", Y, w(v(d)("inventory.common.proPlan.title")), 1),
77
+ p("div", Z, w(v(d)("inventory.common.proPlan.subtitle")), 1)
78
+ ]),
79
+ p("div", ee, [
80
+ p("a", te, [
81
+ _(L, {
82
+ label: v(d)("inventory.common.proPlan.comparePlans"),
83
+ variant: "secondary"
84
+ }, null, 8, ["label"])
85
+ ]),
86
+ p("a", oe, [
87
+ _(L, {
88
+ label: v(d)("inventory.common.proPlan.callUs"),
89
+ "prepend-icon": "call"
90
+ }, null, 8, ["label"])
91
+ ])
92
+ ])
93
+ ]))
94
+ ]);
95
+ };
96
+ }
97
+ }), re = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
98
+ __name: "NavigationTab",
99
+ setup(l) {
100
+ const n = K(), i = C(), u = A(), a = O(), c = $(), { t: o } = B();
101
+ P([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
102
+ (t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
103
+ });
104
+ const R = g(() => {
105
+ var r;
106
+ const t = [
107
+ {
108
+ label: s(e.STOCK, o),
109
+ // icon: 'inventory_2',
110
+ children: [
111
+ {
112
+ label: "Stock balance",
113
+ value: e.STOCK
114
+ },
115
+ ...a.enableWastageTemplate ? [
116
+ {
117
+ label: s(e.WASTAGE_TEMPLATE, o),
118
+ value: e.WASTAGE_TEMPLATE
119
+ }
120
+ ] : []
121
+ ]
122
+ },
123
+ ...a.enableClosingTemplate ? [
124
+ {
125
+ label: "Closing",
126
+ children: [
127
+ {
128
+ label: s(e.CLOSING_TEMPLATE, o),
129
+ value: e.CLOSING_TEMPLATE
130
+ },
131
+ {
132
+ label: s(e.CLOSING_DRAFT, o),
133
+ value: e.CLOSING_DRAFT
134
+ }
135
+ ]
136
+ }
137
+ ] : [],
138
+ {
139
+ label: s(e.INGREDIENTS, o),
140
+ // icon: 'grocery',
141
+ value: e.INGREDIENTS
142
+ },
143
+ ...a.enableIngredientGroup ? [
144
+ {
145
+ label: s(e.INGREDIENT_GROUP, o),
146
+ // icon: 'grocery',
147
+ value: e.INGREDIENT_GROUP
148
+ }
149
+ ] : [],
150
+ {
151
+ label: s(e.RECIPE, o),
152
+ // icon: 'weight',
153
+ value: e.RECIPE
154
+ },
155
+ {
156
+ label: s(e.UNIT, o),
157
+ // icon: 'fastfood',
158
+ value: e.UNIT
159
+ },
160
+ {
161
+ label: o("inventory.transfer.title"),
162
+ // icon: 'swap_horiz',
163
+ children: [
164
+ {
165
+ label: s(e.RECEIVE_REQUEST, o),
166
+ value: e.RECEIVE_REQUEST
167
+ },
168
+ {
169
+ label: s(e.APPROVAL, o),
170
+ value: e.APPROVAL
171
+ },
172
+ ...a.enablePoTemplate ? [
173
+ {
174
+ label: s(e.TRANSFER_TEMPLATE, o),
175
+ value: e.TRANSFER_TEMPLATE
176
+ }
177
+ ] : []
178
+ ]
179
+ },
180
+ {
181
+ label: s(e.SUPPLIER, o),
182
+ // icon: 'group',
183
+ value: e.SUPPLIER
184
+ },
185
+ {
186
+ label: s(e.WAREHOUSE, o),
187
+ // icon: 'warehouse',
188
+ value: e.WAREHOUSE
189
+ },
190
+ {
191
+ label: s(e.PUBLISH, o),
192
+ value: e.PUBLISH
193
+ },
194
+ {
195
+ label: s(e.INTEGRATION, o),
196
+ // icon: 'integration_instructions',
197
+ value: e.INTEGRATION
198
+ }
199
+ ];
200
+ return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
201
+ (m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
202
+ ) : t;
203
+ }), d = g({
204
+ get() {
205
+ if (n.name)
206
+ return String(n.name);
207
+ },
208
+ set(t) {
209
+ t && i.push({ name: t });
210
+ }
211
+ }), f = g(
212
+ () => {
213
+ var t;
214
+ return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
215
+ }
216
+ ), T = x(!1), y = g({
217
+ get() {
218
+ return T.value;
219
+ },
220
+ set(t) {
221
+ T.value = t, t || c.setItem(f.value, "true");
222
+ }
223
+ });
224
+ return P([() => f.value], () => {
225
+ T.value = !1, setTimeout(() => {
226
+ y.value = !c.getItem(f.value);
227
+ }, 2e3);
228
+ }), (t, r) => {
229
+ const m = b("FmCollapsibleTabs");
230
+ return S(), I("div", re, [
231
+ _(m, {
232
+ modelValue: d.value,
233
+ "onUpdate:modelValue": r[0] || (r[0] = (N) => d.value = N),
234
+ items: R.value
235
+ }, null, 8, ["modelValue", "items"])
236
+ ]);
237
+ };
238
+ }
239
+ });
240
+ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
241
+ let l, n;
242
+ return { promise: new Promise((u, a) => {
243
+ l = u, n = a;
244
+ }), resolve: l, reject: n };
245
+ });
246
+ typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(l) {
247
+ return await new Promise((n) => setTimeout(n, l)), Promise.resolve(this);
248
+ });
249
+ const fe = /* @__PURE__ */ h({
250
+ __name: "App",
251
+ setup(l) {
252
+ const n = A(), i = Q(), u = W();
253
+ U(() => {
254
+ if (window.location.href.includes("print-preview")) {
255
+ n.setEmbedded(!0);
256
+ return;
257
+ }
258
+ n.registerSidebarComponent(ae), i.initGoogleMap(u.appApi.googleMap).catch(() => {
259
+ console.error("Google map cannot be loaded");
260
+ });
261
+ }), P([() => n.currentCountry.value], () => {
262
+ a();
263
+ });
264
+ async function a() {
265
+ var c;
266
+ try {
267
+ await n.readBusinesses(), n.currentBusiness.value = (c = n.businesses.value) == null ? void 0 : c.find((o) => o);
268
+ } catch (o) {
269
+ console.error("error when trying to reset businesses:", o);
270
+ }
271
+ }
272
+ return (c, o) => (S(), G(ne));
273
+ }
274
+ });
275
+ export {
276
+ fe as default
277
+ };
@@ -1,6 +1,6 @@
1
- import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as y, createBlock as J, unref as e, withCtx as x, createElementVNode as s, normalizeClass as se, createVNode as n, normalizeStyle as le, toDisplayString as ce, createElementBlock as ie, createCommentVNode as ue, Teleport as pe, mergeProps as me } from "vue";
2
- import { u as de, aA as _, aK as fe, ab as Q, y as _e, _ as ve, z as he, B as De, E as v } from "./app-tDCjbNqA.js";
3
- import { a as ge, P as O, b as be, _ as ye } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DRUroMZS.js";
1
+ import { defineComponent as oe, ref as g, watch as re, computed as b, resolveComponent as ne, openBlock as y, createBlock as K, unref as e, withCtx as x, createElementVNode as s, normalizeClass as se, createVNode as n, normalizeStyle as le, toDisplayString as ce, createElementBlock as ie, createCommentVNode as ue, Teleport as pe, mergeProps as me } from "vue";
2
+ import { u as de, aA as _, aL as fe, ab as Q, y as _e, _ as ve, z as he, B as De, E as v } from "./app-919hV-st.js";
3
+ import { a as ge, P as O, b as be, _ as ye } from "./TransferDetails.vue_vue_type_script_setup_true_lang-BhHLKR7l.js";
4
4
  import { useBreakpoints as xe } from "@feedmepos/ui-library";
5
5
  import { useI18n as Oe } from "@feedmepos/mf-common";
6
6
  const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Se = {
@@ -49,7 +49,7 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
49
49
  }
50
50
  return (c, l) => {
51
51
  const te = ne("FmTable");
52
- return y(), J(ve, {
52
+ return y(), K(ve, {
53
53
  title: e(P)("inventory.transfer.approval.title"),
54
54
  actions: I.value,
55
55
  "onClick:action": ee
@@ -76,22 +76,16 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
76
76
  "row-data": e(o).purchaseRequests.value,
77
77
  "search-value": h.value,
78
78
  loading: !e(X)._currentLocation || e(o).loading.value,
79
- onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(
80
- r.original.purchaseOrder,
81
- r.original
82
- )),
79
+ onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
83
80
  "page-size": Z.value
84
81
  }, {
85
82
  "list-row": x((r) => [
86
83
  n(De, {
87
84
  row: r,
88
- onRowClick: (t) => e(o).promptShowTransferDetails(
89
- t.purchaseOrder,
90
- t
91
- )
85
+ onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
92
86
  }, {
93
87
  default: x((t) => {
94
- var k, S, A, i, C, T, V, z, u, L, M, p, $, m, E, F, Y, q, N, d, j, H, K, U, f, G;
88
+ var k, S, A, i, C, T, L, V, u, z, M, p, $, m, E, F, Y, q, N, d, j, H, U, G, f, J;
95
89
  return [
96
90
  s("div", Re, [
97
91
  s("div", we, [
@@ -102,8 +96,8 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
102
96
  ]),
103
97
  s("div", Pe, [
104
98
  n(e(v), {
105
- render: (z = (V = (T = t.to_name) == null ? void 0 : T.column) == null ? void 0 : V.columnDef) == null ? void 0 : z.cell,
106
- props: (L = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : L.call(u)
99
+ render: (V = (L = (T = t.to_name) == null ? void 0 : T.column) == null ? void 0 : L.columnDef) == null ? void 0 : V.cell,
100
+ props: (z = (u = t.to_name) == null ? void 0 : u.getContext) == null ? void 0 : z.call(u)
107
101
  }, null, 8, ["render", "props"])
108
102
  ]),
109
103
  s("div", ke, ce((E = (m = ($ = (p = (M = r.original.purchaseOrder) == null ? void 0 : M.items) == null ? void 0 : p.map) == null ? void 0 : $.call(p, (ae) => `${ae.name}`)) == null ? void 0 : m.join) == null ? void 0 : E.call(m, ", ")), 1),
@@ -115,8 +109,8 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
115
109
  ])) : ue("", !0),
116
110
  s("div", Ae, [
117
111
  n(e(v), {
118
- render: (U = (K = (H = t.purchaseOrder_status) == null ? void 0 : H.column) == null ? void 0 : K.columnDef) == null ? void 0 : U.cell,
119
- props: (G = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : G.call(f)
112
+ render: (G = (U = (H = t.purchaseOrder_status) == null ? void 0 : H.column) == null ? void 0 : U.columnDef) == null ? void 0 : G.cell,
113
+ props: (J = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : J.call(f)
120
114
  }, null, 8, ["render", "props"])
121
115
  ])
122
116
  ])
@@ -128,7 +122,7 @@ const Re = { class: "flex flex-col py-8" }, we = { class: "fm-typo-en-body-md-40
128
122
  _: 1
129
123
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
130
124
  ], 2),
131
- (y(), J(pe, { to: "body" }, [
125
+ (y(), K(pe, { to: "body" }, [
132
126
  n(ye, me({
133
127
  scope: e(O).APPROVAL
134
128
  }, e(o).transferDetailsProps.value, {
@@ -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-BkyQOb8e.js";
3
- import { a as L, aR as S } from "./app-tDCjbNqA.js";
2
+ import { _ as S } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CGZRNWPd.js";
3
+ import { a as V, aS as L } from "./app-919hV-st.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -10,7 +10,7 @@ const U = {
10
10
  }, D = /* @__PURE__ */ C({
11
11
  __name: "BindingsDialog",
12
12
  setup(N) {
13
- const p = L(), d = o(!0), s = o(new Array()), u = o(), t = S(y);
13
+ const p = V(), d = o(!0), s = o(new Array()), u = o(), t = L(y);
14
14
  async function y() {
15
15
  await p.readInventory(), u.value = t.onMessage("props:inventory-bindings", (e) => {
16
16
  d.value = !1, s.value = e;
@@ -64,7 +64,7 @@ const U = {
64
64
  class: "flex flex-col gap-16"
65
65
  }, {
66
66
  default: R(() => [
67
- a(V, {
67
+ a(S, {
68
68
  "model-value": s.value,
69
69
  "onUpdate:modelValue": n[0] || (n[0] = (w) => s.value = w),
70
70
  "iframe-mode": "",
@@ -1,12 +1,12 @@
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, aR as x, H as z } from "./app-tDCjbNqA.js";
1
+ import { defineComponent as R, 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, aS as x, H as z } from "./app-919hV-st.js";
3
3
  const F = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-16"
6
6
  }, K = { class: "flex justify-end gap-8 items-center" }, w = {
7
7
  key: 1,
8
8
  class: "p-24 flex items-center justify-center gap-16"
9
- }, H = /* @__PURE__ */ S({
9
+ }, H = /* @__PURE__ */ R({
10
10
  __name: "BindingsPicker",
11
11
  setup(L) {
12
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) => ({
@@ -71,7 +71,7 @@ const F = {
71
71
  }
72
72
  ), o.sendMessage("props:binding-items");
73
73
  }
74
- function R() {
74
+ function S() {
75
75
  o.sendMessage("@close");
76
76
  }
77
77
  function P() {
@@ -106,7 +106,7 @@ const F = {
106
106
  u(n, {
107
107
  variant: "tertiary",
108
108
  label: "Close",
109
- onClick: R
109
+ onClick: S
110
110
  }),
111
111
  u(n, {
112
112
  label: "Submit",
@@ -1,8 +1,8 @@
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, aR as F } from "./app-tDCjbNqA.js";
2
+ import { F as v, a as E, aS as F } from "./app-919hV-st.js";
3
3
  import { components as L } from "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
- const R = /* @__PURE__ */ _({
5
+ const P = /* @__PURE__ */ _({
6
6
  __name: "binding-ui",
7
7
  props: {
8
8
  items: { default: () => [] },
@@ -87,7 +87,7 @@ const R = /* @__PURE__ */ _({
87
87
  }, null, 8, ["row-data"]);
88
88
  };
89
89
  }
90
- }), P = {
90
+ }), R = {
91
91
  key: 1,
92
92
  class: "p-24 flex items-center justify-center gap-16"
93
93
  }, D = /* @__PURE__ */ _({
@@ -124,10 +124,10 @@ const R = /* @__PURE__ */ _({
124
124
  ref_key: "resizeableRef",
125
125
  ref: l
126
126
  }, [
127
- u.value ? (p(), y("div", P, [
127
+ u.value ? (p(), y("div", R, [
128
128
  N(w, { size: "md" }),
129
129
  r[0] || (r[0] = x("div", null, "Loading bindings table...", -1))
130
- ])) : (p(), h(R, {
130
+ ])) : (p(), h(P, {
131
131
  key: 0,
132
132
  items: o.value,
133
133
  recipes: m.value,
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as ke, ref as V, resolveComponent as U, openBlock as x, createBlock as J, withCtx as Y, createElementVNode as o, createTextVNode as De, toDisplayString as z, unref as g, createVNode as _, h as k, reactive as Ye, computed as E, onMounted as Ke, watch as Ge, isRef as Te, createElementBlock as F, Fragment as W, createCommentVNode as ne, normalizeClass as me, renderList as ve, normalizeStyle as Re, Teleport as We, mergeProps as qe } from "vue";
2
- import { W as Ze, u as we, aj as q, l as Je, J as Ce, i as M, t as Qe, K as ye, p as Xe, q as et, r as tt, ak as Me, al as Pe, a6 as Ie, am as Ue, an as le, ac as at, ai as oe, T as Ee, D as Fe, h as xe, f as nt, e as ot, a as st, y as rt, _ as lt, z as ct, B as it, E as he } from "./app-tDCjbNqA.js";
2
+ import { W as Ze, u as we, aj as q, l as Je, J as Ce, i as M, t as Qe, K as ye, p as Xe, q as et, r as tt, ak as Me, al as Pe, a6 as Ie, am as Ue, an as le, ac as at, ai as oe, T as Ee, D as Fe, h as xe, f as nt, e as ot, a as st, y as rt, _ as lt, z as ct, B as it, E as he } from "./app-919hV-st.js";
3
3
  import { useCoreStore as ut, useI18n as He } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as je, useDialog as dt, useProxiedModel as mt, components as de, useBreakpoints as ft } from "@feedmepos/ui-library";
5
5
  import { defineStore as Le, storeToRefs as pt } from "pinia";
6
- import { u as ze } from "./stock-BkYwqicV.js";
6
+ import { u as ze } from "./stock-BFy-jtUF.js";
7
7
  import { E as vt } from "./empty-placeholder-wf6-BWE8.js";
8
8
  const Se = Ze((n, r) => {
9
9
  function e() {
@@ -1,9 +1,9 @@
1
1
  import { ref as R, h as A, defineComponent as W, resolveComponent as E, openBlock as w, createElementBlock as I, createElementVNode as b, normalizeClass as q, createTextVNode as Fe, toDisplayString as C, unref as i, createCommentVNode as Q, createVNode as T, withCtx as P, Fragment as j, renderList as X, computed as U, watch as Re, createSlots as ie, createBlock as N, isRef as Pe, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as We, mergeProps as Je } from "vue";
2
- import { W as qe, u as ue, ac as Qe, D as Se, h as O, f as Xe, e as Ae, ad as ce, q as Ze, ae as Ee, r as Ue, a as de, b as et, s as tt, v as Ve, w as nt, x as ot, d as K, E as J, G as st, af as lt, l as at, ag as rt, B as Ne, A as it, ah as ct, ai as re, y as mt, _ as ut, z as dt } from "./app-tDCjbNqA.js";
2
+ import { W as qe, u as ue, ac as Qe, D as Se, h as O, f as Xe, e as Ae, ad as ce, q as Ze, ae as Ee, r as Ue, a as de, b as et, s as tt, v as Ve, w as nt, x as ot, d as K, E as J, G as st, af as lt, l as at, ag as rt, B as Ne, A as it, ah as ct, ai as re, y as mt, _ as ut, z as dt } from "./app-919hV-st.js";
3
3
  import { useCoreStore as pe, useI18n as Y } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as pt, useSnackbar as se, useDialog as Be, FmButtonVariant as De, components as G, useProxiedModel as ft, useBreakpoints as gt } from "@feedmepos/ui-library";
5
5
  import { defineStore as Le, storeToRefs as ze } from "pinia";
6
- import { u as vt } from "./use-ingredient-select-dialog-D9bLhIPr.js";
6
+ import { u as vt } from "./use-ingredient-select-dialog-RkRHFHZ_.js";
7
7
  const le = qe((l, o) => {
8
8
  function n() {
9
9
  var t;