@feedmepos/mf-menu 0.32.49-dev → 0.32.49

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-B01olmCo.js → App-DWwqICgN.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Bu_IpREq.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DGM-pqCB.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-DZwJeAGh.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-Bt0T0Q9-.js} +2 -2
  4. package/dist/{Catalog-BgrrIuxf.js → Catalog-Bj04dO46.js} +6 -6
  5. package/dist/{Category-CDGXCGQN.js → Category-B0c9uXCq.js} +4 -4
  6. package/dist/{Category-YxTmAvys.js → Category-CvpBi1HT.js} +4 -4
  7. package/dist/{CookingGuide-BVtJs_Kn.js → CookingGuide-YzbN_xWq.js} +4 -4
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DfGBraA0.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CnspihW3.js} +1 -1
  9. package/dist/{Group-Bjv6mYE2.js → Group-BqlrVpS1.js} +3 -3
  10. package/dist/{Group-oZVciF9U.js → Group-CjNy_UQt.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-DG8xGjYM.js → Group.vue_vue_type_script_setup_true_lang-vST-RMKe.js} +7 -7
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B1NvTvHU.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-E_WkJitJ.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BpgCEGWp.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Bi8JIOa6.js} +7 -7
  14. package/dist/{Ingredient-C3w_k7cs.js → Ingredient-CzWptpJk.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CWzd2Hgc.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CAcRjeYO.js} +2 -2
  16. package/dist/{LinkProductSideSheet-FMv4heTJ.js → LinkProductSideSheet-Bja4Cszh.js} +3 -3
  17. package/dist/{MenuSetting-CdG0CM4v.js → MenuSetting-BKz8Lc0o.js} +5 -5
  18. package/dist/{OrderPacing-DoHRQq6z.js → OrderPacing-hlKmIQe9.js} +5 -5
  19. package/dist/{PrintRoute-B3ZOdkWb.js → PrintRoute-CIcsTl5w.js} +4 -4
  20. package/dist/{Product-Bk033TSz.js → Product-DwuCexEe.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-Cj6YUmHX.js → Product.vue_vue_type_script_setup_true_lang-UwOYzxUw.js} +12 -12
  22. package/dist/{ProductInternalTools-hksQOO2B.js → ProductInternalTools-DXnnpR8K.js} +6 -6
  23. package/dist/{Products-Dot3BMR_.js → Products-D9ZEXzTI.js} +51 -51
  24. package/dist/{Publish-YBItRkDe.js → Publish-RXSNXPhJ.js} +3 -3
  25. package/dist/{Recipe-CsltmH36.js → Recipe-DVWLtSQ_.js} +4 -4
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CDFLaIlX.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CiZHJDhR.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DQ59tQmi.js → RuleView.vue_vue_type_script_setup_true_lang-DX9vKQdX.js} +176 -176
  28. package/dist/{Scheduler-0w8DL3Q_.js → Scheduler-Do-a3Cfo.js} +3 -3
  29. package/dist/{ServingSequence-CJYonk8g.js → ServingSequence-CwZ325jQ.js} +3 -3
  30. package/dist/{Setting-D0WgF4wm.js → Setting-BSszW7wy.js} +5 -5
  31. package/dist/{Subcategory-Byk1LOXo.js → Subcategory-Dht6gqhP.js} +5 -5
  32. package/dist/{Takeaway-Bn8HxGmV.js → Takeaway-BupuOrs5.js} +1 -1
  33. package/dist/{Takeaway-DQ-QWxj0.js → Takeaway-CwldkuES.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BpTYQzV-.js → Takeaway.vue_vue_type_script_setup_true_lang-CMx4MCzX.js} +5 -5
  35. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-D-FGnIw4.js → Thumbnail.vue_vue_type_script_setup_true_lang-B4F6XwEL.js} +4 -4
  36. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BhhaNpqT.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-C1WI2rIi.js} +1 -1
  37. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-B2Nzi_cG.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BQn-Iym4.js} +2 -2
  38. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Cs-pvp01.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dn57GJ7T.js} +114 -114
  39. package/dist/{Unit-DA0hunXt.js → Unit-D3Fpe664.js} +2 -2
  40. package/dist/{Variant-xzGvnmWi.js → Variant-AtN90DMV.js} +3 -3
  41. package/dist/{_id_-Bo8nUn6W.js → _id_-B76MDa4v.js} +9 -9
  42. package/dist/{app-B_pjPiJt.js → app-CDxIgV5P.js} +1 -1
  43. package/dist/{app-CxwU6oD_.js → app-DpeCSTH8.js} +32 -32
  44. package/dist/app.js +1 -1
  45. package/dist/assets/{linked-status-CLi0ZaMP.js → linked-status-BslgSQ_X.js} +2 -2
  46. package/dist/assets/{menu-export-tgemEoin.js → menu-export-Cz7GqhAg.js} +3 -3
  47. package/dist/assets/{override-menu-B2_pGKQ5.js → override-menu-DHtDBJkL.js} +2 -2
  48. package/dist/assets/{validate-menu-zFkBYOrT.js → validate-menu-D2RWU23-.js} +5 -5
  49. package/dist/{catalog-DCmaXyCR.js → catalog-DggxiDFI.js} +1 -1
  50. package/dist/{catalogSetting-BMdkGbQA.js → catalogSetting-CsodrJyH.js} +1 -1
  51. package/dist/{currency-BJl6Cdom.js → currency-Dik39bFt.js} +1 -1
  52. package/dist/{dayjs.min-CrqXlTYe.js → dayjs.min-CtPRPF6H.js} +2 -2
  53. package/dist/{index-DCQdFiEM.js → index-CZ0zKCWR.js} +5 -5
  54. package/dist/{index-5AaSAY-w.js → index-CnD7dG32.js} +4 -4
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-B1eRJHco.js → index.vue_vue_type_script_setup_true_lang-ayMUXcas.js} +7 -7
  56. package/dist/{item-Bkin6GCJ.js → item-vne0HbEn.js} +364 -364
  57. package/dist/{jszip.min-C7u5SEBq.js → jszip.min-CZGbdgZ_.js} +153 -153
  58. package/dist/{menu-CqrBIw8_.js → menu-BO6E5Ts_.js} +1 -1
  59. package/dist/{menuV2-DbnFxkWz.js → menuV2-B83JGuiX.js} +53 -53
  60. package/dist/mf-menu.css +1 -1
  61. package/dist/{order_pacing-Sk-V86me.js → order_pacing-AsrGCnda.js} +5 -5
  62. package/dist/{priceTier-0-_3YORa.js → priceTier-BSeu0mIP.js} +1 -1
  63. package/dist/{rules-CSn8QaHv.js → rules-DrZ6Uil3.js} +3 -3
  64. package/dist/{scheduler-CrOEXWb4.js → scheduler-CN9BIv5w.js} +4 -4
  65. package/dist/{toExcel-fLdoWcMu.js → toExcel-4AZNWspR.js} +2 -2
  66. package/dist/{unit-SuZbxNh5.js → unit-Dn2l5Mz-.js} +2 -2
  67. package/package.json +1 -1
@@ -1,38 +1,38 @@
1
- import { ref as ee, computed as $, getCurrentInstance as mn, render as pn, defineComponent as me, resolveComponent as q, createElementBlock as X, openBlock as D, createBlock as te, normalizeClass as we, createElementVNode as A, createVNode as f, unref as e, withCtx as G, toDisplayString as ye, mergeModels as Bt, useModel as Yt, createCommentVNode as J, onMounted as We, resolveDirective as zt, Fragment as Ie, renderList as Pe, createTextVNode as fn, withDirectives as tt, renderSlot as Ne, h as ke, watch as Oe, nextTick as pt, vShow as jt, withModifiers as Xe, createSlots as gn, onBeforeUnmount as Dt, watchEffect as vn, onUnmounted as bn, normalizeStyle as dt, mergeProps as _n, normalizeProps as yn, guardReactiveProps as hn, Teleport as wn, Transition as kn, withKeys as Cn } from "vue";
2
- import { g as In, o as En, _ as Tn, a as xn, f as Fn, b as Sn, c as qt, n as Wt, I as On, S as Dn, d as Vt, e as Vn, C as Pn, h as Ht, i as Et, j as Xt, k as $n, m as Un, F as Mn, M as Qt, l as Rn, r as An, p as Jt, q as At, s as Zt, t as Nn, P as Ln, v as Gn, w as en, u as Kn, T as ze, x as Bn } from "./item-Bkin6GCJ.js";
3
- import { a as Yn, b as zn, d as jn, _ as qn, T as Wn } from "./app-CxwU6oD_.js";
4
- import { z as Ce, J as Te, y as ie, B as ot, K as Hn, M as Xn, N as Qn, u as ft, O as Pt, P as Jn, A as Le, Q as Zn, G as he, R as eo, H as xe, T as vt, U as tn, V as to, W as no, X as oo, Y as bt, Z as Nt, $ as ao, a0 as ro } from "./index.vue_vue_type_script_setup_true_lang-B1eRJHco.js";
1
+ import { ref as ee, computed as $, getCurrentInstance as mn, render as pn, defineComponent as me, resolveComponent as q, createElementBlock as X, openBlock as D, createBlock as te, normalizeClass as we, createElementVNode as A, createVNode as f, unref as e, withCtx as G, toDisplayString as ye, mergeModels as Bt, useModel as Yt, createCommentVNode as J, onMounted as qe, resolveDirective as zt, Fragment as Ie, renderList as Pe, createTextVNode as fn, withDirectives as tt, renderSlot as Ne, h as ke, watch as Oe, nextTick as pt, vShow as jt, withModifiers as He, createSlots as gn, onBeforeUnmount as Dt, watchEffect as vn, onUnmounted as bn, normalizeStyle as dt, mergeProps as _n, normalizeProps as yn, guardReactiveProps as hn, Teleport as wn, Transition as kn, withKeys as Cn } from "vue";
2
+ import { g as In, o as En, _ as Tn, a as xn, f as Fn, b as Sn, c as qt, n as Wt, I as On, S as Dn, d as Vt, e as Vn, C as Pn, h as Ht, i as Et, j as Xt, k as $n, m as Un, F as Mn, M as Qt, l as Rn, r as An, p as Jt, q as At, s as Zt, t as Nn, P as Ln, v as Gn, w as en, u as Kn, T as Ye, x as Bn } from "./item-vne0HbEn.js";
3
+ import { a as Yn, b as zn, d as jn, _ as qn, T as Wn } from "./app-DpeCSTH8.js";
4
+ import { z as Ce, J as Te, y as ie, B as ot, K as Hn, M as Xn, N as Qn, u as ft, O as Pt, P as Jn, A as Le, Q as Zn, G as he, R as eo, H as xe, T as vt, U as tn, V as to, W as no, X as oo, Y as bt, Z as Nt, $ as ao, a0 as ro } from "./index.vue_vue_type_script_setup_true_lang-ayMUXcas.js";
5
5
  import { useI18n as _e, useCoreStore as at, CustomAttributesForm as nn } from "@feedmepos/mf-common";
6
- import { useDialog as Ge, useDialogChild as $t, useSnackbar as Ke, FmButtonColorThemeVariant as Ve, components as Fe, FmButtonVariant as He, useBreakpoints as lo } from "@feedmepos/ui-library";
6
+ import { useDialog as Ge, useDialogChild as $t, useSnackbar as Ke, FmButtonColorThemeVariant as Ve, components as Fe, FmButtonVariant as We, useBreakpoints as lo } from "@feedmepos/ui-library";
7
7
  import { u as Ut } from "./discardConfirm-BHni0LNu.js";
8
8
  import { defineStore as io } from "pinia";
9
- import { _ as De, a as so } from "./RuleView.vue_vue_type_script_setup_true_lang-DQ59tQmi.js";
10
- import { u as be, g as on, m as uo } from "./menuV2-DbnFxkWz.js";
9
+ import { _ as De, a as so } from "./RuleView.vue_vue_type_script_setup_true_lang-DX9vKQdX.js";
10
+ import { u as be, g as on, m as uo } from "./menuV2-B83JGuiX.js";
11
11
  import { s as Tt, _ as co } from "./index-CisutoS9.js";
12
12
  import { useAppStore as an, RemyButton as rn } from "@feedmepos/mf-remy-panel";
13
13
  import { _ as Re } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
14
14
  import { c as mo } from "./createComponentProgrammatically-Bt2rn1IQ.js";
15
- import { _ as po, a as fo, u as go } from "./Thumbnail.vue_vue_type_script_setup_true_lang-D-FGnIw4.js";
16
- import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ import { _ as po, a as fo, u as go } from "./Thumbnail.vue_vue_type_script_setup_true_lang-B4F6XwEL.js";
16
+ import { _ as Je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  import { _ as xt } from "./tooltip-B5BiPMx9.js";
18
18
  import { g as lt } from "./translation-fNx6yEpy.js";
19
- import { _ as Qe, T as vo, l as bo } from "./index-DCQdFiEM.js";
20
- import { L as Ft } from "./LinkProductSideSheet-FMv4heTJ.js";
19
+ import { _ as Xe, T as vo, l as bo } from "./index-CZ0zKCWR.js";
20
+ import { L as Ft } from "./LinkProductSideSheet-Bja4Cszh.js";
21
21
  import { u as _o } from "./search-BAPEUu1R.js";
22
22
  import { c as Mt } from "./check-C9mY6LiX.js";
23
- import { f as nt } from "./currency-BJl6Cdom.js";
23
+ import { f as nt } from "./currency-Dik39bFt.js";
24
24
  import { c as yo } from "./string-DpfFixWH.js";
25
25
  import { useInventoryStore as ho, InventoryBindingSummary as wo } from "@feedmepos/mf-inventory-portal";
26
- import { u as ko } from "./priceTier-0-_3YORa.js";
26
+ import { u as ko } from "./priceTier-BSeu0mIP.js";
27
27
  import { d as Rt } from "./vuedraggable-CK8z7qA8.js";
28
- import { _ as Co } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Bu_IpREq.js";
28
+ import { _ as Co } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DGM-pqCB.js";
29
29
  import "./app-5fxKLAzS.js";
30
30
  /* empty css */
31
31
  import { c as ct } from "./object-DVUNCr7w.js";
32
32
  import { _ as Io } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
33
33
  import { _ as Lt } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
34
- import { _ as Eo } from "./RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CDFLaIlX.js";
35
- var Je = /* @__PURE__ */ ((s) => (s.PRIMARY = "primary", s.PLAIN = "plain", s))(Je || {}), Ue = /* @__PURE__ */ ((s) => (s.CATEGORY = "view_list", s.ITEM = "fastfood", s.VARIANT = "lunch_dining", s.GROUP = "database", s.FOLDER = "folder", s))(Ue || {});
34
+ import { _ as Eo } from "./RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CiZHJDhR.js";
35
+ var Qe = /* @__PURE__ */ ((s) => (s.PRIMARY = "primary", s.PLAIN = "plain", s))(Qe || {}), Ue = /* @__PURE__ */ ((s) => (s.CATEGORY = "view_list", s.ITEM = "fastfood", s.VARIANT = "lunch_dining", s.GROUP = "database", s.FOLDER = "folder", s))(Ue || {});
36
36
  function _t(s, l) {
37
37
  return s <= 0 ? null : { label: l };
38
38
  }
@@ -55,7 +55,7 @@ function To(s, l) {
55
55
  const t = !!l.price;
56
56
  return {
57
57
  label: t ? Ce.Dinero.fromFdoDinero(l.price).toFormat(!0) : Ce.Dinero.fromFdoDinero(s.price).toFormat(!0),
58
- variant: t ? Je.PRIMARY : Je.PLAIN
58
+ variant: t ? Qe.PRIMARY : Qe.PLAIN
59
59
  };
60
60
  }
61
61
  function xo(s, l) {
@@ -182,9 +182,9 @@ const rt = io("mf-menu-tree", () => {
182
182
  getNodeById: w
183
183
  };
184
184
  });
185
- let it = null, je = null, qe = null;
185
+ let it = null, ze = null, je = null;
186
186
  function ln() {
187
- return je && (clearTimeout(je), je = null), qe ? (qe(), qe = null, !0) : !1;
187
+ return ze && (clearTimeout(ze), ze = null), je ? (je(), je = null, !0) : !1;
188
188
  }
189
189
  function Vo(s, l, t) {
190
190
  function c(b) {
@@ -193,10 +193,10 @@ function Vo(s, l, t) {
193
193
  if (h != null && h.length && h.length > 0)
194
194
  return !1;
195
195
  const w = b;
196
- return r(w), it = { ...w }, je && clearTimeout(je), qe = () => {
197
- it && (_(it), it = null), je = null;
198
- }, je = setTimeout(() => {
199
- qe && qe(), qe = null;
196
+ return r(w), it = { ...w }, ze && clearTimeout(ze), je = () => {
197
+ it && (_(it), it = null), ze = null;
198
+ }, ze = setTimeout(() => {
199
+ je && je(), je = null;
200
200
  }, 1e3), !0;
201
201
  }
202
202
  function r(b) {
@@ -461,7 +461,7 @@ const gt = () => {
461
461
  };
462
462
  }
463
463
  });
464
- var Bo = { firebase: { storageBucket: "image.feedmedev.cc" } };
464
+ var Bo = { firebase: { storageBucket: "image.feedme.cc" } };
465
465
  const Yo = {
466
466
  key: 0,
467
467
  class: "absolute inset-0 flex items-center justify-center image-action-overlay"
@@ -567,7 +567,7 @@ const Yo = {
567
567
  }, 8, ["model-value", "label"]);
568
568
  };
569
569
  }
570
- }), qo = /* @__PURE__ */ Ze(jo, [["__scopeId", "data-v-946af9b7"]]), Wo = {
570
+ }), qo = /* @__PURE__ */ Je(jo, [["__scopeId", "data-v-946af9b7"]]), Wo = {
571
571
  class: "flex flex-row xs:flex-col gap-24"
572
572
  }, Ho = {
573
573
  class: "flex-1 flex flex-col gap-24"
@@ -676,7 +676,7 @@ const da = /* @__PURE__ */ me({
676
676
  class: "fm-typo-en-body-lg-600 text-fm-color-primary"
677
677
  }, [u("menu.product.form.detail.category.add_new")])])
678
678
  });
679
- We(async () => {
679
+ qe(async () => {
680
680
  !n.value && t.form.category === void 0 && t.isCreate && F(Me.PRODUCT);
681
681
  });
682
682
  const v = $(() => {
@@ -788,21 +788,21 @@ const da = /* @__PURE__ */ me({
788
788
  return !!t.form.name || !!((E = t.fallback) != null && E.name);
789
789
  });
790
790
  return (E, Y) => {
791
- var ue, ae;
791
+ var de, ae;
792
792
  const Z = q("fm-text-field"), ne = q("fm-button"), ce = q("FmTooltip"), fe = q("fm-textarea"), ge = q("fm-radio"), pe = q("FmSnackbar"), $e = q("FmButton"), Ae = q("fm-radio-group"), K = q("FmFormGroup"), N = q("fm-stepper-field"), re = zt("tooltip");
793
793
  return D(), X(Ie, null, [f(De, {
794
794
  title: e(u)("menu.product.form.detail.title")
795
795
  }, {
796
796
  default: G(() => {
797
- var ve, H, Be;
797
+ var ve, H, Be, Ze;
798
798
  return [A("div", Wo, [A("div", Ho, [A("div", Xo, [A("div", Qo, [f(Z, {
799
799
  "model-value": E.form.code,
800
800
  placeholder: ((ve = E.fallback) == null ? void 0 : ve.code) || e(u)("menu.product.form.detail.fields.code.placeholder"),
801
801
  label: e(u)("menu.product.form.detail.fields.code.label"),
802
- rules: [(de) => x.value === 0 || e(u)("menu.product.form.detail.fields.code.duplicate_warning", {
802
+ rules: [(ue) => x.value === 0 || e(u)("menu.product.form.detail.fields.code.duplicate_warning", {
803
803
  count: x.value
804
804
  })],
805
- "onUpdate:modelValue": Y[0] || (Y[0] = (de) => m("update:form", "code", e(Wt)(de, E.isOverride)))
805
+ "onUpdate:modelValue": Y[0] || (Y[0] = (ue) => m("update:form", "code", e(Wt)(ue, E.isOverride)))
806
806
  }, null, 8, ["model-value", "placeholder", "label", "rules"])]), A("div", Jo, [f(Z, {
807
807
  id: "product-name",
808
808
  disabled: !b.value.name,
@@ -811,19 +811,19 @@ const da = /* @__PURE__ */ me({
811
811
  }) : void 0,
812
812
  "model-value": E.form.name,
813
813
  placeholder: (H = E.fallback) == null ? void 0 : H.name,
814
- rules: b.value.name ? [(de) => !!de || e(u)("menu.product.form.detail.fields.name.required")] : void 0,
814
+ rules: b.value.name ? [(ue) => !!ue || e(u)("menu.product.form.detail.fields.name.required")] : void 0,
815
815
  "label-mark": "required",
816
816
  label: e(u)("menu.product.form.detail.fields.name.label"),
817
- "onUpdate:modelValue": Y[1] || (Y[1] = (de) => m("update:form", "name", de))
817
+ "onUpdate:modelValue": Y[1] || (Y[1] = (ue) => m("update:form", "name", ue))
818
818
  }, {
819
819
  append: G(() => [f(ce, {
820
820
  variant: "plain",
821
821
  placement: "top",
822
822
  "z-index": 999
823
823
  }, {
824
- content: G(() => [A("div", Zo, [(D(!0), X(Ie, null, Pe(oe.value, (de) => (D(), X("div", {
825
- key: de.locale
826
- }, ye(de.name) + " (" + ye(de.localeDisplay) + ") ", 1))), 128))])]),
824
+ content: G(() => [A("div", Zo, [(D(!0), X(Ie, null, Pe(oe.value, (ue) => (D(), X("div", {
825
+ key: ue.locale
826
+ }, ye(ue.name) + " (" + ye(ue.localeDisplay) + ") ", 1))), 128))])]),
827
827
  default: G(() => [f(ne, {
828
828
  variant: "tertiary",
829
829
  icon: "g_translate",
@@ -836,8 +836,8 @@ const da = /* @__PURE__ */ me({
836
836
  }, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), A("div", ea, [f(fe, {
837
837
  disabled: !b.value.description,
838
838
  "model-value": E.form.description || "",
839
- placeholder: e(u)("menu.product.form.detail.fields.description.placeholder"),
840
- "onUpdate:modelValue": Y[2] || (Y[2] = (de) => m("update:form", "description", de.trim())),
839
+ placeholder: ((Be = E.fallback) == null ? void 0 : Be.description) || e(u)("menu.product.form.detail.fields.description.placeholder"),
840
+ "onUpdate:modelValue": Y[2] || (Y[2] = (ue) => m("update:form", "description", ue.trim())),
841
841
  class: "description"
842
842
  }, {
843
843
  label: G(() => [A("p", ta, [fn(ye(e(u)("menu.product.form.detail.fields.description.label")) + " ", 1), A("span", na, ye(e(u)("menu.product.form.detail.fields.description.optional")), 1)])]),
@@ -847,9 +847,9 @@ const da = /* @__PURE__ */ me({
847
847
  placement: "top",
848
848
  "z-index": 999
849
849
  }, {
850
- content: G(() => [A("div", aa, [(D(!0), X(Ie, null, Pe(se.value, (de) => (D(), X("div", {
851
- key: de.locale
852
- }, ye(de.name) + " (" + ye(de.localeDisplay) + ") ", 1))), 128))])]),
850
+ content: G(() => [A("div", aa, [(D(!0), X(Ie, null, Pe(se.value, (ue) => (D(), X("div", {
851
+ key: ue.locale
852
+ }, ye(ue.name) + " (" + ye(ue.localeDisplay) + ") ", 1))), 128))])]),
853
853
  default: G(() => [tt(f(ne, {
854
854
  variant: "tertiary",
855
855
  icon: "g_translate",
@@ -863,8 +863,8 @@ const da = /* @__PURE__ */ me({
863
863
  }, null, 512), [[re, e(xt)("Suggest description")]])])])]), f(qo, {
864
864
  disabled: !b.value.thumbnail,
865
865
  "item-id": E.form._id || "",
866
- "model-value": E.form.thumbnail || ((Be = E.fallback) == null ? void 0 : Be.thumbnail) || null,
867
- "onUpdate:modelValue": Y[3] || (Y[3] = (de) => m("update:form", "thumbnail", de))
866
+ "model-value": E.form.thumbnail || ((Ze = E.fallback) == null ? void 0 : Ze.thumbnail) || null,
867
+ "onUpdate:modelValue": Y[3] || (Y[3] = (ue) => m("update:form", "thumbnail", ue))
868
868
  }, null, 8, ["disabled", "item-id", "model-value"])]), f(Re, {
869
869
  label: e(c).isV4 ? e(u)("menu.product.form.detail.category.label") : e(u)("menu.product.form.detail.category.label_singular")
870
870
  }, {
@@ -872,7 +872,7 @@ const da = /* @__PURE__ */ me({
872
872
  key: 0,
873
873
  disabled: !b.value.category,
874
874
  "model-value": E.isAddon ? Me.ADD_ON : Me.PRODUCT,
875
- "onUpdate:modelValue": Y[4] || (Y[4] = (de) => F(de))
875
+ "onUpdate:modelValue": Y[4] || (Y[4] = (ue) => F(ue))
876
876
  }, {
877
877
  default: G(() => [A("div", ra, [A("div", la, [f(ge, {
878
878
  disabled: n.value,
@@ -902,7 +902,7 @@ const da = /* @__PURE__ */ me({
902
902
  }, 8, ["disabled", "model-value"])) : J("", !0), e(c).isV4 ? J("", !0) : (D(), te(K, {
903
903
  key: 1,
904
904
  "model-value": E.form.category,
905
- rules: [(de) => !de && !E.isOverride ? "Category is required" : !0]
905
+ rules: [(ue) => !ue && !E.isOverride ? "Category is required" : !0]
906
906
  }, {
907
907
  default: G(() => [f(d, {
908
908
  multiple: !1
@@ -916,7 +916,7 @@ const da = /* @__PURE__ */ me({
916
916
  }, {
917
917
  default: G(() => [A("div", sa, [f(Dn, {
918
918
  modelValue: i.value,
919
- "onUpdate:modelValue": Y[5] || (Y[5] = (de) => i.value = de),
919
+ "onUpdate:modelValue": Y[5] || (Y[5] = (ue) => i.value = ue),
920
920
  items: a.value,
921
921
  placeholder: e(u)("menu.product.form.detail.path.placeholder"),
922
922
  disabled: !b.value.category,
@@ -926,11 +926,11 @@ const da = /* @__PURE__ */ me({
926
926
  }, 8, ["label"])) : J("", !0), e(c).isV4 ? (D(), X("div", ua, [f(N, {
927
927
  label: "Shelf Life (mins)",
928
928
  "model-value": E.form.shelfLife ?? null,
929
- rules: [(de) => de == null || de > 0 || e(u)("menu.common.validation.min_value", {
929
+ rules: [(ue) => ue == null || ue > 0 || e(u)("menu.common.validation.min_value", {
930
930
  value: 1
931
931
  })],
932
- "onUpdate:modelValue": Y[6] || (Y[6] = (de) => {
933
- (de == null || de > 0) && m("update:form", "shelfLife", de);
932
+ "onUpdate:modelValue": Y[6] || (Y[6] = (ue) => {
933
+ (ue == null || ue > 0) && m("update:form", "shelfLife", ue);
934
934
  })
935
935
  }, null, 8, ["model-value", "rules"]), f(N, {
936
936
  label: e(u)("menu.product.form.detail.fields.minimum_order_quantity.label"),
@@ -945,14 +945,14 @@ const da = /* @__PURE__ */ me({
945
945
  required: b.value.orderFrom,
946
946
  "default-label": e(u)("menu.product.form.detail.order_from.default"),
947
947
  label: e(u)("menu.product.form.detail.order_from.label"),
948
- "onUpdate:modelValue": Y[7] || (Y[7] = (de) => de && m("update:form", "orderFrom", de))
948
+ "onUpdate:modelValue": Y[7] || (Y[7] = (ue) => ue && m("update:form", "orderFrom", ue))
949
949
  }, null, 8, ["disabled", "model-value", "order-from-none", "required", "default-label", "label"])];
950
950
  }),
951
951
  _: 1
952
952
  }, 8, ["title"]), f(Vn, {
953
953
  modelValue: M.value,
954
954
  "onUpdate:modelValue": Y[8] || (Y[8] = (ve) => M.value = ve),
955
- "product-name": E.form.name || ((ue = E.fallback) == null ? void 0 : ue.name) || "",
955
+ "product-name": E.form.name || ((de = E.fallback) == null ? void 0 : de.name) || "",
956
956
  "product-name-locale": E.form.name_locale,
957
957
  "product-description": E.form.description || ((ae = E.fallback) == null ? void 0 : ae.description),
958
958
  "product-description-locale": E.form.description_locale,
@@ -964,7 +964,7 @@ const da = /* @__PURE__ */ me({
964
964
  }, null, 8, ["modelValue", "product-name", "product-name-locale", "product-description", "product-description-locale", "initial-section"])], 64);
965
965
  };
966
966
  }
967
- }), ca = /* @__PURE__ */ Ze(da, [["__scopeId", "data-v-41342df2"]]), ma = /* @__PURE__ */ me({
967
+ }), ca = /* @__PURE__ */ Je(da, [["__scopeId", "data-v-54ff213a"]]), ma = /* @__PURE__ */ me({
968
968
  __name: "AddForm",
969
969
  setup(s) {
970
970
  const l = be(), t = $(() => l.rules.group), o = $(() => !!l.state.currentCatalogId || !!l.state.currentSchedulerId), c = $(() => {
@@ -1146,7 +1146,7 @@ const da = /* @__PURE__ */ me({
1146
1146
  size: 100,
1147
1147
  cell: (R) => {
1148
1148
  const L = R.getValue(), p = R.row.original, z = !V(null).priceEdit || p.orderFrom === ie.F_ORDER_FROM.enum.NONE, W = p.fallbackPrice, le = R.row.depth > 0;
1149
- return ke(Qe, {
1149
+ return ke(Xe, {
1150
1150
  disable: z,
1151
1151
  placeholder: W ? nt(W) : void 0,
1152
1152
  modelValue: L,
@@ -1264,7 +1264,7 @@ const da = /* @__PURE__ */ me({
1264
1264
  default: () => {
1265
1265
  var W;
1266
1266
  return [f(q("fm-button"), {
1267
- variant: He.Tertiary,
1267
+ variant: We.Tertiary,
1268
1268
  prependIcon: "inventory_2",
1269
1269
  overwriteIconOutline: (W = L.inventoryBindings) != null && W.length ? "filled" : "outline",
1270
1270
  textColor: Ve.NeutralGray400,
@@ -1273,7 +1273,7 @@ const da = /* @__PURE__ */ me({
1273
1273
  }
1274
1274
  })
1275
1275
  }), V(L.combinationKey).link && f(q("fm-button"), {
1276
- variant: He.Tertiary,
1276
+ variant: We.Tertiary,
1277
1277
  prependIcon: "delete",
1278
1278
  textColor: Ve.NeutralGray400,
1279
1279
  disabled: p,
@@ -1837,13 +1837,13 @@ const da = /* @__PURE__ */ me({
1837
1837
  }, null, 8, ["modelValue", "items"]),
1838
1838
  A("div", Ca, [
1839
1839
  f(y, {
1840
- variant: e(He).Tertiary,
1840
+ variant: e(We).Tertiary,
1841
1841
  "prepend-icon": "keyboard_arrow_left",
1842
1842
  size: "lg",
1843
1843
  onClick: U[1] || (U[1] = (i) => T("left"))
1844
1844
  }, null, 8, ["variant"]),
1845
1845
  f(y, {
1846
- variant: e(He).Tertiary,
1846
+ variant: e(We).Tertiary,
1847
1847
  "prepend-icon": "keyboard_arrow_right",
1848
1848
  size: "lg",
1849
1849
  onClick: U[2] || (U[2] = (i) => T("right"))
@@ -2109,7 +2109,7 @@ const da = /* @__PURE__ */ me({
2109
2109
  icon: "delete",
2110
2110
  variant: "tertiary",
2111
2111
  textColor: "neutral-gray-400",
2112
- onClick: Xe(async () => {
2112
+ onClick: He(async () => {
2113
2113
  x(i);
2114
2114
  }, ["stop", "prevent"])
2115
2115
  }), ke(Ta, {
@@ -2359,7 +2359,7 @@ const da = /* @__PURE__ */ me({
2359
2359
  default: ({
2360
2360
  trigger: P
2361
2361
  }) => f(q("fm-button"), {
2362
- variant: He.Tertiary,
2362
+ variant: We.Tertiary,
2363
2363
  prependIcon: "edit",
2364
2364
  textColor: Ve.NeutralGray400,
2365
2365
  onClick: P
@@ -2375,7 +2375,7 @@ const da = /* @__PURE__ */ me({
2375
2375
  x.getKey() === v && x.trigger(!0);
2376
2376
  }
2377
2377
  const d = ho();
2378
- return We(() => {
2378
+ return qe(() => {
2379
2379
  d.readInventory();
2380
2380
  }), (v, x) => {
2381
2381
  const P = q("FmStepperField");
@@ -2510,7 +2510,7 @@ const da = /* @__PURE__ */ me({
2510
2510
  id: e(Se).PRICE,
2511
2511
  class: we(["flex space-x-16", "xs:flex-col xs:space-x-0 xs:space-y-16"])
2512
2512
  }, [
2513
- f(Qe, {
2513
+ f(Xe, {
2514
2514
  disable: O.value.length > 0 && e(c).currentCatalog && !e(c).currentScheduler,
2515
2515
  min: 0,
2516
2516
  "model-value": d.form.price || null,
@@ -2637,7 +2637,7 @@ const da = /* @__PURE__ */ me({
2637
2637
  }, null, 8, ["model-value", "value", "label"]),
2638
2638
  d.form.costing ? (D(), X("div", Wa, [
2639
2639
  A("div", Ha, [
2640
- f(Qe, {
2640
+ f(Xe, {
2641
2641
  class: "w-full",
2642
2642
  min: 0,
2643
2643
  "model-value": d.form.costing || null,
@@ -2658,7 +2658,7 @@ const da = /* @__PURE__ */ me({
2658
2658
  }, null, 8, ["disabled", "model-value", "value", "label"]),
2659
2659
  A("div", Qa, [
2660
2660
  A("div", Ja, [
2661
- d.form.minPrice ? (D(), te(Qe, {
2661
+ d.form.minPrice ? (D(), te(Xe, {
2662
2662
  key: 0,
2663
2663
  max: e(Ce.Dinero).fromFdoDinero(d.form.price).toUnit(),
2664
2664
  min: 0,
@@ -2824,7 +2824,7 @@ const da = /* @__PURE__ */ me({
2824
2824
  class: "handle",
2825
2825
  "prepend-icon": "drag_handle",
2826
2826
  variant: "tertiary",
2827
- onClick: d[2] || (d[2] = Xe(() => {
2827
+ onClick: d[2] || (d[2] = He(() => {
2828
2828
  }, ["stop"]))
2829
2829
  }, null, 8, ["disabled"])) : J("", !0)
2830
2830
  ]),
@@ -2846,7 +2846,7 @@ const da = /* @__PURE__ */ me({
2846
2846
  default: G(({ trigger: y }) => [
2847
2847
  A("div", or, [
2848
2848
  f(F, {
2849
- variant: e(He).Secondary,
2849
+ variant: e(We).Secondary,
2850
2850
  label: e(c)("menu.product.form.print.routes.add"),
2851
2851
  "prepend-icon": "add",
2852
2852
  onClick: y
@@ -3053,7 +3053,7 @@ const da = /* @__PURE__ */ me({
3053
3053
  (x) => {
3054
3054
  x ? h.value = b() : c();
3055
3055
  }
3056
- ), We(() => {
3056
+ ), qe(() => {
3057
3057
  g.value = !0;
3058
3058
  }), (x, P) => {
3059
3059
  const F = q("fm-text-field"), U = q("fm-icon"), C = q("fm-button"), y = q("fm-side-sheet");
@@ -3485,7 +3485,7 @@ const fr = {
3485
3485
  return f("div", {
3486
3486
  id: mt(Se.VARIANT, k.combinationKey ?? ""),
3487
3487
  class: "flex items-center gap-8"
3488
- }, [f(Qe, {
3488
+ }, [f(Xe, {
3489
3489
  disable: F.value.length > 0 && c.currentCatalog && !c.currentScheduler,
3490
3490
  placeholder: u ? nt(u) : void 0,
3491
3491
  modelValue: i,
@@ -3509,7 +3509,7 @@ const fr = {
3509
3509
  cell: (a) => {
3510
3510
  var M, j, oe;
3511
3511
  const i = a.getValue(), k = a.row.original, u = ((M = k.fallback) == null ? void 0 : M.minPrice) ?? t.form.minPrice ?? ((j = t.fallback) == null ? void 0 : j.minPrice);
3512
- return ke(Qe, {
3512
+ return ke(Xe, {
3513
3513
  placeholder: u ? nt(u) : void 0,
3514
3514
  modelValue: i,
3515
3515
  max: Ce.Dinero.fromFdoDinero(k.price ?? ((oe = k.fallback) == null ? void 0 : oe.price) ?? Ce.Dinero.zero().toObject()).toUnit(),
@@ -3563,13 +3563,13 @@ const fr = {
3563
3563
  }) => {
3564
3564
  var R;
3565
3565
  return [A("div", Ir, [f(k, {
3566
- variant: e(He).Tertiary,
3566
+ variant: e(We).Tertiary,
3567
3567
  class: "handle",
3568
3568
  "prepend-icon": "drag_handle"
3569
3569
  }, null, 8, ["variant"]), A("div", Er, [A("p", Tr, ye((R = g.value[se]) == null ? void 0 : R.name), 1), f(I, {
3570
3570
  class: "cursor-pointer",
3571
3571
  name: "close",
3572
- onClick: Xe((L) => {
3572
+ onClick: He((L) => {
3573
3573
  var p;
3574
3574
  return x(((p = a.form.variant) == null ? void 0 : p.variantGroupIds.filter((z) => z !== se)) ?? []);
3575
3575
  }, ["stop"])
@@ -3634,8 +3634,8 @@ const fr = {
3634
3634
  setup(s, { expose: l, emit: t }) {
3635
3635
  var fe, ge, pe, $e, Ae;
3636
3636
  const o = s, c = t, r = at(), _ = be(), { t: S } = _e(), m = rt(), b = $(() => {
3637
- var ue, ae;
3638
- const K = (ue = o.initialForm) != null && ue._id ? m.getNodeById((ae = o.initialForm) == null ? void 0 : ae._id) : null;
3637
+ var de, ae;
3638
+ const K = (de = o.initialForm) != null && de._id ? m.getNodeById((ae = o.initialForm) == null ? void 0 : ae._id) : null;
3639
3639
  if (!K)
3640
3640
  return [];
3641
3641
  const N = [];
@@ -3647,7 +3647,7 @@ const fr = {
3647
3647
  }), re = re.parent;
3648
3648
  return N.reverse();
3649
3649
  }), h = ee(null);
3650
- We(() => {
3650
+ qe(() => {
3651
3651
  var K;
3652
3652
  (K = h.value) == null || K.setSelectedItemIndex(b.value.length - 1);
3653
3653
  });
@@ -3700,8 +3700,8 @@ const fr = {
3700
3700
  const K = {};
3701
3701
  return o.menu.modules.item.forEach((N) => {
3702
3702
  var re;
3703
- for (const [ue, ae] of Object.entries(N.customAttributes || {}))
3704
- typeof ae == "string" && ae && !((re = K[ue]) != null && re.includes(ae)) && (K[ue] = [...K[ue] || [], ae]);
3703
+ for (const [de, ae] of Object.entries(N.customAttributes || {}))
3704
+ typeof ae == "string" && ae && !((re = K[de]) != null && re.includes(ae)) && (K[de] = [...K[de] || [], ae]);
3705
3705
  }), K;
3706
3706
  }), C = ee(!!n.value.price || !!n.value.minPrice || !!n.value.costing);
3707
3707
  function y(K) {
@@ -3718,12 +3718,12 @@ const fr = {
3718
3718
  )
3719
3719
  );
3720
3720
  function i(K) {
3721
- var N, re, ue;
3721
+ var N, re, de;
3722
3722
  K || (n.value = {
3723
3723
  ...n.value,
3724
3724
  variant: {
3725
3725
  variantGroupIds: ((N = n.value.variant) == null ? void 0 : N.variantGroupIds) || [],
3726
- variantCombinations: ((ue = (re = n.value.variant) == null ? void 0 : re.variantCombinations) == null ? void 0 : ue.map((ae) => ({
3726
+ variantCombinations: ((de = (re = n.value.variant) == null ? void 0 : re.variantCombinations) == null ? void 0 : de.map((ae) => ({
3727
3727
  ...ae,
3728
3728
  price: void 0,
3729
3729
  orderFrom: void 0,
@@ -3736,13 +3736,13 @@ const fr = {
3736
3736
  !!n.value.inventoryBindings || (((ge = n.value.variant) == null ? void 0 : ge.variantCombinations) || []).some((K) => !!K.inventoryBindings) || !1
3737
3737
  );
3738
3738
  function I(K) {
3739
- var N, re, ue;
3739
+ var N, re, de;
3740
3740
  K || (n.value = {
3741
3741
  ...n.value,
3742
3742
  inventoryBindings: void 0,
3743
3743
  variant: n.value.variant ? {
3744
3744
  variantGroupIds: ((N = n.value.variant) == null ? void 0 : N.variantGroupIds) || [],
3745
- variantCombinations: ((ue = (re = n.value.variant) == null ? void 0 : re.variantCombinations) == null ? void 0 : ue.map((ae) => ({
3745
+ variantCombinations: ((de = (re = n.value.variant) == null ? void 0 : re.variantCombinations) == null ? void 0 : de.map((ae) => ({
3746
3746
  ...ae,
3747
3747
  inventoryBindings: void 0
3748
3748
  }))) || []
@@ -3759,8 +3759,8 @@ const fr = {
3759
3759
  takeawayUsed: void 0,
3760
3760
  variant: {
3761
3761
  variantGroupIds: ((N = n.value.variant) == null ? void 0 : N.variantGroupIds) || [],
3762
- variantCombinations: ((re = n.value.variant) == null ? void 0 : re.variantCombinations.map((ue) => ({
3763
- ...ue,
3762
+ variantCombinations: ((re = n.value.variant) == null ? void 0 : re.variantCombinations.map((de) => ({
3763
+ ...de,
3764
3764
  takeawayUsed: void 0
3765
3765
  }))) || []
3766
3766
  }
@@ -3783,8 +3783,8 @@ const fr = {
3783
3783
  groups: [],
3784
3784
  variant: {
3785
3785
  variantGroupIds: ((N = n.value.variant) == null ? void 0 : N.variantGroupIds) || [],
3786
- variantCombinations: ((re = n.value.variant) == null ? void 0 : re.variantCombinations.map((ue) => ({
3787
- ...ue,
3786
+ variantCombinations: ((re = n.value.variant) == null ? void 0 : re.variantCombinations.map((de) => ({
3787
+ ...de,
3788
3788
  groups: []
3789
3789
  }))) || []
3790
3790
  }
@@ -3805,7 +3805,7 @@ const fr = {
3805
3805
  () => {
3806
3806
  o.initialForm && L();
3807
3807
  }
3808
- ), We(() => {
3808
+ ), qe(() => {
3809
3809
  L(), O(), r.pushDataLayer(
3810
3810
  {
3811
3811
  event: "menu_catalog_item_dialog_open",
@@ -3841,9 +3841,9 @@ const fr = {
3841
3841
  const re = document.getElementById(K);
3842
3842
  if (re) {
3843
3843
  if (re.scrollIntoView({ behavior: "smooth" }), N) {
3844
- const ue = re.tagName === "INPUT" || re.tagName === "BUTTON" || re.tagName === "TEXTAREA";
3844
+ const de = re.tagName === "INPUT" || re.tagName === "BUTTON" || re.tagName === "TEXTAREA";
3845
3845
  await new Promise((ve) => setTimeout(ve, 500));
3846
- const ae = ue ? re : re.querySelector("input, button, textarea");
3846
+ const ae = de ? re : re.querySelector("input, button, textarea");
3847
3847
  ae && (ae == null || ae.focus());
3848
3848
  }
3849
3849
  } else
@@ -3867,18 +3867,18 @@ const fr = {
3867
3867
  const N = ((ae = n.value.serveDelay) == null ? void 0 : ae.enabled) ?? !1, re = (((ve = n.value.serveDelay) == null ? void 0 : ve.overriders) ?? []).map((H) => ({
3868
3868
  ...H,
3869
3869
  isDefault: K.isDefault ? !1 : H.isDefault
3870
- })), ue = re.findIndex((H) => H.id === K.id);
3871
- ue >= 0 ? re[ue] = { ...re[ue], isDefault: K.isDefault } : re.push({ id: K.id, isDefault: K.isDefault }), V("serveDelay", {
3870
+ })), de = re.findIndex((H) => H.id === K.id);
3871
+ de >= 0 ? re[de] = { ...re[de], isDefault: K.isDefault } : re.push({ id: K.id, isDefault: K.isDefault }), V("serveDelay", {
3872
3872
  enabled: N,
3873
3873
  overriders: re
3874
3874
  });
3875
3875
  }
3876
3876
  function ce(K) {
3877
- var Be, de;
3878
- const N = ((Be = n.value.serveDelay) == null ? void 0 : Be.enabled) ?? !1, ue = (((de = n.value.serveDelay) == null ? void 0 : de.overriders) ?? []).filter((Ye) => K.includes(Ye.id)), ae = new Set(ue.map((Ye) => Ye.id)), H = K.filter((Ye) => !ae.has(Ye)).map((Ye) => ({ id: Ye }));
3877
+ var Be, Ze;
3878
+ const N = ((Be = n.value.serveDelay) == null ? void 0 : Be.enabled) ?? !1, de = (((Ze = n.value.serveDelay) == null ? void 0 : Ze.overriders) ?? []).filter((ue) => K.includes(ue.id)), ae = new Set(de.map((ue) => ue.id)), H = K.filter((ue) => !ae.has(ue)).map((ue) => ({ id: ue }));
3879
3879
  V("serveDelay", {
3880
3880
  enabled: N,
3881
- overriders: [...ue, ...H]
3881
+ overriders: [...de, ...H]
3882
3882
  });
3883
3883
  }
3884
3884
  return l({
@@ -3886,8 +3886,8 @@ const fr = {
3886
3886
  getData: Q,
3887
3887
  hasUnsavedChanges: W
3888
3888
  }), (K, N) => {
3889
- const re = q("FmBreadcrumb"), ue = q("FmForm");
3890
- return D(), te(ue, {
3889
+ const re = q("FmBreadcrumb"), de = q("FmForm");
3890
+ return D(), te(de, {
3891
3891
  id: e(Se).GENERAL,
3892
3892
  class: we(["tree-item-form", ["flex-1 py-24 space-y-24", "xs:w-full"]]),
3893
3893
  ref_key: "formWrapper",
@@ -3903,7 +3903,7 @@ const fr = {
3903
3903
  items: b.value
3904
3904
  }, null, 8, ["items"]),
3905
3905
  f(co, { "menu-store": e(_) }, null, 8, ["menu-store"]),
3906
- f(ze, {
3906
+ f(Ye, {
3907
3907
  toggle: P.value,
3908
3908
  "onUpdate:toggle": [
3909
3909
  N[0] || (N[0] = (H) => P.value = H),
@@ -3945,7 +3945,7 @@ const fr = {
3945
3945
  _: 1
3946
3946
  }, 8, ["title", "sub-title"])) : J("", !0),
3947
3947
  x.value ? (D(), X("div", Sr)) : J("", !0),
3948
- f(ze, {
3948
+ f(Ye, {
3949
3949
  toggle: C.value,
3950
3950
  "onUpdate:toggle": [
3951
3951
  N[3] || (N[3] = (H) => C.value = H),
@@ -3967,7 +3967,7 @@ const fr = {
3967
3967
  _: 1
3968
3968
  }, 8, ["toggle", "disabled", "description", "title"]),
3969
3969
  w.value.print && !d.value ? (D(), X("div", Or)) : J("", !0),
3970
- w.value.print ? (D(), te(ze, {
3970
+ w.value.print ? (D(), te(Ye, {
3971
3971
  key: 4,
3972
3972
  toggle: j.value,
3973
3973
  "onUpdate:toggle": [
@@ -3992,7 +3992,7 @@ const fr = {
3992
3992
  _: 1
3993
3993
  }, 8, ["toggle"])) : J("", !0),
3994
3994
  d.value ? J("", !0) : (D(), X("div", Dr)),
3995
- f(ze, {
3995
+ f(Ye, {
3996
3996
  toggle: a.value,
3997
3997
  "onUpdate:toggle": [
3998
3998
  N[9] || (N[9] = (H) => a.value = H),
@@ -4016,7 +4016,7 @@ const fr = {
4016
4016
  _: 1
4017
4017
  }, 8, ["toggle", "disabled", "description", "title"]),
4018
4018
  w.value.group && !d.value ? (D(), X("div", Vr)) : J("", !0),
4019
- w.value.group ? (D(), te(ze, {
4019
+ w.value.group ? (D(), te(Ye, {
4020
4020
  key: 7,
4021
4021
  toggle: se.value,
4022
4022
  "onUpdate:toggle": [
@@ -4041,7 +4041,7 @@ const fr = {
4041
4041
  _: 1
4042
4042
  }, 8, ["toggle", "disabled"])) : J("", !0),
4043
4043
  w.value.inventory && !d.value ? (D(), X("div", Pr)) : J("", !0),
4044
- w.value.inventory ? (D(), te(ze, {
4044
+ w.value.inventory ? (D(), te(Ye, {
4045
4045
  key: 9,
4046
4046
  toggle: k.value,
4047
4047
  "onUpdate:toggle": [
@@ -4066,7 +4066,7 @@ const fr = {
4066
4066
  _: 1
4067
4067
  }, 8, ["toggle", "disabled", "description", "title"])) : J("", !0),
4068
4068
  w.value.takeaway(n.value.category ?? ((ae = g.value) == null ? void 0 : ae.category)) && !d.value ? (D(), X("div", $r)) : J("", !0),
4069
- w.value.takeaway(n.value.category ?? ((ve = g.value) == null ? void 0 : ve.category)) ? (D(), te(ze, {
4069
+ w.value.takeaway(n.value.category ?? ((ve = g.value) == null ? void 0 : ve.category)) ? (D(), te(Ye, {
4070
4070
  key: 11,
4071
4071
  toggle: u.value,
4072
4072
  "onUpdate:toggle": [
@@ -4174,7 +4174,7 @@ const Ar = {
4174
4174
  ])) : J("", !0)
4175
4175
  ], 512));
4176
4176
  }
4177
- }), jr = /* @__PURE__ */ Ze(zr, [["__scopeId", "data-v-570141b0"]]);
4177
+ }), jr = /* @__PURE__ */ Je(zr, [["__scopeId", "data-v-570141b0"]]);
4178
4178
  var Ee = /* @__PURE__ */ ((s) => (s.SELECT_CATEGORY = "SELECT_CATEGORY", s.CREATE_CATEGORY = "CREATE_CATEGORY", s.UPDATE_CATEGORY = "UPDATE_CATEGORY", s.DELETE_CATEGORY = "DELETE_CATEGORY", s.SELECT_ITEM = "SELECT_ITEM", s.CREATE_ITEM = "CREATE_ITEM", s.UPDATE_ITEM = "UPDATE_ITEM", s.DELETE_ITEM = "DELETE_ITEM", s.SELECT_PRICE = "SELECT_PRICE", s.SELECT_VARIANT = "SELECT_VARIANT", s.SELECT_GROUP = "SELECT_GROUP", s.EDIT_GROUP = "EDIT_GROUP", s))(Ee || {});
4179
4179
  function qr(s, l, t) {
4180
4180
  const o = () => ({
@@ -4396,10 +4396,10 @@ function Wr() {
4396
4396
  if (!le)
4397
4397
  throw new Error(`Item ${p._id} has unknown group ${W._id}`);
4398
4398
  return (Q = le.items) == null ? void 0 : Q.map((E, Y) => {
4399
- var re, ue;
4399
+ var re, de;
4400
4400
  const Z = !!E.combinationKey, ne = (re = W.items) == null ? void 0 : re.find(
4401
4401
  (ae) => ae._id === E._id && ae.combinationKey === E.combinationKey
4402
- ), ce = (ue = W.items) == null ? void 0 : ue.find(
4402
+ ), ce = (de = W.items) == null ? void 0 : de.find(
4403
4403
  (ae) => ae._id === E._id && !ae.combinationKey
4404
4404
  );
4405
4405
  function fe() {
@@ -4447,7 +4447,7 @@ function Wr() {
4447
4447
  }
4448
4448
  const { price: Ae, overrided: K } = fe(), N = {
4449
4449
  label: Ce.Dinero.fromFdoDinero(Ae).toFormat(!0),
4450
- variant: K ? Je.PRIMARY : Je.PLAIN
4450
+ variant: K ? Qe.PRIMARY : Qe.PLAIN
4451
4451
  };
4452
4452
  return {
4453
4453
  id: `item-${p._id}-variant-${z == null ? void 0 : z.combinationKey}-group-${W._id}-${E._id}-${E.combinationKey}-${Y}`,
@@ -4640,9 +4640,9 @@ function Wr() {
4640
4640
  o.deleteItem(p);
4641
4641
  }
4642
4642
  });
4643
- const re = (fe = l.currentCatalog) == null ? void 0 : fe.override.items, ue = (ge = re == null ? void 0 : re[p._id]) == null ? void 0 : ge.find(
4643
+ const re = (fe = l.currentCatalog) == null ? void 0 : fe.override.items, de = (ge = re == null ? void 0 : re[p._id]) == null ? void 0 : ge.find(
4644
4644
  (H) => !H.combinationKey
4645
- ), ae = (ue == null ? void 0 : ue.orderFrom) === ie.F_ORDER_FROM.enum.NONE;
4645
+ ), ae = (de == null ? void 0 : de.orderFrom) === ie.F_ORDER_FROM.enum.NONE;
4646
4646
  !V && B && !O && (ae ? N.push({
4647
4647
  id: `apply-to-catalog-${p._id}`,
4648
4648
  icon: "add_link",
@@ -5075,7 +5075,7 @@ const Jr = { key: 0 }, Zr = ["innerHTML"], el = /* @__PURE__ */ me({
5075
5075
  innerHTML: t.value
5076
5076
  }, null, 8, Zr));
5077
5077
  }
5078
- }), kt = /* @__PURE__ */ Ze(el, [["__scopeId", "data-v-f6f1080b"]]), tl = {
5078
+ }), kt = /* @__PURE__ */ Je(el, [["__scopeId", "data-v-f6f1080b"]]), tl = {
5079
5079
  class: "flex-1 min-w-0 flex items-center gap-4 relative pl-12"
5080
5080
  }, nl = {
5081
5081
  class: "flex items-center gap-4 min-w-0"
@@ -5148,7 +5148,7 @@ const Jr = { key: 0 }, Zr = ["innerHTML"], el = /* @__PURE__ */ me({
5148
5148
  class: we(["tree-node", "max-w-full", "py-4 px-8 flex items-center justify-between gap-4", "fm-corner-radius-sm", "select-none", c.value, r.value, _.value, {
5149
5149
  "opacity-50": g.dragging
5150
5150
  }, "hover-effect"]),
5151
- onClick: n[2] || (n[2] = Xe(() => {
5151
+ onClick: n[2] || (n[2] = He(() => {
5152
5152
  var v, x;
5153
5153
  g.node.disabled || (x = (v = g.node).onClick) == null || x.call(v);
5154
5154
  }, ["stop"])),
@@ -5169,7 +5169,7 @@ const Jr = { key: 0 }, Zr = ["innerHTML"], el = /* @__PURE__ */ me({
5169
5169
  })) : J("", !0), f(St, {
5170
5170
  name: o.value,
5171
5171
  visible: t.expandable,
5172
- onClick: n[0] || (n[0] = Xe(() => {
5172
+ onClick: n[0] || (n[0] = He(() => {
5173
5173
  g.node.disabled || m("toggleExpand");
5174
5174
  }, ["stop"]))
5175
5175
  }, null, 8, ["name", "visible"]), g.node.icon ? (D(), te(T, {
@@ -5211,10 +5211,10 @@ const Jr = { key: 0 }, Zr = ["innerHTML"], el = /* @__PURE__ */ me({
5211
5211
  return (P = v.onClick) == null ? void 0 : P.call(v);
5212
5212
  }
5213
5213
  }, null, 8, ["name", "tooltip", "onClick"]))), 128))]), f(kt, {
5214
- class: we(["fm-typo-en-body-md-400", ((O = g.node.rightLabel) == null ? void 0 : O.variant) === e(Je).PRIMARY ? "text-fm-color-primary" : "text-fm-color-typo-secondary"]),
5214
+ class: we(["fm-typo-en-body-md-400", ((O = g.node.rightLabel) == null ? void 0 : O.variant) === e(Qe).PRIMARY ? "text-fm-color-primary" : "text-fm-color-typo-secondary"]),
5215
5215
  text: (d = g.node.rightLabel) == null ? void 0 : d.label,
5216
5216
  highlightedStrings: g.highlightedStrings,
5217
- onClick: n[1] || (n[1] = Xe((v) => {
5217
+ onClick: n[1] || (n[1] = He((v) => {
5218
5218
  var x, P;
5219
5219
  return (P = (x = g.node.rightLabel) == null ? void 0 : x.onClick) == null ? void 0 : P.call(x);
5220
5220
  }, ["stop"]))
@@ -5352,7 +5352,7 @@ const Jr = { key: 0 }, Zr = ["innerHTML"], el = /* @__PURE__ */ me({
5352
5352
  }), A("span", null, ye((y = m.value.find((a) => a.id === e(B))) == null ? void 0 : y.node.label), 1)])], 4)) : J("", !0), m.value.length === 0 ? (D(), X("div", fl, ye(e(o)("menu.tree_editor.labels.no_items")), 1)) : J("", !0)], 16);
5353
5353
  };
5354
5354
  }
5355
- }), vl = /* @__PURE__ */ Ze(gl, [["__scopeId", "data-v-9244f342"]]), bl = { class: "py-4 px-8 flex items-center gap-4 text-fm-color-primary cursor-pointer relative" }, _l = {
5355
+ }), vl = /* @__PURE__ */ Je(gl, [["__scopeId", "data-v-9244f342"]]), bl = { class: "py-4 px-8 flex items-center gap-4 text-fm-color-primary cursor-pointer relative" }, _l = {
5356
5356
  key: 1,
5357
5357
  class: "fm-typo-en-body-md-400"
5358
5358
  }, It = /* @__PURE__ */ me({
@@ -5620,7 +5620,7 @@ const Jr = { key: 0 }, Zr = ["innerHTML"], el = /* @__PURE__ */ me({
5620
5620
  },
5621
5621
  setup(s) {
5622
5622
  const { t: l } = _e(), t = s, o = be(), c = rt();
5623
- We(() => {
5623
+ qe(() => {
5624
5624
  o.$reinitialize(), o.setMenu(xe.cloneDeep(t.menu)), o.computeMergedMenu();
5625
5625
  }), Dt(() => {
5626
5626
  o.$dispose(), c.setExpandedNodeIds([]), c.setSelectedNodeId(null);
@@ -5777,7 +5777,7 @@ const Jr = { key: 0 }, Zr = ["innerHTML"], el = /* @__PURE__ */ me({
5777
5777
  ]);
5778
5778
  };
5779
5779
  }
5780
- }), Ll = /* @__PURE__ */ Ze(Nl, [["__scopeId", "data-v-16c09a72"]]), wi = /* @__PURE__ */ me({
5780
+ }), Ll = /* @__PURE__ */ Je(Nl, [["__scopeId", "data-v-16c09a72"]]), wi = /* @__PURE__ */ me({
5781
5781
  __name: "TreeEditorOpenner",
5782
5782
  setup(s) {
5783
5783
  const l = ft(), t = en();
@@ -5793,7 +5793,7 @@ const Jr = { key: 0 }, Zr = ["innerHTML"], el = /* @__PURE__ */ me({
5793
5793
  function r(_) {
5794
5794
  _.data.type === Wn && c();
5795
5795
  }
5796
- return We(() => {
5796
+ return qe(() => {
5797
5797
  window.addEventListener("message", r);
5798
5798
  }), Dt(() => {
5799
5799
  window.removeEventListener("message", r);