@feedmepos/mf-menu 0.32.7-dev → 0.32.8-dev

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 (67) hide show
  1. package/dist/{App-DCkQc7e4.js → App-B5S9byVJ.js} +5456 -4621
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js → ApplyProduct.vue_vue_type_script_setup_true_lang-bSXFWpq_.js} +3 -3
  3. package/dist/{Catalog-CUPoRid3.js → Catalog-CTfF5FmI.js} +52 -52
  4. package/dist/{Category-BkvhZ57Y.js → Category-BntCVeoT.js} +57 -57
  5. package/dist/{Category-Cdw0ikhP.js → Category-Z3bphlCX.js} +26 -26
  6. package/dist/{CookingGuide-BZ-4oULM.js → CookingGuide-CoPo2Alx.js} +127 -127
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DJ3sb3XV.js} +1 -1
  8. package/dist/{Group-Cec83DWm.js → Group-B7rZfFlT.js} +3 -3
  9. package/dist/{Group-C1FaXdUb.js → Group-CblWJOl1.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js → Group.vue_vue_type_script_setup_true_lang-wX7yqw0Z.js} +33 -33
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1gBCBA.js} +27 -27
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js} +7 -7
  13. package/dist/{Ingredient-DulL8h2B.js → Ingredient-Bn-jeNeI.js} +46 -46
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DbGNFA3D.js} +2 -2
  15. package/dist/{LinkProductSideSheet-Br2eE8pC.js → LinkProductSideSheet-BjcQDT4U.js} +61 -61
  16. package/dist/{MenuSetting-DxW4LCW4.js → MenuSetting-BT5YSMgK.js} +14 -14
  17. package/dist/{PrintRoute-Da6Zkx-0.js → PrintRoute-B0j0eqNM.js} +34 -34
  18. package/dist/{Product-Cs76t18_.js → Product-BOMprFhc.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js → Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js} +142 -142
  20. package/dist/{ProductInternalTools-DPbeRvTM.js → ProductInternalTools-O5d2jMAH.js} +39 -39
  21. package/dist/{Products--7dGfuuT.js → Products-BnMrK40x.js} +15 -15
  22. package/dist/{Publish-COmZtiyX.js → Publish-dTP5mQS3.js} +26 -26
  23. package/dist/{Recipe-BaN_1zrP.js → Recipe-DnftcZPO.js} +26 -26
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js → RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js} +2 -2
  25. package/dist/{Scheduler-BSUpIAaK.js → Scheduler-DRLaQK_V.js} +22 -22
  26. package/dist/{ServingSequence-dXBb7e5d.js → ServingSequence-CPIyJ7T8.js} +39 -39
  27. package/dist/{Setting-CalEQW0n.js → Setting-CLtISC4c.js} +22 -22
  28. package/dist/{Subcategory-zPHtX7Vc.js → Subcategory-b0bXCYYY.js} +32 -32
  29. package/dist/{Takeaway-CRDj2Bpe.js → Takeaway-CCIKDCoF.js} +12 -12
  30. package/dist/{Takeaway-CcnmeTmu.js → Takeaway-h9uUxFJd.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js → Takeaway.vue_vue_type_script_setup_true_lang-BOG_W-2a.js} +26 -26
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js → Thumbnail.vue_vue_type_script_setup_true_lang-D4KcX3XQ.js} +26 -26
  33. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B3EByLES.js +6016 -0
  34. package/dist/{Unit-C7-Oj5S3.js → Unit-B0kiwrN6.js} +13 -13
  35. package/dist/{Variant-CYiMkE0q.js → Variant-CJSk0kTW.js} +18 -18
  36. package/dist/{_id_-D75ZcNlf.js → _id_-108G3lsv.js} +22 -22
  37. package/dist/{app-DzVMOviz.js → app-BTn28hDr.js} +1 -1
  38. package/dist/{app-BhLVpUSl.js → app-CPJH5bgs.js} +26 -26
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/stores/menu.d.ts +4 -0
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-BoIPm5hC.js → linked-status-Bp5piT25.js} +2 -2
  43. package/dist/assets/{override-menu-DfTrwWpR.js → override-menu-D47qVZAi.js} +2 -2
  44. package/dist/assets/{validate-menu-BhWvQ3T9.js → validate-menu-YuXYm9iE.js} +2 -2
  45. package/dist/{catalog-CudNSsIP.js → catalog-CpFTifAS.js} +1 -1
  46. package/dist/{catalogSetting-BVHO9tK3.js → catalogSetting-DjGqI2Vf.js} +1 -1
  47. package/dist/{category-BQpgz1lk.js → category-DaRWiQd8.js} +5 -5
  48. package/dist/{currency-BfS7H2KE.js → currency-DbURufyM.js} +1 -1
  49. package/dist/{index-aaoziUNI.js → index-C6AkIinM.js} +1 -1
  50. package/dist/{index-DmGJvREM.js → index-D67GKEzf.js} +1 -1
  51. package/dist/{index-DuLXS699.js → index-kjRAsH_h.js} +38 -38
  52. package/dist/{index-BHdPJta4.js → index-pJtym1c6.js} +21 -21
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js → index.vue_vue_type_script_setup_true_lang-BvohjQ00.js} +438 -428
  54. package/dist/item-2WoPAnNJ.js +6838 -0
  55. package/dist/{iteration-CaliNodx.js → iteration-BGItxpWj.js} +1 -1
  56. package/dist/{jszip.min-DXbkmgRD.js → jszip.min-D8NeBCPG.js} +2 -2
  57. package/dist/{menu-D-lUEuvX.js → menu-DVdMR0zo.js} +1 -1
  58. package/dist/{menuV2-D-6O36DO.js → menuV2-CcBdUc80.js} +41 -41
  59. package/dist/mf-menu.css +1 -1
  60. package/dist/{priceTier-DKnYaOA9.js → priceTier-CTfRyTuS.js} +1 -1
  61. package/dist/{scheduler-DEwfbYPL.js → scheduler-DOMDX4d7.js} +20 -20
  62. package/dist/{subcategory-CQKklgcd.js → subcategory-NsslZ1my.js} +6 -6
  63. package/dist/{toExcel-CRwL-QqF.js → toExcel-Bdne-Dw_.js} +2 -2
  64. package/dist/{unit-BzM1rmN7.js → unit-DKyvdauo.js} +29 -29
  65. package/package.json +1 -1
  66. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +0 -6038
  67. package/dist/item-BtKW0wdj.js +0 -7685
@@ -1,13 +1,13 @@
1
- import { defineComponent as Z, ref as v, computed as $, resolveComponent as W, createElementBlock as c, openBlock as r, createElementVNode as s, createVNode as I, unref as h, createCommentVNode as T, normalizeClass as E, toDisplayString as U, createStaticVNode as B, Fragment as P, renderList as R, createBlock as oe, withCtx as A } from "vue";
2
- import { J as O, F as ne } from "./jszip.min-DXbkmgRD.js";
3
- import { D as le, u as ie, I as D, $ as re, K as ce, M as de, N as me } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
1
+ import { defineComponent as Z, ref as v, computed as $, resolveComponent as G, createElementBlock as c, openBlock as r, createElementVNode as s, createVNode as I, unref as h, createCommentVNode as T, normalizeClass as E, toDisplayString as U, createStaticVNode as B, Fragment as P, renderList as O, createBlock as oe, withCtx as R } from "vue";
2
+ import { J as A, F as ne } from "./jszip.min-D8NeBCPG.js";
3
+ import { G as le, u as ie, J as D, a0 as re, M as ce, N as de, O as me } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
4
4
  import { useI18n as ue } from "@feedmepos/mf-common";
5
5
  import { FmButtonVariant as z, useSnackbar as V, useDialog as pe, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
6
6
  import { _ as ge } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { u as fe, a as he } from "./menu-D-lUEuvX.js";
8
- import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js";
7
+ import { u as fe, a as he } from "./menu-DVdMR0zo.js";
8
+ import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js";
9
9
  import { p as be } from "./tooltip-CQW9YRO5.js";
10
- import { t as ve, v as _e } from "./item-BtKW0wdj.js";
10
+ import { s as ve, t as _e } from "./item-2WoPAnNJ.js";
11
11
  const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center justify-between p-16 border-b border-gray-200" }, Ie = { class: "flex gap-8" }, ke = { class: "border-b border-gray-200" }, Ce = { class: "flex" }, Ue = { class: "flex-1 overflow-hidden" }, je = {
12
12
  key: 0,
13
13
  class: "h-full flex flex-col"
@@ -20,16 +20,16 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
20
20
  }, Se = { class: "space-y-12" }, $e = { class: "fm-typo-en-body-sm font-medium" }, ze = { class: "flex" }, Pe = { class: "w-64 h-64 bg-gray-100 rounded-8 overflow-hidden flex items-center justify-center" }, Le = ["src", "alt"], Ne = {
21
21
  key: 1,
22
22
  class: "text-gray-400 text-xs"
23
- }, Te = { class: "flex" }, Ee = { class: "w-64 h-64 bg-gray-100 rounded-8 overflow-hidden" }, Be = ["src", "alt"], Re = {
23
+ }, Te = { class: "flex" }, Ee = { class: "w-64 h-64 bg-gray-100 rounded-8 overflow-hidden" }, Be = ["src", "alt"], Oe = {
24
24
  key: 1,
25
25
  class: "h-full flex flex-col"
26
- }, Ae = {
26
+ }, Re = {
27
27
  key: 0,
28
28
  class: "flex-1 flex items-center justify-center"
29
- }, Oe = {
29
+ }, Ae = {
30
30
  key: 1,
31
31
  class: "flex-1 overflow-y-auto p-16"
32
- }, De = { class: "space-y-12" }, Ve = { class: "fm-typo-en-body-sm font-medium break-all" }, Ze = { class: "flex" }, We = { class: "w-64 h-64 bg-gray-100 rounded-8 overflow-hidden" }, qe = ["src", "alt"], Ge = /* @__PURE__ */ Z({
32
+ }, De = { class: "space-y-12" }, Ve = { class: "fm-typo-en-body-sm font-medium break-all" }, Ze = { class: "flex" }, Ge = { class: "w-64 h-64 bg-gray-100 rounded-8 overflow-hidden" }, Je = ["src", "alt"], We = /* @__PURE__ */ Z({
33
33
  __name: "ImageUpdatePreview",
34
34
  props: {
35
35
  matchedImages: {},
@@ -45,7 +45,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
45
45
  F("update", u.matchedImages);
46
46
  }
47
47
  return (w, l) => {
48
- const x = W("fm-button");
48
+ const x = G("fm-button");
49
49
  return r(), c("div", we, [
50
50
  s("div", xe, [
51
51
  l[2] || (l[2] = s("h2", { class: "fm-typo-en-headline-sm font-semibold" }, "Update Product Images", -1)),
@@ -93,7 +93,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
93
93
  s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "New Image")
94
94
  ], -1)),
95
95
  s("div", Se, [
96
- (r(!0), c(P, null, R(u.matchedImages, (m, C) => (r(), c("div", {
96
+ (r(!0), c(P, null, O(u.matchedImages, (m, C) => (r(), c("div", {
97
97
  key: C,
98
98
  class: "grid grid-cols-3 gap-16 py-12 border-b border-gray-100 items-center"
99
99
  }, [
@@ -120,27 +120,27 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
120
120
  ]))), 128))
121
121
  ])
122
122
  ]))
123
- ])) : y.value === "unmatched" ? (r(), c("div", Re, [
124
- k.value === 0 ? (r(), c("div", Ae, l[5] || (l[5] = [
123
+ ])) : y.value === "unmatched" ? (r(), c("div", Oe, [
124
+ k.value === 0 ? (r(), c("div", Re, l[5] || (l[5] = [
125
125
  B('<div class="text-center text-gray-500"><svg class="mx-auto h-48 w-48 text-gray-400 mb-16" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg><p class="fm-typo-en-body-lg text-gray-500">All images matched!</p><p class="fm-typo-en-body-sm text-gray-400 mt-4">No unmatched images found</p></div>', 1)
126
- ]))) : (r(), c("div", Oe, [
126
+ ]))) : (r(), c("div", Ae, [
127
127
  l[6] || (l[6] = s("div", { class: "grid grid-cols-2 gap-16 pb-12 border-b border-gray-200 mb-16" }, [
128
128
  s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Filename"),
129
129
  s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Image")
130
130
  ], -1)),
131
131
  s("div", De, [
132
- (r(!0), c(P, null, R(u.unmatchedImages, (m, C) => (r(), c("div", {
132
+ (r(!0), c(P, null, O(u.unmatchedImages, (m, C) => (r(), c("div", {
133
133
  key: C,
134
134
  class: "grid grid-cols-2 gap-16 py-12 border-b border-gray-100 items-center"
135
135
  }, [
136
136
  s("div", Ve, U(m.filename), 1),
137
137
  s("div", Ze, [
138
- s("div", We, [
138
+ s("div", Ge, [
139
139
  s("img", {
140
140
  src: m.imageUrl,
141
141
  alt: m.filename,
142
142
  class: "w-full h-full object-cover"
143
- }, null, 8, qe)
143
+ }, null, 8, Je)
144
144
  ])
145
145
  ])
146
146
  ]))), 128))
@@ -152,11 +152,11 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
152
152
  };
153
153
  }
154
154
  });
155
- var Je = { firebase: { storageBucket: "image.feedmedev.cc" } };
155
+ var qe = { firebase: { storageBucket: "image.feedmedev.cc" } };
156
156
  const He = {
157
157
  key: 0,
158
158
  class: "h-screen"
159
- }, Ke = { class: "flex-1 flex justify-between gap-8 pl-8" }, Xe = { class: "flex items-center" }, Qe = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ye = { class: "fm-typo-en-body-md-600 font-semibold" }, et = { class: "flex gap-8" }, mt = /* @__PURE__ */ Z({
159
+ }, Xe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ke = { class: "flex items-center" }, Qe = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ye = { class: "fm-typo-en-body-md-600 font-semibold" }, et = { class: "flex gap-8" }, mt = /* @__PURE__ */ Z({
160
160
  __name: "ProductInternalTools",
161
161
  setup(L) {
162
162
  const { t: j } = ue(), u = le(V()), F = V(), y = pe(), b = ie(), { selectedCategories: k } = fe(), _ = v(!1), M = v(), w = v([]), l = v([]), x = $(() => {
@@ -169,15 +169,15 @@ const He = {
169
169
  filename: a
170
170
  });
171
171
  }
172
- async function q(e, a = "images.zip") {
173
- const o = new O();
172
+ async function J(e, a = "images.zip") {
173
+ const o = new A();
174
174
  e.forEach(({ blob: d, filename: n }) => {
175
175
  d && o.file(n, d);
176
176
  });
177
177
  const p = await o.generateAsync({ type: "blob" });
178
178
  ne.saveAs(p, a);
179
179
  }
180
- async function G() {
180
+ async function W() {
181
181
  const e = x.value.filter((a) => a.thumbnail);
182
182
  if (e.length === 0) {
183
183
  F.open({ type: "error", title: "No downloadable images found" });
@@ -216,7 +216,7 @@ const He = {
216
216
  })).filter((n) => n !== null);
217
217
  if (a.value = "Creating ZIP file...", d.length > 0) {
218
218
  const n = `images_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.zip`;
219
- await q(d, n);
219
+ await J(d, n);
220
220
  } else
221
221
  throw new Error("Failed to fetch any images");
222
222
  },
@@ -228,8 +228,8 @@ const He = {
228
228
  );
229
229
  });
230
230
  }
231
- async function J(e) {
232
- const o = await new O().loadAsync(e), p = [];
231
+ async function q(e) {
232
+ const o = await new A().loadAsync(e), p = [];
233
233
  for (const [d, n] of Object.entries(o.files)) {
234
234
  if (n.dir || d.includes("__MACOSX/") || !N(d))
235
235
  continue;
@@ -253,17 +253,17 @@ const He = {
253
253
  ".bmp": "image/bmp"
254
254
  }[a] || "image/jpeg";
255
255
  }
256
- function K(e) {
256
+ function X(e) {
257
257
  return (e.substring(0, e.lastIndexOf(".")) || e).toLowerCase().trim().replace(/[_\-\s]+/g, " ");
258
258
  }
259
- function X(e) {
259
+ function K(e) {
260
260
  return e.toLowerCase().trim().replace(/[_\-\s]+/g, " ");
261
261
  }
262
262
  async function Q(e) {
263
263
  const a = [];
264
264
  for (const t of e)
265
265
  if (t.type === "application/zip" || t.name.toLowerCase().endsWith(".zip")) {
266
- const i = await J(t);
266
+ const i = await q(t);
267
267
  a.push(...i);
268
268
  } else N(t.name) && a.push(t);
269
269
  const o = /* @__PURE__ */ new Map();
@@ -273,11 +273,11 @@ const He = {
273
273
  });
274
274
  const p = Array.from(o.values()), d = [], n = [], g = /* @__PURE__ */ new Map();
275
275
  x.value.forEach((t) => {
276
- const i = X(t.name);
276
+ const i = K(t.name);
277
277
  g.set(i, t);
278
278
  });
279
279
  for (const t of p) {
280
- const i = K(t.name), f = g.get(i);
280
+ const i = X(t.name), f = g.get(i);
281
281
  f ? d.push({
282
282
  productId: f._id,
283
283
  productName: f.name,
@@ -311,7 +311,7 @@ const He = {
311
311
  const o = async (t) => {
312
312
  const i = ce(t.productId);
313
313
  let f = "";
314
- return t.newImage && (await de.update(i, t.newImage, Je.firebase.storageBucket), f = me(i)), { productId: t.productId, newImageUrl: f };
314
+ return t.newImage && (await de.update(i, t.newImage, qe.firebase.storageBucket), f = me(i)), { productId: t.productId, newImageUrl: f };
315
315
  };
316
316
  a.value = `Starting upload of ${e.length} product images...`;
317
317
  const p = await be({
@@ -355,10 +355,10 @@ const He = {
355
355
  a.value = "";
356
356
  }
357
357
  return he().resetOnMount(), (e, a) => {
358
- const o = W("fm-button");
358
+ const o = G("fm-button");
359
359
  return r(), c(P, null, [
360
360
  _.value ? (r(), c("div", He, [
361
- I(Ge, {
361
+ I(We, {
362
362
  "matched-images": w.value,
363
363
  "unmatched-images": l.value,
364
364
  onCancel: te,
@@ -368,12 +368,12 @@ const He = {
368
368
  key: 1,
369
369
  heading: h(j)("menu.productInternalTools.title")
370
370
  }, {
371
- default: A(() => [
371
+ default: R(() => [
372
372
  I(ye)
373
373
  ]),
374
- "append-heading": A(() => [
375
- s("div", Ke, [
376
- s("div", Xe, [
374
+ "append-heading": R(() => [
375
+ s("div", Xe, [
376
+ s("div", Ke, [
377
377
  s("div", Qe, [
378
378
  s("p", Ye, U(m.value), 1)
379
379
  ])
@@ -384,7 +384,7 @@ const He = {
384
384
  "text-color": h(S).TypoSecondary,
385
385
  variant: h(z).Primary,
386
386
  label: "Download Images",
387
- onClick: G
387
+ onClick: W
388
388
  }, null, 8, ["bg-color", "text-color", "variant"]),
389
389
  I(o, {
390
390
  "bg-color": h(S).NeutralGray100,
@@ -2,22 +2,22 @@ var de = Object.defineProperty;
2
2
  var pe = (C, e, n) => e in C ? de(C, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : C[e] = n;
3
3
  var K = (C, e, n) => pe(C, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { defineComponent as j, computed as D, ref as oe, resolveComponent as $, createBlock as N, openBlock as T, unref as l, withCtx as E, createElementVNode as S, toDisplayString as ae, createVNode as _, createCommentVNode as re, createElementBlock as B, Fragment as H } from "vue";
5
- import { D as V } from "./iteration-CaliNodx.js";
6
- import { m as A, A as O, f as g, a as L, b as J, e as P, n as U, w as fe } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js";
7
- import { J as be, F as he } from "./jszip.min-DXbkmgRD.js";
8
- import { u as ne, D as ie, A as z, G as q, z as se, B as ge, H as X, I as Z } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
5
+ import { D as V } from "./iteration-BGItxpWj.js";
6
+ import { m as A, A as O, f as g, a as J, b as L, e as P, n as U, w as fe } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js";
7
+ import { J as be, F as he } from "./jszip.min-D8NeBCPG.js";
8
+ import { u as ne, G as ie, B as z, H as q, A as se, D as ge, I as X, J as Z } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
9
9
  import { useCoreStore as ce, useI18n as ye } from "@feedmepos/mf-common";
10
10
  import { useDialog as me, useDialogChild as _e, useSnackbar as le, useBreakpoints as ke, FmButtonVariant as Y, FmButtonColorThemeVariant as G } from "@feedmepos/ui-library";
11
11
  import { _ as W } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
12
12
  import { _ as ve, a as Q } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
13
13
  import { _ as we } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
14
- import { u as xe, a as Ce } from "./menu-D-lUEuvX.js";
15
- import { u as Fe } from "./item-BtKW0wdj.js";
16
- import { _ as ee, a as Me } from "./Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js";
17
- import { L as te } from "./LinkProductSideSheet-Br2eE8pC.js";
18
- import { _ as Ie } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js";
19
- import { u as Se } from "./Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js";
20
- import { m as Ee } from "./toExcel-CRwL-QqF.js";
14
+ import { u as xe, a as Ce } from "./menu-DVdMR0zo.js";
15
+ import { u as Fe } from "./item-2WoPAnNJ.js";
16
+ import { _ as ee, a as Me } from "./Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js";
17
+ import { L as te } from "./LinkProductSideSheet-BjcQDT4U.js";
18
+ import { _ as Ie } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B3EByLES.js";
19
+ import { u as Se } from "./Thumbnail.vue_vue_type_script_setup_true_lang-D4KcX3XQ.js";
20
+ import { m as Ee } from "./toExcel-Bdne-Dw_.js";
21
21
  const Te = { class: "space-y-24 mb-24" }, De = ["innerHTML"], Ne = { class: "flex justify-end gap-8" }, Ke = /* @__PURE__ */ j({
22
22
  __name: "ConfirmActionDialog",
23
23
  props: {
@@ -400,7 +400,7 @@ class Ve {
400
400
  "Default Catalog",
401
401
  this.exportCatalogToExcelExcelJS()
402
402
  ), r = o.worksheets[0];
403
- L(r, this.attributeSettings, i.priceTiers), this.formatWorkbookCell(o);
403
+ J(r, this.attributeSettings, i.priceTiers), this.formatWorkbookCell(o);
404
404
  const m = this.transformAddonGroup().map(({ priceTier: b, ...x }) => {
405
405
  const { index: F, ...h } = x, M = Object.entries(h), y = M.findIndex(([p]) => p === "price");
406
406
  return [
@@ -415,7 +415,7 @@ class Ve {
415
415
  "Default AddonGroup",
416
416
  this.exportCatalogAddonToExcelExcelJS()
417
417
  ), u = c.worksheets[0];
418
- J(u, i.priceTiers), this.formatWorkbookCell(c);
418
+ L(u, i.priceTiers), this.formatWorkbookCell(c);
419
419
  const s = this.transformItemsLinkWithGroup(), d = Object.keys(s), f = new P.Workbook();
420
420
  if (d.length > 0)
421
421
  d.forEach((b, x) => {
@@ -495,7 +495,7 @@ class Ve {
495
495
  ]), a = U(n.name), m = e.addWorksheet(a);
496
496
  r.forEach((c) => {
497
497
  m.addRow(c);
498
- }), L(m, this.attributeSettings, o.priceTiers, n);
498
+ }), J(m, this.attributeSettings, o.priceTiers, n);
499
499
  }), e;
500
500
  }
501
501
  exportCatalogAddonToExcelExcelJS() {
@@ -509,7 +509,7 @@ class Ve {
509
509
  }), r = U(n.name), a = e.addWorksheet(r);
510
510
  o.forEach((m) => {
511
511
  a.addRow(m);
512
- }), J(a);
512
+ }), L(a);
513
513
  }), e;
514
514
  }
515
515
  }
@@ -1,12 +1,12 @@
1
- import { defineComponent as G, ref as V, computed as R, onMounted as re, resolveComponent as w, createElementBlock as U, openBlock as y, createVNode as i, createElementVNode as o, toDisplayString as A, unref as r, Fragment as O, renderList as W, createBlock as T, withCtx as L, createCommentVNode as ce, withModifiers as N, h as Y } from "vue";
2
- import { D as ae, c as de } from "./iteration-CaliNodx.js";
1
+ import { defineComponent as G, ref as V, computed as R, onMounted as re, resolveComponent as w, createElementBlock as U, openBlock as y, createVNode as i, createElementVNode as o, toDisplayString as A, unref as r, Fragment as O, renderList as J, createBlock as T, withCtx as L, createCommentVNode as ce, withModifiers as z, h as Y } from "vue";
2
+ import { D as ae, c as de } from "./iteration-BGItxpWj.js";
3
3
  import { useRouter as me } from "vue-router";
4
4
  import { O as pe, b as ge } from "./app-5fxKLAzS.js";
5
- import { A as be, G as ve, D as te, ab as fe, H as Z, I as _e, u as he, z as ye, a3 as Ce } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
6
- import { useI18n as J, useCoreStore as ke, RestaurantSelector as we } from "@feedmepos/mf-common";
5
+ import { B as be, H as ve, G as te, ab as fe, I as Z, J as _e, u as he, A as ye, a3 as Ce } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
6
+ import { useI18n as W, useCoreStore as ke, RestaurantSelector as we } from "@feedmepos/mf-common";
7
7
  import { useSnackbar as le, useDialogChild as xe, useDialog as Ve, components as ee } from "@feedmepos/ui-library";
8
8
  import { _ as Se } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
9
- import { _ as Fe } from "./app-BhLVpUSl.js";
9
+ import { _ as Fe } from "./app-CPJH5bgs.js";
10
10
  import { a as Ie, w as Ae, p as Me } from "./tooltip-CQW9YRO5.js";
11
11
  import { u as $e } from "./discardConfirm-BHni0LNu.js";
12
12
  function se(S) {
@@ -63,7 +63,7 @@ const De = {
63
63
  value: C._id
64
64
  }))
65
65
  ];
66
- }), { t } = J(), d = R(() => {
66
+ }), { t } = W(), d = R(() => {
67
67
  var _;
68
68
  const m = F.restaurant.revertConfig;
69
69
  if (!m) return [];
@@ -101,7 +101,7 @@ const De = {
101
101
  ])) : (y(), U("div", Pe, [
102
102
  o("div", Ue, A(r(t)("menu.revert.description", { name: F.restaurant.name })), 1),
103
103
  o("div", Le, [
104
- (y(!0), U(O, null, W(d.value, (P) => (y(), T(Ie, {
104
+ (y(!0), U(O, null, J(d.value, (P) => (y(), T(Ie, {
105
105
  key: P.label,
106
106
  name: P.label,
107
107
  value: P.value || "--"
@@ -110,7 +110,7 @@ const De = {
110
110
  ]));
111
111
  };
112
112
  }
113
- }), Ee = { class: "fm-typo-en-title-md-600" }, Oe = { class: "mt-40" }, Te = { class: "fm-typo-en-title-sm-600" }, ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary mt-4 mb-8" }, Ne = { class: "flex gap-8 items-center justify-start" }, He = /* @__PURE__ */ G({
113
+ }), Ee = { class: "fm-typo-en-title-md-600" }, Oe = { class: "mt-40" }, Te = { class: "fm-typo-en-title-sm-600" }, Ne = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary mt-4 mb-8" }, ze = { class: "flex gap-8 items-center justify-start" }, He = /* @__PURE__ */ G({
114
114
  __name: "UpdateCatalogDialog",
115
115
  props: {
116
116
  catalogs: {
@@ -120,7 +120,7 @@ const De = {
120
120
  },
121
121
  emits: ["onComplete"],
122
122
  setup(S, { expose: F, emit: l }) {
123
- const { t: c } = J(), u = S;
123
+ const { t: c } = W(), u = S;
124
124
  F({
125
125
  show: C,
126
126
  hide: _
@@ -170,7 +170,7 @@ const De = {
170
170
  _(), f("onComplete", d.value);
171
171
  }
172
172
  return (h, g) => {
173
- const B = w("FmSelect"), z = w("FmCheckbox"), $ = w("FmButton"), E = w("FmSideSheet");
173
+ const B = w("FmSelect"), N = w("FmCheckbox"), $ = w("FmButton"), E = w("FmSideSheet");
174
174
  return y(), T(E, {
175
175
  modelValue: D.value,
176
176
  "onUpdate:modelValue": g[5] || (g[5] = (b) => D.value = b),
@@ -181,7 +181,7 @@ const De = {
181
181
  o("span", Ee, A(r(c)("menu.publish.update_catalog_dialog.title")), 1)
182
182
  ]),
183
183
  "side-sheet-footer": L(() => [
184
- o("div", Ne, [
184
+ o("div", ze, [
185
185
  i($, {
186
186
  label: r(c)("menu.publish.update_catalog_dialog.actions.update"),
187
187
  size: "lg",
@@ -219,11 +219,11 @@ const De = {
219
219
  }, null, 8, ["modelValue", "items", "label"]),
220
220
  o("div", Oe, [
221
221
  o("div", Te, A(r(c)("menu.publish.update_catalog_dialog.sections.additional.title")), 1),
222
- o("div", ze, A(r(c)("menu.publish.update_catalog_dialog.sections.additional.subtitle")), 1),
223
- (y(!0), U(O, null, W(S.catalogs, (b) => (y(), U("div", {
222
+ o("div", Ne, A(r(c)("menu.publish.update_catalog_dialog.sections.additional.subtitle")), 1),
223
+ (y(!0), U(O, null, J(S.catalogs, (b) => (y(), U("div", {
224
224
  key: b._id
225
225
  }, [
226
- i(z, {
226
+ i(N, {
227
227
  modelValue: d.value.additionalCatalogs,
228
228
  "onUpdate:modelValue": g[3] || (g[3] = (k) => d.value.additionalCatalogs = k),
229
229
  label: b.name,
@@ -246,9 +246,9 @@ const De = {
246
246
  class: "fm-typo-en-title-md-600"
247
247
  }, Ge = {
248
248
  class: "xs:hidden mr-16"
249
- }, We = {
250
- class: "xs:hidden"
251
249
  }, Je = {
250
+ class: "xs:hidden"
251
+ }, We = {
252
252
  class: "pb-8 flex justify-between items-start xs:flex-col xs:items-stretch gap-8"
253
253
  }, Qe = {
254
254
  class: "grow flex flex-col gap-4"
@@ -271,7 +271,7 @@ const De = {
271
271
  setup(S) {
272
272
  const F = me(), {
273
273
  t: l
274
- } = J(), c = ({
274
+ } = W(), c = ({
275
275
  row: e
276
276
  }) => {
277
277
  const a = e.status === "latest";
@@ -326,14 +326,14 @@ const De = {
326
326
  }, [D.value && a.revertConfig ? Ae(Y(ee.FmButton, {
327
327
  prependIcon: "undo",
328
328
  variant: "secondary",
329
- onClick: N(async () => {
329
+ onClick: z(async () => {
330
330
  await m(e.row.original);
331
331
  }, ["stop", "prevent"])
332
332
  }), l("menu.publish.actions.revert")) : null, Y(ee.FmButton, {
333
333
  label: l("menu.publish.actions.publish"),
334
334
  icon: "ios_share",
335
335
  variant: "secondary",
336
- onClick: N(async () => {
336
+ onClick: z(async () => {
337
337
  const s = g(e.row.original);
338
338
  await E(s);
339
339
  }, ["stop", "prevent"])
@@ -392,7 +392,7 @@ const De = {
392
392
  const a = g(e);
393
393
  (s = x.value) == null || s.show(a);
394
394
  }
395
- const z = le(), $ = te(z);
395
+ const N = le(), $ = te(N);
396
396
  async function E(e) {
397
397
  var s;
398
398
  const a = (s = k.value.find((p) => p._id === e.restaurantId)) == null ? void 0 : s.name;
@@ -461,7 +461,7 @@ const De = {
461
461
  async function Q() {
462
462
  if (M.value) return;
463
463
  const e = Object.keys(u.value).filter((p) => u.value[p]), a = e.length === 0 || e.length === k.value.length ? k.value : k.value.filter((p) => e.includes(p._id));
464
- k.value.length === t.state.restaurants.length && (e.length === 0 || e.length === k.value.length) ? t.state.restaurants.length > q ? (t.publishAllMenu(), z.open({
464
+ k.value.length === t.state.restaurants.length && (e.length === 0 || e.length === k.value.length) ? t.state.restaurants.length > q ? (t.publishAllMenu(), N.open({
465
465
  type: "info",
466
466
  title: "Publish menu request sent"
467
467
  })) : await $.minor(async () => await t.publishAllMenu(), {
@@ -480,13 +480,13 @@ const De = {
480
480
  label: r(l)("menu.publish.actions.refresh"),
481
481
  variant: "secondary",
482
482
  onClick: a[0] || (a[0] = () => ie())
483
- }, null, 8, ["disabled", "label"])]), o("div", We, [i(I, {
483
+ }, null, 8, ["disabled", "label"])]), o("div", Je, [i(I, {
484
484
  disabled: M.value,
485
485
  icon: "ios_share",
486
486
  label: r(l)("menu.publish.actions.publish_all"),
487
487
  variant: "primary",
488
488
  onClick: a[1] || (a[1] = () => Q())
489
- }, null, 8, ["disabled", "label"])])]), o("div", Je, [i(r(we), {
489
+ }, null, 8, ["disabled", "label"])])]), o("div", We, [i(r(we), {
490
490
  multiple: "",
491
491
  modelValue: b.value,
492
492
  "onUpdate:modelValue": a[3] || (a[3] = (n) => b.value = n)
@@ -528,7 +528,7 @@ const De = {
528
528
  class: "flex-col flex-1 min-h-0 overflow-auto xs:flex hidden w-full pb-64",
529
529
  separator: ""
530
530
  }, {
531
- default: L(() => [(y(!0), U(O, null, W(k.value, (n) => (y(), T(j, {
531
+ default: L(() => [(y(!0), U(O, null, J(k.value, (n) => (y(), T(j, {
532
532
  key: n._id,
533
533
  label: n.name,
534
534
  style: {
@@ -543,12 +543,12 @@ const De = {
543
543
  disabled: M.value,
544
544
  icon: "undo",
545
545
  variant: "tertiary",
546
- onClick: N(() => m(n), ["stop"])
546
+ onClick: z(() => m(n), ["stop"])
547
547
  }, null, 8, ["disabled", "onClick"])) : ce("", !0), i(I, {
548
548
  disabled: M.value,
549
549
  icon: "ios_share",
550
550
  variant: "tertiary",
551
- onClick: N(() => E(g(n)), ["stop"])
551
+ onClick: z(() => E(g(n)), ["stop"])
552
552
  }, null, 8, ["disabled", "onClick"])])]),
553
553
  _: 2
554
554
  }, 1032, ["label", "onClick"]))), 128))]),
@@ -1,24 +1,24 @@
1
- import { defineComponent as z, computed as h, ref as w, reactive as Q, watch as W, resolveComponent as V, createElementBlock as F, openBlock as g, Fragment as C, renderSlot as X, createVNode as d, unref as e, withCtx as x, createElementVNode as r, toDisplayString as S, getCurrentInstance as Z, h as D, withModifiers as L, createBlock as O, createCommentVNode as ee, normalizeClass as K, renderList as te } from "vue";
1
+ import { defineComponent as K, computed as h, ref as w, reactive as Q, watch as W, resolveComponent as V, createElementBlock as F, openBlock as g, Fragment as C, renderSlot as X, createVNode as d, unref as e, withCtx as x, createElementVNode as r, toDisplayString as S, getCurrentInstance as Z, h as D, withModifiers as L, createBlock as I, createCommentVNode as ee, normalizeClass as z, renderList as te } from "vue";
2
2
  import { useI18n as U } from "@feedmepos/mf-common";
3
- import { useSnackbar as $, components as j, useDialog as ne, FmButtonVariant as G, useBreakpoints as oe } from "@feedmepos/ui-library";
3
+ import { useSnackbar as A, components as j, useDialog as ne, FmButtonVariant as G, useBreakpoints as oe } from "@feedmepos/ui-library";
4
4
  import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as le } from "./app-BhLVpUSl.js";
6
- import { O as q, D as A, H as ie, B as P, I as se, G as B, J as I, z as T, u as H, a3 as re } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
5
+ import { _ as le } from "./app-CPJH5bgs.js";
6
+ import { P as q, G as $, I as ie, D as P, J as se, H as Y, K as O, A as T, u as H, a3 as re } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
7
7
  import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
8
8
  import { defineStore as ue } from "pinia";
9
- import { _ as Y, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js";
9
+ import { _ as B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-DbGNFA3D.js";
10
10
  import { u as de } from "./discardConfirm-BHni0LNu.js";
11
11
  import { c as pe } from "./check-C9mY6LiX.js";
12
- import "./unit-BzM1rmN7.js";
12
+ import "./unit-DKyvdauo.js";
13
13
  import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
14
- const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ z({
14
+ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ K({
15
15
  __name: "Form",
16
16
  props: {
17
17
  initialValue: { default: void 0 },
18
18
  invalidSkuAndRecipe: {}
19
19
  },
20
20
  setup(R, { expose: c }) {
21
- const { t: u } = U(), p = R, f = q(A($())), b = h(() => p.initialValue ? u("menu.recipe.update") : u("menu.recipe.add")), _ = h(
21
+ const { t: u } = U(), p = R, f = q($(A())), b = h(() => p.initialValue ? u("menu.recipe.update") : u("menu.recipe.add")), _ = h(
22
22
  () => p.initialValue ? u("menu.common.actions.update") : u("menu.common.actions.add")
23
23
  ), v = w(!1), a = w(!1), k = (t) => {
24
24
  pe.isBoolean(t) ? a.value = t : a.value = !a.value;
@@ -38,14 +38,14 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
38
38
  p.initialValue ? await f.updateMenu(
39
39
  {
40
40
  module: T.F_MENU_MODULE_V4_KEY.enum.recipe,
41
- operation: I.F_OPERATION_TYPE.update,
41
+ operation: O.F_OPERATION_TYPE.update,
42
42
  data: t
43
43
  },
44
44
  t.name
45
45
  ) : await f.updateMenu(
46
46
  {
47
47
  module: T.F_MENU_MODULE_V4_KEY.enum.recipe,
48
- operation: I.F_OPERATION_TYPE.create,
48
+ operation: O.F_OPERATION_TYPE.create,
49
49
  data: t
50
50
  },
51
51
  t.name
@@ -119,16 +119,16 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
119
119
  rules: [(m) => m.length > 0 || e(u)("menu.recipe.validation.bind_required")]
120
120
  }, {
121
121
  default: x(() => [
122
- d(Y, {
122
+ d(B, {
123
123
  modelValue: n.contains,
124
124
  "onUpdate:modelValue": i[1] || (i[1] = (m) => n.contains = m),
125
- type: e(B.F_INVENTORY_BINDING_TYPE).enum.RECIPE,
125
+ type: e(Y.F_INVENTORY_BINDING_TYPE).enum.RECIPE,
126
126
  "filter-option-ids": o.value
127
127
  }, null, 8, ["modelValue", "type", "filter-option-ids"]),
128
- d(Y, {
128
+ d(B, {
129
129
  modelValue: n.contains,
130
130
  "onUpdate:modelValue": i[2] || (i[2] = (m) => n.contains = m),
131
- type: e(B.F_INVENTORY_BINDING_TYPE).enum.SKU,
131
+ type: e(Y.F_INVENTORY_BINDING_TYPE).enum.SKU,
132
132
  "filter-option-ids": E.value
133
133
  }, null, 8, ["modelValue", "type", "filter-option-ids"])
134
134
  ]),
@@ -142,7 +142,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
142
142
  };
143
143
  }
144
144
  }), he = be, Ve = ue("recipe-manager", () => {
145
- const R = ne(), c = $(), u = A(c), p = q(u), f = H(), b = Z(), { t: _ } = U(), v = (o) => {
145
+ const R = ne(), c = A(), u = $(c), p = q(u), f = H(), b = Z(), { t: _ } = U(), v = (o) => {
146
146
  var l, t;
147
147
  const { vNode: y } = fe(
148
148
  he,
@@ -184,7 +184,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
184
184
  await p.updateMenu(
185
185
  {
186
186
  module: T.F_MENU_MODULE_V4_KEY.enum.recipe,
187
- operation: I.F_OPERATION_TYPE.delete,
187
+ operation: O.F_OPERATION_TYPE.delete,
188
188
  data: o._id
189
189
  },
190
190
  o.name,
@@ -205,7 +205,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
205
205
  }, Fe = {
206
206
  class: "flex justify-end items-center my-8 px-16"
207
207
  }, Ee = {
208
- class: /* @__PURE__ */ K(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
208
+ class: /* @__PURE__ */ z(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
209
209
  }, Re = ["onClick"], Ce = {
210
210
  class: "flex-1"
211
211
  }, Se = {
@@ -216,17 +216,17 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
216
216
  class: "flex-1 flex justify-between gap-8 pl-8"
217
217
  }, Me = {
218
218
  class: "flex items-center"
219
- }, Oe = {
220
- class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
221
219
  }, Ie = {
220
+ class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
221
+ }, Oe = {
222
222
  class: "fm-typo-en-body-md-600 font-semibold"
223
- }, qe = /* @__PURE__ */ z({
223
+ }, qe = /* @__PURE__ */ K({
224
224
  __name: "Recipe",
225
225
  setup(R) {
226
226
  const {
227
227
  t: c
228
- } = U(), u = $();
229
- A(u);
228
+ } = U(), u = A();
229
+ $(u);
230
230
  const p = H(), f = Ve(), b = h(() => p.recipes), _ = h(() => b.value.filter((y) => `${y.name}`.toLowerCase().includes(v.value.toLowerCase()))), v = w(""), a = w([{
231
231
  accessorKey: "name",
232
232
  header: () => c("menu.recipe.table.columns.name"),
@@ -263,10 +263,10 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
263
263
  const n = h(() => b.value.length), E = oe(), o = h(() => E.breakpoints.value.xs);
264
264
  return (y, l) => {
265
265
  const t = V("FmSearch"), i = V("FmTable"), N = V("fm-button"), M = V("FmSpacer");
266
- return g(), O(ce, {
266
+ return g(), I(ce, {
267
267
  heading: e(c)("menu.recipe.title")
268
268
  }, {
269
- default: x(() => [b.value.length === 0 ? (g(), O(e(re), {
269
+ default: x(() => [b.value.length === 0 ? (g(), I(e(re), {
270
270
  key: 0,
271
271
  action: {
272
272
  text: e(c)("menu.recipe.empty.action"),
@@ -288,7 +288,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
288
288
  placeholder: e(c)("menu.recipe.table.search.placeholder")
289
289
  }, null, 8, ["modelValue", "placeholder"])]), r("div", Ee, [(g(!0), F(C, null, te(_.value, (s) => (g(), F("div", {
290
290
  key: s._id,
291
- class: K(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
291
+ class: z(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
292
292
  onClick: () => e(f).updateRecipe(s)
293
293
  }, [r("div", Ce, [r("p", Se, S(s.name), 1), r("p", we, S(s.ingredients), 1)]), d(N, {
294
294
  variant: e(G).Tertiary,
@@ -313,7 +313,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
313
313
  }, null, 8, ["column-defs", "page-size", "row-data"])]),
314
314
  _: 1
315
315
  })]))], 64))]),
316
- "append-heading": x(() => [r("div", Ne, [r("div", Me, [r("div", Oe, [r("p", Ie, S(n.value), 1)])]), d(M), b.value.length > 0 ? (g(), O(ae, {
316
+ "append-heading": x(() => [r("div", Ne, [r("div", Me, [r("div", Ie, [r("p", Oe, S(n.value), 1)])]), d(M), b.value.length > 0 ? (g(), I(ae, {
317
317
  key: 0,
318
318
  label: e(c)("menu.recipe.actions.add"),
319
319
  "prepend-icon": "add",