@feedmepos/mf-menu 0.23.6-prod.2 → 0.23.6-prod.5

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 (50) hide show
  1. package/dist/{App-VnLndxaz.js → App-C79muzAY.js} +3 -3
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BBmQn2Ix.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DvaALPJo.js} +2 -2
  3. package/dist/{Catalog-COnN5KtQ.js → Catalog-DjuA_zha.js} +5 -5
  4. package/dist/{Category-DaAXe15N.js → Category-KhqRDxtY.js} +5 -5
  5. package/dist/{CookingGuide-BbJbiTO2.js → CookingGuide-BRgd_Tou.js} +4 -4
  6. package/dist/{Group-3wb1U1pU.js → Group-BcK1dt2p.js} +1 -1
  7. package/dist/{Group-DKZ2cuFU.js → Group-DhAWs0TB.js} +3 -3
  8. package/dist/{Group.vue_vue_type_script_setup_true_lang-Dq_WALgs.js → Group.vue_vue_type_script_setup_true_lang-CfkeLRqm.js} +7 -7
  9. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CbLn_7Ph.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DY82ir0S.js} +2 -2
  10. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BSzadh9N.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-ohK7LeFF.js} +191 -191
  11. package/dist/{Ingredient-jLs1PFf0.js → Ingredient-Cwf8Fqwp.js} +4 -4
  12. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DzVJwqKR.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C__FwHFy.js} +2 -2
  13. package/dist/{LinkProductSideSheet-CFpnwqge.js → LinkProductSideSheet-CQn7wFtM.js} +2 -2
  14. package/dist/{MenuSetting-Czoh5m35.js → MenuSetting-DEdzPjdw.js} +2 -2
  15. package/dist/{PrintRoute-C5AeMQNS.js → PrintRoute-Gx8zIAg1.js} +4 -4
  16. package/dist/{Product-D4LH0W6i.js → Product-DJRt_rb0.js} +1 -1
  17. package/dist/{Product.vue_vue_type_script_setup_true_lang-CuXxSZQO.js → Product.vue_vue_type_script_setup_true_lang-BQkjxkkz.js} +10 -10
  18. package/dist/{Products-5ayrzoc6.js → Products-DMtsLMbF.js} +8 -8
  19. package/dist/{Publish-BEDKLENF.js → Publish-Bkh-2enF.js} +3 -3
  20. package/dist/{Recipe-CqoDkcD3.js → Recipe-D6Et-kYL.js} +5 -5
  21. package/dist/{Scheduler--L69-FAR.js → Scheduler-CxK2ObS1.js} +3 -3
  22. package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-F4JhU6oo.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-BaxKhPrX.js} +1 -1
  23. package/dist/{ServingSequence-C40U2fJ1.js → ServingSequence-CnrB056I.js} +3 -3
  24. package/dist/{Setting-Dv8J5sZ1.js → Setting-DQ-bGEWW.js} +4 -4
  25. package/dist/{Takeaway-BCL3vICy.js → Takeaway-Bv93rSqM.js} +4 -4
  26. package/dist/{Takeaway-DSgsfuRe.js → Takeaway-ydUK5B8Y.js} +1 -1
  27. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DMj4zGOL.js → Takeaway.vue_vue_type_script_setup_true_lang-CtwR5M2Y.js} +5 -5
  28. package/dist/{Unit-C85BIr4v.js → Unit-CR5g1nqE.js} +2 -2
  29. package/dist/{Variant-CUVDnRXx.js → Variant-6qyXf55d.js} +3 -3
  30. package/dist/{_id_-CgMdX6uK.js → _id_-D9Fy-52f.js} +7 -7
  31. package/dist/{app-Csk3crLh.js → app-CNDsQTVC.js} +1 -1
  32. package/dist/{app-DyQ2FebM.js → app-DWhk47YC.js} +21 -21
  33. package/dist/app.js +1 -1
  34. package/dist/assets/{linked-status-CuDKKXQw.js → linked-status-BxxFZgFB.js} +3 -3
  35. package/dist/assets/{override-menu-DcOjhAMV.js → override-menu-n1hZOkM9.js} +3 -3
  36. package/dist/assets/{validate-menu-Rm1BK8Qg.js → validate-menu-Bsk4tNqs.js} +3 -3
  37. package/dist/{catalog-CGFzMBNc.js → catalog-CMjiS7ai.js} +1 -1
  38. package/dist/{catalogSetting-CYrTVY3G.js → catalogSetting-mM4iBNwG.js} +1 -1
  39. package/dist/{currency-qJ7mlgUz.js → currency-CYhKjzer.js} +1 -1
  40. package/dist/{discardConfirm-CVJNDIJA.js → discardConfirm-CbN3kexd.js} +1 -1
  41. package/dist/{index-B8jJbeMV.js → index-1N3cz_sz.js} +3 -3
  42. package/dist/{index-BE-iOSmz.js → index-BX2gYUEk.js} +4 -4
  43. package/dist/{item-DG-PFeAg.js → item-CVtco1of.js} +461 -461
  44. package/dist/{menu-C118swQu.js → menu-Ck3IHcPs.js} +1 -1
  45. package/dist/{menu-izRdD6Z4.js → menu-P5fkc5dC.js} +90 -90
  46. package/dist/{remy-BUK0FKVB.js → remy-B78xKauQ.js} +2 -2
  47. package/dist/{scheduler-CS-ywewi.js → scheduler-B3Z_Qfwa.js} +4 -4
  48. package/dist/{toExcel-DzECgsJA.js → toExcel-N_WBB7_q.js} +2 -2
  49. package/dist/{unit-DuP5lSLa.js → unit-CHl4zhOJ.js} +2 -2
  50. package/package.json +1 -1
@@ -1,27 +1,27 @@
1
1
  import { defineStore as Pi } from "pinia";
2
- import { openBlock as O, createElementBlock as J, createElementVNode as P, defineComponent as ue, resolveComponent as G, toDisplayString as de, createVNode as w, Fragment as ke, renderList as Ye, createBlock as Y, h as he, ref as Q, computed as F, watch as Re, unref as p, renderSlot as ve, withCtx as L, createCommentVNode as te, Transition as bn, resolveDynamicComponent as St, withDirectives as Je, vShow as At, mergeProps as Ti, withModifiers as Rt, createTextVNode as Ct, normalizeClass as Le, onMounted as ut, resolveDirective as Nt, nextTick as Ui, onBeforeUnmount as yn, normalizeProps as _n, guardReactiveProps as wn, normalizeStyle as Sn, getCurrentInstance as Cn, render as An } from "vue";
3
- import { G as B, J as pe, Y as Rn, a0 as xn, a1 as Mn, H as ne, z as Se, B as Ae, a2 as Vi, u as fe, a3 as $i, a4 as bi, A as He, K as Xe, U as kn, a5 as On, V as Et, W as zn, a6 as yi, a7 as En } from "./menu-izRdD6Z4.js";
4
- import { useI18n as me, useCoreStore as Zt, CustomAttributesForm as Fn } from "@feedmepos/mf-common";
5
- import { useDialog as Be, useDialogChild as Qt, useSnackbar as Ie, components as xe, FmButtonColorThemeVariant as je, FmButtonVariant as qe, useBreakpoints as Ni } from "@feedmepos/ui-library";
6
- import { C as Ue } from "./catalog-CGFzMBNc.js";
7
- import { u as Dn, c as In } from "./search-7ZYHUW7s.js";
8
- import { p as Jt, u as Pn } from "./app-DyQ2FebM.js";
2
+ import { openBlock as O, createElementBlock as Q, createElementVNode as P, defineComponent as ue, resolveComponent as G, toDisplayString as de, createVNode as w, Fragment as ke, renderList as Ye, createBlock as Y, h as he, ref as J, computed as E, watch as Re, unref as p, renderSlot as ve, withCtx as L, createCommentVNode as te, Transition as bn, resolveDynamicComponent as St, withDirectives as Qe, vShow as At, mergeProps as Ti, withModifiers as Rt, createTextVNode as Ct, normalizeClass as Le, onMounted as ut, resolveDirective as Nt, nextTick as Ui, onBeforeUnmount as yn, normalizeProps as _n, guardReactiveProps as wn, normalizeStyle as Sn, getCurrentInstance as Cn, render as An } from "vue";
3
+ import { G as B, J as pe, Y as Rn, a0 as xn, a1 as Mn, H as ne, z as Se, B as Ae, a2 as Vi, u as fe, a3 as $i, a4 as bi, A as He, K as Xe, U as kn, a5 as On, V as Ft, W as zn, a6 as yi, a7 as Fn } from "./menu-P5fkc5dC.js";
4
+ import { useI18n as me, useCoreStore as Zt, CustomAttributesForm as En } from "@feedmepos/mf-common";
5
+ import { useDialog as Be, useDialogChild as Jt, useSnackbar as De, components as xe, FmButtonColorThemeVariant as je, FmButtonVariant as qe, useBreakpoints as Ni } from "@feedmepos/ui-library";
6
+ import { C as Ue } from "./catalog-CMjiS7ai.js";
7
+ import { u as In, c as Dn } from "./search-7ZYHUW7s.js";
8
+ import { p as Qt, u as Pn } from "./app-DWhk47YC.js";
9
9
  import { _ as _i, a as Li } from "./tooltip-DpokWKto.js";
10
10
  import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  import { _ as Ke, a as Tn } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
12
12
  import { s as Lt, F as Un } from "./object-DNBFWMt7.js";
13
- import { l as $e, u as Bi } from "./discardConfirm-CVJNDIJA.js";
14
- import { R as Ne } from "./remy-BUK0FKVB.js";
13
+ import { l as $e, u as Bi } from "./discardConfirm-CbN3kexd.js";
14
+ import { R as Ne } from "./remy-B78xKauQ.js";
15
15
  import { _ as nt } from "./FormItem.vue_vue_type_script_setup_true_lang-DKsxEK-8.js";
16
- import { _ as it, l as Bt, T as Vn } from "./index-BE-iOSmz.js";
16
+ import { _ as it, l as Bt, T as Vn } from "./index-BX2gYUEk.js";
17
17
  import { useInventoryStore as Ki, InventoryBindingForm as $n, InventoryBindingSummary as Nn } from "@feedmepos/mf-inventory-portal";
18
18
  import { c as pt } from "./check-C9mY6LiX.js";
19
- import { L as Ln } from "./LinkProductSideSheet-CFpnwqge.js";
20
- import { f as mt } from "./currency-qJ7mlgUz.js";
19
+ import { L as Ln } from "./LinkProductSideSheet-CQn7wFtM.js";
20
+ import { f as mt } from "./currency-CYhKjzer.js";
21
21
  import { c as Bn } from "./string-DpfFixWH.js";
22
22
  import { V as Gi } from "./vuedraggable-WU01qJgi.js";
23
- import { _ as Kn } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BBmQn2Ix.js";
24
- import { V as wi } from "./index-B8jJbeMV.js";
23
+ import { _ as Kn } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DvaALPJo.js";
24
+ import { V as wi } from "./index-1N3cz_sz.js";
25
25
  class _t {
26
26
  constructor(i, t, n, a) {
27
27
  this.scheduler = i, this.menuStore = t, this.updateMenu = n, this.dialog = a;
@@ -367,21 +367,21 @@ class Wi {
367
367
  const n = this.getFallbackPrices(i), a = this.menuStore.state.menu.modules.item, o = this.menuStore.state.menu.modules.group, r = this.menuStore.items;
368
368
  function l(s, u) {
369
369
  const c = s.items.reduce((h, m) => {
370
- var I, k, y, g;
370
+ var D, k, y, g;
371
371
  const b = a.find((C) => m._id === C._id);
372
372
  if (!b && t) return h;
373
373
  const v = m.combinationKey ? {
374
- ...(I = b == null ? void 0 : b.variant) == null ? void 0 : I.variantCombinations.find(
374
+ ...(D = b == null ? void 0 : b.variant) == null ? void 0 : D.variantCombinations.find(
375
375
  (C) => C.combinationKey === m.combinationKey
376
376
  ),
377
377
  name: Vi(fe().variants, ((k = b == null ? void 0 : b.variant) == null ? void 0 : k.variantGroupIds) || [])[m.combinationKey]
378
378
  } : b, f = (y = o.find((C) => C._id === s._id)) == null ? void 0 : y.items.find((C) => C._id === m._id && C.combinationKey === m.combinationKey), S = !t && !m.combinationKey, z = (g = u.find(
379
379
  (C) => C._id == m._id && C.combinationKey == m.combinationKey
380
- )) == null ? void 0 : g.price, E = m.name ?? (f == null ? void 0 : f.name) ?? (v == null ? void 0 : v.name) ?? "", j = {
380
+ )) == null ? void 0 : g.price, F = m.name ?? (f == null ? void 0 : f.name) ?? (v == null ? void 0 : v.name) ?? "", j = {
381
381
  ...m,
382
- name: E,
382
+ name: F,
383
383
  code: v == null ? void 0 : v.code,
384
- fallbackName: S ? null : E,
384
+ fallbackName: S ? null : F,
385
385
  price: m.price,
386
386
  fallbackPrice: S ? null : z,
387
387
  orderFrom: m.orderFrom,
@@ -479,7 +479,7 @@ class Wi {
479
479
  }
480
480
  const jn = {};
481
481
  function Wn(e, i) {
482
- return O(), J("div", null, i[0] || (i[0] = [
482
+ return O(), Q("div", null, i[0] || (i[0] = [
483
483
  P("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
484
484
  ]));
485
485
  }
@@ -510,10 +510,10 @@ const Yn = /* @__PURE__ */ st(jn, [["render", Wn]]), Hn = {
510
510
  }
511
511
  return (a, o) => {
512
512
  const r = G("FmButton");
513
- return i.variant === "full" ? (O(), J("div", Hn, [
513
+ return i.variant === "full" ? (O(), Q("div", Hn, [
514
514
  P("div", Xn, de(a.title), 1),
515
515
  w(Yn),
516
- (O(!0), J(ke, null, Ye(a.items, (l) => (O(), Y(_i, {
516
+ (O(!0), Q(ke, null, Ye(a.items, (l) => (O(), Y(_i, {
517
517
  key: l.name,
518
518
  name: l.name,
519
519
  value: l.value || "--"
@@ -526,14 +526,14 @@ const Yn = /* @__PURE__ */ st(jn, [["render", Wn]]), Hn = {
526
526
  }));
527
527
  };
528
528
  }
529
- }), qn = { class: "space-y-24 p-16 border-fm-color-neutral-gray-200 fm-corner-radius-lg border" }, Zn = { class: "space-y-4" }, Qn = { class: "fm-typo-en-title-sm-600" }, Jn = { class: "text-fm-color-typo-secondary" }, eo = { class: "flex gap-16" }, to = { class: "flex-1" }, io = { class: "flex-1" }, no = /* @__PURE__ */ ue({
529
+ }), qn = { class: "space-y-24 p-16 border-fm-color-neutral-gray-200 fm-corner-radius-lg border" }, Zn = { class: "space-y-4" }, Jn = { class: "fm-typo-en-title-sm-600" }, Qn = { class: "text-fm-color-typo-secondary" }, eo = { class: "flex gap-16" }, to = { class: "flex-1" }, io = { class: "flex-1" }, no = /* @__PURE__ */ ue({
530
530
  __name: "CatalogSchedulerSelector",
531
531
  props: {
532
532
  linkedStatus: {}
533
533
  },
534
534
  emits: ["update:catalogAndScheduler"],
535
535
  setup(e, { emit: i }) {
536
- const t = e, n = i, { t: a } = me(), o = fe(), r = Q(o.state.currentCatalogId || null), l = F(() => {
536
+ const t = e, n = i, { t: a } = me(), o = fe(), r = J(o.state.currentCatalogId || null), l = E(() => {
537
537
  const h = Object.keys(t.linkedStatus.catalogs).map((m) => {
538
538
  var b;
539
539
  return {
@@ -548,7 +548,7 @@ const Yn = /* @__PURE__ */ st(jn, [["render", Wn]]), Hn = {
548
548
  },
549
549
  ...h
550
550
  ];
551
- }), s = Q(o.state.currentSchedulerId || null), u = () => r.value ? t.linkedStatus.catalogs[r.value].schedulers : t.linkedStatus.schedulers, c = F(() => {
551
+ }), s = J(o.state.currentSchedulerId || null), u = () => r.value ? t.linkedStatus.catalogs[r.value].schedulers : t.linkedStatus.schedulers, c = E(() => {
552
552
  const m = u().map((b) => {
553
553
  var v;
554
554
  return {
@@ -577,10 +577,10 @@ const Yn = /* @__PURE__ */ st(jn, [["render", Wn]]), Hn = {
577
577
  }
578
578
  ), (h, m) => {
579
579
  const b = G("FmSelect");
580
- return O(), J("div", qn, [
580
+ return O(), Q("div", qn, [
581
581
  P("div", Zn, [
582
- P("div", Qn, de(p(a)("menu.catalog_scheduler.title")), 1),
583
- P("div", Jn, de(p(a)("menu.catalog_scheduler.subtitle")), 1)
582
+ P("div", Jn, de(p(a)("menu.catalog_scheduler.title")), 1),
583
+ P("div", Qn, de(p(a)("menu.catalog_scheduler.subtitle")), 1)
584
584
  ]),
585
585
  P("div", eo, [
586
586
  P("div", to, [
@@ -628,7 +628,7 @@ const Yn = /* @__PURE__ */ st(jn, [["render", Wn]]), Hn = {
628
628
  P("div", oo, [
629
629
  P("div", ao, [
630
630
  P("p", ro, de(n.title), 1),
631
- n.description ? (O(), J("p", so, de(n.description), 1)) : te("", !0)
631
+ n.description ? (O(), Q("p", so, de(n.description), 1)) : te("", !0)
632
632
  ]),
633
633
  w(o, {
634
634
  "model-value": n.toggle,
@@ -637,7 +637,7 @@ const Yn = /* @__PURE__ */ st(jn, [["render", Wn]]), Hn = {
637
637
  ]),
638
638
  w(bn, { name: "expand" }, {
639
639
  default: L(() => [
640
- n.toggle ? (O(), J("div", lo, [
640
+ n.toggle ? (O(), Q("div", lo, [
641
641
  ve(n.$slots, "default", {}, void 0, !0)
642
642
  ])) : te("", !0)
643
643
  ]),
@@ -648,7 +648,7 @@ const Yn = /* @__PURE__ */ st(jn, [["render", Wn]]), Hn = {
648
648
  }));
649
649
  };
650
650
  }
651
- }), Ze = /* @__PURE__ */ st(uo, [["__scopeId", "data-v-e920f110"]]), co = "/assets/linked-status-CuDKKXQw.js", mo = "/assets/override-menu-DcOjhAMV.js";
651
+ }), Ze = /* @__PURE__ */ st(uo, [["__scopeId", "data-v-e920f110"]]), co = "/assets/linked-status-BxxFZgFB.js", mo = "/assets/override-menu-n1hZOkM9.js";
652
652
  function ho(e) {
653
653
  var n;
654
654
  const i = ne(e), t = (n = i.variant) == null ? void 0 : n.variantCombinations;
@@ -825,11 +825,11 @@ function Yi(e, i) {
825
825
  return a;
826
826
  }, [])) || []).join(" / ");
827
827
  }
828
- const Ft = /* @__PURE__ */ new Map();
828
+ const Et = /* @__PURE__ */ new Map();
829
829
  async function bo(e, i) {
830
830
  const t = `${e._id}-${e.updatedAt}-${i}`;
831
- if (Ft.has(t))
832
- return Ft.get(t);
831
+ if (Et.has(t))
832
+ return Et.get(t);
833
833
  const n = await $i(
834
834
  co,
835
835
  JSON.stringify({
@@ -837,13 +837,13 @@ async function bo(e, i) {
837
837
  itemId: i
838
838
  })
839
839
  );
840
- return Ft.set(t, n), n;
840
+ return Et.set(t, n), n;
841
841
  }
842
- const Dt = /* @__PURE__ */ new Map();
842
+ const It = /* @__PURE__ */ new Map();
843
843
  async function yo(e, i, t) {
844
844
  const n = `${e._id}-${e.updatedAt}-${i || "null"}-${t || "null"}`;
845
- if (Dt.has(n))
846
- return Dt.get(n);
845
+ if (It.has(n))
846
+ return It.get(n);
847
847
  const a = await $i(
848
848
  mo,
849
849
  JSON.stringify({
@@ -852,7 +852,7 @@ async function yo(e, i, t) {
852
852
  schedulerIds: t ? [t] : void 0
853
853
  })
854
854
  );
855
- return Dt.set(n, a), a;
855
+ return It.set(n, a), a;
856
856
  }
857
857
  async function Bs(e, i, t) {
858
858
  var r, l;
@@ -888,7 +888,7 @@ const _o = Pi("menu-edit-state", {
888
888
  })
889
889
  }), wo = {}, So = { class: "pl-32" };
890
890
  function Co(e, i) {
891
- return O(), J("div", So, [
891
+ return O(), Q("div", So, [
892
892
  ve(e.$slots, "default")
893
893
  ]);
894
894
  }
@@ -936,22 +936,22 @@ function xo(e, i) {
936
936
  }
937
937
  function et(e) {
938
938
  return function(i) {
939
- if (Array.isArray(i)) return It(i);
939
+ if (Array.isArray(i)) return Dt(i);
940
940
  }(e) || function(i) {
941
941
  if (typeof Symbol < "u" && i[Symbol.iterator] != null || i["@@iterator"] != null) return Array.from(i);
942
942
  }(e) || function(i, t) {
943
943
  if (i) {
944
- if (typeof i == "string") return It(i, t);
944
+ if (typeof i == "string") return Dt(i, t);
945
945
  var n = Object.prototype.toString.call(i).slice(8, -1);
946
946
  if (n === "Object" && i.constructor && (n = i.constructor.name), n === "Map" || n === "Set") return Array.from(i);
947
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return It(i, t);
947
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Dt(i, t);
948
948
  }
949
949
  }(e) || function() {
950
950
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
951
951
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
952
952
  }();
953
953
  }
954
- function It(e, i) {
954
+ function Dt(e, i) {
955
955
  (i == null || i > e.length) && (i = e.length);
956
956
  for (var t = 0, n = new Array(i); t < i; t++) n[t] = e[t];
957
957
  return n;
@@ -987,7 +987,7 @@ var Ai, Mo, ft, ge = (Ai = function(e) {
987
987
  return function() {
988
988
  throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
989
989
  }(i == null && ft.path);
990
- } }, ft.exports), ft.exports), Ee = function(e) {
990
+ } }, ft.exports), ft.exports), Fe = function(e) {
991
991
  return function(i, t) {
992
992
  if (!i) return e;
993
993
  var n;
@@ -1152,7 +1152,7 @@ ii.render = function(e, i, t, n, a, o) {
1152
1152
  return o.onMouseLeave && o.onMouseLeave.apply(o, arguments);
1153
1153
  }) }, [ve(e.$slots, "default")], 34);
1154
1154
  };
1155
- var Pt = Ee("vue-handler-wrapper"), Qi = { name: "HandlerWrapper", components: { DraggableElement: ii }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
1155
+ var Pt = Fe("vue-handler-wrapper"), Ji = { name: "HandlerWrapper", components: { DraggableElement: ii }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
1156
1156
  var e;
1157
1157
  if (this.horizontalPosition || this.verticalPosition) {
1158
1158
  var i, t = Hi(this.horizontalPosition, this.verticalPosition);
@@ -1160,7 +1160,7 @@ var Pt = Ee("vue-handler-wrapper"), Qi = { name: "HandlerWrapper", components: {
1160
1160
  } else e = Pt({ disabled: this.disabled });
1161
1161
  return { root: e, draggable: Pt("draggable") };
1162
1162
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
1163
- Qi.render = function(e, i, t, n, a, o) {
1163
+ Ji.render = function(e, i, t, n, a, o) {
1164
1164
  var r = G("DraggableElement");
1165
1165
  return O(), Y("div", { class: o.classes.root }, [w(r, { class: o.classes.draggable, onDrag: i[1] || (i[1] = function(l) {
1166
1166
  return e.$emit("drag", l);
@@ -1174,11 +1174,11 @@ Qi.render = function(e, i, t, n, a, o) {
1174
1174
  return [ve(e.$slots, "default")];
1175
1175
  }), _: 3 }, 8, ["class"])], 2);
1176
1176
  };
1177
- var zo = Ee("vue-line-wrapper"), Ji = { name: "LineWrapper", components: { DraggableElement: ii }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
1177
+ var zo = Fe("vue-line-wrapper"), Qi = { name: "LineWrapper", components: { DraggableElement: ii }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
1178
1178
  var e;
1179
1179
  return zo((Oe(e = {}, this.position, !0), Oe(e, "disabled", this.disabled), e));
1180
1180
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
1181
- Ji.render = function(e, i, t, n, a, o) {
1181
+ Qi.render = function(e, i, t, n, a, o) {
1182
1182
  var r = G("DraggableElement");
1183
1183
  return O(), Y(r, { class: o.classname, onDrag: i[1] || (i[1] = function(l) {
1184
1184
  return e.$emit("drag", l);
@@ -1192,7 +1192,7 @@ Ji.render = function(e, i, t, n, a, o) {
1192
1192
  return [ve(e.$slots, "default")];
1193
1193
  }), _: 3 }, 8, ["class"]);
1194
1194
  };
1195
- var De = ["left", "right", "top", "bottom"], Eo = ["left", "right"], Fo = ["top", "bottom"], Do = ["left", "top"], Io = ["fill-area", "fit-area", "stencil", "none"], Mi = { left: 0, top: 0, width: 0, height: 0 };
1195
+ var Ie = ["left", "right", "top", "bottom"], Fo = ["left", "right"], Eo = ["top", "bottom"], Io = ["left", "top"], Do = ["fill-area", "fit-area", "stencil", "none"], Mi = { left: 0, top: 0, width: 0, height: 0 };
1196
1196
  function ki(e, i, t) {
1197
1197
  return !(t = t || ["width", "height", "left", "top"]).some(function(n) {
1198
1198
  return e[n] !== i[n];
@@ -1209,12 +1209,12 @@ function _e(e) {
1209
1209
  }
1210
1210
  function ht(e, i) {
1211
1211
  var t = { left: 0, top: 0, right: 0, bottom: 0 };
1212
- return De.forEach(function(n) {
1212
+ return Ie.forEach(function(n) {
1213
1213
  var a = i[n], o = Pe(e)[n];
1214
1214
  t[n] = a !== void 0 && o !== void 0 ? n === "left" || n === "top" ? Math.max(0, a - o) : Math.max(0, o - a) : 0;
1215
1215
  }), t;
1216
1216
  }
1217
- function Fe(e, i) {
1217
+ function Ee(e, i) {
1218
1218
  return { left: e.left - i.left, top: e.top - i.top, width: e.width + i.left + i.right, height: e.height + i.top + i.bottom };
1219
1219
  }
1220
1220
  function Mt(e) {
@@ -1277,7 +1277,7 @@ function Po(e, i) {
1277
1277
  function nn(e, i, t) {
1278
1278
  t === void 0 && (t = !0);
1279
1279
  var n = {};
1280
- return De.forEach(function(a) {
1280
+ return Ie.forEach(function(a) {
1281
1281
  var o = e[a], r = i[a];
1282
1282
  o !== void 0 && r !== void 0 ? n[a] = a === "left" || a === "top" ? t ? Math.max(o, r) : Math.min(o, r) : t ? Math.min(o, r) : Math.max(o, r) : r !== void 0 ? n[a] = r : o !== void 0 && (n[a] = o);
1283
1283
  }), n;
@@ -1384,8 +1384,8 @@ function Go(e) {
1384
1384
  c = Me(c, { left: u.left || 0, top: u.top || 0 });
1385
1385
  var v = { stencil: { minimum: Math.max(a.minWidth ? a.minWidth / d.width : 0, a.minHeight ? a.minHeight / d.height : 0), maximum: Math.min(a.maxWidth ? a.maxWidth / d.width : 1 / 0, a.maxHeight ? a.maxHeight / d.height : 1 / 0, at(d, r)) }, area: { maximum: at(c, o({ visibleArea: c, type: "resize" })) } };
1386
1386
  s.factor && b && (s.factor < 1 ? (m = Math.max(s.factor, v.stencil.minimum)) > 1 && (m = 1) : s.factor > 1 && (m = Math.min(s.factor, Math.min(v.area.maximum, v.stencil.maximum))) < 1 && (m = 1)), m && (c = ze(c, m, s.center));
1387
- var f = t.left - n.left, S = n.width + n.left - (t.width + t.left), z = t.top - n.top, E = n.height + n.top - (t.height + t.top);
1388
- return c = we(c = Me(c, rt(c, { left: r.left !== void 0 ? r.left - f * m : void 0, top: r.top !== void 0 ? r.top - z * m : void 0, bottom: r.bottom !== void 0 ? r.bottom + E * m : void 0, right: r.right !== void 0 ? r.right + S * m : void 0 })), o({ visibleArea: c, type: "move" })), d.width = d.width * m, d.height = d.height * m, d.left = c.left + f * m, d.top = c.top + z * m, d = we(d, Ot(Pe(c), r)), s.factor && b && l && (s.factor > 1 ? h = Math.min(v.area.maximum, s.factor) / m : s.factor < 1 && (h = Math.max(d.height / c.height, d.width / c.width, s.factor / m)), h !== 1 && (c = Me(c = we(c = ze(c, h, s.factor > 1 ? s.center : _e(d)), o({ visibleArea: c, type: "move" })), Mt(rt(d, Pe(c)))))), { coordinates: d, visibleArea: c };
1387
+ var f = t.left - n.left, S = n.width + n.left - (t.width + t.left), z = t.top - n.top, F = n.height + n.top - (t.height + t.top);
1388
+ return c = we(c = Me(c, rt(c, { left: r.left !== void 0 ? r.left - f * m : void 0, top: r.top !== void 0 ? r.top - z * m : void 0, bottom: r.bottom !== void 0 ? r.bottom + F * m : void 0, right: r.right !== void 0 ? r.right + S * m : void 0 })), o({ visibleArea: c, type: "move" })), d.width = d.width * m, d.height = d.height * m, d.left = c.left + f * m, d.top = c.top + z * m, d = we(d, Ot(Pe(c), r)), s.factor && b && l && (s.factor > 1 ? h = Math.min(v.area.maximum, s.factor) / m : s.factor < 1 && (h = Math.max(d.height / c.height, d.width / c.width, s.factor / m)), h !== 1 && (c = Me(c = we(c = ze(c, h, s.factor > 1 ? s.center : _e(d)), o({ visibleArea: c, type: "move" })), Mt(rt(d, Pe(c)))))), { coordinates: d, visibleArea: c };
1389
1389
  }
1390
1390
  function jo(e) {
1391
1391
  var i = e.aspectRatio, t = e.getAreaRestrictions, n = e.coordinates, a = e.visibleArea, o = e.sizeRestrictions, r = e.positionRestrictions, l = e.imageSize, s = e.previousImageSize, u = e.angle, c = X({}, n), d = X({}, a), h = We(_e(X({ left: 0, top: 0 }, s)), u);
@@ -1399,33 +1399,33 @@ function Wo(e) {
1399
1399
  }
1400
1400
  return { coordinates: s, visibleArea: u };
1401
1401
  }
1402
- function Ei(e) {
1403
- var i = e.directions, t = e.coordinates, n = e.positionRestrictions, a = n === void 0 ? {} : n, o = e.sizeRestrictions, r = e.preserveRatio, l = e.compensate, s = X({}, i), u = Fe(t, s).width, c = Fe(t, s).height;
1402
+ function Fi(e) {
1403
+ var i = e.directions, t = e.coordinates, n = e.positionRestrictions, a = n === void 0 ? {} : n, o = e.sizeRestrictions, r = e.preserveRatio, l = e.compensate, s = X({}, i), u = Ee(t, s).width, c = Ee(t, s).height;
1404
1404
  u < 0 && (s.left < 0 && s.right < 0 ? (s.left = -(t.width - o.minWidth) / (s.left / s.right), s.right = -(t.width - o.minWidth) / (s.right / s.left)) : s.left < 0 ? s.left = -(t.width - o.minWidth) : s.right < 0 && (s.right = -(t.width - o.minWidth))), c < 0 && (s.top < 0 && s.bottom < 0 ? (s.top = -(t.height - o.minHeight) / (s.top / s.bottom), s.bottom = -(t.height - o.minHeight) / (s.bottom / s.top)) : s.top < 0 ? s.top = -(t.height - o.minHeight) : s.bottom < 0 && (s.bottom = -(t.height - o.minHeight)));
1405
- var d = ht(Fe(t, s), a);
1406
- l && (d.left && d.left > 0 && d.right === 0 ? (s.right += d.left, s.left -= d.left) : d.right && d.right > 0 && d.left === 0 && (s.left += d.right, s.right -= d.right), d.top && d.top > 0 && d.bottom === 0 ? (s.bottom += d.top, s.top -= d.top) : d.bottom && d.bottom > 0 && d.top === 0 && (s.top += d.bottom, s.bottom -= d.bottom), d = ht(Fe(t, s), a));
1405
+ var d = ht(Ee(t, s), a);
1406
+ l && (d.left && d.left > 0 && d.right === 0 ? (s.right += d.left, s.left -= d.left) : d.right && d.right > 0 && d.left === 0 && (s.left += d.right, s.right -= d.right), d.top && d.top > 0 && d.bottom === 0 ? (s.bottom += d.top, s.top -= d.top) : d.bottom && d.bottom > 0 && d.top === 0 && (s.top += d.bottom, s.bottom -= d.bottom), d = ht(Ee(t, s), a));
1407
1407
  var h = { width: 1 / 0, height: 1 / 0, left: 1 / 0, right: 1 / 0, top: 1 / 0, bottom: 1 / 0 };
1408
- if (De.forEach(function(v) {
1408
+ if (Ie.forEach(function(v) {
1409
1409
  var f = d[v];
1410
1410
  f && s[v] && (h[v] = Math.max(0, 1 - f / s[v]));
1411
1411
  }), r) {
1412
- var m = Math.min.apply(null, De.map(function(v) {
1412
+ var m = Math.min.apply(null, Ie.map(function(v) {
1413
1413
  return h[v];
1414
1414
  }));
1415
- m !== 1 / 0 && De.forEach(function(v) {
1415
+ m !== 1 / 0 && Ie.forEach(function(v) {
1416
1416
  s[v] *= m;
1417
1417
  });
1418
- } else De.forEach(function(v) {
1418
+ } else Ie.forEach(function(v) {
1419
1419
  h[v] !== 1 / 0 && (s[v] *= h[v]);
1420
1420
  });
1421
- if (u = Fe(t, s).width, c = Fe(t, s).height, s.right + s.left && (u > o.maxWidth ? h.width = (o.maxWidth - t.width) / (s.right + s.left) : u < o.minWidth && (h.width = (o.minWidth - t.width) / (s.right + s.left))), s.bottom + s.top && (c > o.maxHeight ? h.height = (o.maxHeight - t.height) / (s.bottom + s.top) : c < o.minHeight && (h.height = (o.minHeight - t.height) / (s.bottom + s.top))), r) {
1421
+ if (u = Ee(t, s).width, c = Ee(t, s).height, s.right + s.left && (u > o.maxWidth ? h.width = (o.maxWidth - t.width) / (s.right + s.left) : u < o.minWidth && (h.width = (o.minWidth - t.width) / (s.right + s.left))), s.bottom + s.top && (c > o.maxHeight ? h.height = (o.maxHeight - t.height) / (s.bottom + s.top) : c < o.minHeight && (h.height = (o.minHeight - t.height) / (s.bottom + s.top))), r) {
1422
1422
  var b = Math.min(h.width, h.height);
1423
- b !== 1 / 0 && De.forEach(function(v) {
1423
+ b !== 1 / 0 && Ie.forEach(function(v) {
1424
1424
  s[v] *= b;
1425
1425
  });
1426
- } else h.width !== 1 / 0 && Eo.forEach(function(v) {
1426
+ } else h.width !== 1 / 0 && Fo.forEach(function(v) {
1427
1427
  s[v] *= h.width;
1428
- }), h.height !== 1 / 0 && Fo.forEach(function(v) {
1428
+ }), h.height !== 1 / 0 && Eo.forEach(function(v) {
1429
1429
  s[v] *= h.height;
1430
1430
  });
1431
1431
  return s;
@@ -1433,7 +1433,7 @@ function Ei(e) {
1433
1433
  function bt(e, i, t) {
1434
1434
  return i == 0 && t == 0 ? e / 2 : i == 0 ? 0 : t == 0 ? e : e * Math.abs(i / (i + t));
1435
1435
  }
1436
- var Yo = Ee("vue-simple-handler"), Ho = Ee("vue-simple-handler-wrapper"), ni = { name: "SimpleHandler", components: { HandlerWrapper: Qi }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
1436
+ var Yo = Fe("vue-simple-handler"), Ho = Fe("vue-simple-handler-wrapper"), ni = { name: "SimpleHandler", components: { HandlerWrapper: Ji }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
1437
1437
  return { hover: !1 };
1438
1438
  }, computed: { classes: function() {
1439
1439
  var e, i = (Oe(e = {}, this.horizontalPosition, !!this.horizontalPosition), Oe(e, this.verticalPosition, !!this.verticalPosition), Oe(e, "".concat(this.horizontalPosition, "-").concat(this.verticalPosition), !!(this.verticalPosition && this.horizontalPosition)), Oe(e, "hover", this.hover), e);
@@ -1453,7 +1453,7 @@ ni.render = function(e, i, t, n, a, o) {
1453
1453
  return [w("div", { class: o.classes.default }, null, 2)];
1454
1454
  }), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
1455
1455
  };
1456
- var Xo = Ee("vue-simple-line"), qo = Ee("vue-simple-line-wrapper"), oi = { name: "SimpleLine", components: { LineWrapper: Ji }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
1456
+ var Xo = Fe("vue-simple-line"), qo = Fe("vue-simple-line-wrapper"), oi = { name: "SimpleLine", components: { LineWrapper: Qi }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
1457
1457
  return { hover: !1 };
1458
1458
  }, computed: { classes: function() {
1459
1459
  return { root: ge(Xo(Oe({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: ge(qo(Oe({}, this.position, !0)), this.wrapperClass) };
@@ -1472,7 +1472,7 @@ oi.render = function(e, i, t, n, a, o) {
1472
1472
  return [w("div", { class: o.classes.root }, null, 2)];
1473
1473
  }), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
1474
1474
  };
1475
- var Ut = Ee("vue-bounding-box"), Zo = ["east", "west", null], Qo = ["south", "north", null], on = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
1475
+ var Ut = Fe("vue-bounding-box"), Zo = ["east", "west", null], Jo = ["south", "north", null], on = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
1476
1476
  return { eastNorth: !0, north: !0, westNorth: !0, west: !0, westSouth: !0, south: !0, eastSouth: !0, east: !0 };
1477
1477
  } }, handlersComponent: { type: [Object, String], default: function() {
1478
1478
  return ni;
@@ -1491,7 +1491,7 @@ var Ut = Ee("vue-bounding-box"), Zo = ["east", "west", null], Qo = ["south", "no
1491
1491
  } }, resizable: { type: Boolean, default: !0 } }, data: function() {
1492
1492
  var e = [];
1493
1493
  return Zo.forEach(function(i) {
1494
- Qo.forEach(function(t) {
1494
+ Jo.forEach(function(t) {
1495
1495
  if (i !== t) {
1496
1496
  var n = Hi(i, t), a = n.name, o = n.classname;
1497
1497
  e.push({ name: a, classname: o, verticalDirection: t, horizontalDirection: i });
@@ -1548,8 +1548,8 @@ on.render = function(e, i, t, n, a, o) {
1548
1548
  }) }, null, 8, ["default-class", "hover-class", "wrapper-class", "horizontal-position", "vertical-position", "disabled", "onDrag"]))], 6);
1549
1549
  }), 128))], 6);
1550
1550
  };
1551
- var Jo = Ee("vue-draggable-area"), an = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
1552
- return { default: Jo() };
1551
+ var Qo = Fe("vue-draggable-area"), an = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
1552
+ return { default: Qo() };
1553
1553
  } }, beforeMount: function() {
1554
1554
  window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
1555
1555
  }, beforeUnmount: function() {
@@ -1666,7 +1666,7 @@ function ta(e) {
1666
1666
  return null;
1667
1667
  }
1668
1668
  }
1669
- function Fi(e, i) {
1669
+ function Ei(e, i) {
1670
1670
  var t = i.getBoundingClientRect(), n = t.left, a = t.top, o = { left: 0, top: 0 }, r = 0;
1671
1671
  return e.forEach(function(l) {
1672
1672
  o.left += (l.clientX - n) / e.length, o.top += (l.clientY - a) / e.length;
@@ -1684,7 +1684,7 @@ var sn = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
1684
1684
  if (this.touches.length) {
1685
1685
  if (this.touches.length === 1 && i.length === 1) this.$emit("move", new dt({ left: this.touches[0].clientX - i[0].clientX, top: this.touches[0].clientY - i[0].clientY }));
1686
1686
  else if (this.touches.length > 1 && this.touchResize) {
1687
- var t = Fi(i, this.$refs.container), n = this.oldGeometricProperties;
1687
+ var t = Ei(i, this.$refs.container), n = this.oldGeometricProperties;
1688
1688
  n.count === t.count && n.count > 1 && this.$emit("resize", new dt({ left: n.centerMass.left - t.centerMass.left, top: n.centerMass.top - t.centerMass.top }, { factor: n.spread / t.spread, center: t.centerMass })), this.oldGeometricProperties = t;
1689
1689
  }
1690
1690
  this.touches = i;
@@ -1700,7 +1700,7 @@ var sn = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
1700
1700
  var i = this.$refs.container, t = i.getBoundingClientRect(), n = t.left, a = t.top, o = t.bottom, r = t.right;
1701
1701
  this.touches = et(e.touches).filter(function(l) {
1702
1702
  return l.clientX > n && l.clientX < r && l.clientY > a && l.clientY < o;
1703
- }), this.oldGeometricProperties = Fi(this.touches, i);
1703
+ }), this.oldGeometricProperties = Ei(this.touches, i);
1704
1704
  }
1705
1705
  }, onTouchEnd: function(e) {
1706
1706
  e.touches.length === 0 && (this.touches = [], this.processEnd());
@@ -1750,7 +1750,7 @@ Xt.render = function(e, i, t, n, a, o) {
1750
1750
  return [ve(e.$slots, "default")];
1751
1751
  }), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
1752
1752
  };
1753
- var yt = Ee("vue-preview"), ln = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
1753
+ var yt = Fe("vue-preview"), ln = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
1754
1754
  return {};
1755
1755
  } }, imageClass: { type: String }, width: { type: Number }, height: { type: Number }, fill: { type: Boolean } }, data: function() {
1756
1756
  return { calculatedImageSize: { width: 0, height: 0 }, calculatedSize: { width: 0, height: 0 } };
@@ -1794,14 +1794,14 @@ var yt = Ee("vue-preview"), ln = { props: { coordinates: { type: Object }, trans
1794
1794
  e && e.complete && this.refreshImage(), this.refresh();
1795
1795
  } } };
1796
1796
  ln.render = function(e, i, t, n, a, o) {
1797
- return O(), Y("div", { ref: "root", class: o.classes.root, style: o.style }, [w("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [Je(w("img", { ref: "image", src: t.image && t.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[At, t.image && t.image.src]])], 6)], 6);
1797
+ return O(), Y("div", { ref: "root", class: o.classes.root, style: o.style }, [w("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [Qe(w("img", { ref: "image", src: t.image && t.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[At, t.image && t.image.src]])], 6)], 6);
1798
1798
  };
1799
1799
  var un = { components: { Preview: ln }, inheritAttrs: !1 };
1800
1800
  un.render = function(e, i, t, n, a, o) {
1801
1801
  var r = G("preview");
1802
1802
  return O(), Y(r, Ti(e.$attrs, { fill: !0 }), null, 16);
1803
1803
  };
1804
- var $t = Ee("vue-rectangle-stencil"), cn = { name: "RectangleStencil", components: { StencilPreview: un, BoundingBox: on, DraggableArea: an }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
1804
+ var $t = Fe("vue-rectangle-stencil"), cn = { name: "RectangleStencil", components: { StencilPreview: un, BoundingBox: on, DraggableArea: an }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
1805
1805
  return ni;
1806
1806
  } }, lines: { type: Object }, linesComponent: { type: [Object, String], default: function() {
1807
1807
  return oi;
@@ -1839,22 +1839,22 @@ cn.render = function(e, i, t, n, a, o) {
1839
1839
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
1840
1840
  }), _: 1 }, 8, ["width", "height", "transitions", "class", "handlers", "handlers-component", "handlers-classes", "handlers-wrappers-classes", "lines", "lines-component", "lines-classes", "lines-wrappers-classes", "resizable", "onResize", "onResizeEnd"])], 6);
1841
1841
  };
1842
- var ia = ["transitions"], Te = Ee("vue-advanced-cropper"), dn = { name: "Cropper", components: { BackgroundWrapper: Xt }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
1842
+ var ia = ["transitions"], Te = Fe("vue-advanced-cropper"), dn = { name: "Cropper", components: { BackgroundWrapper: Xt }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
1843
1843
  return cn;
1844
1844
  } }, backgroundWrapperComponent: { type: [Object, String], default: function() {
1845
1845
  return Xt;
1846
1846
  } }, stencilProps: { type: Object, default: function() {
1847
1847
  return {};
1848
1848
  } }, autoZoom: { type: Boolean, default: !1 }, imageClass: { type: String }, boundariesClass: { type: String }, backgroundClass: { type: String }, foregroundClass: { type: String }, minWidth: { type: [Number, String] }, minHeight: { type: [Number, String] }, maxWidth: { type: [Number, String] }, maxHeight: { type: [Number, String] }, debounce: { type: [Boolean, Number], default: 500 }, transitions: { type: Boolean, default: !0 }, checkOrientation: { type: Boolean, default: !0 }, canvas: { type: [Object, Boolean], default: !0 }, crossOrigin: { type: [Boolean, String], default: void 0 }, transitionTime: { type: Number, default: 300 }, imageRestriction: { type: String, default: "fit-area", validator: function(e) {
1849
- return Io.indexOf(e) !== -1;
1849
+ return Do.indexOf(e) !== -1;
1850
1850
  } }, roundResult: { type: Boolean, default: !0 }, defaultSize: { type: [Function, Object] }, defaultPosition: { type: [Function, Object] }, defaultVisibleArea: { type: [Function, Object] }, defaultTransforms: { type: [Function, Object] }, defaultBoundaries: { type: [Function, String], validator: function(e) {
1851
1851
  return !(typeof e == "string" && e !== "fill" && e !== "fit");
1852
1852
  } }, priority: { type: String, default: "coordinates" }, stencilSize: { type: [Object, Function] }, resizeImage: { type: [Boolean, Object], default: !0 }, moveImage: { type: [Boolean, Object], default: !0 }, autoZoomAlgorithm: { type: Function }, resizeAlgorithm: { type: Function, default: function(e) {
1853
1853
  var i = e.event, t = e.coordinates, n = e.aspectRatio, a = e.positionRestrictions, o = e.sizeRestrictions, r = X(X({}, t), { right: t.left + t.width, bottom: t.top + t.height }), l = i.params || {}, s = X({}, i.directions), u = l.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
1854
- o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), De.forEach(function(j) {
1854
+ o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), Ie.forEach(function(j) {
1855
1855
  u[j] || (s[j] = 0);
1856
1856
  });
1857
- var c = Fe(r, s = Ei({ coordinates: r, directions: s, sizeRestrictions: o, positionRestrictions: a })).width, d = Fe(r, s).height, h = l.preserveRatio ? ae(r) : Tt(c / d, n);
1857
+ var c = Ee(r, s = Fi({ coordinates: r, directions: s, sizeRestrictions: o, positionRestrictions: a })).width, d = Ee(r, s).height, h = l.preserveRatio ? ae(r) : Tt(c / d, n);
1858
1858
  if (h) {
1859
1859
  var m = l.respectDirection;
1860
1860
  if (m || (m = r.width >= r.height || h === 1 ? "width" : "height"), m === "width") {
@@ -1866,13 +1866,13 @@ var ia = ["transitions"], Te = Ee("vue-advanced-cropper"), dn = { name: "Cropper
1866
1866
  } else if (m === "height") {
1867
1867
  var S = r.width - d * h;
1868
1868
  if (u.left && u.right) {
1869
- var z = s.left, E = s.right;
1870
- s.left = -bt(S, z, E), s.right = -bt(S, E, z);
1869
+ var z = s.left, F = s.right;
1870
+ s.left = -bt(S, z, F), s.right = -bt(S, F, z);
1871
1871
  } else u.left ? s.left = -S : u.right ? s.right = -S : u.top ? s.top = 0 : u.bottom && (s.bottom = 0);
1872
1872
  }
1873
- s = Ei({ directions: s, coordinates: r, sizeRestrictions: o, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
1873
+ s = Fi({ directions: s, coordinates: r, sizeRestrictions: o, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
1874
1874
  }
1875
- return c = Fe(r, s).width, d = Fe(r, s).height, (h = l.preserveRatio ? ae(r) : Tt(c / d, n)) && Math.abs(h - c / d) > 1e-3 && De.forEach(function(j) {
1875
+ return c = Ee(r, s).width, d = Ee(r, s).height, (h = l.preserveRatio ? ae(r) : Tt(c / d, n)) && Math.abs(h - c / d) > 1e-3 && Ie.forEach(function(j) {
1876
1876
  u[j] || (s[j] = 0);
1877
1877
  }), Ht({ event: new ti({ left: -s.left, top: -s.top }), coordinates: { width: t.width + s.right + s.left, height: t.height + s.top + s.bottom, left: t.left, top: t.top }, positionRestrictions: a });
1878
1878
  } }, moveAlgorithm: { type: Function, default: Ht }, initStretcher: { type: Function, default: function(e) {
@@ -2030,13 +2030,13 @@ var ia = ["transitions"], Te = Ee("vue-advanced-cropper"), dn = { name: "Cropper
2030
2030
  if (t.type === "manipulateImage") return X(X({}, t), { move: { left: t.move && t.move.left ? a * t.move.left : 0, top: t.move && t.move.top ? a * t.move.top : 0 }, scale: { factor: t.scale && t.scale.factor ? t.scale.factor : 1, center: t.scale && t.scale.center ? { left: t.scale.center.left * a + n.left, top: t.scale.center.top * a + n.top } : null } });
2031
2031
  if (t.type === "resize") {
2032
2032
  var o = X(X({}, t), { directions: X({}, t.directions) });
2033
- return De.forEach(function(l) {
2033
+ return Ie.forEach(function(l) {
2034
2034
  o.directions[l] *= a;
2035
2035
  }), o;
2036
2036
  }
2037
2037
  if (t.type === "move") {
2038
2038
  var r = X(X({}, t), { directions: X({}, t.directions) });
2039
- return Do.forEach(function(l) {
2039
+ return Io.forEach(function(l) {
2040
2040
  r.directions[l] *= a;
2041
2041
  }), r;
2042
2042
  }
@@ -2268,7 +2268,7 @@ var ia = ["transitions"], Te = Ee("vue-advanced-cropper"), dn = { name: "Cropper
2268
2268
  dn.render = function(e, i, t, n, a, o) {
2269
2269
  return O(), Y("div", { ref: "cropper", class: o.classes.cropper }, [w("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), w("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(O(), Y(St(t.backgroundWrapperComponent), { class: o.classes.cropperWrapper, "wheel-resize": o.settings.resizeImage.wheel, "touch-resize": o.settings.resizeImage.touch, "touch-move": o.settings.moveImage.touch, "mouse-move": o.settings.moveImage.mouse, onMove: o.onManipulateImage, onResize: o.onManipulateImage }, { default: L(function() {
2270
2270
  return [w("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), w("div", { class: o.classes.imageWrapper }, [w("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: i[1] || (i[1] = Rt(function() {
2271
- }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), w("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Je((O(), Y(St(t.stencilComponent), Ti({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, t.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[At, a.imageLoaded]]), t.canvas ? (O(), Y("canvas", na, null, 512)) : te("", !0), t.canvas ? (O(), Y("canvas", oa, null, 512)) : te("", !0)];
2271
+ }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), w("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Qe((O(), Y(St(t.stencilComponent), Ti({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, t.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[At, a.imageLoaded]]), t.canvas ? (O(), Y("canvas", na, null, 512)) : te("", !0), t.canvas ? (O(), Y("canvas", oa, null, 512)) : te("", !0)];
2272
2272
  }), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
2273
2273
  };
2274
2274
  const aa = {
@@ -2291,7 +2291,7 @@ const aa = {
2291
2291
  },
2292
2292
  emits: ["update:model-value", "reset:model-value"],
2293
2293
  setup(e, { emit: i }) {
2294
- const t = e, { t: n } = me(), a = i, o = F(() => t.modelValue ? URL.createObjectURL(t.modelValue) : ""), r = Q();
2294
+ const t = e, { t: n } = me(), a = i, o = E(() => t.modelValue ? URL.createObjectURL(t.modelValue) : ""), r = J();
2295
2295
  function l(b, v) {
2296
2296
  const S = 2e3 / b;
2297
2297
  return {
@@ -2302,12 +2302,12 @@ const aa = {
2302
2302
  }
2303
2303
  function s(b) {
2304
2304
  const { width: v, height: f } = b, S = 16 / 9, z = v / f;
2305
- let E = v, j = f;
2306
- z > S ? j = E / S : E = j * S;
2307
- const I = l(E, j), k = Ro(I.width, I.height), y = E > v ? (E - v) / 2 * I.ratio : 0, g = j > f ? (j - f) / 2 * I.ratio : 0, C = k.getContext("2d");
2308
- return C.fillStyle = "white", C.fillRect(0, 0, I.width, I.height), C.drawImage(b, 0, 0, E, j, y, g, I.width, I.height), k.toDataURL();
2305
+ let F = v, j = f;
2306
+ z > S ? j = F / S : F = j * S;
2307
+ const D = l(F, j), k = Ro(D.width, D.height), y = F > v ? (F - v) / 2 * D.ratio : 0, g = j > f ? (j - f) / 2 * D.ratio : 0, C = k.getContext("2d");
2308
+ return C.fillStyle = "white", C.fillRect(0, 0, D.width, D.height), C.drawImage(b, 0, 0, F, j, y, g, D.width, D.height), k.toDataURL();
2309
2309
  }
2310
- const u = Q(!1);
2310
+ const u = J(!1);
2311
2311
  async function c([b]) {
2312
2312
  if (!b) return;
2313
2313
  u.value = !0;
@@ -2335,7 +2335,7 @@ const aa = {
2335
2335
  }
2336
2336
  return (b, v) => {
2337
2337
  const f = G("fm-icon"), S = G("fm-drop-field");
2338
- return r.value || o.value ? (O(), J("div", aa, [
2338
+ return r.value || o.value ? (O(), Q("div", aa, [
2339
2339
  P("p", ra, [
2340
2340
  Ct(de(p(n)("menu.common.labels.product_image")) + " ", 1),
2341
2341
  P("span", sa, de(p(n)("menu.common.labels.optional")), 1)
@@ -2433,7 +2433,7 @@ const aa = {
2433
2433
  },
2434
2434
  emits: ["update:model-value"],
2435
2435
  setup(e, { emit: i }) {
2436
- const t = e, { t: n } = me(), a = i, o = F(() => ({
2436
+ const t = e, { t: n } = me(), a = i, o = E(() => ({
2437
2437
  ALL: {
2438
2438
  label: n("menu.order.from.options.all"),
2439
2439
  value: B.F_ORDER_FROM.enum.ALL
@@ -2446,7 +2446,7 @@ const aa = {
2446
2446
  label: n("menu.order.from.options.none"),
2447
2447
  value: B.F_ORDER_FROM.enum.NONE
2448
2448
  }
2449
- })), r = F(() => {
2449
+ })), r = E(() => {
2450
2450
  const u = Object.values(o.value);
2451
2451
  if (t.disable) return u;
2452
2452
  let c = t.editActiveOnly ? [o.value.ALL, o.value.NONE] : u;
@@ -2462,14 +2462,14 @@ const aa = {
2462
2462
  let c = u;
2463
2463
  return t.editActiveOnly && u && (c = c === B.F_ORDER_FROM.enum.NONE ? B.F_ORDER_FROM.enum.NONE : B.F_ORDER_FROM.enum.ALL), c;
2464
2464
  }
2465
- const s = F(() => {
2465
+ const s = E(() => {
2466
2466
  if (t.modelValue) return t.modelValue;
2467
2467
  const u = t.editActiveOnly || t.required, c = r.value.some((h) => h.value === null), d = u && !c ? t.fallback ?? r.value[0].value : t.modelValue;
2468
2468
  return d ? l(d) : null;
2469
2469
  });
2470
2470
  return (u, c) => {
2471
2471
  const d = G("fm-select");
2472
- return O(), J("div", null, [
2472
+ return O(), Q("div", null, [
2473
2473
  w(d, {
2474
2474
  disabled: e.disable,
2475
2475
  items: r.value,
@@ -2490,7 +2490,7 @@ const aa = {
2490
2490
  fill: "none"
2491
2491
  };
2492
2492
  function ga(e, i) {
2493
- return O(), J("svg", fa, i[0] || (i[0] = [
2493
+ return O(), Q("svg", fa, i[0] || (i[0] = [
2494
2494
  P("path", {
2495
2495
  fill: "#1C1C1E",
2496
2496
  d: "M7.6 7.6c.57-.658.9-2.1.9-2.1s.314 1.374.857 2c.572.66 2.143 1 2.143 1s-1.57.198-2.143.857C8.814 9.984 8.5 11.5 8.5 11.5s-.18-1.311-.75-1.91C7.149 8.962 5.5 8.5 5.5 8.5s1.5-.207 2.1-.9M12.2 12.2C13.342 10.885 14 8 14 8s.627 2.747 1.714 4C16.86 13.32 20 14 20 14s-3.141.395-4.286 1.714C14.627 16.967 14 20 14 20s-.358-2.622-1.5-3.818C11.298 14.922 8 14 8 14s2.998-.415 4.2-1.8"
@@ -2511,7 +2511,7 @@ const va = { render: ga }, ba = {
2511
2511
  fill: "none"
2512
2512
  };
2513
2513
  function ya(e, i) {
2514
- return O(), J("svg", ba, i[0] || (i[0] = [
2514
+ return O(), Q("svg", ba, i[0] || (i[0] = [
2515
2515
  P("g", {
2516
2516
  stroke: "#1C1C1E",
2517
2517
  "stroke-linecap": "round",
@@ -2531,7 +2531,7 @@ const _a = { render: ya }, mn = /* @__PURE__ */ ue({
2531
2531
  setup(e) {
2532
2532
  return (i, t) => {
2533
2533
  var n;
2534
- return (n = p(Ne)) != null && n.enable.value ? (O(), J("button", {
2534
+ return (n = p(Ne)) != null && n.enable.value ? (O(), Q("button", {
2535
2535
  key: 0,
2536
2536
  class: Le([!i.pureStyling && "bg-fm-color-neutral-gray-100 rounded-lg p-[6px]"]),
2537
2537
  type: "button",
@@ -2542,7 +2542,7 @@ const _a = { render: ya }, mn = /* @__PURE__ */ ue({
2542
2542
  ], 2)) : te("", !0);
2543
2543
  };
2544
2544
  }
2545
- }), Di = /* @__PURE__ */ ue({
2545
+ }), Ii = /* @__PURE__ */ ue({
2546
2546
  __name: "AddCategoryDialogContentComponent",
2547
2547
  props: {
2548
2548
  initialValue: {}
@@ -2555,7 +2555,7 @@ const _a = { render: ya }, mn = /* @__PURE__ */ ue({
2555
2555
  n.value = r ?? "";
2556
2556
  }
2557
2557
  );
2558
- const n = Q(i.initialValue), { emitData: a, emitAction: o } = Qt();
2558
+ const n = J(i.initialValue), { emitData: a, emitAction: o } = Jt();
2559
2559
  return Re(
2560
2560
  n,
2561
2561
  (r) => {
@@ -2589,10 +2589,10 @@ const _a = { render: ya }, mn = /* @__PURE__ */ ue({
2589
2589
  }) => {
2590
2590
  const { t } = me();
2591
2591
  function n() {
2592
- const { updateMenu: l } = i, s = Q(!1);
2592
+ const { updateMenu: l } = i, s = J(!1);
2593
2593
  e.open({
2594
2594
  title: t("menu.category.manager.dialog.add.title"),
2595
- contentComponent: Di,
2595
+ contentComponent: Ii,
2596
2596
  primaryActions: {
2597
2597
  text: t("menu.category.manager.dialog.add.action"),
2598
2598
  close: !1,
@@ -2625,7 +2625,7 @@ const _a = { render: ya }, mn = /* @__PURE__ */ ue({
2625
2625
  const { updateMenu: s } = i;
2626
2626
  e.open({
2627
2627
  title: t("menu.category.manager.dialog.update.title"),
2628
- contentComponent: Di,
2628
+ contentComponent: Ii,
2629
2629
  contentComponentProps: {
2630
2630
  initialValue: l.name
2631
2631
  },
@@ -2709,18 +2709,18 @@ const Ca = {
2709
2709
  class: "fm-typo-en-body-lg-600"
2710
2710
  }, za = {
2711
2711
  class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary"
2712
- }, Ea = {
2713
- class: "flex flex-col gap-16"
2714
2712
  }, Fa = {
2713
+ class: "flex flex-col gap-16"
2714
+ }, Ea = {
2715
2715
  class: "space-y-8"
2716
- }, Da = {
2716
+ }, Ia = {
2717
2717
  key: 0,
2718
2718
  class: "flex items-center gap-8"
2719
2719
  };
2720
- var Qe = /* @__PURE__ */ function(e) {
2720
+ var Je = /* @__PURE__ */ function(e) {
2721
2721
  return e.ADD_ON = "ADD_ON", e.PRODUCT = "PRODUCT", e;
2722
- }(Qe || {});
2723
- const Ia = /* @__PURE__ */ ue({
2722
+ }(Je || {});
2723
+ const Da = /* @__PURE__ */ ue({
2724
2724
  __name: "ProductDetail",
2725
2725
  props: {
2726
2726
  isOverride: {
@@ -2740,20 +2740,20 @@ const Ia = /* @__PURE__ */ ue({
2740
2740
  setup(e, {
2741
2741
  emit: i
2742
2742
  }) {
2743
- const t = e, n = fe(), a = Be(), o = Ie(), r = He(o), l = Xe(r), s = Sa({
2743
+ const t = e, n = fe(), a = Be(), o = De(), r = He(o), l = Xe(r), s = Sa({
2744
2744
  dialog: a,
2745
2745
  menuLoader: l
2746
2746
  }), {
2747
2747
  checkMenuIsLoading: u
2748
- } = Xe(He(Ie())), c = i, d = F(() => n.rules.item), h = F(() => n.categorizedItems), m = F(() => {
2748
+ } = Xe(He(De())), c = i, d = E(() => n.rules.item), h = E(() => n.categorizedItems), m = E(() => {
2749
2749
  const k = h.value.map((y) => ({
2750
2750
  label: y.name,
2751
2751
  value: y.id
2752
2752
  }));
2753
2753
  return t.isAddon ? k : k.filter((y) => !!y.value);
2754
- }), b = F(() => d.value.addon), v = F(() => !m.value.find((k) => !!k.value)), f = () => {
2754
+ }), b = E(() => d.value.addon), v = E(() => !m.value.find((k) => !!k.value)), f = () => {
2755
2755
  var k;
2756
- return t.isAddon ? null : Je(w(xe.FmSelect, {
2756
+ return t.isAddon ? null : Qe(w(xe.FmSelect, {
2757
2757
  disabled: !d.value.category || t.isAddon || u(),
2758
2758
  items: m.value,
2759
2759
  modelValue: t.form.category ?? ((k = t.fallback) == null ? void 0 : k.category),
@@ -2774,19 +2774,19 @@ const Ia = /* @__PURE__ */ ue({
2774
2774
  }), [[Nt("if"), !t.isAddon]]);
2775
2775
  };
2776
2776
  ut(() => {
2777
- !v.value && t.form.category === void 0 && t.isCreate && z(Qe.PRODUCT);
2777
+ !v.value && t.form.category === void 0 && t.isCreate && z(Je.PRODUCT);
2778
2778
  });
2779
- const S = F(() => {
2779
+ const S = E(() => {
2780
2780
  var y;
2781
2781
  const k = t.form.name || ((y = t.fallback) == null ? void 0 : y.name);
2782
2782
  return k ? n.items.filter((g) => !!g.category && g._id !== t.form._id && g.name === k).length : 0;
2783
2783
  });
2784
2784
  function z(k) {
2785
2785
  var g, C, x;
2786
- const y = k == Qe.ADD_ON;
2786
+ const y = k == Je.ADD_ON;
2787
2787
  c("update:form", "category", t.isOverride ? y ? "" : ((g = t.fallback) == null ? void 0 : g.category) ?? ((C = m.value.find((M) => !!M.value)) == null ? void 0 : C.value) : y ? null : (x = m.value.find((M) => !!M.value)) == null ? void 0 : x.value);
2788
2788
  }
2789
- const E = Q(!1);
2789
+ const F = J(!1);
2790
2790
  async function j() {
2791
2791
  var k, y, g;
2792
2792
  if (!t.form.name) {
@@ -2797,9 +2797,9 @@ const Ia = /* @__PURE__ */ ue({
2797
2797
  } else
2798
2798
  return;
2799
2799
  }
2800
- if (!E.value)
2800
+ if (!F.value)
2801
2801
  try {
2802
- E.value = !0, Jt({
2802
+ F.value = !0, Qt({
2803
2803
  event: "menu_catalog_item_general_remy_suggest_description"
2804
2804
  }), Ne.toggleDialog(!0);
2805
2805
  const C = await ((y = (k = Ne).getItemDescription) == null ? void 0 : y.call(k, {
@@ -2807,47 +2807,47 @@ const Ia = /* @__PURE__ */ ue({
2807
2807
  }, !0)), x = (g = C == null ? void 0 : C.data) == null ? void 0 : g.value;
2808
2808
  typeof x == "string" && c("update:form", "description", x);
2809
2809
  } finally {
2810
- E.value = !1;
2810
+ F.value = !1;
2811
2811
  }
2812
2812
  }
2813
2813
  const {
2814
- t: I
2814
+ t: D
2815
2815
  } = me();
2816
2816
  return (k, y) => {
2817
2817
  const g = G("fm-text-field"), C = G("fm-textarea"), x = G("fm-radio"), M = G("FmSnackbar"), R = G("FmButton"), _ = G("fm-radio-group"), A = G("FmFormGroup"), U = Nt("tooltip");
2818
2818
  return O(), Y(Ke, {
2819
- title: p(I)("menu.product.form.detail.title")
2819
+ title: p(D)("menu.product.form.detail.title")
2820
2820
  }, {
2821
2821
  default: L(() => {
2822
2822
  var V, N;
2823
2823
  return [P("div", Ca, [P("div", Aa, [P("div", Ra, [P("div", xa, [w(g, {
2824
2824
  "model-value": k.form.code,
2825
- placeholder: ((V = k.fallback) == null ? void 0 : V.code) || p(I)("menu.product.form.detail.fields.code.placeholder"),
2826
- label: p(I)("menu.product.form.detail.fields.code.label"),
2825
+ placeholder: ((V = k.fallback) == null ? void 0 : V.code) || p(D)("menu.product.form.detail.fields.code.placeholder"),
2826
+ label: p(D)("menu.product.form.detail.fields.code.label"),
2827
2827
  "onUpdate:modelValue": y[0] || (y[0] = (q) => c("update:form", "code", p(hn)(q, k.isOverride)))
2828
2828
  }, null, 8, ["model-value", "placeholder", "label"])]), P("div", Ma, [w(g, {
2829
2829
  id: "product-name",
2830
2830
  disabled: !d.value.name,
2831
- "helper-text": S.value > 0 ? p(I)("menu.product.form.detail.fields.name.duplicate_warning", {
2831
+ "helper-text": S.value > 0 ? p(D)("menu.product.form.detail.fields.name.duplicate_warning", {
2832
2832
  count: S.value
2833
2833
  }) : void 0,
2834
2834
  "model-value": k.form.name,
2835
2835
  placeholder: (N = k.fallback) == null ? void 0 : N.name,
2836
- rules: d.value.name ? [(q) => !!q || p(I)("menu.product.form.detail.fields.name.required")] : void 0,
2836
+ rules: d.value.name ? [(q) => !!q || p(D)("menu.product.form.detail.fields.name.required")] : void 0,
2837
2837
  "label-mark": "required",
2838
2838
  autofocus: "",
2839
- label: p(I)("menu.product.form.detail.fields.name.label"),
2839
+ label: p(D)("menu.product.form.detail.fields.name.label"),
2840
2840
  "onUpdate:modelValue": y[1] || (y[1] = (q) => c("update:form", "name", q))
2841
2841
  }, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), P("div", ka, [w(C, {
2842
2842
  disabled: !d.value.description,
2843
2843
  "model-value": k.form.description,
2844
- placeholder: p(I)("menu.product.form.detail.fields.description.placeholder"),
2844
+ placeholder: p(D)("menu.product.form.detail.fields.description.placeholder"),
2845
2845
  "onUpdate:modelValue": y[2] || (y[2] = (q) => c("update:form", "description", q.trim())),
2846
2846
  class: "description"
2847
2847
  }, {
2848
- label: L(() => [P("p", Oa, [Ct(de(p(I)("menu.product.form.detail.fields.description.label")) + " ", 1), P("span", za, de(p(I)("menu.product.form.detail.fields.description.optional")), 1)])]),
2848
+ label: L(() => [P("p", Oa, [Ct(de(p(D)("menu.product.form.detail.fields.description.label")) + " ", 1), P("span", za, de(p(D)("menu.product.form.detail.fields.description.optional")), 1)])]),
2849
2849
  _: 1
2850
- }, 8, ["disabled", "model-value", "placeholder"]), Je(w(mn, {
2850
+ }, 8, ["disabled", "model-value", "placeholder"]), Qe(w(mn, {
2851
2851
  class: "absolute top-32 right-4 cursor-pointer",
2852
2852
  onClick: j
2853
2853
  }, null, 512), [[U, p(Li)("Suggest description")]])])]), w(pa, {
@@ -2856,36 +2856,36 @@ const Ia = /* @__PURE__ */ ue({
2856
2856
  "onUpdate:modelValue": y[3] || (y[3] = (q) => c("update:thumbnail", q)),
2857
2857
  "onReset:modelValue": y[4] || (y[4] = (q) => c("reset:thumbnail"))
2858
2858
  }, null, 8, ["disabled", "model-value"])]), w(nt, {
2859
- label: p(I)("menu.product.form.detail.category.label")
2859
+ label: p(D)("menu.product.form.detail.category.label")
2860
2860
  }, {
2861
2861
  default: L(() => [b.value ? (O(), Y(_, {
2862
2862
  key: 0,
2863
2863
  disabled: !d.value.category,
2864
- "model-value": k.isAddon ? Qe.ADD_ON : Qe.PRODUCT,
2864
+ "model-value": k.isAddon ? Je.ADD_ON : Je.PRODUCT,
2865
2865
  "onUpdate:modelValue": y[5] || (y[5] = (q) => z(q))
2866
2866
  }, {
2867
- default: L(() => [P("div", Ea, [P("div", Fa, [w(x, {
2867
+ default: L(() => [P("div", Fa, [P("div", Ea, [w(x, {
2868
2868
  disabled: v.value,
2869
- value: Qe.PRODUCT,
2870
- label: p(I)("menu.product.form.detail.category.options.product.label"),
2871
- sublabel: p(I)("menu.product.form.detail.category.options.product.sublabel")
2869
+ value: Je.PRODUCT,
2870
+ label: p(D)("menu.product.form.detail.category.options.product.label"),
2871
+ sublabel: p(D)("menu.product.form.detail.category.options.product.sublabel")
2872
2872
  }, null, 8, ["disabled", "value", "label", "sublabel"]), w(Ao, null, {
2873
2873
  default: L(() => [p(n).isV4 ? (O(), Y(f, {
2874
2874
  key: 0
2875
2875
  })) : te("", !0)]),
2876
2876
  _: 1
2877
- })]), v.value ? (O(), J("div", Da, [w(M, {
2878
- title: p(I)("menu.product.form.detail.category.add_first"),
2877
+ })]), v.value ? (O(), Q("div", Ia, [w(M, {
2878
+ title: p(D)("menu.product.form.detail.category.add_first"),
2879
2879
  variant: "info"
2880
2880
  }, null, 8, ["title"]), w(R, {
2881
- label: p(I)("menu.common.actions.add"),
2881
+ label: p(D)("menu.common.actions.add"),
2882
2882
  "prepend-icon": "add",
2883
2883
  variant: "secondary",
2884
2884
  onClick: p(s).create
2885
2885
  }, null, 8, ["label", "onClick"])])) : te("", !0), w(x, {
2886
- value: Qe.ADD_ON,
2887
- label: p(I)("menu.product.form.detail.category.options.addon.label"),
2888
- sublabel: p(I)("menu.product.form.detail.category.options.addon.sublabel")
2886
+ value: Je.ADD_ON,
2887
+ label: p(D)("menu.product.form.detail.category.options.addon.label"),
2888
+ sublabel: p(D)("menu.product.form.detail.category.options.addon.sublabel")
2889
2889
  }, null, 8, ["value", "label", "sublabel"])])]),
2890
2890
  _: 1
2891
2891
  }, 8, ["disabled", "model-value"])) : te("", !0), p(n).isV4 ? te("", !0) : (O(), Y(A, {
@@ -2903,8 +2903,8 @@ const Ia = /* @__PURE__ */ ue({
2903
2903
  "model-value": k.form.orderFrom,
2904
2904
  "order-from-none": d.value.orderFromNone,
2905
2905
  required: d.value.orderFrom,
2906
- "default-label": p(I)("menu.product.form.detail.order_from.default"),
2907
- label: p(I)("menu.product.form.detail.order_from.label"),
2906
+ "default-label": p(D)("menu.product.form.detail.order_from.default"),
2907
+ label: p(D)("menu.product.form.detail.order_from.label"),
2908
2908
  "onUpdate:modelValue": y[7] || (y[7] = (q) => q && c("update:form", "orderFrom", q))
2909
2909
  }, null, 8, ["disabled", "model-value", "order-from-none", "required", "default-label", "label"])];
2910
2910
  }),
@@ -2912,9 +2912,9 @@ const Ia = /* @__PURE__ */ ue({
2912
2912
  }, 8, ["title"]);
2913
2913
  };
2914
2914
  }
2915
- }), Pa = /* @__PURE__ */ st(Ia, [["__scopeId", "data-v-eea0bb17"]]), Ta = {}, Ua = { class: "overflow-x-auto" }, Va = { class: "xs:w-[600px]" };
2915
+ }), Pa = /* @__PURE__ */ st(Da, [["__scopeId", "data-v-eea0bb17"]]), Ta = {}, Ua = { class: "overflow-x-auto" }, Va = { class: "xs:w-[600px]" };
2916
2916
  function $a(e, i) {
2917
- return O(), J("div", Ua, [
2917
+ return O(), Q("div", Ua, [
2918
2918
  P("div", Va, [
2919
2919
  ve(e.$slots, "default")
2920
2920
  ])
@@ -2923,7 +2923,7 @@ function $a(e, i) {
2923
2923
  const pn = /* @__PURE__ */ st(Ta, [["render", $a]]), Na = /* @__PURE__ */ ue({
2924
2924
  __name: "AddForm",
2925
2925
  setup(e) {
2926
- const i = fe(), t = F(() => i.rules.group), n = F(() => !!i.state.currentCatalogId || !!i.state.currentSchedulerId), a = F(() => {
2926
+ const i = fe(), t = E(() => i.rules.group), n = E(() => !!i.state.currentCatalogId || !!i.state.currentSchedulerId), a = E(() => {
2927
2927
  const s = !i.state.currentSchedulerId, u = i.rules.group.type, c = i.version === B.F_MENU_VERSION.enum.v3, d = i.rules.item.orderFromActiveOnly, h = i.rules.item.bindToVariant;
2928
2928
  return function(b) {
2929
2929
  return {
@@ -2948,7 +2948,7 @@ const pn = /* @__PURE__ */ st(Ta, [["render", $a]]), Na = /* @__PURE__ */ ue({
2948
2948
  items: {},
2949
2949
  position: i.groups.length - 1,
2950
2950
  itemsLinked: []
2951
- }), r = Q(o()), { t: l } = me();
2951
+ }), r = J(o()), { t: l } = me();
2952
2952
  return (s, u) => t.value.create ? (O(), Y(p(sr), {
2953
2953
  key: 0,
2954
2954
  "categorized-items": p(i).categorizedItems,
@@ -2969,7 +2969,7 @@ const pn = /* @__PURE__ */ st(Ta, [["render", $a]]), Na = /* @__PURE__ */ ue({
2969
2969
  }
2970
2970
  }), La = {}, Ba = { class: "flex gap-16" };
2971
2971
  function Ka(e, i) {
2972
- return O(), J("div", Ba, [
2972
+ return O(), Q("div", Ba, [
2973
2973
  ve(e.$slots, "default")
2974
2974
  ]);
2975
2975
  }
@@ -2984,9 +2984,9 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
2984
2984
  },
2985
2985
  emits: ["update:inventory"],
2986
2986
  setup(e, { expose: i, emit: t }) {
2987
- const n = e, a = Q(!1), o = (m) => {
2987
+ const n = e, a = J(!1), o = (m) => {
2988
2988
  pt.isBoolean(m) ? a.value = m : a.value = !a.value;
2989
- }, r = Q([]), l = t, s = Bi(
2989
+ }, r = J([]), l = t, s = Bi(
2990
2990
  () => !$e.isEqual(r.value, n.initialValue),
2991
2991
  () => {
2992
2992
  a.value = !1;
@@ -3007,12 +3007,12 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3007
3007
  const { t: d } = me(), h = Ki();
3008
3008
  return (m, b) => {
3009
3009
  const v = G("fm-text-field"), f = G("fm-card"), S = G("fm-button"), z = G("fm-side-sheet");
3010
- return O(), J(ke, null, [
3010
+ return O(), Q(ke, null, [
3011
3011
  ve(m.$slots, "default", { trigger: o }),
3012
3012
  w(z, {
3013
3013
  id: "inventory-form",
3014
3014
  modelValue: a.value,
3015
- "onUpdate:modelValue": b[2] || (b[2] = (E) => a.value = E),
3015
+ "onUpdate:modelValue": b[2] || (b[2] = (F) => a.value = F),
3016
3016
  "close-button": !1,
3017
3017
  "is-container": p(xe).FmForm,
3018
3018
  "is-container-props": {
@@ -3055,7 +3055,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3055
3055
  default: L(() => [
3056
3056
  w(p($n), {
3057
3057
  modelValue: r.value,
3058
- "onUpdate:modelValue": b[0] || (b[0] = (E) => r.value = E)
3058
+ "onUpdate:modelValue": b[0] || (b[0] = (F) => r.value = F)
3059
3059
  }, null, 8, ["modelValue"])
3060
3060
  ]),
3061
3061
  _: 1
@@ -3073,9 +3073,9 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3073
3073
  key: 1
3074
3074
  }, Za = {
3075
3075
  class: "xs:overflow-x-scroll"
3076
- }, Qa = {
3076
+ }, Ja = {
3077
3077
  class: "xs:min-w-[640px]"
3078
- }, Ja = /* @__PURE__ */ ue({
3078
+ }, Qa = /* @__PURE__ */ ue({
3079
3079
  __name: "OptionTable",
3080
3080
  props: {
3081
3081
  config: {},
@@ -3089,39 +3089,39 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3089
3089
  setup(e, {
3090
3090
  emit: i
3091
3091
  }) {
3092
- const t = e, n = i, a = Ie(), o = Zt(), r = fe(), l = F(() => Ae.Country.getCountry(o.currentCountry.value)), s = Q(!1), u = F(() => t.config.isV4 || t.group.type === B.F_ADDON_GROUP_TYPE.enum.PRODUCT), c = F(() => u.value), d = F(() => u.value), h = F(() => Object.values(t.group.items).flatMap((D) => [{
3093
- _id: D._id,
3092
+ const t = e, n = i, a = De(), o = Zt(), r = fe(), l = E(() => Ae.Country.getCountry(o.currentCountry.value)), s = J(!1), u = E(() => t.config.isV4 || t.group.type === B.F_ADDON_GROUP_TYPE.enum.PRODUCT), c = E(() => u.value), d = E(() => u.value), h = E(() => Object.values(t.group.items).flatMap((I) => [{
3093
+ _id: I._id,
3094
3094
  combinationKey: void 0
3095
- }, ...(D.items ?? []).map((T) => ({
3095
+ }, ...(I.items ?? []).map((T) => ({
3096
3096
  _id: T._id,
3097
3097
  combinationKey: T.combinationKey
3098
3098
  }))])), {
3099
3099
  searchKey: m,
3100
3100
  filter: b
3101
- } = Dn(), v = F(() => {
3102
- const D = Object.entries(t.group.items).filter(([, T]) => b([T.code || "", T.name || T.fallbackName, z(T.price ?? T.fallbackPrice), E(T.orderFrom || T.fallbackOrder), ...(T.items || []).map((K) => [K.code || "", K.name || K.fallbackName, z(K.price ?? K.fallbackPrice), E(K.orderFrom || K.fallbackOrder)].join(""))]));
3103
- return Object.fromEntries(D);
3104
- }), f = (D) => ({
3101
+ } = In(), v = E(() => {
3102
+ const I = Object.entries(t.group.items).filter(([, T]) => b([T.code || "", T.name || T.fallbackName, z(T.price ?? T.fallbackPrice), F(T.orderFrom || T.fallbackOrder), ...(T.items || []).map((K) => [K.code || "", K.name || K.fallbackName, z(K.price ?? K.fallbackPrice), F(K.orderFrom || K.fallbackOrder)].join(""))]));
3103
+ return Object.fromEntries(I);
3104
+ }), f = (I) => ({
3105
3105
  ...t.config,
3106
- isDefault: t.config.isDefault(D),
3107
- link: t.config.link(D),
3108
- name: t.config.name(D),
3109
- orderFrom: t.config.orderFrom(D)
3110
- }), S = F(() => t.config.isItemGroup), z = (D) => D ? mt(D, !1) : "", E = (D) => {
3106
+ isDefault: t.config.isDefault(I),
3107
+ link: t.config.link(I),
3108
+ name: t.config.name(I),
3109
+ orderFrom: t.config.orderFrom(I)
3110
+ }), S = E(() => t.config.isItemGroup), z = (I) => I ? mt(I, !1) : "", F = (I) => {
3111
3111
  var T;
3112
- return D == null ? "" : (T = kn()[D]) == null ? void 0 : T.label;
3113
- }, j = F(() => Object.values(v.value)), I = Q({}), {
3112
+ return I == null ? "" : (T = kn()[I]) == null ? void 0 : T.label;
3113
+ }, j = E(() => Object.values(v.value)), D = J({}), {
3114
3114
  t: k
3115
- } = me(), y = Q([{
3115
+ } = me(), y = J([{
3116
3116
  accessorKey: "isDefault",
3117
3117
  header: () => k("menu.group.option.is_default"),
3118
3118
  enableSorting: !1,
3119
3119
  size: 75,
3120
- cell: (D) => {
3120
+ cell: (I) => {
3121
3121
  var ee, ie;
3122
- if ((ie = (ee = D.row.original) == null ? void 0 : ee.items) != null && ie.length)
3122
+ if ((ie = (ee = I.row.original) == null ? void 0 : ee.items) != null && ie.length)
3123
3123
  return null;
3124
- const T = D.row.depth > 0, K = D.row.original, Z = !!D.getValue();
3124
+ const T = I.row.depth > 0, K = I.row.original, Z = !!I.getValue();
3125
3125
  return w(xe.FmCheckbox, {
3126
3126
  value: "default",
3127
3127
  modelValue: Z,
@@ -3129,7 +3129,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3129
3129
  "onUpdate:modelValue": (le) => {
3130
3130
  var ye;
3131
3131
  if (T) {
3132
- const Ge = (ye = D.row.getParentRow()) == null ? void 0 : ye.original;
3132
+ const Ge = (ye = I.row.getParentRow()) == null ? void 0 : ye.original;
3133
3133
  if (!Ge) return;
3134
3134
  M(Ge._id, K.combinationKey ?? "", "isDefault", le);
3135
3135
  } else
@@ -3142,8 +3142,8 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3142
3142
  header: () => k("menu.group.option.code"),
3143
3143
  enableSorting: !1,
3144
3144
  size: 100,
3145
- cell: (D) => {
3146
- const T = D.getValue();
3145
+ cell: (I) => {
3146
+ const T = I.getValue();
3147
3147
  return w(xe.FmTooltip, {
3148
3148
  class: "flex",
3149
3149
  content: T,
@@ -3158,8 +3158,8 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3158
3158
  accessorKey: "name",
3159
3159
  header: () => k("menu.group.option.product_title"),
3160
3160
  enableSorting: !1,
3161
- cell: (D) => {
3162
- const T = D.getValue(), K = D.row.original, Z = D.row.depth > 0, ee = K.combinationKey ? Yi(K.combinationKey, fe().variants) : null;
3161
+ cell: (I) => {
3162
+ const T = I.getValue(), K = I.row.original, Z = I.row.depth > 0, ee = K.combinationKey ? Yi(K.combinationKey, fe().variants) : null;
3163
3163
  return he("div", he(xe.FmTextField, {
3164
3164
  modelValue: T,
3165
3165
  placeholder: ee ?? "",
@@ -3168,7 +3168,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3168
3168
  "onUpdate:modelValue": (ie) => {
3169
3169
  var le;
3170
3170
  if (Z) {
3171
- const ye = (le = D.row.getParentRow()) == null ? void 0 : le.original;
3171
+ const ye = (le = I.row.getParentRow()) == null ? void 0 : le.original;
3172
3172
  if (!ye) return;
3173
3173
  M(ye._id, K.combinationKey ?? "", "name", ie);
3174
3174
  } else
@@ -3178,10 +3178,10 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3178
3178
  }, {
3179
3179
  append: () => {
3180
3180
  var ie, le;
3181
- return (le = (ie = D.row.original) == null ? void 0 : ie.items) != null && le.length ? he(xe.FmIcon, {
3181
+ return (le = (ie = I.row.original) == null ? void 0 : ie.items) != null && le.length ? he(xe.FmIcon, {
3182
3182
  name: "keyboard_arrow_up",
3183
- onClick: D.row.getToggleExpandedHandler(),
3184
- class: ["cursor-pointer", "transition-transform", D.row.getIsExpanded() ? "transform rotate-180" : ""],
3183
+ onClick: I.row.getToggleExpandedHandler(),
3184
+ class: ["cursor-pointer", "transition-transform", I.row.getIsExpanded() ? "transform rotate-180" : ""],
3185
3185
  color: f(K.combinationKey).name ? void 0 : je.NeutralGray200
3186
3186
  }) : void 0;
3187
3187
  }
@@ -3191,14 +3191,14 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3191
3191
  accessorKey: "price",
3192
3192
  enableSorting: !1,
3193
3193
  header: () => {
3194
- var D;
3194
+ var I;
3195
3195
  return k("menu.group.option.price", {
3196
- symbol: (D = l.value) == null ? void 0 : D.currency.symbol
3196
+ symbol: (I = l.value) == null ? void 0 : I.currency.symbol
3197
3197
  });
3198
3198
  },
3199
3199
  size: 100,
3200
- cell: (D) => {
3201
- const T = D.getValue(), K = D.row.original, Z = K.fallbackPrice, ee = D.row.depth > 0;
3200
+ cell: (I) => {
3201
+ const T = I.getValue(), K = I.row.original, Z = K.fallbackPrice, ee = I.row.depth > 0;
3202
3202
  return he(it, {
3203
3203
  placeholder: Z ? mt(Z) : void 0,
3204
3204
  modelValue: T,
@@ -3208,7 +3208,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3208
3208
  "onUpdate:modelValue": (ie) => {
3209
3209
  var le;
3210
3210
  if (ee) {
3211
- const ye = (le = D.row.getParentRow()) == null ? void 0 : le.original;
3211
+ const ye = (le = I.row.getParentRow()) == null ? void 0 : le.original;
3212
3212
  if (!ye) return;
3213
3213
  M(
3214
3214
  ye._id,
@@ -3229,8 +3229,8 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3229
3229
  header: () => k("menu.common.labels.order_from"),
3230
3230
  size: 100,
3231
3231
  enableSorting: !1,
3232
- cell: (D) => {
3233
- const T = D.getValue(), K = D.row.original, Z = K.fallbackOrder, ee = D.row.depth > 0;
3232
+ cell: (I) => {
3233
+ const T = I.getValue(), K = I.row.original, Z = K.fallbackOrder, ee = I.row.depth > 0;
3234
3234
  return he(ai, {
3235
3235
  modelValue: T,
3236
3236
  fallback: Z,
@@ -3240,7 +3240,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3240
3240
  "onUpdate:modelValue": (ie) => {
3241
3241
  var le;
3242
3242
  if (ee) {
3243
- const ye = (le = D.row.getParentRow()) == null ? void 0 : le.original;
3243
+ const ye = (le = I.row.getParentRow()) == null ? void 0 : le.original;
3244
3244
  if (!ye) return;
3245
3245
  M(
3246
3246
  ye._id,
@@ -3264,8 +3264,8 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3264
3264
  enableSorting: !1,
3265
3265
  // size: rules.value.inventory && rules.value.link ? 80 : 40,
3266
3266
  size: 80,
3267
- cell: (D) => {
3268
- const T = D.row.original, K = D.row.depth > 0;
3267
+ cell: (I) => {
3268
+ const T = I.row.original, K = I.row.depth > 0;
3269
3269
  return w("div", {
3270
3270
  class: "flex items-center justify-end"
3271
3271
  }, [f(T.combinationKey).inventory && w(qt, {
@@ -3276,7 +3276,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3276
3276
  "onUpdate:inventory": (Z) => {
3277
3277
  var ee;
3278
3278
  if (K) {
3279
- const ie = (ee = D.row.getParentRow()) == null ? void 0 : ee.original;
3279
+ const ie = (ee = I.row.getParentRow()) == null ? void 0 : ee.original;
3280
3280
  if (!ie) return;
3281
3281
  M(
3282
3282
  ie._id,
@@ -3313,7 +3313,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3313
3313
  onClick: () => {
3314
3314
  var Z, ee;
3315
3315
  if (K) {
3316
- const ie = (Z = D.row.getParentRow()) == null ? void 0 : Z.original;
3316
+ const ie = (Z = I.row.getParentRow()) == null ? void 0 : Z.original;
3317
3317
  if (!ie) return;
3318
3318
  if ((((ee = t.group.items[ie._id].items) == null ? void 0 : ee.length) || 0) <= 1) {
3319
3319
  a.open({
@@ -3330,7 +3330,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3330
3330
  }
3331
3331
  }, null)]);
3332
3332
  }
3333
- }]), g = F(() => ({
3333
+ }]), g = E(() => ({
3334
3334
  code: d.value,
3335
3335
  name: !0,
3336
3336
  price: f(null).price,
@@ -3338,13 +3338,13 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3338
3338
  action: f(null).inventory || f(null).link
3339
3339
  }));
3340
3340
  async function C() {
3341
- const D = (/* @__PURE__ */ new Date()).toISOString();
3341
+ const I = (/* @__PURE__ */ new Date()).toISOString();
3342
3342
  n("update:group", {
3343
3343
  ...t.group,
3344
3344
  items: {
3345
3345
  ...t.group.items,
3346
- [D]: {
3347
- _id: D,
3346
+ [I]: {
3347
+ _id: I,
3348
3348
  name: "",
3349
3349
  inventoryBindings: [],
3350
3350
  price: Ae.Dinero.zero().toObject(),
@@ -3355,8 +3355,8 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3355
3355
  }
3356
3356
  });
3357
3357
  }
3358
- function x(D, T, K) {
3359
- const Z = t.group.items[D];
3358
+ function x(I, T, K) {
3359
+ const Z = t.group.items[I];
3360
3360
  if (!Z) return;
3361
3361
  const ee = {
3362
3362
  ...Z
@@ -3365,46 +3365,46 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3365
3365
  ...t.group,
3366
3366
  items: {
3367
3367
  ...t.group.items,
3368
- [D]: ee
3368
+ [I]: ee
3369
3369
  }
3370
3370
  });
3371
3371
  }
3372
- function M(D, T, K, Z) {
3372
+ function M(I, T, K, Z) {
3373
3373
  var ye, Ge;
3374
- const ee = ne(t.group), ie = (ye = ee.items[D].items) == null ? void 0 : ye.findIndex((lt) => lt.combinationKey === T);
3374
+ const ee = ne(t.group), ie = (ye = ee.items[I].items) == null ? void 0 : ye.findIndex((lt) => lt.combinationKey === T);
3375
3375
  if (!pt.isSet(ie)) return;
3376
- let le = (Ge = ee.items[D].items) == null ? void 0 : Ge[ie];
3376
+ let le = (Ge = ee.items[I].items) == null ? void 0 : Ge[ie];
3377
3377
  le && (le = {
3378
3378
  ...le,
3379
3379
  [K]: Z
3380
- }, ee.items[D].items[ie] = le, n("update:group", ee));
3380
+ }, ee.items[I].items[ie] = le, n("update:group", ee));
3381
3381
  }
3382
- function R(D) {
3382
+ function R(I) {
3383
3383
  const T = ne(t.group);
3384
- delete T.items[D], n("update:group", T);
3384
+ delete T.items[I], n("update:group", T);
3385
3385
  }
3386
- function _(D, T) {
3387
- const K = ne(t.group), Z = K.items[D];
3388
- Z && (Z.items = (Z.items || []).filter((ee) => ee.combinationKey !== T), K.items[D] = Z, n("update:group", K));
3386
+ function _(I, T) {
3387
+ const K = ne(t.group), Z = K.items[I];
3388
+ Z && (Z.items = (Z.items || []).filter((ee) => ee.combinationKey !== T), K.items[I] = Z, n("update:group", K));
3389
3389
  }
3390
- const A = F(() => t.categorizedItems.flatMap((D) => D.items).reduce((D, T) => {
3390
+ const A = E(() => t.categorizedItems.flatMap((I) => I.items).reduce((I, T) => {
3391
3391
  var K;
3392
- return D[T._id] = {
3392
+ return I[T._id] = {
3393
3393
  price: T.price,
3394
3394
  variants: On(((K = T.variant) == null ? void 0 : K.variantCombinations) || [], "combinationKey")
3395
- }, D;
3396
- }, {})), U = (D) => {
3395
+ }, I;
3396
+ }, {})), U = (I) => {
3397
3397
  var ee, ie;
3398
- const K = r.state.menu.modules.item.find((le) => le._id === D._id), Z = D.combinationKey ? {
3399
- ...(ee = K == null ? void 0 : K.variant) == null ? void 0 : ee.variantCombinations.find((le) => le.combinationKey === D.combinationKey),
3400
- name: Vi(fe().variants, ((ie = K == null ? void 0 : K.variant) == null ? void 0 : ie.variantGroupIds) || [])[D.combinationKey]
3398
+ const K = r.state.menu.modules.item.find((le) => le._id === I._id), Z = I.combinationKey ? {
3399
+ ...(ee = K == null ? void 0 : K.variant) == null ? void 0 : ee.variantCombinations.find((le) => le.combinationKey === I.combinationKey),
3400
+ name: Vi(fe().variants, ((ie = K == null ? void 0 : K.variant) == null ? void 0 : ie.variantGroupIds) || [])[I.combinationKey]
3401
3401
  } : K;
3402
3402
  return Z == null ? void 0 : Z.name;
3403
- }, V = async (D) => {
3403
+ }, V = async (I) => {
3404
3404
  let T = ei(t.group);
3405
3405
  T = {
3406
3406
  ...T,
3407
- items: D.map((K) => {
3407
+ items: I.map((K) => {
3408
3408
  const Z = T.items.find((ie) => ie._id == K._id && ie.combinationKey == K.combinationKey), ee = A.value[K._id];
3409
3409
  return Z || {
3410
3410
  ...K,
@@ -3414,26 +3414,26 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3414
3414
  };
3415
3415
  })
3416
3416
  }, n("update:unmap-group", T);
3417
- }, N = (D) => D.items;
3418
- function q(D) {
3417
+ }, N = (I) => I.items;
3418
+ function q(I) {
3419
3419
  const T = ne(t.group);
3420
- T.items = D.reduce((K, Z) => ({
3420
+ T.items = I.reduce((K, Z) => ({
3421
3421
  ...K,
3422
3422
  [Z._id]: Z
3423
3423
  }), {}), n("update:group", T);
3424
3424
  }
3425
- const re = Ni(), Ce = F(() => re.breakpoints.value.xs);
3426
- return (D, T) => {
3425
+ const re = Ni(), Ce = E(() => re.breakpoints.value.xs);
3426
+ return (I, T) => {
3427
3427
  const K = G("fm-button"), Z = G("fm-table");
3428
3428
  return O(), Y(Ke, {
3429
3429
  title: p(k)("menu.group.option.title")
3430
3430
  }, {
3431
- "append-title": L(() => [D.config.link() ? (O(), J(ke, {
3431
+ "append-title": L(() => [I.config.link() ? (O(), Q(ke, {
3432
3432
  key: 0
3433
- }, [c.value ? (O(), J("div", Xa, [w(Ln, {
3434
- "categorized-items": D.categorizedItems,
3433
+ }, [c.value ? (O(), Q("div", Xa, [w(Ln, {
3434
+ "categorized-items": I.categorizedItems,
3435
3435
  "initial-value": h.value,
3436
- "show-variant": D.config.bindToVariant,
3436
+ "show-variant": I.config.bindToVariant,
3437
3437
  "select-variant": "",
3438
3438
  title: p(k)("menu.group.option.link_products"),
3439
3439
  onSubmit: V
@@ -3449,7 +3449,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3449
3449
  onClick: ee
3450
3450
  }, null, 8, ["text-color", "border-color", "label", "onClick"])]),
3451
3451
  _: 1
3452
- }, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (O(), J("div", qa, [w(K, {
3452
+ }, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (O(), Q("div", qa, [w(K, {
3453
3453
  "text-color": p(je).ColorPrimary,
3454
3454
  "border-color": p(je).ColorPrimary,
3455
3455
  variant: "secondary",
@@ -3457,18 +3457,18 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3457
3457
  "prepend-icon": "add",
3458
3458
  onClick: C
3459
3459
  }, null, 8, ["text-color", "border-color", "label"])]))], 64)) : te("", !0)]),
3460
- default: L(() => [P("div", Za, [P("div", Qa, [w(Z, {
3460
+ default: L(() => [P("div", Za, [P("div", Ja, [w(Z, {
3461
3461
  "column-defs": y.value,
3462
3462
  "column-visibility": g.value,
3463
3463
  draggable: !Ce.value && f(null).name,
3464
- "expanded-state": s.value ? {} : I.value,
3464
+ "expanded-state": s.value ? {} : D.value,
3465
3465
  "get-sub-row": N,
3466
3466
  "page-size": 999,
3467
3467
  "row-data": j.value,
3468
3468
  "search-value": p(m),
3469
3469
  "shrink-at": !1,
3470
3470
  "hide-footer": "",
3471
- "onUpdate:expandedState": T[0] || (T[0] = (ee) => I.value = ee),
3471
+ "onUpdate:expandedState": T[0] || (T[0] = (ee) => D.value = ee),
3472
3472
  onDndChanged: T[1] || (T[1] = (ee) => q(ee)),
3473
3473
  "onUpdate:dragging": T[2] || (T[2] = (ee) => s.value = ee)
3474
3474
  }, null, 8, ["column-defs", "column-visibility", "draggable", "expanded-state", "row-data", "search-value"])])])]),
@@ -3492,9 +3492,9 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3492
3492
  emits: ["update:group", "submit:group", "status:show"],
3493
3493
  setup(e, { expose: i, emit: t }) {
3494
3494
  let n = e;
3495
- const a = t, o = fe(), r = Be(), l = Xe(He(Ie())), s = Q(!1), u = Q(!1), c = (y) => {
3495
+ const a = t, o = fe(), r = Be(), l = Xe(He(De())), s = J(!1), u = J(!1), c = (y) => {
3496
3496
  pt.isBoolean(y) ? u.value = y : u.value = !u.value;
3497
- }, d = F(() => n.config(n.group)), h = F(() => [
3497
+ }, d = E(() => n.config(n.group)), h = E(() => [
3498
3498
  {
3499
3499
  label: "Normal",
3500
3500
  value: B.F_ADDON_GROUP_TYPE.enum.NORMAL
@@ -3550,13 +3550,13 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3550
3550
  function S(y) {
3551
3551
  return f(y) <= y.max || k("menu.common.validation.max_default_items", { max: y.max });
3552
3552
  }
3553
- const z = Q($e.clone(n.group)), E = Bi(
3553
+ const z = J($e.clone(n.group)), F = Bi(
3554
3554
  () => !$e.isEqual(n.group, z.value),
3555
3555
  () => {
3556
3556
  u.value = !1;
3557
3557
  }
3558
- ), j = F(() => n.action === "add" ? k("common.add") : k("common.update"));
3559
- async function I() {
3558
+ ), j = E(() => n.action === "add" ? k("common.add") : k("common.update"));
3559
+ async function D() {
3560
3560
  if (n.action === "add") {
3561
3561
  const { group: y, linkItems: g } = ji(n.group), C = {
3562
3562
  module: B.F_MENU_MODULE_V4_KEY.enum.group,
@@ -3586,7 +3586,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3586
3586
  const { t: k } = me();
3587
3587
  return (y, g) => {
3588
3588
  const C = G("fm-text-field"), x = G("fm-stepper-field"), M = G("FmFormGroup"), R = G("fm-radio"), _ = G("fm-radio-group"), A = G("fm-switch"), U = G("fm-button"), V = G("fm-side-sheet");
3589
- return O(), J(ke, null, [
3589
+ return O(), Q(ke, null, [
3590
3590
  ve(y.$slots, "default", { trigger: c }),
3591
3591
  w(V, {
3592
3592
  id: "group-form",
@@ -3594,11 +3594,11 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3594
3594
  "onUpdate:modelValue": g[8] || (g[8] = (N) => u.value = N),
3595
3595
  "is-container": p(xe).FmForm,
3596
3596
  "is-container-props": {
3597
- onValidationSuccess: I,
3597
+ onValidationSuccess: D,
3598
3598
  blameFormChildOnValidationFailed: !0
3599
3599
  },
3600
3600
  "max-width": 720,
3601
- "onOn:clickedAway": p(E)
3601
+ "onOn:clickedAway": p(F)
3602
3602
  }, {
3603
3603
  "side-sheet-header": L(() => [
3604
3604
  P("p", er, de(y.title), 1)
@@ -3621,7 +3621,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3621
3621
  ])
3622
3622
  ]),
3623
3623
  default: L(() => [
3624
- y.group ? (O(), J("div", tr, [
3624
+ y.group ? (O(), Q("div", tr, [
3625
3625
  ve(y.$slots, "variant-section"),
3626
3626
  w(Tn, null, {
3627
3627
  default: L(() => [
@@ -3677,7 +3677,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3677
3677
  "onUpdate:modelValue": g[3] || (g[3] = (N) => b(N))
3678
3678
  }, {
3679
3679
  default: L(() => [
3680
- (O(!0), J(ke, null, Ye(h.value, (N) => (O(), Y(R, {
3680
+ (O(!0), Q(ke, null, Ye(h.value, (N) => (O(), Y(R, {
3681
3681
  key: N.value,
3682
3682
  label: p(k)(`menu.group.types.${N.label.toLowerCase()}`),
3683
3683
  value: N.value
@@ -3716,7 +3716,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3716
3716
  })
3717
3717
  }, {
3718
3718
  default: L(() => [
3719
- w(Ja, {
3719
+ w(Qa, {
3720
3720
  "allow-refund-inventory": y.allowRefundInventory ?? !1,
3721
3721
  "categorized-items": y.categorizedItems,
3722
3722
  config: d.value,
@@ -3743,15 +3743,15 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3743
3743
  },
3744
3744
  emits: ["update:combinations"],
3745
3745
  setup(e, { expose: i, emit: t }) {
3746
- var j, I;
3747
- const n = e, a = t, o = fe(), r = Be(), l = Xe(He(Ie())), s = Q([]), u = Q(n.combinations[0].combinationKey || ""), c = F(
3746
+ var j, D;
3747
+ const n = e, a = t, o = fe(), r = Be(), l = Xe(He(De())), s = J([]), u = J(n.combinations[0].combinationKey || ""), c = E(
3748
3748
  () => s.value.findIndex((k) => k.combinationKey == u.value)
3749
- ), d = F(
3749
+ ), d = E(
3750
3750
  () => n.combinations.map((k) => ({
3751
3751
  label: n.fullCombinations[k.combinationKey || ""],
3752
3752
  value: k.combinationKey || ""
3753
3753
  }))
3754
- ), h = F(() => {
3754
+ ), h = E(() => {
3755
3755
  var M, R;
3756
3756
  if (!S.value) return null;
3757
3757
  const k = ((R = (M = s.value[c.value]) == null ? void 0 : M.groups) == null ? void 0 : R.find(
@@ -3812,19 +3812,19 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3812
3812
  function f() {
3813
3813
  a("update:combinations", s.value);
3814
3814
  }
3815
- const S = Q(!1);
3815
+ const S = J(!1);
3816
3816
  Re(
3817
3817
  () => S.value,
3818
3818
  (k) => {
3819
3819
  k && (s.value = ne(n.combinations), u.value = n.combinations[0].combinationKey || "");
3820
3820
  }
3821
3821
  );
3822
- const z = Q();
3822
+ const z = J();
3823
3823
  i({
3824
3824
  show: (j = z.value) == null ? void 0 : j.show,
3825
- trigger: (I = z.value) == null ? void 0 : I.trigger
3825
+ trigger: (D = z.value) == null ? void 0 : D.trigger
3826
3826
  });
3827
- const { t: E } = me();
3827
+ const { t: F } = me();
3828
3828
  return (k, y) => {
3829
3829
  const g = G("fm-select"), C = G("fm-button"), x = G("fm-card");
3830
3830
  return O(), Y(fn, {
@@ -3835,7 +3835,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3835
3835
  config: v,
3836
3836
  group: h.value,
3837
3837
  action: "update",
3838
- title: p(E)("menu.group.update"),
3838
+ title: p(F)("menu.group.update"),
3839
3839
  "onUpdate:group": y[3] || (y[3] = (M) => m(M)),
3840
3840
  "onSubmit:group": y[4] || (y[4] = (M) => f()),
3841
3841
  "onStatus:show": y[5] || (y[5] = (M) => S.value = M)
@@ -3850,7 +3850,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3850
3850
  variant: "outlined"
3851
3851
  }, {
3852
3852
  default: L(() => [
3853
- P("p", nr, de(p(E)("menu.group.option.variant")), 1),
3853
+ P("p", nr, de(p(F)("menu.group.option.variant")), 1),
3854
3854
  P("div", or, [
3855
3855
  w(g, {
3856
3856
  modelValue: u.value,
@@ -3881,7 +3881,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3881
3881
  }, 8, ["categorized-items", "group", "title"]);
3882
3882
  };
3883
3883
  }
3884
- }), sr = fn, Ii = Na, lr = rr, ur = {
3884
+ }), sr = fn, Di = Na, lr = rr, ur = {
3885
3885
  key: 0,
3886
3886
  class: "flex flex-col space-y-16 h-[440px]"
3887
3887
  }, cr = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, dr = { class: "flex justify-between pb-16" }, mr = { class: "flex gap-8" }, hr = {
@@ -3893,29 +3893,29 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3893
3893
  groupIds: {}
3894
3894
  },
3895
3895
  setup(e) {
3896
- const i = e, t = Be(), { emitData: n, emitAction: a } = Qt(), o = fe(), r = F(() => o.rules.group), l = F(() => o.groups);
3896
+ const i = e, t = Be(), { emitData: n, emitAction: a } = Jt(), o = fe(), r = E(() => o.rules.group), l = E(() => o.groups);
3897
3897
  function s(z) {
3898
- return ne(z ?? []).sort((j, I) => j.position - I.position);
3898
+ return ne(z ?? []).sort((j, D) => j.position - D.position);
3899
3899
  }
3900
- const u = F(() => s(l.value).reduce((z, E) => (z[E._id] = {
3901
- name: E.name,
3902
- type: xt(o.items, E.items)
3903
- }, z), {})), c = F(() => [
3904
- ...Object.entries(u.value).map(([z, { name: E, type: j }]) => ({
3905
- label: `${E} ${r.value.type ? `(${Lt(j)})` : ""}`.trim(),
3900
+ const u = E(() => s(l.value).reduce((z, F) => (z[F._id] = {
3901
+ name: F.name,
3902
+ type: xt(o.items, F.items)
3903
+ }, z), {})), c = E(() => [
3904
+ ...Object.entries(u.value).map(([z, { name: F, type: j }]) => ({
3905
+ label: `${F} ${r.value.type ? `(${Lt(j)})` : ""}`.trim(),
3906
3906
  value: z
3907
3907
  }))
3908
- ]), d = F(() => !!o.state.currentCatalogId || !!o.state.currentSchedulerId), h = F(() => {
3909
- const z = !o.state.currentSchedulerId, E = o.rules.group.type, j = o.version == B.F_MENU_VERSION.enum.v3, I = o.rules.item.orderFromActiveOnly, k = o.rules.item.bindToVariant;
3908
+ ]), d = E(() => !!o.state.currentCatalogId || !!o.state.currentSchedulerId), h = E(() => {
3909
+ const z = !o.state.currentSchedulerId, F = o.rules.group.type, j = o.version == B.F_MENU_VERSION.enum.v3, D = o.rules.item.orderFromActiveOnly, k = o.rules.item.bindToVariant;
3910
3910
  return function(g) {
3911
3911
  return {
3912
3912
  link: (C) => !d.value && (!C || k),
3913
3913
  name: (C) => !d.value && !C,
3914
- type: E && !g._id && !d.value,
3914
+ type: F && !g._id && !d.value,
3915
3915
  price: g.type != B.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
3916
3916
  inventory: z ? j ? !d.value && g.type == B.F_ADDON_GROUP_TYPE.enum.NORMAL : !d.value : !1,
3917
3917
  orderFrom: (C) => z ? j ? g.type == B.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? d.value : !!d.value == !C : d.value : !1,
3918
- orderFromActiveOnly: I,
3918
+ orderFromActiveOnly: D,
3919
3919
  showOrderFrom: z ? j ? d.value ? !0 : g.type == B.F_ADDON_GROUP_TYPE.enum.PRODUCT : d.value : !1,
3920
3920
  bindToVariant: k,
3921
3921
  isOverride: d.value,
@@ -3923,36 +3923,36 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3923
3923
  isV4: !j
3924
3924
  };
3925
3925
  };
3926
- }), m = F(() => ({
3926
+ }), m = E(() => ({
3927
3927
  ...Se.generator.initMenuV4Group(),
3928
3928
  type: o.version === B.F_MENU_VERSION.enum.v4 ? B.F_ADDON_GROUP_TYPE.enum.PRODUCT : B.F_ADDON_GROUP_TYPE.enum.NORMAL,
3929
3929
  items: {},
3930
3930
  position: o.groups.length - 1,
3931
3931
  itemsLinked: []
3932
- })), b = Q(ne(i.groupIds || [])), v = Q(""), { t: f } = me(), S = () => {
3932
+ })), b = J(ne(i.groupIds || [])), v = J(""), { t: f } = me(), S = () => {
3933
3933
  n(b.value), a("primary"), t.close();
3934
3934
  };
3935
- return (z, E) => {
3936
- const j = G("FmSearch"), I = G("FmCheckbox"), k = G("FmButton");
3937
- return c.value.length > 0 ? (O(), J("div", ur, [
3935
+ return (z, F) => {
3936
+ const j = G("FmSearch"), D = G("FmCheckbox"), k = G("FmButton");
3937
+ return c.value.length > 0 ? (O(), Q("div", ur, [
3938
3938
  P("div", null, [
3939
3939
  w(j, {
3940
3940
  autofocus: "",
3941
3941
  modelValue: v.value,
3942
- "onUpdate:modelValue": E[0] || (E[0] = (y) => v.value = y),
3942
+ "onUpdate:modelValue": F[0] || (F[0] = (y) => v.value = y),
3943
3943
  placeholder: p(f)("menu.common.labels.search_groups")
3944
3944
  }, null, 8, ["modelValue", "placeholder"])
3945
3945
  ]),
3946
3946
  P("div", cr, [
3947
3947
  P("div", null, [
3948
- (O(!0), J(ke, null, Ye(c.value, (y) => (O(), J("div", {
3948
+ (O(!0), Q(ke, null, Ye(c.value, (y) => (O(), Q("div", {
3949
3949
  key: y.value
3950
3950
  }, [
3951
- Je(w(I, {
3951
+ Qe(w(D, {
3952
3952
  modelValue: b.value,
3953
3953
  "onUpdate:modelValue": [
3954
- E[1] || (E[1] = (g) => b.value = g),
3955
- E[2] || (E[2] = (g) => p(n)(b.value))
3954
+ F[1] || (F[1] = (g) => b.value = g),
3955
+ F[2] || (F[2] = (g) => p(n)(b.value))
3956
3956
  ],
3957
3957
  label: y.label,
3958
3958
  value: y.value
@@ -3963,7 +3963,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3963
3963
  ])
3964
3964
  ]),
3965
3965
  P("div", dr, [
3966
- w(p(Ii), null, {
3966
+ w(p(Di), null, {
3967
3967
  default: L(({ trigger: y }) => [
3968
3968
  w(k, {
3969
3969
  label: p(f)("menu.common.actions.add_group"),
@@ -3978,20 +3978,20 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
3978
3978
  w(k, {
3979
3979
  label: p(f)("menu.common.actions.cancel"),
3980
3980
  variant: "tertiary",
3981
- onClick: E[3] || (E[3] = (y) => p(t).close())
3981
+ onClick: F[3] || (F[3] = (y) => p(t).close())
3982
3982
  }, null, 8, ["label"]),
3983
3983
  w(k, {
3984
3984
  label: p(f)("menu.common.actions.confirm"),
3985
- onClick: E[4] || (E[4] = (y) => S())
3985
+ onClick: F[4] || (F[4] = (y) => S())
3986
3986
  }, null, 8, ["label"])
3987
3987
  ])
3988
3988
  ])
3989
- ])) : (O(), J("div", hr, [
3989
+ ])) : (O(), Q("div", hr, [
3990
3990
  P("div", pr, [
3991
3991
  P("p", fr, de(p(f)("menu.common.empty.no_group.title")), 1),
3992
3992
  P("p", gr, de(p(f)("menu.common.empty.no_group.subtitle")), 1)
3993
3993
  ]),
3994
- w(p(Ii), {
3994
+ w(p(Di), {
3995
3995
  "categorized-items": p(o).categorizedItems,
3996
3996
  config: h.value,
3997
3997
  group: m.value,
@@ -4029,8 +4029,8 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4029
4029
  }) {
4030
4030
  const t = e, n = fe(), a = ri(), o = Be(), {
4031
4031
  t: r
4032
- } = me(), l = i, s = F(() => n.rules.group), u = F(() => n.rules.item), c = F(() => n.groups);
4033
- Xe(He(Ie())), Q(!1);
4032
+ } = me(), l = i, s = E(() => n.rules.group), u = E(() => n.rules.item), c = E(() => n.groups);
4033
+ Xe(He(De())), J(!1);
4034
4034
  function d(R, _) {
4035
4035
  return ne(_ ?? []).map((U) => {
4036
4036
  const V = R.find((N) => N._id === U._id);
@@ -4041,7 +4041,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4041
4041
  };
4042
4042
  });
4043
4043
  }
4044
- const h = F(() => {
4044
+ const h = E(() => {
4045
4045
  var _;
4046
4046
  return [...m(d(c.value, t.form.groups || ((_ = t.fallback) == null ? void 0 : _.groups) || [])).map((A) => A._id)];
4047
4047
  });
@@ -4069,16 +4069,16 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4069
4069
  })})` : N;
4070
4070
  });
4071
4071
  }
4072
- const v = F(() => m(c.value).reduce((R, _) => (R[_._id] = {
4072
+ const v = E(() => m(c.value).reduce((R, _) => (R[_._id] = {
4073
4073
  name: _.name,
4074
4074
  type: xt(n.items, _.items)
4075
- }, R), {})), f = F(() => [...Object.entries(v.value).map(([R, {
4075
+ }, R), {})), f = E(() => [...Object.entries(v.value).map(([R, {
4076
4076
  name: _,
4077
4077
  type: A
4078
4078
  }]) => ({
4079
4079
  label: `${_} ${s.value.type ? `(${Lt(A)})` : ""}`.trim(),
4080
4080
  value: R
4081
- }))]), S = F(() => [{
4081
+ }))]), S = E(() => [{
4082
4082
  accessorKey: "name",
4083
4083
  header: () => r("menu.product.form.group.columns.title"),
4084
4084
  enableSorting: !1,
@@ -4135,7 +4135,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4135
4135
  variant: "tertiary",
4136
4136
  textColor: "neutral-gray-400",
4137
4137
  onClick: Rt(async () => {
4138
- I(_);
4138
+ D(_);
4139
4139
  }, ["stop", "prevent"])
4140
4140
  }), he(lr, {
4141
4141
  combinations: y.value ?? [],
@@ -4154,10 +4154,10 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4154
4154
  })
4155
4155
  })]);
4156
4156
  }
4157
- }]), z = F(() => ({
4157
+ }]), z = E(() => ({
4158
4158
  type: n.version !== B.F_MENU_VERSION.enum.v4
4159
4159
  }));
4160
- function E() {
4160
+ function F() {
4161
4161
  o.open({
4162
4162
  title: r("menu.product.form.group.add"),
4163
4163
  contentComponent: vr,
@@ -4182,7 +4182,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4182
4182
  groups: _
4183
4183
  }));
4184
4184
  }
4185
- function I(R) {
4185
+ function D(R) {
4186
4186
  var A;
4187
4187
  const _ = ((A = t.form.groups) == null ? void 0 : A.filter((U) => U._id !== R)) || [];
4188
4188
  l("replace:form", a.initDynamicGroupItem({
@@ -4190,10 +4190,10 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4190
4190
  groups: _
4191
4191
  }));
4192
4192
  }
4193
- const k = F(() => {
4193
+ const k = E(() => {
4194
4194
  var R;
4195
4195
  return !!((R = t.form.variant) != null && R.variantGroupIds.length);
4196
- }), y = F(() => {
4196
+ }), y = E(() => {
4197
4197
  var R;
4198
4198
  return k.value ? (R = t.form.variant) == null ? void 0 : R.variantCombinations : [{
4199
4199
  _id: t.form._id,
@@ -4216,15 +4216,15 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4216
4216
  return !1;
4217
4217
  }
4218
4218
  }
4219
- Re(() => c.value.length, () => j([...h.value, c.value[c.value.length - 1]._id])), F(() => ({
4219
+ Re(() => c.value.length, () => j([...h.value, c.value[c.value.length - 1]._id])), E(() => ({
4220
4220
  ...Se.generator.initMenuV4Group(),
4221
4221
  type: n.version === B.F_MENU_VERSION.enum.v4 ? B.F_ADDON_GROUP_TYPE.enum.PRODUCT : B.F_ADDON_GROUP_TYPE.enum.NORMAL,
4222
4222
  items: {},
4223
4223
  position: n.groups.length - 1,
4224
4224
  itemsLinked: []
4225
4225
  }));
4226
- const C = F(() => !!n.state.currentCatalogId || !!n.state.currentSchedulerId);
4227
- F(() => {
4226
+ const C = E(() => !!n.state.currentCatalogId || !!n.state.currentSchedulerId);
4227
+ E(() => {
4228
4228
  const R = !n.state.currentSchedulerId, _ = n.rules.group.type, A = n.version == B.F_MENU_VERSION.enum.v3, U = n.rules.item.orderFromActiveOnly, V = n.rules.item.bindToVariant;
4229
4229
  return function(q) {
4230
4230
  return {
@@ -4265,7 +4265,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4265
4265
  label: p(r)("menu.product.form.group.add"),
4266
4266
  "prepend-icon": "add",
4267
4267
  variant: "secondary",
4268
- onClick: E
4268
+ onClick: F
4269
4269
  }, null, 8, ["label"])]),
4270
4270
  default: L(() => [w(pn, null, {
4271
4271
  default: L(() => {
@@ -4312,27 +4312,27 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4312
4312
  }) {
4313
4313
  const {
4314
4314
  t
4315
- } = me(), n = e, a = i, o = fe(), r = F(() => o.rules.item), l = F(() => r.value.inventory);
4315
+ } = me(), n = e, a = i, o = fe(), r = E(() => o.rules.item), l = E(() => r.value.inventory);
4316
4316
  function s(v, f, S, z) {
4317
4317
  return !f || f && f.length === 0 ? [{
4318
4318
  _id: "",
4319
4319
  name: S,
4320
4320
  binding: v || []
4321
- }] : f.map((E) => ({
4322
- _id: E.combinationKey || "",
4323
- name: Yi(E.combinationKey || "", z),
4324
- binding: E.inventoryBindings || []
4321
+ }] : f.map((F) => ({
4322
+ _id: F.combinationKey || "",
4323
+ name: Yi(F.combinationKey || "", z),
4324
+ binding: F.inventoryBindings || []
4325
4325
  }));
4326
4326
  }
4327
- const u = F(() => {
4327
+ const u = E(() => {
4328
4328
  var v;
4329
4329
  return n.form.name || ((v = n.fallback) == null ? void 0 : v.name) || "";
4330
- }), c = F(() => {
4330
+ }), c = E(() => {
4331
4331
  var v;
4332
4332
  return s(n.form.inventoryBindings || [], ((v = n.form.variant) == null ? void 0 : v.variantCombinations) || [], u.value, o.variants);
4333
4333
  });
4334
4334
  function d(v, f) {
4335
- var j, I;
4335
+ var j, D;
4336
4336
  let S = $e.clone(n.form);
4337
4337
  const z = S.variant;
4338
4338
  if ((((j = z == null ? void 0 : z.variantCombinations) == null ? void 0 : j.length) ?? 0) > 0 && z) {
@@ -4342,7 +4342,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4342
4342
  y[k].inventoryBindings = f, S = {
4343
4343
  ...S,
4344
4344
  variant: {
4345
- variantGroupIds: ((I = S.variant) == null ? void 0 : I.variantGroupIds) || [],
4345
+ variantGroupIds: ((D = S.variant) == null ? void 0 : D.variantGroupIds) || [],
4346
4346
  variantCombinations: y
4347
4347
  }
4348
4348
  };
@@ -4353,7 +4353,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4353
4353
  };
4354
4354
  a("replace:form", S);
4355
4355
  }
4356
- Q([{
4356
+ J([{
4357
4357
  accessorKey: "name",
4358
4358
  header: () => u.value || t("menu.inventory.columns.product_name"),
4359
4359
  enableSorting: !1
@@ -4406,7 +4406,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4406
4406
  })]) : null;
4407
4407
  }
4408
4408
  }]);
4409
- const h = Q([]);
4409
+ const h = J([]);
4410
4410
  async function m({
4411
4411
  _id: v
4412
4412
  }) {
@@ -4420,7 +4420,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4420
4420
  title: p(t)("menu.inventory.title"),
4421
4421
  subTitle: p(t)("menu.inventory.subtitle")
4422
4422
  }, {
4423
- default: L(() => [P("div", yr, [P("div", _r, [(O(!0), J(ke, null, Ye(c.value, (S) => (O(), Y(p(qt), {
4423
+ default: L(() => [P("div", yr, [P("div", _r, [(O(!0), Q(ke, null, Ye(c.value, (S) => (O(), Y(p(qt), {
4424
4424
  ref_for: !0,
4425
4425
  ref_key: "inventoryManagerForms",
4426
4426
  ref: h,
@@ -4451,10 +4451,10 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4451
4451
  }, zr = {
4452
4452
  key: 0,
4453
4453
  class: "pl-32 pb-4 flex space-x-16"
4454
- }, Er = { class: "w-[258px] xs:w-full" }, Fr = {
4454
+ }, Fr = { class: "w-[258px] xs:w-full" }, Er = {
4455
4455
  key: 1,
4456
4456
  class: "space-y-8"
4457
- }, Dr = { class: "pl-32 pb-4 flex space-x-16" }, Ir = { class: "w-[258px] xs:w-full" }, Pr = /* @__PURE__ */ ue({
4457
+ }, Ir = { class: "pl-32 pb-4 flex space-x-16" }, Dr = { class: "w-[258px] xs:w-full" }, Pr = /* @__PURE__ */ ue({
4458
4458
  __name: "ProductPrice",
4459
4459
  props: {
4460
4460
  isOverride: { type: Boolean },
@@ -4464,15 +4464,15 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4464
4464
  },
4465
4465
  emits: ["update:form"],
4466
4466
  setup(e, { emit: i }) {
4467
- const t = e, n = Zt(), a = fe(), { t: o } = me(), r = i, l = F(() => a.rules.item), s = F(() => {
4468
- var z, E;
4469
- const f = t.isOverride ? ((z = t.fallback) == null ? void 0 : z.unit) ?? ((E = t.fallback) == null ? void 0 : E.perXUnit) : void 0, S = t.form.unit ?? t.form.perXUnit ?? f;
4467
+ const t = e, n = Zt(), a = fe(), { t: o } = me(), r = i, l = E(() => a.rules.item), s = E(() => {
4468
+ var z, F;
4469
+ const f = t.isOverride ? ((z = t.fallback) == null ? void 0 : z.unit) ?? ((F = t.fallback) == null ? void 0 : F.perXUnit) : void 0, S = t.form.unit ?? t.form.perXUnit ?? f;
4470
4470
  return S != null;
4471
4471
  }), u = (f) => {
4472
4472
  r("update:form", "unit", f ? "" : void 0), r("update:form", "perXUnit", f ? 0 : void 0);
4473
- }, c = F(() => Et.setCoreStore(n).taxSetting()), d = F(() => {
4473
+ }, c = E(() => Ft.setCoreStore(n).taxSetting()), d = E(() => {
4474
4474
  var f;
4475
- return Et.getSelectedTax(
4475
+ return Ft.getSelectedTax(
4476
4476
  t.form.taxes,
4477
4477
  (f = t.fallback) == null ? void 0 : f.taxes,
4478
4478
  c.value.countryTaxOptions
@@ -4492,9 +4492,9 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4492
4492
  }
4493
4493
  }
4494
4494
  }
4495
- const b = Q(!1);
4495
+ const b = J(!1);
4496
4496
  async function v() {
4497
- var S, z, E, j, I, k, y, g;
4497
+ var S, z, F, j, D, k, y, g;
4498
4498
  if (!(t.form.name || "")) {
4499
4499
  const C = document.getElementById("product-name");
4500
4500
  if (C) {
@@ -4505,7 +4505,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4505
4505
  }
4506
4506
  if (!b.value)
4507
4507
  try {
4508
- b.value = !0, Jt({ event: "menu_catalog_item_price_remy_suggest_pricing" }), Ne.toggleDialog(!0), Ne.registerOnSelect((C) => {
4508
+ b.value = !0, Qt({ event: "menu_catalog_item_price_remy_suggest_pricing" }), Ne.toggleDialog(!0), Ne.registerOnSelect((C) => {
4509
4509
  typeof C == "number" && r(
4510
4510
  "update:form",
4511
4511
  "price",
@@ -4517,8 +4517,8 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4517
4517
  y,
4518
4518
  {
4519
4519
  name: t.form.name || "",
4520
- lat: (E = (z = (S = n.currentRestaurant) == null ? void 0 : S.value) == null ? void 0 : z.profile.address.coordinates) == null ? void 0 : E[1],
4521
- lon: (k = (I = (j = n.currentRestaurant) == null ? void 0 : j.value) == null ? void 0 : I.profile.address.coordinates) == null ? void 0 : k[0]
4520
+ lat: (F = (z = (S = n.currentRestaurant) == null ? void 0 : S.value) == null ? void 0 : z.profile.address.coordinates) == null ? void 0 : F[1],
4521
+ lon: (k = (D = (j = n.currentRestaurant) == null ? void 0 : j.value) == null ? void 0 : D.profile.address.coordinates) == null ? void 0 : k[0]
4522
4522
  },
4523
4523
  !0
4524
4524
  ));
@@ -4527,7 +4527,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4527
4527
  }
4528
4528
  }
4529
4529
  return (f, S) => {
4530
- const z = G("fm-select"), E = G("fm-checkbox"), j = G("fm-text-field"), I = Nt("tooltip");
4530
+ const z = G("fm-select"), F = G("fm-checkbox"), j = G("fm-text-field"), D = Nt("tooltip");
4531
4531
  return O(), Y(Ke, {
4532
4532
  title: p(o)("menu.product.form.price.title")
4533
4533
  }, {
@@ -4548,11 +4548,11 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4548
4548
  "onUpdate:modelValue": S[0] || (S[0] = (y) => y && r("update:form", "price", y))
4549
4549
  }, {
4550
4550
  append: L(() => [
4551
- Je(w(mn, {
4551
+ Qe(w(mn, {
4552
4552
  "pure-styling": "",
4553
4553
  onClick: v
4554
4554
  }, null, 512), [
4555
- [I, p(Li)("Suggest pricing")]
4555
+ [D, p(Li)("Suggest pricing")]
4556
4556
  ])
4557
4557
  ]),
4558
4558
  _: 1
@@ -4567,7 +4567,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4567
4567
  placeholder: "--",
4568
4568
  class: "flex-1",
4569
4569
  "shift-menu": "",
4570
- "onUpdate:modelValue": S[1] || (S[1] = (y) => r("update:form", "taxes", [p(Et).decodeTax(y)]))
4570
+ "onUpdate:modelValue": S[1] || (S[1] = (y) => r("update:form", "taxes", [p(Ft).decodeTax(y)]))
4571
4571
  }, null, 8, ["disabled", "items", "label", "model-value"])
4572
4572
  ]),
4573
4573
  w(nt, {
@@ -4577,7 +4577,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4577
4577
  var y;
4578
4578
  return [
4579
4579
  P("div", Cr, [
4580
- w(E, {
4580
+ w(F, {
4581
4581
  disabled: !l.value.openPrice,
4582
4582
  "model-value": f.form.openPrice ?? ((y = f.fallback) == null ? void 0 : y.openPrice) ?? !1,
4583
4583
  value: f.form.openPrice,
@@ -4586,7 +4586,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4586
4586
  "onUpdate:modelValue": S[2] || (S[2] = (g) => r("update:form", "openPrice", g))
4587
4587
  }, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
4588
4588
  P("div", Ar, [
4589
- w(E, {
4589
+ w(F, {
4590
4590
  disabled: !l.value.unit,
4591
4591
  "model-value": s.value,
4592
4592
  value: s.value,
@@ -4594,7 +4594,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4594
4594
  sublabel: p(o)("menu.product.form.price.settings.sell_by_unit.sublabel"),
4595
4595
  "onUpdate:modelValue": u
4596
4596
  }, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
4597
- s.value ? (O(), J("div", Rr, [
4597
+ s.value ? (O(), Q("div", Rr, [
4598
4598
  P("p", xr, de(p(o)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
4599
4599
  P("div", Mr, [
4600
4600
  w(j, {
@@ -4623,15 +4623,15 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4623
4623
  ])
4624
4624
  ])) : te("", !0)
4625
4625
  ]),
4626
- l.value.costing ? (O(), J("div", Or, [
4627
- w(E, {
4626
+ l.value.costing ? (O(), Q("div", Or, [
4627
+ w(F, {
4628
4628
  "model-value": !!f.form.costing,
4629
4629
  value: !!f.form.costing,
4630
4630
  label: p(o)("menu.product.form.price.settings.track_costing.label"),
4631
4631
  "onUpdate:modelValue": S[4] || (S[4] = (g) => r("update:form", "costing", g ? p(Ae.Dinero).zero().toObject() : void 0))
4632
4632
  }, null, 8, ["model-value", "value", "label"]),
4633
- f.form.costing ? (O(), J("div", zr, [
4634
- P("div", Er, [
4633
+ f.form.costing ? (O(), Q("div", zr, [
4634
+ P("div", Fr, [
4635
4635
  w(it, {
4636
4636
  class: "w-full",
4637
4637
  min: 0,
@@ -4643,16 +4643,16 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4643
4643
  ])
4644
4644
  ])) : te("", !0)
4645
4645
  ])) : te("", !0),
4646
- l.value.minPrice ? (O(), J("div", Fr, [
4647
- w(E, {
4646
+ l.value.minPrice ? (O(), Q("div", Er, [
4647
+ w(F, {
4648
4648
  disabled: !l.value.minPrice,
4649
4649
  "model-value": !!f.form.minPrice,
4650
4650
  value: !!f.form.minPrice,
4651
4651
  label: p(o)("menu.product.form.price.settings.min_price.label"),
4652
4652
  "onUpdate:modelValue": S[6] || (S[6] = (g) => r("update:form", "minPrice", g ? p(Ae.Dinero).zero().toObject() : void 0))
4653
4653
  }, null, 8, ["disabled", "model-value", "value", "label"]),
4654
- P("div", Dr, [
4655
- P("div", Ir, [
4654
+ P("div", Ir, [
4655
+ P("div", Dr, [
4656
4656
  f.form.minPrice ? (O(), Y(it, {
4657
4657
  key: 0,
4658
4658
  max: p(Ae.Dinero).fromFdoDinero(f.form.price).toUnit(),
@@ -4683,13 +4683,13 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4683
4683
  applyProduct: { type: Boolean }
4684
4684
  },
4685
4685
  setup(e) {
4686
- const { t: i } = me(), t = e, n = Xe(He(Ie())), a = F(
4686
+ const { t: i } = me(), t = e, n = Xe(He(De())), a = E(
4687
4687
  () => t.initialValue ? i("menu.print_dept.update") : i("menu.print_dept.add")
4688
- ), o = F(
4688
+ ), o = E(
4689
4689
  () => t.initialValue ? i("menu.common.actions.update") : i("menu.common.actions.add")
4690
- ), r = Q(
4690
+ ), r = J(
4691
4691
  t.initialValue ? ne(t.initialValue) : { ...Se.generator.initMenuV4PrintDepartment(), usedBy: [] }
4692
- ), l = Q(!1), s = Q(!1), u = (d) => {
4692
+ ), l = J(!1), s = J(!1), u = (d) => {
4693
4693
  pt.isBoolean(d) ? s.value = d : s.value = !s.value;
4694
4694
  };
4695
4695
  async function c() {
@@ -4725,7 +4725,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4725
4725
  }
4726
4726
  ), (d, h) => {
4727
4727
  const m = G("fm-text-field"), b = G("fm-button"), v = G("fm-side-sheet");
4728
- return O(), J(ke, null, [
4728
+ return O(), Q(ke, null, [
4729
4729
  ve(d.$slots, "default", { trigger: u }),
4730
4730
  w(v, {
4731
4731
  id: "variant-form",
@@ -4806,16 +4806,16 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4806
4806
  toRoot: !1
4807
4807
  };
4808
4808
  }
4809
- const l = F(() => n.rules.item), s = F(() => n.printDepartments), u = F(() => {
4809
+ const l = E(() => n.rules.item), s = E(() => n.printDepartments), u = E(() => {
4810
4810
  var S;
4811
4811
  return ((S = t.form.print) == null ? void 0 : S.sequential) ?? !1;
4812
- }), c = F(() => {
4812
+ }), c = E(() => {
4813
4813
  var S;
4814
4814
  return u.value ? s.value.reduce(
4815
- (z, { _id: E }) => (z.includes(E) || (z = [...z, E]), z),
4815
+ (z, { _id: F }) => (z.includes(F) || (z = [...z, F]), z),
4816
4816
  [...((S = t.form.print) == null ? void 0 : S.department) ?? []]
4817
4817
  ) : s.value.map(({ _id: z }) => z);
4818
- }), d = F(() => s.value.reduce((S, z) => (S[z._id] = z.name, S), {}));
4818
+ }), d = E(() => s.value.reduce((S, z) => (S[z._id] = z.name, S), {}));
4819
4819
  function h(S) {
4820
4820
  o("update:form", "print", {
4821
4821
  ...r(),
@@ -4835,21 +4835,21 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4835
4835
  ...r(),
4836
4836
  ...t.form.print,
4837
4837
  department: S.filter((z) => {
4838
- var E;
4839
- return (((E = t.form.print) == null ? void 0 : E.department) ?? []).includes(z);
4838
+ var F;
4839
+ return (((F = t.form.print) == null ? void 0 : F.department) ?? []).includes(z);
4840
4840
  })
4841
4841
  });
4842
4842
  }
4843
4843
  function v(S, z) {
4844
- var j, I;
4845
- let E = [...((I = (j = t.form) == null ? void 0 : j.print) == null ? void 0 : I.department) ?? []];
4846
- z && !E.includes(S) ? E = [...E, S] : z || (E = E.filter((k) => k !== S)), o("update:form", "print", {
4844
+ var j, D;
4845
+ let F = [...((D = (j = t.form) == null ? void 0 : j.print) == null ? void 0 : D.department) ?? []];
4846
+ z && !F.includes(S) ? F = [...F, S] : z || (F = F.filter((k) => k !== S)), o("update:form", "print", {
4847
4847
  ...r(),
4848
4848
  ...t.form.print,
4849
- department: E
4849
+ department: F
4850
4850
  });
4851
4851
  }
4852
- const f = F(() => [
4852
+ const f = E(() => [
4853
4853
  {
4854
4854
  label: a("menu.product.form.print.kds.options.all.label"),
4855
4855
  value: !1,
@@ -4865,7 +4865,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4865
4865
  () => s.value.length,
4866
4866
  () => v(s.value[s.value.length - 1]._id, !0)
4867
4867
  ), (S, z) => {
4868
- const E = G("fm-switch"), j = G("fm-radio"), I = G("fm-radio-group"), k = G("fm-button"), y = G("fm-checkbox");
4868
+ const F = G("fm-switch"), j = G("fm-radio"), D = G("fm-radio-group"), k = G("fm-button"), y = G("fm-checkbox");
4869
4869
  return O(), Y(Ke, {
4870
4870
  title: p(a)("menu.product.form.print.title")
4871
4871
  }, {
@@ -4879,7 +4879,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4879
4879
  default: L(() => {
4880
4880
  var C;
4881
4881
  return [
4882
- w(E, {
4882
+ w(F, {
4883
4883
  "model-value": !((C = S.form.print) != null && C.toRoot),
4884
4884
  label: p(a)("menu.product.form.print.config.group_parent.label"),
4885
4885
  "label-placement": "right",
@@ -4890,14 +4890,14 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4890
4890
  }),
4891
4891
  _: 1
4892
4892
  }, 8, ["label"])) : te("", !0),
4893
- w(I, {
4893
+ w(D, {
4894
4894
  label: p(a)("menu.product.form.print.kds.label"),
4895
4895
  "model-value": ((g = S.form.print) == null ? void 0 : g.sequential) ?? !1,
4896
4896
  "onUpdate:modelValue": z[1] || (z[1] = (C) => m(C))
4897
4897
  }, {
4898
4898
  default: L(() => [
4899
4899
  P("div", Lr, [
4900
- (O(!0), J(ke, null, Ye(f.value, (C, x) => (O(), Y(j, {
4900
+ (O(!0), Q(ke, null, Ye(f.value, (C, x) => (O(), Y(j, {
4901
4901
  key: x,
4902
4902
  label: C.label,
4903
4903
  sublabel: C.description,
@@ -4987,12 +4987,12 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
4987
4987
  setup(e, {
4988
4988
  emit: i
4989
4989
  }) {
4990
- const t = e, n = fe(), a = F(() => n.rules.item), o = Xe(He(Ie())), {
4990
+ const t = e, n = fe(), a = E(() => n.rules.item), o = Xe(He(De())), {
4991
4991
  t: r
4992
- } = me(), l = i, s = F(() => {
4992
+ } = me(), l = i, s = E(() => {
4993
4993
  var b, v;
4994
4994
  return !!((v = (b = t.form.variant) == null ? void 0 : b.variantCombinations) != null && v.length);
4995
- }), u = F(() => {
4995
+ }), u = E(() => {
4996
4996
  var b;
4997
4997
  return [{
4998
4998
  key: "",
@@ -5000,22 +5000,22 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5000
5000
  takeaway: t.form.takeawayUsed,
5001
5001
  onUpdate: (v) => l("update:form", "takeawayUsed", v)
5002
5002
  }];
5003
- }), c = F(() => {
5003
+ }), c = E(() => {
5004
5004
  var b;
5005
5005
  return (((b = t.form.variant) == null ? void 0 : b.variantCombinations) || []).map((v, f) => ({
5006
5006
  key: v.combinationKey || "",
5007
5007
  name: t.fullCombinations[v.combinationKey || ""],
5008
5008
  takeaway: v.takeawayUsed,
5009
5009
  onUpdate: (S) => {
5010
- var E, j;
5011
- const z = ne(((E = t.form.variant) == null ? void 0 : E.variantCombinations) || []);
5010
+ var F, j;
5011
+ const z = ne(((F = t.form.variant) == null ? void 0 : F.variantCombinations) || []);
5012
5012
  z[f].takeawayUsed = S, l("update:form", "variant", {
5013
5013
  variantGroupIds: ((j = t.form.variant) == null ? void 0 : j.variantGroupIds) || [],
5014
5014
  variantCombinations: z
5015
5015
  });
5016
5016
  }
5017
5017
  }));
5018
- }), d = F(() => s.value && a.value.bindToVariant ? c.value : u.value), h = F(() => [t.isOverride ? {
5018
+ }), d = E(() => s.value && a.value.bindToVariant ? c.value : u.value), h = E(() => [t.isOverride ? {
5019
5019
  label: r("menu.product.form.takeaway.options.follows_main"),
5020
5020
  value: null
5021
5021
  } : {
@@ -5024,7 +5024,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5024
5024
  }, ...n.takeaways.map((b) => ({
5025
5025
  label: b.name,
5026
5026
  value: b._id
5027
- }))]), m = Q([{
5027
+ }))]), m = J([{
5028
5028
  accessorKey: "name",
5029
5029
  enableSorting: !1,
5030
5030
  header: () => s.value ? r("menu.product.form.takeaway.columns.variant") : r("menu.product.form.takeaway.columns.product")
@@ -5095,22 +5095,22 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5095
5095
  }, Hr = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, Xr = { class: "flex justify-between pb-16" }, qr = { class: "flex gap-8" }, Zr = {
5096
5096
  key: 1,
5097
5097
  class: "flex flex-col items-center space-y-16"
5098
- }, Qr = { class: "flex flex-col items-center space-y-4 w-full" }, Jr = { class: "fm-typo-en-title-sm-600" }, es = { class: "text-fm-color-typo-secondary" }, ts = /* @__PURE__ */ ue({
5098
+ }, Jr = { class: "flex flex-col items-center space-y-4 w-full" }, Qr = { class: "fm-typo-en-title-sm-600" }, es = { class: "text-fm-color-typo-secondary" }, ts = /* @__PURE__ */ ue({
5099
5099
  __name: "SelectVariantDialog",
5100
5100
  props: {
5101
5101
  selectedVariants: {}
5102
5102
  },
5103
5103
  setup(e) {
5104
- const i = Be(), { emitData: t, emitAction: n } = Qt(), a = fe(), { t: o } = me(), r = e, l = F(() => a.variants.map((d) => ({
5104
+ const i = Be(), { emitData: t, emitAction: n } = Jt(), a = fe(), { t: o } = me(), r = e, l = E(() => a.variants.map((d) => ({
5105
5105
  label: d.name,
5106
5106
  value: d._id,
5107
5107
  disabled: !1
5108
- }))), s = Q(ne(r.selectedVariants)), u = Q(""), c = () => {
5108
+ }))), s = J(ne(r.selectedVariants)), u = J(""), c = () => {
5109
5109
  t(s.value), n("primary"), i.close();
5110
5110
  };
5111
5111
  return (d, h) => {
5112
5112
  const m = G("FmSearch"), b = G("FmCheckbox"), v = G("FmButton");
5113
- return l.value.length > 0 ? (O(), J("div", Yr, [
5113
+ return l.value.length > 0 ? (O(), Q("div", Yr, [
5114
5114
  P("div", null, [
5115
5115
  w(m, {
5116
5116
  autofocus: "",
@@ -5121,10 +5121,10 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5121
5121
  ]),
5122
5122
  P("div", Hr, [
5123
5123
  P("div", null, [
5124
- (O(!0), J(ke, null, Ye(l.value, (f) => (O(), J("div", {
5124
+ (O(!0), Q(ke, null, Ye(l.value, (f) => (O(), Q("div", {
5125
5125
  key: f.value
5126
5126
  }, [
5127
- Je(w(b, {
5127
+ Qe(w(b, {
5128
5128
  modelValue: s.value,
5129
5129
  "onUpdate:modelValue": [
5130
5130
  h[1] || (h[1] = (S) => s.value = S),
@@ -5163,9 +5163,9 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5163
5163
  }, null, 8, ["label"])
5164
5164
  ])
5165
5165
  ])
5166
- ])) : (O(), J("div", Zr, [
5167
- P("div", Qr, [
5168
- P("p", Jr, de(p(o)("menu.common.empty.no_variant.title")), 1),
5166
+ ])) : (O(), Q("div", Zr, [
5167
+ P("div", Jr, [
5168
+ P("p", Qr, de(p(o)("menu.common.empty.no_variant.title")), 1),
5169
5169
  P("p", es, de(p(o)("menu.common.empty.no_variant.subtitle")), 1)
5170
5170
  ]),
5171
5171
  w(p(wi), null, {
@@ -5206,10 +5206,10 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5206
5206
  setup(e, {
5207
5207
  emit: i
5208
5208
  }) {
5209
- const t = e, n = fe(), a = ri(), o = Ie(), r = Be(), {
5209
+ const t = e, n = fe(), a = ri(), o = De(), r = Be(), {
5210
5210
  t: l
5211
- } = me(), s = F(() => n.rules.item), u = F(() => s.value.minPrice && !!t.form.minPrice), c = F(() => !n.state.currentCatalogId), d = F(() => n.variants.reduce((g, C) => (g[C._id] = C, g), {}));
5212
- Q(!1);
5211
+ } = me(), s = E(() => n.rules.item), u = E(() => s.value.minPrice && !!t.form.minPrice), c = E(() => !n.state.currentCatalogId), d = E(() => n.variants.reduce((g, C) => (g[C._id] = C, g), {}));
5212
+ J(!1);
5213
5213
  const h = i;
5214
5214
  function m(g) {
5215
5215
  const C = $e.clone(t.form);
@@ -5220,7 +5220,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5220
5220
  C[x] = M;
5221
5221
  h("replace:form", C);
5222
5222
  }
5223
- F(() => n.variants.map((g) => ({
5223
+ E(() => n.variants.map((g) => ({
5224
5224
  label: g.name,
5225
5225
  value: g._id,
5226
5226
  disabled: !1
@@ -5248,7 +5248,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5248
5248
  selectedVariants: ((g = t.form.variant) == null ? void 0 : g.variantGroupIds) ?? []
5249
5249
  }
5250
5250
  }).onPrimary(async (C) => {
5251
- E(C, b);
5251
+ F(C, b);
5252
5252
  });
5253
5253
  }
5254
5254
  function f(g) {
@@ -5257,8 +5257,8 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5257
5257
  return x == null ? void 0 : x.find((V) => V.combinationKey === _);
5258
5258
  }
5259
5259
  const S = (g) => {
5260
- E(g);
5261
- }, z = F(() => {
5260
+ F(g);
5261
+ }, z = E(() => {
5262
5262
  var C;
5263
5263
  return (((C = t.form.variant) == null ? void 0 : C.variantCombinations) || []).map((x) => {
5264
5264
  var R, _;
@@ -5277,7 +5277,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5277
5277
  };
5278
5278
  });
5279
5279
  });
5280
- function E(g, C = (x) => x) {
5280
+ function F(g, C = (x) => x) {
5281
5281
  var R;
5282
5282
  const x = g.filter((_) => !!_);
5283
5283
  let M;
@@ -5331,7 +5331,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5331
5331
  value: M.variant
5332
5332
  }]);
5333
5333
  }
5334
- const I = F(() => [{
5334
+ const D = E(() => [{
5335
5335
  accessorKey: "combinationKey",
5336
5336
  header: () => l("menu.product.form.variant.columns.variant"),
5337
5337
  enableSorting: !1,
@@ -5407,7 +5407,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5407
5407
  showCurrency: !1
5408
5408
  });
5409
5409
  }
5410
- }]), k = F(() => ({
5410
+ }]), k = E(() => ({
5411
5411
  minPrice: u.value
5412
5412
  }));
5413
5413
  function y(g) {
@@ -5457,7 +5457,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5457
5457
  name: "close",
5458
5458
  onClick: Rt((q) => {
5459
5459
  var re;
5460
- return E(((re = g.form.variant) == null ? void 0 : re.variantGroupIds.filter((Ce) => Ce !== V)) ?? []);
5460
+ return F(((re = g.form.variant) == null ? void 0 : re.variantGroupIds.filter((Ce) => Ce !== V)) ?? []);
5461
5461
  }, ["stop"])
5462
5462
  }, null, 8, ["onClick"])])])];
5463
5463
  }),
@@ -5469,7 +5469,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5469
5469
  default: L(() => [z.value.length ? (O(), Y(_, {
5470
5470
  key: 0,
5471
5471
  class: "w-full",
5472
- "column-defs": I.value,
5472
+ "column-defs": D.value,
5473
5473
  "column-visibility": k.value,
5474
5474
  "page-size": z.value.length ?? 0,
5475
5475
  "row-data": z.value ?? [],
@@ -5520,11 +5520,11 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5520
5520
  emits: ["update:show", "submit:form"],
5521
5521
  setup(e, { emit: i }) {
5522
5522
  var li, ui, ci, di, mi;
5523
- const t = e, n = i, a = fe(), o = Zt(), { t: r } = me(), l = F(() => t.action === "add" ? r("menu.product.form.title.add") : r("menu.product.form.title.update")), s = F(() => a.rules.item), u = (W) => new Promise(($) => setTimeout($, W));
5523
+ const t = e, n = i, a = fe(), o = Zt(), { t: r } = me(), l = E(() => t.action === "add" ? r("menu.product.form.title.add") : r("menu.product.form.title.update")), s = E(() => a.rules.item), u = (W) => new Promise(($) => setTimeout($, W));
5524
5524
  ut(async () => {
5525
5525
  t.autoShow && (await u(100), d());
5526
5526
  });
5527
- const c = Q(!1);
5527
+ const c = J(!1);
5528
5528
  Re(
5529
5529
  () => c.value,
5530
5530
  async (W) => {
@@ -5533,12 +5533,12 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5533
5533
  );
5534
5534
  const d = () => {
5535
5535
  c.value = !c.value;
5536
- }, h = Q(), m = Q(
5536
+ }, h = J(), m = J(
5537
5537
  t.initialForm ? ne(t.initialForm) : {
5538
5538
  ...Se.generator.initMenuV4Item(),
5539
5539
  category: t.categoryId
5540
5540
  }
5541
- ), b = Q(null);
5541
+ ), b = J(null);
5542
5542
  Re(
5543
5543
  () => t.initialForm,
5544
5544
  async () => {
@@ -5558,10 +5558,10 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5558
5558
  a.selectCatalog(W), a.selectScheduler($), await Ui(), v.update(m.value._id), setTimeout(() => {
5559
5559
  n("update:show", !1);
5560
5560
  }, 100);
5561
- }, S = F(() => {
5561
+ }, S = E(() => {
5562
5562
  var W;
5563
5563
  return a.mapVariant((W = m.value.variant) == null ? void 0 : W.variantGroupIds);
5564
- }), z = Q(null);
5564
+ }), z = J(null);
5565
5565
  Re(
5566
5566
  () => m.value.thumbnail,
5567
5567
  async (W) => {
@@ -5575,7 +5575,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5575
5575
  immediate: !0
5576
5576
  }
5577
5577
  );
5578
- const E = (W, $) => {
5578
+ const F = (W, $) => {
5579
5579
  m.value = {
5580
5580
  ...ne(m.value),
5581
5581
  [W]: $
@@ -5583,7 +5583,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5583
5583
  };
5584
5584
  async function j() {
5585
5585
  var W, $;
5586
- h.value = m.value._id && I.value ? (await vo(
5586
+ h.value = m.value._id && D.value ? (await vo(
5587
5587
  a.mergedMenu,
5588
5588
  [m.value],
5589
5589
  a.state.menu,
@@ -5591,12 +5591,12 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5591
5591
  ($ = a.currentScheduler) == null ? void 0 : $._id
5592
5592
  ))[0] : void 0;
5593
5593
  }
5594
- const I = F(
5594
+ const D = E(
5595
5595
  () => !!a.currentCatalog || !!a.state.currentSchedulerId
5596
- ), k = F(() => {
5596
+ ), k = E(() => {
5597
5597
  var W;
5598
- return I.value ? m.value.category == "" || m.value.category == null && ((W = h.value) == null ? void 0 : W.category) == null : a.version === B.F_MENU_VERSION.enum.v4 && m.value.category == null;
5599
- }), y = F(() => o.itemAttributeSettings.value.length > 0 && !I.value);
5598
+ return D.value ? m.value.category == "" || m.value.category == null && ((W = h.value) == null ? void 0 : W.category) == null : a.version === B.F_MENU_VERSION.enum.v4 && m.value.category == null;
5599
+ }), y = E(() => o.itemAttributeSettings.value.length > 0 && !D.value);
5600
5600
  function g() {
5601
5601
  var ce;
5602
5602
  const W = a.getSelectedTax(
@@ -5609,7 +5609,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5609
5609
  function C() {
5610
5610
  z.value = null, m.value.thumbnail = null;
5611
5611
  }
5612
- const x = F(() => {
5612
+ const x = E(() => {
5613
5613
  var W, $, se, ce, H, hi, pi, fi, gi;
5614
5614
  return {
5615
5615
  title: r("menu.product.form.summary.title"),
@@ -5653,7 +5653,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5653
5653
  }
5654
5654
  ]
5655
5655
  };
5656
- }), M = Q(
5656
+ }), M = J(
5657
5657
  m.value.category != null || !!m.value.code || !!m.value.orderFrom
5658
5658
  );
5659
5659
  function R(W) {
@@ -5665,14 +5665,14 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5665
5665
  orderFrom: void 0
5666
5666
  });
5667
5667
  }
5668
- const _ = F(() => {
5668
+ const _ = E(() => {
5669
5669
  const W = {};
5670
5670
  return a.state.menu.modules.item.forEach(($) => {
5671
5671
  var se;
5672
5672
  for (const [ce, H] of Object.entries($.customAttributes || {}))
5673
5673
  typeof H == "string" && H && !((se = W[ce]) != null && se.includes(H)) && (W[ce] = [...W[ce] || [], H]);
5674
5674
  }), W;
5675
- }), A = Q(!!m.value.price || !!m.value.minPrice || !!m.value.costing);
5675
+ }), A = J(!!m.value.price || !!m.value.minPrice || !!m.value.costing);
5676
5676
  function U(W) {
5677
5677
  W || (m.value = {
5678
5678
  ...m.value,
@@ -5681,7 +5681,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5681
5681
  price: void 0
5682
5682
  });
5683
5683
  }
5684
- const V = Q(
5684
+ const V = J(
5685
5685
  (((li = m.value.variant) == null ? void 0 : li.variantCombinations) || []).some(
5686
5686
  (W) => !!W.price || !!W.orderFrom || !!W.code
5687
5687
  )
@@ -5701,7 +5701,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5701
5701
  }
5702
5702
  });
5703
5703
  }
5704
- const q = Q(
5704
+ const q = J(
5705
5705
  !!m.value.inventoryBindings || (((ui = m.value.variant) == null ? void 0 : ui.variantCombinations) || []).some((W) => !!W.inventoryBindings) || !1
5706
5706
  );
5707
5707
  function re(W) {
@@ -5718,10 +5718,10 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5718
5718
  } : void 0
5719
5719
  });
5720
5720
  }
5721
- const Ce = Q(
5721
+ const Ce = J(
5722
5722
  m.value.takeawayUsed != null || (((ci = m.value.variant) == null ? void 0 : ci.variantCombinations) || []).some((W) => W.takeawayUsed != null) || !1
5723
5723
  );
5724
- function D(W) {
5724
+ function I(W) {
5725
5725
  var $, se;
5726
5726
  W || (m.value = {
5727
5727
  ...m.value,
@@ -5735,11 +5735,11 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5735
5735
  }
5736
5736
  });
5737
5737
  }
5738
- const T = Q(!!m.value.print);
5738
+ const T = J(!!m.value.print);
5739
5739
  function K(W) {
5740
5740
  W || (m.value = { ...m.value, print: void 0 });
5741
5741
  }
5742
- const Z = Q(
5742
+ const Z = J(
5743
5743
  !!((di = m.value.groups) != null && di.length) != null || (((mi = m.value.variant) == null ? void 0 : mi.variantCombinations) || []).some((W) => {
5744
5744
  var $;
5745
5745
  return !!(($ = W.groups) != null && $.length);
@@ -5778,7 +5778,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5778
5778
  userId: ((W = o.sessionUser.value) == null ? void 0 : W.id) || "",
5779
5779
  businessId: ($ = o.currentBusiness.value) == null ? void 0 : $.id,
5780
5780
  input: m.value
5781
- }), Jt(
5781
+ }), Qt(
5782
5782
  {
5783
5783
  event: "menu_catalog_item_dialog_open",
5784
5784
  item: JSON.stringify(m.value)
@@ -5803,7 +5803,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5803
5803
  ie.isUpdatingItem = !1, a.selectCatalog(ie.storedCatalogId), a.selectScheduler(ie.storedSchedulerId);
5804
5804
  }
5805
5805
  function ye() {
5806
- I.value && [
5806
+ D.value && [
5807
5807
  [M.value, R],
5808
5808
  [A.value, U]
5809
5809
  ].forEach(([$, se]) => {
@@ -5814,9 +5814,9 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5814
5814
  d(), le();
5815
5815
  }
5816
5816
  const { isAtMost: lt } = Ni();
5817
- F(() => lt("sm"));
5818
- const si = Q(null), vn = Pn(si);
5819
- return (W, $) => (O(), J(ke, null, [
5817
+ E(() => lt("sm"));
5818
+ const si = J(null), vn = Pn(si);
5819
+ return (W, $) => (O(), Q(ke, null, [
5820
5820
  ve(W.$slots, "trigger", _n(wn({
5821
5821
  trigger: d
5822
5822
  }))),
@@ -5874,7 +5874,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5874
5874
  $[1] || ($[1] = (H) => M.value = H),
5875
5875
  $[2] || ($[2] = (H) => R(H))
5876
5876
  ],
5877
- disabled: !I.value,
5877
+ disabled: !D.value,
5878
5878
  description: p(r)("menu.product.form.sections.general.description"),
5879
5879
  title: p(r)("menu.product.form.sections.general.title")
5880
5880
  }, {
@@ -5883,41 +5883,41 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5883
5883
  fallback: h.value,
5884
5884
  form: m.value,
5885
5885
  "is-addon": k.value,
5886
- "is-override": I.value,
5886
+ "is-override": D.value,
5887
5887
  "is-create": t.action === "add",
5888
5888
  thumbnail: z.value,
5889
- "onUpdate:form": E,
5889
+ "onUpdate:form": F,
5890
5890
  "onUpdate:thumbnail": $[0] || ($[0] = (H) => z.value = H),
5891
5891
  "onReset:thumbnail": C
5892
5892
  }, null, 8, ["fallback", "form", "is-addon", "is-override", "is-create", "thumbnail"])
5893
5893
  ]),
5894
5894
  _: 1
5895
5895
  }, 8, ["toggle", "disabled", "description", "title"]),
5896
- I.value ? te("", !0) : (O(), J("div", ls)),
5896
+ D.value ? te("", !0) : (O(), Q("div", ls)),
5897
5897
  y.value ? (O(), Y(Ke, {
5898
5898
  key: 2,
5899
5899
  title: p(r)("menu.product.form.sections.tagging.title"),
5900
5900
  "sub-title": p(r)("menu.product.form.sections.tagging.subtitle")
5901
5901
  }, {
5902
5902
  default: L(() => [
5903
- w(p(Fn), {
5903
+ w(p(En), {
5904
5904
  entity: "item",
5905
5905
  "model-value": m.value.customAttributes || {},
5906
- "onUpdate:modelValue": $[3] || ($[3] = (H) => E("customAttributes", H)),
5906
+ "onUpdate:modelValue": $[3] || ($[3] = (H) => F("customAttributes", H)),
5907
5907
  "value-options": _.value
5908
5908
  }, null, 8, ["model-value", "value-options"])
5909
5909
  ]),
5910
5910
  _: 1
5911
5911
  }, 8, ["title", "sub-title"])) : te("", !0),
5912
- y.value ? (O(), J("div", us)) : te("", !0),
5913
- I.value ? te("", !0) : (O(), J("div", cs)),
5912
+ y.value ? (O(), Q("div", us)) : te("", !0),
5913
+ D.value ? te("", !0) : (O(), Q("div", cs)),
5914
5914
  w(Ze, {
5915
5915
  toggle: A.value,
5916
5916
  "onUpdate:toggle": [
5917
5917
  $[4] || ($[4] = (H) => A.value = H),
5918
5918
  $[5] || ($[5] = (H) => U(H))
5919
5919
  ],
5920
- disabled: !I.value,
5920
+ disabled: !D.value,
5921
5921
  description: p(r)("menu.product.form.sections.price.description"),
5922
5922
  title: p(r)("menu.product.form.sections.price.title")
5923
5923
  }, {
@@ -5926,13 +5926,13 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5926
5926
  fallback: h.value,
5927
5927
  form: m.value,
5928
5928
  "is-addon": k.value,
5929
- "is-override": I.value,
5930
- "onUpdate:form": E
5929
+ "is-override": D.value,
5930
+ "onUpdate:form": F
5931
5931
  }, null, 8, ["fallback", "form", "is-addon", "is-override"])
5932
5932
  ]),
5933
5933
  _: 1
5934
5934
  }, 8, ["toggle", "disabled", "description", "title"]),
5935
- s.value.print && !I.value ? (O(), J("div", ds)) : te("", !0),
5935
+ s.value.print && !D.value ? (O(), Q("div", ds)) : te("", !0),
5936
5936
  s.value.print ? (O(), Y(Ze, {
5937
5937
  key: 6,
5938
5938
  toggle: T.value,
@@ -5950,21 +5950,21 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5950
5950
  form: m.value,
5951
5951
  "full-combinations": S.value,
5952
5952
  "is-addon": k.value,
5953
- "is-override": I.value,
5954
- "onUpdate:form": E,
5953
+ "is-override": D.value,
5954
+ "onUpdate:form": F,
5955
5955
  "onReplace:form": $[6] || ($[6] = (H) => m.value = H)
5956
5956
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
5957
5957
  ]),
5958
5958
  _: 1
5959
5959
  }, 8, ["toggle"])) : te("", !0),
5960
- I.value ? te("", !0) : (O(), J("div", ms)),
5960
+ D.value ? te("", !0) : (O(), Q("div", ms)),
5961
5961
  w(Ze, {
5962
5962
  toggle: V.value,
5963
5963
  "onUpdate:toggle": [
5964
5964
  $[10] || ($[10] = (H) => V.value = H),
5965
5965
  $[11] || ($[11] = (H) => N(H))
5966
5966
  ],
5967
- disabled: !I.value,
5967
+ disabled: !D.value,
5968
5968
  description: p(r)("menu.product.form.sections.variant.description"),
5969
5969
  title: p(r)("menu.product.form.sections.variant.title")
5970
5970
  }, {
@@ -5974,14 +5974,14 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5974
5974
  form: m.value,
5975
5975
  "full-combinations": S.value,
5976
5976
  "is-addon": k.value,
5977
- "is-override": I.value,
5978
- "onUpdate:form": E,
5977
+ "is-override": D.value,
5978
+ "onUpdate:form": F,
5979
5979
  "onReplace:form": $[9] || ($[9] = (H) => m.value = H)
5980
5980
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
5981
5981
  ]),
5982
5982
  _: 1
5983
5983
  }, 8, ["toggle", "disabled", "description", "title"]),
5984
- s.value.group && !I.value ? (O(), J("div", hs)) : te("", !0),
5984
+ s.value.group && !D.value ? (O(), Q("div", hs)) : te("", !0),
5985
5985
  s.value.group ? (O(), Y(Ze, {
5986
5986
  key: 9,
5987
5987
  toggle: Z.value,
@@ -5989,7 +5989,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5989
5989
  $[13] || ($[13] = (H) => Z.value = H),
5990
5990
  $[14] || ($[14] = (H) => ee(H))
5991
5991
  ],
5992
- disabled: !I.value,
5992
+ disabled: !D.value,
5993
5993
  description: "Use a different group setting",
5994
5994
  title: "Update group"
5995
5995
  }, {
@@ -5999,14 +5999,14 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
5999
5999
  form: m.value,
6000
6000
  "full-combinations": S.value,
6001
6001
  "is-addon": k.value,
6002
- "is-override": I.value,
6003
- "onUpdate:form": E,
6002
+ "is-override": D.value,
6003
+ "onUpdate:form": F,
6004
6004
  "onReplace:form": $[12] || ($[12] = (H) => m.value = H)
6005
6005
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
6006
6006
  ]),
6007
6007
  _: 1
6008
6008
  }, 8, ["toggle", "disabled"])) : te("", !0),
6009
- s.value.inventory && !I.value ? (O(), J("div", ps)) : te("", !0),
6009
+ s.value.inventory && !D.value ? (O(), Q("div", ps)) : te("", !0),
6010
6010
  s.value.inventory ? (O(), Y(Ze, {
6011
6011
  key: 11,
6012
6012
  toggle: q.value,
@@ -6014,7 +6014,7 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
6014
6014
  $[16] || ($[16] = (H) => q.value = H),
6015
6015
  $[17] || ($[17] = (H) => re(H))
6016
6016
  ],
6017
- disabled: !I.value,
6017
+ disabled: !D.value,
6018
6018
  description: p(r)("menu.product.form.sections.inventory.description"),
6019
6019
  title: p(r)("menu.product.form.sections.inventory.title")
6020
6020
  }, {
@@ -6024,22 +6024,22 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
6024
6024
  form: m.value,
6025
6025
  "full-combinations": S.value,
6026
6026
  "is-addon": k.value,
6027
- "is-override": I.value,
6028
- "onUpdate:form": E,
6027
+ "is-override": D.value,
6028
+ "onUpdate:form": F,
6029
6029
  "onReplace:form": $[15] || ($[15] = (H) => m.value = H)
6030
6030
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
6031
6031
  ]),
6032
6032
  _: 1
6033
6033
  }, 8, ["toggle", "disabled", "description", "title"])) : te("", !0),
6034
- s.value.takeaway(m.value.category ?? ((se = h.value) == null ? void 0 : se.category)) && !I.value ? (O(), J("div", fs)) : te("", !0),
6034
+ s.value.takeaway(m.value.category ?? ((se = h.value) == null ? void 0 : se.category)) && !D.value ? (O(), Q("div", fs)) : te("", !0),
6035
6035
  s.value.takeaway(m.value.category ?? ((ce = h.value) == null ? void 0 : ce.category)) ? (O(), Y(Ze, {
6036
6036
  key: 13,
6037
6037
  toggle: Ce.value,
6038
6038
  "onUpdate:toggle": [
6039
6039
  $[19] || ($[19] = (H) => Ce.value = H),
6040
- $[20] || ($[20] = (H) => D(H))
6040
+ $[20] || ($[20] = (H) => I(H))
6041
6041
  ],
6042
- disabled: !I.value,
6042
+ disabled: !D.value,
6043
6043
  description: p(r)("menu.product.form.sections.takeaway.description"),
6044
6044
  title: p(r)("menu.product.form.sections.takeaway.title")
6045
6045
  }, {
@@ -6049,8 +6049,8 @@ const Ga = /* @__PURE__ */ st(La, [["render", Ka]]), ja = { class: "fm-typo-en-t
6049
6049
  form: m.value,
6050
6050
  "full-combinations": S.value,
6051
6051
  "is-addon": k.value,
6052
- "is-override": I.value,
6053
- "onUpdate:form": E,
6052
+ "is-override": D.value,
6053
+ "onUpdate:form": F,
6054
6054
  "onReplace:form": $[18] || ($[18] = (H) => m.value = H)
6055
6055
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
6056
6056
  ]),
@@ -6111,9 +6111,9 @@ function gn(e, i) {
6111
6111
  return { ...i, groups: a(i.groups || []) };
6112
6112
  }
6113
6113
  const ri = Pi("item-manager", () => {
6114
- const e = fe(), i = Ie(), t = Be(), n = He(i), a = Xe(n), o = Cn(), { t: r } = me(), l = (x) => {
6114
+ const e = fe(), i = De(), t = Be(), n = He(i), a = Xe(n), o = Cn(), { t: r } = me(), l = (x) => {
6115
6115
  if (!o) throw new Error("No current instance found");
6116
- const { container: M } = In(vs, o, {
6116
+ const { container: M } = Dn(vs, o, {
6117
6117
  ...x,
6118
6118
  autoShow: !0,
6119
6119
  "onUpdate:show": async (R) => {
@@ -6128,7 +6128,7 @@ const ri = Pi("item-manager", () => {
6128
6128
  }
6129
6129
  function u(x, M, R, _) {
6130
6130
  const A = ne(M), U = R ? A.modules.catalog.find((T) => T._id === R) : null, V = _ ? A.modules.scheduler.find((T) => T._id === _) : null, N = U ? ne(U) : void 0, q = R ? A.modules.catalog.filter((T) => T._id !== R) : [], re = V ? ne(V) : void 0, Ce = x.reduce((T, K) => (T[K._id] = s(K), T), {});
6131
- function D(T = []) {
6131
+ function I(T = []) {
6132
6132
  const K = x.map((Z) => Z._id);
6133
6133
  return [
6134
6134
  ...T.filter((Z) => !K.includes(Z._id)),
@@ -6140,7 +6140,7 @@ const ri = Pi("item-manager", () => {
6140
6140
  [_]: {
6141
6141
  ...N.override.scheduler[_],
6142
6142
  _id: _,
6143
- items: D(re == null ? void 0 : re.items).map((T) => ({
6143
+ items: I(re == null ? void 0 : re.items).map((T) => ({
6144
6144
  ...T,
6145
6145
  orderFrom: B.F_ORDER_FROM.enum.ALL
6146
6146
  }))
@@ -6148,7 +6148,7 @@ const ri = Pi("item-manager", () => {
6148
6148
  }, A.modules.catalog = [...q, N], A) : N ? (N.override.items = {
6149
6149
  ...N.override.items,
6150
6150
  ...Ce
6151
- }, A.modules.catalog = [...q, N], A) : re ? (re.items = D(re.items), A.modules.scheduler = [
6151
+ }, A.modules.catalog = [...q, N], A) : re ? (re.items = I(re.items), A.modules.scheduler = [
6152
6152
  ...A.modules.scheduler.filter((T) => T._id !== _),
6153
6153
  re
6154
6154
  ], A) : {
@@ -6300,7 +6300,7 @@ const ri = Pi("item-manager", () => {
6300
6300
  t
6301
6301
  ).update();
6302
6302
  }
6303
- async function E(x) {
6303
+ async function F(x) {
6304
6304
  const M = x.reduce((_, A) => {
6305
6305
  const U = e.items.find((V) => V._id === A._id);
6306
6306
  return U && _.push({
@@ -6333,14 +6333,14 @@ const ri = Pi("item-manager", () => {
6333
6333
  }
6334
6334
  });
6335
6335
  }
6336
- async function I(x) {
6336
+ async function D(x) {
6337
6337
  const M = e.state.menu.modules.item.find((R) => R._id === x);
6338
6338
  e.currentCatalog ? e.state.currentSchedulerId ? await m(M) : await b(M) : e.state.currentSchedulerId ? await v(M) : j(M);
6339
6339
  }
6340
6340
  async function k(x) {
6341
6341
  e.currentCatalog ? e.currentScheduler ? await f(x) : await S(x) : (
6342
6342
  // If Main
6343
- e.currentScheduler ? await z(x) : await E(x)
6343
+ e.currentScheduler ? await z(x) : await F(x)
6344
6344
  );
6345
6345
  }
6346
6346
  function y(x) {
@@ -6368,7 +6368,7 @@ const ri = Pi("item-manager", () => {
6368
6368
  !0
6369
6369
  );
6370
6370
  for (const _ of x)
6371
- _.thumbnail && await En.delete(_.thumbnail);
6371
+ _.thumbnail && await Fn.delete(_.thumbnail);
6372
6372
  i.open({
6373
6373
  message: r("menu.common.dialog.remove.product.success"),
6374
6374
  type: "success"
@@ -6402,14 +6402,14 @@ const ri = Pi("item-manager", () => {
6402
6402
  return {
6403
6403
  initDynamicGroupItem: (x) => gn(e, x),
6404
6404
  create: c,
6405
- update: I,
6405
+ update: D,
6406
6406
  updateMany: k,
6407
6407
  deleteItem: g,
6408
6408
  rearrange: C
6409
6409
  };
6410
6410
  });
6411
6411
  export {
6412
- Ii as A,
6412
+ Di as A,
6413
6413
  Wi as M,
6414
6414
  _t as S,
6415
6415
  fn as _,