@feedmepos/mf-inventory-portal 0.0.25-dev.8 → 0.0.25-dev.9

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 (80) hide show
  1. package/dist/{App-CKLQeRNl.js → App-9zSE_swt.js} +35 -34
  2. package/dist/{ApprovalView-BWO2tkbO.js → ApprovalView-C2tg-wsm.js} +16 -16
  3. package/dist/{BindingsDialog-C0kTZLOn.js → BindingsDialog-eGbOIQkw.js} +6 -6
  4. package/dist/{BindingsPicker-DjcS3uTL.js → BindingsPicker-CVXrd29s.js} +11 -11
  5. package/dist/{BindingsTable-Ctpv958D.js → BindingsTable-CCsQEFnu.js} +5 -5
  6. package/dist/{ClosingDraftView-CsAPSZPc.js → ClosingDraftView-BI8b3CJ9.js} +47 -47
  7. package/dist/ClosingTemplateView-miJnC-ML.js +1859 -0
  8. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DJfBmiRt.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9un0wCK.js} +44 -44
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-qZ7Kx-KR.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BRSABJnM.js} +52 -52
  11. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeRvrF7O.js +51 -0
  12. package/dist/{IngredientGroupView-Dc3glXN3.js → IngredientGroupView-ZWCOAljO.js} +1 -1
  13. package/dist/{IngredientsView-btzrUQ1-.js → IngredientsView-5-pSX6y_.js} +16 -14
  14. package/dist/{IntegrationView-DO1SF1Ca.js → IntegrationView-DO3Ambro.js} +1 -1
  15. package/dist/{InventoryBindingForm-_2p-YetL.js → InventoryBindingForm-BjtFP29c.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7ump1tl.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js} +53 -53
  17. package/dist/{InventoryBindingSummary-CEdLu3d9.js → InventoryBindingSummary-C6DkVX-B.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-kLdZ5acK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-nb1t6u2V.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Da0gmGST.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BcMAXo4F.js} +15 -15
  20. package/dist/{PublishView-CXTiPWIx.js → PublishView-DOMQdIJ7.js} +7 -7
  21. package/dist/{PurchaseOrderPrintPreview-DBviMTyA.js → PurchaseOrderPrintPreview-_MCAsdw9.js} +1 -1
  22. package/dist/{ReceiveRequestView-Ct1AQDGK.js → ReceiveRequestView-902hWGtz.js} +56 -55
  23. package/dist/{RecipeView-C0HiPNvf.js → RecipeView-dmmjklwh.js} +32 -31
  24. package/dist/{index-ro6xANOo.js → StockView-C4lEYLXU.js} +3577 -1764
  25. package/dist/{SupplierView-th75_ohq.js → SupplierView-CO5460uC.js} +12 -11
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-n7fH8GRs.js → TransferDetails.vue_vue_type_script_setup_true_lang-D6sZDCEY.js} +186 -185
  27. package/dist/TransferTemplateView-C9UwNTnY.js +1371 -0
  28. package/dist/{UnitView-lnoMsoBN.js → UnitView-DbYzxCXF.js} +14 -14
  29. package/dist/{WarehouseView-ChXcNnmp.js → WarehouseView-BII4SEVC.js} +332 -314
  30. package/dist/api/inventory.d.ts +7 -6
  31. package/dist/{app-B4RHEuan.js → app-IM1yJnE8.js} +15087 -15907
  32. package/dist/app.js +1 -1
  33. package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
  34. package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
  35. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  36. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  37. package/dist/{decimal-BocxWSo6.js → decimal-DQUpCN-B.js} +1 -1
  38. package/dist/feature-DMBVVBsQ.js +1005 -0
  39. package/dist/{format-unit-display-E_NtfEtV.js → format-unit-display-COuIZISg.js} +242 -238
  40. package/dist/helper/fuzzy.d.ts +1 -1
  41. package/dist/index-CIrsMt6f.js +35546 -0
  42. package/dist/{stock-DpmweZQd.js → stock-BJUTiXXk.js} +3 -3
  43. package/dist/stores/inventory.d.ts +8 -8
  44. package/dist/stores/location.d.ts +9 -0
  45. package/dist/stores/warehouse.d.ts +1 -0
  46. package/dist/{supplier--P-eubcS.js → supplier-CM-qQVyI.js} +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{use-ingredient-select-dialog-C7WZf5D4.js → use-ingredient-select-dialog-Cn79xFNg.js} +3 -4
  49. package/dist/{use-inventory-binding-dialog-DW_kAtLh.js → use-inventory-binding-dialog-zwOG19YV.js} +1 -1
  50. package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
  51. package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
  52. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  53. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  54. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  55. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
  56. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
  57. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
  58. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  59. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  60. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  61. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +25 -17
  62. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  63. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  64. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +36 -24
  65. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +36 -24
  66. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  67. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
  68. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
  69. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  70. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +36 -12
  71. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +36 -12
  72. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
  73. package/dist/{vue-i18n-SeWrkOlu.js → vue-i18n-CzPFJ9JY.js} +134 -134
  74. package/package.json +3 -3
  75. package/dist/ClosingTemplateView-D0HWVhk3.js +0 -1804
  76. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-BF0lKP9Y.js +0 -142
  77. package/dist/StockView-BG8jsV_X.js +0 -1817
  78. package/dist/TransferTemplateView-Dcz6xGR_.js +0 -1269
  79. package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
  80. package/dist/index-B-MhJgPv.js +0 -29202
@@ -0,0 +1,34 @@
1
+ import { defineComponent as m, computed as a, openBlock as p, createElementBlock as d, createElementVNode as c, createVNode as f, unref as l, isRef as v, createCommentVNode as y } from "vue";
2
+ import { useProxiedModel as V } from "@feedmepos/ui-library";
3
+ import { useCoreStore as g, CustomAttributesForm as C } from "@feedmepos/mf-common";
4
+ const S = {
5
+ key: 0,
6
+ class: "flex flex-col gap-16"
7
+ }, x = /* @__PURE__ */ m({
8
+ __name: "FmCustomAttribute",
9
+ props: {
10
+ entity: {},
11
+ modelValue: {},
12
+ valueOptions: {}
13
+ },
14
+ setup(s) {
15
+ const r = s, o = V(r, "modelValue"), u = g(), i = a(() => {
16
+ var t, e;
17
+ return ((e = (t = u.currentBusiness.value) == null ? void 0 : t.attributeSettings) == null ? void 0 : e.filter(
18
+ (n) => String(n.entity) === String(r.entity)
19
+ )) || [];
20
+ });
21
+ return (t, e) => i.value.length ? (p(), d("div", S, [
22
+ e[1] || (e[1] = c("div", { class: "fm-typo-en-title-sm-600" }, "Custom attributes", -1)),
23
+ f(l(C), {
24
+ entity: t.entity,
25
+ modelValue: l(o),
26
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => v(o) ? o.value = n : null),
27
+ "value-options": t.valueOptions
28
+ }, null, 8, ["entity", "modelValue", "value-options"])
29
+ ])) : y("", !0);
30
+ }
31
+ });
32
+ export {
33
+ x as _
34
+ };
@@ -1,32 +1,32 @@
1
- import { j as T, t as I, ao as w, u as R, at as B, aD as H, aE as D, aF as U } from "./app-B4RHEuan.js";
2
- import { u as z } from "./supplier--P-eubcS.js";
3
- import { P as F } from "./format-unit-display-E_NtfEtV.js";
4
- import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as V, openBlock as S, createElementBlock as N, normalizeStyle as $, createElementVNode as O, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as A, Fragment as Q, renderList as X, unref as M } from "vue";
1
+ import { i as T, t as R, as as w, u as B, ax as E, aH as H, aI as z, aJ as U } from "./app-IM1yJnE8.js";
2
+ import { u as D } from "./supplier-CM-qQVyI.js";
3
+ import { P as F } from "./format-unit-display-COuIZISg.js";
4
+ import { computed as f, defineComponent as x, mergeModels as j, useModel as q, ref as W, resolveComponent as V, openBlock as S, createElementBlock as I, normalizeStyle as $, createElementVNode as N, createVNode as J, withCtx as K, createBlock as g, createCommentVNode as O, Fragment as Q, renderList as X, unref as M } from "vue";
5
5
  function Y(t, i, a) {
6
- var o;
7
- if (!!i.measurement === !!a && ((o = i.measurement) == null ? void 0 : o.id) === a)
6
+ var s;
7
+ if (!!i.measurement === !!a && ((s = i.measurement) == null ? void 0 : s.id) === a)
8
8
  return i;
9
9
  if (!a)
10
10
  return {
11
11
  costPerUnit: i.costPerUnit
12
12
  };
13
- const s = t.measurements.find((p) => p.id === a);
14
- return s ? {
13
+ const o = t.measurements.find((p) => p.id === a);
14
+ return o ? {
15
15
  costPerUnit: i.costPerUnit,
16
- measurement: s
16
+ measurement: o
17
17
  } : {
18
18
  costPerUnit: i.costPerUnit
19
19
  };
20
20
  }
21
- function oe(t, i, a, l) {
21
+ function se(t, i, a, l) {
22
22
  var P, _, n;
23
23
  if (l != null && l.manualTotalCost)
24
24
  return l == null ? void 0 : l.manualTotalCost;
25
25
  const u = (n = (_ = (P = l == null ? void 0 : l.supplier) == null ? void 0 : P.supplyItems) == null ? void 0 : _.find(
26
26
  (e) => e.skuId === t._id
27
- )) == null ? void 0 : n.defaultCost, s = t.defaultCost ? Y(t.unit, t.defaultCost, t.trackingMeasurement) : void 0, o = u ?? s, p = o == null ? void 0 : o.costPerUnit, y = p ? o != null && o.measurement ? +T(p) / +T(o == null ? void 0 : o.measurement.conversion) : +T(p) : void 0, v = y ? a ? y * +T(a.conversion) : y : void 0, h = v ? +T(i) * v : void 0;
27
+ )) == null ? void 0 : n.defaultCost, o = t.defaultCost ? Y(t.unit, t.defaultCost, t.trackingMeasurement) : void 0, s = u ?? o, p = s == null ? void 0 : s.costPerUnit, y = p ? s != null && s.measurement ? +T(p) / +T(s == null ? void 0 : s.measurement.conversion) : +T(p) : void 0, v = y ? a ? y * +T(a.conversion) : y : void 0, h = v ? +T(i) * v : void 0;
28
28
  return h ? {
29
- ...I(h ?? 0, 2),
29
+ ...R(h ?? 0, 2),
30
30
  currency: w()
31
31
  } : {
32
32
  amount: 0,
@@ -55,20 +55,20 @@ function L(t) {
55
55
  }
56
56
  };
57
57
  }
58
- function se(t, i, a = !1, l = !1) {
59
- const u = z(), s = R();
60
- s.watchLocation(async () => {
58
+ function oe(t, i, a = !1, l = !1) {
59
+ const u = D(), o = B();
60
+ o.watchLocation(async () => {
61
61
  var b;
62
62
  await u.readSuppliers();
63
63
  const n = t();
64
64
  if ((b = n.supplier) != null && b._id) return;
65
- const e = l ? u.suppliers[0] : u.businessSuppliers[0], r = (a ? s.locations.filter((m) => m.doc._id !== s.currentLocation.doc._id) : s.locations)[0];
65
+ const e = l ? u.suppliers[0] : u.businessSuppliers[0], r = (a ? o.locations.filter((m) => m.doc._id !== o.currentLocation.doc._id) : o.locations)[0];
66
66
  i({
67
67
  ...n,
68
68
  supplier: e ? k(e) : r ? L(r) : n.supplier
69
69
  });
70
70
  });
71
- const o = f(
71
+ const s = f(
72
72
  () => {
73
73
  var n, e;
74
74
  return typeof ((e = (n = t()) == null ? void 0 : n.supplier) == null ? void 0 : e.internal) == "string" ? F.TRANSFER : F.PURCHASE;
@@ -80,15 +80,15 @@ function se(t, i, a = !1, l = !1) {
80
80
  },
81
81
  set(n) {
82
82
  const e = t() ?? {};
83
- if (o.value === F.PURCHASE) {
84
- const C = (l ? u.suppliers : u.businessSuppliers).find((E) => E._id === n);
83
+ if (s.value === F.PURCHASE) {
84
+ const C = (l ? u.suppliers : u.businessSuppliers).find((A) => A._id === n);
85
85
  i({
86
86
  ...e,
87
87
  supplier: C ? k(C) : e.supplier
88
88
  });
89
89
  return;
90
90
  }
91
- const b = (a ? s.locations.filter((m) => m.doc._id !== s.currentLocation.doc._id) : s.locations).find((m) => m.doc._id === n);
91
+ const b = (a ? o.locations.filter((m) => m.doc._id !== o.currentLocation.doc._id) : o.locations).find((m) => m.doc._id === n);
92
92
  i({
93
93
  ...e,
94
94
  supplier: b ? L(b) : e.supplier
@@ -99,10 +99,10 @@ function se(t, i, a = !1, l = !1) {
99
99
  return l ? [...e, ...n] : e;
100
100
  }), c = f(() => {
101
101
  var d;
102
- const n = ((d = s._currentLocation) == null ? void 0 : d.type) === B.warehouse;
103
- return (a ? s.locations.filter((r) => r.doc._id !== s.currentLocation.doc._id) : s.locations).filter((r) => n || r.acceptRequest).map(L);
102
+ const n = ((d = o._currentLocation) == null ? void 0 : d.type) === E.warehouse;
103
+ return (a ? o.locations.filter((r) => r.doc._id !== o.currentLocation.doc._id) : o.locations).filter((r) => n || r.acceptRequest).map(L);
104
104
  }), P = f(() => {
105
- if (o.value === F.PURCHASE) {
105
+ if (s.value === F.PURCHASE) {
106
106
  const e = y.value.map((r) => ({
107
107
  label: r.name,
108
108
  value: r._id
@@ -121,11 +121,11 @@ function se(t, i, a = !1, l = !1) {
121
121
  }), _ = f(() => {
122
122
  var r, b;
123
123
  const n = (b = (r = t()) == null ? void 0 : r.supplier) == null ? void 0 : b._id;
124
- if (o.value === F.PURCHASE) {
124
+ if (s.value === F.PURCHASE) {
125
125
  const m = u.suppliers.find((C) => C._id === n);
126
126
  return m ? k(m) : null;
127
127
  }
128
- const d = s.locations.find((m) => m.doc._id);
128
+ const d = o.locations.find((m) => m.doc._id);
129
129
  return d ? L(d) : null;
130
130
  });
131
131
  return {
@@ -137,9 +137,9 @@ function se(t, i, a = !1, l = !1) {
137
137
  selectedLocation: _
138
138
  };
139
139
  }
140
- const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
140
+ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ x({
141
141
  __name: "FmFilterableMenuOptions",
142
- props: /* @__PURE__ */ q({
142
+ props: /* @__PURE__ */ j({
143
143
  modelValue: {},
144
144
  maxHeight: {},
145
145
  width: {},
@@ -152,19 +152,19 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
152
152
  }),
153
153
  emits: ["update:search"],
154
154
  setup(t) {
155
- const i = t, a = x(t, "search"), l = f(
156
- () => new D(i.items, ["label", "sublabel"], i.options)
157
- ), u = f(() => l.value.search(a.value)), s = W();
158
- return console.log({ stickyRef: s }), (o, p) => {
155
+ const i = t, a = q(t, "search"), l = f(
156
+ () => new z(i.items, ["label", "sublabel"], i.options)
157
+ ), u = f(() => l.value.search(a.value)), o = W();
158
+ return console.log({ stickyRef: o }), (s, p) => {
159
159
  const y = V("FmButton"), v = V("FmTextField"), h = V("FmMenuItem");
160
- return S(), N("div", {
160
+ return S(), I("div", {
161
161
  class: "relative",
162
- style: $({ width: o.width })
162
+ style: $({ width: s.width })
163
163
  }, [
164
- O("div", {
164
+ N("div", {
165
165
  class: "sticky top-0 bg-white mb-8",
166
166
  ref_key: "stickyRef",
167
- ref: s
167
+ ref: o
168
168
  }, [
169
169
  J(v, {
170
170
  modelValue: a.value,
@@ -177,24 +177,24 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
177
177
  variant: "tertiary",
178
178
  "prepend-icon": "close",
179
179
  onClick: p[0] || (p[0] = (c) => a.value = "")
180
- })) : A("", !0)
180
+ })) : O("", !0)
181
181
  ]),
182
182
  _: 1
183
183
  }, 8, ["modelValue"])
184
184
  ], 512),
185
- O("div", Z, [
186
- (S(!0), N(Q, null, X(u.value, (c, P) => (S(), g(h, {
185
+ N("div", Z, [
186
+ (S(!0), I(Q, null, X(u.value, (c, P) => (S(), g(h, {
187
187
  key: P,
188
188
  label: c.label,
189
189
  sublabel: c.sublabel,
190
- "model-value": M(U)(o.modelValue, c.value),
191
- onClick: () => o.handleItemChange(M(U)(o.modelValue, c.value), c),
190
+ "model-value": M(U)(s.modelValue, c.value),
191
+ onClick: () => s.handleItemChange(M(U)(s.modelValue, c.value), c),
192
192
  onVnodeMounted: (_) => {
193
193
  var n, e;
194
- return M(U)(o.modelValue, c.value) && ((n = _.el) == null || n.scrollIntoView({ behavior: "instant", block: "end" }), (e = _.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
194
+ return M(U)(s.modelValue, c.value) && ((n = _.el) == null || n.scrollIntoView({ behavior: "instant", block: "end" }), (e = _.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
195
195
  }
196
196
  }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
197
- u.value.length ? A("", !0) : (S(), g(h, {
197
+ u.value.length ? O("", !0) : (S(), g(h, {
198
198
  key: 0,
199
199
  disabled: "",
200
200
  label: "No options available"
@@ -206,6 +206,6 @@ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
206
206
  });
207
207
  export {
208
208
  ae as _,
209
- oe as c,
210
- se as u
209
+ se as c,
210
+ oe as u
211
211
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as oe, mergeModels as z, useModel as se, computed as v, ref as P, watch as O, inject as ie, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as g, renderSlot as T, normalizeClass as V, toDisplayString as x, withDirectives as le, vModelText as ae, createCommentVNode as q, createTextVNode as ue, createBlock as W, Fragment as re, renderList as me } from "vue";
2
- import { $ as I, I as k, P as L, L as ce, j as M, aB as de, t as pe, K as fe, ah as ve, az as be, ay as ye } from "./app-B4RHEuan.js";
1
+ import { defineComponent as oe, mergeModels as j, useModel as se, computed as v, ref as P, watch as z, inject as ie, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as M, withCtx as g, renderSlot as T, normalizeClass as V, toDisplayString as F, withDirectives as le, vModelText as ae, createCommentVNode as q, createTextVNode as ue, createBlock as W, Fragment as re, renderList as me } from "vue";
2
+ import { Z as I, I as k, O as L, K as ce, i as h, aF as de, t as pe, J as fe, al as ve, aD as be, aC as ye } from "./app-IM1yJnE8.js";
3
3
  import "@feedmepos/ui-library";
4
4
  function E() {
5
5
  return {
@@ -26,10 +26,10 @@ function G(l, d = !1) {
26
26
  const s = H()(r);
27
27
  if (s != !0)
28
28
  return d ? s : !0;
29
- const F = typeof l == "number" ? l : L(l, r.modelValue.measurement);
30
- return ce(+r.amountAsString).precision > F ? `Cannot exceed precision more than ${M({
29
+ const x = typeof l == "number" ? l : L(l, r.modelValue.measurement);
30
+ return ce(+r.amountAsString).precision > x ? `Cannot exceed precision more than ${h({
31
31
  amount: 1,
32
- precision: F
32
+ precision: x
33
33
  })}` : !0;
34
34
  };
35
35
  }
@@ -39,24 +39,24 @@ function Le(l) {
39
39
  return d(r.modelValue.amount);
40
40
  };
41
41
  }
42
- const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { class: "flex-1" }, xe = { class: "flex items-center gap-4" }, Fe = { class: "flex-1 flex gap-4" }, Ae = { class: "shrink-0 grow basis-2/5" }, _e = {
42
+ const Me = { class: "flex flex-col" }, he = { class: "flex flex-col" }, ge = { class: "flex-1" }, Fe = { class: "flex items-center gap-4" }, xe = { class: "flex-1 flex gap-4" }, Ae = { class: "shrink-0 grow basis-2/5" }, _e = {
43
43
  key: 0,
44
44
  class: "text-fm-color-typo-secondary"
45
45
  }, Pe = {
46
46
  key: 0,
47
47
  class: "line-clamp-1 text-ellipsis break-all"
48
- }, Ie = { class: "flex items-center gap-4" }, ke = { class: "line-clamp-1 text-ellipsis break-all" }, Be = { class: "max-w-[200px] flex flex-col gap-[1px]" }, De = {
48
+ }, Ie = { class: "flex items-center gap-4" }, ke = { class: "line-clamp-1 text-ellipsis break-all" }, De = { class: "max-w-[200px] flex flex-col gap-[1px]" }, Be = {
49
49
  key: 1,
50
50
  class: "flex flex-col gap-4 pl-8 shrink-0"
51
51
  }, Re = {
52
52
  class: "flex items-center",
53
53
  style: { "pointer-events": "none" }
54
- }, Ue = {
54
+ }, Ce = {
55
55
  class: "flex items-center",
56
56
  style: { "pointer-events": "none" }
57
- }, $e = /* @__PURE__ */ oe({
57
+ }, Oe = /* @__PURE__ */ oe({
58
58
  __name: "FmUnitInput",
59
- props: /* @__PURE__ */ z({
59
+ props: /* @__PURE__ */ j({
60
60
  modelValue: {},
61
61
  unit: {},
62
62
  rules: {},
@@ -103,27 +103,27 @@ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { c
103
103
  modelValue: {},
104
104
  modelModifiers: {}
105
105
  }),
106
- emits: /* @__PURE__ */ z(["update:amount", "update:measurement"], ["update:modelValue"]),
106
+ emits: /* @__PURE__ */ j(["update:amount", "update:measurement"], ["update:modelValue"]),
107
107
  setup(l, { emit: d }) {
108
- const t = l, r = d, s = se(l, "modelValue"), F = k(), B = v(() => {
108
+ const t = l, r = d, s = se(l, "modelValue"), x = k(), D = v(() => {
109
109
  var n;
110
110
  return L(t.unit, (n = s.value) == null ? void 0 : n.measurement);
111
111
  }), c = P((() => {
112
112
  var o;
113
113
  const e = ((o = s.value) == null ? void 0 : o.amount) ?? I.reset(), n = be(e), i = t.formatMinimumPrecision ?? n.precision, a = ye(n, i);
114
- return M(a);
114
+ return h(a);
115
115
  })());
116
- O(c, (e) => {
117
- const n = F(e), i = t.precision ?? B.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
116
+ z(c, (e) => {
117
+ const n = x(e), i = t.precision ?? D.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
118
118
  n == !0 && (s.value = {
119
119
  ...s.value,
120
120
  amount: pe(+e, o)
121
121
  }), r("update:amount", e);
122
122
  });
123
- const Z = Symbol.for("fm:form-state"), D = ie(Z, null), A = v(() => t.disabled ?? (D == null ? void 0 : D.getDisabled()) ?? !1), J = P(), R = P(!1), $ = P(!1), Q = v(() => R.value || $.value), X = v(() => {
123
+ const J = Symbol.for("fm:form-state"), B = ie(J, null), A = v(() => t.disabled ?? (B == null ? void 0 : B.getDisabled()) ?? !1), K = P(), R = P(!1), O = P(!1), Q = v(() => R.value || O.value), X = v(() => {
124
124
  var a;
125
- const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +M(o.conversion) != 1).groupBy(
126
- (o) => `${o.abbrev}${M(o.conversion)}`
125
+ const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +h(o.conversion) != 1).groupBy(
126
+ (o) => `${o.abbrev}${h(o.conversion)}`
127
127
  ).values()].map((o) => o[0]).flat();
128
128
  return [
129
129
  {
@@ -135,7 +135,7 @@ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { c
135
135
  value: o.id
136
136
  }))
137
137
  ];
138
- }), U = v({
138
+ }), C = v({
139
139
  get() {
140
140
  var e, n;
141
141
  return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.id) ?? null;
@@ -155,7 +155,7 @@ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { c
155
155
  }
156
156
  }
157
157
  });
158
- O(U, (e, n) => {
158
+ z(C, (e, n) => {
159
159
  var m;
160
160
  if (!t.convertAmountOnChangeUnit)
161
161
  return;
@@ -163,9 +163,9 @@ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { c
163
163
  value: w,
164
164
  precision: N
165
165
  });
166
- c.value = M(S);
166
+ c.value = h(S);
167
167
  });
168
- const C = v(() => {
168
+ const U = v(() => {
169
169
  var e, n;
170
170
  return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.abbrev) ?? t.unit.abbrev;
171
171
  }), Y = v(
@@ -179,39 +179,39 @@ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { c
179
179
  H(),
180
180
  typeof t.precision == "number" ? G(t.precision) : G(t.unit)
181
181
  ] : [], ...Y.value]);
182
- function j(e) {
183
- const n = t.precision ?? B.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(a), p = o.includes(".") ? o.replace(/0+$/, "") : o;
182
+ function $(e) {
183
+ const n = t.precision ?? D.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(a), p = o.includes(".") ? o.replace(/0+$/, "") : o;
184
184
  return p.endsWith(".") ? p.slice(0, p.length - 1) : p;
185
185
  }
186
186
  function te() {
187
187
  if (!t.stepper)
188
188
  return;
189
- const e = +c.value + +M(t.stepper);
190
- c.value = j(e);
189
+ const e = +c.value + +h(t.stepper);
190
+ c.value = $(e);
191
191
  }
192
192
  function ne() {
193
193
  if (!t.stepper)
194
194
  return;
195
- const e = +c.value - +M(t.stepper);
196
- c.value = j(e);
195
+ const e = +c.value - +h(t.stepper);
196
+ c.value = $(e);
197
197
  }
198
198
  return (e, n) => {
199
199
  const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), p = b("FmMenu"), w = b("FmTooltip"), N = b("FmField"), S = b("FmFormGroup");
200
- return f(), y("div", he, [
201
- u("div", Me, [
200
+ return f(), y("div", Me, [
201
+ u("div", he, [
202
202
  u("div", ge, [
203
- h(i, {
203
+ M(i, {
204
204
  label: e.label,
205
205
  disabled: e.disabled,
206
206
  required: e.labelMark === "required",
207
207
  optional: e.labelMark === "optional"
208
208
  }, null, 8, ["label", "disabled", "required", "optional"])
209
209
  ]),
210
- h(N, { focused: Q.value }, {
210
+ M(N, { focused: Q.value }, {
211
211
  default: g(() => [
212
- u("div", xe, [
212
+ u("div", Fe, [
213
213
  T(e.$slots, "prepend"),
214
- u("div", Fe, [
214
+ u("div", xe, [
215
215
  u("div", Ae, [
216
216
  e.stepperOnly ? (f(), y("span", {
217
217
  key: 0,
@@ -220,11 +220,11 @@ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { c
220
220
  "text-fm-color-typo-primary": !A.value,
221
221
  "text-fm-color-typo-disabled": A.value
222
222
  })
223
- }, x(c.value), 3)) : le((f(), y("input", {
223
+ }, F(c.value), 3)) : le((f(), y("input", {
224
224
  key: 1,
225
225
  type: "text",
226
226
  ref_key: "inputRef",
227
- ref: J,
227
+ ref: K,
228
228
  onFocus: n[0] || (n[0] = () => R.value = !0),
229
229
  onBlur: n[1] || (n[1] = () => R.value = !1),
230
230
  "onUpdate:modelValue": n[2] || (n[2] = (m) => c.value = m),
@@ -237,35 +237,35 @@ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { c
237
237
  [ae, c.value]
238
238
  ])
239
239
  ]),
240
- e.separator ? (f(), y("div", _e, x(e.separator), 1)) : q("", !0),
240
+ e.separator ? (f(), y("div", _e, F(e.separator), 1)) : q("", !0),
241
241
  u("div", {
242
242
  class: V([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
243
243
  }, [
244
- h(w, { "z-index": 51 }, {
244
+ M(w, { "z-index": 51 }, {
245
245
  content: g(() => [
246
- ue(x(C.value), 1)
246
+ ue(F(U.value), 1)
247
247
  ]),
248
248
  default: g(() => [
249
- e.disableUnit ? (f(), y("div", Pe, x(C.value), 1)) : (f(), W(p, {
249
+ e.disableUnit ? (f(), y("div", Pe, F(U.value), 1)) : (f(), W(p, {
250
250
  key: 1,
251
- onMenuChanged: n[3] || (n[3] = (m) => $.value = m),
251
+ onMenuChanged: n[3] || (n[3] = (m) => O.value = m),
252
252
  "z-index": 500,
253
253
  placement: e.placement,
254
254
  disabled: e.disabled
255
255
  }, {
256
256
  "menu-button": g(() => [
257
257
  u("div", Ie, [
258
- u("div", ke, x(C.value), 1),
259
- h(a, { name: "keyboard_arrow_down" })
258
+ u("div", ke, F(U.value), 1),
259
+ M(a, { name: "keyboard_arrow_down" })
260
260
  ])
261
261
  ]),
262
262
  default: g(() => [
263
- u("div", Be, [
263
+ u("div", De, [
264
264
  (f(!0), y(re, null, me(X.value, (m) => (f(), W(o, {
265
265
  key: m.value ?? void 0,
266
266
  label: m.label,
267
- "model-value": m.value == U.value,
268
- onClick: (_) => U.value = m.value
267
+ "model-value": m.value == C.value,
268
+ onClick: (_) => C.value = m.value
269
269
  }, null, 8, ["label", "model-value", "onClick"]))), 128))
270
270
  ])
271
271
  ]),
@@ -275,13 +275,13 @@ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { c
275
275
  _: 1
276
276
  })
277
277
  ], 2),
278
- e.stepper ? (f(), y("div", De, [
278
+ e.stepper ? (f(), y("div", Be, [
279
279
  u("div", {
280
280
  class: "w-24 h-12 flex items-center justify-center fm-corner-radius-sm bg-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-200",
281
281
  onClick: te
282
282
  }, [
283
283
  u("div", Re, [
284
- h(a, {
284
+ M(a, {
285
285
  name: "expand_less",
286
286
  size: "md"
287
287
  })
@@ -291,8 +291,8 @@ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { c
291
291
  class: "w-24 h-12 flex items-center justify-center fm-corner-radius-sm bg-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-200",
292
292
  onClick: ne
293
293
  }, [
294
- u("div", Ue, [
295
- h(a, {
294
+ u("div", Ce, [
295
+ M(a, {
296
296
  name: "expand_more",
297
297
  size: "md"
298
298
  })
@@ -306,7 +306,7 @@ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { c
306
306
  _: 3
307
307
  }, 8, ["focused"])
308
308
  ]),
309
- h(S, {
309
+ M(S, {
310
310
  class: "flex-1",
311
311
  "model-value": { modelValue: s.value, amountAsString: String(c.value) },
312
312
  info: e.labelInfo,
@@ -320,7 +320,7 @@ const he = { class: "flex flex-col" }, Me = { class: "flex flex-col" }, ge = { c
320
320
  });
321
321
  export {
322
322
  Se as F,
323
- $e as _,
323
+ Oe as _,
324
324
  Ve as a,
325
325
  Le as b,
326
326
  H as c,
@@ -0,0 +1,51 @@
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 { i as a, J as y } from "./app-IM1yJnE8.js";
3
+ import { useI18n as _ } from "@feedmepos/mf-common";
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
+ class: "flex-0 py-8 px-16",
6
+ style: { "flex-basis": "120px" }
7
+ }, k = { class: "flex-1 py-8 px-16" }, B = {
8
+ key: 0,
9
+ class: "flex-0 py-8 px-16",
10
+ style: { "flex-basis": "120px" }
11
+ }, I = {
12
+ key: 1,
13
+ class: "flex-0 py-8 px-16",
14
+ style: { "flex-basis": "120px" }
15
+ }, A = /* @__PURE__ */ p({
16
+ __name: "IngredientBindedItem",
17
+ props: {
18
+ name: {},
19
+ bindings: {}
20
+ },
21
+ setup($) {
22
+ const { t: m } = _();
23
+ function c(e, i) {
24
+ var t;
25
+ if (e.measurement) {
26
+ const u = y(e.amount, e.measurement.conversion);
27
+ return `${a(u, !1)} ${(t = e.measurement) == null ? void 0 : t.abbrev}`;
28
+ }
29
+ return `${a(e.amount, !1)} ${i.abbrev}`;
30
+ }
31
+ function f(e) {
32
+ return e.unit !== void 0;
33
+ }
34
+ return (e, i) => (s(), n("div", v, [
35
+ r("div", g, [
36
+ r("div", h, o(e.name), 1),
37
+ r("div", b, o(l(m)("inventory.ingredient.bindedItems.amount")), 1)
38
+ ]),
39
+ (s(!0), n(d, null, x(e.bindings, (t) => (s(), n("div", {
40
+ key: t.id,
41
+ class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
42
+ }, [
43
+ r("div", k, o(t.name), 1),
44
+ f(t) ? (s(), n("div", B, o(c(t, t.unit)), 1)) : (s(), n("div", I, o(l(a)(t.amount, !1)), 1))
45
+ ]))), 128))
46
+ ]));
47
+ }
48
+ });
49
+ export {
50
+ A as _
51
+ };
@@ -1,5 +1,5 @@
1
1
  import { ref as C, computed as F, defineComponent as Y, resolveComponent as S, openBlock as M, createBlock as O, withCtx as R, createElementVNode as x, createVNode as g, unref as l, createElementBlock as ee, toDisplayString as j, createTextVNode as te, watch as ue, isRef as ce, normalizeClass as de, normalizeStyle as me, createSlots as pe, Teleport as fe, normalizeProps as ve, guardReactiveProps as ge } from "vue";
2
- import { a as J, e as h, f as B, h as ye, D as oe, i as Q, H as be, m as _e, A as xe, J as ne, p as se, u as ke, z as he, _ as we, B as Se, E as Ie, G as ae } from "./app-B4RHEuan.js";
2
+ import { a as J, d as h, e as B, f as ye, D as oe, h as Q, G as be, l as _e, A as xe, H as ne, o as se, u as ke, y as he, _ as we, z as Se, B as Ie, E as ae } from "./app-IM1yJnE8.js";
3
3
  import { useDialog as le, useSnackbar as Z, useProxiedModel as Fe, useBreakpoints as Ce } from "@feedmepos/ui-library";
4
4
  import { useI18n as W } from "@feedmepos/mf-common";
5
5
  import { defineStore as ie, storeToRefs as re } from "pinia";
@@ -1,16 +1,18 @@
1
1
  import { ref as j, defineComponent as oe, computed as S, resolveComponent as C, openBlock as f, createBlock as B, withCtx as V, createVNode as p, unref as m, createElementBlock as A, Fragment as Q, createElementVNode as u, createCommentVNode as Y, renderSlot as ce, createTextVNode as Ie, toDisplayString as D, normalizeClass as X, onMounted as ot, watch as Oe, renderList as de, isRef as De, createSlots as qe, normalizeStyle as lt, Teleport as Pe, normalizeProps as at, guardReactiveProps as rt } from "vue";
2
- import { a as le, e as K, f as Ge, S as st, h as it, D as Be, i as fe, A as ge, b as Me, j as We, k as be, t as Ke, l as pe, m as xe, U as dt, n as ut, M as mt, o as Ne, c as Ze, C as ke, p as Le, q as Je, r as ct, s as Qe, v as pt, w as vt, I as ft, x as yt, y as gt, u as bt, z as ht, _ as _t, B as xt, E as kt, G as ze } from "./app-B4RHEuan.js";
3
- import { useDialog as Xe, useSnackbar as he, useProxiedModel as He, useDialogChild as Vt, useBreakpoints as St } from "@feedmepos/ui-library";
2
+ import { a as le, d as K, e as Ge, S as st, f as it, D as Be, h as fe, A as ge, b as Me, i as We, j as be, t as Ke, k as pe, l as xe, U as dt, m as ut, M as mt, n as Ne, C as ke, o as Le, p as Ze, q as ct, r as Je, s as pt, v as vt, I as ft, w as yt, x as gt, u as bt, y as ht, _ as _t, z as xt, B as kt, E as ze } from "./app-IM1yJnE8.js";
3
+ import { useDialog as Qe, useSnackbar as he, useProxiedModel as He, useDialogChild as Vt, useBreakpoints as St } from "@feedmepos/ui-library";
4
4
  import { i as Ct, _ as wt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { useI18n as ae, useCoreStore as ve } from "@feedmepos/mf-common";
6
6
  import { defineStore as Ft, storeToRefs as It } from "pinia";
7
7
  import { g as Mt, _ as Ve, S as Se } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
8
- import { _ as $t } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7ump1tl.js";
9
- import { _ as Ce, a as Et } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-BF0lKP9Y.js";
8
+ import { _ as $t } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js";
9
+ import { _ as Ce } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeRvrF7O.js";
10
+ import { u as Xe } from "./feature-DMBVVBsQ.js";
10
11
  import { _ as we } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
12
+ import { _ as Et } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
11
13
  import "./array-hChJVZLE.js";
12
14
  const Fe = Ft("ingredientForm", function() {
13
- const o = Xe(), y = he(), s = le(), n = j(!1), { t: l } = ae(), i = j();
15
+ const o = Qe(), y = he(), s = le(), n = j(!1), { t: l } = ae(), i = j();
14
16
  function a() {
15
17
  const b = {
16
18
  unit: {},
@@ -326,7 +328,7 @@ const Tt = {
326
328
  emits: ["update:modelValue", "click:submit"],
327
329
  setup(d, { expose: o, emit: y }) {
328
330
  var me;
329
- const { t: s } = ae(), n = d, l = y, i = le(), a = ve(), h = Ze(), k = Me(), g = S(() => k.isEnabled);
331
+ const { t: s } = ae(), n = d, l = y, i = le(), a = ve(), h = Xe(), k = Me(), g = S(() => k.isEnabled);
330
332
  function b(e) {
331
333
  if (e.length === 0) return;
332
334
  const t = e[0], c = n.modelValue ?? {
@@ -1122,7 +1124,7 @@ function et() {
1122
1124
  id: "baseUnit",
1123
1125
  name: "Base unit"
1124
1126
  }
1125
- ], o = Ze(), y = ve(), s = be(y.currentCountry.value);
1127
+ ], o = Xe(), y = ve(), s = be(y.currentCountry.value);
1126
1128
  return o.enableTotalCost && d.push(
1127
1129
  {
1128
1130
  id: "valuationMethod",
@@ -1151,8 +1153,8 @@ function hn() {
1151
1153
  [],
1152
1154
  n.map((k) => k.name),
1153
1155
  ...o.map((k) => n.map((g) => k[g.id]))
1154
- ], i = n.map((k) => `system:${k.id}`), a = Je(l, i), h = `${s == null ? void 0 : s.name} ingredients (${ct(/* @__PURE__ */ new Date())}).xlsx`;
1155
- return Qe(a, h), h;
1156
+ ], i = n.map((k) => `system:${k.id}`), a = Ze(l, i), h = `${s == null ? void 0 : s.name} ingredients (${ct(/* @__PURE__ */ new Date())}).xlsx`;
1157
+ return Je(a, h), h;
1156
1158
  }
1157
1159
  function _n() {
1158
1160
  const o = ve().currentBusiness.value, y = et(), s = [
@@ -1161,8 +1163,8 @@ function _n() {
1161
1163
  ["Menu version", o == null ? void 0 : o.menuVersion],
1162
1164
  [],
1163
1165
  y.map((a) => a.name)
1164
- ], n = y.map((a) => `system:${a.id}`), l = Je(s, n), i = "FeedMe ingredients template.xlsx";
1165
- return Qe(l, i), i;
1166
+ ], n = y.map((a) => `system:${a.id}`), l = Ze(s, n), i = "FeedMe ingredients template.xlsx";
1167
+ return Je(l, i), i;
1166
1168
  }
1167
1169
  function xn(d) {
1168
1170
  const [
@@ -1483,10 +1485,10 @@ const Vn = { class: "flex items-center gap-12 pl-8" }, Sn = { class: "flex flex-
1483
1485
  ]);
1484
1486
  };
1485
1487
  }
1486
- }), Bn = { class: "flex flex-col py-8" }, Nn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ln = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xn = /* @__PURE__ */ oe({
1488
+ }), Bn = { class: "flex flex-col py-8" }, Nn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ln = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, to = /* @__PURE__ */ oe({
1487
1489
  __name: "IngredientsView",
1488
1490
  setup(d) {
1489
- const o = le(), y = S(() => o.skus), s = bt(), n = Xe(), l = he(), i = Me(), { t: a } = ae(), { createIngredient: h, updateIngredient: k } = Fe(), { ingredientDialogProps: g, ingredientViewLoading: b } = It(Fe()), { columnDefs: r } = Ut();
1491
+ const o = le(), y = S(() => o.skus), s = bt(), n = Qe(), l = he(), i = Me(), { t: a } = ae(), { createIngredient: h, updateIngredient: k } = Fe(), { ingredientDialogProps: g, ingredientViewLoading: b } = It(Fe()), { columnDefs: r } = Ut();
1490
1492
  function _(P) {
1491
1493
  switch (P) {
1492
1494
  case "add":
@@ -1712,5 +1714,5 @@ const Vn = { class: "flex items-center gap-12 pl-8" }, Sn = { class: "flex flex-
1712
1714
  }
1713
1715
  });
1714
1716
  export {
1715
- Xn as default
1717
+ to as default
1716
1718
  };