@feedmepos/mf-menu 0.31.51-beta.1 → 0.31.52-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 (67) hide show
  1. package/dist/{App-nZUeOsRj.js → App-MaktN0h5.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CZGHeqq-.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DZnCqrjJ.js} +3 -3
  3. package/dist/{Catalog-CQHowlMD.js → Catalog-cEpnDQ84.js} +6 -6
  4. package/dist/{Category-CdO_RVBl.js → Category-C3Ypu2VQ.js} +4 -4
  5. package/dist/{Category-IHtQRYpA.js → Category-ZiBoYQQN.js} +6 -6
  6. package/dist/{CookingGuide-EBJuyvti.js → CookingGuide-DH0pYHsm.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DWwByBHi.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-C4e7SpGo.js} +1 -1
  8. package/dist/{Group-H9YjM9Uh.js → Group-WRlOExBi.js} +1 -1
  9. package/dist/{Group-B9gYyuw8.js → Group-j5TSPPHj.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-D15J3zxB.js → Group.vue_vue_type_script_setup_true_lang-CpOAdyWu.js} +8 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B2FS4qly.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Da4d_t4d.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BKYGviw4.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DJ7_iBd1.js} +7 -7
  13. package/dist/{Ingredient-B5GU-Ids.js → Ingredient-7o_2tWwH.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BHLP_plA.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DVBc2xYW.js} +2 -2
  15. package/dist/{LinkProductSideSheet-B5Mv40Np.js → LinkProductSideSheet-BBLfSM53.js} +3 -3
  16. package/dist/{MenuSetting-D6yyyckv.js → MenuSetting-d9jbk0M4.js} +5 -5
  17. package/dist/{PrintRoute-Bwa6CM4E.js → PrintRoute-BQCMHXJ9.js} +4 -4
  18. package/dist/{Product-D5NxKIbK.js → Product-CXt3FaBK.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DFSWEKN-.js → Product.vue_vue_type_script_setup_true_lang-C9SXeiW2.js} +13 -13
  20. package/dist/{ProductInternalTools-bNqxtp09.js → ProductInternalTools-BBNHbRCz.js} +5 -5
  21. package/dist/{Products-BGO9EeZJ.js → Products-CXRSPmS2.js} +11 -11
  22. package/dist/{Publish-DFgfd9PG.js → Publish-BOaAkCRE.js} +3 -3
  23. package/dist/{Recipe-ayBsaO3Y.js → Recipe-DUY4qTTX.js} +4 -4
  24. package/dist/{Scheduler-B7muq2xt.js → Scheduler-BPEWew1d.js} +3 -3
  25. package/dist/{ServingSequence-B7gaxwFi.js → ServingSequence-9JE73A2n.js} +3 -3
  26. package/dist/{Setting-B6KAm9OQ.js → Setting-DdL7wa-o.js} +5 -5
  27. package/dist/{Subcategory-BPjF5OW7.js → Subcategory-znLDoHOm.js} +4 -4
  28. package/dist/{Takeaway-CAHgx8Pb.js → Takeaway-CanMCNoK.js} +4 -4
  29. package/dist/{Takeaway-Cr8Ok4de.js → Takeaway-DLc6Pu42.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-B31aUQ3c.js → Takeaway.vue_vue_type_script_setup_true_lang-DNQTblGJ.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-C8HFPhnD.js → Thumbnail.vue_vue_type_script_setup_true_lang-DqzK9R-0.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Bkvg9n_Y.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-734F0DDo.js} +156 -156
  33. package/dist/{Unit-Bz0m4H4g.js → Unit-DYPVcncJ.js} +2 -2
  34. package/dist/{Variant-Df3s68dC.js → Variant-CPNPsxlY.js} +3 -3
  35. package/dist/{_id_-B6dJ5d52.js → _id_-BtEgjazW.js} +10 -10
  36. package/dist/{app-BaxOlDbP.js → app-edIuGM5n.js} +1 -1
  37. package/dist/{app-CjXgTr4z.js → app-m5E6HHmB.js} +26 -26
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/src/components/feature/TreeEditor/history/jsonDiffPatch.d.ts +130 -0
  40. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +3 -3
  41. package/dist/apps/mf-menu/src/stores/menu.d.ts +0 -1
  42. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/assets/{validate-menu-Bj2kRZAS.js → linked-status-CvGzvMr1.js} +7 -7
  44. package/dist/assets/{override-menu-qDB0GOu1.js → override-menu-143sdmgy.js} +2 -2
  45. package/dist/assets/{linked-status-CX6Q-vWP.js → validate-menu-GPsZur6N.js} +7 -7
  46. package/dist/{catalog-BjKlXYln.js → catalog-DbBOv8uZ.js} +1 -1
  47. package/dist/{catalogSetting-YqC6Ojo8.js → catalogSetting-OMF_13MG.js} +1 -1
  48. package/dist/{category-CNoYX7sj.js → category-CkHad8Qe.js} +1 -1
  49. package/dist/{currency-CI2JmD81.js → currency-DF2AE_Ev.js} +1 -1
  50. package/dist/{customAttributes-6K-H9b8-.js → customAttributes-BBq_Rv5r.js} +1 -1
  51. package/dist/{dayjs.min-CuNawXBv.js → dayjs.min-Baxvt3jl.js} +1 -1
  52. package/dist/{index-Cbmiaavc.js → index-9LDXtBYA.js} +3 -3
  53. package/dist/{index-Dk3Tf8J1.js → index-BCaofwYh.js} +1 -1
  54. package/dist/{index-B7J4O0Yk.js → index-BgQC1nrS.js} +4 -4
  55. package/dist/{index-D9Ja3xu0.js → index-OrBLJRSr.js} +1 -1
  56. package/dist/{item-chcJdZaJ.js → item-BLAE_RCk.js} +16 -16
  57. package/dist/{jszip.min-DCZRJUBf.js → jszip.min-BMisfLkQ.js} +2 -2
  58. package/dist/{menu-CmVLUyqN.js → menu-3zZmORBk.js} +1 -1
  59. package/dist/{menu-Bf2WmNLJ.js → menu-k8bqSg47.js} +5 -5
  60. package/dist/menuV2-BYX-027p.js +1042 -0
  61. package/dist/{priceTier-BzBG7LNF.js → priceTier-znTjAPPz.js} +1 -1
  62. package/dist/{scheduler-CYGLnR9N.js → scheduler-DJbCs-IR.js} +4 -4
  63. package/dist/{subcategory-r_AeUJ_h.js → subcategory-CHBqzP1A.js} +2 -2
  64. package/dist/{toExcel-BupMrq3s.js → toExcel-ZjuZ9iuw.js} +2 -2
  65. package/dist/{unit-BpR8s1rn.js → unit-BYsP3DYD.js} +2 -2
  66. package/package.json +7 -2
  67. package/dist/menuV2-DOFVpwgW.js +0 -712
@@ -1,30 +1,30 @@
1
- import { computed as D, shallowRef as Wt, ref as H, watch as ye, nextTick as nt, getCurrentInstance as xn, onMounted as Ae, defineComponent as ae, resolveComponent as W, createElementBlock as J, openBlock as $, createBlock as q, normalizeClass as fe, createElementVNode as A, createVNode as C, unref as o, withCtx as B, toDisplayString as ge, mergeModels as Ht, useModel as qt, createCommentVNode as X, resolveDirective as Xt, withDirectives as ft, createTextVNode as Sn, renderSlot as Me, h as ve, Fragment as Oe, renderList as Ne, vShow as Jt, withModifiers as qe, createSlots as Fn, onBeforeUnmount as Ot, watchEffect as On, onUnmounted as Dn, normalizeStyle as ct, mergeProps as Vn, normalizeProps as $n, guardReactiveProps as Pn, Teleport as Un, Transition as Rn, withKeys as Mn } from "vue";
2
- import { g as An, o as Nn, f as Ln, a as Gn, n as Qt, _ as Zt, I as Kn, S as Bn, b as Dt, C as zn, R as We, c as en, d as Et, e as tn, h as Yn, m as jn, F as Wn, M as nn, j as Hn, r as qn, k as on, l as Nt, p as rn, q as Xn, P as Jn, s as Qn, t as an, u as Zn, T as Be } from "./item-chcJdZaJ.js";
3
- import { _ as eo, T as to } from "./app-CjXgTr4z.js";
4
- import { B as be, J as _e, A as te, G as ot, K as no, M as oo, N as ro, O as Vt, P as ao, D as Le, Q as lo, H as me, R as io, T as $t, I as ke, U as vt, V as so, W as uo, X as bt, Y as Lt, Z as co, u as ln, $ as mo } from "./menu-Bf2WmNLJ.js";
1
+ import { computed as D, shallowRef as Wt, ref as q, watch as ye, nextTick as nt, getCurrentInstance as xn, onMounted as Ae, defineComponent as ae, resolveComponent as W, createElementBlock as J, openBlock as $, createBlock as H, normalizeClass as fe, createElementVNode as A, createVNode as C, unref as o, withCtx as B, toDisplayString as ge, mergeModels as qt, useModel as Ht, createCommentVNode as X, resolveDirective as Xt, withDirectives as ft, createTextVNode as Sn, renderSlot as Me, h as ve, Fragment as Oe, renderList as Ne, vShow as Jt, withModifiers as He, createSlots as Fn, onBeforeUnmount as Ot, watchEffect as On, onUnmounted as Dn, normalizeStyle as ct, mergeProps as Vn, normalizeProps as $n, guardReactiveProps as Pn, Teleport as Un, Transition as Rn, withKeys as Mn } from "vue";
2
+ import { g as An, o as Nn, f as Ln, a as Gn, n as Qt, _ as Zt, I as Kn, S as Bn, b as Dt, C as zn, R as We, c as en, d as Et, e as tn, h as Yn, m as jn, F as Wn, M as nn, j as qn, r as Hn, k as on, l as Nt, p as rn, q as Xn, P as Jn, s as Qn, t as an, u as Zn, T as Be } from "./item-BLAE_RCk.js";
3
+ import { _ as eo, T as to } from "./app-m5E6HHmB.js";
4
+ import { B as be, J as _e, A as te, G as ot, K as no, M as oo, N as ro, O as Vt, P as ao, D as Le, Q as lo, H as me, R as io, T as $t, I as ke, U as vt, V as so, W as uo, X as bt, Y as Lt, Z as co, u as ln, $ as mo } from "./menu-k8bqSg47.js";
5
5
  import { useI18n as ce, useCoreStore as rt, CustomAttributesForm as sn } from "@feedmepos/mf-common";
6
- import { useDialog as Ge, useDialogChild as Pt, useSnackbar as Re, FmButtonColorThemeVariant as Fe, components as Ie, FmButtonVariant as He, useBreakpoints as po } from "@feedmepos/ui-library";
6
+ import { useDialog as Ge, useDialogChild as Pt, useSnackbar as Re, FmButtonColorThemeVariant as Fe, components as Ie, FmButtonVariant as qe, useBreakpoints as po } from "@feedmepos/ui-library";
7
7
  import { u as Ut } from "./discardConfirm-BHni0LNu.js";
8
8
  import { defineStore as fo } from "pinia";
9
- import { _ as De, a as Ue, b as go } from "./customAttributes-6K-H9b8-.js";
10
- import { u as se, g as un, m as vo } from "./menuV2-DOFVpwgW.js";
11
- import { s as Tt, _ as bo } from "./index-Dk3Tf8J1.js";
12
- import { _ as Gt } from "./category-CNoYX7sj.js";
13
- import { _ as _o, a as yo, u as ho } from "./Thumbnail.vue_vue_type_script_setup_true_lang-C8HFPhnD.js";
14
- import { _ as Ze, L as xt } from "./LinkProductSideSheet-B5Mv40Np.js";
9
+ import { _ as De, a as Ue, b as go } from "./customAttributes-BBq_Rv5r.js";
10
+ import { u as se, g as un, m as vo } from "./menuV2-BYX-027p.js";
11
+ import { s as Tt, _ as bo } from "./index-BCaofwYh.js";
12
+ import { _ as Gt } from "./category-CkHad8Qe.js";
13
+ import { _ as _o, a as yo, u as ho } from "./Thumbnail.vue_vue_type_script_setup_true_lang-DqzK9R-0.js";
14
+ import { _ as Ze, L as xt } from "./LinkProductSideSheet-BBLfSM53.js";
15
15
  import { _ as dn } from "./tooltip-CQW9YRO5.js";
16
- import { _ as Xe, T as wo, l as Co } from "./index-B7J4O0Yk.js";
16
+ import { _ as Xe, T as wo, l as Co } from "./index-BgQC1nrS.js";
17
17
  import { u as Io } from "./search-BAPEUu1R.js";
18
18
  import { c as Rt } from "./check-C9mY6LiX.js";
19
- import { f as tt } from "./currency-CI2JmD81.js";
19
+ import { f as tt } from "./currency-DF2AE_Ev.js";
20
20
  import { c as ko } from "./string-DpfFixWH.js";
21
21
  import { useInventoryStore as Eo, InventoryBindingSummary as To } from "@feedmepos/mf-inventory-portal";
22
- import { u as xo } from "./priceTier-BzBG7LNF.js";
22
+ import { u as xo } from "./priceTier-znTjAPPz.js";
23
23
  import { d as Mt } from "./vuedraggable-CK8z7qA8.js";
24
- import { _ as So } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CZGHeqq-.js";
24
+ import { _ as So } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DZnCqrjJ.js";
25
25
  import "./app-CiBqmBzO.js";
26
26
  /* empty css */
27
- import { i as Fo, t as At, w as Oo, a as cn, b as mn, n as Do, c as Vo, r as $o, _ as Po } from "./index-D9Ja3xu0.js";
27
+ import { i as Fo, t as At, w as Oo, a as cn, b as mn, n as Do, c as Vo, r as $o, _ as Po } from "./index-OrBLJRSr.js";
28
28
  import { c as mt } from "./object-DVUNCr7w.js";
29
29
  import { _ as Uo } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
30
30
  import { _ as Kt } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
@@ -58,7 +58,7 @@ function Bt(...n) {
58
58
  return mn(w), w;
59
59
  }
60
60
  function Ro() {
61
- const n = H(!1), r = xn();
61
+ const n = q(!1), r = xn();
62
62
  return r && Ae(() => {
63
63
  n.value = !0;
64
64
  }, r), n;
@@ -126,7 +126,7 @@ function Bo(n, r, e, t = {}) {
126
126
  console.error(l);
127
127
  },
128
128
  initOnMounted: I
129
- } = t, S = (b ? Wt : H)(typeof r == "function" ? r() : r);
129
+ } = t, S = (b ? Wt : q)(typeof r == "function" ? r() : r);
130
130
  if (!e)
131
131
  try {
132
132
  e = Lo("getDefaultStorage", () => {
@@ -228,7 +228,7 @@ function Yo(n, r = { width: 0, height: 0 }, e = {}) {
228
228
  const { window: t = Je, box: m = "content-box" } = e, s = D(() => {
229
229
  var v, f;
230
230
  return (f = (v = ze(n)) == null ? void 0 : v.namespaceURI) == null ? void 0 : f.includes("svg");
231
- }), g = H(r.width), d = H(r.height), { stop: h } = zo(
231
+ }), g = q(r.width), d = q(r.height), { stop: h } = zo(
232
232
  n,
233
233
  ([v]) => {
234
234
  const f = m === "border-box" ? v.borderBoxSize : m === "content-box" ? v.contentBoxSize : v.devicePixelContentBoxSize;
@@ -270,7 +270,7 @@ function jo(n, r, e = {}) {
270
270
  return Bo(n, r, t == null ? void 0 : t.localStorage, e);
271
271
  }
272
272
  function Wo(n, r) {
273
- const { containerStyle: e, wrapperProps: t, scrollTo: m, calculateRange: s, currentList: g, containerRef: d } = "itemHeight" in r ? Xo(r, n) : qo(r, n);
273
+ const { containerStyle: e, wrapperProps: t, scrollTo: m, calculateRange: s, currentList: g, containerRef: d } = "itemHeight" in r ? Xo(r, n) : Ho(r, n);
274
274
  return {
275
275
  list: g,
276
276
  scrollTo: m,
@@ -285,8 +285,8 @@ function Wo(n, r) {
285
285
  };
286
286
  }
287
287
  function pn(n) {
288
- const r = H(null), e = Yo(r), t = H([]), m = Wt(n);
289
- return { state: H({ start: 0, end: 10 }), source: m, currentList: t, size: e, containerRef: r };
288
+ const r = q(null), e = Yo(r), t = q([]), m = Wt(n);
289
+ return { state: q({ start: 0, end: 10 }), source: m, currentList: t, size: e, containerRef: r };
290
290
  }
291
291
  function fn(n, r, e) {
292
292
  return (t) => {
@@ -343,16 +343,16 @@ function _n(n, r, e, t) {
343
343
  function yn(n, r) {
344
344
  return D(() => typeof n == "number" ? r.value.length * n : r.value.reduce((e, t, m) => e + n(m), 0));
345
345
  }
346
- const Ho = {
346
+ const qo = {
347
347
  horizontal: "scrollLeft",
348
348
  vertical: "scrollTop"
349
349
  };
350
350
  function hn(n, r, e, t) {
351
351
  return (m) => {
352
- t.value && (t.value[Ho[n]] = e(m), r());
352
+ t.value && (t.value[qo[n]] = e(m), r());
353
353
  };
354
354
  }
355
- function qo(n, r) {
355
+ function Ho(n, r) {
356
356
  const e = pn(r), { state: t, source: m, currentList: s, size: g, containerRef: d } = e, h = { overflowX: "auto" }, { itemWidth: w, overscan: b = 5 } = n, v = fn(t, m, w), f = gn(m, w), a = vn("horizontal", b, f, v, e), I = bn(w, m), S = D(() => I(t.value.start)), O = yn(w, m);
357
357
  _n(g, r, d, a);
358
358
  const k = hn("horizontal", a, I, d), p = D(() => ({
@@ -493,7 +493,7 @@ function nr(n) {
493
493
  }), r;
494
494
  }
495
495
  const at = fo("mf-menu-tree", () => {
496
- const n = H(), r = H([]), e = H(null), t = H([]);
496
+ const n = q(), r = q([]), e = q(null), t = q([]);
497
497
  function m(f) {
498
498
  r.value = f, b.value = tr(f);
499
499
  }
@@ -523,7 +523,7 @@ const at = fo("mf-menu-tree", () => {
523
523
  a(I);
524
524
  t.value = f;
525
525
  }
526
- const b = H(/* @__PURE__ */ new Map());
526
+ const b = q(/* @__PURE__ */ new Map());
527
527
  function v(f) {
528
528
  return b.value.get(f);
529
529
  }
@@ -642,7 +642,7 @@ function lr(n, r, e, t) {
642
642
  return Nn(s, m);
643
643
  }
644
644
  function ir(n) {
645
- const r = H(null), e = D(() => r.value ? !n.state.currentCatalogId && !n.state.currentSchedulerId ? n.state.menu.modules.item.find(
645
+ const r = q(null), e = D(() => r.value ? !n.state.currentCatalogId && !n.state.currentSchedulerId ? n.state.menu.modules.item.find(
646
646
  (m) => m._id === r.value
647
647
  ) : lr(
648
648
  n.state.menu,
@@ -745,7 +745,7 @@ const gt = () => {
745
745
  }, mr = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pr = /* @__PURE__ */ ae({
746
746
  __name: "ImageUploadDialog",
747
747
  setup(n) {
748
- const { t: r } = ce(), e = H(), t = H(!1);
748
+ const { t: r } = ce(), e = q(), t = q(!1);
749
749
  async function m([w]) {
750
750
  if (!w) return;
751
751
  t.value = !0;
@@ -804,7 +804,7 @@ const gt = () => {
804
804
  C(v, { name: "close" })
805
805
  ])
806
806
  ])
807
- ])) : ($(), q(f, {
807
+ ])) : ($(), H(f, {
808
808
  key: 1,
809
809
  accept: ".jpg, .JPG, .jpeg, .JPEG, .png, .PNG, .gif, .GIF",
810
810
  "content-class": "h-[300px] w-[400px]",
@@ -827,7 +827,7 @@ const gr = {
827
827
  class: "flex gap-8"
828
828
  }, br = /* @__PURE__ */ ae({
829
829
  __name: "ImageUploadForm",
830
- props: /* @__PURE__ */ Ht({
830
+ props: /* @__PURE__ */ qt({
831
831
  itemId: {},
832
832
  disabled: {
833
833
  type: Boolean,
@@ -843,8 +843,8 @@ const gr = {
843
843
  setup(n) {
844
844
  const {
845
845
  t: r
846
- } = ce(), e = n, t = qt(n, "modelValue");
847
- H(!1);
846
+ } = ce(), e = n, t = Ht(n, "modelValue");
847
+ q(!1);
848
848
  const m = Ge(), s = () => {
849
849
  t.value = null;
850
850
  }, g = () => {
@@ -892,7 +892,7 @@ const gr = {
892
892
  };
893
893
  return (b, v) => {
894
894
  const f = W("FmButton"), a = W("FmFormGroup");
895
- return $(), q(a, {
895
+ return $(), H(a, {
896
896
  tag: "div",
897
897
  "model-value": t.value,
898
898
  label: o(r)("menu.common.labels.product_image"),
@@ -913,7 +913,7 @@ const gr = {
913
913
  "text-color": o(Fe).NeutralGray400,
914
914
  class: "bg-white",
915
915
  onClick: w
916
- }, null, 8, ["icon", "text-color"]), t.value ? ($(), q(f, {
916
+ }, null, 8, ["icon", "text-color"]), t.value ? ($(), H(f, {
917
917
  key: 0,
918
918
  icon: "delete",
919
919
  "text-color": o(Fe).NeutralGray400,
@@ -999,7 +999,7 @@ const Dr = /* @__PURE__ */ ae({
999
999
  }
1000
1000
  d("update:form", "category", _._id), d("update:form", "additionalCategories", x);
1001
1001
  }
1002
- }), O = H(), k = () => e.isAddon ? null : C(zn, {
1002
+ }), O = q(), k = () => e.isAddon ? null : C(zn, {
1003
1003
  ref: O,
1004
1004
  disabled: !h.value.category || s(),
1005
1005
  items: b.value,
@@ -1036,7 +1036,7 @@ const Dr = /* @__PURE__ */ ae({
1036
1036
  const _ = i == Pe.ADD_ON;
1037
1037
  d("update:form", "category", e.isOverride ? _ ? "" : ((x = e.fallback) == null ? void 0 : x.category) ?? ((y = b.value.find((j) => !!j.value)) == null ? void 0 : y.value) : _ ? null : (P = b.value.find((j) => !!j.value)) == null ? void 0 : P.value), _ && d("update:form", "additionalCategories", []);
1038
1038
  }
1039
- const M = H(!1);
1039
+ const M = q(!1);
1040
1040
  async function F() {
1041
1041
  var i, _, x;
1042
1042
  if (!e.form.name) {
@@ -1075,7 +1075,7 @@ const Dr = /* @__PURE__ */ ae({
1075
1075
  } = ce();
1076
1076
  return (i, _) => {
1077
1077
  const x = W("fm-text-field"), y = W("fm-textarea"), P = W("fm-radio"), j = W("FmSnackbar"), Q = W("FmButton"), le = W("fm-radio-group"), Ce = W("FmFormGroup"), he = Xt("tooltip");
1078
- return $(), q(De, {
1078
+ return $(), H(De, {
1079
1079
  title: o(l)("menu.product.form.detail.title")
1080
1080
  }, {
1081
1081
  default: B(() => {
@@ -1117,7 +1117,7 @@ const Dr = /* @__PURE__ */ ae({
1117
1117
  }, null, 8, ["disabled", "item-id", "model-value"])]), C(Ue, {
1118
1118
  label: o(l)("menu.product.form.detail.category.label")
1119
1119
  }, {
1120
- default: B(() => [v.value ? ($(), q(le, {
1120
+ default: B(() => [v.value ? ($(), H(le, {
1121
1121
  key: 0,
1122
1122
  disabled: !h.value.category,
1123
1123
  "model-value": i.isAddon ? Pe.ADD_ON : Pe.PRODUCT,
@@ -1129,7 +1129,7 @@ const Dr = /* @__PURE__ */ ae({
1129
1129
  label: o(l)("menu.product.form.detail.category.options.product.label"),
1130
1130
  sublabel: o(l)("menu.product.form.detail.category.options.product.sublabel")
1131
1131
  }, null, 8, ["disabled", "value", "label", "sublabel"]), C(Kn, null, {
1132
- default: B(() => [o(t).isV4 ? ($(), q(k, {
1132
+ default: B(() => [o(t).isV4 ? ($(), H(k, {
1133
1133
  key: 0
1134
1134
  })) : X("", !0)]),
1135
1135
  _: 1
@@ -1148,7 +1148,7 @@ const Dr = /* @__PURE__ */ ae({
1148
1148
  sublabel: o(l)("menu.product.form.detail.category.options.addon.sublabel")
1149
1149
  }, null, 8, ["value", "label", "sublabel"])])]),
1150
1150
  _: 1
1151
- }, 8, ["disabled", "model-value"])) : X("", !0), o(t).isV4 ? X("", !0) : ($(), q(Ce, {
1151
+ }, 8, ["disabled", "model-value"])) : X("", !0), o(t).isV4 ? X("", !0) : ($(), H(Ce, {
1152
1152
  key: 1,
1153
1153
  "model-value": i.form.category,
1154
1154
  rules: [(L) => !L && !i.isOverride ? "Category is required" : !0]
@@ -1157,7 +1157,7 @@ const Dr = /* @__PURE__ */ ae({
1157
1157
  _: 1
1158
1158
  }, 8, ["model-value", "rules"]))]),
1159
1159
  _: 1
1160
- }, 8, ["label"]), o(t).isV4 && !i.isAddon ? ($(), q(Ue, {
1160
+ }, 8, ["label"]), o(t).isV4 && !i.isAddon ? ($(), H(Ue, {
1161
1161
  key: 0,
1162
1162
  label: o(l)("menu.product.form.detail.path.label")
1163
1163
  }, {
@@ -1214,8 +1214,8 @@ const Dr = /* @__PURE__ */ ae({
1214
1214
  items: {},
1215
1215
  position: r.groups.length - 1,
1216
1216
  itemsLinked: []
1217
- }), g = H(s()), { t: d } = ce();
1218
- return (h, w) => e.value.create ? ($(), q(o(jr), {
1217
+ }), g = q(s()), { t: d } = ce();
1218
+ return (h, w) => e.value.create ? ($(), H(o(jr), {
1219
1219
  key: 0,
1220
1220
  "categorized-items": o(r).categorizedItems,
1221
1221
  config: m.value,
@@ -1255,7 +1255,7 @@ const Dr = /* @__PURE__ */ ae({
1255
1255
  setup(n, {
1256
1256
  emit: r
1257
1257
  }) {
1258
- const e = n, t = r, m = Re(), s = rt(), g = se(), d = D(() => be.Country.getCountry(s.currentCountry.value)), h = H(!1), w = D(() => e.config.isV4 || e.group.type === te.F_ADDON_GROUP_TYPE.enum.PRODUCT), b = D(() => w.value), v = D(() => w.value), f = D(() => Object.values(e.group.items).flatMap((c) => [{
1258
+ const e = n, t = r, m = Re(), s = rt(), g = se(), d = D(() => be.Country.getCountry(s.currentCountry.value)), h = q(!1), w = D(() => e.config.isV4 || e.group.type === te.F_ADDON_GROUP_TYPE.enum.PRODUCT), b = D(() => w.value), v = D(() => w.value), f = D(() => Object.values(e.group.items).flatMap((c) => [{
1259
1259
  _id: c._id,
1260
1260
  combinationKey: void 0
1261
1261
  }, ...(c.items ?? []).map((V) => ({
@@ -1276,9 +1276,9 @@ const Dr = /* @__PURE__ */ ae({
1276
1276
  }), k = D(() => !0), p = (c) => c ? tt(c, !1) : "", T = (c) => {
1277
1277
  var V;
1278
1278
  return c == null ? "" : (V = lo()[c]) == null ? void 0 : V.label;
1279
- }, U = D(() => Object.values(S.value)), M = H({}), {
1279
+ }, U = D(() => Object.values(S.value)), M = q({}), {
1280
1280
  t: F
1281
- } = ce(), R = H([{
1281
+ } = ce(), R = q([{
1282
1282
  accessorKey: "isDefault",
1283
1283
  header: () => F("menu.group.option.is_default"),
1284
1284
  enableSorting: !1,
@@ -1483,7 +1483,7 @@ const Dr = /* @__PURE__ */ ae({
1483
1483
  default: () => {
1484
1484
  var G;
1485
1485
  return [C(W("fm-button"), {
1486
- variant: He.Tertiary,
1486
+ variant: qe.Tertiary,
1487
1487
  prependIcon: "inventory_2",
1488
1488
  overwriteIconOutline: (G = V.inventoryBindings) != null && G.length ? "filled" : "outline",
1489
1489
  textColor: Fe.NeutralGray400,
@@ -1492,7 +1492,7 @@ const Dr = /* @__PURE__ */ ae({
1492
1492
  }
1493
1493
  })
1494
1494
  }), O(V.combinationKey).link && C(W("fm-button"), {
1495
- variant: He.Tertiary,
1495
+ variant: qe.Tertiary,
1496
1496
  prependIcon: "delete",
1497
1497
  textColor: Fe.NeutralGray400,
1498
1498
  onClick: () => {
@@ -1610,7 +1610,7 @@ const Dr = /* @__PURE__ */ ae({
1610
1610
  const Ce = po(), he = D(() => Ce.breakpoints.value.xs);
1611
1611
  return (c, V) => {
1612
1612
  const N = W("fm-button"), L = W("fm-table");
1613
- return $(), q(De, {
1613
+ return $(), H(De, {
1614
1614
  title: o(F)("menu.group.option.title")
1615
1615
  }, {
1616
1616
  "append-title": B(() => [c.config.link() ? ($(), J(Oe, {
@@ -1682,7 +1682,7 @@ const Dr = /* @__PURE__ */ ae({
1682
1682
  let t = n;
1683
1683
  const m = e, s = se(), g = rt(), d = Ge(), h = Vt(ot(Re())), { countDefaultItems: w, validateGroupItems: b, minMaxValidationRules: v } = Yn(
1684
1684
  () => t.group
1685
- ), f = H(!1), a = H(!1), I = (y) => {
1685
+ ), f = q(!1), a = q(!1), I = (y) => {
1686
1686
  Rt.isBoolean(y) ? a.value = y : a.value = !a.value;
1687
1687
  }, S = D(() => t.group ? t.config(t.group) : null), O = D(() => jn(S.value)), k = (y) => O.value.includes(y), p = D(() => [
1688
1688
  {
@@ -1728,7 +1728,7 @@ const Dr = /* @__PURE__ */ ae({
1728
1728
  S.value.isOverride
1729
1729
  )[0];
1730
1730
  }
1731
- const F = H(ke.clone(t.group)), R = Ut(
1731
+ const F = q(ke.clone(t.group)), R = Ut(
1732
1732
  () => !ke.isEqual(t.group, F.value),
1733
1733
  () => {
1734
1734
  a.value = !1;
@@ -1736,7 +1736,7 @@ const Dr = /* @__PURE__ */ ae({
1736
1736
  ), E = D(() => t.action === "add" ? x("common.add") : x("common.update"));
1737
1737
  async function u() {
1738
1738
  if (t.action === "add") {
1739
- const { group: y, linkItems: P } = Hn(t.group), j = {
1739
+ const { group: y, linkItems: P } = qn(t.group), j = {
1740
1740
  module: te.F_MENU_MODULE_V4_KEY.enum.group,
1741
1741
  operation: _e.F_OPERATION_TYPE.create,
1742
1742
  data: y,
@@ -1861,7 +1861,7 @@ const Dr = /* @__PURE__ */ ae({
1861
1861
  ]),
1862
1862
  _: 1
1863
1863
  }, 8, ["model-value", "rules"]),
1864
- S.value.type ? ($(), q(Ue, {
1864
+ S.value.type ? ($(), H(Ue, {
1865
1865
  key: 0,
1866
1866
  label: o(x)("menu.common.labels.group_type")
1867
1867
  }, {
@@ -1872,7 +1872,7 @@ const Dr = /* @__PURE__ */ ae({
1872
1872
  "onUpdate:modelValue": P[3] || (P[3] = (G) => U(G))
1873
1873
  }, {
1874
1874
  default: B(() => [
1875
- ($(!0), J(Oe, null, Ne(p.value, (G) => ($(), q(Ce, {
1875
+ ($(!0), J(Oe, null, Ne(p.value, (G) => ($(), H(Ce, {
1876
1876
  key: G.value,
1877
1877
  label: o(x)(`menu.group.types.${G.label.toLowerCase()}`),
1878
1878
  value: G.value
@@ -1898,7 +1898,7 @@ const Dr = /* @__PURE__ */ ae({
1898
1898
  ]),
1899
1899
  _: 1
1900
1900
  }, 8, ["label"]),
1901
- l.value ? ($(), q(V, {
1901
+ l.value ? ($(), H(V, {
1902
1902
  key: 1,
1903
1903
  title: o(x)("menu.group.form.tagging.title"),
1904
1904
  "sub-title": o(x)("menu.group.form.tagging.subtitle")
@@ -1954,7 +1954,7 @@ const Dr = /* @__PURE__ */ ae({
1954
1954
  emits: ["update:combinations"],
1955
1955
  setup(n, { expose: r, emit: e }) {
1956
1956
  var U, M;
1957
- const t = n, m = e, s = se(), g = Ge(), d = Vt(ot(Re())), h = H([]), w = H(t.combinations[0].combinationKey || ""), b = D(
1957
+ const t = n, m = e, s = se(), g = Ge(), d = Vt(ot(Re())), h = q([]), w = q(t.combinations[0].combinationKey || ""), b = D(
1958
1958
  () => h.value.findIndex((F) => F.combinationKey == w.value)
1959
1959
  ), v = D(
1960
1960
  () => t.combinations.map((F) => ({
@@ -2026,20 +2026,20 @@ const Dr = /* @__PURE__ */ ae({
2026
2026
  return {
2027
2027
  ...R,
2028
2028
  groups: (E = R.groups) == null ? void 0 : E.map((u) => ({
2029
- ...qn(u, S())
2029
+ ...Hn(u, S())
2030
2030
  }))
2031
2031
  };
2032
2032
  });
2033
2033
  m("update:combinations", F);
2034
2034
  }
2035
- const k = H(!1);
2035
+ const k = q(!1);
2036
2036
  ye(
2037
2037
  () => k.value,
2038
2038
  (F) => {
2039
2039
  F && (h.value = me(t.combinations), w.value = t.combinations[0].combinationKey || "");
2040
2040
  }
2041
2041
  );
2042
- const p = H();
2042
+ const p = q();
2043
2043
  r({
2044
2044
  show: (U = p.value) == null ? void 0 : U.show,
2045
2045
  trigger: (M = p.value) == null ? void 0 : M.trigger
@@ -2047,7 +2047,7 @@ const Dr = /* @__PURE__ */ ae({
2047
2047
  const { t: T } = ce();
2048
2048
  return (F, R) => {
2049
2049
  const E = W("fm-select"), u = W("fm-button"), l = W("fm-card");
2050
- return $(), q(In, {
2050
+ return $(), H(In, {
2051
2051
  ref_key: "baseFormRef",
2052
2052
  ref: p,
2053
2053
  "allow-refund-inventory": !0,
@@ -2064,7 +2064,7 @@ const Dr = /* @__PURE__ */ ae({
2064
2064
  Me(F.$slots, "default", { trigger: i })
2065
2065
  ]),
2066
2066
  "variant-section": B(() => [
2067
- w.value ? ($(), q(l, {
2067
+ w.value ? ($(), H(l, {
2068
2068
  key: 0,
2069
2069
  class: "p-16 bg-fm-color-neutral-gray-100 space-y-24",
2070
2070
  variant: "outlined"
@@ -2080,13 +2080,13 @@ const Dr = /* @__PURE__ */ ae({
2080
2080
  }, null, 8, ["modelValue", "items"]),
2081
2081
  A("div", zr, [
2082
2082
  C(u, {
2083
- variant: o(He).Tertiary,
2083
+ variant: o(qe).Tertiary,
2084
2084
  "prepend-icon": "keyboard_arrow_left",
2085
2085
  size: "lg",
2086
2086
  onClick: R[1] || (R[1] = (i) => I("left"))
2087
2087
  }, null, 8, ["variant"]),
2088
2088
  C(u, {
2089
- variant: o(He).Tertiary,
2089
+ variant: o(qe).Tertiary,
2090
2090
  "prepend-icon": "keyboard_arrow_right",
2091
2091
  size: "lg",
2092
2092
  onClick: R[2] || (R[2] = (i) => I("right"))
@@ -2101,10 +2101,10 @@ const Dr = /* @__PURE__ */ ae({
2101
2101
  }, 8, ["categorized-items", "group", "title"]);
2102
2102
  };
2103
2103
  }
2104
- }), jr = In, jt = $r, Wr = Yr, Hr = {
2104
+ }), jr = In, jt = $r, Wr = Yr, qr = {
2105
2105
  key: 0,
2106
2106
  class: "flex flex-col space-y-16 h-[440px]"
2107
- }, qr = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Xr = { class: "flex justify-between pb-16" }, Jr = { class: "flex gap-8" }, Qr = {
2107
+ }, Hr = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Xr = { class: "flex justify-between pb-16" }, Jr = { class: "flex gap-8" }, Qr = {
2108
2108
  key: 1,
2109
2109
  class: "flex flex-col items-center space-y-16"
2110
2110
  }, Zr = { class: "flex flex-col items-center space-y-4 w-full" }, ea = { class: "fm-typo-en-title-sm-600" }, ta = { class: "text-fm-color-typo-secondary" }, na = /* @__PURE__ */ ae({
@@ -2154,12 +2154,12 @@ const Dr = /* @__PURE__ */ ae({
2154
2154
  position: s.groups.length - 1,
2155
2155
  itemsLinked: []
2156
2156
  }));
2157
- const f = H(me(r.groupIds || [])), a = H(""), { t: I } = ce(), S = () => {
2157
+ const f = q(me(r.groupIds || [])), a = q(""), { t: I } = ce(), S = () => {
2158
2158
  t(f.value), m("primary"), e.close();
2159
2159
  };
2160
2160
  return (O, k) => {
2161
2161
  const p = W("FmSearch"), T = W("FmCheckbox"), U = W("FmButton");
2162
- return b.value.length > 0 ? ($(), J("div", Hr, [
2162
+ return b.value.length > 0 ? ($(), J("div", qr, [
2163
2163
  A("div", null, [
2164
2164
  C(p, {
2165
2165
  autofocus: "",
@@ -2168,7 +2168,7 @@ const Dr = /* @__PURE__ */ ae({
2168
2168
  placeholder: o(I)("menu.common.labels.search_groups")
2169
2169
  }, null, 8, ["modelValue", "placeholder"])
2170
2170
  ]),
2171
- A("div", qr, [
2171
+ A("div", Hr, [
2172
2172
  A("div", null, [
2173
2173
  ($(!0), J(Oe, null, Ne(b.value, (M) => ($(), J("div", {
2174
2174
  key: M.value
@@ -2352,7 +2352,7 @@ const Dr = /* @__PURE__ */ ae({
2352
2352
  icon: "delete",
2353
2353
  variant: "tertiary",
2354
2354
  textColor: "neutral-gray-400",
2355
- onClick: qe(async () => {
2355
+ onClick: He(async () => {
2356
2356
  U(i);
2357
2357
  }, ["stop", "prevent"])
2358
2358
  }), ve(Wr, {
@@ -2455,7 +2455,7 @@ const Dr = /* @__PURE__ */ ae({
2455
2455
  };
2456
2456
  return (l, i) => {
2457
2457
  const _ = W("FmButton"), x = W("FmTable");
2458
- return $(), q(De, {
2458
+ return $(), H(De, {
2459
2459
  title: o(s)("menu.product.form.group.title"),
2460
2460
  "sub-title": o(s)("menu.product.form.group.subtitle"),
2461
2461
  id: o(Se).GROUP
@@ -2470,7 +2470,7 @@ const Dr = /* @__PURE__ */ ae({
2470
2470
  default: B(() => [C(rn, null, {
2471
2471
  default: B(() => {
2472
2472
  var y;
2473
- return [((y = v.value) == null ? void 0 : y.length) > 0 ? ($(), q(x, {
2473
+ return [((y = v.value) == null ? void 0 : y.length) > 0 ? ($(), H(x, {
2474
2474
  key: 0,
2475
2475
  "column-defs": O.value,
2476
2476
  "column-visibility": k.value,
@@ -2553,7 +2553,7 @@ const Dr = /* @__PURE__ */ ae({
2553
2553
  };
2554
2554
  m("replace:form", k);
2555
2555
  }
2556
- H([{
2556
+ q([{
2557
2557
  accessorKey: "name",
2558
2558
  header: () => w.value || e("menu.inventory.columns.product_name"),
2559
2559
  enableSorting: !1
@@ -2598,7 +2598,7 @@ const Dr = /* @__PURE__ */ ae({
2598
2598
  default: ({
2599
2599
  trigger: k
2600
2600
  }) => C(W("fm-button"), {
2601
- variant: He.Tertiary,
2601
+ variant: qe.Tertiary,
2602
2602
  prependIcon: "edit",
2603
2603
  textColor: Fe.NeutralGray400,
2604
2604
  onClick: k
@@ -2606,7 +2606,7 @@ const Dr = /* @__PURE__ */ ae({
2606
2606
  })]) : null;
2607
2607
  }
2608
2608
  }]);
2609
- const f = H([]);
2609
+ const f = q([]);
2610
2610
  async function a({
2611
2611
  _id: S
2612
2612
  }) {
@@ -2616,11 +2616,11 @@ const Dr = /* @__PURE__ */ ae({
2616
2616
  const I = Eo();
2617
2617
  return Ae(() => {
2618
2618
  I.readInventory();
2619
- }), (S, O) => ($(), q(De, {
2619
+ }), (S, O) => ($(), H(De, {
2620
2620
  title: o(e)("menu.inventory.title"),
2621
2621
  subTitle: o(e)("menu.inventory.subtitle")
2622
2622
  }, {
2623
- default: B(() => [A("div", ra, [A("div", aa, [($(!0), J(Oe, null, Ne(b.value, (k) => ($(), q(o(Et), {
2623
+ default: B(() => [A("div", ra, [A("div", aa, [($(!0), J(Oe, null, Ne(b.value, (k) => ($(), H(o(Et), {
2624
2624
  key: k._id,
2625
2625
  ref_for: !0,
2626
2626
  ref_key: "inventoryManagerForms",
@@ -2694,7 +2694,7 @@ const Dr = /* @__PURE__ */ ae({
2694
2694
  }
2695
2695
  }
2696
2696
  }
2697
- const I = H(!1);
2697
+ const I = q(!1);
2698
2698
  async function S() {
2699
2699
  var T, U, M, F, R, E, u, l;
2700
2700
  if (!(e.form.name || "")) {
@@ -2734,7 +2734,7 @@ const Dr = /* @__PURE__ */ ae({
2734
2734
  });
2735
2735
  return (p, T) => {
2736
2736
  const U = W("fm-select"), M = W("FmButton"), F = W("fm-checkbox"), R = W("fm-text-field"), E = Xt("tooltip");
2737
- return $(), q(De, {
2737
+ return $(), H(De, {
2738
2738
  title: o(s)("menu.product.form.price.title")
2739
2739
  }, {
2740
2740
  default: B(() => {
@@ -2780,7 +2780,7 @@ const Dr = /* @__PURE__ */ ae({
2780
2780
  "onUpdate:modelValue": T[1] || (T[1] = (l) => g("update:form", "taxes", [o(vt).decodeTax(l)]))
2781
2781
  }, null, 8, ["disabled", "items", "label", "model-value"])
2782
2782
  ], 8, ia),
2783
- !p.isOverride && o(m).isV4 ? ($(), q(Ue, {
2783
+ !p.isOverride && o(m).isV4 ? ($(), H(Ue, {
2784
2784
  key: 0,
2785
2785
  label: o(s)("menu.price_tier.price_group"),
2786
2786
  description: o(s)("menu.price_tier.description")
@@ -2796,7 +2796,7 @@ const Dr = /* @__PURE__ */ ae({
2796
2796
  default: B(() => {
2797
2797
  var l;
2798
2798
  return [
2799
- p.isOverride ? X("", !0) : ($(), q(Xn, {
2799
+ p.isOverride ? X("", !0) : ($(), H(Xn, {
2800
2800
  key: 0,
2801
2801
  "price-tiers": o(O).priceTiers.value,
2802
2802
  "model-value": p.form.priceTiers || ((l = p.fallback) == null ? void 0 : l.priceTiers) || {},
@@ -2891,7 +2891,7 @@ const Dr = /* @__PURE__ */ ae({
2891
2891
  }, null, 8, ["disabled", "model-value", "value", "label"]),
2892
2892
  A("div", _a, [
2893
2893
  A("div", ya, [
2894
- p.form.minPrice ? ($(), q(Xe, {
2894
+ p.form.minPrice ? ($(), H(Xe, {
2895
2895
  key: 0,
2896
2896
  max: o(be.Dinero).fromFdoDinero(p.form.price).toUnit(),
2897
2897
  min: 0,
@@ -2993,13 +2993,13 @@ const Dr = /* @__PURE__ */ ae({
2993
2993
  () => S(h.value[h.value.length - 1]._id, !0)
2994
2994
  ), (k, p) => {
2995
2995
  const T = W("fm-switch"), U = W("fm-radio"), M = W("fm-radio-group"), F = W("fm-button"), R = W("fm-checkbox");
2996
- return $(), q(De, {
2996
+ return $(), H(De, {
2997
2997
  title: o(m)("menu.product.form.print.title")
2998
2998
  }, {
2999
2999
  default: B(() => {
3000
3000
  var E;
3001
3001
  return [
3002
- d.value.printConfig ? ($(), q(Ue, {
3002
+ d.value.printConfig ? ($(), H(Ue, {
3003
3003
  key: 0,
3004
3004
  label: o(m)("menu.product.form.print.config.label")
3005
3005
  }, {
@@ -3024,7 +3024,7 @@ const Dr = /* @__PURE__ */ ae({
3024
3024
  }, {
3025
3025
  default: B(() => [
3026
3026
  A("div", wa, [
3027
- ($(!0), J(Oe, null, Ne(O.value, (u, l) => ($(), q(U, {
3027
+ ($(!0), J(Oe, null, Ne(O.value, (u, l) => ($(), H(U, {
3028
3028
  key: l,
3029
3029
  label: u.label,
3030
3030
  sublabel: u.description,
@@ -3038,7 +3038,7 @@ const Dr = /* @__PURE__ */ ae({
3038
3038
  label: o(m)("menu.product.form.print.routes.label")
3039
3039
  }, {
3040
3040
  default: B(() => [
3041
- b.value.length ? ($(), q(o(Mt), {
3041
+ b.value.length ? ($(), H(o(Mt), {
3042
3042
  key: 0,
3043
3043
  "item-key": (u) => u,
3044
3044
  "model-value": b.value,
@@ -3051,13 +3051,13 @@ const Dr = /* @__PURE__ */ ae({
3051
3051
  return [
3052
3052
  A("div", Ca, [
3053
3053
  A("div", Ia, [
3054
- w.value ? ($(), q(F, {
3054
+ w.value ? ($(), H(F, {
3055
3055
  key: 0,
3056
3056
  disabled: !((i = (l = e.form.print) == null ? void 0 : l.department) != null && i.includes(u)),
3057
3057
  class: "handle",
3058
3058
  "prepend-icon": "drag_handle",
3059
3059
  variant: "tertiary",
3060
- onClick: p[2] || (p[2] = qe(() => {
3060
+ onClick: p[2] || (p[2] = He(() => {
3061
3061
  }, ["stop"]))
3062
3062
  }, null, 8, ["disabled"])) : X("", !0)
3063
3063
  ]),
@@ -3079,7 +3079,7 @@ const Dr = /* @__PURE__ */ ae({
3079
3079
  default: B(({ trigger: u }) => [
3080
3080
  A("div", ka, [
3081
3081
  C(F, {
3082
- variant: o(He).Secondary,
3082
+ variant: o(qe).Secondary,
3083
3083
  label: o(m)("menu.product.form.print.routes.add"),
3084
3084
  "prepend-icon": "add",
3085
3085
  onClick: u
@@ -3128,7 +3128,7 @@ const Dr = /* @__PURE__ */ ae({
3128
3128
  }, ...t.takeaways.map((v) => ({
3129
3129
  label: v.name,
3130
3130
  value: v._id
3131
- }))]), b = H([{
3131
+ }))]), b = q([{
3132
3132
  accessorKey: "name",
3133
3133
  enableSorting: !1,
3134
3134
  header: () => d.value ? s("menu.product.form.takeaway.columns.variant") : s("menu.product.form.takeaway.columns.product")
@@ -3179,7 +3179,7 @@ const Dr = /* @__PURE__ */ ae({
3179
3179
  }]);
3180
3180
  return (v, f) => {
3181
3181
  const a = W("fm-table");
3182
- return $(), q(De, {
3182
+ return $(), H(De, {
3183
3183
  title: o(s)("menu.product.form.takeaway.title"),
3184
3184
  "sub-title": o(s)("menu.product.form.takeaway.subtitle")
3185
3185
  }, {
@@ -3218,7 +3218,7 @@ const Dr = /* @__PURE__ */ ae({
3218
3218
  }), U;
3219
3219
  } else
3220
3220
  return { ...Le.generator.initMenuV4VariantGroup(), usedBy: [] };
3221
- }, b = H(w()), v = H(!1), f = H(!1);
3221
+ }, b = q(w()), v = q(!1), f = q(!1);
3222
3222
  function a(U) {
3223
3223
  b.value.options = U;
3224
3224
  }
@@ -3290,7 +3290,7 @@ const Dr = /* @__PURE__ */ ae({
3290
3290
  f.value = !0;
3291
3291
  }), (U, M) => {
3292
3292
  const F = W("fm-text-field"), R = W("fm-icon"), E = W("fm-button"), u = W("fm-side-sheet");
3293
- return $(), q(u, {
3293
+ return $(), H(u, {
3294
3294
  id: "variant-form",
3295
3295
  modelValue: f.value,
3296
3296
  "onUpdate:modelValue": M[2] || (M[2] = (l) => f.value = l),
@@ -3358,7 +3358,7 @@ const Dr = /* @__PURE__ */ ae({
3358
3358
  class: fe(["flex items-center", "space-x-8"]),
3359
3359
  "data-not-allow-sort": _ === b.value.options.length - 1
3360
3360
  }, [
3361
- _ !== b.value.options.length - 1 ? ($(), q(R, {
3361
+ _ !== b.value.options.length - 1 ? ($(), H(R, {
3362
3362
  key: 0,
3363
3363
  class: "handle",
3364
3364
  name: "drag_handle"
@@ -3397,7 +3397,7 @@ const Dr = /* @__PURE__ */ ae({
3397
3397
  ]),
3398
3398
  _: 1
3399
3399
  }, 8, ["title"]),
3400
- (l = b.value.usedBy) != null && l.length ? ($(), q(So, {
3400
+ (l = b.value.usedBy) != null && l.length ? ($(), H(So, {
3401
3401
  key: 0,
3402
3402
  editable: !1,
3403
3403
  overrides: b.value.usedBy || [],
@@ -3442,7 +3442,7 @@ const Ua = {
3442
3442
  label: f.name,
3443
3443
  value: f._id,
3444
3444
  disabled: !1
3445
- }))), h = H(me(g.selectedVariants)), w = H(""), { createVariant: b } = Pa(), v = () => {
3445
+ }))), h = q(me(g.selectedVariants)), w = q(""), { createVariant: b } = Pa(), v = () => {
3446
3446
  e(h.value), t("primary"), r.close();
3447
3447
  };
3448
3448
  return (f, a) => {
@@ -3476,7 +3476,7 @@ const Ua = {
3476
3476
  ])
3477
3477
  ]),
3478
3478
  A("div", Ma, [
3479
- o(m).rules.item.variant ? ($(), q(O, {
3479
+ o(m).rules.item.variant ? ($(), H(O, {
3480
3480
  key: 0,
3481
3481
  label: o(s)("menu.common.actions.add_new_variant"),
3482
3482
  variant: "tertiary",
@@ -3516,7 +3516,7 @@ const Ua = {
3516
3516
  class: "flex items-center flex-1 h-[36px] px-8 border border-fm-color-neutral-gray-300 rounded-md bg-fm-color-neutral-white"
3517
3517
  }, Wa = {
3518
3518
  class: "flex-1 fm-typo-en-body-lg-400"
3519
- }, Ha = /* @__PURE__ */ ae({
3519
+ }, qa = /* @__PURE__ */ ae({
3520
3520
  __name: "ProductVariants",
3521
3521
  props: {
3522
3522
  isOverride: {
@@ -3536,7 +3536,7 @@ const Ua = {
3536
3536
  const e = n, t = se(), m = Zn(), s = Re(), g = Ge(), {
3537
3537
  t: d
3538
3538
  } = ce(), h = D(() => t.rules.item), w = D(() => h.value.minPrice && !!e.form.minPrice), b = D(() => !t.state.currentCatalogId), v = D(() => t.variants.reduce((u, l) => (u[l._id] = l, u), {}));
3539
- H(!1);
3539
+ q(!1);
3540
3540
  const f = r;
3541
3541
  function a(u) {
3542
3542
  const l = ke.clone(e.form);
@@ -3757,12 +3757,12 @@ const Ua = {
3757
3757
  }
3758
3758
  return (u, l) => {
3759
3759
  const i = W("fm-button"), _ = W("fm-icon"), x = W("FmFormGroup"), y = W("fm-table");
3760
- return $(), q(De, {
3760
+ return $(), H(De, {
3761
3761
  id: o(Se).VARIANT,
3762
3762
  title: o(d)("menu.product.form.variant.title"),
3763
3763
  "sub-title": o(d)("menu.product.form.variant.subtitle")
3764
3764
  }, {
3765
- "append-title": B(() => [o(t).rules.item.variant ? ($(), q(i, {
3765
+ "append-title": B(() => [o(t).rules.item.variant ? ($(), H(i, {
3766
3766
  key: 0,
3767
3767
  label: o(d)("menu.product.form.variant.add"),
3768
3768
  variant: "secondary",
@@ -3790,13 +3790,13 @@ const Ua = {
3790
3790
  }) => {
3791
3791
  var le;
3792
3792
  return [A("div", Ya, [C(i, {
3793
- variant: o(He).Tertiary,
3793
+ variant: o(qe).Tertiary,
3794
3794
  class: "handle",
3795
3795
  "prepend-icon": "drag_handle"
3796
3796
  }, null, 8, ["variant"]), A("div", ja, [A("p", Wa, ge((le = v.value[Q]) == null ? void 0 : le.name), 1), C(_, {
3797
3797
  class: "cursor-pointer",
3798
3798
  name: "close",
3799
- onClick: qe((Ce) => {
3799
+ onClick: He((Ce) => {
3800
3800
  var he;
3801
3801
  return T(((he = u.form.variant) == null ? void 0 : he.variantGroupIds.filter((c) => c !== Q)) ?? []);
3802
3802
  }, ["stop"])
@@ -3807,7 +3807,7 @@ const Ua = {
3807
3807
  }),
3808
3808
  _: 1
3809
3809
  }, 8, ["model-value", "rules"]), C(rn, null, {
3810
- default: B(() => [p.value.length ? ($(), q(y, {
3810
+ default: B(() => [p.value.length ? ($(), H(y, {
3811
3811
  key: 0,
3812
3812
  class: "w-full",
3813
3813
  "column-defs": F.value,
@@ -3824,7 +3824,7 @@ const Ua = {
3824
3824
  }, 8, ["id", "title", "sub-title"]);
3825
3825
  };
3826
3826
  }
3827
- }), qa = {
3827
+ }), Ha = {
3828
3828
  key: 0,
3829
3829
  class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
3830
3830
  }, Xa = {
@@ -3875,12 +3875,12 @@ const Ua = {
3875
3875
  route: ""
3876
3876
  }), re = re.parent;
3877
3877
  return Y.reverse();
3878
- }), b = H(null);
3878
+ }), b = q(null);
3879
3879
  Ae(() => {
3880
3880
  var K;
3881
3881
  (K = b.value) == null || K.setSelectedItemIndex(w.value.length - 1);
3882
3882
  });
3883
- const v = D(() => g.rules.item), f = H(), a = H(
3883
+ const v = D(() => g.rules.item), f = q(), a = q(
3884
3884
  t.initialForm ? me(t.initialForm) : {
3885
3885
  ...Le.generator.initMenuV4Item(),
3886
3886
  category: t.categoryId
@@ -3913,7 +3913,7 @@ const Ua = {
3913
3913
  ), T = D(() => {
3914
3914
  var K;
3915
3915
  return p.value ? a.value.category == "" || a.value.category == null && ((K = f.value) == null ? void 0 : K.category) == null : Cn(t.menu) && a.value.category == null;
3916
- }), U = D(() => s.itemAttributeSettings.value.length > 0 && !p.value), M = H(
3916
+ }), U = D(() => s.itemAttributeSettings.value.length > 0 && !p.value), M = q(
3917
3917
  a.value.category != null || !!a.value.code || !!a.value.orderFrom
3918
3918
  );
3919
3919
  function F(K) {
@@ -3932,7 +3932,7 @@ const Ua = {
3932
3932
  for (const [ue, ie] of Object.entries(Y.customAttributes || {}))
3933
3933
  typeof ie == "string" && ie && !((re = K[ue]) != null && re.includes(ie)) && (K[ue] = [...K[ue] || [], ie]);
3934
3934
  }), K;
3935
- }), E = H(!!a.value.price || !!a.value.minPrice || !!a.value.costing);
3935
+ }), E = q(!!a.value.price || !!a.value.minPrice || !!a.value.costing);
3936
3936
  function u(K) {
3937
3937
  K || (a.value = {
3938
3938
  ...a.value,
@@ -3941,7 +3941,7 @@ const Ua = {
3941
3941
  price: void 0
3942
3942
  }, c());
3943
3943
  }
3944
- const l = H(
3944
+ const l = q(
3945
3945
  (((ee = a.value.variant) == null ? void 0 : ee.variantCombinations) || []).some(
3946
3946
  (K) => !!K.price || !!K.orderFrom || !!K.code
3947
3947
  )
@@ -3961,7 +3961,7 @@ const Ua = {
3961
3961
  }
3962
3962
  }, c());
3963
3963
  }
3964
- const _ = H(
3964
+ const _ = q(
3965
3965
  !!a.value.inventoryBindings || (((ne = a.value.variant) == null ? void 0 : ne.variantCombinations) || []).some((K) => !!K.inventoryBindings) || !1
3966
3966
  );
3967
3967
  function x(K) {
@@ -3978,7 +3978,7 @@ const Ua = {
3978
3978
  } : void 0
3979
3979
  }, c());
3980
3980
  }
3981
- const y = H(
3981
+ const y = q(
3982
3982
  a.value.takeawayUsed != null || (((pe = a.value.variant) == null ? void 0 : pe.variantCombinations) || []).some((K) => K.takeawayUsed != null) || !1
3983
3983
  );
3984
3984
  function P(K) {
@@ -3995,11 +3995,11 @@ const Ua = {
3995
3995
  }
3996
3996
  }, c());
3997
3997
  }
3998
- const j = H(!!a.value.print);
3998
+ const j = q(!!a.value.print);
3999
3999
  function Q(K) {
4000
4000
  K || (a.value = { ...a.value, print: void 0 }, c());
4001
4001
  }
4002
- const le = H(
4002
+ const le = q(
4003
4003
  !!((Ee = a.value.groups) != null && Ee.length) != null || (((Ve = a.value.variant) == null ? void 0 : Ve.variantCombinations) || []).some((K) => {
4004
4004
  var Y;
4005
4005
  return !!((Y = K.groups) != null && Y.length);
@@ -4057,7 +4057,7 @@ const Ua = {
4057
4057
  function c() {
4058
4058
  m("update:editingState", ke.cloneDeep(a.value));
4059
4059
  }
4060
- const V = H(null);
4060
+ const V = q(null);
4061
4061
  function N() {
4062
4062
  return !ke.isEqual(a.value, t.initialForm);
4063
4063
  }
@@ -4091,7 +4091,7 @@ const Ua = {
4091
4091
  hasUnsavedChanges: N
4092
4092
  }), (K, Y) => {
4093
4093
  const re = W("FmBreadcrumb"), ue = W("FmForm");
4094
- return $(), q(ue, {
4094
+ return $(), H(ue, {
4095
4095
  id: o(Se).GENERAL,
4096
4096
  class: fe(["tree-item-form", ["flex-1 py-24 space-y-24", "xs:w-full"]]),
4097
4097
  ref_key: "formWrapper",
@@ -4132,8 +4132,8 @@ const Ua = {
4132
4132
  }),
4133
4133
  _: 1
4134
4134
  }, 8, ["toggle", "disabled", "description", "title"]),
4135
- p.value ? X("", !0) : ($(), J("div", qa)),
4136
- U.value ? ($(), q(De, {
4135
+ p.value ? X("", !0) : ($(), J("div", Ha)),
4136
+ U.value ? ($(), H(De, {
4137
4137
  key: 1,
4138
4138
  title: o(d)("menu.product.form.sections.tagging.title"),
4139
4139
  "sub-title": o(d)("menu.product.form.sections.tagging.subtitle")
@@ -4171,7 +4171,7 @@ const Ua = {
4171
4171
  _: 1
4172
4172
  }, 8, ["toggle", "disabled", "description", "title"]),
4173
4173
  v.value.print && !p.value ? ($(), J("div", Ja)) : X("", !0),
4174
- v.value.print ? ($(), q(Be, {
4174
+ v.value.print ? ($(), H(Be, {
4175
4175
  key: 4,
4176
4176
  toggle: j.value,
4177
4177
  "onUpdate:toggle": [
@@ -4207,7 +4207,7 @@ const Ua = {
4207
4207
  title: o(d)("menu.product.form.sections.variant.title")
4208
4208
  }, {
4209
4209
  default: B(() => [
4210
- C(Ha, {
4210
+ C(qa, {
4211
4211
  fallback: f.value,
4212
4212
  form: a.value,
4213
4213
  "full-combinations": I.value,
@@ -4220,7 +4220,7 @@ const Ua = {
4220
4220
  _: 1
4221
4221
  }, 8, ["toggle", "disabled", "description", "title"]),
4222
4222
  v.value.group && !p.value ? ($(), J("div", Za)) : X("", !0),
4223
- v.value.group ? ($(), q(Be, {
4223
+ v.value.group ? ($(), H(Be, {
4224
4224
  key: 7,
4225
4225
  toggle: le.value,
4226
4226
  "onUpdate:toggle": [
@@ -4245,7 +4245,7 @@ const Ua = {
4245
4245
  _: 1
4246
4246
  }, 8, ["toggle", "disabled"])) : X("", !0),
4247
4247
  v.value.inventory && !p.value ? ($(), J("div", el)) : X("", !0),
4248
- v.value.inventory ? ($(), q(Be, {
4248
+ v.value.inventory ? ($(), H(Be, {
4249
4249
  key: 9,
4250
4250
  toggle: _.value,
4251
4251
  "onUpdate:toggle": [
@@ -4270,7 +4270,7 @@ const Ua = {
4270
4270
  _: 1
4271
4271
  }, 8, ["toggle", "disabled", "description", "title"])) : X("", !0),
4272
4272
  v.value.takeaway(a.value.category ?? ((ie = f.value) == null ? void 0 : ie.category)) && !p.value ? ($(), J("div", tl)) : X("", !0),
4273
- v.value.takeaway(a.value.category ?? ((Te = f.value) == null ? void 0 : Te.category)) ? ($(), q(Be, {
4273
+ v.value.takeaway(a.value.category ?? ((Te = f.value) == null ? void 0 : Te.category)) ? ($(), H(Be, {
4274
4274
  key: 11,
4275
4275
  toggle: y.value,
4276
4276
  "onUpdate:toggle": [
@@ -4302,7 +4302,7 @@ const Ua = {
4302
4302
  }
4303
4303
  });
4304
4304
  function ol(n) {
4305
- const { storageKey: r, defaultWidth: e, minWidth: t, maxWidth: m } = n, s = jo(r, e), g = H(!1), d = H(null);
4305
+ const { storageKey: r, defaultWidth: e, minWidth: t, maxWidth: m } = n, s = jo(r, e), g = q(!1), d = q(null);
4306
4306
  function h(v) {
4307
4307
  v.preventDefault(), g.value = !0, document.addEventListener("mousemove", w), document.addEventListener("mouseup", b), document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
4308
4308
  }
@@ -5154,7 +5154,7 @@ const St = /* @__PURE__ */ ae({
5154
5154
  setup(n) {
5155
5155
  return (r, e) => {
5156
5156
  const t = W("FmTooltip");
5157
- return r.tooltip ? ($(), q(t, {
5157
+ return r.tooltip ? ($(), H(t, {
5158
5158
  key: 0,
5159
5159
  content: r.tooltip,
5160
5160
  "z-index": 50
@@ -5167,7 +5167,7 @@ const St = /* @__PURE__ */ ae({
5167
5167
  }, null, 8, ["name", "visible", "onClick"])
5168
5168
  ]),
5169
5169
  _: 1
5170
- }, 8, ["content"])) : ($(), q(St, {
5170
+ }, 8, ["content"])) : ($(), H(St, {
5171
5171
  key: 1,
5172
5172
  name: r.name,
5173
5173
  visible: r.visible,
@@ -5177,7 +5177,7 @@ const St = /* @__PURE__ */ ae({
5177
5177
  }
5178
5178
  }), En = 300;
5179
5179
  function vl(n) {
5180
- const { itemHeight: r, emit: e, getFlattenedItems: t, getContainerRef: m, canDropFn: s } = n, g = H(!1), d = H(null), h = H(null), w = H(null), b = H(0), v = H({ x: 0, y: 0 }), f = H(/* @__PURE__ */ new Map());
5180
+ const { itemHeight: r, emit: e, getFlattenedItems: t, getContainerRef: m, canDropFn: s } = n, g = q(!1), d = q(null), h = q(null), w = q(null), b = q(0), v = q({ x: 0, y: 0 }), f = q(/* @__PURE__ */ new Map());
5181
5181
  function a(k, p) {
5182
5182
  p.button === 0 && (v.value = { x: p.clientX, y: p.clientY }, d.value = k, b.value = p.clientY, f.value = nr(t()), setTimeout(() => {
5183
5183
  d.value === k && (g.value = !0, v.value = { x: p.clientX, y: p.clientY }, e("updateDragState", k, null, null), document.addEventListener("mousemove", I), document.addEventListener("mouseup", S));
@@ -5344,7 +5344,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5344
5344
  class: fe(["tree-node", "max-w-full", "py-4 px-8 flex items-center justify-between gap-4", "fm-corner-radius-sm", "select-none", m.value, s.value, g.value, {
5345
5345
  "opacity-50": f.dragging
5346
5346
  }, "hover-effect"]),
5347
- onClick: a[2] || (a[2] = qe(() => {
5347
+ onClick: a[2] || (a[2] = He(() => {
5348
5348
  var T, U;
5349
5349
  f.node.disabled || (U = (T = f.node).onClick) == null || U.call(T);
5350
5350
  }, ["stop"])),
@@ -5356,7 +5356,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5356
5356
  (...T) => o(v) && o(v)(...T)),
5357
5357
  onMouseleave: a[6] || (a[6] = //@ts-ignore
5358
5358
  (...T) => o(v) && o(v)(...T))
5359
- }, [A("div", wl, [A("div", Cl, [(O = f.node) != null && O.draggable && !f.node.disabled ? ($(), q(I, {
5359
+ }, [A("div", wl, [A("div", Cl, [(O = f.node) != null && O.draggable && !f.node.disabled ? ($(), H(I, {
5360
5360
  key: 0,
5361
5361
  name: "drag_indicator",
5362
5362
  size: "sm",
@@ -5365,10 +5365,10 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5365
5365
  })) : X("", !0), C(St, {
5366
5366
  name: t.value,
5367
5367
  visible: e.expandable,
5368
- onClick: a[0] || (a[0] = qe(() => {
5368
+ onClick: a[0] || (a[0] = He(() => {
5369
5369
  f.node.disabled || h("toggleExpand");
5370
5370
  }, ["stop"]))
5371
- }, null, 8, ["name", "visible"]), f.node.icon ? ($(), q(I, {
5371
+ }, null, 8, ["name", "visible"]), f.node.icon ? ($(), H(I, {
5372
5372
  key: 1,
5373
5373
  size: "sm",
5374
5374
  outline: "",
@@ -5391,13 +5391,13 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5391
5391
  highlightedStrings: f.highlightedStrings
5392
5392
  }, null, 8, ["class", "text", "highlightedStrings"])]),
5393
5393
  _: 1
5394
- }, 8, ["content"])])]), A("div", El, [($(!0), J(Oe, null, Ne(f.node.chips, (T) => ($(), q(Uo, {
5394
+ }, 8, ["content"])])]), A("div", El, [($(!0), J(Oe, null, Ne(f.node.chips, (T) => ($(), H(Uo, {
5395
5395
  key: T.label,
5396
5396
  size: T.size || "xs",
5397
5397
  label: T.label,
5398
5398
  variant: T.variant || "neutral",
5399
5399
  border: T.border
5400
- }, null, 8, ["size", "label", "variant", "border"]))), 128))])]), A("div", Tl, [A("div", xl, [($(!0), J(Oe, null, Ne(f.node.actions, (T) => ($(), q(Ft, {
5400
+ }, null, 8, ["size", "label", "variant", "border"]))), 128))])]), A("div", Tl, [A("div", xl, [($(!0), J(Oe, null, Ne(f.node.actions, (T) => ($(), H(Ft, {
5401
5401
  key: T.id,
5402
5402
  name: T.icon,
5403
5403
  tooltip: T.tooltip,
@@ -5410,7 +5410,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5410
5410
  class: fe(["fm-typo-en-body-md-400", ((k = f.node.rightLabel) == null ? void 0 : k.variant) === o(Qe).PRIMARY ? "text-fm-color-primary" : "text-fm-color-typo-secondary"]),
5411
5411
  text: (p = f.node.rightLabel) == null ? void 0 : p.label,
5412
5412
  highlightedStrings: f.highlightedStrings,
5413
- onClick: a[1] || (a[1] = qe((T) => {
5413
+ onClick: a[1] || (a[1] = He((T) => {
5414
5414
  var U, M;
5415
5415
  return (M = (U = f.node.rightLabel) == null ? void 0 : U.onClick) == null ? void 0 : M.call(U);
5416
5416
  }, ["stop"]))
@@ -5457,7 +5457,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5457
5457
  }
5458
5458
  return R(m.nodes), F;
5459
5459
  });
5460
- H(null);
5460
+ q(null);
5461
5461
  const {
5462
5462
  list: w,
5463
5463
  scrollTo: b,
@@ -5518,7 +5518,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5518
5518
  "being-dragged": o(O) === l.id
5519
5519
  }]),
5520
5520
  id: `tree-node-${l.id}`
5521
- }, [($(), q(Dl, {
5521
+ }, [($(), H(Dl, {
5522
5522
  key: l.id,
5523
5523
  node: l.node,
5524
5524
  selected: m.selectedNodeId === l.id,
@@ -5561,7 +5561,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5561
5561
  return (r, e) => {
5562
5562
  const t = W("FmIcon");
5563
5563
  return $(), J("div", Ml, [
5564
- r.icon ? ($(), q(t, {
5564
+ r.icon ? ($(), H(t, {
5565
5565
  key: 0,
5566
5566
  name: r.icon
5567
5567
  }, null, 8, ["name"])) : X("", !0),
@@ -5620,12 +5620,12 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5620
5620
  schedulerManager: T,
5621
5621
  noScheduler: U
5622
5622
  } = ho(!0);
5623
- return (M, F) => ($(), J("div", Nl, [A("div", Ll, [o(s).rules.category.create ? ($(), q(kt, {
5623
+ return (M, F) => ($(), J("div", Nl, [A("div", Ll, [o(s).rules.category.create ? ($(), H(kt, {
5624
5624
  key: 0,
5625
5625
  label: o(a)("menu.tree_editor.actions.add_category"),
5626
5626
  icon: "add",
5627
5627
  onClick: F[0] || (F[0] = (R) => o(g).create())
5628
- }, null, 8, ["label"])) : X("", !0), o(s).state.currentCatalogId && !o(s).state.currentSchedulerId ? ($(), q(xt, {
5628
+ }, null, 8, ["label"])) : X("", !0), o(s).state.currentCatalogId && !o(s).state.currentSchedulerId ? ($(), H(xt, {
5629
5629
  key: 1,
5630
5630
  "categorized-items": o(p).linkableItems.value,
5631
5631
  "initial-value": o(p).currentItems.value,
@@ -5645,7 +5645,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5645
5645
  onClick: R
5646
5646
  }, null, 8, ["label", "onClick"])]),
5647
5647
  _: 1
5648
- }, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : X("", !0), o(s).state.currentSchedulerId ? ($(), q(xt, {
5648
+ }, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : X("", !0), o(s).state.currentSchedulerId ? ($(), H(xt, {
5649
5649
  key: 2,
5650
5650
  "categorized-items": o(T).linkableItems.value,
5651
5651
  "initial-value": o(T).currentItems.value,
@@ -5689,7 +5689,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5689
5689
  }
5690
5690
  }), Bl = { class: "space-y-8" }, zl = /* @__PURE__ */ ae({
5691
5691
  __name: "TreeFilter",
5692
- props: /* @__PURE__ */ Ht({
5692
+ props: /* @__PURE__ */ qt({
5693
5693
  menu: {}
5694
5694
  }, {
5695
5695
  modelValue: { required: !0 },
@@ -5699,7 +5699,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5699
5699
  setup(n) {
5700
5700
  const { t: r } = ce(), e = n, t = se();
5701
5701
  at();
5702
- const m = qt(n, "modelValue"), s = D(() => [
5702
+ const m = Ht(n, "modelValue"), s = D(() => [
5703
5703
  {
5704
5704
  label: r("menu.tree_editor.labels.main_catalog"),
5705
5705
  value: null
@@ -5740,7 +5740,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5740
5740
  "custom-label": g.value,
5741
5741
  "onUpdate:modelValue": f[0] || (f[0] = (I) => m.value.catalogId = I)
5742
5742
  }, null, 8, ["model-value", "items", "placeholder", "search-placeholder", "custom-label"]),
5743
- h.value ? ($(), q(Kt, {
5743
+ h.value ? ($(), H(Kt, {
5744
5744
  key: 0,
5745
5745
  "model-value": m.value.schedulerId || "",
5746
5746
  items: w.value,
@@ -5749,7 +5749,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5749
5749
  "custom-label": d.value,
5750
5750
  "onUpdate:modelValue": f[1] || (f[1] = (I) => m.value.schedulerId = I)
5751
5751
  }, null, 8, ["model-value", "items", "placeholder", "search-placeholder", "custom-label"])) : X("", !0),
5752
- b.value ? ($(), q(Po, {
5752
+ b.value ? ($(), H(Po, {
5753
5753
  key: 1,
5754
5754
  "current-restaurant-attr-params": o(t).state.currentRestaurantAttrParams,
5755
5755
  onConfirm: f[2] || (f[2] = (I) => o(t).setRestaurantAttrParams(I)),
@@ -5764,10 +5764,10 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5764
5764
  ]);
5765
5765
  };
5766
5766
  }
5767
- }), Yl = { class: "h-full flex flex-col relative" }, jl = { class: "p-8" }, Wl = { class: "flex-1 p-8" }, Hl = {
5767
+ }), Yl = { class: "h-full flex flex-col relative" }, jl = { class: "p-8" }, Wl = { class: "flex-1 p-8" }, ql = {
5768
5768
  key: 0,
5769
5769
  class: "absolute inset-0 flex items-center justify-center tree-overlay"
5770
- }, ql = { class: "flex items-center justify-center gap-16" }, Xl = /* @__PURE__ */ ae({
5770
+ }, Hl = { class: "flex items-center justify-center gap-16" }, Xl = /* @__PURE__ */ ae({
5771
5771
  __name: "TreePanel",
5772
5772
  props: {
5773
5773
  menu: {},
@@ -5776,7 +5776,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5776
5776
  },
5777
5777
  emits: ["tree-event"],
5778
5778
  setup(n, { emit: r }) {
5779
- const e = r, t = H({
5779
+ const e = r, t = q({
5780
5780
  catalogId: null,
5781
5781
  schedulerId: null,
5782
5782
  searchKey: ""
@@ -5801,8 +5801,8 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5801
5801
  onTreeEvent: g[1] || (g[1] = (h) => e("tree-event", h))
5802
5802
  }, null, 8, ["menu", "overrided-menu", "filter-state"])
5803
5803
  ]),
5804
- s.loading ? ($(), J("div", Hl, [
5805
- A("div", ql, [
5804
+ s.loading ? ($(), J("div", ql, [
5805
+ A("div", Hl, [
5806
5806
  C(d, { size: "lg" })
5807
5807
  ])
5808
5808
  ])) : X("", !0)
@@ -5817,11 +5817,11 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5817
5817
  setup(n) {
5818
5818
  const { t: r } = ce(), e = n, t = se(), m = at();
5819
5819
  Ae(() => {
5820
- t.setMenu(ke.cloneDeep(e.menu)), t.computeMergedMenu();
5820
+ t.$reinitialize(), t.setMenu(ke.cloneDeep(e.menu)), t.computeMergedMenu();
5821
5821
  }), Ot(() => {
5822
- t.clearHistory(), m.setExpandedNodeIds([]), m.setSelectedNodeId(null);
5822
+ t.$dispose(), m.setExpandedNodeIds([]), m.setSelectedNodeId(null);
5823
5823
  });
5824
- const s = H(null), { currentItemId: g, initialForm: d, itemFormKey: h } = ir(t), { saveItemFormEditingStateDebounced: w } = or(s, t), b = H(null);
5824
+ const s = q(null), { currentItemId: g, initialForm: d, itemFormKey: h } = ir(t), { saveItemFormEditingStateDebounced: w } = or(s, t), b = q(null);
5825
5825
  async function v(a) {
5826
5826
  if (a.type === we.SELECT_ITEM || a.type === we.SELECT_PRICE || a.type === we.SELECT_GROUP || a.type === we.SELECT_VARIANT) {
5827
5827
  if (!f(a.itemId))
@@ -5850,7 +5850,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5850
5850
  }
5851
5851
  return a && (g.value = a, m.setSelectedNodeByItemId(a)), !0;
5852
5852
  }
5853
- return (a, I) => ($(), q(ml, null, {
5853
+ return (a, I) => ($(), H(ml, null, {
5854
5854
  "left-panel": B(() => [
5855
5855
  C(Xl, {
5856
5856
  menu: a.menu,
@@ -5861,7 +5861,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5861
5861
  ]),
5862
5862
  "right-panel": B(() => [
5863
5863
  A("div", Jl, [
5864
- o(d) ? ($(), q(nl, {
5864
+ o(d) ? ($(), H(nl, {
5865
5865
  ref_key: "itemFormRef",
5866
5866
  ref: s,
5867
5867
  key: o(h),
@@ -5900,7 +5900,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5900
5900
  g("update:show", !1);
5901
5901
  }, h = ln(), w = se();
5902
5902
  w.selectCatalog(null), w.selectScheduler(null);
5903
- const b = H(!1), v = () => {
5903
+ const b = q(!1), v = () => {
5904
5904
  m(
5905
5905
  async () => {
5906
5906
  wn(), await nt();
@@ -5921,7 +5921,7 @@ const _l = { key: 0 }, yl = ["innerHTML"], hl = /* @__PURE__ */ ae({
5921
5921
  );
5922
5922
  return (a, I) => {
5923
5923
  const S = W("fm-button"), O = W("fm-form");
5924
- return $(), q(Un, { to: "body" }, [
5924
+ return $(), H(Un, { to: "body" }, [
5925
5925
  C(Rn, { name: "fade" }, {
5926
5926
  default: B(() => [
5927
5927
  C(O, {