@feedmepos/mf-menu 0.31.16-beta.1 → 0.31.17-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/{App-Bsppf5CN.js → App-BUjwToat.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DTuPAGEJ.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CBPOCkmg.js} +2 -2
  3. package/dist/{Catalog-Bj3MNcLG.js → Catalog-BkfsckOV.js} +18 -18
  4. package/dist/{Category-CHvG2e6b.js → Category-C7EPAK0G.js} +36 -36
  5. package/dist/{Category-WLIH1Zyc.js → Category-DTKlxBpE.js} +24 -24
  6. package/dist/{CookingGuide-C8N45xnL.js → CookingGuide-DCazfCuz.js} +56 -56
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-GriZxAIw.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2hApsFMq.js} +1 -1
  8. package/dist/{Group-CR3LWKXE.js → Group-DLjkPLk9.js} +1 -1
  9. package/dist/{Group-Byj3qEBv.js → Group-DNBFvwk-.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-tecpeqJT.js → Group.vue_vue_type_script_setup_true_lang-8Upt5al2.js} +54 -54
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BkLHDcZV.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BIWySrgb.js} +6 -6
  12. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-YOzhk0a0.js +96257 -0
  13. package/dist/{Ingredient-BCfCDCFS.js → Ingredient-BUIIhzYV.js} +52 -52
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CpXnjduY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-nqY-pxrW.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-BGlLnnm9.js → LinkProductSideSheet-xIuPAwp7.js} +14 -14
  16. package/dist/{MenuSetting-CdKhTxyc.js → MenuSetting-C3J66nHM.js} +11 -11
  17. package/dist/{PrintRoute-B-UlUlSD.js → PrintRoute-DnZrJ9IW.js} +26 -26
  18. package/dist/{Product-BggNPOwm.js → Product-jBcyCvO7.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DPOaafZ-.js → Product.vue_vue_type_script_setup_true_lang-CsaY9Kve.js} +113 -113
  20. package/dist/ProductInternalTools-CUZSrxvR.js +415 -0
  21. package/dist/Products-CRFXG-Du.js +270 -0
  22. package/dist/{Publish-BTPdN1Ub.js → Publish-Ch5QlJ9v.js} +37 -37
  23. package/dist/{Recipe-CibJRxHH.js → Recipe-BZJUndG3.js} +25 -25
  24. package/dist/{Scheduler-DAShXnol.js → Scheduler-BgMTPzhG.js} +13 -13
  25. package/dist/{ServingSequence-DFs7VR5V.js → ServingSequence-BISPWfTD.js} +36 -36
  26. package/dist/{Setting-aApApOKZ.js → Setting-4L-p0np0.js} +24 -24
  27. package/dist/{Subcategory-CGnGq5Kd.js → Subcategory-CptCl4cb.js} +39 -39
  28. package/dist/{Takeaway-rJDqoozq.js → Takeaway-BAM3XfIf.js} +1 -1
  29. package/dist/{Takeaway-C8M-Z4eK.js → Takeaway-DqiGDTfg.js} +12 -12
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CrFeCwvr.js → Takeaway.vue_vue_type_script_setup_true_lang-oZo0esEd.js} +25 -25
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CCVSPoDB.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C7QOuqzZ.js} +115 -115
  32. package/dist/{Unit-CcWjE73k.js → Unit-BYAvg037.js} +8 -8
  33. package/dist/{Variant-BDPjFaAa.js → Variant-uGUG4vH2.js} +18 -18
  34. package/dist/{_id_-mUBoDBKS.js → _id_-Uf140OcM.js} +19 -19
  35. package/dist/{app-BBoQR7rs.js → app-50bXo6rU.js} +262 -247
  36. package/dist/{app-sdhJyRKX.js → app-CUuWtEOn.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/app.d.ts +12 -0
  39. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +1618 -0
  40. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUpdatePreview.vue.d.ts +33 -0
  41. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUploadDialog.vue.d.ts +28 -0
  42. package/dist/apps/mf-menu/src/helper/import-export.d.ts +15 -19
  43. package/dist/apps/mf-menu/src/utils/batchProcessor.d.ts +33 -0
  44. package/dist/apps/mf-menu/src/utils/images.d.ts +44 -0
  45. package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
  46. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/assets/{linked-status-BkX3Y-ws.js → linked-status-Dsak7omL.js} +2 -2
  48. package/dist/assets/{override-menu-Bo0ZNZ-U.js → override-menu-COqLF5sS.js} +2 -2
  49. package/dist/assets/{validate-menu-CIWz9YXT.js → validate-menu-DkLBw23v.js} +2 -2
  50. package/dist/{catalog-BbukcamZ.js → catalog-x_NpHc5w.js} +1 -1
  51. package/dist/{catalogSetting-7ZMZjqGs.js → catalogSetting-DU_dUoSh.js} +1 -1
  52. package/dist/{category-Cq2MmCBq.js → category-DJRGfRhf.js} +1 -1
  53. package/dist/{currency-OQd6moI9.js → currency-ljvNxerM.js} +1 -1
  54. package/dist/{dayjs.min-m51FMJgI.js → dayjs.min-DsjutQjn.js} +1 -1
  55. package/dist/{index-b9FcXU4s.js → index-Bb7-YO3o.js} +23 -23
  56. package/dist/{index-DlTid7hh.js → index-C58VTE70.js} +14 -14
  57. package/dist/{index-B5uSVMTf.js → index-CBnsZeF8.js} +1 -1
  58. package/dist/{item-96CGb3Kx.js → item-Cerfyitf.js} +1521 -1485
  59. package/dist/jszip.min-Co4cqzOU.js +2393 -0
  60. package/dist/{menu-Bqiz6B2P.js → menu-B7KFi80A.js} +154 -154
  61. package/dist/{menu-BmBsIlGC.js → menu-Bpul41jT.js} +1 -1
  62. package/dist/mf-menu.css +1 -1
  63. package/dist/{priceTier-Ck8MqQWD.js → priceTier-CfW69h1F.js} +1 -1
  64. package/dist/{scheduler-DeOCwKnf.js → scheduler-DsO3qpTw.js} +3 -3
  65. package/dist/{subcategory-DbiQCCF5.js → subcategory-Cb_rqtHz.js} +84 -84
  66. package/dist/{toExcel-BsguLQA5.js → toExcel-P9X-WSN5.js} +15 -15
  67. package/dist/{unit-CnM6N-39.js → unit-Dej_sihQ.js} +24 -24
  68. package/package.json +3 -2
  69. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BRlU0arf.js +0 -73010
  70. package/dist/Products-DZFgAKxB.js +0 -2660
@@ -1,31 +1,31 @@
1
- import { computed as S, shallowRef as Yt, ref as H, watch as ye, nextTick as st, getCurrentInstance as In, onMounted as $e, defineComponent as ie, resolveComponent as q, createElementBlock as J, openBlock as D, createBlock as Q, normalizeClass as fe, createElementVNode as L, createVNode as C, unref as r, withCtx as B, toDisplayString as ge, mergeModels as zt, useModel as jt, createCommentVNode as X, resolveDirective as Wt, withDirectives as ut, createTextVNode as kn, renderSlot as Me, h as ve, Fragment as xe, renderList as Ue, vShow as qt, withModifiers as ze, createSlots as En, onBeforeUnmount as Ft, watchEffect as Tn, onUnmounted as xn, normalizeStyle as at, mergeProps as Fn, normalizeProps as Sn, guardReactiveProps as On, Teleport as Dn, Transition as Vn, withKeys as Pn } from "vue";
2
- import { g as Mn, o as $n, f as Un, a as Rn, n as Ht, _ as Xt, I as An, S as Nn, b as St, C as Ln, R as Ge, c as Jt, d as Ct, e as Qt, m as Gn, F as Kn, M as Zt, h as Bn, r as Yn, j as en, k as Ut, l as tn, p as zn, P as jn, q as Wn, s as nn, u as qn, T as Ne } from "./item-96CGb3Kx.js";
3
- import { _ as Hn, T as Xn } from "./app-BBoQR7rs.js";
4
- import { z as be, M as pe, I as Z, G as He, N as Jn, O as Qn, P as Zn, Q as dt, R as eo, A as Re, T as to, J as me, U as no, V as Ot, K as Ce, W as mt, X as oo, Y as ro, Z as ao, $ as pt, a0 as Rt, a1 as lo, u as on, a2 as io } from "./menu-Bqiz6B2P.js";
1
+ import { computed as S, shallowRef as Yt, ref as q, watch as ye, nextTick as st, getCurrentInstance as In, onMounted as $e, defineComponent as ie, resolveComponent as H, createElementBlock as J, openBlock as D, createBlock as Q, normalizeClass as fe, createElementVNode as L, createVNode as C, unref as r, withCtx as B, toDisplayString as ge, mergeModels as zt, useModel as jt, createCommentVNode as X, resolveDirective as Wt, withDirectives as ut, createTextVNode as kn, renderSlot as Me, h as ve, Fragment as xe, renderList as Ue, vShow as Ht, withModifiers as ze, createSlots as En, onBeforeUnmount as Ft, watchEffect as Tn, onUnmounted as xn, normalizeStyle as at, mergeProps as Fn, normalizeProps as Sn, guardReactiveProps as On, Teleport as Dn, Transition as Vn, withKeys as Pn } from "vue";
2
+ import { g as Mn, o as $n, f as Un, a as Rn, n as qt, _ as Xt, I as An, S as Nn, b as St, C as Ln, R as Ge, c as Jt, d as Ct, e as Qt, m as Gn, F as Kn, M as Zt, h as Bn, r as Yn, j as en, k as Ut, l as tn, p as zn, P as jn, q as Wn, s as nn, u as Hn, T as Ne } from "./item-Cerfyitf.js";
3
+ import { _ as qn, T as Xn } from "./app-50bXo6rU.js";
4
+ import { z as be, J as pe, G as Z, B as qe, K as Jn, M as Qn, N as Zn, O as dt, P as eo, A as Re, Q as to, H as me, R as no, T as Ot, I as Ce, U as mt, V as oo, W as ro, X as ao, Y as pt, Z as Rt, $ as lo, u as on, a0 as io } from "./menu-B7KFi80A.js";
5
5
  import { useI18n as ce, useCoreStore as Ze, CustomAttributesForm as rn } from "@feedmepos/mf-common";
6
6
  import { useDialog as Pe, useDialogChild as Dt, useSnackbar as Fe, FmButtonColorThemeVariant as Te, components as we, FmButtonVariant as Ke, useBreakpoints as so } from "@feedmepos/ui-library";
7
7
  import { u as Vt } from "./discardConfirm-BHni0LNu.js";
8
8
  import { defineStore as uo } from "pinia";
9
9
  import { _ as Se, a as co } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
10
- import { u as se, g as an, m as mo } from "./subcategory-DbiQCCF5.js";
11
- import { s as It, _ as po } from "./index-B5uSVMTf.js";
10
+ import { u as se, g as an, m as mo } from "./subcategory-Cb_rqtHz.js";
11
+ import { s as It, _ as po } from "./index-CBnsZeF8.js";
12
12
  import { _ as Ve } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
13
- import { _ as At } from "./category-Cq2MmCBq.js";
13
+ import { _ as At } from "./category-DJRGfRhf.js";
14
14
  import { _ as fo } from "./Thumbnail.vue_vue_type_script_setup_true_lang-DzQ8_6Bi.js";
15
- import { _ as Xe, L as kt } from "./LinkProductSideSheet-BGlLnnm9.js";
15
+ import { _ as Xe, L as kt } from "./LinkProductSideSheet-xIuPAwp7.js";
16
16
  import { _ as ln } from "./tooltip-B5BiPMx9.js";
17
- import { _ as je, T as go, l as vo } from "./index-DlTid7hh.js";
17
+ import { _ as je, T as go, l as vo } from "./index-C58VTE70.js";
18
18
  import { u as _o } from "./search-BAPEUu1R.js";
19
19
  import { c as Pt } from "./check-C9mY6LiX.js";
20
- import { f as Qe } from "./currency-OQd6moI9.js";
20
+ import { f as Qe } from "./currency-ljvNxerM.js";
21
21
  import { c as bo } from "./string-DpfFixWH.js";
22
22
  import { useInventoryStore as yo, InventoryBindingSummary as ho } from "@feedmepos/mf-inventory-portal";
23
- import { u as wo } from "./priceTier-Ck8MqQWD.js";
23
+ import { u as wo } from "./priceTier-CfW69h1F.js";
24
24
  import { d as Mt } from "./vuedraggable-CK8z7qA8.js";
25
- import { _ as Co } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DTuPAGEJ.js";
25
+ import { _ as Co } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CBPOCkmg.js";
26
26
  /* empty css */
27
27
  import { i as Io, t as $t, w as ko, a as sn, b as un, n as Eo, c as To, u as xo, r as Fo } from "./index-Ce4v8o7D.js";
28
- import { C as Et } from "./catalog-BbukcamZ.js";
28
+ import { C as Et } from "./catalog-x_NpHc5w.js";
29
29
  import { c as lt } from "./object-DVUNCr7w.js";
30
30
  import { _ as So } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
31
31
  import { _ as Nt } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
@@ -59,7 +59,7 @@ function Lt(...t) {
59
59
  return un(h), h;
60
60
  }
61
61
  function Oo() {
62
- const t = H(!1), o = In();
62
+ const t = q(!1), o = In();
63
63
  return o && $e(() => {
64
64
  t.value = !0;
65
65
  }, o), t;
@@ -127,7 +127,7 @@ function Ro(t, o, e, n = {}) {
127
127
  console.error(l);
128
128
  },
129
129
  initOnMounted: E
130
- } = n, T = (c ? Yt : H)(typeof o == "function" ? o() : o);
130
+ } = n, T = (c ? Yt : q)(typeof o == "function" ? o() : o);
131
131
  if (!e)
132
132
  try {
133
133
  e = Mo("getDefaultStorage", () => {
@@ -229,7 +229,7 @@ function No(t, o = { width: 0, height: 0 }, e = {}) {
229
229
  const { window: n = We, box: f = "content-box" } = e, s = S(() => {
230
230
  var v, _;
231
231
  return (_ = (v = Le(t)) == null ? void 0 : v.namespaceURI) == null ? void 0 : _.includes("svg");
232
- }), m = H(o.width), u = H(o.height), { stop: b } = Ao(
232
+ }), m = q(o.width), u = q(o.height), { stop: b } = Ao(
233
233
  t,
234
234
  ([v]) => {
235
235
  const _ = f === "border-box" ? v.borderBoxSize : f === "content-box" ? v.contentBoxSize : v.devicePixelContentBoxSize;
@@ -286,8 +286,8 @@ function Go(t, o) {
286
286
  };
287
287
  }
288
288
  function dn(t) {
289
- const o = H(null), e = No(o), n = H([]), f = Yt(t);
290
- return { state: H({ start: 0, end: 10 }), source: f, currentList: n, size: e, containerRef: o };
289
+ const o = q(null), e = No(o), n = q([]), f = Yt(t);
290
+ return { state: q({ start: 0, end: 10 }), source: f, currentList: n, size: e, containerRef: o };
291
291
  }
292
292
  function cn(t, o, e) {
293
293
  return (n) => {
@@ -392,7 +392,7 @@ function Yo(t, o) {
392
392
  containerRef: u
393
393
  };
394
394
  }
395
- var qe = /* @__PURE__ */ ((t) => (t.PRIMARY = "primary", t.PLAIN = "plain", t))(qe || {}), Oe = /* @__PURE__ */ ((t) => (t.CATEGORY = "view_list", t.ITEM = "fastfood", t.VARIANT = "lunch_dining", t.GROUP = "database", t.FOLDER = "folder", t))(Oe || {});
395
+ var He = /* @__PURE__ */ ((t) => (t.PRIMARY = "primary", t.PLAIN = "plain", t))(He || {}), Oe = /* @__PURE__ */ ((t) => (t.CATEGORY = "view_list", t.ITEM = "fastfood", t.VARIANT = "lunch_dining", t.GROUP = "database", t.FOLDER = "folder", t))(Oe || {});
396
396
  function ft(t, o) {
397
397
  return t <= 0 ? null : { label: o };
398
398
  }
@@ -415,7 +415,7 @@ function zo(t, o) {
415
415
  const e = !!o.price;
416
416
  return {
417
417
  label: e ? be.Dinero.fromFdoDinero(o.price).toFormat(!0) : be.Dinero.fromFdoDinero(t.price).toFormat(!0),
418
- variant: e ? qe.PRIMARY : qe.PLAIN
418
+ variant: e ? He.PRIMARY : He.PLAIN
419
419
  };
420
420
  }
421
421
  function jo(t, o) {
@@ -461,7 +461,7 @@ function Wo(t) {
461
461
  }))
462
462
  };
463
463
  }
464
- function qo(t, o) {
464
+ function Ho(t, o) {
465
465
  if (!o || o.trim() === "")
466
466
  return {
467
467
  subTree: t,
@@ -479,7 +479,7 @@ function _t(t, o, e) {
479
479
  function Kt(t, o) {
480
480
  return o ? `${o}, ${t}` : t;
481
481
  }
482
- function Ho(t) {
482
+ function qo(t) {
483
483
  const o = /* @__PURE__ */ new Map();
484
484
  function e(n) {
485
485
  var f;
@@ -494,9 +494,9 @@ function Xo(t) {
494
494
  }), o;
495
495
  }
496
496
  const et = uo("mf-menu-tree", () => {
497
- const t = H(), o = H([]), e = H(null), n = H([]);
497
+ const t = q(), o = q([]), e = q(null), n = q([]);
498
498
  function f(_) {
499
- o.value = _, c.value = Ho(_);
499
+ o.value = _, c.value = qo(_);
500
500
  }
501
501
  function s(_) {
502
502
  e.value = _;
@@ -524,7 +524,7 @@ const et = uo("mf-menu-tree", () => {
524
524
  a(E);
525
525
  n.value = _;
526
526
  }
527
- const c = H(/* @__PURE__ */ new Map());
527
+ const c = q(/* @__PURE__ */ new Map());
528
528
  function v(_) {
529
529
  return c.value.get(_);
530
530
  }
@@ -636,7 +636,7 @@ function er(t, o, e, n) {
636
636
  return $n(s, f);
637
637
  }
638
638
  function tr(t) {
639
- const o = H(null), e = S(() => o.value ? !t.state.currentCatalogId && !t.state.currentSchedulerId ? t.state.menu.modules.item.find(
639
+ const o = q(null), e = S(() => o.value ? !t.state.currentCatalogId && !t.state.currentSchedulerId ? t.state.menu.modules.item.find(
640
640
  (f) => f._id === o.value
641
641
  ) : er(
642
642
  t.state.menu,
@@ -739,7 +739,7 @@ const ct = () => {
739
739
  }, lr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ir = /* @__PURE__ */ ie({
740
740
  __name: "ImageUploadDialog",
741
741
  setup(t) {
742
- const { t: o } = ce(), e = H(), n = H(!1);
742
+ const { t: o } = ce(), e = q(), n = q(!1);
743
743
  async function f([h]) {
744
744
  if (!h) return;
745
745
  n.value = !0;
@@ -765,7 +765,7 @@ const ct = () => {
765
765
  e.value = void 0, m(null);
766
766
  }
767
767
  return (h, c) => {
768
- const v = q("fm-icon"), _ = q("fm-drop-field");
768
+ const v = H("fm-icon"), _ = H("fm-drop-field");
769
769
  return D(), J("div", nr, [
770
770
  e.value ? (D(), J("div", or, [
771
771
  L("div", rr, [
@@ -838,7 +838,7 @@ const ur = {
838
838
  const {
839
839
  t: o
840
840
  } = ce(), e = t, n = jt(t, "modelValue");
841
- H(!1);
841
+ q(!1);
842
842
  const f = Pe(), s = () => {
843
843
  n.value = null;
844
844
  }, m = () => {
@@ -856,7 +856,7 @@ const ur = {
856
856
  }).onPrimary(() => {
857
857
  s();
858
858
  });
859
- }, u = Fe(), b = He(u), h = () => {
859
+ }, u = Fe(), b = qe(u), h = () => {
860
860
  f.open({
861
861
  title: "Upload image",
862
862
  message: "Please upload an image for your product.",
@@ -885,7 +885,7 @@ const ur = {
885
885
  });
886
886
  };
887
887
  return (c, v) => {
888
- const _ = q("FmButton"), a = q("FmFormGroup");
888
+ const _ = H("FmButton"), a = H("FmFormGroup");
889
889
  return D(), Q(a, {
890
890
  tag: "div",
891
891
  "model-value": n.value,
@@ -969,7 +969,7 @@ const Er = /* @__PURE__ */ ie({
969
969
  }) {
970
970
  const e = t, n = se(), f = ct(), {
971
971
  checkMenuIsLoading: s
972
- } = dt(He(Fe())), m = Ze(), u = o, b = S(() => n.rules.item), h = S(() => n.categorizedItems), c = S(() => {
972
+ } = dt(qe(Fe())), m = Ze(), u = o, b = S(() => n.rules.item), h = S(() => n.categorizedItems), c = S(() => {
973
973
  const i = h.value.map((g) => ({
974
974
  label: g.name,
975
975
  value: g.id
@@ -993,7 +993,7 @@ const Er = /* @__PURE__ */ ie({
993
993
  }
994
994
  u("update:form", "category", g._id), u("update:form", "additionalCategories", y);
995
995
  }
996
- }), x = H(), w = () => e.isAddon ? null : C(Ln, {
996
+ }), x = q(), w = () => e.isAddon ? null : C(Ln, {
997
997
  ref: x,
998
998
  disabled: !b.value.category || e.isAddon || s(),
999
999
  items: c.value,
@@ -1030,7 +1030,7 @@ const Er = /* @__PURE__ */ ie({
1030
1030
  const g = i == De.ADD_ON;
1031
1031
  u("update:form", "category", e.isOverride ? g ? "" : ((y = e.fallback) == null ? void 0 : y.category) ?? ((I = c.value.find((W) => !!W.value)) == null ? void 0 : I.value) : g ? null : (G = c.value.find((W) => !!W.value)) == null ? void 0 : G.value), g && u("update:form", "additionalCategories", []);
1032
1032
  }
1033
- const R = H(!1);
1033
+ const R = q(!1);
1034
1034
  async function V() {
1035
1035
  var i, g, y;
1036
1036
  if (!e.form.name) {
@@ -1068,7 +1068,7 @@ const Er = /* @__PURE__ */ ie({
1068
1068
  t: l
1069
1069
  } = ce();
1070
1070
  return (i, g) => {
1071
- const y = q("fm-text-field"), I = q("fm-textarea"), G = q("fm-radio"), W = q("FmSnackbar"), ee = q("FmButton"), P = q("fm-radio-group"), ne = q("FmFormGroup"), ue = Wt("tooltip");
1071
+ const y = H("fm-text-field"), I = H("fm-textarea"), G = H("fm-radio"), W = H("FmSnackbar"), ee = H("FmButton"), P = H("fm-radio-group"), ne = H("FmFormGroup"), ue = Wt("tooltip");
1072
1072
  return D(), Q(Se, {
1073
1073
  title: r(l)("menu.product.form.detail.title")
1074
1074
  }, {
@@ -1078,7 +1078,7 @@ const Er = /* @__PURE__ */ ie({
1078
1078
  "model-value": i.form.code,
1079
1079
  placeholder: ((O = i.fallback) == null ? void 0 : O.code) || r(l)("menu.product.form.detail.fields.code.placeholder"),
1080
1080
  label: r(l)("menu.product.form.detail.fields.code.label"),
1081
- "onUpdate:modelValue": g[0] || (g[0] = (N) => u("update:form", "code", r(Ht)(N, i.isOverride)))
1081
+ "onUpdate:modelValue": g[0] || (g[0] = (N) => u("update:form", "code", r(qt)(N, i.isOverride)))
1082
1082
  }, null, 8, ["model-value", "placeholder", "label"])]), L("div", _r, [C(y, {
1083
1083
  id: "product-name",
1084
1084
  disabled: !b.value.name,
@@ -1207,7 +1207,7 @@ const Er = /* @__PURE__ */ ie({
1207
1207
  items: {},
1208
1208
  position: o.groups.length - 1,
1209
1209
  itemsLinked: []
1210
- }), m = H(s()), { t: u } = ce();
1210
+ }), m = q(s()), { t: u } = ce();
1211
1211
  return (b, h) => e.value.create ? (D(), Q(r(Lr), {
1212
1212
  key: 0,
1213
1213
  "categorized-items": r(o).categorizedItems,
@@ -1248,7 +1248,7 @@ const Er = /* @__PURE__ */ ie({
1248
1248
  setup(t, {
1249
1249
  emit: o
1250
1250
  }) {
1251
- const e = t, n = o, f = Fe(), s = Ze(), m = se(), u = S(() => be.Country.getCountry(s.currentCountry.value)), b = H(!1), h = S(() => e.config.isV4 || e.group.type === Z.F_ADDON_GROUP_TYPE.enum.PRODUCT), c = S(() => h.value), v = S(() => h.value), _ = S(() => Object.values(e.group.items).flatMap((O) => [{
1251
+ const e = t, n = o, f = Fe(), s = Ze(), m = se(), u = S(() => be.Country.getCountry(s.currentCountry.value)), b = q(!1), h = S(() => e.config.isV4 || e.group.type === Z.F_ADDON_GROUP_TYPE.enum.PRODUCT), c = S(() => h.value), v = S(() => h.value), _ = S(() => Object.values(e.group.items).flatMap((O) => [{
1252
1252
  _id: O._id,
1253
1253
  combinationKey: void 0
1254
1254
  }, ...(O.items ?? []).map((U) => ({
@@ -1269,9 +1269,9 @@ const Er = /* @__PURE__ */ ie({
1269
1269
  }), w = S(() => !0), p = (O) => O ? Qe(O, !1) : "", F = (O) => {
1270
1270
  var U;
1271
1271
  return O == null ? "" : (U = to()[O]) == null ? void 0 : U.label;
1272
- }, $ = S(() => Object.values(T.value)), R = H({}), {
1272
+ }, $ = S(() => Object.values(T.value)), R = q({}), {
1273
1273
  t: V
1274
- } = ce(), A = H([{
1274
+ } = ce(), A = q([{
1275
1275
  accessorKey: "isDefault",
1276
1276
  header: () => V("menu.group.option.is_default"),
1277
1277
  enableSorting: !1,
@@ -1469,13 +1469,13 @@ const Er = /* @__PURE__ */ ie({
1469
1469
  }, {
1470
1470
  default: ({
1471
1471
  trigger: N
1472
- }) => C(q("fm-tooltip"), {
1472
+ }) => C(H("fm-tooltip"), {
1473
1473
  content: "Inventory",
1474
1474
  zIndex: 110
1475
1475
  }, {
1476
1476
  default: () => {
1477
1477
  var Y;
1478
- return [C(q("fm-button"), {
1478
+ return [C(H("fm-button"), {
1479
1479
  variant: Ke.Tertiary,
1480
1480
  prependIcon: "inventory_2",
1481
1481
  overwriteIconOutline: (Y = U.inventoryBindings) != null && Y.length ? "filled" : "outline",
@@ -1484,7 +1484,7 @@ const Er = /* @__PURE__ */ ie({
1484
1484
  }, null)];
1485
1485
  }
1486
1486
  })
1487
- }), x(U.combinationKey).link && C(q("fm-button"), {
1487
+ }), x(U.combinationKey).link && C(H("fm-button"), {
1488
1488
  variant: Ke.Tertiary,
1489
1489
  prependIcon: "delete",
1490
1490
  textColor: Te.NeutralGray400,
@@ -1602,7 +1602,7 @@ const Er = /* @__PURE__ */ ie({
1602
1602
  }
1603
1603
  const ne = so(), ue = S(() => ne.breakpoints.value.xs);
1604
1604
  return (O, U) => {
1605
- const M = q("fm-button"), N = q("fm-table");
1605
+ const M = H("fm-button"), N = H("fm-table");
1606
1606
  return D(), Q(Se, {
1607
1607
  title: r(V)("menu.group.option.title")
1608
1608
  }, {
@@ -1670,7 +1670,7 @@ const Er = /* @__PURE__ */ ie({
1670
1670
  emits: ["update:group", "submit:group", "status:show"],
1671
1671
  setup(t, { expose: o, emit: e }) {
1672
1672
  let n = t;
1673
- const f = e, s = se(), m = Ze(), u = Pe(), b = dt(He(Fe())), h = H(!1), c = H(!1), v = (y) => {
1673
+ const f = e, s = se(), m = Ze(), u = Pe(), b = dt(qe(Fe())), h = q(!1), c = q(!1), v = (y) => {
1674
1674
  Pt.isBoolean(y) ? c.value = y : c.value = !c.value;
1675
1675
  }, _ = S(() => n.group ? n.config(n.group) : null), a = S(() => Gn(_.value)), E = (y) => a.value.includes(y), T = S(() => [
1676
1676
  {
@@ -1728,7 +1728,7 @@ const Er = /* @__PURE__ */ ie({
1728
1728
  function $(y) {
1729
1729
  return F(y) <= y.max || g("menu.common.validation.max_default_items", { max: y.max });
1730
1730
  }
1731
- const R = H(Ce.clone(n.group)), V = Vt(
1731
+ const R = q(Ce.clone(n.group)), V = Vt(
1732
1732
  () => !Ce.isEqual(n.group, R.value),
1733
1733
  () => {
1734
1734
  c.value = !1;
@@ -1780,7 +1780,7 @@ const Er = /* @__PURE__ */ ie({
1780
1780
  });
1781
1781
  const { t: g } = ce();
1782
1782
  return (y, I) => {
1783
- const G = q("fm-text-field"), W = q("fm-stepper-field"), ee = q("FmFormGroup"), P = q("fm-radio"), ne = q("fm-radio-group"), ue = q("fm-switch"), O = q("FormSection"), U = q("fm-button"), M = q("fm-side-sheet");
1783
+ const G = H("fm-text-field"), W = H("fm-stepper-field"), ee = H("FmFormGroup"), P = H("fm-radio"), ne = H("fm-radio-group"), ue = H("fm-switch"), O = H("FormSection"), U = H("fm-button"), M = H("fm-side-sheet");
1784
1784
  return D(), J(xe, null, [
1785
1785
  Me(y.$slots, "default", { trigger: v }),
1786
1786
  C(M, {
@@ -1954,7 +1954,7 @@ const Er = /* @__PURE__ */ ie({
1954
1954
  emits: ["update:combinations"],
1955
1955
  setup(t, { expose: o, emit: e }) {
1956
1956
  var $, R;
1957
- const n = t, f = e, s = se(), m = Pe(), u = dt(He(Fe())), b = H([]), h = H(n.combinations[0].combinationKey || ""), c = S(
1957
+ const n = t, f = e, s = se(), m = Pe(), u = dt(qe(Fe())), b = q([]), h = q(n.combinations[0].combinationKey || ""), c = S(
1958
1958
  () => b.value.findIndex((V) => V.combinationKey == h.value)
1959
1959
  ), v = S(
1960
1960
  () => n.combinations.map((V) => ({
@@ -2032,21 +2032,21 @@ const Er = /* @__PURE__ */ ie({
2032
2032
  });
2033
2033
  f("update:combinations", V);
2034
2034
  }
2035
- const w = H(!1);
2035
+ const w = q(!1);
2036
2036
  ye(
2037
2037
  () => w.value,
2038
2038
  (V) => {
2039
2039
  V && (b.value = me(n.combinations), h.value = n.combinations[0].combinationKey || "");
2040
2040
  }
2041
2041
  );
2042
- const p = H();
2042
+ const p = q();
2043
2043
  o({
2044
2044
  show: ($ = p.value) == null ? void 0 : $.show,
2045
2045
  trigger: (R = p.value) == null ? void 0 : R.trigger
2046
2046
  });
2047
2047
  const { t: F } = ce();
2048
2048
  return (V, A) => {
2049
- const k = q("fm-select"), d = q("fm-button"), l = q("fm-card");
2049
+ const k = H("fm-select"), d = H("fm-button"), l = H("fm-card");
2050
2050
  return D(), Q(yn, {
2051
2051
  ref_key: "baseFormRef",
2052
2052
  ref: p,
@@ -2107,7 +2107,7 @@ const Er = /* @__PURE__ */ ie({
2107
2107
  }, Br = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Yr = { class: "flex justify-between pb-16" }, zr = { class: "flex gap-8" }, jr = {
2108
2108
  key: 1,
2109
2109
  class: "flex flex-col items-center space-y-16"
2110
- }, Wr = { class: "flex flex-col items-center space-y-4 w-full" }, qr = { class: "fm-typo-en-title-sm-600" }, Hr = { class: "text-fm-color-typo-secondary" }, Xr = /* @__PURE__ */ ie({
2110
+ }, Wr = { class: "flex flex-col items-center space-y-4 w-full" }, Hr = { class: "fm-typo-en-title-sm-600" }, qr = { class: "text-fm-color-typo-secondary" }, Xr = /* @__PURE__ */ ie({
2111
2111
  __name: "SelectGroupDialog",
2112
2112
  props: {
2113
2113
  groupIds: {}
@@ -2154,11 +2154,11 @@ const Er = /* @__PURE__ */ ie({
2154
2154
  position: s.groups.length - 1,
2155
2155
  itemsLinked: []
2156
2156
  }));
2157
- const _ = H(me(o.groupIds || [])), a = H(""), { t: E } = ce(), T = () => {
2157
+ const _ = q(me(o.groupIds || [])), a = q(""), { t: E } = ce(), T = () => {
2158
2158
  n(_.value), f("primary"), e.close();
2159
2159
  };
2160
2160
  return (x, w) => {
2161
- const p = q("FmSearch"), F = q("FmCheckbox"), $ = q("FmButton");
2161
+ const p = H("FmSearch"), F = H("FmCheckbox"), $ = H("FmButton");
2162
2162
  return c.value.length > 0 ? (D(), J("div", Kr, [
2163
2163
  L("div", null, [
2164
2164
  C(p, {
@@ -2182,7 +2182,7 @@ const Er = /* @__PURE__ */ ie({
2182
2182
  label: R.label,
2183
2183
  value: R.value
2184
2184
  }, null, 8, ["modelValue", "label", "value"]), [
2185
- [qt, R.label.toLowerCase().includes(a.value.toLowerCase())]
2185
+ [Ht, R.label.toLowerCase().includes(a.value.toLowerCase())]
2186
2186
  ])
2187
2187
  ]))), 128))
2188
2188
  ])
@@ -2213,8 +2213,8 @@ const Er = /* @__PURE__ */ ie({
2213
2213
  ])
2214
2214
  ])) : (D(), J("div", jr, [
2215
2215
  L("div", Wr, [
2216
- L("p", qr, ge(r(E)("menu.common.empty.no_group.title")), 1),
2217
- L("p", Hr, ge(r(E)("menu.common.empty.no_group.subtitle")), 1)
2216
+ L("p", Hr, ge(r(E)("menu.common.empty.no_group.title")), 1),
2217
+ L("p", qr, ge(r(E)("menu.common.empty.no_group.subtitle")), 1)
2218
2218
  ]),
2219
2219
  C(r(Bt), null, {
2220
2220
  default: B(({ trigger: R }) => [
@@ -2454,7 +2454,7 @@ const Er = /* @__PURE__ */ ie({
2454
2454
  }) : m("update:form", "groups", l[0].groups || []);
2455
2455
  };
2456
2456
  return (l, i) => {
2457
- const g = q("FmButton"), y = q("FmTable");
2457
+ const g = H("FmButton"), y = H("FmTable");
2458
2458
  return D(), Q(Se, {
2459
2459
  title: r(s)("menu.product.form.group.title"),
2460
2460
  "sub-title": r(s)("menu.product.form.group.subtitle"),
@@ -2553,7 +2553,7 @@ const Er = /* @__PURE__ */ ie({
2553
2553
  };
2554
2554
  f("replace:form", w);
2555
2555
  }
2556
- H([{
2556
+ q([{
2557
2557
  accessorKey: "name",
2558
2558
  header: () => h.value || e("menu.inventory.columns.product_name"),
2559
2559
  enableSorting: !1
@@ -2597,7 +2597,7 @@ const Er = /* @__PURE__ */ ie({
2597
2597
  }, {
2598
2598
  default: ({
2599
2599
  trigger: w
2600
- }) => C(q("fm-button"), {
2600
+ }) => C(H("fm-button"), {
2601
2601
  variant: Ke.Tertiary,
2602
2602
  prependIcon: "edit",
2603
2603
  textColor: Te.NeutralGray400,
@@ -2606,7 +2606,7 @@ const Er = /* @__PURE__ */ ie({
2606
2606
  })]) : null;
2607
2607
  }
2608
2608
  }]);
2609
- const _ = H([]);
2609
+ const _ = q([]);
2610
2610
  async function a({
2611
2611
  _id: T
2612
2612
  }) {
@@ -2691,7 +2691,7 @@ const Er = /* @__PURE__ */ ie({
2691
2691
  }
2692
2692
  }
2693
2693
  }
2694
- const E = H(!1);
2694
+ const E = q(!1);
2695
2695
  async function T() {
2696
2696
  var F, $, R, V, A, k, d, l;
2697
2697
  if (!(e.form.name || "")) {
@@ -2730,7 +2730,7 @@ const Er = /* @__PURE__ */ ie({
2730
2730
  return ((p = f.currentCatalog) == null ? void 0 : p.usePriceTiers) ?? [];
2731
2731
  });
2732
2732
  return (p, F) => {
2733
- const $ = q("fm-select"), R = q("FmButton"), V = q("fm-checkbox"), A = q("fm-text-field"), k = Wt("tooltip");
2733
+ const $ = H("fm-select"), R = H("FmButton"), V = H("fm-checkbox"), A = H("fm-text-field"), k = Wt("tooltip");
2734
2734
  return D(), Q(Se, {
2735
2735
  title: r(s)("menu.product.form.price.title")
2736
2736
  }, {
@@ -2989,7 +2989,7 @@ const Er = /* @__PURE__ */ ie({
2989
2989
  () => b.value.length,
2990
2990
  () => T(b.value[b.value.length - 1]._id, !0)
2991
2991
  ), (w, p) => {
2992
- const F = q("fm-switch"), $ = q("fm-radio"), R = q("fm-radio-group"), V = q("fm-button"), A = q("fm-checkbox");
2992
+ const F = H("fm-switch"), $ = H("fm-radio"), R = H("fm-radio-group"), V = H("fm-button"), A = H("fm-checkbox");
2993
2993
  return D(), Q(Se, {
2994
2994
  title: r(f)("menu.product.form.print.title")
2995
2995
  }, {
@@ -3125,7 +3125,7 @@ const Er = /* @__PURE__ */ ie({
3125
3125
  }, ...n.takeaways.map((v) => ({
3126
3126
  label: v.name,
3127
3127
  value: v._id
3128
- }))]), c = H([{
3128
+ }))]), c = q([{
3129
3129
  accessorKey: "name",
3130
3130
  enableSorting: !1,
3131
3131
  header: () => u.value ? s("menu.product.form.takeaway.columns.variant") : s("menu.product.form.takeaway.columns.product")
@@ -3175,7 +3175,7 @@ const Er = /* @__PURE__ */ ie({
3175
3175
  }
3176
3176
  }]);
3177
3177
  return (v, _) => {
3178
- const a = q("fm-table");
3178
+ const a = H("fm-table");
3179
3179
  return D(), Q(Se, {
3180
3180
  title: r(s)("menu.product.form.takeaway.title"),
3181
3181
  "sub-title": r(s)("menu.product.form.takeaway.subtitle")
@@ -3215,7 +3215,7 @@ const Er = /* @__PURE__ */ ie({
3215
3215
  }), $;
3216
3216
  } else
3217
3217
  return { ...Re.generator.initMenuV4VariantGroup(), usedBy: [] };
3218
- }, c = H(h()), v = H(!1), _ = H(!1);
3218
+ }, c = q(h()), v = q(!1), _ = q(!1);
3219
3219
  function a($) {
3220
3220
  c.value.options = $;
3221
3221
  }
@@ -3286,7 +3286,7 @@ const Er = /* @__PURE__ */ ie({
3286
3286
  ), $e(() => {
3287
3287
  _.value = !0;
3288
3288
  }), ($, R) => {
3289
- const V = q("fm-text-field"), A = q("fm-icon"), k = q("fm-button"), d = q("fm-side-sheet");
3289
+ const V = H("fm-text-field"), A = H("fm-icon"), k = H("fm-button"), d = H("fm-side-sheet");
3290
3290
  return D(), Q(d, {
3291
3291
  id: "variant-form",
3292
3292
  modelValue: _.value,
@@ -3439,11 +3439,11 @@ const Sa = {
3439
3439
  label: _.name,
3440
3440
  value: _._id,
3441
3441
  disabled: !1
3442
- }))), b = H(me(m.selectedVariants)), h = H(""), { createVariant: c } = Fa(), v = () => {
3442
+ }))), b = q(me(m.selectedVariants)), h = q(""), { createVariant: c } = Fa(), v = () => {
3443
3443
  e(b.value), n("primary"), o.close();
3444
3444
  };
3445
3445
  return (_, a) => {
3446
- const E = q("FmSearch"), T = q("FmCheckbox"), x = q("FmButton");
3446
+ const E = H("FmSearch"), T = H("FmCheckbox"), x = H("FmButton");
3447
3447
  return u.value.length > 0 ? (D(), J("div", Sa, [
3448
3448
  L("div", null, [
3449
3449
  C(E, {
@@ -3467,7 +3467,7 @@ const Sa = {
3467
3467
  label: w.label,
3468
3468
  value: w.value
3469
3469
  }, null, 8, ["modelValue", "label", "value"]), [
3470
- [qt, w.label.toLowerCase().includes(h.value.toLowerCase())]
3470
+ [Ht, w.label.toLowerCase().includes(h.value.toLowerCase())]
3471
3471
  ])
3472
3472
  ]))), 128))
3473
3473
  ])
@@ -3530,10 +3530,10 @@ const Sa = {
3530
3530
  setup(t, {
3531
3531
  emit: o
3532
3532
  }) {
3533
- const e = t, n = se(), f = qn(), s = Fe(), m = Pe(), {
3533
+ const e = t, n = se(), f = Hn(), s = Fe(), m = Pe(), {
3534
3534
  t: u
3535
3535
  } = ce(), b = S(() => n.rules.item), h = S(() => b.value.minPrice && !!e.form.minPrice), c = S(() => !n.state.currentCatalogId), v = S(() => n.variants.reduce((d, l) => (d[l._id] = l, d), {}));
3536
- H(!1);
3536
+ q(!1);
3537
3537
  const _ = o;
3538
3538
  function a(d) {
3539
3539
  const l = Ce.clone(e.form);
@@ -3675,7 +3675,7 @@ const Sa = {
3675
3675
  modelValue: l,
3676
3676
  placeholder: y || u("menu.product.form.variant.placeholders.no_code"),
3677
3677
  "onUpdate:modelValue": (W) => {
3678
- $(d.row.index, "code", Ht(W, !0));
3678
+ $(d.row.index, "code", qt(W, !0));
3679
3679
  }
3680
3680
  });
3681
3681
  }
@@ -3753,7 +3753,7 @@ const Sa = {
3753
3753
  }) : !0;
3754
3754
  }
3755
3755
  return (d, l) => {
3756
- const i = q("fm-button"), g = q("fm-icon"), y = q("FmFormGroup"), I = q("fm-table");
3756
+ const i = H("fm-button"), g = H("fm-icon"), y = H("FmFormGroup"), I = H("fm-table");
3757
3757
  return D(), Q(Se, {
3758
3758
  id: r(ke).VARIANT,
3759
3759
  title: r(u)("menu.product.form.variant.title"),
@@ -3836,10 +3836,10 @@ const Sa = {
3836
3836
  }, Wa = {
3837
3837
  key: 6,
3838
3838
  class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
3839
- }, qa = {
3839
+ }, Ha = {
3840
3840
  key: 8,
3841
3841
  class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
3842
- }, Ha = {
3842
+ }, qa = {
3843
3843
  key: 10,
3844
3844
  class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
3845
3845
  }, Xa = /* @__PURE__ */ ie({
@@ -3872,12 +3872,12 @@ const Sa = {
3872
3872
  route: ""
3873
3873
  }), ae = ae.parent;
3874
3874
  return z.reverse();
3875
- }), c = H(null);
3875
+ }), c = q(null);
3876
3876
  $e(() => {
3877
3877
  var K;
3878
3878
  (K = c.value) == null || K.setSelectedItemIndex(h.value.length - 1);
3879
3879
  });
3880
- const v = S(() => m.rules.item), _ = H(), a = H(
3880
+ const v = S(() => m.rules.item), _ = q(), a = q(
3881
3881
  n.initialForm ? me(n.initialForm) : {
3882
3882
  ...Re.generator.initMenuV4Item(),
3883
3883
  category: n.categoryId
@@ -3910,7 +3910,7 @@ const Sa = {
3910
3910
  ), F = S(() => {
3911
3911
  var K;
3912
3912
  return p.value ? a.value.category == "" || a.value.category == null && ((K = _.value) == null ? void 0 : K.category) == null : bn(n.menu) && a.value.category == null;
3913
- }), $ = S(() => s.itemAttributeSettings.value.length > 0 && !p.value), R = H(
3913
+ }), $ = S(() => s.itemAttributeSettings.value.length > 0 && !p.value), R = q(
3914
3914
  a.value.category != null || !!a.value.code || !!a.value.orderFrom
3915
3915
  );
3916
3916
  function V(K) {
@@ -3929,7 +3929,7 @@ const Sa = {
3929
3929
  for (const [te, le] of Object.entries(z.customAttributes || {}))
3930
3930
  typeof le == "string" && le && !((ae = K[te]) != null && ae.includes(le)) && (K[te] = [...K[te] || [], le]);
3931
3931
  }), K;
3932
- }), k = H(!!a.value.price || !!a.value.minPrice || !!a.value.costing);
3932
+ }), k = q(!!a.value.price || !!a.value.minPrice || !!a.value.costing);
3933
3933
  function d(K) {
3934
3934
  K || (a.value = {
3935
3935
  ...a.value,
@@ -3938,7 +3938,7 @@ const Sa = {
3938
3938
  price: void 0
3939
3939
  }, U());
3940
3940
  }
3941
- const l = H(
3941
+ const l = q(
3942
3942
  (((_e = a.value.variant) == null ? void 0 : _e.variantCombinations) || []).some(
3943
3943
  (K) => !!K.price || !!K.orderFrom || !!K.code
3944
3944
  )
@@ -3958,7 +3958,7 @@ const Sa = {
3958
3958
  }
3959
3959
  }, U());
3960
3960
  }
3961
- const g = H(
3961
+ const g = q(
3962
3962
  !!a.value.inventoryBindings || (((Ee = a.value.variant) == null ? void 0 : Ee.variantCombinations) || []).some((K) => !!K.inventoryBindings) || !1
3963
3963
  );
3964
3964
  function y(K) {
@@ -3975,7 +3975,7 @@ const Sa = {
3975
3975
  } : void 0
3976
3976
  }, U());
3977
3977
  }
3978
- const I = H(
3978
+ const I = q(
3979
3979
  a.value.takeawayUsed != null || (((Ae = a.value.variant) == null ? void 0 : Ae.variantCombinations) || []).some((K) => K.takeawayUsed != null) || !1
3980
3980
  );
3981
3981
  function G(K) {
@@ -3992,11 +3992,11 @@ const Sa = {
3992
3992
  }
3993
3993
  }, U());
3994
3994
  }
3995
- const W = H(!!a.value.print);
3995
+ const W = q(!!a.value.print);
3996
3996
  function ee(K) {
3997
3997
  K || (a.value = { ...a.value, print: void 0 }, U());
3998
3998
  }
3999
- const P = H(
3999
+ const P = q(
4000
4000
  !!((Be = a.value.groups) != null && Be.length) != null || (((Ye = a.value.variant) == null ? void 0 : Ye.variantCombinations) || []).some((K) => {
4001
4001
  var z;
4002
4002
  return !!((z = K.groups) != null && z.length);
@@ -4054,7 +4054,7 @@ const Sa = {
4054
4054
  function O() {
4055
4055
  f("update:editingState", Ce.cloneDeep(a.value));
4056
4056
  }
4057
- const U = xo(O, 1e3), M = H(null);
4057
+ const U = xo(O, 1e3), M = q(null);
4058
4058
  function N() {
4059
4059
  return !Ce.isEqual(a.value, n.initialForm);
4060
4060
  }
@@ -4087,7 +4087,7 @@ const Sa = {
4087
4087
  getData: j,
4088
4088
  hasUnsavedChanges: N
4089
4089
  }), (K, z) => {
4090
- const ae = q("FmBreadcrumb"), te = q("FmForm");
4090
+ const ae = H("FmBreadcrumb"), te = H("FmForm");
4091
4091
  return D(), Q(te, {
4092
4092
  id: r(ke).GENERAL,
4093
4093
  class: fe(["tree-item-form", ["flex-1 py-24 space-y-24", "xs:w-full"]]),
@@ -4241,7 +4241,7 @@ const Sa = {
4241
4241
  ]),
4242
4242
  _: 1
4243
4243
  }, 8, ["toggle", "disabled"])) : X("", !0),
4244
- v.value.inventory && !p.value ? (D(), J("div", qa)) : X("", !0),
4244
+ v.value.inventory && !p.value ? (D(), J("div", Ha)) : X("", !0),
4245
4245
  v.value.inventory ? (D(), Q(Ne, {
4246
4246
  key: 9,
4247
4247
  toggle: g.value,
@@ -4266,7 +4266,7 @@ const Sa = {
4266
4266
  ]),
4267
4267
  _: 1
4268
4268
  }, 8, ["toggle", "disabled", "description", "title"])) : X("", !0),
4269
- v.value.takeaway(a.value.category ?? ((le = _.value) == null ? void 0 : le.category)) && !p.value ? (D(), J("div", Ha)) : X("", !0),
4269
+ v.value.takeaway(a.value.category ?? ((le = _.value) == null ? void 0 : le.category)) && !p.value ? (D(), J("div", qa)) : X("", !0),
4270
4270
  v.value.takeaway(a.value.category ?? ((Ie = _.value) == null ? void 0 : Ie.category)) ? (D(), Q(Ne, {
4271
4271
  key: 11,
4272
4272
  toggle: I.value,
@@ -4299,7 +4299,7 @@ const Sa = {
4299
4299
  }
4300
4300
  });
4301
4301
  function Ja(t) {
4302
- const { storageKey: o, defaultWidth: e, minWidth: n, maxWidth: f } = t, s = Lo(o, e), m = H(!1), u = H(null);
4302
+ const { storageKey: o, defaultWidth: e, minWidth: n, maxWidth: f } = t, s = Lo(o, e), m = q(!1), u = q(null);
4303
4303
  function b(v) {
4304
4304
  v.preventDefault(), m.value = !0, document.addEventListener("mousemove", h), document.addEventListener("mouseup", c), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
4305
4305
  }
@@ -4482,7 +4482,7 @@ function bt(t, o, e, n) {
4482
4482
  ];
4483
4483
  }
4484
4484
  function il() {
4485
- const t = se(), o = Fe(), e = Pe(), n = He(o), f = dt(n), s = S(() => {
4485
+ const t = se(), o = Fe(), e = Pe(), n = qe(o), f = dt(n), s = S(() => {
4486
4486
  const b = t.categorizedRawMenuItems, h = new Set(
4487
4487
  t.currentCatalog ? Et.getItemAvailable(t.currentCatalog) : t.state.menu.modules.item.map((c) => c._id)
4488
4488
  );
@@ -4816,7 +4816,7 @@ function ul() {
4816
4816
  }
4817
4817
  const { price: Be, overrided: Ye } = de(), K = {
4818
4818
  label: be.Dinero.fromFdoDinero(Be).toFormat(!0),
4819
- variant: Ye ? qe.PRIMARY : qe.PLAIN
4819
+ variant: Ye ? He.PRIMARY : He.PLAIN
4820
4820
  };
4821
4821
  return {
4822
4822
  id: `item-${P._id}-variant-${ne == null ? void 0 : ne.combinationKey}-group-${ue._id}-${M._id}-${M.combinationKey}-${N}`,
@@ -5302,7 +5302,7 @@ const Tt = /* @__PURE__ */ ie({
5302
5302
  setup(t) {
5303
5303
  const o = t;
5304
5304
  return (e, n) => {
5305
- const f = q("FmIcon");
5305
+ const f = H("FmIcon");
5306
5306
  return D(), J("div", {
5307
5307
  class: fe(`p-4 relative flex items-center justify-center ${o.visible ? "" : "invisible"}`)
5308
5308
  }, [
@@ -5326,7 +5326,7 @@ const Tt = /* @__PURE__ */ ie({
5326
5326
  },
5327
5327
  setup(t) {
5328
5328
  return (o, e) => {
5329
- const n = q("FmTooltip");
5329
+ const n = H("FmTooltip");
5330
5330
  return o.tooltip ? (D(), Q(n, {
5331
5331
  key: 0,
5332
5332
  content: o.tooltip,
@@ -5350,7 +5350,7 @@ const Tt = /* @__PURE__ */ ie({
5350
5350
  }
5351
5351
  }), Cn = 200;
5352
5352
  function cl(t) {
5353
- const { itemHeight: o, emit: e, getFlattenedItems: n, getContainerRef: f, canDropFn: s } = t, m = H(!1), u = H(null), b = H(null), h = H(null), c = H(0), v = H({ x: 0, y: 0 }), _ = H(/* @__PURE__ */ new Map());
5353
+ const { itemHeight: o, emit: e, getFlattenedItems: n, getContainerRef: f, canDropFn: s } = t, m = q(!1), u = q(null), b = q(null), h = q(null), c = q(0), v = q({ x: 0, y: 0 }), _ = q(/* @__PURE__ */ new Map());
5354
5354
  function a(w, p) {
5355
5355
  p.button === 0 && (v.value = { x: p.clientX, y: p.clientY }, u.value = w, c.value = p.clientY, _.value = Xo(n()), setTimeout(() => {
5356
5356
  u.value === w && (m.value = !0, v.value = { x: p.clientX, y: p.clientY }, e("updateDragState", w, null, null), document.addEventListener("mousemove", E), document.addEventListener("mouseup", T));
@@ -5512,7 +5512,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5512
5512
  });
5513
5513
  return (_, a) => {
5514
5514
  var x, w, p;
5515
- const E = q("FmIcon"), T = q("FmTooltip");
5515
+ const E = H("FmIcon"), T = H("FmTooltip");
5516
5516
  return D(), J("div", {
5517
5517
  class: fe(["tree-node", "max-w-full", "py-4 px-8 flex items-center justify-between gap-4", "fm-corner-radius-sm", "select-none", f.value, s.value, m.value, {
5518
5518
  "opacity-50": _.dragging
@@ -5580,7 +5580,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5580
5580
  return (R = F.onClick) == null ? void 0 : R.call(F);
5581
5581
  }
5582
5582
  }, null, 8, ["name", "tooltip", "onClick"]))), 128))]), C(yt, {
5583
- class: fe(["fm-typo-en-body-md-400", ((w = _.node.rightLabel) == null ? void 0 : w.variant) === r(qe).PRIMARY ? "text-fm-color-primary" : "text-fm-color-typo-secondary"]),
5583
+ class: fe(["fm-typo-en-body-md-400", ((w = _.node.rightLabel) == null ? void 0 : w.variant) === r(He).PRIMARY ? "text-fm-color-primary" : "text-fm-color-typo-secondary"]),
5584
5584
  text: (p = _.node.rightLabel) == null ? void 0 : p.label,
5585
5585
  highlightedStrings: _.highlightedStrings,
5586
5586
  onClick: a[1] || (a[1] = ze((F) => {
@@ -5630,7 +5630,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5630
5630
  }
5631
5631
  return A(f.nodes), V;
5632
5632
  });
5633
- H(null);
5633
+ q(null);
5634
5634
  const {
5635
5635
  list: h,
5636
5636
  scrollTo: c,
@@ -5674,7 +5674,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5674
5674
  cancelDrag: R
5675
5675
  }), (V, A) => {
5676
5676
  var d;
5677
- const k = q("FmIcon");
5677
+ const k = H("FmIcon");
5678
5678
  return D(), J("div", Fn({
5679
5679
  class: "tree-container"
5680
5680
  }, r(v)), [L("div", Sn(On(r(_))), [(D(!0), J(xe, null, Ue(r(h), ({
@@ -5732,7 +5732,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5732
5732
  },
5733
5733
  setup(t) {
5734
5734
  return (o, e) => {
5735
- const n = q("FmIcon");
5735
+ const n = H("FmIcon");
5736
5736
  return D(), J("div", Vl, [
5737
5737
  o.icon ? (D(), Q(n, {
5738
5738
  key: 0,
@@ -5777,7 +5777,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5777
5777
  ye([() => e.overridedMenu, () => _.value], async () => {
5778
5778
  const x = await E();
5779
5779
  if (e.filterState.searchKey) {
5780
- const w = qo(x.tree, e.filterState.searchKey);
5780
+ const w = Ho(x.tree, e.filterState.searchKey);
5781
5781
  f.setTreeNodes(w.subTree), f.setExpandedNodeIds(w.shouldExpandNodeIds);
5782
5782
  } else
5783
5783
  f.setTreeNodes(x.tree);
@@ -5830,7 +5830,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5830
5830
  tooltip: r(T)("menu.tree_editor.actions.collapse_all"),
5831
5831
  visible: !0,
5832
5832
  onClick: w[4] || (w[4] = (p) => r(f).collapseAllNodes())
5833
- }, null, 8, ["tooltip"])])]), C(Hn, null, {
5833
+ }, null, 8, ["tooltip"])])]), C(qn, null, {
5834
5834
  default: B(() => [C(Dl, {
5835
5835
  nodes: r(f).treeNodes,
5836
5836
  selectedNodeId: r(f).selectedNodeId,
@@ -5885,7 +5885,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5885
5885
  }))
5886
5886
  ]);
5887
5887
  return (c, v) => {
5888
- const _ = q("FmSearch");
5888
+ const _ = H("FmSearch");
5889
5889
  return D(), J("div", Al, [
5890
5890
  L("div", Nl, [
5891
5891
  L("div", Ll, [
@@ -5921,7 +5921,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5921
5921
  }), Bl = { class: "h-full flex flex-col relative" }, Yl = { class: "p-8" }, zl = { class: "flex-1 p-8" }, jl = {
5922
5922
  key: 0,
5923
5923
  class: "absolute inset-0 flex items-center justify-center tree-overlay"
5924
- }, Wl = { class: "flex items-center justify-center gap-16" }, ql = /* @__PURE__ */ ie({
5924
+ }, Wl = { class: "flex items-center justify-center gap-16" }, Hl = /* @__PURE__ */ ie({
5925
5925
  __name: "TreePanel",
5926
5926
  props: {
5927
5927
  menu: {},
@@ -5930,7 +5930,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5930
5930
  },
5931
5931
  emits: ["tree-event"],
5932
5932
  setup(t, { emit: o }) {
5933
- const e = o, n = H({
5933
+ const e = o, n = q({
5934
5934
  catalogId: null,
5935
5935
  schedulerId: null,
5936
5936
  searchKey: ""
@@ -5938,7 +5938,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5938
5938
  return ye([() => n.value.catalogId, () => n.value.schedulerId], () => {
5939
5939
  f.selectCatalog(n.value.catalogId), f.selectScheduler(n.value.schedulerId);
5940
5940
  }), (s, m) => {
5941
- const u = q("FmCircularProgress");
5941
+ const u = H("FmCircularProgress");
5942
5942
  return D(), J("div", Bl, [
5943
5943
  L("div", Yl, [
5944
5944
  C(Kl, {
@@ -5963,7 +5963,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5963
5963
  ]);
5964
5964
  };
5965
5965
  }
5966
- }), Hl = { class: "pl-24 scroll-y-auto h-full overflow-y-auto relative" }, Xl = { key: 1 }, Jl = { class: "text-center text-sm text-gray-500 p-16" }, Ql = /* @__PURE__ */ ie({
5966
+ }), ql = { class: "pl-24 scroll-y-auto h-full overflow-y-auto relative" }, Xl = { key: 1 }, Jl = { class: "text-center text-sm text-gray-500 p-16" }, Ql = /* @__PURE__ */ ie({
5967
5967
  __name: "TreeEditor",
5968
5968
  props: {
5969
5969
  menu: {}
@@ -5975,7 +5975,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
5975
5975
  }), Ft(() => {
5976
5976
  n.clearHistory(), f.setExpandedNodeIds([]), f.setSelectedNodeId(null);
5977
5977
  });
5978
- const s = H(null), { currentItemId: m, initialForm: u, itemFormKey: b } = tr(n), { saveItemFormEditingState: h } = Jo(s, n), c = H(null);
5978
+ const s = q(null), { currentItemId: m, initialForm: u, itemFormKey: b } = tr(n), { saveItemFormEditingState: h } = Jo(s, n), c = q(null);
5979
5979
  async function v(a) {
5980
5980
  if (a.type === he.SELECT_ITEM || a.type === he.SELECT_PRICE || a.type === he.SELECT_GROUP || a.type === he.SELECT_VARIANT) {
5981
5981
  if (!_(a.itemId))
@@ -6006,7 +6006,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
6006
6006
  }
6007
6007
  return (a, E) => (D(), Q(ll, null, {
6008
6008
  "left-panel": B(() => [
6009
- C(ql, {
6009
+ C(Hl, {
6010
6010
  menu: a.menu,
6011
6011
  "overrided-menu": r(n).mergedMenu,
6012
6012
  loading: r(n).workerIsComputing,
@@ -6014,7 +6014,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
6014
6014
  }, null, 8, ["menu", "overrided-menu", "loading"])
6015
6015
  ]),
6016
6016
  "right-panel": B(() => [
6017
- L("div", Hl, [
6017
+ L("div", ql, [
6018
6018
  r(u) ? (D(), Q(Xa, {
6019
6019
  ref_key: "itemFormRef",
6020
6020
  ref: s,
@@ -6050,11 +6050,11 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
6050
6050
  },
6051
6051
  emits: ["update:show", "submit"],
6052
6052
  setup(t, { emit: o }) {
6053
- const e = t, n = Fe(), { minor: f } = He(n), { t: s } = ce(), m = o, u = () => {
6053
+ const e = t, n = Fe(), { minor: f } = qe(n), { t: s } = ce(), m = o, u = () => {
6054
6054
  m("update:show", !1);
6055
6055
  }, b = on(), h = se();
6056
6056
  h.selectCatalog(null), h.selectScheduler(null);
6057
- const c = H(!1), v = () => {
6057
+ const c = q(!1), v = () => {
6058
6058
  f(
6059
6059
  async () => {
6060
6060
  const a = h.state.menu, E = io(a);
@@ -6073,7 +6073,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
6073
6073
  }
6074
6074
  );
6075
6075
  return (a, E) => {
6076
- const T = q("fm-button"), x = q("fm-form");
6076
+ const T = H("fm-button"), x = H("fm-form");
6077
6077
  return D(), Q(Dn, { to: "body" }, [
6078
6078
  C(Vn, { name: "fade" }, {
6079
6079
  default: B(() => [
@@ -6126,7 +6126,7 @@ const pl = { key: 0 }, fl = ["innerHTML"], gl = /* @__PURE__ */ ie({
6126
6126
  ]);
6127
6127
  };
6128
6128
  }
6129
- }), ri = /* @__PURE__ */ Xe(oi, [["__scopeId", "data-v-953cdfe9"]]), Ui = /* @__PURE__ */ ie({
6129
+ }), ri = /* @__PURE__ */ Xe(oi, [["__scopeId", "data-v-632a1790"]]), Ui = /* @__PURE__ */ ie({
6130
6130
  __name: "TreeEditorOpenner",
6131
6131
  setup(t) {
6132
6132
  const o = on(), e = nn();