@feedmepos/mf-inventory-portal 1.2.38 → 1.2.40-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/{App-CONrAP7y.js → App-0DyZL1Fq.js} +3 -3
  2. package/dist/{ApprovalView-Cn9_7xk9.js → ApprovalView-BmBq5TGO.js} +5 -5
  3. package/dist/{BindingsDialog-L7mP6sx9.js → BindingsDialog-DtBdmYMs.js} +11 -11
  4. package/dist/{BindingsPicker-DZqBMDUg.js → BindingsPicker-BAGxi1ZC.js} +9 -9
  5. package/dist/{BindingsTable-DHkFDwiH.js → BindingsTable-DKlb_qiS.js} +24 -24
  6. package/dist/{ClosingDraftView-BtSmlj0J.js → ClosingDraftView-CEmvLMPP.js} +8 -8
  7. package/dist/{ClosingHistoryView-j83Wuxis.js → ClosingHistoryView-DOmSMiGH.js} +22 -22
  8. package/dist/{ClosingTemplateView-ZubBNFCd.js → ClosingTemplateView-Bd1KfJL3.js} +14 -14
  9. package/dist/{DeliveryOrderPrintPreview-DfS2E2tl.js → DeliveryOrderPrintPreview-DoE0Bmx4.js} +9 -9
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CoO6g5B9.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-20eCsiTr.js} +60 -61
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnMjbyPc.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B05RFZv-.js} +2 -2
  12. package/dist/{FmMultiselectDialog-8_qMKCPt.js → FmMultiselectDialog-ChsBeANW.js} +2 -2
  13. package/dist/{FmMultiselectDialog-vj94RVLU.js → FmMultiselectDialog-i1uk7uNx.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Dihv3KTq.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BpT8OBQX.js} +3 -3
  15. package/dist/{ImportView--0ZbHtb9.js → ImportView-CCLgSwn2.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bosdu_28.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-EHwf-vCH.js} +1 -1
  17. package/dist/{IngredientGroupView-D937cHah.js → IngredientGroupView-BnEyAtcY.js} +49 -49
  18. package/dist/{IngredientsView-BNdvTpOT.js → IngredientsView-DEN_EqXP.js} +14 -14
  19. package/dist/{IntegrationView-Dm3Eur8-.js → IntegrationView-Cu_gMMz_.js} +1663 -1572
  20. package/dist/{InventoryBindingForm-rBhW4Snl.js → InventoryBindingForm-COw2tcQC.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Cvpi7GQx.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIv_DrTj.js} +14 -14
  22. package/dist/{InventoryBindingSummary-emUM5QuA.js → InventoryBindingSummary-Csajkxbi.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DFW-jg1P.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BE9UFVFI.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BOxIYl0Z.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Da6ffJym.js} +2 -2
  25. package/dist/{PublishView-CXRBcsxc.js → PublishView-qCcwOaJ8.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-BvjDpyrq.js → PurchaseOrderPrintPreview-m2n6OT7Z.js} +9 -9
  27. package/dist/ReceiveRequestView-fhTKkIJA.js +2866 -0
  28. package/dist/{RecipeView-dggwqURE.js → RecipeView-Bp_59G4J.js} +8 -8
  29. package/dist/{StockView-Cml9AuXX.js → StockView-Co_sOnjs.js} +15 -15
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BTZa1E_o.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Npu98N-x.js} +1 -1
  31. package/dist/{SupplierView-CnD2QpE7.js → SupplierView-Bp4ez39s.js} +11 -11
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DIbaHfbR.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-JTXbmabq.js} +2 -2
  33. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DeD1jiXL.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Dn2j9Xls.js} +1 -1
  34. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Y0eaTjgd.js → TransferDetails.vue_vue_type_script_setup_true_lang-BSOi6Bbh.js} +374 -374
  35. package/dist/{TransferTemplateView-DytfORlu.js → TransferTemplateView-C5jzqjPy.js} +354 -354
  36. package/dist/{UnitView-ZUo-3Em1.js → UnitView-XcXvbWUz.js} +6 -6
  37. package/dist/{WarehouseView-DlZirt8V.js → WarehouseView-B37E963Z.js} +5 -5
  38. package/dist/{WastageTemplateView-5Qvs2GZC.js → WastageTemplateView-Dn2vSoCa.js} +14 -14
  39. package/dist/api/netsuite.d.ts +2 -0
  40. package/dist/{app-xCn1wZY9.js → app-CaXDnJ-Z.js} +1517 -1479
  41. package/dist/app.js +1 -1
  42. package/dist/{closing-template-DS8zFVJt.js → closing-template-CgLIA5Fw.js} +1 -1
  43. package/dist/{date2-hHwvNr68.js → date2-Dc5sFY0E.js} +1 -1
  44. package/dist/{dayjs.min-PqgQ_K75.js → dayjs.min-B-H7eU1F.js} +12 -12
  45. package/dist/{decimal-DOCxaZjf.js → decimal-BEqE-6GW.js} +2 -2
  46. package/dist/{defineDeepModel-CTlh0zvq.js → defineDeepModel-CXxtm-xp.js} +1 -1
  47. package/dist/{duplicate-template-F8fz-36_.js → duplicate-template-BX6XhNvd.js} +1 -1
  48. package/dist/feature-BsDnCbpL.js +25312 -0
  49. package/dist/{format-time-from-id-DTsuaGJG.js → format-time-from-id-Dhlv9sZk.js} +1 -1
  50. package/dist/{format-unit-display-DS3MzSfd.js → format-unit-display-B1WhMzNf.js} +246 -247
  51. package/dist/helper/reactivity.d.ts +11 -0
  52. package/dist/helper/reactivity.spec.d.ts +1 -0
  53. package/dist/{import-export.helper-BAUfb01o.js → import-export.helper-DaGtyevy.js} +5 -5
  54. package/dist/{index-CYZHYBBP.js → index-B2ziwUTD.js} +1 -1
  55. package/dist/{index-BX9ig-2t.js → index-CikPk76E.js} +3 -3
  56. package/dist/{index-D_kOnYds.js → index-CqbsiJk1.js} +60 -60
  57. package/dist/{lodash-Cqi23PoA.js → lodash-rwAZ9bXl.js} +1 -1
  58. package/dist/{netsuite-Cg_AEH3H.js → netsuite-SdH9FL9h.js} +254 -239
  59. package/dist/{purchase-order-template-Dh3D_2Tz.js → purchase-order-template-Daxs7lNG.js} +1 -1
  60. package/dist/{rules-C_FnXd1e.js → rules-81GqVkEm.js} +3 -3
  61. package/dist/{stock-DJDm1iIR.js → stock-BEmy7_Qs.js} +1 -1
  62. package/dist/{stock-BPdGitCC.js → stock-CpYHrEjC.js} +3 -3
  63. package/dist/stores/integration/netsuite.d.ts +86 -0
  64. package/dist/stores/inventory.d.ts +10 -669
  65. package/dist/{supplier-BtZVHCAl.js → supplier-Bw4fRGiq.js} +2 -2
  66. package/dist/tsconfig.app.tsbuildinfo +1 -1
  67. package/dist/{use-ingredient-select-dialog-n26Kr4C5.js → use-ingredient-select-dialog-CGTZ9UUP.js} +2 -2
  68. package/dist/{use-inventory-binding-dialog-kkpC2Tzi.js → use-inventory-binding-dialog-CUh7aMb7.js} +2 -2
  69. package/dist/{use-template-enabled-locations-2-4ou70XAL.js → use-template-enabled-locations-2-2oPspMus.js} +2 -2
  70. package/dist/views/receive-request/components/netsuite/NetSuitePanel.vue.d.ts +3 -2
  71. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +3 -2
  72. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +518 -2225
  73. package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +1430 -0
  74. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  75. package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +13974 -0
  76. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +3 -2
  77. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +1 -1
  78. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +6 -6
  79. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +7 -7
  80. package/dist/views/receive-request/helper/get-transfer-type.d.ts +1 -2
  81. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +3 -2
  82. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +3 -2
  83. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +4 -3
  84. package/dist/{vue-i18n-A7TH-x17.js → vue-i18n-Di6nYtv0.js} +378 -378
  85. package/dist/{xlsx-DRYtBAdX.js → xlsx-DXn_bv49.js} +1 -1
  86. package/dist/{xlsx.util-DGBUU4BN.js → xlsx.util-BawfHUuI.js} +1 -1
  87. package/package.json +3 -3
  88. package/dist/ReceiveRequestView-TwL3yVCN.js +0 -2821
  89. package/dist/feature-UnTx1VJG.js +0 -20162
  90. package/dist/views/receive-request/constants/purchase-order-transaction-type.d.ts +0 -4
@@ -1,10 +1,9 @@
1
- import { H as M, u as E, L as R, O as B, x as U } from "./app-xCn1wZY9.js";
2
- import { a as C, t as H } from "./rules-C_FnXd1e.js";
3
- import { u as D } from "./supplier-BtZVHCAl.js";
4
- import { P as T } from "./format-unit-display-DS3MzSfd.js";
5
- import { computed as f, defineComponent as z, mergeModels as x, useModel as j, ref as q, resolveComponent as w, openBlock as L, createElementBlock as O, normalizeStyle as W, createElementVNode as I, createVNode as $, withCtx as J, createBlock as V, createCommentVNode as N, Fragment as K, renderList as Q, unref as g } from "vue";
6
- import { F as X } from "./FmMultiselectDialog-8_qMKCPt.js";
7
- function Y(e, r, a) {
1
+ import { I as O, u as D, t as P, M as A, P as E, y as w } from "./app-CaXDnJ-Z.js";
2
+ import { a as C, t as R } from "./rules-81GqVkEm.js";
3
+ import { u as z } from "./supplier-Bw4fRGiq.js";
4
+ import { computed as f, defineComponent as H, mergeModels as j, useModel as q, ref as x, resolveComponent as M, openBlock as L, createElementBlock as I, normalizeStyle as W, createElementVNode as U, createVNode as $, withCtx as Y, createBlock as V, createCommentVNode as N, Fragment as J, renderList as K, unref as g } from "vue";
5
+ import { F as Q } from "./FmMultiselectDialog-ChsBeANW.js";
6
+ function X(e, r, a) {
8
7
  var o;
9
8
  if (!!r.measurement === !!a && ((o = r.measurement) == null ? void 0 : o.id) === a)
10
9
  return r;
@@ -20,33 +19,33 @@ function Y(e, r, a) {
20
19
  costPerUnit: r.costPerUnit
21
20
  };
22
21
  }
23
- function re(e, r, a, u) {
24
- var P, _, s;
25
- const i = (s = (_ = (P = u == null ? void 0 : u.supplier) == null ? void 0 : P.supplyItems) == null ? void 0 : _.find(
22
+ function ne(e, r, a, u) {
23
+ var T, _, s;
24
+ const l = (s = (_ = (T = u == null ? void 0 : u.supplier) == null ? void 0 : T.supplyItems) == null ? void 0 : _.find(
26
25
  (t) => t.skuId === e._id
27
26
  )) == null ? void 0 : s.defaultCost;
28
27
  if (u != null && u.manualTotalCost)
29
28
  return {
30
29
  cost: u.manualTotalCost,
31
30
  skuDefaultCost: e.defaultCost ?? void 0,
32
- supplierOverrideCost: i ?? void 0
31
+ supplierOverrideCost: l ?? void 0
33
32
  };
34
- const n = e.defaultCost ? Y(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = i ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +C(p) / +C(o == null ? void 0 : o.measurement.conversion) : +C(p) : void 0, b = v ? a ? v * +C(a.conversion) : v : void 0, h = b ? +C(r) * b : void 0;
33
+ const n = e.defaultCost ? X(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = l ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +C(p) / +C(o == null ? void 0 : o.measurement.conversion) : +C(p) : void 0, b = v ? a ? v * +C(a.conversion) : v : void 0, h = b ? +C(r) * b : void 0;
35
34
  return {
36
35
  cost: h ? {
37
- ...H(h ?? 0, 2),
38
- currency: M()
36
+ ...R(h ?? 0, 2),
37
+ currency: O()
39
38
  } : {
40
39
  amount: 0,
41
40
  precision: 0,
42
- currency: M()
41
+ currency: O()
43
42
  },
44
43
  skuDefaultCost: e.defaultCost ?? void 0,
45
- supplierOverrideCost: i ?? void 0
44
+ supplierOverrideCost: l ?? void 0
46
45
  };
47
46
  }
48
47
  function k(e) {
49
- const r = B.safeParse(e);
48
+ const r = E.safeParse(e);
50
49
  if (r.success) return r.data;
51
50
  throw new Error("Invalid supplier data");
52
51
  }
@@ -69,23 +68,23 @@ function S(e) {
69
68
  preparationTime: e.preparationTime
70
69
  };
71
70
  }
72
- function ae(e, r, a = !1, u = !1) {
73
- const i = D(), n = E();
71
+ function re(e, r, a = !1, u = !1) {
72
+ const l = z(), n = D();
74
73
  n.watchLocation(async () => {
75
74
  var y;
76
- await i.readSuppliers();
75
+ await l.readSuppliers();
77
76
  const s = e();
78
77
  if ((y = s.supplier) != null && y._id) return;
79
- const t = u ? i.suppliers[0] : i.businessSuppliers[0], l = (a ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
78
+ const t = u ? l.suppliers[0] : l.businessSuppliers[0], i = (a ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
80
79
  r({
81
80
  ...s,
82
- supplier: t ? k(t) : l ? S(l) : s.supplier
81
+ supplier: t ? k(t) : i ? S(i) : s.supplier
83
82
  });
84
83
  });
85
84
  const o = f(
86
85
  () => {
87
86
  var s, t;
88
- return typeof ((t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t.internal) == "string" ? T.TRANSFER : T.PURCHASE;
87
+ return typeof ((t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t.internal) == "string" ? P.enum.transfer : P.enum.purchase;
89
88
  }
90
89
  ), p = f({
91
90
  get() {
@@ -94,8 +93,8 @@ function ae(e, r, a = !1, u = !1) {
94
93
  },
95
94
  set(s) {
96
95
  const t = e() ?? {};
97
- if (o.value === T.PURCHASE) {
98
- const F = (u ? i.suppliers : i.businessSuppliers).find((A) => A._id === s);
96
+ if (o.value === P.enum.purchase) {
97
+ const F = (u ? l.suppliers : l.businessSuppliers).find((B) => B._id === s);
99
98
  r({
100
99
  ...t,
101
100
  supplier: F ? k(F) : t.supplier
@@ -110,24 +109,24 @@ function ae(e, r, a = !1, u = !1) {
110
109
  supplier: y ? S(y) : t.supplier
111
110
  });
112
111
  }
113
- }), v = f(() => i.locationSuppliers.map(k)), b = f(() => i.businessSuppliers.map(k)), h = f(() => {
112
+ }), v = f(() => l.locationSuppliers.map(k)), b = f(() => l.businessSuppliers.map(k)), h = f(() => {
114
113
  const s = [...v.value], t = [...b.value];
115
114
  return u ? [...t, ...s] : t;
116
115
  }), c = f(() => {
117
116
  var m;
118
- const s = ((m = n._currentLocation) == null ? void 0 : m.type) === R.warehouse;
117
+ const s = ((m = n._currentLocation) == null ? void 0 : m.type) === A.warehouse;
119
118
  return (a ? n.allLocations.filter(
120
- (l) => l.doc._id !== n.currentLocation.doc._id
121
- ) : n.allLocations).filter((l) => s || l.acceptRequest).map(S);
122
- }), P = f(() => {
123
- if (o.value === T.PURCHASE) {
124
- const t = v.value.map((l) => ({
125
- label: l.name,
126
- value: l._id
127
- })), m = b.value.map((l) => ({
128
- label: l.name,
119
+ (i) => i.doc._id !== n.currentLocation.doc._id
120
+ ) : n.allLocations).filter((i) => s || i.acceptRequest).map(S);
121
+ }), T = f(() => {
122
+ if (o.value === P.enum.purchase) {
123
+ const t = v.value.map((i) => ({
124
+ label: i.name,
125
+ value: i._id
126
+ })), m = b.value.map((i) => ({
127
+ label: i.name,
129
128
  sublabel: "Business supplier",
130
- value: l._id
129
+ value: i._id
131
130
  }));
132
131
  return u ? [...t, ...m] : m;
133
132
  }
@@ -137,10 +136,10 @@ function ae(e, r, a = !1, u = !1) {
137
136
  value: t._id
138
137
  }));
139
138
  }), _ = f(() => {
140
- var l, y;
141
- const s = (y = (l = e()) == null ? void 0 : l.supplier) == null ? void 0 : y._id;
142
- if (o.value === T.PURCHASE) {
143
- const d = i.suppliers.find((F) => F._id === s);
139
+ var i, y;
140
+ const s = (y = (i = e()) == null ? void 0 : i.supplier) == null ? void 0 : y._id;
141
+ if (o.value === P.enum.purchase) {
142
+ const d = l.suppliers.find((F) => F._id === s);
144
143
  return d ? k(d) : null;
145
144
  }
146
145
  const m = n.allLocations.find((d) => d.doc._id);
@@ -148,16 +147,16 @@ function ae(e, r, a = !1, u = !1) {
148
147
  });
149
148
  return {
150
149
  transferLocationModel: p,
151
- transferLocationOptions: P,
150
+ transferLocationOptions: T,
152
151
  locationOptionsTypePurchase: h,
153
152
  locationOptionsTypePurchaseLocationLevel: v,
154
153
  locationOptionsTypeTransfer: c,
155
154
  selectedLocation: _
156
155
  };
157
156
  }
158
- const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ z({
157
+ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ H({
159
158
  __name: "FmFilterableMenuOptions",
160
- props: /* @__PURE__ */ x({
159
+ props: /* @__PURE__ */ j({
161
160
  modelValue: {},
162
161
  maxHeight: {},
163
162
  width: {},
@@ -170,19 +169,19 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ z({
170
169
  }),
171
170
  emits: ["update:search"],
172
171
  setup(e) {
173
- const r = e, a = j(e, "search"), u = f(
174
- () => new X(r.items, ["label", "sublabel"], {
172
+ const r = e, a = q(e, "search"), u = f(
173
+ () => new Q(r.items, ["label", "sublabel"], {
175
174
  caseSensitive: !1,
176
175
  sort: !0
177
176
  })
178
- ), i = f(() => u.value.search(a.value)), n = q();
177
+ ), l = f(() => u.value.search(a.value)), n = x();
179
178
  return console.log({ stickyRef: n }), (o, p) => {
180
- const v = w("FmButton"), b = w("FmTextField"), h = w("FmMenuItem");
181
- return L(), O("div", {
179
+ const v = M("FmButton"), b = M("FmTextField"), h = M("FmMenuItem");
180
+ return L(), I("div", {
182
181
  class: "relative",
183
182
  style: W({ width: o.width })
184
183
  }, [
185
- I("div", {
184
+ U("div", {
186
185
  class: "sticky top-0 bg-white mb-8",
187
186
  ref_key: "stickyRef",
188
187
  ref: n
@@ -192,7 +191,7 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ z({
192
191
  "onUpdate:modelValue": p[1] || (p[1] = (c) => a.value = c),
193
192
  placeholder: "Filter options"
194
193
  }, {
195
- append: J(() => [
194
+ append: Y(() => [
196
195
  a.value ? (L(), V(v, {
197
196
  key: 0,
198
197
  variant: "tertiary",
@@ -203,19 +202,19 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ z({
203
202
  _: 1
204
203
  }, 8, ["modelValue"])
205
204
  ], 512),
206
- I("div", Z, [
207
- (L(!0), O(K, null, Q(i.value, (c, P) => (L(), V(h, {
208
- key: P,
205
+ U("div", Z, [
206
+ (L(!0), I(J, null, K(l.value, (c, T) => (L(), V(h, {
207
+ key: T,
209
208
  label: c.label,
210
209
  sublabel: c.sublabel,
211
- "model-value": g(U)(o.modelValue, c.value),
212
- onClick: () => o.handleItemChange(g(U)(o.modelValue, c.value), c),
210
+ "model-value": g(w)(o.modelValue, c.value),
211
+ onClick: () => o.handleItemChange(g(w)(o.modelValue, c.value), c),
213
212
  onVnodeMounted: (_) => {
214
213
  var s, t;
215
- return g(U)(o.modelValue, c.value) && ((s = _.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (t = _.el) == null || t.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
214
+ return g(w)(o.modelValue, c.value) && ((s = _.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (t = _.el) == null || t.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
216
215
  }
217
216
  }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
218
- i.value.length ? N("", !0) : (L(), V(h, {
217
+ l.value.length ? N("", !0) : (L(), V(h, {
219
218
  key: 0,
220
219
  disabled: "",
221
220
  label: "No options available"
@@ -226,7 +225,7 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ie = /* @__PURE__ */ z({
226
225
  }
227
226
  });
228
227
  export {
229
- ie as _,
230
- re as c,
231
- ae as u
228
+ ae as _,
229
+ ne as c,
230
+ re as u
232
231
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as I, computed as g, ref as z, resolveComponent as h, openBlock as n, createElementBlock as y, createVNode as _, withCtx as L, createElementVNode as f, toDisplayString as Y, unref as u, createBlock as p, createCommentVNode as w, Fragment as $, renderList as R, watch as E, mergeModels as O, useModel as C, renderSlot as H, normalizeClass as S } from "vue";
2
2
  import { useCoreStore as W, useI18n as P } from "@feedmepos/mf-common";
3
- import { u as q } from "./app-xCn1wZY9.js";
4
- import { d as U } from "./date2-hHwvNr68.js";
3
+ import { u as q } from "./app-CaXDnJ-Z.js";
4
+ import { d as U } from "./date2-Dc5sFY0E.js";
5
5
  import { useBreakpoints as G } from "@feedmepos/ui-library";
6
6
  import { u as J, F as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
7
7
  import { b as A } from "./app-uBuHtW8m.js";
@@ -3,8 +3,8 @@ var De = (F, o, t) => o in F ? Ie(F, o, { enumerable: !0, configurable: !0, writ
3
3
  var me = (F, o, t) => De(F, typeof o != "symbol" ? o + "" : o, t);
4
4
  import { defineComponent as ge, computed as S, ref as L, watch as ke, openBlock as c, createElementBlock as h, normalizeStyle as j, Fragment as V, renderList as $, renderSlot as _e, createCommentVNode as O, useSlots as He, onMounted as $e, onUnmounted as Oe, reactive as q, resolveComponent as B, createElementVNode as I, createVNode as _, toDisplayString as ee, unref as H, createSlots as Ue, withCtx as w, createBlock as M, resolveDynamicComponent as fe, normalizeClass as he, withModifiers as Pe, Transition as Ee } from "vue";
5
5
  import { useDialogChild as Ke } from "@feedmepos/ui-library";
6
- import { x as be } from "./app-xCn1wZY9.js";
7
- import { d as Ne } from "./index-BX9ig-2t.js";
6
+ import { y as be } from "./app-CaXDnJ-Z.js";
7
+ import { d as Ne } from "./index-CikPk76E.js";
8
8
  /* empty css */
9
9
  import { useI18n as je } from "@feedmepos/mf-common";
10
10
  import { N as Ge, H as ye, b as ze } from "./app-uBuHtW8m.js";
@@ -1,7 +1,7 @@
1
1
  import { defineStore as p } from "pinia";
2
2
  import { useDialog as y } from "@feedmepos/ui-library";
3
3
  import { useI18n as v } from "@feedmepos/mf-common";
4
- import { a } from "./FmMultiselectDialog-8_qMKCPt.js";
4
+ import { a } from "./FmMultiselectDialog-ChsBeANW.js";
5
5
  import { h as S } from "vue";
6
6
  const w = p("inventoryMultiSelectDialog", () => {
7
7
  const l = y(), { t: n } = v();
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as ie, mergeModels as W, useModel as le, computed as v, ref as B, watch as E, onBeforeUnmount as ae, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as G, normalizeClass as j, toDisplayString as _, withDirectives as re, vModelText as me, createCommentVNode as I, createTextVNode as ce, createBlock as U, Fragment as de, renderList as pe } from "vue";
2
- import { l as fe } from "./lodash-Cqi23PoA.js";
3
- import { s as D } from "./app-xCn1wZY9.js";
4
- import { I as R, g as O, d as ve, a as M, c as be, t as ye, f as he, p as Me, b as ge, u as xe } from "./rules-C_FnXd1e.js";
2
+ import { l as fe } from "./lodash-rwAZ9bXl.js";
3
+ import { s as D } from "./app-CaXDnJ-Z.js";
4
+ import { I as R, g as O, d as ve, a as M, c as be, t as ye, f as he, p as Me, b as ge, u as xe } from "./rules-81GqVkEm.js";
5
5
  import "@feedmepos/ui-library";
6
6
  function H() {
7
7
  return {
@@ -2,14 +2,14 @@ import { defineComponent as De, ref as F, computed as J, watch as ze, resolveCom
2
2
  import { u as Ve, _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
3
3
  import { useCoreStore as Re, useI18n as je } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as We, useSnackbar as Oe, useDialog as Le, useBreakpoints as Je } from "@feedmepos/ui-library";
5
- import { u as Xe } from "./feature-UnTx1VJG.js";
6
- import { a as ie } from "./app-xCn1wZY9.js";
7
- import "./dayjs.min-PqgQ_K75.js";
5
+ import { u as Xe } from "./feature-BsDnCbpL.js";
6
+ import { a as ie } from "./app-CaXDnJ-Z.js";
7
+ import "./dayjs.min-B-H7eU1F.js";
8
8
  import "./app-uBuHtW8m.js";
9
- import { s as He, a as qe, d as Qe, t as Ce, r as Ye } from "./xlsx.util-DGBUU4BN.js";
10
- import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-BAUfb01o.js";
9
+ import { s as He, a as qe, d as Qe, t as Ce, r as Ye } from "./xlsx.util-BawfHUuI.js";
10
+ import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-DaGtyevy.js";
11
11
  import { r as nt } from "./random-CSbEbElR.js";
12
- import { d as Ae, a as pe } from "./rules-C_FnXd1e.js";
12
+ import { d as Ae, a as pe } from "./rules-81GqVkEm.js";
13
13
  import { F as ot } from "./FmDroppableField-J0xUsOTV.js";
14
14
  function Ee() {
15
15
  return `measurement_${(/* @__PURE__ */ new Date()).toISOString()}_${nt()}`;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
2
- import { a, f as y } from "./rules-C_FnXd1e.js";
2
+ import { a, f as y } from "./rules-81GqVkEm.js";
3
3
  import { useI18n as _ } from "@feedmepos/mf-common";
4
4
  const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
5
5
  class: "flex-0 py-8 px-16",
@@ -1,5 +1,5 @@
1
- import { ref as A, computed as G, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as F, createElementBlock as B, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
2
- import { a as L, c as z, j as oe, u as Re } from "./app-xCn1wZY9.js";
1
+ import { ref as A, computed as G, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as F, createElementBlock as B, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ge, createCommentVNode as se, isRef as ye, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
2
+ import { a as L, c as z, j as oe, u as Re } from "./app-CaXDnJ-Z.js";
3
3
  import { useDialog as Ie, useSnackbar as Y, components as U, useProxiedModel as Se, useBreakpoints as Fe } from "@feedmepos/ui-library";
4
4
  import { F as S } from "./form-mode.enum-BKiNVH6A.js";
5
5
  import { useI18n as P, useCoreStore as Ge } from "@feedmepos/mf-common";
@@ -7,11 +7,11 @@ import { defineStore as ue, storeToRefs as ae } from "pinia";
7
7
  import { D as le, R as K } from "./row-action.enum-BcW_L_nE.js";
8
8
  import { c as Ve, _ as Ce, F as ie } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
9
9
  import { u as De, _ as Ae } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
10
- import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnMjbyPc.js";
11
- import { d as de } from "./defineDeepModel-CTlh0zvq.js";
12
- import { I as Te, A as Ee, U as Me, R as ce } from "./rules-C_FnXd1e.js";
10
+ import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B05RFZv-.js";
11
+ import { d as de } from "./defineDeepModel-CXxtm-xp.js";
12
+ import { I as Te, A as Ee, U as Me, R as ce } from "./rules-81GqVkEm.js";
13
13
  import { x as Ue, N as Be, b as ze } from "./app-uBuHtW8m.js";
14
- import { u as Le } from "./FmMultiselectDialog-vj94RVLU.js";
14
+ import { u as Le } from "./FmMultiselectDialog-i1uk7uNx.js";
15
15
  import { r as me } from "./random-CSbEbElR.js";
16
16
  import { u as Pe, R as Ne } from "./usePromise-CbVUCxhj.js";
17
17
  const H = ue(
@@ -48,12 +48,12 @@ const H = ue(
48
48
  message: `Deleted ${u.name}`,
49
49
  type: "success"
50
50
  });
51
- } catch (y) {
51
+ } catch (g) {
52
52
  f.open({
53
53
  title: `Cannot delete ${u.name}`,
54
54
  message: "Please try again.",
55
55
  type: "error"
56
- }), console.error("failed to delete ingredient", y);
56
+ }), console.error("failed to delete ingredient", g);
57
57
  } finally {
58
58
  m.value = !1, r();
59
59
  }
@@ -76,14 +76,14 @@ const H = ue(
76
76
  }
77
77
  function s() {
78
78
  }
79
- function g() {
79
+ function y() {
80
80
  }
81
81
  return {
82
82
  createIngredientGroup: e,
83
83
  updateIngredientGroup: a,
84
84
  deleteIngredientGroup: n,
85
85
  importIngredientGroups: s,
86
- exportIngredientGroups: g,
86
+ exportIngredientGroups: y,
87
87
  ingredientGroupDialogProps: v
88
88
  };
89
89
  }
@@ -94,7 +94,7 @@ const H = ue(
94
94
  async function v() {
95
95
  _.value = !0;
96
96
  try {
97
- await k.readInventory();
97
+ await k.fetchData();
98
98
  } catch (t) {
99
99
  console.error("error on reading inventory", t), f.open({
100
100
  title: "Error",
@@ -382,12 +382,12 @@ function fe(o) {
382
382
  sublabel: t.code,
383
383
  value: t._id
384
384
  })), e = (o.skuRefs ?? []).map((t) => t._id), a = await _.multiSelect(v, e, (t) => {
385
- var s, g, u, m, r, y;
385
+ var s, y, u, m, r, g;
386
386
  const n = (s = o.skuRefs) == null ? void 0 : s.findIndex((w) => w._id === t);
387
387
  return {
388
388
  _id: t,
389
- trackingMeasurement: typeof n != "number" || n == -1 ? (g = f.skuById[t]) == null ? void 0 : g.trackingMeasurement : (m = (u = o.skuRefs) == null ? void 0 : u[n]) == null ? void 0 : m.trackingMeasurement,
390
- priority: ((y = (r = o.skuRefs) == null ? void 0 : r[n]) == null ? void 0 : y.priority) ?? o.skuRefs.length,
389
+ trackingMeasurement: typeof n != "number" || n == -1 ? (y = f.skuById[t]) == null ? void 0 : y.trackingMeasurement : (m = (u = o.skuRefs) == null ? void 0 : u[n]) == null ? void 0 : m.trackingMeasurement,
390
+ priority: ((g = (r = o.skuRefs) == null ? void 0 : r[n]) == null ? void 0 : g.priority) ?? o.skuRefs.length,
391
391
  default: !1
392
392
  };
393
393
  });
@@ -412,18 +412,18 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
412
412
  },
413
413
  setup(o) {
414
414
  const _ = o, { t: f } = P(), k = Ge(), i = G(() => {
415
- var g;
415
+ var y;
416
416
  const n = /* @__PURE__ */ new Map(), s = k.restaurants.value.map((u) => u.customAttributes ?? {});
417
417
  for (const u of s)
418
418
  for (const [m, r] of Object.entries(u))
419
- n.has(m) || n.set(m, /* @__PURE__ */ new Set()), r && ((g = n.get(m)) == null || g.add(r));
419
+ n.has(m) || n.set(m, /* @__PURE__ */ new Set()), r && ((y = n.get(m)) == null || y.add(r));
420
420
  return n;
421
421
  }), v = G(() => [
422
- ...[...i.value.entries()].map(([s, g]) => ({
422
+ ...[...i.value.entries()].map(([s, y]) => ({
423
423
  type: "string",
424
424
  key: s,
425
425
  entity: "restaurant",
426
- values: [...g]
426
+ values: [...y]
427
427
  }))
428
428
  ]), e = de("modelValue", {
429
429
  get default() {
@@ -457,11 +457,11 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
457
457
  allowOverride: !1
458
458
  });
459
459
  return (n, s) => {
460
- const g = R("FmTextField"), u = R("FmLabel"), m = R("FmFormGroup"), r = R("FmTable");
460
+ const y = R("FmTextField"), u = R("FmLabel"), m = R("FmFormGroup"), r = R("FmTable");
461
461
  return F(), B("div", Ke, [
462
- b(g, {
462
+ b(y, {
463
463
  modelValue: l(e).name,
464
- "onUpdate:modelValue": s[0] || (s[0] = (y) => l(e).name = y),
464
+ "onUpdate:modelValue": s[0] || (s[0] = (g) => l(e).name = g),
465
465
  label: l(f)("inventory.ingredientGroup.form.rules.name"),
466
466
  "label-mark": "required",
467
467
  rules: [l(ce)()]
@@ -474,16 +474,16 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
474
474
  }, null, 8, ["label"]),
475
475
  b(l(ze), {
476
476
  modelValue: a.value,
477
- "onUpdate:modelValue": s[1] || (s[1] = (y) => a.value = y),
477
+ "onUpdate:modelValue": s[1] || (s[1] = (g) => a.value = g),
478
478
  attributes: v.value
479
479
  }, null, 8, ["modelValue", "attributes"])
480
480
  ]),
481
481
  b(m, {
482
482
  "model-value": a.value,
483
483
  rules: [
484
- (y) => {
484
+ (g) => {
485
485
  var w;
486
- return !!((w = y == null ? void 0 : y.rules) != null && w.length) || "At least one rule is required";
486
+ return !!((w = g == null ? void 0 : g.rules) != null && w.length) || "At least one rule is required";
487
487
  }
488
488
  ]
489
489
  }, null, 8, ["model-value", "rules"])
@@ -501,7 +501,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
501
501
  b(m, {
502
502
  "model-value": l(e).skuRefs,
503
503
  rules: [
504
- (y) => !!(y != null && y.length) || "At least one ingredient is required"
504
+ (g) => !!(g != null && g.length) || "At least one ingredient is required"
505
505
  ]
506
506
  }, null, 8, ["model-value", "rules"])
507
507
  ]),
@@ -521,7 +521,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
521
521
  }), Ze = { class: "flex flex-col gap-16" }, et = { class: "flex flex-col gap-16" }, tt = { class: "flex flex-col" }, nt = { class: "flex items-center" }, st = { class: "flex-1" }, ot = { class: "flex flex-col gap-8" }, at = { class: "flex-1 fm-typo-en-title-sm-600" }, lt = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary px-4" }, it = { class: "flex flex-col gap-16" }, rt = { class: "flex flex-col gap-8" }, ut = { class: "flex-1 fm-typo-en-title-sm-600" }, dt = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ct = { class: "flex flex-col gap-12" }, mt = { class: "flex items-center" }, ft = { class: "flex-1 fm-typo-en-body-lg-600 line-clamp-1" }, pt = { key: 0 }, vt = {
522
522
  key: 1,
523
523
  class: "fm-typo-en-body-lg-400"
524
- }, yt = /* @__PURE__ */ j({
524
+ }, gt = /* @__PURE__ */ j({
525
525
  __name: "IngredientGroupForm",
526
526
  props: {
527
527
  mode: {},
@@ -561,17 +561,17 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
561
561
  },
562
562
  set skuRefs(s) {
563
563
  i.defaultSkuRefs = s;
564
- const g = s.map((r) => r._id), u = i.rules;
564
+ const y = s.map((r) => r._id), u = i.rules;
565
565
  if (!u) return;
566
566
  const m = s.groupBy(
567
567
  (r) => r._id,
568
568
  (r) => r.trackingMeasurement
569
569
  );
570
570
  for (const r of u) {
571
- const y = r.skuRefs.filter((x) => g.includes(x._id)), w = s.filter(
572
- (x) => !y.some((I) => I._id === x._id)
571
+ const g = r.skuRefs.filter((x) => y.includes(x._id)), w = s.filter(
572
+ (x) => !g.some((I) => I._id === x._id)
573
573
  );
574
- r.skuRefs = [...y, ...w].map((x) => {
574
+ r.skuRefs = [...g, ...w].map((x) => {
575
575
  var I;
576
576
  return {
577
577
  ...x,
@@ -596,10 +596,10 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
596
596
  var s;
597
597
  return (s = n.value) == null ? void 0 : s.resetInputs();
598
598
  }
599
- }), (s, g) => {
600
- const u = R("FmTextField"), m = R("FmButton"), r = R("FmFormGroup"), y = R("FmTable"), w = R("FmCard"), x = R("FmForm");
599
+ }), (s, y) => {
600
+ const u = R("FmTextField"), m = R("FmButton"), r = R("FmFormGroup"), g = R("FmTable"), w = R("FmCard"), x = R("FmForm");
601
601
  return F(), M(x, {
602
- onValidationSuccess: g[2] || (g[2] = (I) => v("validation-success")),
602
+ onValidationSuccess: y[2] || (y[2] = (I) => v("validation-success")),
603
603
  ref_key: "formRef",
604
604
  ref: n,
605
605
  class: "flex flex-col gap-64"
@@ -613,13 +613,13 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
613
613
  "label-mark": "required",
614
614
  rules: [l(ce)()],
615
615
  modelValue: l(i).name,
616
- "onUpdate:modelValue": g[0] || (g[0] = (d) => l(i).name = d)
616
+ "onUpdate:modelValue": y[0] || (y[0] = (d) => l(i).name = d)
617
617
  }, null, 8, ["label", "rules", "modelValue"]),
618
618
  b(u, {
619
619
  label: l(e)("inventory.ingredientGroup.form.ref"),
620
620
  "label-mark": "optional",
621
621
  modelValue: l(i).ref,
622
- "onUpdate:modelValue": g[1] || (g[1] = (d) => l(i).ref = d)
622
+ "onUpdate:modelValue": y[1] || (y[1] = (d) => l(i).ref = d)
623
623
  }, null, 8, ["label", "modelValue"])
624
624
  ]),
625
625
  c("div", et, [
@@ -650,7 +650,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
650
650
  }, null, 8, ["model-value", "rules"])
651
651
  ]),
652
652
  c("div", null, [
653
- b(y, {
653
+ b(g, {
654
654
  "row-data": l(i).defaultSkuRefs ?? [],
655
655
  "column-defs": l(t).columnDefs,
656
656
  "column-visibility": l(t).columnVisibility,
@@ -675,7 +675,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
675
675
  c("div", ct, [
676
676
  c("div", mt, [
677
677
  c("div", ft, [
678
- ye($(l(e)("inventory.ingredientGroup.form.rules.rule_N", [p + 1])), 1),
678
+ ge($(l(e)("inventory.ingredientGroup.form.rules.rule_N", [p + 1])), 1),
679
679
  d.name ? (F(), B("span", pt, ": ")) : se("", !0),
680
680
  d.name ? (F(), B("span", vt, $(d.name), 1)) : se("", !0)
681
681
  ]),
@@ -713,7 +713,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
713
713
  }, 512);
714
714
  };
715
715
  }
716
- }), gt = {
716
+ }), yt = {
717
717
  key: 0,
718
718
  class: "text-fm-color-typo-primary fm-typo-en-body-lg-400"
719
719
  }, _t = { class: "flex gap-4" }, bt = /* @__PURE__ */ j({
@@ -755,7 +755,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
755
755
  n.value = p, s.value = p._id || `${Math.random()}`;
756
756
  }
757
757
  );
758
- const g = G(() => {
758
+ const y = G(() => {
759
759
  switch (_.mode) {
760
760
  case S.READ:
761
761
  return "";
@@ -776,7 +776,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
776
776
  }
777
777
  return "";
778
778
  }), m = A(), r = A(!1);
779
- async function y() {
779
+ async function g() {
780
780
  r.value = !0;
781
781
  const d = z(n.value);
782
782
  try {
@@ -825,15 +825,15 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
825
825
  case S.UPDATE:
826
826
  return w();
827
827
  case S.CREATE:
828
- return y();
828
+ return g();
829
829
  }
830
830
  }
831
831
  return (d, p) => {
832
832
  const h = R("FmButton"), V = R("FmSideSheet");
833
833
  return F(), M(V, {
834
834
  "model-value": l(a),
835
- "onUpdate:modelValue": p[3] || (p[3] = (D) => ge(a) ? a.value = D : null),
836
- header: g.value,
835
+ "onUpdate:modelValue": p[3] || (p[3] = (D) => ye(a) ? a.value = D : null),
836
+ header: y.value,
837
837
  "close-button": "",
838
838
  "dismiss-away": "",
839
839
  "max-width": 800
@@ -854,7 +854,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
854
854
  ])
855
855
  ]),
856
856
  default: T(() => [
857
- i.value ? (F(), M(yt, {
857
+ i.value ? (F(), M(gt, {
858
858
  menu: i.value,
859
859
  class: "w-full",
860
860
  ref_key: "hasValidationExpose",
@@ -865,7 +865,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
865
865
  mode: d.mode,
866
866
  disabled: r.value,
867
867
  onValidationSuccess: p[1] || (p[1] = (D) => I())
868
- }, null, 8, ["menu", "model-value", "mode", "disabled"])) : (F(), B("div", gt, "Loading.."))
868
+ }, null, 8, ["menu", "model-value", "mode", "disabled"])) : (F(), B("div", yt, "Loading.."))
869
869
  ]),
870
870
  _: 1
871
871
  }, 8, ["model-value", "header"]);
@@ -879,7 +879,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
879
879
  updateIngredientGroup: e,
880
880
  importIngredientGroups: a,
881
881
  exportIngredientGroups: t
882
- } = H(), { columnDefs: n, loading: s } = ae(Oe()), { ingredientGroupDialogProps: g } = ae(H());
882
+ } = H(), { columnDefs: n, loading: s } = ae(Oe()), { ingredientGroupDialogProps: y } = ae(H());
883
883
  function u(h) {
884
884
  switch (h) {
885
885
  case "add":
@@ -890,7 +890,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
890
890
  return t();
891
891
  }
892
892
  }
893
- const m = A(""), r = A(!1), y = G(() => r.value || s.value), { breakpoints: w } = Fe(), x = G(() => w.value.xs || w.value.sm), I = G(() => x.value ? 10 : 20), d = De(), p = G(() => [
893
+ const m = A(""), r = A(!1), g = G(() => r.value || s.value), { breakpoints: w } = Fe(), x = G(() => w.value.xs || w.value.sm), I = G(() => x.value ? 10 : 20), d = De(), p = G(() => [
894
894
  {
895
895
  label: i("inventory.ingredient.create.title"),
896
896
  value: "add",
@@ -927,7 +927,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
927
927
  "column-defs": l(n),
928
928
  "row-data": f.value,
929
929
  "search-value": m.value,
930
- loading: !l(k)._currentLocation || y.value,
930
+ loading: !l(k)._currentLocation || g.value,
931
931
  "loading-text": "Loading",
932
932
  onRowClick: V[1] || (V[1] = (E) => l(e)(E.original)),
933
933
  "page-size": I.value
@@ -971,7 +971,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
971
971
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
972
972
  ], 2),
973
973
  (F(), M(xe, { to: "body" }, [
974
- b(bt, he(we(l(g))), null, 16)
974
+ b(bt, he(we(l(y))), null, 16)
975
975
  ]))
976
976
  ]),
977
977
  _: 1