@feedmepos/mf-menu 0.32.46-dev.3 → 0.32.47-dev.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 (64) hide show
  1. package/dist/{App-npeQTqd2.js → App-Gj_bhB6d.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang--prlJD_G.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BNlFPqOm.js} +3 -3
  3. package/dist/{Catalog-jPzJ-CrL.js → Catalog-ComcdmDQ.js} +6 -6
  4. package/dist/{Category-BWZpgiNC.js → Category-Ble5T3ke.js} +5 -5
  5. package/dist/{Category-B7pQ08QL.js → Category-CQ080uod.js} +4 -4
  6. package/dist/{CookingGuide-BFEE1EJc.js → CookingGuide-BGqiWzgS.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D69zZiPR.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BdwSAxQw.js} +1 -1
  8. package/dist/{Group-M4tXSj5P.js → Group-CDSJXiZw.js} +3 -3
  9. package/dist/{Group-DvZUfjSC.js → Group-DPOk2I5j.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DeVE8KLf.js → Group.vue_vue_type_script_setup_true_lang-Tuv9Oxaz.js} +8 -8
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-pbZw9da3.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BfwpzJRk.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Byzowjkm.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-ChohQKAf.js} +7 -7
  13. package/dist/{Ingredient-BdHJVta5.js → Ingredient-BZAC55vY.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BSwR_wpJ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DkAWi2eS.js} +2 -2
  15. package/dist/{LinkProductSideSheet-B03Oabpv.js → LinkProductSideSheet-bY-NidD9.js} +3 -3
  16. package/dist/{MenuSetting-DTWJOTMd.js → MenuSetting-ckFK_Dgv.js} +5 -5
  17. package/dist/{PrintRoute-CPux5kB3.js → PrintRoute-8n0k4GeD.js} +4 -4
  18. package/dist/{Product-laMGJ8d-.js → Product-DsNTWYkR.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-41pkSI-X.js → Product.vue_vue_type_script_setup_true_lang-CYEw5K-q.js} +13 -13
  20. package/dist/{ProductInternalTools-zNNMVjtn.js → ProductInternalTools-9z1yyUbb.js} +5 -5
  21. package/dist/{Products-BwKBLOcx.js → Products-nW4GRXLQ.js} +29 -29
  22. package/dist/{Publish-DVWIjGI_.js → Publish-DpognHPy.js} +3 -3
  23. package/dist/{Recipe-DfDGxruI.js → Recipe-BrVXVLij.js} +4 -4
  24. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-Dqec903W.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-C8gEEY-P.js} +1 -1
  25. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-COsEN8g1.js → RuleView.vue_vue_type_script_setup_true_lang-DpHgiGen.js} +400 -400
  26. package/dist/{Scheduler-Cai-wMn7.js → Scheduler-BjULD3Np.js} +3 -3
  27. package/dist/{ServingSequence-Do-C3Sn4.js → ServingSequence-Ha8MR9CS.js} +3 -3
  28. package/dist/{Setting-DSjLtPBJ.js → Setting-BSO2NwHs.js} +5 -5
  29. package/dist/{Subcategory-DSeuxOGy.js → Subcategory-2geYIvGu.js} +7 -7
  30. package/dist/{Takeaway-DwSbGolk.js → Takeaway-C033dMdQ.js} +4 -4
  31. package/dist/{Takeaway-C1srIF8q.js → Takeaway-CGwSPu37.js} +1 -1
  32. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bx8gpmLd.js → Takeaway.vue_vue_type_script_setup_true_lang-COKwiU9J.js} +6 -6
  33. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DDjpVFJj.js → Thumbnail.vue_vue_type_script_setup_true_lang-CctqtoZe.js} +4 -4
  34. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-Cd4RGHXf.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-DETRrh9Q.js} +1 -1
  35. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-Bwo49sg8.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-9S5UCC0T.js} +2 -2
  36. package/dist/{TranslationViewChip.vue_vue_type_script_setup_true_lang-COt8eJR8.js → TranslationViewChip.vue_vue_type_script_setup_true_lang-tOueqwZI.js} +1 -1
  37. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BG9vXVnJ.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DLwvihXy.js} +13 -13
  38. package/dist/{Unit-CLIdovqU.js → Unit-DL1JPgnt.js} +2 -2
  39. package/dist/{Variant-CbX_HaWr.js → Variant-DCHnTZFS.js} +5 -5
  40. package/dist/{_id_-CF6hSxMn.js → _id_-AyYjM1Vz.js} +9 -9
  41. package/dist/{app-DXWLC6wZ.js → app-ClutWX1n.js} +1 -1
  42. package/dist/{app-jYjowude.js → app-ET64VP8i.js} +31 -31
  43. package/dist/app.js +1 -1
  44. package/dist/assets/{linked-status-Dz4kVy3U.js → linked-status-B42pSkKP.js} +2 -2
  45. package/dist/assets/{menu-export-Bjrlg38p.js → menu-export-C1jaJvyu.js} +2 -2
  46. package/dist/assets/{override-menu-h6635NTp.js → override-menu-n7umobVw.js} +2 -2
  47. package/dist/assets/{validate-menu-ILBC_n35.js → validate-menu-C4tYqjCM.js} +2 -2
  48. package/dist/{catalog-ByziW0k0.js → catalog-qif5YTFK.js} +1 -1
  49. package/dist/{catalogSetting-DFtnnh_u.js → catalogSetting-CME2Ahiu.js} +1 -1
  50. package/dist/{currency-Dow_7SjH.js → currency-B-EUTfLT.js} +1 -1
  51. package/dist/{dayjs.min-J4d4ye_W.js → dayjs.min-Bt8zcmuq.js} +2 -2
  52. package/dist/{index-Bx_mNoGq.js → index-DzC0YoRu.js} +6 -6
  53. package/dist/{index-Cud1HVR_.js → index-yU1DLyjO.js} +4 -4
  54. package/dist/{index.vue_vue_type_script_setup_true_lang-BBIM8-iI.js → index.vue_vue_type_script_setup_true_lang-tTGXFuVn.js} +5 -5
  55. package/dist/{item-CFhsU4ZX.js → item-67yorFzE.js} +473 -472
  56. package/dist/{jszip.min-C6M7_p-M.js → jszip.min-CNVIvIUs.js} +3 -3
  57. package/dist/{menu-ByysjB4i.js → menu-DIhNR4lz.js} +1 -1
  58. package/dist/{menuV2-Clp-zydr.js → menuV2-DnVJsK9O.js} +46 -46
  59. package/dist/{priceTier-DMPEyXYB.js → priceTier-CgvLfWVP.js} +1 -1
  60. package/dist/{rules-D7jis1av.js → rules-CN4__GJA.js} +4 -4
  61. package/dist/{scheduler-Cdam4laD.js → scheduler-Bg5LMcow.js} +4 -4
  62. package/dist/{toExcel-B2mXomTF.js → toExcel-B8WAik-i.js} +2 -2
  63. package/dist/{unit-BWhsHi2q.js → unit-B7xB9nok.js} +2 -2
  64. package/package.json +1 -1
@@ -1,35 +1,35 @@
1
1
  import { defineStore as jn } from "pinia";
2
- import { defineComponent as be, resolveComponent as P, createElementBlock as H, createBlock as q, openBlock as O, createElementVNode as T, createVNode as f, toDisplayString as le, Fragment as ge, renderList as Te, h as Se, ref as j, computed as R, watch as Ee, unref as m, renderSlot as Ce, withCtx as I, createCommentVNode as oe, Transition as Vo, normalizeClass as Ue, resolveDynamicComponent as It, withDirectives as ct, vShow as Gt, mergeProps as Kn, withModifiers as xt, onMounted as ht, onUnmounted as zo, createTextVNode as Dt, getCurrentInstance as gn, render as Pt, resolveDirective as Wn, markRaw as Io, mergeModels as Do, useModel as Po, nextTick as Yn, normalizeProps as Uo, guardReactiveProps as $o, normalizeStyle as No } from "vue";
3
- import { J as xe, y as X, ai as Lo, ak as Bo, Y as Hn, G as ve, A as Ge, z as Pe, U as Go, u as Re, H as Fe, B as tt, O as nt, $ as jo, al as Ko, K as Ut, M as on, N as Rn, P as Wo, Q as Yo, R as Ho, T as Xt, ad as qo, V as Xo } from "./index.vue_vue_type_script_setup_true_lang-BBIM8-iI.js";
2
+ import { defineComponent as be, resolveComponent as P, createElementBlock as q, createBlock as Y, openBlock as O, createElementVNode as T, createVNode as f, toDisplayString as le, Fragment as ge, renderList as Te, h as Se, ref as j, computed as R, watch as Ee, unref as m, renderSlot as Ce, withCtx as I, createCommentVNode as oe, Transition as Vo, normalizeClass as Ue, resolveDynamicComponent as It, withDirectives as ct, vShow as Gt, mergeProps as Kn, withModifiers as xt, onMounted as ht, onUnmounted as zo, createTextVNode as Dt, getCurrentInstance as gn, render as Pt, resolveDirective as Wn, markRaw as Io, mergeModels as Do, useModel as Po, nextTick as Yn, normalizeProps as Uo, guardReactiveProps as $o, normalizeStyle as No } from "vue";
3
+ import { J as xe, y as X, ai as Lo, ak as Bo, Y as Hn, G as ve, A as Ge, z as Pe, U as Go, u as Re, H as Fe, B as tt, O as nt, $ as jo, al as Ko, K as Ut, M as on, N as Rn, P as Wo, Q as Yo, R as Ho, T as Xt, ad as qo, V as Xo } from "./index.vue_vue_type_script_setup_true_lang-tTGXFuVn.js";
4
4
  import { useI18n as ye, useCoreStore as Ot, CustomAttributesForm as qn } from "@feedmepos/mf-common";
5
5
  import { useDialog as Xe, useSnackbar as je, components as ze, useDialogChild as bn, FmButtonColorThemeVariant as We, FmButtonVariant as et, useBreakpoints as Xn } from "@feedmepos/ui-library";
6
- import { C as Qe } from "./catalog-ByziW0k0.js";
6
+ import { C as Qe } from "./catalog-qif5YTFK.js";
7
7
  import { c as Zn } from "./createComponentProgrammatically-Bt2rn1IQ.js";
8
8
  import { a as An, _ as an } from "./tooltip-B5BiPMx9.js";
9
- import { H as Zo, L as Qo } from "./LinkProductSideSheet-B03Oabpv.js";
10
- import { e as Jo, _ as Ne, a as ei } from "./RuleView.vue_vue_type_script_setup_true_lang-COsEN8g1.js";
9
+ import { H as Zo, L as Qo } from "./LinkProductSideSheet-bY-NidD9.js";
10
+ import { e as Jo, _ as Ne, a as ei } from "./RuleView.vue_vue_type_script_setup_true_lang-DpHgiGen.js";
11
11
  import { s as rn, F as ti, _ as ni } from "./index-CisutoS9.js";
12
- import { e as oi } from "./app-jYjowude.js";
12
+ import { e as oi } from "./app-ET64VP8i.js";
13
13
  import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- import { g as Qn, b as ii, c as ai, a as ri, m as si } from "./menuV2-Clp-zydr.js";
14
+ import { g as Qn, b as ii, c as ai, a as ri, m as si } from "./menuV2-DnVJsK9O.js";
15
15
  import { useAppStore as yn, RemyButton as Jn } from "@feedmepos/mf-remy-panel";
16
16
  import { _ as ot } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
17
- import { u as li, r as ui } from "./rules-D7jis1av.js";
17
+ import { u as li, r as ui } from "./rules-CN4__GJA.js";
18
18
  import { u as yt } from "./discardConfirm-BHni0LNu.js";
19
- import { _ as eo, a as $t, b as Nt, c as Lt, d as sn, g as at } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-Cd4RGHXf.js";
19
+ import { _ as eo, a as $t, b as Nt, c as Lt, d as sn, g as at } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-DETRrh9Q.js";
20
20
  import { c as ln } from "./object-DVUNCr7w.js";
21
- import { _ as _n } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-Bwo49sg8.js";
22
- import { u as ci } from "./menu-ByysjB4i.js";
21
+ import { _ as _n } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-9S5UCC0T.js";
22
+ import { u as ci } from "./menu-DIhNR4lz.js";
23
23
  import { c as _t } from "./check-C9mY6LiX.js";
24
- import { _ as ut, l as un, T as di } from "./index-Bx_mNoGq.js";
24
+ import { _ as ut, l as un, T as di } from "./index-DzC0YoRu.js";
25
25
  import { useInventoryStore as to, InventoryBindingForm as mi, InventoryBindingSummary as pi } from "@feedmepos/mf-inventory-portal";
26
- import { f as ft } from "./currency-Dow_7SjH.js";
27
- import { u as no } from "./priceTier-DMPEyXYB.js";
26
+ import { f as ft } from "./currency-B-EUTfLT.js";
27
+ import { u as no } from "./priceTier-CgvLfWVP.js";
28
28
  import { u as hi } from "./search-BAPEUu1R.js";
29
29
  import { c as fi } from "./string-DpfFixWH.js";
30
30
  import { d as oo } from "./vuedraggable-CK8z7qA8.js";
31
- import { _ as vi } from "./ApplyProduct.vue_vue_type_script_setup_true_lang--prlJD_G.js";
32
- import { V as Mn } from "./index-Cud1HVR_.js";
31
+ import { _ as vi } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BNlFPqOm.js";
32
+ import { V as Mn } from "./index-yU1DLyjO.js";
33
33
  class Vt {
34
34
  constructor(n, t, o, a) {
35
35
  this.scheduler = n, this.menuStore = t, this.updateMenu = o, this.dialog = a;
@@ -387,26 +387,26 @@ class ao {
387
387
  const a = this.menuStore.state.menu.modules.item, i = this.menuStore.state.menu.modules.group, r = this.menuStore.items, l = this.menuStore.rules.group.linkAddonName;
388
388
  function s(u, d) {
389
389
  const c = u.items.reduce((h, v) => {
390
- var E, A, b, _;
390
+ var E, A, y, _;
391
391
  const F = a.find((x) => v._id === x._id);
392
392
  if (!F && t) return h;
393
- const y = v.combinationKey ? {
393
+ const b = v.combinationKey ? {
394
394
  ...(E = F == null ? void 0 : F.variant) == null ? void 0 : E.variantCombinations.find(
395
395
  (x) => x.combinationKey === v.combinationKey
396
396
  ),
397
397
  name: Go(Re().variants, ((A = F == null ? void 0 : F.variant) == null ? void 0 : A.variantGroupIds) || [])[v.combinationKey]
398
- } : F, k = (b = i.find((x) => x._id === u._id)) == null ? void 0 : b.items.find((x) => x._id === v._id && x.combinationKey === v.combinationKey), g = !t && !v.combinationKey, C = (_ = d.find(
398
+ } : F, k = (y = i.find((x) => x._id === u._id)) == null ? void 0 : y.items.find((x) => x._id === v._id && x.combinationKey === v.combinationKey), g = !t && !v.combinationKey, C = (_ = d.find(
399
399
  (x) => x._id == v._id && x.combinationKey == v.combinationKey
400
- )) == null ? void 0 : _.price, N = l ? null : y == null ? void 0 : y.name, $ = v.name || (k == null ? void 0 : k.name) || N || null, M = (y == null ? void 0 : y.name) || null, w = v.name_locale ?? (k == null ? void 0 : k.name_locale) ?? (y == null ? void 0 : y.name_locale) ?? null, V = {
400
+ )) == null ? void 0 : _.price, N = l ? null : b == null ? void 0 : b.name, $ = v.name || (k == null ? void 0 : k.name) || N || null, M = (b == null ? void 0 : b.name) || null, w = v.name_locale ?? (k == null ? void 0 : k.name_locale) ?? (b == null ? void 0 : b.name_locale) ?? null, V = {
401
401
  ...v,
402
402
  name: $,
403
403
  name_locale: w,
404
- code: y == null ? void 0 : y.code,
404
+ code: b == null ? void 0 : b.code,
405
405
  fallbackName: g ? M : $,
406
406
  price: v.price,
407
407
  fallbackPrice: g ? null : C,
408
408
  orderFrom: v.orderFrom,
409
- fallbackOrder: y == null ? void 0 : y.orderFrom,
409
+ fallbackOrder: b == null ? void 0 : b.orderFrom,
410
410
  priceTiers: v.priceTiers
411
411
  };
412
412
  return [...h, V];
@@ -553,15 +553,15 @@ const _i = {
553
553
  }
554
554
  return (a, i) => {
555
555
  const r = P("FmButton");
556
- return n.variant === "full" ? (O(), H("div", _i, [
556
+ return n.variant === "full" ? (O(), q("div", _i, [
557
557
  T("div", wi, le(a.title), 1),
558
558
  f(Zo),
559
- (O(!0), H(ge, null, Te(a.items, (l) => (O(), q(An, {
559
+ (O(!0), q(ge, null, Te(a.items, (l) => (O(), Y(An, {
560
560
  key: l.name,
561
561
  name: l.name,
562
562
  value: l.value || "--"
563
563
  }, null, 8, ["name", "value"]))), 128))
564
- ])) : (O(), q(r, {
564
+ ])) : (O(), Y(r, {
565
565
  key: 1,
566
566
  icon: "info",
567
567
  variant: "tertiary",
@@ -595,7 +595,7 @@ const _i = {
595
595
  const h = u().map((v) => {
596
596
  var F;
597
597
  return {
598
- label: ((F = i.state.menu.modules.scheduler.find((y) => y._id === v)) == null ? void 0 : F.name) || "Unknown",
598
+ label: ((F = i.state.menu.modules.scheduler.find((b) => b._id === v)) == null ? void 0 : F.name) || "Unknown",
599
599
  value: v
600
600
  };
601
601
  });
@@ -620,7 +620,7 @@ const _i = {
620
620
  }
621
621
  ), (p, h) => {
622
622
  const v = P("FmSelect");
623
- return O(), H("div", ki, [
623
+ return O(), q("div", ki, [
624
624
  T("div", Ci, [
625
625
  T("div", Si, le(m(a)("menu.catalog_scheduler.title")), 1),
626
626
  T("div", xi, le(m(a)("menu.catalog_scheduler.subtitle")), 1)
@@ -662,7 +662,7 @@ const _i = {
662
662
  const t = n;
663
663
  return (o, a) => {
664
664
  const i = P("fm-switch"), r = P("fm-card");
665
- return o.disabled ? Ce(o.$slots, "default", { key: 0 }, void 0, !0) : (O(), q(r, {
665
+ return o.disabled ? Ce(o.$slots, "default", { key: 0 }, void 0, !0) : (O(), Y(r, {
666
666
  key: 1,
667
667
  class: "p-16 space-y-24",
668
668
  variant: "outlined"
@@ -671,7 +671,7 @@ const _i = {
671
671
  T("div", Mi, [
672
672
  T("div", Ei, [
673
673
  T("p", Ti, le(o.title), 1),
674
- o.description ? (O(), H("p", Vi, le(o.description), 1)) : oe("", !0)
674
+ o.description ? (O(), q("p", Vi, le(o.description), 1)) : oe("", !0)
675
675
  ]),
676
676
  f(i, {
677
677
  "model-value": o.toggle,
@@ -680,7 +680,7 @@ const _i = {
680
680
  ]),
681
681
  f(Vo, { name: "expand" }, {
682
682
  default: I(() => [
683
- o.toggle ? (O(), H("div", zi, [
683
+ o.toggle ? (O(), q("div", zi, [
684
684
  Ce(o.$slots, "default", {}, void 0, !0)
685
685
  ])) : oe("", !0)
686
686
  ]),
@@ -717,10 +717,10 @@ async function Pi(e) {
717
717
  batchEnd: h,
718
718
  message: v
719
719
  });
720
- const F = c.map(t), y = await Promise.all(F);
721
- u.push(...y), l && l({
720
+ const F = c.map(t), b = await Promise.all(F);
721
+ u.push(...b), l && l({
722
722
  batchIndex: Math.floor(d / o),
723
- results: y
723
+ results: b
724
724
  }), d + o < n.length && await new Promise((k) => setTimeout(k, a));
725
725
  }
726
726
  return u;
@@ -757,7 +757,7 @@ async function yu(e, n, t = {}) {
757
757
  }
758
758
  const $i = {}, Ni = { class: "pl-32" };
759
759
  function Li(e, n) {
760
- return O(), H("div", Ni, [
760
+ return O(), q("div", Ni, [
761
761
  Ce(e.$slots, "default")
762
762
  ]);
763
763
  }
@@ -781,10 +781,10 @@ const Bi = /* @__PURE__ */ mt($i, [["render", Li]]), Gi = { class: "flex flex-co
781
781
  emits: ["update:modelValue"],
782
782
  setup(e, { expose: n, emit: t }) {
783
783
  const o = e, a = t, i = j(null), r = j([]), l = (v, F) => {
784
- var y;
784
+ var b;
785
785
  if (v)
786
786
  if (!o.multiple)
787
- r.value = [F], (y = i.value) == null || y.toggleMenu(!1);
787
+ r.value = [F], (b = i.value) == null || b.toggleMenu(!1);
788
788
  else if (F.value === "" || F.value === null)
789
789
  r.value = [F];
790
790
  else {
@@ -800,7 +800,7 @@ const Bi = /* @__PURE__ */ mt($i, [["render", Li]]), Gi = { class: "flex flex-co
800
800
  r.value.map((k) => k.value)
801
801
  );
802
802
  }, s = (v) => {
803
- r.value.length <= 1 || (r.value = r.value.filter((F, y) => y !== v), a(
803
+ r.value.length <= 1 || (r.value = r.value.filter((F, b) => b !== v), a(
804
804
  "update:modelValue",
805
805
  r.value.map((F) => F.value)
806
806
  ));
@@ -822,8 +822,8 @@ const Bi = /* @__PURE__ */ mt($i, [["render", Li]]), Gi = { class: "flex flex-co
822
822
  return n({
823
823
  hideMenu: u
824
824
  }), (v, F) => {
825
- const y = P("FmIcon"), k = P("FmField"), g = P("FmMenuItem"), C = P("FmMenu"), N = P("FmFormGroup"), $ = P("FmChipGroup");
826
- return O(), H("div", Gi, [
825
+ const b = P("FmIcon"), k = P("FmField"), g = P("FmMenuItem"), C = P("FmMenu"), N = P("FmFormGroup"), $ = P("FmChipGroup");
826
+ return O(), q("div", Gi, [
827
827
  f(N, {
828
828
  "model-value": v.modelValue,
829
829
  disabled: v.disabled,
@@ -847,7 +847,7 @@ const Bi = /* @__PURE__ */ mt($i, [["render", Li]]), Gi = { class: "flex flex-co
847
847
  invalid: M
848
848
  }, {
849
849
  append: I(() => [
850
- f(y, {
850
+ f(b, {
851
851
  color: v.disabled ? "#C7C7CC" : "black",
852
852
  name: c.value ? "expand_less" : "expand_more",
853
853
  size: "md"
@@ -865,7 +865,7 @@ const Bi = /* @__PURE__ */ mt($i, [["render", Li]]), Gi = { class: "flex flex-co
865
865
  ]),
866
866
  default: I(() => [
867
867
  T("div", ji, [
868
- (O(!0), H(ge, null, Te(v.items, (w) => (O(), q(g, {
868
+ (O(!0), q(ge, null, Te(v.items, (w) => (O(), Y(g, {
869
869
  key: w.value,
870
870
  disabled: w.disabled,
871
871
  "has-checkbox": !0,
@@ -881,7 +881,7 @@ const Bi = /* @__PURE__ */ mt($i, [["render", Li]]), Gi = { class: "flex flex-co
881
881
  ]),
882
882
  _: 3
883
883
  }, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
884
- v.shouldShowChips && r.value.length > 0 ? (O(), H("div", Ki, [
884
+ v.shouldShowChips && r.value.length > 0 ? (O(), q("div", Ki, [
885
885
  f($, {
886
886
  disabled: v.disabled,
887
887
  items: r.value.map((M) => ({ label: M.label })),
@@ -1139,7 +1139,7 @@ var Ct = function(e, n) {
1139
1139
  this.touches.length && this.$emit("drag-end"), this.hovered && (this.$emit("leave"), this.hovered = !1), this.touches = [];
1140
1140
  } }, emits: ["drag", "drag-end", "leave", "enter"] };
1141
1141
  kn.render = function(e, n, t, o, a, i) {
1142
- return O(), q("div", { ref: "draggable", class: t.classname, onTouchstart: n[1] || (n[1] = function() {
1142
+ return O(), Y("div", { ref: "draggable", class: t.classname, onTouchstart: n[1] || (n[1] = function() {
1143
1143
  return i.onTouchStart && i.onTouchStart.apply(i, arguments);
1144
1144
  }), onMousedown: n[2] || (n[2] = function() {
1145
1145
  return i.onMouseDown && i.onMouseDown.apply(i, arguments);
@@ -1159,7 +1159,7 @@ var Qt = Ke("vue-handler-wrapper"), po = { name: "HandlerWrapper", components: {
1159
1159
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
1160
1160
  po.render = function(e, n, t, o, a, i) {
1161
1161
  var r = P("DraggableElement");
1162
- return O(), q("div", { class: i.classes.root }, [f(r, { class: i.classes.draggable, onDrag: n[1] || (n[1] = function(l) {
1162
+ return O(), Y("div", { class: i.classes.root }, [f(r, { class: i.classes.draggable, onDrag: n[1] || (n[1] = function(l) {
1163
1163
  return e.$emit("drag", l);
1164
1164
  }), onDragEnd: n[2] || (n[2] = function(l) {
1165
1165
  return e.$emit("drag-end");
@@ -1177,7 +1177,7 @@ var Qi = Ke("vue-line-wrapper"), ho = { name: "LineWrapper", components: { Dragg
1177
1177
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
1178
1178
  ho.render = function(e, n, t, o, a, i) {
1179
1179
  var r = P("DraggableElement");
1180
- return O(), q(r, { class: i.classname, onDrag: n[1] || (n[1] = function(l) {
1180
+ return O(), Y(r, { class: i.classname, onDrag: n[1] || (n[1] = function(l) {
1181
1181
  return e.$emit("drag", l);
1182
1182
  }), onDragEnd: n[2] || (n[2] = function(l) {
1183
1183
  return e.$emit("drag-end");
@@ -1381,8 +1381,8 @@ function ma(e) {
1381
1381
  d = $e(d, { left: u.left || 0, top: u.top || 0 });
1382
1382
  var F = { stencil: { minimum: Math.max(a.minWidth ? a.minWidth / c.width : 0, a.minHeight ? a.minHeight / c.height : 0), maximum: Math.min(a.maxWidth ? a.maxWidth / c.width : 1 / 0, a.maxHeight ? a.maxHeight / c.height : 1 / 0, gt(c, r)) }, area: { maximum: gt(d, i({ visibleArea: d, type: "resize" })) } };
1383
1383
  s.factor && v && (s.factor < 1 ? (h = Math.max(s.factor, F.stencil.minimum)) > 1 && (h = 1) : s.factor > 1 && (h = Math.min(s.factor, Math.min(F.area.maximum, F.stencil.maximum))) < 1 && (h = 1)), h && (d = Be(d, h, s.center));
1384
- var y = t.left - o.left, k = o.width + o.left - (t.width + t.left), g = t.top - o.top, C = o.height + o.top - (t.height + t.top);
1385
- return d = De(d = $e(d, bt(d, { left: r.left !== void 0 ? r.left - y * h : void 0, top: r.top !== void 0 ? r.top - g * h : void 0, bottom: r.bottom !== void 0 ? r.bottom + C * h : void 0, right: r.right !== void 0 ? r.right + k * h : void 0 })), i({ visibleArea: d, type: "move" })), c.width = c.width * h, c.height = c.height * h, c.left = d.left + y * h, c.top = d.top + g * h, c = De(c, Yt(qe(d), r)), s.factor && v && l && (s.factor > 1 ? p = Math.min(F.area.maximum, s.factor) / h : s.factor < 1 && (p = Math.max(c.height / d.height, c.width / d.width, s.factor / h)), p !== 1 && (d = $e(d = De(d = Be(d, p, s.factor > 1 ? s.center : Ie(c)), i({ visibleArea: d, type: "move" })), Kt(bt(c, qe(d)))))), { coordinates: c, visibleArea: d };
1384
+ var b = t.left - o.left, k = o.width + o.left - (t.width + t.left), g = t.top - o.top, C = o.height + o.top - (t.height + t.top);
1385
+ return d = De(d = $e(d, bt(d, { left: r.left !== void 0 ? r.left - b * h : void 0, top: r.top !== void 0 ? r.top - g * h : void 0, bottom: r.bottom !== void 0 ? r.bottom + C * h : void 0, right: r.right !== void 0 ? r.right + k * h : void 0 })), i({ visibleArea: d, type: "move" })), c.width = c.width * h, c.height = c.height * h, c.left = d.left + b * h, c.top = d.top + g * h, c = De(c, Yt(qe(d), r)), s.factor && v && l && (s.factor > 1 ? p = Math.min(F.area.maximum, s.factor) / h : s.factor < 1 && (p = Math.max(c.height / d.height, c.width / d.width, s.factor / h)), p !== 1 && (d = $e(d = De(d = Be(d, p, s.factor > 1 ? s.center : Ie(c)), i({ visibleArea: d, type: "move" })), Kt(bt(c, qe(d)))))), { coordinates: c, visibleArea: d };
1386
1386
  }
1387
1387
  function pa(e) {
1388
1388
  var n = e.aspectRatio, t = e.getAreaRestrictions, o = e.coordinates, a = e.visibleArea, i = e.sizeRestrictions, r = e.positionRestrictions, l = e.imageSize, s = e.previousImageSize, u = e.angle, d = ae({}, o), c = ae({}, a), p = it(Ie(ae({ left: 0, top: 0 }, s)), u);
@@ -1403,8 +1403,8 @@ function Nn(e) {
1403
1403
  l && (c.left && c.left > 0 && c.right === 0 ? (s.right += c.left, s.left -= c.left) : c.right && c.right > 0 && c.left === 0 && (s.left += c.right, s.right -= c.right), c.top && c.top > 0 && c.bottom === 0 ? (s.bottom += c.top, s.top -= c.top) : c.bottom && c.bottom > 0 && c.top === 0 && (s.top += c.bottom, s.bottom -= c.bottom), c = St(Ye(t, s), a));
1404
1404
  var p = { width: 1 / 0, height: 1 / 0, left: 1 / 0, right: 1 / 0, top: 1 / 0, bottom: 1 / 0 };
1405
1405
  if (He.forEach(function(F) {
1406
- var y = c[F];
1407
- y && s[F] && (p[F] = Math.max(0, 1 - y / s[F]));
1406
+ var b = c[F];
1407
+ b && s[F] && (p[F] = Math.max(0, 1 - b / s[F]));
1408
1408
  }), r) {
1409
1409
  var h = Math.min.apply(null, He.map(function(F) {
1410
1410
  return p[F];
@@ -1446,7 +1446,7 @@ var fa = Ke("vue-simple-handler"), va = Ke("vue-simple-handler-wrapper"), Cn = {
1446
1446
  } }, emits: ["drag", "drag-end"] };
1447
1447
  Cn.render = function(e, n, t, o, a, i) {
1448
1448
  var r = P("HandlerWrapper");
1449
- return O(), q(r, { class: i.classes.wrapper, "vertical-position": t.verticalPosition, "horizontal-position": t.horizontalPosition, disabled: t.disabled, onDrag: i.onDrag, onDragEnd: i.onDragEnd, onEnter: i.onEnter, onLeave: i.onLeave }, { default: I(function() {
1449
+ return O(), Y(r, { class: i.classes.wrapper, "vertical-position": t.verticalPosition, "horizontal-position": t.horizontalPosition, disabled: t.disabled, onDrag: i.onDrag, onDragEnd: i.onDragEnd, onEnter: i.onEnter, onLeave: i.onLeave }, { default: I(function() {
1450
1450
  return [f("div", { class: i.classes.default }, null, 2)];
1451
1451
  }), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
1452
1452
  };
@@ -1465,7 +1465,7 @@ var ga = Ke("vue-simple-line"), ba = Ke("vue-simple-line-wrapper"), Sn = { name:
1465
1465
  } }, emits: ["drag", "drag-end"] };
1466
1466
  Sn.render = function(e, n, t, o, a, i) {
1467
1467
  var r = P("LineWrapper");
1468
- return O(), q(r, { class: i.classes.wrapper, position: t.position, disabled: t.disabled, onDrag: i.onDrag, onDragEnd: i.onDragEnd, onEnter: i.onEnter, onLeave: i.onLeave }, { default: I(function() {
1468
+ return O(), Y(r, { class: i.classes.wrapper, position: t.position, disabled: t.disabled, onDrag: i.onDrag, onDragEnd: i.onDragEnd, onEnter: i.onEnter, onLeave: i.onLeave }, { default: I(function() {
1469
1469
  return [f("div", { class: i.classes.root }, null, 2)];
1470
1470
  }), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
1471
1471
  };
@@ -1531,14 +1531,14 @@ var en = Ke("vue-bounding-box"), ya = ["east", "west", null], _a = ["south", "no
1531
1531
  n === "west" ? l.left -= i : n === "east" && (l.right += i), t === "north" ? l.top -= r : t === "south" && (l.bottom += r), !t && n ? o = "width" : t && !n && (o = "height"), this.resizable && this.$emit("resize", new Xi(l, { allowedDirections: { left: n === "west" || !n, right: n === "east" || !n, bottom: t === "south" || !t, top: t === "north" || !t }, preserveAspectRatio: e.nativeEvent && e.nativeEvent.shiftKey, respectDirection: o }));
1532
1532
  } }, emits: ["resize", "resize-end"] };
1533
1533
  bo.render = function(e, n, t, o, a, i) {
1534
- return O(), q("div", { ref: "box", class: i.classes.root, style: i.style }, [Ce(e.$slots, "default"), f("div", null, [(O(!0), q(ge, null, Te(i.lineNodes, function(r) {
1535
- return O(), q(It(r.component), { key: r.name, "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, position: r.name, disabled: r.disabled, onDrag: function(l) {
1534
+ return O(), Y("div", { ref: "box", class: i.classes.root, style: i.style }, [Ce(e.$slots, "default"), f("div", null, [(O(!0), Y(ge, null, Te(i.lineNodes, function(r) {
1535
+ return O(), Y(It(r.component), { key: r.name, "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, position: r.name, disabled: r.disabled, onDrag: function(l) {
1536
1536
  return i.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
1537
1537
  }, onDragEnd: n[1] || (n[1] = function(l) {
1538
1538
  return i.onEnd();
1539
1539
  }) }, null, 8, ["default-class", "hover-class", "wrapper-class", "position", "disabled", "onDrag"]);
1540
- }), 128))]), (O(!0), q(ge, null, Te(i.handlerNodes, function(r) {
1541
- return O(), q("div", { key: r.name, style: r.wrapperStyle, class: r.wrapperClass }, [(O(), q(It(r.component), { "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, "horizontal-position": r.horizontalDirection, "vertical-position": r.verticalDirection, disabled: r.disabled, onDrag: function(l) {
1540
+ }), 128))]), (O(!0), Y(ge, null, Te(i.handlerNodes, function(r) {
1541
+ return O(), Y("div", { key: r.name, style: r.wrapperStyle, class: r.wrapperClass }, [(O(), Y(It(r.component), { "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, "horizontal-position": r.horizontalDirection, "vertical-position": r.verticalDirection, disabled: r.disabled, onDrag: function(l) {
1542
1542
  return i.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
1543
1543
  }, onDragEnd: n[2] || (n[2] = function(l) {
1544
1544
  return i.onEnd();
@@ -1584,7 +1584,7 @@ var wa = Ke("vue-draggable-area"), yo = { name: "DraggableArea", props: { movabl
1584
1584
  this.touches.length && this.$emit("move-end"), this.touches = [];
1585
1585
  } }, emits: ["move", "move-end"] };
1586
1586
  yo.render = function(e, n, t, o, a, i) {
1587
- return O(), q("div", { ref: "container", onTouchstart: n[1] || (n[1] = function() {
1587
+ return O(), Y("div", { ref: "container", onTouchstart: n[1] || (n[1] = function() {
1588
1588
  return i.onTouchStart && i.onTouchStart.apply(i, arguments);
1589
1589
  }), onMousedown: n[2] || (n[2] = function() {
1590
1590
  return i.onMouseDown && i.onMouseDown.apply(i, arguments);
@@ -1641,8 +1641,8 @@ function Ca(e) {
1641
1641
  s++;
1642
1642
  }
1643
1643
  if (i && (o = i + 10, function(h, v, F) {
1644
- var y, k = "";
1645
- for (y = v, F += v; y < F; y++) k += String.fromCharCode(h.getUint8(y));
1644
+ var b, k = "";
1645
+ for (b = v, F += v; b < F; b++) k += String.fromCharCode(h.getUint8(b));
1646
1646
  return k;
1647
1647
  }(t, i + 4, 4) === "Exif")) {
1648
1648
  var u = t.getUint16(o);
@@ -1728,7 +1728,7 @@ var wo = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
1728
1728
  var r, l;
1729
1729
  } }, emits: ["resize", "move", "transform-end"] };
1730
1730
  wo.render = function(e, n, t, o, a, i) {
1731
- return O(), q("div", { ref: "container", onTouchstart: n[1] || (n[1] = function() {
1731
+ return O(), Y("div", { ref: "container", onTouchstart: n[1] || (n[1] = function() {
1732
1732
  return i.onTouchStart && i.onTouchStart.apply(i, arguments);
1733
1733
  }), onMousedown: n[2] || (n[2] = function() {
1734
1734
  return i.onMouseDown && i.onMouseDown.apply(i, arguments);
@@ -1739,7 +1739,7 @@ wo.render = function(e, n, t, o, a, i) {
1739
1739
  var fn = { components: { TransformableImage: wo }, props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 } }, emits: ["resize", "move"] };
1740
1740
  fn.render = function(e, n, t, o, a, i) {
1741
1741
  var r = P("transformable-image");
1742
- return O(), q(r, { "touch-move": t.touchMove, "touch-resize": t.touchResize, "mouse-move": t.mouseMove, "wheel-resize": t.wheelResize, onMove: n[1] || (n[1] = function(l) {
1742
+ return O(), Y(r, { "touch-move": t.touchMove, "touch-resize": t.touchResize, "mouse-move": t.mouseMove, "wheel-resize": t.wheelResize, onMove: n[1] || (n[1] = function(l) {
1743
1743
  return e.$emit("move", l);
1744
1744
  }), onResize: n[2] || (n[2] = function(l) {
1745
1745
  return e.$emit("resize", l);
@@ -1791,12 +1791,12 @@ var Tt = Ke("vue-preview"), ko = { props: { coordinates: { type: Object }, trans
1791
1791
  e && e.complete && this.refreshImage(), this.refresh();
1792
1792
  } } };
1793
1793
  ko.render = function(e, n, t, o, a, i) {
1794
- return O(), q("div", { ref: "root", class: i.classes.root, style: i.style }, [f("div", { ref: "wrapper", class: i.classes.wrapper, style: i.wrapperStyle }, [ct(f("img", { ref: "image", src: t.image && t.image.src, class: i.classes.image, style: i.imageStyle }, null, 14, ["src"]), [[Gt, t.image && t.image.src]])], 6)], 6);
1794
+ return O(), Y("div", { ref: "root", class: i.classes.root, style: i.style }, [f("div", { ref: "wrapper", class: i.classes.wrapper, style: i.wrapperStyle }, [ct(f("img", { ref: "image", src: t.image && t.image.src, class: i.classes.image, style: i.imageStyle }, null, 14, ["src"]), [[Gt, t.image && t.image.src]])], 6)], 6);
1795
1795
  };
1796
1796
  var Co = { components: { Preview: ko }, inheritAttrs: !1 };
1797
1797
  Co.render = function(e, n, t, o, a, i) {
1798
1798
  var r = P("preview");
1799
- return O(), q(r, Kn(e.$attrs, { fill: !0 }), null, 16);
1799
+ return O(), Y(r, Kn(e.$attrs, { fill: !0 }), null, 16);
1800
1800
  };
1801
1801
  var nn = Ke("vue-rectangle-stencil"), So = { name: "RectangleStencil", components: { StencilPreview: Co, BoundingBox: bo, DraggableArea: yo }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
1802
1802
  return Cn;
@@ -1830,7 +1830,7 @@ var nn = Ke("vue-rectangle-stencil"), So = { name: "RectangleStencil", component
1830
1830
  } }, emits: ["resize", "resize-end", "move", "move-end"] };
1831
1831
  So.render = function(e, n, t, o, a, i) {
1832
1832
  var r = P("stencil-preview"), l = P("draggable-area"), s = P("bounding-box");
1833
- return O(), q("div", { class: i.classes.stencil, style: i.style }, [f(s, { width: t.stencilCoordinates.width, height: t.stencilCoordinates.height, transitions: t.transitions, class: i.classes.boundingBox, handlers: t.handlers, "handlers-component": t.handlersComponent, "handlers-classes": t.handlersClasses, "handlers-wrappers-classes": t.handlersWrappersClasses, lines: t.lines, "lines-component": t.linesComponent, "lines-classes": t.linesClasses, "lines-wrappers-classes": t.linesWrappersClasses, resizable: t.resizable, onResize: i.onResize, onResizeEnd: i.onResizeEnd }, { default: I(function() {
1833
+ return O(), Y("div", { class: i.classes.stencil, style: i.style }, [f(s, { width: t.stencilCoordinates.width, height: t.stencilCoordinates.height, transitions: t.transitions, class: i.classes.boundingBox, handlers: t.handlers, "handlers-component": t.handlersComponent, "handlers-classes": t.handlersClasses, "handlers-wrappers-classes": t.handlersWrappersClasses, lines: t.lines, "lines-component": t.linesComponent, "lines-classes": t.linesClasses, "lines-wrappers-classes": t.linesWrappersClasses, resizable: t.resizable, onResize: i.onResize, onResizeEnd: i.onResizeEnd }, { default: I(function() {
1834
1834
  return [f(l, { movable: t.movable, onMove: i.onMove, onMoveEnd: i.onMoveEnd }, { default: I(function() {
1835
1835
  return [f(r, { image: t.image, coordinates: t.coordinates, width: t.stencilCoordinates.width, height: t.stencilCoordinates.height, class: i.classes.preview, transitions: t.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
1836
1836
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
@@ -1857,8 +1857,8 @@ var Sa = ["transitions"], Ze = Ke("vue-advanced-cropper"), xo = { name: "Cropper
1857
1857
  if (h || (h = r.width >= r.height || p === 1 ? "width" : "height"), h === "width") {
1858
1858
  var v = d / p - r.height;
1859
1859
  if (u.top && u.bottom) {
1860
- var F = s.top, y = s.bottom;
1861
- s.bottom = Et(v, y, F), s.top = Et(v, F, y);
1860
+ var F = s.top, b = s.bottom;
1861
+ s.bottom = Et(v, b, F), s.top = Et(v, F, b);
1862
1862
  } else u.bottom ? s.bottom = v : u.top ? s.top = v : u.right ? s.right = 0 : u.left && (s.left = 0);
1863
1863
  } else if (h === "height") {
1864
1864
  var k = r.width - c * p;
@@ -2263,9 +2263,9 @@ var Sa = ["transitions"], Ze = Ke("vue-advanced-cropper"), xo = { name: "Cropper
2263
2263
  }
2264
2264
  } }, emits: ["change", "error", "ready"] }, xa = { key: 0, ref: "canvas", style: { display: "none" } }, Oa = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
2265
2265
  xo.render = function(e, n, t, o, a, i) {
2266
- return O(), q("div", { ref: "cropper", class: i.classes.cropper }, [f("div", { ref: "stretcher", class: i.classes.stretcher }, null, 2), f("div", { class: i.classes.boundaries, style: i.boundariesStyle }, [(O(), q(It(t.backgroundWrapperComponent), { class: i.classes.cropperWrapper, "wheel-resize": i.settings.resizeImage.wheel, "touch-resize": i.settings.resizeImage.touch, "touch-move": i.settings.moveImage.touch, "mouse-move": i.settings.moveImage.mouse, onMove: i.onManipulateImage, onResize: i.onManipulateImage }, { default: I(function() {
2266
+ return O(), Y("div", { ref: "cropper", class: i.classes.cropper }, [f("div", { ref: "stretcher", class: i.classes.stretcher }, null, 2), f("div", { class: i.classes.boundaries, style: i.boundariesStyle }, [(O(), Y(It(t.backgroundWrapperComponent), { class: i.classes.cropperWrapper, "wheel-resize": i.settings.resizeImage.wheel, "touch-resize": i.settings.resizeImage.touch, "touch-move": i.settings.moveImage.touch, "mouse-move": i.settings.moveImage.mouse, onMove: i.onManipulateImage, onResize: i.onManipulateImage }, { default: I(function() {
2267
2267
  return [f("div", { class: i.classes.background, style: i.boundariesStyle }, null, 6), f("div", { class: i.classes.imageWrapper }, [f("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: i.classes.image, style: i.imageStyle, onMousedown: n[1] || (n[1] = xt(function() {
2268
- }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), f("div", { class: i.classes.foreground, style: i.boundariesStyle }, null, 6), ct((O(), q(It(t.stencilComponent), Kn({ ref: "stencil", image: i.image, coordinates: a.coordinates, "stencil-coordinates": i.stencilCoordinates, transitions: i.transitionsOptions }, t.stencilProps, { onResize: i.onResize, onResizeEnd: i.onResizeEnd, onMove: i.onMove, onMoveEnd: i.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[Gt, a.imageLoaded]]), t.canvas ? (O(), q("canvas", xa, null, 512)) : oe("", !0), t.canvas ? (O(), q("canvas", Oa, null, 512)) : oe("", !0)];
2268
+ }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), f("div", { class: i.classes.foreground, style: i.boundariesStyle }, null, 6), ct((O(), Y(It(t.stencilComponent), Kn({ ref: "stencil", image: i.image, coordinates: a.coordinates, "stencil-coordinates": i.stencilCoordinates, transitions: i.transitionsOptions }, t.stencilProps, { onResize: i.onResize, onResizeEnd: i.onResizeEnd, onMove: i.onMove, onMoveEnd: i.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[Gt, a.imageLoaded]]), t.canvas ? (O(), Y("canvas", xa, null, 512)) : oe("", !0), t.canvas ? (O(), Y("canvas", Oa, null, 512)) : oe("", !0)];
2269
2269
  }), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
2270
2270
  };
2271
2271
  function xn(e, n) {
@@ -2314,8 +2314,8 @@ const Aa = {
2314
2314
  emits: ["update:model-value", "reset:model-value"],
2315
2315
  setup(e, { emit: n }) {
2316
2316
  const t = e, { t: o } = ye(), a = n, i = R(() => t.modelValue ? URL.createObjectURL(t.modelValue) : ""), r = j(), l = j(), s = j(!1);
2317
- async function u([y]) {
2318
- if (!y) return;
2317
+ async function u([b]) {
2318
+ if (!b) return;
2319
2319
  s.value = !0;
2320
2320
  const k = new FileReader();
2321
2321
  k.onload = () => {
@@ -2326,14 +2326,14 @@ const Aa = {
2326
2326
  }, g.onerror = () => {
2327
2327
  s.value = !1;
2328
2328
  };
2329
- }, k.readAsDataURL(y);
2329
+ }, k.readAsDataURL(b);
2330
2330
  }
2331
- const d = (y) => {
2332
- u([y]);
2331
+ const d = (b) => {
2332
+ u([b]);
2333
2333
  };
2334
- async function c(y) {
2334
+ async function c(b) {
2335
2335
  !r.value && i.value && (r.value = i.value);
2336
- const { canvas: k } = y, g = k.toDataURL("image/jpeg", 0.75);
2336
+ const { canvas: k } = b, g = k.toDataURL("image/jpeg", 0.75);
2337
2337
  l.value = g;
2338
2338
  const C = await (await fetch(g)).blob(), N = new File([C], "img.jpeg", { type: "image/jpeg" });
2339
2339
  a("update:model-value", N);
@@ -2342,26 +2342,26 @@ const Aa = {
2342
2342
  r.value = void 0, l.value = void 0, a("reset:model-value");
2343
2343
  }
2344
2344
  const h = yn(), v = R(() => !!h.showRemy);
2345
- xn("apply-image", (y) => {
2346
- y != null && y.imageData && (r.value = y.imageData, l.value = y.imageData);
2345
+ xn("apply-image", (b) => {
2346
+ b != null && b.imageData && (r.value = b.imageData, l.value = b.imageData);
2347
2347
  });
2348
2348
  async function F() {
2349
2349
  if (t.modelValue && !l.value) {
2350
- const y = new FileReader();
2351
- y.onload = () => {
2352
- l.value = y.result;
2353
- }, y.readAsDataURL(t.modelValue), await new Promise((k) => setTimeout(k, 100));
2350
+ const b = new FileReader();
2351
+ b.onload = () => {
2352
+ l.value = b.result;
2353
+ }, b.readAsDataURL(t.modelValue), await new Promise((k) => setTimeout(k, 100));
2354
2354
  }
2355
2355
  h.activate({
2356
2356
  imageData: l.value,
2357
2357
  command: "modifyImage"
2358
2358
  });
2359
2359
  }
2360
- return (y, k) => {
2360
+ return (b, k) => {
2361
2361
  const g = P("fm-icon"), C = P("fm-drop-field");
2362
- return r.value || i.value ? (O(), H("div", Aa, [
2362
+ return r.value || i.value ? (O(), q("div", Aa, [
2363
2363
  T("p", Ma, [
2364
- Dt(le(y.title) + " ", 1),
2364
+ Dt(le(b.title) + " ", 1),
2365
2365
  T("span", Ea, le(m(o)("menu.common.labels.optional")), 1)
2366
2366
  ]),
2367
2367
  T("div", Ta, [
@@ -2391,7 +2391,7 @@ const Aa = {
2391
2391
  }, [
2392
2392
  f(g, { name: "close" })
2393
2393
  ]),
2394
- v.value ? (O(), H("button", {
2394
+ v.value ? (O(), q("button", {
2395
2395
  key: 0,
2396
2396
  class: Ue([
2397
2397
  "w-24 h-24 rounded-[50%]",
@@ -2409,7 +2409,7 @@ const Aa = {
2409
2409
  ])
2410
2410
  ])
2411
2411
  ])
2412
- ])) : (O(), q(C, {
2412
+ ])) : (O(), Y(C, {
2413
2413
  key: 1,
2414
2414
  accept: ".jpg, .jpeg, .png, .gif, .JPG, .JPEG, .PNG, .GIF",
2415
2415
  "content-class": "h-[150px] w-[200px]",
@@ -2417,7 +2417,7 @@ const Aa = {
2417
2417
  }, {
2418
2418
  label: I(() => [
2419
2419
  T("p", Da, [
2420
- Dt(le(y.title) + " ", 1),
2420
+ Dt(le(b.title) + " ", 1),
2421
2421
  T("span", Pa, le(m(o)("menu.common.labels.optional")), 1)
2422
2422
  ])
2423
2423
  ]),
@@ -2506,7 +2506,7 @@ const Aa = {
2506
2506
  });
2507
2507
  return (u, d) => {
2508
2508
  const c = P("fm-select");
2509
- return O(), H("div", null, [
2509
+ return O(), q("div", null, [
2510
2510
  f(c, {
2511
2511
  disabled: e.disable,
2512
2512
  items: r.value,
@@ -2557,7 +2557,7 @@ const Aa = {
2557
2557
  }, F = R(() => t.items.reduce(
2558
2558
  (g, C) => (g[C.value] = C, g),
2559
2559
  {}
2560
- )), y = R(() => d.value.length > 0 ? d.value.map((g) => g.label).join("/") : t.placeholder), k = j(!1);
2560
+ )), b = R(() => d.value.length > 0 ? d.value.map((g) => g.label).join("/") : t.placeholder), k = j(!1);
2561
2561
  return Ee(
2562
2562
  () => t.modelValue,
2563
2563
  (g) => {
@@ -2566,7 +2566,7 @@ const Aa = {
2566
2566
  { immediate: !0 }
2567
2567
  ), (g, C) => {
2568
2568
  const N = P("FmIcon"), $ = P("FmField"), M = P("FmMenuItem"), w = P("FmMenu"), V = P("FmFormGroup"), E = P("FmChipGroup");
2569
- return O(), H("div", $a, [
2569
+ return O(), q("div", $a, [
2570
2570
  f(V, {
2571
2571
  "model-value": g.modelValue,
2572
2572
  disabled: g.disabled,
@@ -2581,7 +2581,7 @@ const Aa = {
2581
2581
  ref_key: "fmMenuRef",
2582
2582
  ref: u,
2583
2583
  "close-on-click": !1,
2584
- onMenuChanged: C[1] || (C[1] = (b) => k.value = b)
2584
+ onMenuChanged: C[1] || (C[1] = (y) => k.value = y)
2585
2585
  }, {
2586
2586
  "menu-button": I(() => [
2587
2587
  f($, {
@@ -2601,25 +2601,25 @@ const Aa = {
2601
2601
  class: Ue([[
2602
2602
  g.disabled ? "text-fm-color-typo-disabled" : d.value.length > 0 ? "text-fm-color-typo-primary" : "text-fm-color-typo-tertiary"
2603
2603
  ], "break-all fm-typo-en-body-lg-400 line-clamp-1"])
2604
- }, le(y.value), 3)
2604
+ }, le(b.value), 3)
2605
2605
  ]),
2606
2606
  _: 2
2607
2607
  }, 1032, ["class", "focused", "invalid"])
2608
2608
  ]),
2609
2609
  default: I(() => [
2610
2610
  T("div", Na, [
2611
- (O(!0), H(ge, null, Te(g.items, (b) => (O(), q(M, {
2612
- key: b.value,
2613
- disabled: b.disabled,
2611
+ (O(!0), q(ge, null, Te(g.items, (y) => (O(), Y(M, {
2612
+ key: y.value,
2613
+ disabled: y.disabled,
2614
2614
  "has-checkbox": !0,
2615
- label: b.label,
2616
- "model-value": d.value.some((_) => _.value === b.value),
2617
- "onUpdate:modelValue": (_) => p(_, b)
2615
+ label: y.label,
2616
+ "model-value": d.value.some((_) => _.value === y.value),
2617
+ "onUpdate:modelValue": (_) => p(_, y)
2618
2618
  }, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue"]))), 128)),
2619
2619
  T("button", {
2620
2620
  class: "flex items-center py-8 px-16 space-x-8",
2621
2621
  type: "button",
2622
- onClick: C[0] || (C[0] = (b) => v())
2622
+ onClick: C[0] || (C[0] = (y) => v())
2623
2623
  }, [
2624
2624
  f(N, {
2625
2625
  color: "primary",
@@ -2635,7 +2635,7 @@ const Aa = {
2635
2635
  ]),
2636
2636
  _: 1
2637
2637
  }, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
2638
- d.value.length > 0 ? (O(), H("div", Ba, [
2638
+ d.value.length > 0 ? (O(), q("div", Ba, [
2639
2639
  f(E, {
2640
2640
  disabled: g.disabled,
2641
2641
  items: d.value.map((A) => ({ label: A.label })),
@@ -2705,17 +2705,17 @@ const Aa = {
2705
2705
  });
2706
2706
  i.value = i.value.filter((A) => E.has(A.localeCode));
2707
2707
  }
2708
- function y() {
2708
+ function b() {
2709
2709
  const w = !Fe.isEqual(i.value, r.value), V = l.value !== u.value, E = s.value !== d.value;
2710
2710
  return w || V || E;
2711
2711
  }
2712
2712
  function k() {
2713
2713
  o("update:name", l.value.trim()), o("update:description", s.value.trim());
2714
- const w = i.value.filter((b) => b.nameValue.trim()), V = w.length === 0 ? void 0 : w.reduce(
2715
- (b, _) => (b[_.localeCode] = _.nameValue.trim(), b),
2714
+ const w = i.value.filter((y) => y.nameValue.trim()), V = w.length === 0 ? void 0 : w.reduce(
2715
+ (y, _) => (y[_.localeCode] = _.nameValue.trim(), y),
2716
2716
  {}
2717
- ), E = i.value.filter((b) => b.descriptionValue.trim()), A = E.length === 0 ? void 0 : E.reduce(
2718
- (b, _) => (b[_.localeCode] = _.descriptionValue.trim(), b),
2717
+ ), E = i.value.filter((y) => y.descriptionValue.trim()), A = E.length === 0 ? void 0 : E.reduce(
2718
+ (y, _) => (y[_.localeCode] = _.descriptionValue.trim(), y),
2719
2719
  {}
2720
2720
  );
2721
2721
  o("update:nameLocale", V), o("update:descriptionLocale", A), o("update:modelValue", !1);
@@ -2723,7 +2723,7 @@ const Aa = {
2723
2723
  function g() {
2724
2724
  o("update:modelValue", !1);
2725
2725
  }
2726
- const C = yt(y, g), N = R({
2726
+ const C = yt(b, g), N = R({
2727
2727
  get: () => t.modelValue,
2728
2728
  set: (w) => o("update:modelValue", w)
2729
2729
  });
@@ -2734,8 +2734,8 @@ const Aa = {
2734
2734
  p.value = !p.value;
2735
2735
  }
2736
2736
  return (w, V) => {
2737
- const E = P("FmIcon"), A = P("fm-button"), b = P("fm-dialog");
2738
- return O(), q(b, {
2737
+ const E = P("FmIcon"), A = P("fm-button"), y = P("fm-dialog");
2738
+ return O(), Y(y, {
2739
2739
  modelValue: N.value,
2740
2740
  "onUpdate:modelValue": V[2] || (V[2] = (_) => N.value = _),
2741
2741
  "max-width": 800,
@@ -2777,7 +2777,7 @@ const Aa = {
2777
2777
  }, null, 8, ["name"]),
2778
2778
  T("p", Ha, le(m(a)("menu.product.translation.product_name")), 1)
2779
2779
  ]),
2780
- c.value ? (O(), H("div", qa, [
2780
+ c.value ? (O(), q("div", qa, [
2781
2781
  f($t, {
2782
2782
  modelValue: l.value,
2783
2783
  "onUpdate:modelValue": V[0] || (V[0] = (_) => l.value = _),
@@ -2785,11 +2785,11 @@ const Aa = {
2785
2785
  readonly: !1,
2786
2786
  placeholder: m(a)("menu.product.translation.placeholder")
2787
2787
  }, null, 8, ["modelValue", "label", "placeholder"]),
2788
- i.value.length > 0 ? (O(), H("div", Xa, [
2788
+ i.value.length > 0 ? (O(), q("div", Xa, [
2789
2789
  f(Nt, {
2790
2790
  label: m(a)("menu.product.translation.translation")
2791
2791
  }, null, 8, ["label"]),
2792
- (O(!0), H(ge, null, Te(i.value, (_) => (O(), q(Lt, {
2792
+ (O(!0), q(ge, null, Te(i.value, (_) => (O(), Y(Lt, {
2793
2793
  key: _.localeCode,
2794
2794
  "locale-code": _.localeCode,
2795
2795
  modelValue: _.nameValue,
@@ -2812,7 +2812,7 @@ const Aa = {
2812
2812
  T("span", Ja, le(m(a)("menu.product.translation.optional")), 1)
2813
2813
  ])
2814
2814
  ]),
2815
- p.value ? (O(), H("div", er, [
2815
+ p.value ? (O(), q("div", er, [
2816
2816
  f($t, {
2817
2817
  modelValue: s.value,
2818
2818
  "onUpdate:modelValue": V[1] || (V[1] = (_) => s.value = _),
@@ -2821,11 +2821,11 @@ const Aa = {
2821
2821
  type: "textarea",
2822
2822
  placeholder: m(a)("menu.product.translation.placeholder")
2823
2823
  }, null, 8, ["modelValue", "label", "placeholder"]),
2824
- i.value.length > 0 ? (O(), H("div", tr, [
2824
+ i.value.length > 0 ? (O(), q("div", tr, [
2825
2825
  f(Nt, {
2826
2826
  label: m(a)("menu.product.translation.translation")
2827
2827
  }, null, 8, ["label"]),
2828
- (O(!0), H(ge, null, Te(i.value, (_) => (O(), q(Lt, {
2828
+ (O(!0), q(ge, null, Te(i.value, (_) => (O(), Y(Lt, {
2829
2829
  key: _.localeCode,
2830
2830
  "locale-code": _.localeCode,
2831
2831
  modelValue: _.descriptionValue,
@@ -2879,9 +2879,9 @@ const ir = {
2879
2879
  t: u
2880
2880
  } = ye(), d = j(!1), c = j(!1), p = j(!1), h = j(void 0), v = j(null), F = (z) => {
2881
2881
  _t.isBoolean(z) ? c.value = z : c.value = !c.value;
2882
- }, y = R(() => t.initialValue.name === "Addon"), k = j(ln(t.initialValue)), g = R(() => !k.value.id && !y.value), C = j(""), N = R(() => {
2882
+ }, b = R(() => !t.initialValue.id && t.initialValue.name === "Addon"), k = j(ln(t.initialValue)), g = R(() => !k.value.id && !b.value), C = j(""), N = R(() => {
2883
2883
  var J;
2884
- if (!k.value.id && !y.value)
2884
+ if (!k.value.id && !b.value)
2885
2885
  return [];
2886
2886
  const z = ((J = s.value.find((ne) => ne.id === k.value.id)) == null ? void 0 : J.items) || [], W = jo(k.value.id);
2887
2887
  return Hn(z, (ne) => ne.code || ne.name, W);
@@ -2927,7 +2927,7 @@ const ir = {
2927
2927
  const W = Ko(z, k.value.id);
2928
2928
  await l.updateMany(W);
2929
2929
  }
2930
- const A = R(() => [ui]), b = R(() => !!k.value.name), _ = R(() => {
2930
+ const A = R(() => [ui]), y = R(() => !!k.value.name), _ = R(() => {
2931
2931
  var ne;
2932
2932
  const z = [], W = "en-US", J = (ne = h.value) == null ? void 0 : ne[W];
2933
2933
  return k.value.name && !J && z.push({
@@ -3013,7 +3013,7 @@ const ir = {
3013
3013
  show: c
3014
3014
  }), (z, W) => {
3015
3015
  const J = P("fm-button"), ne = P("FmTooltip"), de = P("FmTextField"), D = P("FmButton"), S = P("FmSearch"), L = P("FmTable"), Q = P("fm-side-sheet");
3016
- return O(), H(ge, null, [Ce(z.$slots, "default", {
3016
+ return O(), q(ge, null, [Ce(z.$slots, "default", {
3017
3017
  trigger: F
3018
3018
  }), f(Q, {
3019
3019
  id: "group-form",
@@ -3028,13 +3028,14 @@ const ir = {
3028
3028
  "onOn:clickedAway": m(ee)
3029
3029
  }, {
3030
3030
  "side-sheet-header": I(() => [T("p", ir, le(g.value ? m(u)("menu.category.manager.dialog.add.title") : m(u)("menu.category.title")), 1)]),
3031
- "side-sheet-footer": I(() => [T("div", mr, [f(J, {
3031
+ "side-sheet-footer": I(() => [T("div", mr, [b.value ? oe("", !0) : (O(), Y(J, {
3032
+ key: 0,
3032
3033
  label: g.value ? m(u)("menu.category.manager.dialog.add.action") : m(u)("menu.common.actions.update"),
3033
3034
  loading: d.value,
3034
3035
  size: "lg",
3035
3036
  type: "submit",
3036
3037
  variant: "primary"
3037
- }, null, 8, ["label", "loading"]), f(J, {
3038
+ }, null, 8, ["label", "loading"])), f(J, {
3038
3039
  label: m(u)("menu.common.actions.cancel"),
3039
3040
  size: "lg",
3040
3041
  variant: "tertiary",
@@ -3048,28 +3049,28 @@ const ir = {
3048
3049
  "onUpdate:modelValue": W[1] || (W[1] = (G) => k.value.name = G),
3049
3050
  label: m(u)("menu.category.name"),
3050
3051
  rules: A.value,
3051
- readonly: y.value
3052
+ readonly: b.value
3052
3053
  }, {
3053
3054
  append: I(() => [f(ne, {
3054
3055
  variant: "plain",
3055
3056
  placement: "top",
3056
3057
  "z-index": 999
3057
3058
  }, {
3058
- content: I(() => [T("div", rr, [(O(!0), H(ge, null, Te(_.value, (G) => (O(), H("div", {
3059
+ content: I(() => [T("div", rr, [(O(!0), q(ge, null, Te(_.value, (G) => (O(), q("div", {
3059
3060
  key: G.locale
3060
3061
  }, le(G.name) + " (" + le(G.localeDisplay) + ") ", 1))), 128))])]),
3061
3062
  default: I(() => [f(J, {
3062
3063
  variant: "tertiary",
3063
3064
  icon: "g_translate",
3064
3065
  onClick: W[0] || (W[0] = (G) => p.value = !0),
3065
- disabled: !b.value || y.value
3066
+ disabled: !y.value || b.value
3066
3067
  }, null, 8, ["disabled"])]),
3067
3068
  _: 1
3068
3069
  })]),
3069
3070
  _: 1
3070
3071
  }, 8, ["modelValue", "label", "rules", "readonly"])]),
3071
3072
  _: 1
3072
- }, 8, ["title"]), y.value ? oe("", !0) : (O(), q(Oo, {
3073
+ }, 8, ["title"]), b.value ? oe("", !0) : (O(), Y(Oo, {
3073
3074
  key: 0,
3074
3075
  title: m(u)("menu.common.labels.category_image"),
3075
3076
  "model-value": v.value,
@@ -3080,7 +3081,7 @@ const ir = {
3080
3081
  class: "flex-1 min-h-0",
3081
3082
  shrinkable: !0
3082
3083
  }, {
3083
- "append-title": I(() => [g.value ? (O(), q(ne, {
3084
+ "append-title": I(() => [g.value ? (O(), Y(ne, {
3084
3085
  key: 0,
3085
3086
  placement: "top",
3086
3087
  "z-index": 999
@@ -3096,7 +3097,7 @@ const ir = {
3096
3097
  onClick: M
3097
3098
  }, null, 8, ["label"])]),
3098
3099
  _: 1
3099
- })) : (O(), q(D, {
3100
+ })) : (O(), Y(D, {
3100
3101
  key: 1,
3101
3102
  label: m(u)("menu.category.products.add"),
3102
3103
  variant: "secondary",
@@ -3170,8 +3171,8 @@ const ir = {
3170
3171
  p(), l("primary");
3171
3172
  }
3172
3173
  return (v, F) => {
3173
- const y = P("fm-button"), k = P("fm-text-field"), g = P("FmForm");
3174
- return O(), H(ge, null, [
3174
+ const b = P("fm-button"), k = P("fm-text-field"), g = P("FmForm");
3175
+ return O(), q(ge, null, [
3175
3176
  f(g, { onValidationSuccess: h }, {
3176
3177
  default: I(() => [
3177
3178
  f(k, {
@@ -3183,7 +3184,7 @@ const ir = {
3183
3184
  placeholder: m(t)("menu.category.dialog.add.name.placeholder")
3184
3185
  }, {
3185
3186
  append: I(() => [
3186
- f(y, {
3187
+ f(b, {
3187
3188
  variant: "tertiary",
3188
3189
  icon: "g_translate",
3189
3190
  onClick: F[0] || (F[0] = (C) => o.value = !0),
@@ -3377,7 +3378,7 @@ const Tr = /* @__PURE__ */ be({
3377
3378
  value: K.id
3378
3379
  }));
3379
3380
  return t.isAddon ? U : U.filter((K) => !!K.value);
3380
- }), F = R(() => p.value.addon), y = R(() => !v.value.find((U) => !!U.value)), k = R(() => Wo(t.form.category ? t.form : t.fallback) || []), g = R(() => k.value.reduce((U, K) => (U[K._id] = K, U), {})), C = R({
3381
+ }), F = R(() => p.value.addon), b = R(() => !v.value.find((U) => !!U.value)), k = R(() => Wo(t.form.category ? t.form : t.fallback) || []), g = R(() => k.value.reduce((U, K) => (U[K._id] = K, U), {})), C = R({
3381
3382
  get() {
3382
3383
  return k.value.map((U) => U._id);
3383
3384
  },
@@ -3422,7 +3423,7 @@ const Tr = /* @__PURE__ */ be({
3422
3423
  }, [z("menu.product.form.detail.category.add_new")])])
3423
3424
  });
3424
3425
  ht(async () => {
3425
- !y.value && t.form.category === void 0 && t.isCreate && E(lt.PRODUCT);
3426
+ !b.value && t.form.category === void 0 && t.isCreate && E(lt.PRODUCT);
3426
3427
  });
3427
3428
  const M = R(() => {
3428
3429
  var K;
@@ -3449,7 +3450,7 @@ const Tr = /* @__PURE__ */ be({
3449
3450
  xn("apply-description", (U) => {
3450
3451
  c("update:form", "description", U || "");
3451
3452
  });
3452
- async function b() {
3453
+ async function y() {
3453
3454
  if (!t.form.name) {
3454
3455
  const U = document.getElementById("product-name");
3455
3456
  if (U) {
@@ -3534,8 +3535,8 @@ const Tr = /* @__PURE__ */ be({
3534
3535
  });
3535
3536
  return (U, K) => {
3536
3537
  var ie, wt;
3537
- const se = P("fm-text-field"), Ae = P("fm-button"), ke = P("FmTooltip"), Oe = P("fm-textarea"), pe = P("fm-radio"), me = P("FmSnackbar"), Ft = P("FmButton"), te = P("fm-radio-group"), Y = P("FmFormGroup"), _e = P("FmStepperField"), we = Wn("tooltip");
3538
- return O(), H(ge, null, [f(Ne, {
3538
+ const se = P("fm-text-field"), Ae = P("fm-button"), ke = P("FmTooltip"), Oe = P("fm-textarea"), pe = P("fm-radio"), me = P("FmSnackbar"), Ft = P("FmButton"), te = P("fm-radio-group"), H = P("FmFormGroup"), _e = P("FmStepperField"), we = Wn("tooltip");
3539
+ return O(), q(ge, null, [f(Ne, {
3539
3540
  title: m(z)("menu.product.form.detail.title")
3540
3541
  }, {
3541
3542
  default: I(() => {
@@ -3567,7 +3568,7 @@ const Tr = /* @__PURE__ */ be({
3567
3568
  placement: "top",
3568
3569
  "z-index": 999
3569
3570
  }, {
3570
- content: I(() => [T("div", wr, [(O(!0), H(ge, null, Te(ne.value, (ue) => (O(), H("div", {
3571
+ content: I(() => [T("div", wr, [(O(!0), q(ge, null, Te(ne.value, (ue) => (O(), q("div", {
3571
3572
  key: ue.locale
3572
3573
  }, le(ue.name) + " (" + le(ue.localeDisplay) + ") ", 1))), 128))])]),
3573
3574
  default: I(() => [f(Ae, {
@@ -3593,7 +3594,7 @@ const Tr = /* @__PURE__ */ be({
3593
3594
  placement: "top",
3594
3595
  "z-index": 999
3595
3596
  }, {
3596
- content: I(() => [T("div", Or, [(O(!0), H(ge, null, Te(de.value, (ue) => (O(), H("div", {
3597
+ content: I(() => [T("div", Or, [(O(!0), q(ge, null, Te(de.value, (ue) => (O(), q("div", {
3597
3598
  key: ue.locale
3598
3599
  }, le(ue.name) + " (" + le(ue.localeDisplay) + ") ", 1))), 128))])]),
3599
3600
  default: I(() => [ct(f(Ae, {
@@ -3605,7 +3606,7 @@ const Tr = /* @__PURE__ */ be({
3605
3606
  _: 1
3606
3607
  }), ct(f(m(Jn), {
3607
3608
  class: "cursor-pointer",
3608
- onClick: b
3609
+ onClick: y
3609
3610
  }, null, 512), [[we, m(an)("Suggest description")]])])])]), f(Oo, {
3610
3611
  disabled: !p.value.thumbnail,
3611
3612
  title: m(z)("menu.common.labels.product_image"),
@@ -3616,23 +3617,23 @@ const Tr = /* @__PURE__ */ be({
3616
3617
  }, null, 8, ["disabled", "title", "model-value"])]), f(ot, {
3617
3618
  label: m(o).isV4 ? m(z)("menu.product.form.detail.category.label") : m(z)("menu.product.form.detail.category.label_singular")
3618
3619
  }, {
3619
- default: I(() => [F.value ? (O(), q(te, {
3620
+ default: I(() => [F.value ? (O(), Y(te, {
3620
3621
  key: 0,
3621
3622
  disabled: !p.value.category,
3622
3623
  "model-value": V.value,
3623
3624
  "onUpdate:modelValue": K[6] || (K[6] = (ue) => E(ue))
3624
3625
  }, {
3625
3626
  default: I(() => [T("div", Fr, [T("div", Rr, [f(pe, {
3626
- disabled: y.value || !p.value.category,
3627
+ disabled: b.value || !p.value.category,
3627
3628
  value: lt.PRODUCT,
3628
3629
  label: m(z)("menu.product.form.detail.category.options.product.label"),
3629
3630
  sublabel: m(z)("menu.product.form.detail.category.options.product.sublabel")
3630
3631
  }, null, 8, ["disabled", "value", "label", "sublabel"]), f(Bi, null, {
3631
- default: I(() => [m(o).isV4 ? (O(), q($, {
3632
+ default: I(() => [m(o).isV4 ? (O(), Y($, {
3632
3633
  key: 0
3633
3634
  })) : oe("", !0)]),
3634
3635
  _: 1
3635
- })]), y.value ? (O(), H("div", Ar, [f(me, {
3636
+ })]), b.value ? (O(), q("div", Ar, [f(me, {
3636
3637
  title: m(z)("menu.product.form.detail.category.add_first"),
3637
3638
  variant: "info"
3638
3639
  }, null, 8, ["title"]), f(Ft, {
@@ -3646,7 +3647,7 @@ const Tr = /* @__PURE__ */ be({
3646
3647
  sublabel: m(z)("menu.product.form.detail.category.options.addon.sublabel")
3647
3648
  }, null, 8, ["value", "label", "sublabel"])])]),
3648
3649
  _: 1
3649
- }, 8, ["disabled", "model-value"])) : oe("", !0), m(o).isV4 ? oe("", !0) : (O(), q(Y, {
3650
+ }, 8, ["disabled", "model-value"])) : oe("", !0), m(o).isV4 ? oe("", !0) : (O(), Y(H, {
3650
3651
  key: 1,
3651
3652
  "model-value": U.form.category,
3652
3653
  rules: [(ue) => !ue && !U.isOverride ? "Category is required" : !0],
@@ -3658,7 +3659,7 @@ const Tr = /* @__PURE__ */ be({
3658
3659
  _: 1
3659
3660
  }, 8, ["model-value", "rules"]))]),
3660
3661
  _: 1
3661
- }, 8, ["label"]), m(o).isV4 && !U.isAddon ? (O(), q(ot, {
3662
+ }, 8, ["label"]), m(o).isV4 && !U.isAddon ? (O(), Y(ot, {
3662
3663
  key: 0,
3663
3664
  label: m(z)("menu.product.form.detail.path.label")
3664
3665
  }, {
@@ -3671,7 +3672,7 @@ const Tr = /* @__PURE__ */ be({
3671
3672
  "is-local-only": !1
3672
3673
  }, null, 8, ["modelValue", "items", "placeholder", "disabled"])])]),
3673
3674
  _: 1
3674
- }, 8, ["label"])) : oe("", !0), m(o).isV4 ? (O(), H("div", Er, [f(_e, {
3675
+ }, 8, ["label"])) : oe("", !0), m(o).isV4 ? (O(), q("div", Er, [f(_e, {
3675
3676
  label: "Shelf Life (mins)",
3676
3677
  "model-value": U.form.shelfLife ?? null,
3677
3678
  rules: [(ue) => ue == null || ue > 0 || m(z)("menu.common.validation.min_value", {
@@ -3714,7 +3715,7 @@ const Tr = /* @__PURE__ */ be({
3714
3715
  }
3715
3716
  }), Vr = /* @__PURE__ */ mt(Tr, [["__scopeId", "data-v-67f1818f"]]), zr = {}, Ir = { class: "overflow-x-auto" }, Dr = { class: "xs:w-[600px]" };
3716
3717
  function Pr(e, n) {
3717
- return O(), H("div", Ir, [
3718
+ return O(), q("div", Ir, [
3718
3719
  T("div", Dr, [
3719
3720
  Ce(e.$slots, "default")
3720
3721
  ])
@@ -3751,7 +3752,7 @@ const Ro = /* @__PURE__ */ mt(zr, [["render", Pr]]), Ur = /* @__PURE__ */ be({
3751
3752
  position: n.groups.length - 1,
3752
3753
  itemsLinked: []
3753
3754
  }), r = j(i()), { t: l } = ye();
3754
- return (s, u) => t.value.create ? (O(), q(m(Os), {
3755
+ return (s, u) => t.value.create ? (O(), Y(m(Os), {
3755
3756
  key: 0,
3756
3757
  "categorized-items": m(n).categorizedItems,
3757
3758
  config: a.value,
@@ -3771,7 +3772,7 @@ const Ro = /* @__PURE__ */ mt(zr, [["render", Pr]]), Ur = /* @__PURE__ */ be({
3771
3772
  }
3772
3773
  }), $r = {}, Nr = { class: "flex gap-16" };
3773
3774
  function Lr(e, n) {
3774
- return O(), H("div", Nr, [
3775
+ return O(), q("div", Nr, [
3775
3776
  Ce(e.$slots, "default")
3776
3777
  ]);
3777
3778
  }
@@ -3806,14 +3807,14 @@ const Br = /* @__PURE__ */ mt($r, [["render", Lr]]), Gr = { class: "fm-typo-en-t
3806
3807
  function F() {
3807
3808
  const M = /* @__PURE__ */ new Set();
3808
3809
  Object.values(t.group.items).forEach((A) => {
3809
- A.name_locale && Object.keys(A.name_locale).forEach((b) => M.add(b));
3810
+ A.name_locale && Object.keys(A.name_locale).forEach((y) => M.add(y));
3810
3811
  }), M.size === 0 && t.group.name_locale && Object.keys(t.group.name_locale).forEach((A) => M.add(A));
3811
3812
  const w = Array.from(M);
3812
3813
  l.value = w;
3813
3814
  const V = {}, E = {};
3814
3815
  Object.values(t.group.items).forEach((A) => {
3815
- V[A._id] = {}, A.name_locale && Object.entries(A.name_locale).forEach(([b, _]) => {
3816
- V[A._id][b] = _;
3816
+ V[A._id] = {}, A.name_locale && Object.entries(A.name_locale).forEach(([y, _]) => {
3817
+ V[A._id][y] = _;
3817
3818
  }), E[A._id] = A.name || A.fallbackName || "";
3818
3819
  }), u.value = V, c.value = E;
3819
3820
  }
@@ -3824,7 +3825,7 @@ const Br = /* @__PURE__ */ mt($r, [["render", Lr]]), Gr = { class: "fm-typo-en-t
3824
3825
  },
3825
3826
  { immediate: !0, deep: !0 }
3826
3827
  );
3827
- function y(M) {
3828
+ function b(M) {
3828
3829
  const w = new Set(l.value), V = new Set(M);
3829
3830
  for (const E of M)
3830
3831
  w.has(E) || Object.keys(u.value).forEach((A) => {
@@ -3847,8 +3848,8 @@ const Br = /* @__PURE__ */ mt($r, [["render", Lr]]), Gr = { class: "fm-typo-en-t
3847
3848
  const E = u.value[w];
3848
3849
  if (E && Object.keys(E).length > 0) {
3849
3850
  const A = {};
3850
- Object.entries(E).forEach(([b, _]) => {
3851
- _ && _.trim() && (A[b] = _.trim());
3851
+ Object.entries(E).forEach(([y, _]) => {
3852
+ _ && _.trim() && (A[y] = _.trim());
3852
3853
  }), Object.keys(A).length > 0 ? M.items[w].name_locale = A : delete M.items[w].name_locale;
3853
3854
  } else
3854
3855
  delete M.items[w].name_locale;
@@ -3863,9 +3864,9 @@ const Br = /* @__PURE__ */ mt($r, [["render", Lr]]), Gr = { class: "fm-typo-en-t
3863
3864
  });
3864
3865
  return (M, w) => {
3865
3866
  const V = P("FmIcon"), E = P("fm-button"), A = P("fm-side-sheet");
3866
- return O(), q(A, {
3867
+ return O(), Y(A, {
3867
3868
  modelValue: $.value,
3868
- "onUpdate:modelValue": w[2] || (w[2] = (b) => $.value = b),
3869
+ "onUpdate:modelValue": w[2] || (w[2] = (y) => $.value = y),
3869
3870
  "max-width": 720,
3870
3871
  "onOn:clickedAway": m(N)
3871
3872
  }, {
@@ -3893,12 +3894,12 @@ const Br = /* @__PURE__ */ mt($r, [["render", Lr]]), Gr = { class: "fm-typo-en-t
3893
3894
  f(eo, {
3894
3895
  "selected-locales": l.value,
3895
3896
  label: m(a)("menu.group.translation.language"),
3896
- "onUpdate:selectedLocales": y
3897
+ "onUpdate:selectedLocales": b
3897
3898
  }, null, 8, ["selected-locales", "label"]),
3898
3899
  T("div", Kr, [
3899
3900
  T("div", {
3900
3901
  class: "flex items-center gap-16 cursor-pointer",
3901
- onClick: w[0] || (w[0] = (b) => i.value = !i.value)
3902
+ onClick: w[0] || (w[0] = (y) => i.value = !i.value)
3902
3903
  }, [
3903
3904
  f(V, {
3904
3905
  name: "keyboard_arrow_down",
@@ -3906,20 +3907,20 @@ const Br = /* @__PURE__ */ mt($r, [["render", Lr]]), Gr = { class: "fm-typo-en-t
3906
3907
  }, null, 8, ["class"]),
3907
3908
  T("p", Wr, le(m(a)("menu.group.translation.group_name")), 1)
3908
3909
  ]),
3909
- i.value ? (O(), H("div", Yr, [
3910
+ i.value ? (O(), q("div", Yr, [
3910
3911
  f($t, {
3911
3912
  label: m(a)("menu.group.translation.default"),
3912
3913
  "model-value": M.group.name,
3913
3914
  readonly: !0
3914
3915
  }, null, 8, ["label", "model-value"]),
3915
- h.value.length > 0 ? (O(), H("div", Hr, [
3916
+ h.value.length > 0 ? (O(), q("div", Hr, [
3916
3917
  f(Nt, {
3917
3918
  label: m(a)("menu.group.translation.translation")
3918
3919
  }, null, 8, ["label"]),
3919
- (O(!0), H(ge, null, Te(h.value, (b) => (O(), q(Lt, {
3920
- key: b.localeCode,
3921
- "locale-code": b.localeCode,
3922
- "model-value": b.value,
3920
+ (O(!0), q(ge, null, Te(h.value, (y) => (O(), Y(Lt, {
3921
+ key: y.localeCode,
3922
+ "locale-code": y.localeCode,
3923
+ "model-value": y.value,
3923
3924
  readonly: ""
3924
3925
  }, null, 8, ["locale-code", "model-value"]))), 128))
3925
3926
  ])) : oe("", !0)
@@ -3928,7 +3929,7 @@ const Br = /* @__PURE__ */ mt($r, [["render", Lr]]), Gr = { class: "fm-typo-en-t
3928
3929
  T("div", qr, [
3929
3930
  T("div", {
3930
3931
  class: "flex items-center gap-16 cursor-pointer",
3931
- onClick: w[1] || (w[1] = (b) => r.value = !r.value)
3932
+ onClick: w[1] || (w[1] = (y) => r.value = !r.value)
3932
3933
  }, [
3933
3934
  f(V, {
3934
3935
  name: "keyboard_arrow_down",
@@ -3936,31 +3937,31 @@ const Br = /* @__PURE__ */ mt($r, [["render", Lr]]), Gr = { class: "fm-typo-en-t
3936
3937
  }, null, 8, ["class"]),
3937
3938
  T("p", Xr, le(m(a)("menu.group.translation.product_name")), 1)
3938
3939
  ]),
3939
- r.value ? (O(), H("div", Zr, [
3940
- (O(!0), H(ge, null, Te(v.value, (b) => (O(), H("div", {
3941
- key: b._id,
3940
+ r.value ? (O(), q("div", Zr, [
3941
+ (O(!0), q(ge, null, Te(v.value, (y) => (O(), q("div", {
3942
+ key: y._id,
3942
3943
  class: "space-y-8"
3943
3944
  }, [
3944
- T("p", Qr, le(m(a)("menu.group.translation.option", { number: b.optionIndex })), 1),
3945
+ T("p", Qr, le(m(a)("menu.group.translation.option", { number: y.optionIndex })), 1),
3945
3946
  T("div", Jr, [
3946
3947
  f($t, {
3947
3948
  label: m(a)("menu.group.translation.default"),
3948
- "model-value": c.value[b._id] || "",
3949
- "onUpdate:modelValue": (_) => c.value[b._id] = _,
3950
- placeholder: b.fallbackName || "",
3949
+ "model-value": c.value[y._id] || "",
3950
+ "onUpdate:modelValue": (_) => c.value[y._id] = _,
3951
+ placeholder: y.fallbackName || "",
3951
3952
  spacing: "sm"
3952
3953
  }, null, 8, ["label", "model-value", "onUpdate:modelValue", "placeholder"]),
3953
- l.value.length > 0 ? (O(), H("div", es, [
3954
+ l.value.length > 0 ? (O(), q("div", es, [
3954
3955
  f(Nt, {
3955
3956
  label: m(a)("menu.group.translation.translation"),
3956
3957
  spacing: "sm"
3957
3958
  }, null, 8, ["label"]),
3958
- (O(!0), H(ge, null, Te(l.value, (_) => (O(), q(Lt, {
3959
+ (O(!0), q(ge, null, Te(l.value, (_) => (O(), Y(Lt, {
3959
3960
  key: _,
3960
3961
  "locale-code": _,
3961
- modelValue: u.value[b._id][_],
3962
- "onUpdate:modelValue": (x) => u.value[b._id][_] = x,
3963
- placeholder: b.name || b.fallbackName || ""
3962
+ modelValue: u.value[y._id][_],
3963
+ "onUpdate:modelValue": (x) => u.value[y._id][_] = x,
3964
+ placeholder: y.name || y.fallbackName || ""
3964
3965
  }, null, 8, ["locale-code", "modelValue", "onUpdate:modelValue", "placeholder"]))), 128))
3965
3966
  ])) : oe("", !0)
3966
3967
  ])
@@ -4006,8 +4007,8 @@ const Br = /* @__PURE__ */ mt($r, [["render", Lr]]), Gr = { class: "fm-typo-en-t
4006
4007
  ), n({ getKey: () => o.bindingKey, trigger: i });
4007
4008
  const { t: c } = ye(), p = to();
4008
4009
  return (h, v) => {
4009
- const F = P("fm-text-field"), y = P("fm-card"), k = P("fm-button"), g = P("fm-side-sheet");
4010
- return O(), H(ge, null, [
4010
+ const F = P("fm-text-field"), b = P("fm-card"), k = P("fm-button"), g = P("fm-side-sheet");
4011
+ return O(), q(ge, null, [
4011
4012
  Ce(h.$slots, "default", { trigger: i }),
4012
4013
  f(g, {
4013
4014
  id: "inventory-form",
@@ -4048,7 +4049,7 @@ const Br = /* @__PURE__ */ mt($r, [["render", Lr]]), Gr = { class: "fm-typo-en-t
4048
4049
  disabled: "",
4049
4050
  label: m(c)("menu.inventory.form.product_name")
4050
4051
  }, null, 8, ["model-value", "label"]),
4051
- f(y, {
4052
+ f(b, {
4052
4053
  class: "p-16 space-y-24",
4053
4054
  variant: "outlined"
4054
4055
  }, {
@@ -4154,7 +4155,7 @@ const Ao = /* @__PURE__ */ be({
4154
4155
  }];
4155
4156
  return (r, l) => {
4156
4157
  const s = P("FmTable");
4157
- return O(), H("div", null, [f(s, {
4158
+ return O(), q("div", null, [f(s, {
4158
4159
  "column-defs": i,
4159
4160
  "row-data": r.priceTiers,
4160
4161
  "page-size": r.priceTiers.length,
@@ -4183,8 +4184,8 @@ const Ao = /* @__PURE__ */ be({
4183
4184
  o("submit", d.value), i();
4184
4185
  }
4185
4186
  return (h, v) => {
4186
- const F = P("FmButton"), y = P("fm-button"), k = P("FmSideSheet");
4187
- return O(), q(k, {
4187
+ const F = P("FmButton"), b = P("fm-button"), k = P("FmSideSheet");
4188
+ return O(), Y(k, {
4188
4189
  id: "business-form",
4189
4190
  modelValue: a.value,
4190
4191
  "onUpdate:modelValue": v[1] || (v[1] = (g) => a.value = g),
@@ -4201,13 +4202,13 @@ const Ao = /* @__PURE__ */ be({
4201
4202
  ]),
4202
4203
  "side-sheet-footer": I(() => [
4203
4204
  T("div", cs, [
4204
- f(y, {
4205
+ f(b, {
4205
4206
  label: l.value,
4206
4207
  size: "lg",
4207
4208
  type: "submit",
4208
4209
  variant: "primary"
4209
4210
  }, null, 8, ["label"]),
4210
- f(y, {
4211
+ f(b, {
4211
4212
  label: m(t)("common.cancel"),
4212
4213
  size: "lg",
4213
4214
  variant: "tertiary",
@@ -4272,7 +4273,7 @@ const Ao = /* @__PURE__ */ be({
4272
4273
  const { t: l } = ye();
4273
4274
  return (s, u) => {
4274
4275
  const d = P("FmButton"), c = P("FmTooltip");
4275
- return s.$slots.default ? Ce(s.$slots, "default", { key: 0 }) : (O(), q(c, {
4276
+ return s.$slots.default ? Ce(s.$slots, "default", { key: 0 }) : (O(), Y(c, {
4276
4277
  key: 1,
4277
4278
  content: m(l)("menu.price_tier.price_tier_config"),
4278
4279
  "z-index": 999,
@@ -4326,7 +4327,7 @@ const Ao = /* @__PURE__ */ be({
4326
4327
  } = hi(), F = R(() => {
4327
4328
  const D = Object.entries(t.group.items).filter(([, S]) => v([S.code || "", S.name || S.fallbackName, g(S.price ?? S.fallbackPrice), C(S.orderFrom || S.fallbackOrder), ...(S.items || []).map((L) => [L.code || "", L.name || L.fallbackName, g(L.price ?? L.fallbackPrice), C(L.orderFrom || L.fallbackOrder)].join(""))]));
4328
4329
  return Object.fromEntries(D);
4329
- }), y = (D) => ({
4330
+ }), b = (D) => ({
4330
4331
  ...t.config,
4331
4332
  isDefault: t.config.isDefault(D),
4332
4333
  link: t.config.link(D),
@@ -4346,7 +4347,7 @@ const Ao = /* @__PURE__ */ be({
4346
4347
  var re, ce;
4347
4348
  if ((ce = (re = D.row.original) == null ? void 0 : re.items) != null && ce.length)
4348
4349
  return null;
4349
- const S = D.row.depth > 0, L = D.row.original, Q = !y(L.combinationKey).isDefault || L.orderFrom === X.F_ORDER_FROM.enum.NONE, G = !!D.getValue();
4350
+ const S = D.row.depth > 0, L = D.row.original, Q = !b(L.combinationKey).isDefault || L.orderFrom === X.F_ORDER_FROM.enum.NONE, G = !!D.getValue();
4350
4351
  return f(ze.FmCheckbox, {
4351
4352
  value: "default",
4352
4353
  modelValue: G,
@@ -4356,7 +4357,7 @@ const Ao = /* @__PURE__ */ be({
4356
4357
  if (S) {
4357
4358
  const se = (K = D.row.getParentRow()) == null ? void 0 : K.original;
4358
4359
  if (!se) return;
4359
- b(se._id, L.combinationKey ?? "", "isDefault", U);
4360
+ y(se._id, L.combinationKey ?? "", "isDefault", U);
4360
4361
  } else
4361
4362
  A(L._id, "isDefault", U);
4362
4363
  }
@@ -4394,7 +4395,7 @@ const Ao = /* @__PURE__ */ be({
4394
4395
  enableSorting: !1,
4395
4396
  cell: (D) => {
4396
4397
  var ce;
4397
- const S = D.getValue(), L = D.row.original, Q = !y(L.combinationKey).name || L.orderFrom === X.F_ORDER_FROM.enum.NONE, G = D.row.depth > 0, re = L.combinationKey ? Qn(L.combinationKey, Re().variants) : i.rules.group.linkAddonName ? (ce = ee.value[L._id]) == null ? void 0 : ce.name : null;
4398
+ const S = D.getValue(), L = D.row.original, Q = !b(L.combinationKey).name || L.orderFrom === X.F_ORDER_FROM.enum.NONE, G = D.row.depth > 0, re = L.combinationKey ? Qn(L.combinationKey, Re().variants) : i.rules.group.linkAddonName ? (ce = ee.value[L._id]) == null ? void 0 : ce.name : null;
4398
4399
  return Se("div", Se(ze.FmTextField, {
4399
4400
  modelValue: S,
4400
4401
  placeholder: re ?? "",
@@ -4405,7 +4406,7 @@ const Ao = /* @__PURE__ */ be({
4405
4406
  if (G) {
4406
4407
  const se = (K = D.row.getParentRow()) == null ? void 0 : K.original;
4407
4408
  if (!se) return;
4408
- b(se._id, L.combinationKey ?? "", "name", U || null);
4409
+ y(se._id, L.combinationKey ?? "", "name", U || null);
4409
4410
  } else
4410
4411
  A(L._id, "name", U || null);
4411
4412
  },
@@ -4417,7 +4418,7 @@ const Ao = /* @__PURE__ */ be({
4417
4418
  name: "keyboard_arrow_up",
4418
4419
  onClick: D.row.getToggleExpandedHandler(),
4419
4420
  class: ["cursor-pointer", "transition-transform", D.row.getIsExpanded() ? "transform rotate-180" : ""],
4420
- color: y(L.combinationKey).name ? void 0 : We.NeutralGray200
4421
+ color: b(L.combinationKey).name ? void 0 : We.NeutralGray200
4421
4422
  }) : void 0;
4422
4423
  }
4423
4424
  }));
@@ -4433,7 +4434,7 @@ const Ao = /* @__PURE__ */ be({
4433
4434
  },
4434
4435
  size: 100,
4435
4436
  cell: (D) => {
4436
- const S = D.getValue(), L = D.row.original, Q = !y(null).priceEdit || L.orderFrom === X.F_ORDER_FROM.enum.NONE, G = L.fallbackPrice, re = D.row.depth > 0;
4437
+ const S = D.getValue(), L = D.row.original, Q = !b(null).priceEdit || L.orderFrom === X.F_ORDER_FROM.enum.NONE, G = L.fallbackPrice, re = D.row.depth > 0;
4437
4438
  return Se(ut, {
4438
4439
  disable: Q,
4439
4440
  placeholder: G ? ft(G) : void 0,
@@ -4446,7 +4447,7 @@ const Ao = /* @__PURE__ */ be({
4446
4447
  if (re) {
4447
4448
  const K = (U = D.row.getParentRow()) == null ? void 0 : U.original;
4448
4449
  if (!K) return;
4449
- b(
4450
+ y(
4450
4451
  K._id,
4451
4452
  L.combinationKey ?? "",
4452
4453
  // @ts-ignore
@@ -4470,15 +4471,15 @@ const Ao = /* @__PURE__ */ be({
4470
4471
  return Se(On, {
4471
4472
  modelValue: S,
4472
4473
  fallback: Q,
4473
- disable: !y(L.combinationKey).orderFrom,
4474
+ disable: !b(L.combinationKey).orderFrom,
4474
4475
  required: !0,
4475
- editActiveOnly: y(L.combinationKey).orderFromActiveOnly,
4476
+ editActiveOnly: b(L.combinationKey).orderFromActiveOnly,
4476
4477
  "onUpdate:modelValue": (re) => {
4477
4478
  var ce;
4478
4479
  if (G) {
4479
4480
  const U = (ce = D.row.getParentRow()) == null ? void 0 : ce.original;
4480
4481
  if (!U) return;
4481
- b(
4482
+ y(
4482
4483
  U._id,
4483
4484
  L.combinationKey ?? "",
4484
4485
  // @ts-ignore
@@ -4504,7 +4505,7 @@ const Ao = /* @__PURE__ */ be({
4504
4505
  const S = D.row.original, L = S.orderFrom === X.F_ORDER_FROM.enum.NONE, Q = D.row.depth > 0;
4505
4506
  return f("div", {
4506
4507
  class: "flex items-center justify-end"
4507
- }, [y(null).priceTier && f(Mo, {
4508
+ }, [b(null).priceTier && f(Mo, {
4508
4509
  priceTiers: S.priceTiers,
4509
4510
  disabled: L,
4510
4511
  "onUpdate:priceTiers": (G) => {
@@ -4512,7 +4513,7 @@ const Ao = /* @__PURE__ */ be({
4512
4513
  if (Q) {
4513
4514
  const ce = (re = D.row.getParentRow()) == null ? void 0 : re.original;
4514
4515
  if (!ce) return;
4515
- b(
4516
+ y(
4516
4517
  ce._id,
4517
4518
  S.combinationKey ?? "",
4518
4519
  // @ts-ignore
@@ -4522,7 +4523,7 @@ const Ao = /* @__PURE__ */ be({
4522
4523
  } else
4523
4524
  A(S._id, "priceTiers", G);
4524
4525
  }
4525
- }, null), y(S.combinationKey).inventory && f(vn, {
4526
+ }, null), b(S.combinationKey).inventory && f(vn, {
4526
4527
  title: "Inventory",
4527
4528
  initialValue: S.inventoryBindings ?? [],
4528
4529
  name: S.name ?? S.fallbackName ?? "",
@@ -4532,7 +4533,7 @@ const Ao = /* @__PURE__ */ be({
4532
4533
  if (Q) {
4533
4534
  const ce = (re = D.row.getParentRow()) == null ? void 0 : re.original;
4534
4535
  if (!ce) return;
4535
- b(
4536
+ y(
4536
4537
  ce._id,
4537
4538
  S.combinationKey ?? "",
4538
4539
  // @ts-ignore
@@ -4561,7 +4562,7 @@ const Ao = /* @__PURE__ */ be({
4561
4562
  }, null)];
4562
4563
  }
4563
4564
  })
4564
- }), y(S.combinationKey).link && f(P("fm-button"), {
4565
+ }), b(S.combinationKey).link && f(P("fm-button"), {
4565
4566
  variant: et.Tertiary,
4566
4567
  prependIcon: "delete",
4567
4568
  textColor: We.NeutralGray400,
@@ -4574,8 +4575,8 @@ const Ao = /* @__PURE__ */ be({
4574
4575
  }]), V = R(() => ({
4575
4576
  code: c.value,
4576
4577
  name: !0,
4577
- price: y(null).price,
4578
- orderFrom: y(null).showOrderFrom
4578
+ price: b(null).price,
4579
+ orderFrom: b(null).showOrderFrom
4579
4580
  // action: rules(null).inventory || rules(null).link
4580
4581
  }));
4581
4582
  async function E() {
@@ -4610,7 +4611,7 @@ const Ao = /* @__PURE__ */ be({
4610
4611
  }
4611
4612
  });
4612
4613
  }
4613
- function b(D, S, L, Q) {
4614
+ function y(D, S, L, Q) {
4614
4615
  var U, K;
4615
4616
  const G = ve(t.group), re = (U = G.items[D].items) == null ? void 0 : U.findIndex((se) => se.combinationKey === S);
4616
4617
  if (!_t.isSet(re)) return;
@@ -4683,13 +4684,13 @@ const Ao = /* @__PURE__ */ be({
4683
4684
  const ne = Xn(), de = R(() => ne.breakpoints.value.xs);
4684
4685
  return (D, S) => {
4685
4686
  const L = P("fm-button"), Q = P("fm-table");
4686
- return O(), H(ge, null, [f(Ne, {
4687
+ return O(), q(ge, null, [f(Ne, {
4687
4688
  title: m(M)("menu.group.option.title"),
4688
4689
  "sub-title": D.config.link() && d.value ? m(M)("menu.group.option.subtitle") : ""
4689
4690
  }, {
4690
- "append-title": I(() => [D.config.link() ? (O(), H(ge, {
4691
+ "append-title": I(() => [D.config.link() ? (O(), q(ge, {
4691
4692
  key: 0
4692
- }, [d.value ? (O(), H("div", ms, [f(Qo, {
4693
+ }, [d.value ? (O(), q("div", ms, [f(Qo, {
4693
4694
  "categorized-items": D.categorizedItems,
4694
4695
  "initial-value": p.value,
4695
4696
  "show-variant": D.config.bindToVariant,
@@ -4710,7 +4711,7 @@ const Ao = /* @__PURE__ */ be({
4710
4711
  onClick: G
4711
4712
  }, null, 8, ["text-color", "border-color", "label", "onClick"])]),
4712
4713
  _: 1
4713
- }, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (O(), H("div", ps, [f(L, {
4714
+ }, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (O(), q("div", ps, [f(L, {
4714
4715
  "text-color": m(We).ColorPrimary,
4715
4716
  "border-color": m(We).ColorPrimary,
4716
4717
  variant: "secondary",
@@ -4721,7 +4722,7 @@ const Ao = /* @__PURE__ */ be({
4721
4722
  default: I(() => [T("div", hs, [T("div", fs, [f(Q, {
4722
4723
  "column-defs": w.value,
4723
4724
  "column-visibility": V.value,
4724
- draggable: !de.value && y(null).name,
4725
+ draggable: !de.value && b(null).name,
4725
4726
  "expanded-state": l.value ? {} : $.value,
4726
4727
  "get-sub-row": W,
4727
4728
  "page-size": 999,
@@ -4821,7 +4822,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
4821
4822
  let o = e;
4822
4823
  const a = t, i = Re(), r = Ot(), l = Xe(), s = je(), u = nt(tt(s)), { countDefaultItems: d, validateGroupItems: c, minMaxValidationRules: p } = gs(
4823
4824
  () => o.group
4824
- ), h = j(!1), v = j(!1), F = j(!1), y = (S) => {
4825
+ ), h = j(!1), v = j(!1), F = j(!1), b = (S) => {
4825
4826
  _t.isBoolean(S) ? v.value = S : v.value = !v.value;
4826
4827
  }, k = R(() => o.group ? o.config(o.group) : null), g = R(() => ro(k.value)), C = (S) => g.value.includes(S), N = R(() => [
4827
4828
  {
@@ -4880,8 +4881,8 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
4880
4881
  k.value.isOverride
4881
4882
  )[0];
4882
4883
  }
4883
- const b = j(Fe.clone(o.group)), _ = yt(
4884
- () => !Fe.isEqual(o.group, b.value),
4884
+ const y = j(Fe.clone(o.group)), _ = yt(
4885
+ () => !Fe.isEqual(o.group, y.value),
4885
4886
  () => {
4886
4887
  v.value = !1;
4887
4888
  }
@@ -4942,12 +4943,12 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
4942
4943
  };
4943
4944
  a("submit:group", L);
4944
4945
  }
4945
- y(!1);
4946
+ b(!1);
4946
4947
  }
4947
4948
  Ee(
4948
4949
  () => v.value,
4949
4950
  async (S) => {
4950
- a("status:show", S), S && (await Yn(), b.value = Fe.clone(o.group));
4951
+ a("status:show", S), S && (await Yn(), y.value = Fe.clone(o.group));
4951
4952
  }
4952
4953
  );
4953
4954
  const ee = R(() => {
@@ -4972,7 +4973,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
4972
4973
  (S) => o.action === "add" ? !i.groups.find((Q) => Q.name === S) || ne("menu.group.validation.name_duplicate") : o.action === "update" ? !i.groups.find((Q) => Q.name === S && Q._id !== o.group._id) || ne("menu.group.validation.name_duplicate") : !0
4973
4974
  ]), J = R(() => w.value ? W.value.every((S) => S(w.value) === !0) : !1);
4974
4975
  n({
4975
- trigger: y,
4976
+ trigger: b,
4976
4977
  show: v
4977
4978
  });
4978
4979
  const { t: ne } = ye(), de = R(() => {
@@ -4993,8 +4994,8 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
4993
4994
  return (S, L) => {
4994
4995
  var Oe;
4995
4996
  const Q = P("fm-button"), G = P("FmTooltip"), re = P("fm-text-field"), ce = P("fm-stepper-field"), U = P("FmFormGroup"), K = P("fm-radio"), se = P("fm-radio-group"), Ae = P("fm-switch"), ke = P("fm-side-sheet");
4996
- return O(), H(ge, null, [
4997
- Ce(S.$slots, "default", { trigger: y }),
4997
+ return O(), q(ge, null, [
4998
+ Ce(S.$slots, "default", { trigger: b }),
4998
4999
  f(ke, {
4999
5000
  id: "group-form",
5000
5001
  modelValue: v.value,
@@ -5028,7 +5029,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5028
5029
  ])
5029
5030
  ]),
5030
5031
  default: I(() => [
5031
- S.group ? (O(), H("div", ys, [
5032
+ S.group ? (O(), q("div", ys, [
5032
5033
  Ce(S.$slots, "variant-section"),
5033
5034
  f(ei, null, {
5034
5035
  default: I(() => {
@@ -5037,7 +5038,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5037
5038
  f(re, {
5038
5039
  modelValue: w.value,
5039
5040
  "onUpdate:modelValue": L[1] || (L[1] = (me) => w.value = me),
5040
- placeholder: (pe = b.value) == null ? void 0 : pe.name,
5041
+ placeholder: (pe = y.value) == null ? void 0 : pe.name,
5041
5042
  disabled: C("name"),
5042
5043
  rules: C("name") ? [] : W.value,
5043
5044
  autofocus: "",
@@ -5051,7 +5052,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5051
5052
  }, {
5052
5053
  content: I(() => [
5053
5054
  T("div", _s, [
5054
- (O(!0), H(ge, null, Te(de.value, (me) => (O(), H("div", {
5055
+ (O(!0), q(ge, null, Te(de.value, (me) => (O(), q("div", {
5055
5056
  key: me.locale
5056
5057
  }, le(me.name) + " (" + le(me.localeDisplay) + ") ", 1))), 128))
5057
5058
  ])
@@ -5098,7 +5099,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5098
5099
  ]),
5099
5100
  _: 1
5100
5101
  }, 8, ["model-value", "rules"]),
5101
- k.value.type ? (O(), q(ot, {
5102
+ k.value.type ? (O(), Y(ot, {
5102
5103
  key: 0,
5103
5104
  label: m(ne)("menu.common.labels.group_type")
5104
5105
  }, {
@@ -5109,7 +5110,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5109
5110
  "onUpdate:modelValue": L[4] || (L[4] = (me) => E(me))
5110
5111
  }, {
5111
5112
  default: I(() => [
5112
- (O(!0), H(ge, null, Te(N.value, (me) => (O(), q(K, {
5113
+ (O(!0), q(ge, null, Te(N.value, (me) => (O(), Y(K, {
5113
5114
  key: me.value,
5114
5115
  label: m(ne)(`menu.group.types.${me.label.toLowerCase()}`),
5115
5116
  value: me.value
@@ -5135,7 +5136,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5135
5136
  ]),
5136
5137
  _: 1
5137
5138
  }, 8, ["label"]),
5138
- ee.value ? (O(), q(Ne, {
5139
+ ee.value ? (O(), Y(Ne, {
5139
5140
  key: 1,
5140
5141
  title: m(ne)("menu.group.form.tagging.title"),
5141
5142
  "sub-title": m(ne)("menu.group.form.tagging.subtitle")
@@ -5179,12 +5180,12 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5179
5180
  ]),
5180
5181
  _: 3
5181
5182
  }, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]),
5182
- S.group ? (O(), q(_n, {
5183
+ S.group ? (O(), Y(_n, {
5183
5184
  key: 0,
5184
5185
  modelValue: F.value,
5185
5186
  "onUpdate:modelValue": L[10] || (L[10] = (pe) => F.value = pe),
5186
5187
  title: m(ne)("menu.group.title"),
5187
- name: w.value ?? ((Oe = b.value) == null ? void 0 : Oe.name) ?? "",
5188
+ name: w.value ?? ((Oe = y.value) == null ? void 0 : Oe.name) ?? "",
5188
5189
  "name-locale": S.group.name_locale,
5189
5190
  "onUpdate:name": V,
5190
5191
  "onUpdate:nameLocale": M
@@ -5210,9 +5211,9 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5210
5211
  value: M.combinationKey || ""
5211
5212
  }))
5212
5213
  ), p = R(() => {
5213
- var b, _;
5214
+ var y, _;
5214
5215
  if (!k.value) return null;
5215
- const M = ((_ = (b = s.value[d.value]) == null ? void 0 : b.groups) == null ? void 0 : _.find((x) => x._id === o.groupId)) || {
5216
+ const M = ((_ = (y = s.value[d.value]) == null ? void 0 : y.groups) == null ? void 0 : _.find((x) => x._id === o.groupId)) || {
5216
5217
  _id: o.groupId,
5217
5218
  groupKey: ""
5218
5219
  }, V = i.state.menu.modules.group.find((x) => x._id === o.groupId), E = Object.entries({ ...M, items: void 0 }).filter(([, x]) => !!x), A = {
@@ -5235,13 +5236,13 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5235
5236
  return new ao(i, l.updateMenu, r).mapGroups([A], !0)[0];
5236
5237
  });
5237
5238
  function h(M) {
5238
- var A, b;
5239
+ var A, y;
5239
5240
  const w = (A = s.value[d.value].groups) == null ? void 0 : A.findIndex(
5240
5241
  (_) => _._id === o.groupId
5241
5242
  ), V = ve(s.value), E = { ...Bt(M), _id: o.groupId, groupKey: "" };
5242
5243
  (w ?? -1) < 0 ? V[d.value] = {
5243
5244
  ...V[d.value],
5244
- groups: [...((b = V[d.value]) == null ? void 0 : b.groups) || [], E]
5245
+ groups: [...((y = V[d.value]) == null ? void 0 : y.groups) || [], E]
5245
5246
  } : V[d.value].groups[w] = E, s.value = V;
5246
5247
  }
5247
5248
  function v(M) {
@@ -5268,7 +5269,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5268
5269
  isOverride: !0
5269
5270
  };
5270
5271
  }
5271
- function y() {
5272
+ function b() {
5272
5273
  const M = s.value.map((w) => {
5273
5274
  var V;
5274
5275
  return {
@@ -5295,7 +5296,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5295
5296
  const { t: C } = ye();
5296
5297
  return (M, w) => {
5297
5298
  const V = P("fm-select"), E = P("fm-button"), A = P("fm-card");
5298
- return O(), q(Eo, {
5299
+ return O(), Y(Eo, {
5299
5300
  ref_key: "baseFormRef",
5300
5301
  ref: g,
5301
5302
  "allow-refund-inventory": !0,
@@ -5304,15 +5305,15 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5304
5305
  group: p.value,
5305
5306
  action: "update",
5306
5307
  title: m(C)("menu.group.update"),
5307
- "onUpdate:group": w[3] || (w[3] = (b) => h(b)),
5308
- "onSubmit:group": w[4] || (w[4] = (b) => y()),
5309
- "onStatus:show": w[5] || (w[5] = (b) => k.value = b)
5308
+ "onUpdate:group": w[3] || (w[3] = (y) => h(y)),
5309
+ "onSubmit:group": w[4] || (w[4] = (y) => b()),
5310
+ "onStatus:show": w[5] || (w[5] = (y) => k.value = y)
5310
5311
  }, {
5311
- default: I(({ trigger: b }) => [
5312
- Ce(M.$slots, "default", { trigger: b })
5312
+ default: I(({ trigger: y }) => [
5313
+ Ce(M.$slots, "default", { trigger: y })
5313
5314
  ]),
5314
5315
  "variant-section": I(() => [
5315
- u.value ? (O(), q(A, {
5316
+ u.value ? (O(), Y(A, {
5316
5317
  key: 0,
5317
5318
  class: "p-16 bg-fm-color-neutral-gray-100 space-y-24",
5318
5319
  variant: "outlined"
@@ -5322,7 +5323,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5322
5323
  T("div", Cs, [
5323
5324
  f(V, {
5324
5325
  modelValue: u.value,
5325
- "onUpdate:modelValue": w[0] || (w[0] = (b) => u.value = b),
5326
+ "onUpdate:modelValue": w[0] || (w[0] = (y) => u.value = y),
5326
5327
  items: c.value,
5327
5328
  class: "flex-1"
5328
5329
  }, null, 8, ["modelValue", "items"]),
@@ -5331,13 +5332,13 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5331
5332
  variant: m(et).Tertiary,
5332
5333
  "prepend-icon": "keyboard_arrow_left",
5333
5334
  size: "lg",
5334
- onClick: w[1] || (w[1] = (b) => v("left"))
5335
+ onClick: w[1] || (w[1] = (y) => v("left"))
5335
5336
  }, null, 8, ["variant"]),
5336
5337
  f(E, {
5337
5338
  variant: m(et).Tertiary,
5338
5339
  "prepend-icon": "keyboard_arrow_right",
5339
5340
  size: "lg",
5340
- onClick: w[2] || (w[2] = (b) => v("right"))
5341
+ onClick: w[2] || (w[2] = (y) => v("right"))
5341
5342
  }, null, 8, ["variant"])
5342
5343
  ])
5343
5344
  ])
@@ -5362,20 +5363,20 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5362
5363
  },
5363
5364
  setup(e) {
5364
5365
  const n = e, t = Xe(), { emitData: o, emitAction: a } = bn(), i = Re(), r = R(() => i.rules.group), l = R(() => i.groups);
5365
- function s(y) {
5366
- return ve(y ?? []).sort((g, C) => g.position - C.position);
5366
+ function s(b) {
5367
+ return ve(b ?? []).sort((g, C) => g.position - C.position);
5367
5368
  }
5368
- const u = R(() => s(l.value).reduce((y, k) => (y[k._id] = {
5369
+ const u = R(() => s(l.value).reduce((b, k) => (b[k._id] = {
5369
5370
  name: k.name,
5370
5371
  type: jt(i.items, k.items)
5371
- }, y), {})), d = R(() => [
5372
- ...Object.entries(u.value).map(([y, { name: k, type: g }]) => ({
5372
+ }, b), {})), d = R(() => [
5373
+ ...Object.entries(u.value).map(([b, { name: k, type: g }]) => ({
5373
5374
  label: `${k} ${r.value.type ? `(${rn(g)})` : ""}`.trim(),
5374
- value: y
5375
+ value: b
5375
5376
  }))
5376
5377
  ]), c = R(() => !!i.state.currentCatalogId || !!i.state.currentSchedulerId);
5377
5378
  R(() => {
5378
- const y = !i.state.currentSchedulerId, k = i.rules.group.type, g = i.version == X.F_MENU_VERSION.enum.v3, C = i.rules.item.orderFromActiveOnly, N = i.rules.item.bindToVariant;
5379
+ const b = !i.state.currentSchedulerId, k = i.rules.group.type, g = i.version == X.F_MENU_VERSION.enum.v3, C = i.rules.item.orderFromActiveOnly, N = i.rules.item.bindToVariant;
5379
5380
  return function(M) {
5380
5381
  return {
5381
5382
  isDefault: (w) => !c.value && !w,
@@ -5385,10 +5386,10 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5385
5386
  price: M.type != X.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
5386
5387
  priceEdit: !0,
5387
5388
  priceTier: i.isV4,
5388
- inventory: y ? g ? !c.value && M.type == X.F_ADDON_GROUP_TYPE.enum.NORMAL : !c.value : !1,
5389
- orderFrom: (w) => y ? g ? M.type == X.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? c.value : !!c.value == !w : c.value : !1,
5389
+ inventory: b ? g ? !c.value && M.type == X.F_ADDON_GROUP_TYPE.enum.NORMAL : !c.value : !1,
5390
+ orderFrom: (w) => b ? g ? M.type == X.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? c.value : !!c.value == !w : c.value : !1,
5390
5391
  orderFromActiveOnly: C,
5391
- showOrderFrom: y ? g ? c.value ? !0 : M.type == X.F_ADDON_GROUP_TYPE.enum.PRODUCT : c.value : !1,
5392
+ showOrderFrom: b ? g ? c.value ? !0 : M.type == X.F_ADDON_GROUP_TYPE.enum.PRODUCT : c.value : !1,
5392
5393
  bindToVariant: N,
5393
5394
  isOverride: c.value,
5394
5395
  isItemGroup: !1,
@@ -5405,9 +5406,9 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5405
5406
  const p = j(ve(n.groupIds || [])), h = j(""), { t: v } = ye(), F = () => {
5406
5407
  o(p.value), a("primary"), t.close();
5407
5408
  };
5408
- return (y, k) => {
5409
+ return (b, k) => {
5409
5410
  const g = P("FmSearch"), C = P("FmCheckbox"), N = P("FmButton");
5410
- return d.value.length > 0 ? (O(), H("div", Rs, [
5411
+ return d.value.length > 0 ? (O(), q("div", Rs, [
5411
5412
  T("div", null, [
5412
5413
  f(g, {
5413
5414
  autofocus: "",
@@ -5418,7 +5419,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5418
5419
  ]),
5419
5420
  T("div", As, [
5420
5421
  T("div", null, [
5421
- (O(!0), H(ge, null, Te(d.value, ($) => (O(), H("div", {
5422
+ (O(!0), q(ge, null, Te(d.value, ($) => (O(), q("div", {
5422
5423
  key: $.value
5423
5424
  }, [
5424
5425
  ct(f(C, {
@@ -5459,7 +5460,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5459
5460
  }, null, 8, ["label"])
5460
5461
  ])
5461
5462
  ])
5462
- ])) : (O(), H("div", Ts, [
5463
+ ])) : (O(), q("div", Ts, [
5463
5464
  T("div", Vs, [
5464
5465
  T("p", zs, le(m(v)("menu.common.empty.no_group.title")), 1),
5465
5466
  T("p", Is, le(m(v)("menu.common.empty.no_group.subtitle")), 1)
@@ -5535,10 +5536,10 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5535
5536
  })})` : z;
5536
5537
  });
5537
5538
  }
5538
- const y = R(() => v(c.value).reduce((_, x) => (_[x._id] = {
5539
+ const b = R(() => v(c.value).reduce((_, x) => (_[x._id] = {
5539
5540
  name: x.name,
5540
5541
  type: jt(a.items, x.items)
5541
- }, _), {})), k = R(() => [...Object.entries(y.value).map(([_, {
5542
+ }, _), {})), k = R(() => [...Object.entries(b.value).map(([_, {
5542
5543
  name: x,
5543
5544
  type: B
5544
5545
  }]) => ({
@@ -5560,7 +5561,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5560
5561
  cell: (_) => {
5561
5562
  var B;
5562
5563
  const x = _.row.original._id;
5563
- return rn((B = y.value[x]) == null ? void 0 : B.type);
5564
+ return rn((B = b.value[x]) == null ? void 0 : B.type);
5564
5565
  }
5565
5566
  }, {
5566
5567
  accessorKey: "items",
@@ -5609,7 +5610,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5609
5610
  // combinationKey: varaintName
5610
5611
  fullCombinations: t.fullCombinations,
5611
5612
  groupId: x,
5612
- "onUpdate:combinations": b
5613
+ "onUpdate:combinations": y
5613
5614
  }, {
5614
5615
  default: ({
5615
5616
  trigger: B
@@ -5636,7 +5637,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5636
5637
  var x;
5637
5638
  for (const B of _)
5638
5639
  if (ai(a.state.menu, B, t.form._id)) {
5639
- const ee = (x = y.value[B]) == null ? void 0 : x.name;
5640
+ const ee = (x = b.value[B]) == null ? void 0 : x.name;
5640
5641
  o.open({
5641
5642
  type: "error",
5642
5643
  message: l("menu.product.form.group.circularError", {
@@ -5691,7 +5692,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5691
5692
  var B;
5692
5693
  if (!_) return !1;
5693
5694
  if (d.value.overrideProductGroup) return !0;
5694
- switch ((B = y.value[_]) == null ? void 0 : B.type) {
5695
+ switch ((B = b.value[_]) == null ? void 0 : B.type) {
5695
5696
  case X.F_ADDON_GROUP_TYPE.enum.DYNAMIC:
5696
5697
  return !0;
5697
5698
  case X.F_ADDON_GROUP_TYPE.enum.PRODUCT:
@@ -5706,7 +5707,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5706
5707
  const A = (_) => {
5707
5708
  var x;
5708
5709
  return (x = k.value.find((B) => B.value === _)) == null ? void 0 : x.label;
5709
- }, b = (_) => {
5710
+ }, y = (_) => {
5710
5711
  var x;
5711
5712
  w.value ? s("update:form", "variant", {
5712
5713
  variantGroupIds: ((x = t.form.variant) == null ? void 0 : x.variantGroupIds) || [],
@@ -5715,7 +5716,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5715
5716
  };
5716
5717
  return (_, x) => {
5717
5718
  const B = P("FmButton"), ee = P("FmTable");
5718
- return O(), q(Ne, {
5719
+ return O(), Y(Ne, {
5719
5720
  title: m(l)("menu.product.form.group.title"),
5720
5721
  "sub-title": m(l)("menu.product.form.group.subtitle")
5721
5722
  }, {
@@ -5729,7 +5730,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5729
5730
  default: I(() => [f(Ro, null, {
5730
5731
  default: I(() => {
5731
5732
  var Z;
5732
- return [((Z = h.value) == null ? void 0 : Z.length) > 0 ? (O(), q(ee, {
5733
+ return [((Z = h.value) == null ? void 0 : Z.length) > 0 ? (O(), Y(ee, {
5733
5734
  key: 0,
5734
5735
  "column-defs": g.value,
5735
5736
  "column-visibility": C.value,
@@ -5801,12 +5802,12 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5801
5802
  if ((((V = M == null ? void 0 : M.variantCombinations) == null ? void 0 : V.length) ?? 0) > 0 && M) {
5802
5803
  const A = M.variantCombinations.findIndex((_) => _.combinationKey === C);
5803
5804
  if (A < 0) return;
5804
- const b = Fe.clone(M.variantCombinations);
5805
- b[A].inventoryBindings = N, $ = {
5805
+ const y = Fe.clone(M.variantCombinations);
5806
+ y[A].inventoryBindings = N, $ = {
5806
5807
  ...$,
5807
5808
  variant: {
5808
5809
  variantGroupIds: ((E = $.variant) == null ? void 0 : E.variantGroupIds) || [],
5809
- variantCombinations: b
5810
+ variantCombinations: y
5810
5811
  }
5811
5812
  };
5812
5813
  } else
@@ -5869,11 +5870,11 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5869
5870
  })]) : null;
5870
5871
  }
5871
5872
  }]);
5872
- const y = j([]);
5873
+ const b = j([]);
5873
5874
  async function k({
5874
5875
  _id: C
5875
5876
  }) {
5876
- for (const N of y.value)
5877
+ for (const N of b.value)
5877
5878
  N.getKey() === C && N.trigger(!0);
5878
5879
  }
5879
5880
  const g = to();
@@ -5881,15 +5882,15 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5881
5882
  g.readInventory();
5882
5883
  }), (C, N) => {
5883
5884
  const $ = P("FmStepperField");
5884
- return O(), H(ge, null, [f(Ne, {
5885
+ return O(), q(ge, null, [f(Ne, {
5885
5886
  title: m(t)("menu.inventory.title"),
5886
5887
  subTitle: m(t)("menu.inventory.subtitle")
5887
5888
  }, {
5888
- default: I(() => [T("div", Us, [T("div", $s, [(O(!0), H(ge, null, Te(v.value, (M) => (O(), q(m(vn), {
5889
+ default: I(() => [T("div", Us, [T("div", $s, [(O(!0), q(ge, null, Te(v.value, (M) => (O(), Y(m(vn), {
5889
5890
  key: M._id,
5890
5891
  ref_for: !0,
5891
5892
  ref_key: "inventoryManagerForms",
5892
- ref: y,
5893
+ ref: b,
5893
5894
  title: m(t)("menu.inventory.dialog.title", {
5894
5895
  name: h.value
5895
5896
  }),
@@ -5904,7 +5905,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5904
5905
  onRowClick: k
5905
5906
  }, null, 8, ["row-data"])])])]),
5906
5907
  _: 1
5907
- }, 8, ["title", "subTitle"]), !C.isOverride && m(i).isV4 ? (O(), H(ge, {
5908
+ }, 8, ["title", "subTitle"]), !C.isOverride && m(i).isV4 ? (O(), q(ge, {
5908
5909
  key: 0
5909
5910
  }, [N[0] || (N[0] = T("div", {
5910
5911
  class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
@@ -5983,7 +5984,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
5983
5984
  xn("apply-pricing", (g) => {
5984
5985
  l("update:form", "price", Pe.Dinero.fromNumber({ number: g }).toObject());
5985
5986
  });
5986
- async function y() {
5987
+ async function b() {
5987
5988
  const g = t.form.name || "";
5988
5989
  if (!g) {
5989
5990
  const C = document.getElementById("product-name");
@@ -6004,7 +6005,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6004
6005
  });
6005
6006
  return (g, C) => {
6006
6007
  const N = P("fm-select"), $ = P("FmButton"), M = P("fm-checkbox"), w = P("fm-text-field"), V = Wn("tooltip");
6007
- return O(), q(Ne, {
6008
+ return O(), Y(Ne, {
6008
6009
  title: m(r)("menu.product.form.price.title")
6009
6010
  }, {
6010
6011
  default: I(() => {
@@ -6028,7 +6029,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6028
6029
  ct(f(m(Jn), {
6029
6030
  "pure-styling": "",
6030
6031
  class: "shrink-0 scale-75",
6031
- onClick: y
6032
+ onClick: b
6032
6033
  }, null, 512), [
6033
6034
  [V, m(an)("Suggest pricing")]
6034
6035
  ])
@@ -6048,7 +6049,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6048
6049
  "onUpdate:modelValue": C[1] || (C[1] = (A) => l("update:form", "taxes", [m(Xt).decodeTax(A)]))
6049
6050
  }, null, 8, ["disabled", "items", "label", "model-value"])
6050
6051
  ]),
6051
- !g.isOverride && m(a).isV4 ? (O(), q(ot, {
6052
+ !g.isOverride && m(a).isV4 ? (O(), Y(ot, {
6052
6053
  key: 0,
6053
6054
  label: m(r)("menu.price_tier.price_group"),
6054
6055
  description: m(r)("menu.price_tier.description")
@@ -6064,12 +6065,12 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6064
6065
  default: I(() => {
6065
6066
  var A;
6066
6067
  return [
6067
- g.isOverride ? oe("", !0) : (O(), q(Ao, {
6068
+ g.isOverride ? oe("", !0) : (O(), Y(Ao, {
6068
6069
  key: 0,
6069
6070
  "price-tiers": m(i).priceTiers.value,
6070
6071
  "model-value": g.form.priceTiers || ((A = g.fallback) == null ? void 0 : A.priceTiers) || {},
6071
6072
  "allow-negative-price": !1,
6072
- "onUpdate:modelValue": C[2] || (C[2] = (b) => l("update:form", "priceTiers", b))
6073
+ "onUpdate:modelValue": C[2] || (C[2] = (y) => l("update:form", "priceTiers", y))
6073
6074
  }, null, 8, ["price-tiers", "model-value"]))
6074
6075
  ];
6075
6076
  }),
@@ -6079,7 +6080,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6079
6080
  label: m(r)("menu.product.form.price.settings.title")
6080
6081
  }, {
6081
6082
  default: I(() => {
6082
- var A, b, _;
6083
+ var A, y, _;
6083
6084
  return [
6084
6085
  T("div", Bs, [
6085
6086
  f(M, {
@@ -6099,12 +6100,12 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6099
6100
  sublabel: m(r)("menu.product.form.price.settings.sell_by_unit.sublabel"),
6100
6101
  "onUpdate:modelValue": d
6101
6102
  }, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
6102
- u.value ? (O(), H("div", js, [
6103
+ u.value ? (O(), q("div", js, [
6103
6104
  T("p", Ks, le(m(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
6104
6105
  T("div", Ws, [
6105
6106
  f(w, {
6106
6107
  disabled: !s.value.unit,
6107
- "model-value": g.form.perXUnit || ((b = g.fallback) == null ? void 0 : b.perXUnit) || null,
6108
+ "model-value": g.form.perXUnit || ((y = g.fallback) == null ? void 0 : y.perXUnit) || null,
6108
6109
  rules: [
6109
6110
  (x) => !!x || m(r)("menu.product.form.price.settings.sell_by_unit.per_unit.required"),
6110
6111
  (x) => !x || x > 0 || m(r)("menu.product.form.price.settings.sell_by_unit.per_unit.min")
@@ -6129,14 +6130,14 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6129
6130
  ])
6130
6131
  ])) : oe("", !0)
6131
6132
  ]),
6132
- s.value.costing ? (O(), H("div", Hs, [
6133
+ s.value.costing ? (O(), q("div", Hs, [
6133
6134
  f(M, {
6134
6135
  "model-value": !!g.form.costing,
6135
6136
  value: !!g.form.costing,
6136
6137
  label: m(r)("menu.product.form.price.settings.track_costing.label"),
6137
6138
  "onUpdate:modelValue": C[5] || (C[5] = (x) => l("update:form", "costing", x ? m(Pe.Dinero).zero().toObject() : void 0))
6138
6139
  }, null, 8, ["model-value", "value", "label"]),
6139
- g.form.costing ? (O(), H("div", qs, [
6140
+ g.form.costing ? (O(), q("div", qs, [
6140
6141
  T("div", Xs, [
6141
6142
  f(ut, {
6142
6143
  class: "w-full",
@@ -6149,7 +6150,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6149
6150
  ])
6150
6151
  ])) : oe("", !0)
6151
6152
  ])) : oe("", !0),
6152
- s.value.minPrice ? (O(), H("div", Zs, [
6153
+ s.value.minPrice ? (O(), q("div", Zs, [
6153
6154
  f(M, {
6154
6155
  disabled: !s.value.minPrice || g.isAddon,
6155
6156
  "model-value": !!g.form.minPrice,
@@ -6159,7 +6160,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6159
6160
  }, null, 8, ["disabled", "model-value", "value", "label"]),
6160
6161
  T("div", Qs, [
6161
6162
  T("div", Js, [
6162
- g.form.minPrice ? (O(), q(ut, {
6163
+ g.form.minPrice ? (O(), Y(ut, {
6163
6164
  key: 0,
6164
6165
  max: m(Pe.Dinero).fromFdoDinero(g.form.price).toUnit(),
6165
6166
  min: 0,
@@ -6231,12 +6232,12 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6231
6232
  }
6232
6233
  ), (c, p) => {
6233
6234
  const h = P("fm-text-field"), v = P("fm-button"), F = P("fm-side-sheet");
6234
- return O(), H(ge, null, [
6235
+ return O(), q(ge, null, [
6235
6236
  Ce(c.$slots, "default", { trigger: u }),
6236
6237
  f(F, {
6237
6238
  id: "variant-form",
6238
6239
  modelValue: s.value,
6239
- "onUpdate:modelValue": p[3] || (p[3] = (y) => s.value = y),
6240
+ "onUpdate:modelValue": p[3] || (p[3] = (b) => s.value = b),
6240
6241
  "is-container": m(ze).FmForm,
6241
6242
  "is-container-props": {
6242
6243
  onValidationSuccess: d,
@@ -6269,22 +6270,22 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6269
6270
  T("div", nl, [
6270
6271
  f(h, {
6271
6272
  modelValue: r.value.name,
6272
- "onUpdate:modelValue": p[0] || (p[0] = (y) => r.value.name = y),
6273
+ "onUpdate:modelValue": p[0] || (p[0] = (b) => r.value.name = b),
6273
6274
  rules: [
6274
- (y) => y ? !0 : m(n)("menu.common.validation.required", {
6275
+ (b) => b ? !0 : m(n)("menu.common.validation.required", {
6275
6276
  field: m(n)("menu.print_dept.columns.name").toLowerCase()
6276
6277
  })
6277
6278
  ],
6278
6279
  autofocus: "",
6279
6280
  label: m(n)("menu.print_dept.columns.name")
6280
6281
  }, null, 8, ["modelValue", "rules", "label"]),
6281
- c.applyProduct ? (O(), q(vi, {
6282
+ c.applyProduct ? (O(), Y(vi, {
6282
6283
  key: 0,
6283
6284
  overrides: r.value.usedBy || [],
6284
6285
  "select-variant": !1,
6285
6286
  editable: "",
6286
6287
  title: m(n)("menu.print_dept.columns.products"),
6287
- "onUpdate:overrides": p[1] || (p[1] = (y) => r.value.usedBy = y)
6288
+ "onUpdate:overrides": p[1] || (p[1] = (b) => r.value.usedBy = b)
6288
6289
  }, null, 8, ["overrides", "title"])) : oe("", !0)
6289
6290
  ])
6290
6291
  ]),
@@ -6355,7 +6356,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6355
6356
  department: C
6356
6357
  });
6357
6358
  }
6358
- const y = R(() => [
6359
+ const b = R(() => [
6359
6360
  {
6360
6361
  label: a("menu.product.form.print.kds.options.all.label"),
6361
6362
  value: !1,
@@ -6372,13 +6373,13 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6372
6373
  () => F(s.value[s.value.length - 1]._id, !0)
6373
6374
  ), (k, g) => {
6374
6375
  const C = P("fm-switch"), N = P("fm-radio"), $ = P("fm-radio-group"), M = P("fm-button"), w = P("fm-checkbox");
6375
- return O(), q(Ne, {
6376
+ return O(), Y(Ne, {
6376
6377
  title: m(a)("menu.product.form.print.title")
6377
6378
  }, {
6378
6379
  default: I(() => {
6379
6380
  var V;
6380
6381
  return [
6381
- l.value.printConfig ? (O(), q(ot, {
6382
+ l.value.printConfig ? (O(), Y(ot, {
6382
6383
  key: 0,
6383
6384
  label: m(a)("menu.product.form.print.config.label")
6384
6385
  }, {
@@ -6403,7 +6404,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6403
6404
  }, {
6404
6405
  default: I(() => [
6405
6406
  T("div", rl, [
6406
- (O(!0), H(ge, null, Te(y.value, (E, A) => (O(), q(N, {
6407
+ (O(!0), q(ge, null, Te(b.value, (E, A) => (O(), Y(N, {
6407
6408
  key: A,
6408
6409
  label: E.label,
6409
6410
  sublabel: E.description,
@@ -6417,7 +6418,7 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6417
6418
  label: m(a)("menu.product.form.print.routes.label")
6418
6419
  }, {
6419
6420
  default: I(() => [
6420
- d.value.length ? (O(), q(m(oo), {
6421
+ d.value.length ? (O(), Y(m(oo), {
6421
6422
  key: 0,
6422
6423
  "item-key": (E) => E,
6423
6424
  "model-value": d.value,
@@ -6426,13 +6427,13 @@ const bs = { class: "fm-typo-en-title-md-600" }, ys = {
6426
6427
  class: "space-y-16"
6427
6428
  }, {
6428
6429
  item: I(({ element: E }) => {
6429
- var A, b, _, x, B;
6430
+ var A, y, _, x, B;
6430
6431
  return [
6431
6432
  T("div", sl, [
6432
6433
  T("div", ll, [
6433
- u.value ? (O(), q(M, {
6434
+ u.value ? (O(), Y(M, {
6434
6435
  key: 0,
6435
- disabled: !((b = (A = t.form.print) == null ? void 0 : A.department) != null && b.includes(E)),
6436
+ disabled: !((y = (A = t.form.print) == null ? void 0 : A.department) != null && y.includes(E)),
6436
6437
  class: "handle",
6437
6438
  "prepend-icon": "drag_handle",
6438
6439
  variant: "tertiary",
@@ -6556,9 +6557,9 @@ const ml = {
6556
6557
  } : {
6557
6558
  label: r("menu.product.form.takeaway.options.no_preset"),
6558
6559
  value: null
6559
- }, ...o.takeaways.map((y) => ({
6560
- label: y.name,
6561
- value: y._id
6560
+ }, ...o.takeaways.map((b) => ({
6561
+ label: b.name,
6562
+ value: b._id
6562
6563
  }))]), c = j([{
6563
6564
  accessorKey: "name",
6564
6565
  enableSorting: !1,
@@ -6567,8 +6568,8 @@ const ml = {
6567
6568
  accessorKey: "takeaway",
6568
6569
  enableSorting: !1,
6569
6570
  header: () => r("menu.product.form.takeaway.columns.takeaway"),
6570
- cell: (y) => {
6571
- const k = y.getValue(), g = y.row.original;
6571
+ cell: (b) => {
6572
+ const k = b.getValue(), g = b.row.original;
6572
6573
  return Se(di, {
6573
6574
  action: "add",
6574
6575
  applyProduct: !1,
@@ -6608,49 +6609,49 @@ const ml = {
6608
6609
  });
6609
6610
  }
6610
6611
  }]), p = R(() => {
6611
- const y = o.state.featureFlags.showTakeawayAvailability, k = o.rules.item.takeawayConfig;
6612
+ const b = o.state.featureFlags.showTakeawayAvailability, k = o.rules.item.takeawayConfig;
6612
6613
  return {
6613
- app: k && y.app,
6614
- pos: k && y.pos
6614
+ app: k && b.app,
6615
+ pos: k && b.pos
6615
6616
  };
6616
6617
  });
6617
- function h(y) {
6618
+ function h(b) {
6618
6619
  return (k) => {
6619
6620
  const g = t.form.takeawayConfig, C = {
6620
6621
  pos: (g == null ? void 0 : g.pos) ?? !0,
6621
6622
  app: (g == null ? void 0 : g.app) ?? !0,
6622
- [y]: k
6623
+ [b]: k
6623
6624
  };
6624
6625
  l("update:form", "takeawayConfig", C);
6625
6626
  };
6626
6627
  }
6627
6628
  const v = R({
6628
6629
  get() {
6629
- var y;
6630
- return ((y = t.form.takeawayConfig) == null ? void 0 : y.pos) ?? !0;
6630
+ var b;
6631
+ return ((b = t.form.takeawayConfig) == null ? void 0 : b.pos) ?? !0;
6631
6632
  },
6632
6633
  set: h("pos")
6633
6634
  }), F = R({
6634
6635
  get() {
6635
- var y;
6636
- return ((y = t.form.takeawayConfig) == null ? void 0 : y.app) ?? !0;
6636
+ var b;
6637
+ return ((b = t.form.takeawayConfig) == null ? void 0 : b.app) ?? !0;
6637
6638
  },
6638
6639
  set: h("app")
6639
6640
  });
6640
- return (y, k) => {
6641
+ return (b, k) => {
6641
6642
  const g = P("FmCheckbox"), C = P("fm-table");
6642
- return O(), q(Ne, {
6643
+ return O(), Y(Ne, {
6643
6644
  title: m(r)("menu.product.form.takeaway.title"),
6644
6645
  "sub-title": m(r)("menu.product.form.takeaway.subtitle")
6645
6646
  }, {
6646
- default: I(() => [T("div", ml, [p.value.pos ? (O(), q(g, {
6647
+ default: I(() => [T("div", ml, [p.value.pos ? (O(), Y(g, {
6647
6648
  key: 0,
6648
6649
  modelValue: v.value,
6649
6650
  "onUpdate:modelValue": k[0] || (k[0] = (N) => v.value = N),
6650
6651
  label: m(r)("menu.product.form.takeaway.takeawayConfig.pos.label"),
6651
6652
  sublabel: m(r)("menu.product.form.takeaway.takeawayConfig.pos.sublabel"),
6652
6653
  value: !0
6653
- }, null, 8, ["modelValue", "label", "sublabel"])) : oe("", !0), p.value.app ? (O(), q(g, {
6654
+ }, null, 8, ["modelValue", "label", "sublabel"])) : oe("", !0), p.value.app ? (O(), Y(g, {
6654
6655
  key: 1,
6655
6656
  modelValue: F.value,
6656
6657
  "onUpdate:modelValue": k[1] || (k[1] = (N) => F.value = N),
@@ -6688,19 +6689,19 @@ const ml = {
6688
6689
  };
6689
6690
  return (c, p) => {
6690
6691
  const h = P("FmSearch"), v = P("FmCheckbox"), F = P("FmButton");
6691
- return l.value.length > 0 ? (O(), H("div", hl, [
6692
+ return l.value.length > 0 ? (O(), q("div", hl, [
6692
6693
  T("div", null, [
6693
6694
  f(h, {
6694
6695
  autofocus: "",
6695
6696
  modelValue: u.value,
6696
- "onUpdate:modelValue": p[0] || (p[0] = (y) => u.value = y),
6697
+ "onUpdate:modelValue": p[0] || (p[0] = (b) => u.value = b),
6697
6698
  placeholder: m(i)("menu.common.labels.search_variants")
6698
6699
  }, null, 8, ["modelValue", "placeholder"])
6699
6700
  ]),
6700
6701
  T("div", fl, [
6701
6702
  T("div", null, [
6702
- (O(!0), H(ge, null, Te(l.value, (y) => (O(), H("div", {
6703
- key: y.value
6703
+ (O(!0), q(ge, null, Te(l.value, (b) => (O(), q("div", {
6704
+ key: b.value
6704
6705
  }, [
6705
6706
  ct(f(v, {
6706
6707
  modelValue: s.value,
@@ -6708,23 +6709,23 @@ const ml = {
6708
6709
  p[1] || (p[1] = (k) => s.value = k),
6709
6710
  p[2] || (p[2] = (k) => m(t)(s.value))
6710
6711
  ],
6711
- label: y.label,
6712
- value: y.value
6712
+ label: b.label,
6713
+ value: b.value
6713
6714
  }, null, 8, ["modelValue", "label", "value"]), [
6714
- [Gt, y.label.toLowerCase().includes(u.value.toLowerCase())]
6715
+ [Gt, b.label.toLowerCase().includes(u.value.toLowerCase())]
6715
6716
  ])
6716
6717
  ]))), 128))
6717
6718
  ])
6718
6719
  ]),
6719
6720
  T("div", vl, [
6720
6721
  f(m(Mn), null, {
6721
- default: I(({ trigger: y }) => [
6722
- m(a).rules.item.variant ? (O(), q(F, {
6722
+ default: I(({ trigger: b }) => [
6723
+ m(a).rules.item.variant ? (O(), Y(F, {
6723
6724
  key: 0,
6724
6725
  label: m(i)("menu.common.actions.add_new_variant"),
6725
6726
  variant: "tertiary",
6726
6727
  "text-color": "primary",
6727
- onClick: (k) => y()
6728
+ onClick: (k) => b()
6728
6729
  }, null, 8, ["label", "onClick"])) : oe("", !0)
6729
6730
  ]),
6730
6731
  _: 1
@@ -6733,25 +6734,25 @@ const ml = {
6733
6734
  f(F, {
6734
6735
  label: m(i)("menu.common.actions.cancel"),
6735
6736
  variant: "tertiary",
6736
- onClick: p[3] || (p[3] = (y) => m(n).close())
6737
+ onClick: p[3] || (p[3] = (b) => m(n).close())
6737
6738
  }, null, 8, ["label"]),
6738
6739
  f(F, {
6739
6740
  label: m(i)("menu.common.actions.confirm"),
6740
- onClick: p[4] || (p[4] = (y) => d())
6741
+ onClick: p[4] || (p[4] = (b) => d())
6741
6742
  }, null, 8, ["label"])
6742
6743
  ])
6743
6744
  ])
6744
- ])) : (O(), H("div", bl, [
6745
+ ])) : (O(), q("div", bl, [
6745
6746
  T("div", yl, [
6746
6747
  T("p", _l, le(m(i)("menu.common.empty.no_variant.title")), 1),
6747
6748
  T("p", wl, le(m(i)("menu.common.empty.no_variant.subtitle")), 1)
6748
6749
  ]),
6749
6750
  f(m(Mn), null, {
6750
- default: I(({ trigger: y }) => [
6751
+ default: I(({ trigger: b }) => [
6751
6752
  f(F, {
6752
6753
  label: m(i)("menu.variant.add"),
6753
6754
  icon: "add",
6754
- onClick: (k) => y()
6755
+ onClick: (k) => b()
6755
6756
  }, null, 8, ["label", "onClick"])
6756
6757
  ]),
6757
6758
  _: 1
@@ -6786,21 +6787,21 @@ const ml = {
6786
6787
  }) {
6787
6788
  const t = e, o = Re(), a = Ht(), i = je(), r = Xe(), {
6788
6789
  t: l
6789
- } = ye(), s = j(!1), u = R(() => o.rules.item), d = R(() => u.value.minPrice && !!t.form.minPrice), c = R(() => !o.state.currentCatalogId), p = R(() => o.variants.reduce((b, _) => (b[_._id] = _, b), {})), h = n;
6790
- function v(b) {
6790
+ } = ye(), s = j(!1), u = R(() => o.rules.item), d = R(() => u.value.minPrice && !!t.form.minPrice), c = R(() => !o.state.currentCatalogId), p = R(() => o.variants.reduce((y, _) => (y[_._id] = _, y), {})), h = n;
6791
+ function v(y) {
6791
6792
  const _ = Fe.clone(t.form);
6792
6793
  for (const {
6793
6794
  key: x,
6794
6795
  value: B
6795
- } of b)
6796
+ } of y)
6796
6797
  _[x] = B;
6797
6798
  h("replace:form", _);
6798
6799
  }
6799
- function F(b) {
6800
+ function F(y) {
6800
6801
  var x;
6801
- const _ = k(b.combinationKey || "");
6802
+ const _ = k(y.combinationKey || "");
6802
6803
  return {
6803
- ...b,
6804
+ ...y,
6804
6805
  price: _ == null ? void 0 : _.price,
6805
6806
  inventoryBindings: (_ == null ? void 0 : _.inventoryBindings) || t.form.inventoryBindings,
6806
6807
  takeawayUsed: (_ == null ? void 0 : _.takeawayUsed) || t.form.takeawayUsed,
@@ -6810,25 +6811,25 @@ const ml = {
6810
6811
  })))
6811
6812
  };
6812
6813
  }
6813
- function y() {
6814
- var b;
6814
+ function b() {
6815
+ var y;
6815
6816
  r.open({
6816
6817
  title: "Add variant",
6817
6818
  contentComponent: kl,
6818
6819
  contentComponentProps: {
6819
- selectedVariants: ((b = t.form.variant) == null ? void 0 : b.variantGroupIds) ?? []
6820
+ selectedVariants: ((y = t.form.variant) == null ? void 0 : y.variantGroupIds) ?? []
6820
6821
  }
6821
6822
  }).onPrimary(async (_) => {
6822
6823
  N(_, F);
6823
6824
  });
6824
6825
  }
6825
- function k(b) {
6826
+ function k(y) {
6826
6827
  var z, W;
6827
- const _ = ((z = t.form.variant) == null ? void 0 : z.variantGroupIds) || [], x = (W = t.form.variant) == null ? void 0 : W.variantCombinations, Z = b.split(/(?=variant)/g).map((J) => J.replace(/\/*$/, "")).filter((J) => _.some((ne) => J.includes(ne))).join("/");
6828
+ const _ = ((z = t.form.variant) == null ? void 0 : z.variantGroupIds) || [], x = (W = t.form.variant) == null ? void 0 : W.variantCombinations, Z = y.split(/(?=variant)/g).map((J) => J.replace(/\/*$/, "")).filter((J) => _.some((ne) => J.includes(ne))).join("/");
6828
6829
  return x == null ? void 0 : x.find((J) => J.combinationKey === Z);
6829
6830
  }
6830
- const g = (b) => {
6831
- N(b);
6831
+ const g = (y) => {
6832
+ N(y);
6832
6833
  }, C = R(() => {
6833
6834
  var _;
6834
6835
  return (((_ = t.form.variant) == null ? void 0 : _.variantCombinations) || []).map((x) => {
@@ -6850,9 +6851,9 @@ const ml = {
6850
6851
  };
6851
6852
  });
6852
6853
  });
6853
- function N(b, _ = (x) => x) {
6854
+ function N(y, _ = (x) => x) {
6854
6855
  var ee;
6855
- const x = b.filter((Z) => !!Z);
6856
+ const x = y.filter((Z) => !!Z);
6856
6857
  let B;
6857
6858
  if (x.length) {
6858
6859
  const Z = x.map((W) => o.variants.find((J) => J._id === W)), z = Ge.fullVariantCombination(Z).map(({
@@ -6897,28 +6898,28 @@ const ml = {
6897
6898
  }
6898
6899
  h("replace:form", a.initDynamicGroupItem(B));
6899
6900
  }
6900
- async function $(b, _, x) {
6901
+ async function $(y, _, x) {
6901
6902
  const B = Fe.clone(t.form);
6902
- B.variant.variantCombinations[b][_] = x, v([{
6903
+ B.variant.variantCombinations[y][_] = x, v([{
6903
6904
  key: "variant",
6904
6905
  value: B.variant
6905
6906
  }]);
6906
6907
  }
6907
6908
  const M = R(() => {
6908
- var b, _;
6909
- return ((b = o.currentCatalog) == null ? void 0 : b.priceTierRules) ?? ((_ = o.currentCatalog) == null ? void 0 : _.usePriceTiers) ?? [];
6909
+ var y, _;
6910
+ return ((y = o.currentCatalog) == null ? void 0 : y.priceTierRules) ?? ((_ = o.currentCatalog) == null ? void 0 : _.usePriceTiers) ?? [];
6910
6911
  }), w = R(() => M.value.length > 0 && o.currentCatalog && !o.currentScheduler), V = R(() => [{
6911
6912
  accessorKey: "combinationKey",
6912
6913
  header: () => l("menu.product.form.variant.columns.variant"),
6913
6914
  enableSorting: !1,
6914
- cell: (b) => t.fullCombinations[b.getValue()]
6915
+ cell: (y) => t.fullCombinations[y.getValue()]
6915
6916
  }, {
6916
6917
  accessorKey: "code",
6917
6918
  header: () => l("menu.product.form.variant.columns.code"),
6918
6919
  enableSorting: !1,
6919
- cell: (b) => {
6920
+ cell: (y) => {
6920
6921
  var Z, z;
6921
- const _ = b.getValue(), x = b.row.original, ee = ((Z = x.fallback) == null ? void 0 : Z.code) ?? t.form.code ?? ((z = t.fallback) == null ? void 0 : z.code);
6922
+ const _ = y.getValue(), x = y.row.original, ee = ((Z = x.fallback) == null ? void 0 : Z.code) ?? t.form.code ?? ((z = t.fallback) == null ? void 0 : z.code);
6922
6923
  return f(ze.FmTextField, {
6923
6924
  modelValue: _,
6924
6925
  placeholder: ee || l("menu.product.form.variant.placeholders.no_code"),
@@ -6936,7 +6937,7 @@ const ml = {
6936
6937
  }) : !0;
6937
6938
  }],
6938
6939
  "onUpdate:model-value": (W) => {
6939
- $(b.row.index, "code", Fo(W, !0));
6940
+ $(y.row.index, "code", Fo(W, !0));
6940
6941
  }
6941
6942
  }, null);
6942
6943
  }
@@ -6944,9 +6945,9 @@ const ml = {
6944
6945
  accessorKey: "orderFrom",
6945
6946
  header: () => l("menu.product.form.variant.columns.order_from"),
6946
6947
  enableSorting: !1,
6947
- cell: (b) => {
6948
+ cell: (y) => {
6948
6949
  var ee, Z;
6949
- const _ = b.getValue(), B = (ee = b.row.original.fallback) == null ? void 0 : ee.orderFrom;
6950
+ const _ = y.getValue(), B = (ee = y.row.original.fallback) == null ? void 0 : ee.orderFrom;
6950
6951
  return f(On, {
6951
6952
  modelValue: _,
6952
6953
  fallback: t.form.orderFrom ?? B ?? ((Z = t.fallback) == null ? void 0 : Z.orderFrom),
@@ -6954,7 +6955,7 @@ const ml = {
6954
6955
  required: u.value.orderFrom && u.value.orderFromActiveOnly,
6955
6956
  editActiveOnly: u.value.orderFromActiveOnly || !1,
6956
6957
  "onUpdate:model-value": (z) => {
6957
- $(b.row.index, "orderFrom", z);
6958
+ $(y.row.index, "orderFrom", z);
6958
6959
  },
6959
6960
  label: "",
6960
6961
  defaultLabel: "Follow general"
@@ -6965,9 +6966,9 @@ const ml = {
6965
6966
  header: () => l("menu.product.form.variant.columns.price"),
6966
6967
  size: 200,
6967
6968
  enableSorting: !1,
6968
- cell: (b) => {
6969
+ cell: (y) => {
6969
6970
  var Z, z, W;
6970
- const _ = b.getValue(), x = b.row.original, ee = ((Z = x.fallback) == null ? void 0 : Z.price) ?? t.form.price ?? ((z = t.fallback) == null ? void 0 : z.price);
6971
+ const _ = y.getValue(), x = y.row.original, ee = ((Z = x.fallback) == null ? void 0 : Z.price) ?? t.form.price ?? ((z = t.fallback) == null ? void 0 : z.price);
6971
6972
  return f("div", {
6972
6973
  class: "flex items-center gap-8"
6973
6974
  }, [f(ut, {
@@ -6976,29 +6977,29 @@ const ml = {
6976
6977
  modelValue: _,
6977
6978
  min: 0,
6978
6979
  "onUpdate:model-value": (J) => {
6979
- $(b.row.index, "price", J);
6980
+ $(y.row.index, "price", J);
6980
6981
  },
6981
6982
  nullable: !0,
6982
6983
  showCurrency: !1
6983
6984
  }, null), o.isV4 && !t.isOverride && f(Mo, {
6984
6985
  "price-tiers": x.priceTiers,
6985
6986
  fallback: (W = x.fallback) == null ? void 0 : W.priceTiers,
6986
- "onUpdate:price-tiers": (J) => $(b.row.index, "priceTiers", J)
6987
+ "onUpdate:price-tiers": (J) => $(y.row.index, "priceTiers", J)
6987
6988
  }, null)]);
6988
6989
  }
6989
6990
  }, {
6990
6991
  accessorKey: "minPrice",
6991
6992
  header: () => l("menu.product.form.variant.columns.min_price"),
6992
6993
  enableSorting: !1,
6993
- cell: (b) => {
6994
+ cell: (y) => {
6994
6995
  var Z, z, W;
6995
- const _ = b.getValue(), x = b.row.original, ee = ((Z = x.fallback) == null ? void 0 : Z.minPrice) ?? t.form.minPrice ?? ((z = t.fallback) == null ? void 0 : z.minPrice);
6996
+ const _ = y.getValue(), x = y.row.original, ee = ((Z = x.fallback) == null ? void 0 : Z.minPrice) ?? t.form.minPrice ?? ((z = t.fallback) == null ? void 0 : z.minPrice);
6996
6997
  return f(ut, {
6997
6998
  placeholder: ee ? ft(ee) : void 0,
6998
6999
  modelValue: _,
6999
7000
  max: Pe.Dinero.fromFdoDinero(x.price ?? ((W = x.fallback) == null ? void 0 : W.price) ?? Pe.Dinero.zero().toObject()).toUnit(),
7000
7001
  "onUpdate:model-value": (J) => {
7001
- $(b.row.index, "minPrice", J);
7002
+ $(y.row.index, "minPrice", J);
7002
7003
  },
7003
7004
  nullable: !0,
7004
7005
  showCurrency: !1
@@ -7007,34 +7008,34 @@ const ml = {
7007
7008
  }]), E = R(() => ({
7008
7009
  minPrice: d.value
7009
7010
  }));
7010
- function A(b) {
7011
- return b != null && b.length && b.length > o.rules.item.maxVariant ? l("menu.product.form.variant.validation.max_variants", {
7011
+ function A(y) {
7012
+ return y != null && y.length && y.length > o.rules.item.maxVariant ? l("menu.product.form.variant.validation.max_variants", {
7012
7013
  max: o.rules.item.maxVariant
7013
7014
  }) : !0;
7014
7015
  }
7015
- return (b, _) => {
7016
+ return (y, _) => {
7016
7017
  const x = P("fm-button"), B = P("fm-icon"), ee = P("FmFormGroup"), Z = P("fm-table");
7017
- return O(), q(Ne, {
7018
+ return O(), Y(Ne, {
7018
7019
  title: m(l)("menu.product.form.variant.title"),
7019
7020
  "sub-title": m(l)("menu.product.form.variant.subtitle")
7020
7021
  }, {
7021
- "append-title": I(() => [m(o).rules.item.variant ? (O(), q(x, {
7022
+ "append-title": I(() => [m(o).rules.item.variant ? (O(), Y(x, {
7022
7023
  key: 0,
7023
7024
  label: m(l)("menu.product.form.variant.add"),
7024
7025
  variant: "secondary",
7025
7026
  "prepend-icon": "add",
7026
- onClick: y
7027
+ onClick: b
7027
7028
  }, null, 8, ["label"])) : oe("", !0)]),
7028
7029
  default: I(() => {
7029
7030
  var z;
7030
7031
  return [T("div", Cl, [f(ee, {
7031
- "model-value": (z = b.form.variant) == null ? void 0 : z.variantGroupIds,
7032
+ "model-value": (z = y.form.variant) == null ? void 0 : z.variantGroupIds,
7032
7033
  rules: [A]
7033
7034
  }, {
7034
7035
  default: I(() => {
7035
7036
  var W;
7036
7037
  return [f(m(oo), {
7037
- "model-value": ((W = b.form.variant) == null ? void 0 : W.variantGroupIds) ?? [],
7038
+ "model-value": ((W = y.form.variant) == null ? void 0 : W.variantGroupIds) ?? [],
7038
7039
  class: "space-y-16",
7039
7040
  group: "variants",
7040
7041
  handle: ".handle",
@@ -7054,7 +7055,7 @@ const ml = {
7054
7055
  name: "close",
7055
7056
  onClick: xt((de) => {
7056
7057
  var D;
7057
- return N(((D = b.form.variant) == null ? void 0 : D.variantGroupIds.filter((S) => S !== J)) ?? []);
7058
+ return N(((D = y.form.variant) == null ? void 0 : D.variantGroupIds.filter((S) => S !== J)) ?? []);
7058
7059
  }, ["stop"])
7059
7060
  }, null, 8, ["onClick"])])])];
7060
7061
  }),
@@ -7063,7 +7064,7 @@ const ml = {
7063
7064
  }),
7064
7065
  _: 1
7065
7066
  }, 8, ["model-value", "rules"]), f(Ro, null, {
7066
- default: I(() => [C.value.length ? (O(), q(Z, {
7067
+ default: I(() => [C.value.length ? (O(), Y(Z, {
7067
7068
  key: 0,
7068
7069
  class: "w-full",
7069
7070
  "column-defs": V.value,
@@ -7114,7 +7115,7 @@ const ml = {
7114
7115
  emits: ["update:show", "submit:form"],
7115
7116
  setup(e, { emit: n }) {
7116
7117
  var ke, Oe, pe, me, Ft;
7117
- const t = e, o = n, a = Re(), i = Ot(), { t: r } = ye(), l = R(() => t.action === "add" ? r("menu.product.form.title.add") : r("menu.product.form.title.update")), s = R(() => a.rules.item), u = (te) => new Promise((Y) => setTimeout(Y, te));
7118
+ const t = e, o = n, a = Re(), i = Ot(), { t: r } = ye(), l = R(() => t.action === "add" ? r("menu.product.form.title.add") : r("menu.product.form.title.update")), s = R(() => a.rules.item), u = (te) => new Promise((H) => setTimeout(H, te));
7118
7119
  ht(async () => {
7119
7120
  t.autoShow && (await u(100), c());
7120
7121
  });
@@ -7148,8 +7149,8 @@ const ml = {
7148
7149
  immediate: !0
7149
7150
  }
7150
7151
  );
7151
- const F = Ht(), y = async ([te, Y]) => {
7152
- a.selectCatalog(te), a.selectScheduler(Y), await Yn(), F.update(h.value._id), setTimeout(() => {
7152
+ const F = Ht(), b = async ([te, H]) => {
7153
+ a.selectCatalog(te), a.selectScheduler(H), await Yn(), F.update(h.value._id), setTimeout(() => {
7153
7154
  o("update:show", !1);
7154
7155
  }, 100);
7155
7156
  }, k = R(() => {
@@ -7165,20 +7166,20 @@ const ml = {
7165
7166
  immediate: !0
7166
7167
  }
7167
7168
  );
7168
- const C = (te, Y) => {
7169
+ const C = (te, H) => {
7169
7170
  h.value = {
7170
7171
  ...ve(h.value),
7171
- [te]: Y
7172
+ [te]: H
7172
7173
  };
7173
7174
  };
7174
7175
  async function N() {
7175
- var te, Y;
7176
+ var te, H;
7176
7177
  p.value = h.value._id && $.value ? (await si(
7177
7178
  a.mergedMenu,
7178
7179
  [h.value],
7179
7180
  a.state.menu,
7180
7181
  (te = a.currentCatalog) == null ? void 0 : te._id,
7181
- (Y = a.currentScheduler) == null ? void 0 : Y._id
7182
+ (H = a.currentScheduler) == null ? void 0 : H._id
7182
7183
  ))[0] : void 0;
7183
7184
  }
7184
7185
  const $ = R(
@@ -7200,7 +7201,7 @@ const ml = {
7200
7201
  g.value = null, h.value.thumbnail = null;
7201
7202
  }
7202
7203
  const A = R(() => {
7203
- var te, Y, _e, we, ie, wt, rt, kt, ue;
7204
+ var te, H, _e, we, ie, wt, rt, kt, ue;
7204
7205
  return {
7205
7206
  title: r("menu.product.form.summary.title"),
7206
7207
  items: [
@@ -7210,7 +7211,7 @@ const ml = {
7210
7211
  },
7211
7212
  {
7212
7213
  name: r("menu.product.form.summary.fields.name"),
7213
- value: h.value.name || ((Y = p.value) == null ? void 0 : Y.name) || "-"
7214
+ value: h.value.name || ((H = p.value) == null ? void 0 : H.name) || "-"
7214
7215
  },
7215
7216
  {
7216
7217
  name: r("menu.product.form.summary.fields.category"),
@@ -7243,7 +7244,7 @@ const ml = {
7243
7244
  }
7244
7245
  ]
7245
7246
  };
7246
- }), b = j(
7247
+ }), y = j(
7247
7248
  h.value.category != null || !!h.value.code || !!h.value.orderFrom
7248
7249
  );
7249
7250
  function _(te) {
@@ -7257,9 +7258,9 @@ const ml = {
7257
7258
  }
7258
7259
  const x = R(() => {
7259
7260
  const te = {};
7260
- return a.state.menu.modules.item.forEach((Y) => {
7261
+ return a.state.menu.modules.item.forEach((H) => {
7261
7262
  var _e;
7262
- for (const [we, ie] of Object.entries(Y.customAttributes || {}))
7263
+ for (const [we, ie] of Object.entries(H.customAttributes || {}))
7263
7264
  typeof ie == "string" && ie && !((_e = te[we]) != null && _e.includes(ie)) && (te[we] = [...te[we] || [], ie]);
7264
7265
  }), te;
7265
7266
  }), B = j(!!h.value.price || !!h.value.minPrice || !!h.value.costing);
@@ -7277,11 +7278,11 @@ const ml = {
7277
7278
  )
7278
7279
  );
7279
7280
  function z(te) {
7280
- var Y, _e, we;
7281
+ var H, _e, we;
7281
7282
  te || (h.value = {
7282
7283
  ...h.value,
7283
7284
  variant: {
7284
- variantGroupIds: ((Y = h.value.variant) == null ? void 0 : Y.variantGroupIds) || [],
7285
+ variantGroupIds: ((H = h.value.variant) == null ? void 0 : H.variantGroupIds) || [],
7285
7286
  variantCombinations: ((we = (_e = h.value.variant) == null ? void 0 : _e.variantCombinations) == null ? void 0 : we.map((ie) => ({
7286
7287
  ...ie,
7287
7288
  price: void 0,
@@ -7295,12 +7296,12 @@ const ml = {
7295
7296
  !!h.value.inventoryBindings || (((Oe = h.value.variant) == null ? void 0 : Oe.variantCombinations) || []).some((te) => !!te.inventoryBindings) || !1
7296
7297
  );
7297
7298
  function J(te) {
7298
- var Y, _e, we;
7299
+ var H, _e, we;
7299
7300
  te || (h.value = {
7300
7301
  ...h.value,
7301
7302
  inventoryBindings: void 0,
7302
7303
  variant: h.value.variant ? {
7303
- variantGroupIds: ((Y = h.value.variant) == null ? void 0 : Y.variantGroupIds) || [],
7304
+ variantGroupIds: ((H = h.value.variant) == null ? void 0 : H.variantGroupIds) || [],
7304
7305
  variantCombinations: ((we = (_e = h.value.variant) == null ? void 0 : _e.variantCombinations) == null ? void 0 : we.map((ie) => ({
7305
7306
  ...ie,
7306
7307
  inventoryBindings: void 0
@@ -7312,12 +7313,12 @@ const ml = {
7312
7313
  h.value.takeawayUsed != null || (((pe = h.value.variant) == null ? void 0 : pe.variantCombinations) || []).some((te) => te.takeawayUsed != null) || !1
7313
7314
  );
7314
7315
  function de(te) {
7315
- var Y, _e;
7316
+ var H, _e;
7316
7317
  te || (h.value = {
7317
7318
  ...h.value,
7318
7319
  takeawayUsed: void 0,
7319
7320
  variant: {
7320
- variantGroupIds: ((Y = h.value.variant) == null ? void 0 : Y.variantGroupIds) || [],
7321
+ variantGroupIds: ((H = h.value.variant) == null ? void 0 : H.variantGroupIds) || [],
7321
7322
  variantCombinations: ((_e = h.value.variant) == null ? void 0 : _e.variantCombinations.map((we) => ({
7322
7323
  ...we,
7323
7324
  takeawayUsed: void 0
@@ -7331,17 +7332,17 @@ const ml = {
7331
7332
  }
7332
7333
  const L = j(
7333
7334
  !!((me = h.value.groups) != null && me.length) != null || (((Ft = h.value.variant) == null ? void 0 : Ft.variantCombinations) || []).some((te) => {
7334
- var Y;
7335
- return !!((Y = te.groups) != null && Y.length);
7335
+ var H;
7336
+ return !!((H = te.groups) != null && H.length);
7336
7337
  }) || !1
7337
7338
  );
7338
7339
  function Q(te) {
7339
- var Y, _e;
7340
+ var H, _e;
7340
7341
  te || (h.value = {
7341
7342
  ...h.value,
7342
7343
  groups: [],
7343
7344
  variant: {
7344
- variantGroupIds: ((Y = h.value.variant) == null ? void 0 : Y.variantGroupIds) || [],
7345
+ variantGroupIds: ((H = h.value.variant) == null ? void 0 : H.variantGroupIds) || [],
7345
7346
  variantCombinations: ((_e = h.value.variant) == null ? void 0 : _e.variantCombinations.map((we) => ({
7346
7347
  ...we,
7347
7348
  groups: []
@@ -7383,10 +7384,10 @@ const ml = {
7383
7384
  }
7384
7385
  function ce() {
7385
7386
  $.value && [
7386
- [b.value, _],
7387
+ [y.value, _],
7387
7388
  [B.value, ee]
7388
- ].forEach(([Y, _e]) => {
7389
- Y || _e(!1);
7389
+ ].forEach(([H, _e]) => {
7390
+ H || _e(!1);
7390
7391
  }), o(
7391
7392
  "submit:form",
7392
7393
  Xo(ve(h.value), $.value),
@@ -7397,7 +7398,7 @@ const ml = {
7397
7398
  c(), re();
7398
7399
  }
7399
7400
  const { isAtMost: K } = Xn(), se = j(null), Ae = oi(se);
7400
- return (te, Y) => (O(), H(ge, null, [
7401
+ return (te, H) => (O(), q(ge, null, [
7401
7402
  Ce(te.$slots, "trigger", Uo($o({
7402
7403
  trigger: c
7403
7404
  }))),
@@ -7417,7 +7418,7 @@ const ml = {
7417
7418
  onOnCancel: U
7418
7419
  }, {
7419
7420
  "append-title": I(() => [
7420
- m(K)("sm") ? (O(), q(En, {
7421
+ m(K)("sm") ? (O(), Y(En, {
7421
7422
  key: 0,
7422
7423
  variant: "dialog",
7423
7424
  title: A.value.title,
@@ -7427,7 +7428,7 @@ const ml = {
7427
7428
  default: I(() => {
7428
7429
  var _e, we;
7429
7430
  return [
7430
- m(K)("sm") ? oe("", !0) : (O(), q(En, {
7431
+ m(K)("sm") ? oe("", !0) : (O(), Y(En, {
7431
7432
  key: 0,
7432
7433
  class: "fixed",
7433
7434
  style: No({
@@ -7444,17 +7445,17 @@ const ml = {
7444
7445
  ref: se,
7445
7446
  class: Ue(["flex-1 py-24 space-y-24", "xs:w-full"])
7446
7447
  }, [
7447
- v.value && (Object.keys(v.value.catalogs || {}).length > 0 || v.value.schedulers.length > 0) ? (O(), q(Ai, {
7448
+ v.value && (Object.keys(v.value.catalogs || {}).length > 0 || v.value.schedulers.length > 0) ? (O(), Y(Ai, {
7448
7449
  key: 0,
7449
7450
  "linked-status": v.value,
7450
- "onUpdate:catalogAndScheduler": y
7451
+ "onUpdate:catalogAndScheduler": b
7451
7452
  }, null, 8, ["linked-status"])) : oe("", !0),
7452
7453
  f(ni, { "menu-store": m(a) }, null, 8, ["menu-store"]),
7453
7454
  f(st, {
7454
- toggle: b.value,
7455
+ toggle: y.value,
7455
7456
  "onUpdate:toggle": [
7456
- Y[1] || (Y[1] = (ie) => b.value = ie),
7457
- Y[2] || (Y[2] = (ie) => _(ie))
7457
+ H[1] || (H[1] = (ie) => y.value = ie),
7458
+ H[2] || (H[2] = (ie) => _(ie))
7458
7459
  ],
7459
7460
  disabled: !$.value,
7460
7461
  description: m(r)("menu.product.form.sections.general.description"),
@@ -7469,14 +7470,14 @@ const ml = {
7469
7470
  "is-create": t.action === "add",
7470
7471
  thumbnail: g.value,
7471
7472
  "onUpdate:form": C,
7472
- "onUpdate:thumbnail": Y[0] || (Y[0] = (ie) => g.value = ie),
7473
+ "onUpdate:thumbnail": H[0] || (H[0] = (ie) => g.value = ie),
7473
7474
  "onReset:thumbnail": E
7474
7475
  }, null, 8, ["fallback", "form", "is-addon", "is-override", "is-create", "thumbnail"])
7475
7476
  ]),
7476
7477
  _: 1
7477
7478
  }, 8, ["toggle", "disabled", "description", "title"]),
7478
- $.value ? oe("", !0) : (O(), H("div", Al)),
7479
- w.value ? (O(), q(Ne, {
7479
+ $.value ? oe("", !0) : (O(), q("div", Al)),
7480
+ w.value ? (O(), Y(Ne, {
7480
7481
  key: 2,
7481
7482
  title: m(r)("menu.product.form.sections.tagging.title"),
7482
7483
  "sub-title": m(r)("menu.product.form.sections.tagging.subtitle")
@@ -7485,18 +7486,18 @@ const ml = {
7485
7486
  f(m(qn), {
7486
7487
  entity: "item",
7487
7488
  "model-value": h.value.customAttributes || {},
7488
- "onUpdate:modelValue": Y[3] || (Y[3] = (ie) => C("customAttributes", ie)),
7489
+ "onUpdate:modelValue": H[3] || (H[3] = (ie) => C("customAttributes", ie)),
7489
7490
  "value-options": x.value
7490
7491
  }, null, 8, ["model-value", "value-options"])
7491
7492
  ]),
7492
7493
  _: 1
7493
7494
  }, 8, ["title", "sub-title"])) : oe("", !0),
7494
- w.value ? (O(), H("div", Ml)) : oe("", !0),
7495
+ w.value ? (O(), q("div", Ml)) : oe("", !0),
7495
7496
  f(st, {
7496
7497
  toggle: B.value,
7497
7498
  "onUpdate:toggle": [
7498
- Y[4] || (Y[4] = (ie) => B.value = ie),
7499
- Y[5] || (Y[5] = (ie) => ee(ie))
7499
+ H[4] || (H[4] = (ie) => B.value = ie),
7500
+ H[5] || (H[5] = (ie) => ee(ie))
7500
7501
  ],
7501
7502
  disabled: !$.value,
7502
7503
  description: m(r)("menu.product.form.sections.price.description"),
@@ -7513,13 +7514,13 @@ const ml = {
7513
7514
  ]),
7514
7515
  _: 1
7515
7516
  }, 8, ["toggle", "disabled", "description", "title"]),
7516
- s.value.print && !$.value ? (O(), H("div", El)) : oe("", !0),
7517
- s.value.print ? (O(), q(st, {
7517
+ s.value.print && !$.value ? (O(), q("div", El)) : oe("", !0),
7518
+ s.value.print ? (O(), Y(st, {
7518
7519
  key: 5,
7519
7520
  toggle: D.value,
7520
7521
  "onUpdate:toggle": [
7521
- Y[7] || (Y[7] = (ie) => D.value = ie),
7522
- Y[8] || (Y[8] = (ie) => S(ie))
7522
+ H[7] || (H[7] = (ie) => D.value = ie),
7523
+ H[8] || (H[8] = (ie) => S(ie))
7523
7524
  ],
7524
7525
  description: "Use a different print setting",
7525
7526
  disabled: "",
@@ -7533,17 +7534,17 @@ const ml = {
7533
7534
  "is-addon": M.value,
7534
7535
  "is-override": $.value,
7535
7536
  "onUpdate:form": C,
7536
- "onReplace:form": Y[6] || (Y[6] = (ie) => h.value = ie)
7537
+ "onReplace:form": H[6] || (H[6] = (ie) => h.value = ie)
7537
7538
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
7538
7539
  ]),
7539
7540
  _: 1
7540
7541
  }, 8, ["toggle"])) : oe("", !0),
7541
- $.value ? oe("", !0) : (O(), H("div", Tl)),
7542
+ $.value ? oe("", !0) : (O(), q("div", Tl)),
7542
7543
  f(st, {
7543
7544
  toggle: Z.value,
7544
7545
  "onUpdate:toggle": [
7545
- Y[10] || (Y[10] = (ie) => Z.value = ie),
7546
- Y[11] || (Y[11] = (ie) => z(ie))
7546
+ H[10] || (H[10] = (ie) => Z.value = ie),
7547
+ H[11] || (H[11] = (ie) => z(ie))
7547
7548
  ],
7548
7549
  disabled: !$.value,
7549
7550
  description: m(r)("menu.product.form.sections.variant.description"),
@@ -7557,18 +7558,18 @@ const ml = {
7557
7558
  "is-addon": M.value,
7558
7559
  "is-override": $.value,
7559
7560
  "onUpdate:form": C,
7560
- "onReplace:form": Y[9] || (Y[9] = (ie) => h.value = ie)
7561
+ "onReplace:form": H[9] || (H[9] = (ie) => h.value = ie)
7561
7562
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
7562
7563
  ]),
7563
7564
  _: 1
7564
7565
  }, 8, ["toggle", "disabled", "description", "title"]),
7565
- s.value.group && !$.value ? (O(), H("div", Vl)) : oe("", !0),
7566
- s.value.group ? (O(), q(st, {
7566
+ s.value.group && !$.value ? (O(), q("div", Vl)) : oe("", !0),
7567
+ s.value.group ? (O(), Y(st, {
7567
7568
  key: 8,
7568
7569
  toggle: L.value,
7569
7570
  "onUpdate:toggle": [
7570
- Y[13] || (Y[13] = (ie) => L.value = ie),
7571
- Y[14] || (Y[14] = (ie) => Q(ie))
7571
+ H[13] || (H[13] = (ie) => L.value = ie),
7572
+ H[14] || (H[14] = (ie) => Q(ie))
7572
7573
  ],
7573
7574
  disabled: !$.value,
7574
7575
  description: "Use a different group setting",
@@ -7582,18 +7583,18 @@ const ml = {
7582
7583
  "is-addon": M.value,
7583
7584
  "is-override": $.value,
7584
7585
  "onUpdate:form": C,
7585
- "onReplace:form": Y[12] || (Y[12] = (ie) => h.value = ie)
7586
+ "onReplace:form": H[12] || (H[12] = (ie) => h.value = ie)
7586
7587
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
7587
7588
  ]),
7588
7589
  _: 1
7589
7590
  }, 8, ["toggle", "disabled"])) : oe("", !0),
7590
- s.value.inventory && !$.value ? (O(), H("div", zl)) : oe("", !0),
7591
- s.value.inventory ? (O(), q(st, {
7591
+ s.value.inventory && !$.value ? (O(), q("div", zl)) : oe("", !0),
7592
+ s.value.inventory ? (O(), Y(st, {
7592
7593
  key: 10,
7593
7594
  toggle: W.value,
7594
7595
  "onUpdate:toggle": [
7595
- Y[16] || (Y[16] = (ie) => W.value = ie),
7596
- Y[17] || (Y[17] = (ie) => J(ie))
7596
+ H[16] || (H[16] = (ie) => W.value = ie),
7597
+ H[17] || (H[17] = (ie) => J(ie))
7597
7598
  ],
7598
7599
  disabled: !$.value,
7599
7600
  description: m(r)("menu.product.form.sections.inventory.description"),
@@ -7607,18 +7608,18 @@ const ml = {
7607
7608
  "is-addon": M.value,
7608
7609
  "is-override": $.value,
7609
7610
  "onUpdate:form": C,
7610
- "onReplace:form": Y[15] || (Y[15] = (ie) => h.value = ie)
7611
+ "onReplace:form": H[15] || (H[15] = (ie) => h.value = ie)
7611
7612
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
7612
7613
  ]),
7613
7614
  _: 1
7614
7615
  }, 8, ["toggle", "disabled", "description", "title"])) : oe("", !0),
7615
- s.value.takeaway(h.value.category ?? ((_e = p.value) == null ? void 0 : _e.category)) && !$.value ? (O(), H("div", Il)) : oe("", !0),
7616
- s.value.takeaway(h.value.category ?? ((we = p.value) == null ? void 0 : we.category)) ? (O(), q(st, {
7616
+ s.value.takeaway(h.value.category ?? ((_e = p.value) == null ? void 0 : _e.category)) && !$.value ? (O(), q("div", Il)) : oe("", !0),
7617
+ s.value.takeaway(h.value.category ?? ((we = p.value) == null ? void 0 : we.category)) ? (O(), Y(st, {
7617
7618
  key: 12,
7618
7619
  toggle: ne.value,
7619
7620
  "onUpdate:toggle": [
7620
- Y[19] || (Y[19] = (ie) => ne.value = ie),
7621
- Y[20] || (Y[20] = (ie) => de(ie))
7621
+ H[19] || (H[19] = (ie) => ne.value = ie),
7622
+ H[20] || (H[20] = (ie) => de(ie))
7622
7623
  ],
7623
7624
  disabled: !$.value,
7624
7625
  description: m(r)("menu.product.form.sections.takeaway.description"),
@@ -7632,13 +7633,13 @@ const ml = {
7632
7633
  "is-addon": M.value,
7633
7634
  "is-override": $.value,
7634
7635
  "onUpdate:form": C,
7635
- "onReplace:form": Y[18] || (Y[18] = (ie) => h.value = ie)
7636
+ "onReplace:form": H[18] || (H[18] = (ie) => h.value = ie)
7636
7637
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
7637
7638
  ]),
7638
7639
  _: 1
7639
7640
  }, 8, ["toggle", "disabled", "description", "title"])) : oe("", !0)
7640
7641
  ], 512),
7641
- Y[21] || (Y[21] = T("div", { class: "w-[360px] xs:hidden sm:hidden" }, null, -1))
7642
+ H[21] || (H[21] = T("div", { class: "w-[360px] xs:hidden sm:hidden" }, null, -1))
7642
7643
  ])
7643
7644
  ];
7644
7645
  }),
@@ -7660,15 +7661,15 @@ function To(e, n) {
7660
7661
  var v;
7661
7662
  const p = u.find((F) => F._id === c._id), h = (v = c.items) == null ? void 0 : v.map((F) => {
7662
7663
  var k;
7663
- const y = (k = p == null ? void 0 : p.items) == null ? void 0 : k.find(
7664
+ const b = (k = p == null ? void 0 : p.items) == null ? void 0 : k.find(
7664
7665
  (g) => g._id === F._id && g.combinationKey == F.combinationKey
7665
7666
  );
7666
7667
  return {
7667
- ...y || {},
7668
+ ...b || {},
7668
7669
  _id: F._id,
7669
7670
  combinationKey: F.combinationKey,
7670
- price: (y == null ? void 0 : y.price) ?? Pe.Dinero.zero().toObject(),
7671
- orderFrom: (y == null ? void 0 : y.orderFrom) ?? X.F_ORDER_FROM.enum.ALL
7671
+ price: (b == null ? void 0 : b.price) ?? Pe.Dinero.zero().toObject(),
7672
+ orderFrom: (b == null ? void 0 : b.orderFrom) ?? X.F_ORDER_FROM.enum.ALL
7672
7673
  };
7673
7674
  });
7674
7675
  return {
@@ -7762,8 +7763,8 @@ const Ht = jn("item-manager", () => {
7762
7763
  categoryId: w,
7763
7764
  "onSubmit:form": async (E, A) => {
7764
7765
  E.inventoryBindings ?? (E.inventoryBindings = []), E.inventoryBindings.length === 0 && (E.inventoryBindings = null);
7765
- const b = Ut();
7766
- await V(E, xe.F_OPERATION_TYPE.create, b, A);
7766
+ const y = Ut();
7767
+ await V(E, xe.F_OPERATION_TYPE.create, y, A);
7767
7768
  }
7768
7769
  });
7769
7770
  }
@@ -7785,8 +7786,8 @@ const Ht = jn("item-manager", () => {
7785
7786
  }
7786
7787
  async function d(w) {
7787
7788
  var _;
7788
- const V = e.currentCatalog, E = e.state.currentSchedulerId, A = V.override.scheduler[E] ?? {}, b = (_ = A == null ? void 0 : A.items) == null ? void 0 : _.filter((x) => x._id === w._id);
7789
- await u(w, b, async (x) => {
7789
+ const V = e.currentCatalog, E = e.state.currentSchedulerId, A = V.override.scheduler[E] ?? {}, y = (_ = A == null ? void 0 : A.items) == null ? void 0 : _.filter((x) => x._id === w._id);
7790
+ await u(w, y, async (x) => {
7790
7791
  const B = x.modules.catalog.find(
7791
7792
  (ee) => ee._id === V._id
7792
7793
  );
@@ -7797,7 +7798,7 @@ const Ht = jn("item-manager", () => {
7797
7798
  const V = e.currentCatalog;
7798
7799
  await u(w, V.override.items[w._id], async (E) => {
7799
7800
  const A = E.modules.catalog.find(
7800
- (b) => b._id === V._id
7801
+ (y) => y._id === V._id
7801
7802
  );
7802
7803
  await new Qe(A, e, a.updateMenu, t).update();
7803
7804
  });
@@ -7807,15 +7808,15 @@ const Ht = jn("item-manager", () => {
7807
7808
  (A) => A._id === e.state.currentSchedulerId
7808
7809
  ), E = V.items.filter((A) => A._id === w._id);
7809
7810
  await u(w, E, async (A) => {
7810
- const b = A.modules.scheduler.find(
7811
+ const y = A.modules.scheduler.find(
7811
7812
  (_) => _._id === V._id
7812
7813
  );
7813
- await new Vt(b, e, a.updateMenu, t).update();
7814
+ await new Vt(y, e, a.updateMenu, t).update();
7814
7815
  });
7815
7816
  }
7816
7817
  async function h(w) {
7817
- var b, _;
7818
- const V = e.state.currentSchedulerId, E = ve(e.currentCatalog), A = (_ = ((b = E.override.scheduler[V]) == null ? void 0 : b.items) || []) == null ? void 0 : _.reduce((x, B) => {
7818
+ var y, _;
7819
+ const V = e.state.currentSchedulerId, E = ve(e.currentCatalog), A = (_ = ((y = E.override.scheduler[V]) == null ? void 0 : y.items) || []) == null ? void 0 : _.reduce((x, B) => {
7819
7820
  if (B.combinationKey) return [...x, B];
7820
7821
  const ee = w.find((Z) => Z._id === B._id);
7821
7822
  return ee ? [...x, { ...B, price: ee.price }] : [...x, B];
@@ -7830,8 +7831,8 @@ const Ht = jn("item-manager", () => {
7830
7831
  }, await new Qe(E, e, a.updateMenu, t).update();
7831
7832
  }
7832
7833
  async function v(w) {
7833
- var b;
7834
- const V = ve(e.currentCatalog), E = (b = Object.entries(V.override.items)) == null ? void 0 : b.reduce(
7834
+ var y;
7835
+ const V = ve(e.currentCatalog), E = (y = Object.entries(V.override.items)) == null ? void 0 : y.reduce(
7835
7836
  (_, [x, B]) => {
7836
7837
  const ee = w.find((z) => z._id === x);
7837
7838
  if (!ee)
@@ -7864,10 +7865,10 @@ const Ht = jn("item-manager", () => {
7864
7865
  ).update();
7865
7866
  }
7866
7867
  async function F(w) {
7867
- const V = ve(e.currentScheduler), E = V.items.reduce((A, b) => {
7868
- if (b.combinationKey) return [...A, b];
7869
- const _ = w.find((x) => x._id === b._id);
7870
- return _ ? [...A, { ...b, price: _.price }] : [...A, b];
7868
+ const V = ve(e.currentScheduler), E = V.items.reduce((A, y) => {
7869
+ if (y.combinationKey) return [...A, y];
7870
+ const _ = w.find((x) => x._id === y._id);
7871
+ return _ ? [...A, { ...y, price: _.price }] : [...A, y];
7871
7872
  }, []);
7872
7873
  await new Vt(
7873
7874
  {
@@ -7879,19 +7880,19 @@ const Ht = jn("item-manager", () => {
7879
7880
  t
7880
7881
  ).update();
7881
7882
  }
7882
- async function y(w) {
7883
- const V = w.reduce((A, b) => {
7884
- const _ = e.items.find((x) => x._id === b._id);
7883
+ async function b(w) {
7884
+ const V = w.reduce((A, y) => {
7885
+ const _ = e.items.find((x) => x._id === y._id);
7885
7886
  return _ && A.push({
7886
7887
  ..._,
7887
- code: b.code ?? _.code,
7888
- name: b.name || _.name,
7889
- price: b.price ?? _.price,
7890
- orderFrom: b.orderFrom ?? _.orderFrom,
7891
- taxes: b.taxes ?? _.taxes,
7892
- category: b.category === void 0 ? _.category : b.category,
7893
- position: b.position ?? _.position,
7894
- additionalCategories: b.additionalCategories ?? _.additionalCategories
7888
+ code: y.code ?? _.code,
7889
+ name: y.name || _.name,
7890
+ price: y.price ?? _.price,
7891
+ orderFrom: y.orderFrom ?? _.orderFrom,
7892
+ taxes: y.taxes ?? _.taxes,
7893
+ category: y.category === void 0 ? _.category : y.category,
7894
+ position: y.position ?? _.position,
7895
+ additionalCategories: y.additionalCategories ?? _.additionalCategories
7895
7896
  }), A;
7896
7897
  }, []), { updateMenu: E } = a;
7897
7898
  await E(
@@ -7909,8 +7910,8 @@ const Ht = jn("item-manager", () => {
7909
7910
  initialForm: w,
7910
7911
  action: "update",
7911
7912
  "onSubmit:form": async (E, A) => {
7912
- const b = Ut(w._id);
7913
- E.inventoryBindings ?? (E.inventoryBindings = []), E.inventoryBindings.length === 0 && (E.inventoryBindings = null), await V(E, xe.F_OPERATION_TYPE.update, b, A);
7913
+ const y = Ut(w._id);
7914
+ E.inventoryBindings ?? (E.inventoryBindings = []), E.inventoryBindings.length === 0 && (E.inventoryBindings = null), await V(E, xe.F_OPERATION_TYPE.update, y, A);
7914
7915
  }
7915
7916
  });
7916
7917
  }
@@ -7921,7 +7922,7 @@ const Ht = jn("item-manager", () => {
7921
7922
  async function C(w) {
7922
7923
  e.currentCatalog ? e.currentScheduler ? await h(w) : await v(w) : (
7923
7924
  // If Main
7924
- e.currentScheduler ? await F(w) : await y(w)
7925
+ e.currentScheduler ? await F(w) : await b(w)
7925
7926
  );
7926
7927
  }
7927
7928
  function N(w) {