@feedmepos/mf-menu 0.32.41-dev.2 → 0.32.41

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 (66) hide show
  1. package/dist/{App-mCGGnjeS.js → App-Bt5lFavE.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-MWoYiClD.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DpyJ5gr2.js} +3 -3
  3. package/dist/{Catalog-CM2wnQ4l.js → Catalog-DJyGxDRP.js} +44 -44
  4. package/dist/{Category-Bp9tGWwJ.js → Category-BlIUSUxn.js} +24 -24
  5. package/dist/{Category-bsL9IQ5n.js → Category-CNTOOIJE.js} +24 -24
  6. package/dist/{CookingGuide-Cy0Kt6Ys.js → CookingGuide-CpZfKE5H.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CX4s7NYy.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-QzZR2W1U.js} +1 -1
  8. package/dist/{Group-0hMArGNs.js → Group-B88fbCOf.js} +1 -1
  9. package/dist/{Group-BKFZMvZg.js → Group-Bhnov3p8.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-st4plK2R.js → Group.vue_vue_type_script_setup_true_lang-CRAX3mIt.js} +18 -18
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-8zW2KIMn.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bqh6a0oO.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-UhuYuL-A.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DPAxkce6.js} +4109 -4110
  13. package/dist/{Ingredient-CvE0xujL.js → Ingredient-BORYH8yl.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-iEhZ4_5G.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Ci-CaBED.js} +2 -2
  15. package/dist/{LinkProductSideSheet-CbppLDSB.js → LinkProductSideSheet-DQN59t0a.js} +45 -45
  16. package/dist/{MenuSetting-CQ9HnQKx.js → MenuSetting-cI0j1omE.js} +47 -47
  17. package/dist/{PrintRoute-Cc81zV6Q.js → PrintRoute-CXSuomGR.js} +39 -39
  18. package/dist/{Product-kFoTn7zI.js → Product-DgbQeeKt.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-BVF9SBEL.js → Product.vue_vue_type_script_setup_true_lang-D0cnQC3i.js} +128 -128
  20. package/dist/{ProductInternalTools-CwxPRqTy.js → ProductInternalTools-B1zpNBze.js} +66 -66
  21. package/dist/Products-JodXj4IG.js +291 -0
  22. package/dist/{Publish-BE-PPNO8.js → Publish-Cqdk3SjG.js} +29 -29
  23. package/dist/{Recipe-Ddts2It2.js → Recipe-anT6QBZT.js} +24 -24
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js → RuleView.vue_vue_type_script_setup_true_lang-Cc_k57qi.js} +369 -369
  25. package/dist/{Scheduler-CqP0Ha2K.js → Scheduler-Z64VCw-y.js} +11 -11
  26. package/dist/{ServingSequence-WpneAUiB.js → ServingSequence-B7ZbvY1v.js} +44 -44
  27. package/dist/{Setting-CNGZaUUT.js → Setting-DnVCq2hY.js} +17 -17
  28. package/dist/{Subcategory-BVN0OH_q.js → Subcategory-dpz-Um56.js} +51 -51
  29. package/dist/{Takeaway-LFslRotB.js → Takeaway-DiyOBq1g.js} +13 -13
  30. package/dist/{Takeaway-BtnGTcvW.js → Takeaway-mwLXbT9q.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CJZfd5JB.js → Takeaway.vue_vue_type_script_setup_true_lang-tg3AJE3_.js} +28 -28
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CI8eK98T.js → Thumbnail.vue_vue_type_script_setup_true_lang-FRH0zCh6.js} +27 -27
  33. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CfA400oN.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-nGzNSAX9.js} +4 -4
  34. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-SNBrW4Or.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BzwlZ9jW.js} +13 -13
  35. package/dist/{Unit-kL0Wjfb6.js → Unit-CmF2olR8.js} +8 -8
  36. package/dist/{Variant-Cj82yGYE.js → Variant-C9-_-SLX.js} +24 -24
  37. package/dist/{_id_-B-guZ25K.js → _id_-C4Zpr6wS.js} +28 -28
  38. package/dist/app-BC-PDZ1J.js +363 -0
  39. package/dist/{app-DiVDYcc9.js → app-CrcPPLl1.js} +1 -1
  40. package/dist/app.js +2 -2
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-C4nECq-3.js → linked-status-68qGGp41.js} +5 -5
  43. package/dist/assets/{menu-export-PPICN1VA.js → menu-export-CRtF4W1I.js} +2 -2
  44. package/dist/assets/{override-menu-BaYdZfDk.js → override-menu-DB0DJf_x.js} +5 -5
  45. package/dist/assets/{validate-menu-DCyVSa7R.js → validate-menu-oi_J1ue-.js} +2 -2
  46. package/dist/{catalog-BTsgJdVe.js → catalog-Cp4kVRAL.js} +1 -1
  47. package/dist/{catalogSetting-BNYPChMH.js → catalogSetting-Cr0DX5kw.js} +1 -1
  48. package/dist/{currency-2KuoTCt5.js → currency-C_IuOt0j.js} +1 -1
  49. package/dist/dayjs.min-fN9Ef6y1.js +6 -0
  50. package/dist/{index-UthDVOpX.js → index-CXzIkkUH.js} +31 -31
  51. package/dist/{index-GaHNc4iH.js → index-DzLNqNMt.js} +43 -43
  52. package/dist/{index-fLVJt8Pt.js → index-vqNnqeRW.js} +1 -1
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js → index.vue_vue_type_script_setup_true_lang-DyiwvQnC.js} +269 -244
  54. package/dist/{item-DYsNPLH9.js → item-C3_GKsNy.js} +15 -15
  55. package/dist/{jszip.min-CLQSAAHL.js → jszip.min-BiRK-xY3.js} +387 -388
  56. package/dist/{menu-Btb1sPTh.js → menu-CYrjppCV.js} +1 -1
  57. package/dist/{menuV2-Bfj5ljzI.js → menuV2-DWQ093x3.js} +93 -93
  58. package/dist/{priceTier-DHp_DiBo.js → priceTier-CD3j-Ccs.js} +1 -1
  59. package/dist/{rules-B5QEx6OC.js → rules-BTZh0AjD.js} +11 -11
  60. package/dist/{scheduler-CI-LJfho.js → scheduler-PVlNN-pB.js} +29 -29
  61. package/dist/{toExcel-CHdQxEnw.js → toExcel-lSyQhZQ9.js} +2 -2
  62. package/dist/{unit-D53f5n16.js → unit-1MnbZYm8.js} +35 -35
  63. package/package.json +1 -2
  64. package/dist/Products-IBe-R8XN.js +0 -334
  65. package/dist/app-D4se7Sr4.js +0 -1643
  66. package/dist/dayjs.min-BE8PtbAQ.js +0 -7
@@ -1,19 +1,19 @@
1
1
  import { defineComponent as G, ref as M, computed as R, onMounted as ie, resolveComponent as $, createElementBlock as V, openBlock as y, createVNode as h, createElementVNode as f, toDisplayString as L, unref as p, Fragment as j, renderList as Q, createBlock as Y, watch as de, withCtx as E, h as T, normalizeClass as re, createCommentVNode as X, createTextVNode as me, mergeProps as $e, normalizeStyle as Ae, renderSlot as Ue, withModifiers as te, onUnmounted as Be } from "vue";
2
- import { D as z } from "./dayjs.min-BE8PtbAQ.js";
2
+ import { D as z } from "./dayjs.min-fN9Ef6y1.js";
3
3
  import { useRouter as De } from "vue-router";
4
4
  import { O as Oe, b as Te } from "./app-5fxKLAzS.js";
5
- import { z as Ne, D as Re, B as ve, aa as Ee, a2 as be, y as q, u as _e, G as pe, H as Le } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
5
+ import { B as Ne, H as Re, G as ve, ac as Ee, a4 as be, A as q, u as _e, I as pe, J as Le } from "./index.vue_vue_type_script_setup_true_lang-DyiwvQnC.js";
6
6
  import { useI18n as Z, useCoreStore as ge, RestaurantSelector as ye } from "@feedmepos/mf-common";
7
7
  import { useSnackbar as ce, useDialogChild as ze, useProxiedModel as je, useDialog as ke, FmButtonVariant as fe, components as W } from "@feedmepos/ui-library";
8
8
  import { _ as He } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
9
- import { _ as Ce } from "./app-D4se7Sr4.js";
10
- import { a as Ye, w as Ke } from "./tooltip-B5BiPMx9.js";
9
+ import { _ as Ce } from "./app-BC-PDZ1J.js";
10
+ import { a as Ye, w as Je } from "./tooltip-B5BiPMx9.js";
11
11
  import { u as we } from "./discardConfirm-BHni0LNu.js";
12
12
  import { _ as xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  function Se(O) {
14
14
  return O ? z(O).format("DD/MM/YY HH:mm") : "-";
15
15
  }
16
- function Je(O, S, s) {
16
+ function Ke(O, S, s) {
17
17
  const b = (i, _ = !1) => {
18
18
  var d;
19
19
  return i === void 0 && !_ ? "-" : ((d = s.find((v) => v.value === (i || null))) == null ? void 0 : d.label) || "-";
@@ -68,7 +68,7 @@ const qe = {
68
68
  var o;
69
69
  const l = S.restaurant.revertConfig;
70
70
  if (!l) return [];
71
- const n = Je(
71
+ const n = Ke(
72
72
  [
73
73
  {
74
74
  ...l,
@@ -169,8 +169,8 @@ const qe = {
169
169
  value: "1",
170
170
  indeterminate: i.value.length > 0,
171
171
  "onUpdate:modelValue": t
172
- }, null, 8, ["model-value", "indeterminate"]), (y(!0), V(j, null, Q(v.value, (B, K) => (y(), V("div", {
173
- key: K
172
+ }, null, 8, ["model-value", "indeterminate"]), (y(!0), V(j, null, Q(v.value, (B, J) => (y(), V("div", {
173
+ key: J
174
174
  }, [h(c, {
175
175
  "model-value": i.value,
176
176
  label: B.label,
@@ -515,7 +515,7 @@ const qe = {
515
515
  isCurrentMonth: F.month() === g
516
516
  }), F = F.add(1, "day");
517
517
  return D.length > 0 && x.push(D), x.length < 6 && x.push([]), x;
518
- }, K = (w) => {
518
+ }, J = (w) => {
519
519
  v.value = w;
520
520
  };
521
521
  return (w, x) => {
@@ -570,7 +570,7 @@ const qe = {
570
570
  }
571
571
  },
572
572
  days: c.value,
573
- "on-day-click": (I) => K(I.date)
573
+ "on-day-click": (I) => J(I.date)
574
574
  }, null, 8, ["day-cell-class", "days", "on-day-click"])
575
575
  ]),
576
576
  f("div", null, [
@@ -607,7 +607,7 @@ const qe = {
607
607
  }
608
608
  },
609
609
  days: U.value,
610
- "on-day-click": (I) => K(I.date)
610
+ "on-day-click": (I) => J(I.date)
611
611
  }, null, 8, ["day-cell-class", "days", "on-day-click"])
612
612
  ])
613
613
  ])
@@ -871,7 +871,7 @@ const qe = {
871
871
  await e.getNextSchedulerPublish();
872
872
  });
873
873
  const B = M(null);
874
- function K() {
874
+ function J() {
875
875
  c.value = !1, B.value = {
876
876
  date: "new",
877
877
  restaurantsIds: []
@@ -917,7 +917,7 @@ const qe = {
917
917
  variant: p(fe).Plain,
918
918
  "prepend-icon": "add",
919
919
  label: p(b)("menu.publish.actions.add_scheduler_publish"),
920
- onClick: g[0] || (g[0] = () => K())
920
+ onClick: g[0] || (g[0] = () => J())
921
921
  }, null, 8, ["variant", "label"])) : X("", !0)])]),
922
922
  _: 1
923
923
  }, 8, ["modelValue", "onOn:clickedAway"])], 64);
@@ -983,7 +983,7 @@ const qe = {
983
983
  o(), _("onComplete", k.value);
984
984
  }
985
985
  return (c, U) => {
986
- const B = $("FmSelect"), K = $("FmCheckbox"), w = $("FmButton"), x = $("FmSideSheet");
986
+ const B = $("FmSelect"), J = $("FmCheckbox"), w = $("FmButton"), x = $("FmSideSheet");
987
987
  return y(), Y(x, {
988
988
  modelValue: t.value,
989
989
  "onUpdate:modelValue": U[5] || (U[5] = (m) => t.value = m),
@@ -1036,7 +1036,7 @@ const qe = {
1036
1036
  (y(!0), V(j, null, Q(O.catalogs, (m) => (y(), V("div", {
1037
1037
  key: m._id
1038
1038
  }, [
1039
- h(K, {
1039
+ h(J, {
1040
1040
  modelValue: k.value.additionalCatalogs,
1041
1041
  "onUpdate:modelValue": U[3] || (U[3] = (g) => k.value.additionalCatalogs = g),
1042
1042
  label: m.name,
@@ -1069,9 +1069,9 @@ const qe = {
1069
1069
  class: "grow flex flex-col gap-4"
1070
1070
  }, Yt = {
1071
1071
  class: "flex gap-8 items-center"
1072
- }, Kt = {
1073
- class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary"
1074
1072
  }, Jt = {
1073
+ class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary"
1074
+ }, Kt = {
1075
1075
  class: "space-y-4"
1076
1076
  }, qt = {
1077
1077
  class: "fm-typo-en-body-lg-600"
@@ -1138,7 +1138,7 @@ const qe = {
1138
1138
  const C = a.row.original;
1139
1139
  return T("div", {
1140
1140
  class: "flex justify-end gap-8"
1141
- }, [t.value && C.revertConfig ? Ke(T(W.FmButton, {
1141
+ }, [t.value && C.revertConfig ? Je(T(W.FmButton, {
1142
1142
  prependIcon: "undo",
1143
1143
  variant: "secondary",
1144
1144
  onClick: te(async () => {
@@ -1207,10 +1207,10 @@ const qe = {
1207
1207
  const C = U(a);
1208
1208
  (A = v.value) == null || A.show(C);
1209
1209
  }
1210
- const K = ce(), w = ve(K);
1210
+ const J = ce(), w = ve(J);
1211
1211
  async function x(a) {
1212
1212
  var A;
1213
- const C = (A = g.value.find((J) => J._id === a.restaurantId)) == null ? void 0 : A.name;
1213
+ const C = (A = g.value.find((K) => K._id === a.restaurantId)) == null ? void 0 : A.name;
1214
1214
  await w.minor(async () => await e.publishMenu(a), {
1215
1215
  customId: e.state.menu._id,
1216
1216
  message: `Publishing menu for ${C}`,
@@ -1220,8 +1220,8 @@ const qe = {
1220
1220
  const m = M(null), g = R(() => {
1221
1221
  const a = d.value.toLowerCase(), C = e.state.menu.updatedAt;
1222
1222
  return e.state.restaurants.filter((A) => {
1223
- var J;
1224
- return !m.value || ((J = m.value) == null ? void 0 : J.includes(A._id));
1223
+ var K;
1224
+ return !m.value || ((K = m.value) == null ? void 0 : K.includes(A._id));
1225
1225
  }).map((A) => ({
1226
1226
  ...A,
1227
1227
  catalog: {
@@ -1232,8 +1232,8 @@ const qe = {
1232
1232
  status: C === A.updatedAt ? "latest" : "outdated"
1233
1233
  })).filter((A) => Oe(A, F.value)).filter(({
1234
1234
  name: A,
1235
- catalog: J
1236
- }) => a ? A.toLowerCase().includes(a) || J.default.toLowerCase().includes(a) || J.takeaway.toLowerCase().includes(a) || J.pickup.toLowerCase().includes(a) : !0);
1235
+ catalog: K
1236
+ }) => a ? A.toLowerCase().includes(a) || K.default.toLowerCase().includes(a) || K.takeaway.toLowerCase().includes(a) || K.pickup.toLowerCase().includes(a) : !0);
1237
1237
  }), F = M({
1238
1238
  logic: "AND",
1239
1239
  rules: []
@@ -1248,7 +1248,7 @@ const qe = {
1248
1248
  customId: e.state.menu._id
1249
1249
  }), await e.getNextSchedulerPublish(), e.runningPublishJob !== null ? N.value === null && (N.value = setInterval(async () => {
1250
1250
  await oe();
1251
- }, 3e4)) : (se.value && (K.close(se.value), se.value = null), N.value !== null && (clearInterval(N.value), N.value = null), ee.value = null);
1251
+ }, 3e4)) : (se.value && (J.close(se.value), se.value = null), N.value !== null && (clearInterval(N.value), N.value = null), ee.value = null);
1252
1252
  }
1253
1253
  async function ne(a) {
1254
1254
  if (u.value) return;
@@ -1283,11 +1283,11 @@ const qe = {
1283
1283
  }), Be(() => {
1284
1284
  N.value != null && (clearInterval(N.value), N.value = null);
1285
1285
  }), (a, C) => {
1286
- const A = $("FmChip"), J = $("FmSpacer"), H = $("FmButton"), ue = $("FmBadge"), Ve = $("FmSearch"), Ie = $("FmTable"), Pe = $("FmListItem"), Me = $("FmList");
1286
+ const A = $("FmChip"), K = $("FmSpacer"), H = $("FmButton"), ue = $("FmBadge"), Ve = $("FmSearch"), Ie = $("FmTable"), Pe = $("FmListItem"), Me = $("FmList");
1287
1287
  return y(), V(j, null, [f("div", Ot, [f("div", Tt, [f("div", Nt, [f("div", Rt, L(p(s)("menu.publish.title")), 1)]), h(A, {
1288
1288
  label: n.value,
1289
1289
  class: "xs:hidden text-fm-color-primary bg-fm-color-system-warning-100"
1290
- }, null, 8, ["label"]), h(J), f("div", Et, [h(H, {
1290
+ }, null, 8, ["label"]), h(K), f("div", Et, [h(H, {
1291
1291
  disabled: u.value,
1292
1292
  label: p(s)("menu.publish.actions.refresh"),
1293
1293
  variant: "secondary",
@@ -1375,9 +1375,9 @@ const qe = {
1375
1375
  },
1376
1376
  onClick: () => B(P)
1377
1377
  }, {
1378
- default: E(() => [f("div", Ht, [f("div", Yt, [f("div", Kt, L(o(P.updatedAt)), 1), h(b, {
1378
+ default: E(() => [f("div", Ht, [f("div", Yt, [f("div", Jt, L(o(P.updatedAt)), 1), h(b, {
1379
1379
  row: P
1380
- }, null, 8, ["row"])]), f("div", Jt, [f("div", qt, L(P.name), 1), f("div", Gt, [f("div", null, "Default: " + L(P.catalog.default), 1), f("div", null, "POS takeaway: " + L(P.catalog.takeaway), 1), f("div", null, "Pickup: " + L(P.catalog.pickup), 1)])])]), f("div", Wt, [t.value && P.revertConfig ? (y(), Y(H, {
1380
+ }, null, 8, ["row"])]), f("div", Kt, [f("div", qt, L(P.name), 1), f("div", Gt, [f("div", null, "Default: " + L(P.catalog.default), 1), f("div", null, "POS takeaway: " + L(P.catalog.takeaway), 1), f("div", null, "Pickup: " + L(P.catalog.pickup), 1)])])]), f("div", Wt, [t.value && P.revertConfig ? (y(), Y(H, {
1381
1381
  key: 0,
1382
1382
  disabled: u.value,
1383
1383
  icon: "undo",
@@ -1,15 +1,15 @@
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";
2
- import { useI18n as I } from "@feedmepos/mf-common";
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 I, createCommentVNode as ee, normalizeClass as K, renderList as te } from "vue";
2
+ import { useI18n as U } from "@feedmepos/mf-common";
3
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-D4se7Sr4.js";
6
- import { O as q, B as $, G as ie, A as P, H as se, D as B, J as T, y as U, u as H, a2 as re } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
5
+ import { _ as le } from "./app-BC-PDZ1J.js";
6
+ import { Q as q, G as $, I as ie, D as P, J as se, H as Y, M as O, A as T, u as H, a4 as re } from "./index.vue_vue_type_script_setup_true_lang-DyiwvQnC.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-iEhZ4_5G.js";
9
+ import { _ as B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-Ci-CaBED.js";
10
10
  import { u as de } from "./discardConfirm-BHni0LNu.js";
11
11
  import { c as pe } from "./check-C9mY6LiX.js";
12
- import "./unit-D53f5n16.js";
12
+ import "./unit-1MnbZYm8.js";
13
13
  import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
14
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({
15
15
  __name: "Form",
@@ -18,7 +18,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
18
18
  invalidSkuAndRecipe: {}
19
19
  },
20
20
  setup(R, { expose: c }) {
21
- const { t: u } = I(), 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;
@@ -37,15 +37,15 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
37
37
  };
38
38
  p.initialValue ? await f.updateMenu(
39
39
  {
40
- module: U.F_MENU_MODULE_V4_KEY.enum.recipe,
41
- operation: T.F_OPERATION_TYPE.update,
40
+ module: T.F_MENU_MODULE_V4_KEY.enum.recipe,
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
- module: U.F_MENU_MODULE_V4_KEY.enum.recipe,
48
- operation: T.F_OPERATION_TYPE.create,
47
+ module: T.F_MENU_MODULE_V4_KEY.enum.recipe,
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 = A(), u = $(c), p = q(u), f = H(), b = Z(), { t: _ } = I(), 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,
@@ -183,8 +183,8 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
183
183
  }).onPrimary(async () => {
184
184
  await p.updateMenu(
185
185
  {
186
- module: U.F_MENU_MODULE_V4_KEY.enum.recipe,
187
- operation: T.F_OPERATION_TYPE.delete,
186
+ module: T.F_MENU_MODULE_V4_KEY.enum.recipe,
187
+ operation: O.F_OPERATION_TYPE.delete,
188
188
  data: o._id
189
189
  },
190
190
  o.name,
@@ -216,16 +216,16 @@ 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 = {
219
+ }, Ie = {
220
220
  class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
221
- }, Te = {
221
+ }, Oe = {
222
222
  class: "fm-typo-en-body-md-600 font-semibold"
223
223
  }, qe = /* @__PURE__ */ z({
224
224
  __name: "Recipe",
225
225
  setup(R) {
226
226
  const {
227
227
  t: c
228
- } = I(), u = A();
228
+ } = U(), u = A();
229
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",
@@ -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"),
@@ -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", Te, 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",