@feedmepos/mf-menu 0.32.20-prod → 0.32.21-dev

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 (90) hide show
  1. package/dist/{App-Dm5QL32M.js → App-Dwla-J1j.js} +1278 -1263
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-XvDBKyih.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BmJmC8Bs.js} +3 -3
  3. package/dist/{Catalog-B02dx1G-.js → Catalog-Vis5yD-r.js} +6 -6
  4. package/dist/{Category-CruwBTMK.js → Category-DVQz16Ry.js} +6 -6
  5. package/dist/{Category-BvIHKv_Y.js → Category-heg6FU7b.js} +4 -4
  6. package/dist/{CookingGuide-B8g5ViU2.js → CookingGuide-Bc8ct0sG.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DrWDFJRC.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cumf8lby.js} +1 -1
  8. package/dist/{Group-BhcHJpmt.js → Group-C_jFM4CC.js} +3 -3
  9. package/dist/{Group-CQDHVXcA.js → Group-DbAgxVzi.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DFFwdV2f.js → Group.vue_vue_type_script_setup_true_lang-D63IXz9P.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-3OLEt7FM.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dda9XLl2.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Cuffk-1z.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Djc10Q7Q.js} +1645 -1645
  13. package/dist/{Ingredient-BSLLewH8.js → Ingredient-GAUMl80x.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIvF0vCE.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CYIYXpsY.js} +2 -2
  15. package/dist/{LinkProductSideSheet-CB9HZ23S.js → LinkProductSideSheet-D7jEO5m7.js} +3 -3
  16. package/dist/{MenuSetting-BA3OEhkE.js → MenuSetting-BGgaKmhk.js} +5 -5
  17. package/dist/{PrintRoute-KteiiwyE.js → PrintRoute-o50xSmjE.js} +4 -4
  18. package/dist/{Product-B4AVIvzs.js → Product-DU4b9WOa.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DYRncJnn.js → Product.vue_vue_type_script_setup_true_lang-DyEohirr.js} +12 -12
  20. package/dist/{ProductInternalTools-DL-G0AQ1.js → ProductInternalTools-DtbfmPUP.js} +6 -6
  21. package/dist/{Products-CvUBqi3y.js → Products-PxQ1DBGT.js} +35 -35
  22. package/dist/{Publish-GzUzSCIm.js → Publish-D7z9KyQO.js} +3 -3
  23. package/dist/{Recipe-M0g0LLAs.js → Recipe-lZLB0--K.js} +4 -4
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-BY7siN1U.js → RuleView.vue_vue_type_script_setup_true_lang-Dl1egq8i.js} +543 -543
  25. package/dist/{Scheduler-oBDHFI89.js → Scheduler-Dx-QnQy0.js} +3 -3
  26. package/dist/{ServingSequence-CwOVM0IX.js → ServingSequence-BSro9G7x.js} +3 -3
  27. package/dist/{Setting-D-InBGeW.js → Setting-D4-lixQW.js} +5 -5
  28. package/dist/{Subcategory-CmD787pI.js → Subcategory-B52bfESq.js} +4 -4
  29. package/dist/{Takeaway-DQ4SAJr-.js → Takeaway-BeLl3GP7.js} +4 -4
  30. package/dist/{Takeaway-LXhrrSfd.js → Takeaway-Bx5xyHv7.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-867GLG6N.js → Takeaway.vue_vue_type_script_setup_true_lang-C1zHdUAQ.js} +5 -5
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DYiFy_UW.js → Thumbnail.vue_vue_type_script_setup_true_lang-DVQ7GO7o.js} +4 -4
  33. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-QIlV7Vox.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DYtprN7X.js} +14 -14
  34. package/dist/{Unit-HO6Yj8tw.js → Unit-DaCYLXzg.js} +2 -2
  35. package/dist/{Variant-D5EBDNb2.js → Variant-D9rGqnlg.js} +3 -3
  36. package/dist/{_id_-BKIPXiYa.js → _id_-DClzbDlU.js} +9 -9
  37. package/dist/{app-tAOoV2DK.js → app-B5dd_eIe.js} +1 -1
  38. package/dist/{app-7wOpwK9p.js → app-fPD0ZEP9.js} +37 -37
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/app.d.ts +40 -0
  41. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +0 -6
  42. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +0 -6
  43. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +0 -6
  44. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +0 -6
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +0 -3
  46. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +0 -3
  47. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +0 -9
  48. package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +0 -3
  49. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +0 -7
  50. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +0 -6
  51. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +0 -3
  52. package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +0 -3
  53. package/dist/apps/mf-menu/src/helper/menu.d.ts +0 -10
  54. package/dist/apps/mf-menu/src/helper/menuImport.d.ts +0 -7
  55. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +0 -7
  56. package/dist/apps/mf-menu/src/stores/manager/item.d.ts +0 -9
  57. package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +0 -3
  58. package/dist/apps/mf-menu/src/stores/menu.d.ts +9 -7
  59. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +0 -6
  60. package/dist/apps/mf-menu/src/views/Publish/PublishProgressView.vue.d.ts +26 -26
  61. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +12 -12
  62. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  63. package/dist/assets/linked-status-SOByQJgY.js +13 -0
  64. package/dist/assets/menu-export-CuwJS47o.js +107 -0
  65. package/dist/assets/override-menu-C7XPhEmL.js +13 -0
  66. package/dist/assets/validate-menu-DOAddUd2.js +13 -0
  67. package/dist/{catalog-DQV29b09.js → catalog-CNnbWu96.js} +1 -1
  68. package/dist/{catalogSetting-Dj8vuyAV.js → catalogSetting-DP62DWkB.js} +1 -1
  69. package/dist/{category-DRytJ0De.js → category-CdzhVKm4.js} +1 -1
  70. package/dist/{currency-BjzvzeyV.js → currency-DFxqwIUr.js} +1 -1
  71. package/dist/{dayjs.min-BYdDAUbT.js → dayjs.min-DfZ_ykTm.js} +1 -1
  72. package/dist/{index-D8BvvLyI.js → index-C9q-JDYc.js} +1 -1
  73. package/dist/{index-C4OjUQFi.js → index-CJNbchv4.js} +4 -4
  74. package/dist/{index-CX6RvERB.js → index-CTutVGPk.js} +3 -3
  75. package/dist/index.vue_vue_type_script_setup_true_lang-Df9ujiv_.js +109295 -0
  76. package/dist/{item-BI4iVlBu.js → item-coitMxGZ.js} +957 -924
  77. package/dist/{jszip.min-CLqtM7vS.js → jszip.min-B7sXIIg2.js} +383 -383
  78. package/dist/{menu-CwmNkLXR.js → menu-3pJDXeSy.js} +1 -1
  79. package/dist/{menuV2-B3zlqfB0.js → menuV2-XGSkthHP.js} +61 -61
  80. package/dist/{priceTier-CNnU62yr.js → priceTier-BmfxjZ96.js} +1 -1
  81. package/dist/{scheduler-DBI_MPWO.js → scheduler-CBv977hM.js} +4 -4
  82. package/dist/{subcategory-4EDJqXz2.js → subcategory-DCaC7zXY.js} +2 -2
  83. package/dist/{toExcel-5vgcUwzA.js → toExcel-Cwuf30kF.js} +2 -2
  84. package/dist/{unit-CNh8xw9Q.js → unit-nGbEMHUd.js} +2 -2
  85. package/package.json +3 -3
  86. package/dist/assets/linked-status-B_oMfyN9.js +0 -13
  87. package/dist/assets/menu-export-CbNOZvbg.js +0 -115
  88. package/dist/assets/override-menu-CcXt0_Rc.js +0 -13
  89. package/dist/assets/validate-menu-BWPAXRl1.js +0 -13
  90. package/dist/index.vue_vue_type_script_setup_true_lang-CJAcPNHY.js +0 -134238
@@ -1,33 +1,33 @@
1
1
  import { defineStore as Oi } from "pinia";
2
- import { defineComponent as me, resolveComponent as N, createElementBlock as ie, createBlock as H, openBlock as M, createElementVNode as V, createVNode as g, toDisplayString as de, Fragment as Me, renderList as Ne, h as Ce, ref as te, computed as O, watch as Re, unref as h, renderSlot as ve, withCtx as P, createCommentVNode as ne, Transition as bn, normalizeClass as Fe, resolveDynamicComponent as St, withDirectives as ct, vShow as Ct, mergeProps as Fi, withModifiers as kt, onMounted as at, onUnmounted as yn, createTextVNode as Vt, resolveDirective as zi, getCurrentInstance as Ii, markRaw as _n, render as Ut, mergeModels as wn, useModel as Sn, nextTick as Ei, normalizeProps as Cn, guardReactiveProps as kn, normalizeStyle as xn } from "vue";
3
- import { M as ke, A as W, am as Rn, ao as An, $ as Mn, I as ue, D as Te, B as xe, V as Ti, u as ye, J as $e, G as qe, Q as Ze, R as On, T as Fn, U as zn, W as Ft, ag as In, X as En, O as Tn, N as hi } from "./index.vue_vue_type_script_setup_true_lang-CJAcPNHY.js";
2
+ import { defineComponent as me, resolveComponent as N, createElementBlock as ne, createBlock as Y, openBlock as A, createElementVNode as P, createVNode as g, toDisplayString as de, Fragment as Me, renderList as Ne, h as Ce, ref as te, computed as O, watch as Re, unref as h, renderSlot as ve, withCtx as V, createCommentVNode as ie, Transition as bn, normalizeClass as Fe, resolveDynamicComponent as St, withDirectives as ct, vShow as Ct, mergeProps as Fi, withModifiers as kt, onMounted as at, onUnmounted as yn, createTextVNode as Vt, resolveDirective as zi, getCurrentInstance as Ii, markRaw as _n, render as Ut, mergeModels as wn, useModel as Sn, nextTick as Ei, normalizeProps as Cn, guardReactiveProps as kn, normalizeStyle as xn } from "vue";
3
+ import { M as ke, A as W, am as Rn, ao as An, $ as Mn, I as ue, D as Te, B as xe, V as Ti, u as ye, J as $e, G as qe, Q as Ze, R as On, T as Fn, U as zn, W as Ft, ag as In, X as En, O as Tn, N as hi } from "./index.vue_vue_type_script_setup_true_lang-Df9ujiv_.js";
4
4
  import { useI18n as he, useCoreStore as pt, CustomAttributesForm as Di } from "@feedmepos/mf-common";
5
5
  import { useDialog as Le, useSnackbar as De, components as Ae, FmButtonColorThemeVariant as je, FmButtonVariant as Qe, useBreakpoints as Pi, useDialogChild as Vi } from "@feedmepos/ui-library";
6
- import { C as We } from "./catalog-DQV29b09.js";
6
+ import { C as We } from "./catalog-CNnbWu96.js";
7
7
  import { c as Dn } from "./createComponentProgrammatically-Bt2rn1IQ.js";
8
8
  import { a as fi, _ as Ui } from "./tooltip-B5BiPMx9.js";
9
- import { H as Pn, L as Vn } from "./LinkProductSideSheet-CB9HZ23S.js";
10
- import { e as Un, _ as Ge, a as $n } from "./RuleView.vue_vue_type_script_setup_true_lang-BY7siN1U.js";
9
+ import { H as Pn, L as Vn } from "./LinkProductSideSheet-D7jEO5m7.js";
10
+ import { e as Un, _ as Ge, a as $n } from "./RuleView.vue_vue_type_script_setup_true_lang-Dl1egq8i.js";
11
11
  import { s as $t, F as Nn, _ as Bn } from "./index-CisutoS9.js";
12
- import { a as Ln } from "./app-7wOpwK9p.js";
12
+ import { a as Ln } from "./app-fPD0ZEP9.js";
13
13
  import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- import { g as $i, b as Gn, c as Kn, a as jn, m as Wn } from "./menuV2-B3zlqfB0.js";
14
+ import { g as $i, b as Gn, c as Kn, a as jn, m as Wn } from "./menuV2-XGSkthHP.js";
15
15
  import { useAppStore as Ht, RemyButton as Ni } from "@feedmepos/mf-remy-panel";
16
16
  import { _ as He } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
17
- import { u as Yn } from "./subcategory-4EDJqXz2.js";
18
- import { u as Hn } from "./category-DRytJ0De.js";
17
+ import { u as Yn } from "./subcategory-DCaC7zXY.js";
18
+ import { u as Hn } from "./category-CdzhVKm4.js";
19
19
  import { u as Xt } from "./discardConfirm-BHni0LNu.js";
20
- import { _ as tt, l as Nt, T as Xn } from "./index-C4OjUQFi.js";
20
+ import { _ as tt, l as Nt, T as Xn } from "./index-CJNbchv4.js";
21
21
  import { useInventoryStore as Bi, InventoryBindingForm as qn, InventoryBindingSummary as Zn } from "@feedmepos/mf-inventory-portal";
22
22
  import { c as ht } from "./check-C9mY6LiX.js";
23
23
  import { c as Qn } from "./object-DVUNCr7w.js";
24
- import { f as rt } from "./currency-BjzvzeyV.js";
25
- import { u as Li } from "./priceTier-CNnU62yr.js";
24
+ import { f as rt } from "./currency-DFxqwIUr.js";
25
+ import { u as Li } from "./priceTier-BmfxjZ96.js";
26
26
  import { u as Jn } from "./search-BAPEUu1R.js";
27
27
  import { c as eo } from "./string-DpfFixWH.js";
28
28
  import { d as Gi } from "./vuedraggable-CK8z7qA8.js";
29
- import { _ as to } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-XvDBKyih.js";
30
- import { V as vi } from "./index-CX6RvERB.js";
29
+ import { _ as to } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BmJmC8Bs.js";
30
+ import { V as vi } from "./index-CTutVGPk.js";
31
31
  class _t {
32
32
  constructor(i, t, n, a) {
33
33
  this.scheduler = i, this.menuStore = t, this.updateMenu = n, this.dialog = a;
@@ -382,28 +382,28 @@ class ji {
382
382
  const a = this.menuStore.state.menu.modules.item, o = this.menuStore.state.menu.modules.group, r = this.menuStore.items;
383
383
  function l(s, u) {
384
384
  const d = s.items.reduce((m, p) => {
385
- var U, K, A, D;
386
- const v = a.find((I) => p._id === I._id);
387
- if (!v && t) return m;
385
+ var U, K, M, D;
386
+ const f = a.find((I) => p._id === I._id);
387
+ if (!f && t) return m;
388
388
  const b = p.combinationKey ? {
389
- ...(U = v == null ? void 0 : v.variant) == null ? void 0 : U.variantCombinations.find(
389
+ ...(U = f == null ? void 0 : f.variant) == null ? void 0 : U.variantCombinations.find(
390
390
  (I) => I.combinationKey === p.combinationKey
391
391
  ),
392
- name: Ti(ye().variants, ((K = v == null ? void 0 : v.variant) == null ? void 0 : K.variantGroupIds) || [])[p.combinationKey]
393
- } : v, y = (A = o.find((I) => I._id === s._id)) == null ? void 0 : A.items.find((I) => I._id === p._id && I.combinationKey === p.combinationKey), w = !t && !p.combinationKey, f = (D = u.find(
392
+ name: Ti(ye().variants, ((K = f == null ? void 0 : f.variant) == null ? void 0 : K.variantGroupIds) || [])[p.combinationKey]
393
+ } : f, y = (M = o.find((I) => I._id === s._id)) == null ? void 0 : M.items.find((I) => I._id === p._id && I.combinationKey === p.combinationKey), _ = !t && !p.combinationKey, v = (D = u.find(
394
394
  (I) => I._id == p._id && I.combinationKey == p.combinationKey
395
- )) == null ? void 0 : D.price, x = p.name ?? (y == null ? void 0 : y.name) ?? (b == null ? void 0 : b.name) ?? "", Y = {
395
+ )) == null ? void 0 : D.price, x = p.name ?? (y == null ? void 0 : y.name) ?? (b == null ? void 0 : b.name) ?? "", H = {
396
396
  ...p,
397
397
  name: x,
398
398
  code: b == null ? void 0 : b.code,
399
- fallbackName: w ? null : x,
399
+ fallbackName: _ ? null : x,
400
400
  price: p.price,
401
- fallbackPrice: w ? null : f,
401
+ fallbackPrice: _ ? null : v,
402
402
  orderFrom: p.orderFrom,
403
403
  fallbackOrder: b == null ? void 0 : b.orderFrom,
404
404
  priceTiers: p.priceTiers
405
405
  };
406
- return [...m, Y];
406
+ return [...m, H];
407
407
  }, []), c = xt(a, s.items);
408
408
  return {
409
409
  ...s,
@@ -464,9 +464,9 @@ class ji {
464
464
  }
465
465
  function a(s, u, d) {
466
466
  var p;
467
- const c = n(u.groups, d), m = (((p = u.variant) == null ? void 0 : p.variantCombinations) ?? []).map((v) => {
468
- const b = n(v.groups ?? [], d);
469
- return { ...v, groups: b };
467
+ const c = n(u.groups, d), m = (((p = u.variant) == null ? void 0 : p.variantCombinations) ?? []).map((f) => {
468
+ const b = n(f.groups ?? [], d);
469
+ return { ...f, groups: b };
470
470
  });
471
471
  return vn(s, {
472
472
  ...u,
@@ -547,15 +547,15 @@ const ao = {
547
547
  }
548
548
  return (a, o) => {
549
549
  const r = N("FmButton");
550
- return i.variant === "full" ? (M(), ie("div", ao, [
551
- V("div", ro, de(a.title), 1),
550
+ return i.variant === "full" ? (A(), ne("div", ao, [
551
+ P("div", ro, de(a.title), 1),
552
552
  g(Pn),
553
- (M(!0), ie(Me, null, Ne(a.items, (l) => (M(), H(fi, {
553
+ (A(!0), ne(Me, null, Ne(a.items, (l) => (A(), Y(fi, {
554
554
  key: l.name,
555
555
  name: l.name,
556
556
  value: l.value || "--"
557
557
  }, null, 8, ["name", "value"]))), 128))
558
- ])) : (M(), H(r, {
558
+ ])) : (A(), Y(r, {
559
559
  key: 1,
560
560
  icon: "info",
561
561
  variant: "tertiary",
@@ -572,9 +572,9 @@ const ao = {
572
572
  setup(e, { emit: i }) {
573
573
  const t = e, n = i, { t: a } = he(), o = ye(), r = te(o.state.currentCatalogId || null), l = O(() => {
574
574
  const m = Object.keys(t.linkedStatus.catalogs).map((p) => {
575
- var v;
575
+ var f;
576
576
  return {
577
- label: ((v = o.state.menu.modules.catalog.find((b) => b._id === p)) == null ? void 0 : v.name) || "Unknown",
577
+ label: ((f = o.state.menu.modules.catalog.find((b) => b._id === p)) == null ? void 0 : f.name) || "Unknown",
578
578
  value: p
579
579
  };
580
580
  });
@@ -586,11 +586,11 @@ const ao = {
586
586
  ...m
587
587
  ];
588
588
  }), s = te(o.state.currentSchedulerId || null), u = () => r.value ? t.linkedStatus.catalogs[r.value].schedulers : t.linkedStatus.schedulers, d = O(() => {
589
- const p = u().map((v) => {
589
+ const p = u().map((f) => {
590
590
  var b;
591
591
  return {
592
- label: ((b = o.state.menu.modules.scheduler.find((y) => y._id === v)) == null ? void 0 : b.name) || "Unknown",
593
- value: v
592
+ label: ((b = o.state.menu.modules.scheduler.find((y) => y._id === f)) == null ? void 0 : b.name) || "Unknown",
593
+ value: f
594
594
  };
595
595
  });
596
596
  return [
@@ -613,23 +613,23 @@ const ao = {
613
613
  c();
614
614
  }
615
615
  ), (m, p) => {
616
- const v = N("FmSelect");
617
- return M(), ie("div", so, [
618
- V("div", lo, [
619
- V("div", uo, de(h(a)("menu.catalog_scheduler.title")), 1),
620
- V("div", co, de(h(a)("menu.catalog_scheduler.subtitle")), 1)
616
+ const f = N("FmSelect");
617
+ return A(), ne("div", so, [
618
+ P("div", lo, [
619
+ P("div", uo, de(h(a)("menu.catalog_scheduler.title")), 1),
620
+ P("div", co, de(h(a)("menu.catalog_scheduler.subtitle")), 1)
621
621
  ]),
622
- V("div", mo, [
623
- V("div", po, [
624
- g(v, {
622
+ P("div", mo, [
623
+ P("div", po, [
624
+ g(f, {
625
625
  label: h(a)("menu.common.labels.catalog"),
626
626
  items: l.value,
627
627
  modelValue: r.value,
628
628
  "onUpdate:modelValue": p[0] || (p[0] = (b) => r.value = b)
629
629
  }, null, 8, ["label", "items", "modelValue"])
630
630
  ]),
631
- V("div", ho, [
632
- g(v, {
631
+ P("div", ho, [
632
+ g(f, {
633
633
  label: h(a)("menu.common.labels.scheduler"),
634
634
  items: d.value,
635
635
  modelValue: s.value,
@@ -656,16 +656,16 @@ const ao = {
656
656
  const t = i;
657
657
  return (n, a) => {
658
658
  const o = N("fm-switch"), r = N("fm-card");
659
- return n.disabled ? ve(n.$slots, "default", { key: 0 }, void 0, !0) : (M(), H(r, {
659
+ return n.disabled ? ve(n.$slots, "default", { key: 0 }, void 0, !0) : (A(), Y(r, {
660
660
  key: 1,
661
661
  class: "p-16 space-y-24",
662
662
  variant: "outlined"
663
663
  }, {
664
- default: P(() => [
665
- V("div", vo, [
666
- V("div", go, [
667
- V("p", bo, de(n.title), 1),
668
- n.description ? (M(), ie("p", yo, de(n.description), 1)) : ne("", !0)
664
+ default: V(() => [
665
+ P("div", vo, [
666
+ P("div", go, [
667
+ P("p", bo, de(n.title), 1),
668
+ n.description ? (A(), ne("p", yo, de(n.description), 1)) : ie("", !0)
669
669
  ]),
670
670
  g(o, {
671
671
  "model-value": n.toggle,
@@ -673,10 +673,10 @@ const ao = {
673
673
  }, null, 8, ["model-value"])
674
674
  ]),
675
675
  g(bn, { name: "expand" }, {
676
- default: P(() => [
677
- n.toggle ? (M(), ie("div", _o, [
676
+ default: V(() => [
677
+ n.toggle ? (A(), ne("div", _o, [
678
678
  ve(n.$slots, "default", {}, void 0, !0)
679
- ])) : ne("", !0)
679
+ ])) : ie("", !0)
680
680
  ]),
681
681
  _: 3
682
682
  })
@@ -703,19 +703,19 @@ async function Co(e) {
703
703
  onBatchEnd: l
704
704
  } = e, s = i.length, u = [];
705
705
  for (let d = 0; d < i.length; d += n) {
706
- const c = i.slice(d, d + n), m = d + 1, p = Math.min(d + n, i.length), v = `Processing items ${m}-${p}/${s}...`;
707
- r && (r.value = v), o && o({
706
+ const c = i.slice(d, d + n), m = d + 1, p = Math.min(d + n, i.length), f = `Processing items ${m}-${p}/${s}...`;
707
+ r && (r.value = f), o && o({
708
708
  current: d,
709
709
  total: s,
710
710
  batchStart: m,
711
711
  batchEnd: p,
712
- message: v
712
+ message: f
713
713
  });
714
714
  const b = c.map(t), y = await Promise.all(b);
715
715
  u.push(...y), l && l({
716
716
  batchIndex: Math.floor(d / n),
717
717
  results: y
718
- }), d + n < i.length && await new Promise((w) => setTimeout(w, a));
718
+ }), d + n < i.length && await new Promise((_) => setTimeout(_, a));
719
719
  }
720
720
  return u;
721
721
  }
@@ -742,7 +742,7 @@ async function xo(e, i = "image.jpg", t = "image/jpeg") {
742
742
  });
743
743
  return n ? new File([n.blob], i, { type: t }) : null;
744
744
  }
745
- async function fl(e, i, t = {}) {
745
+ async function vl(e, i, t = {}) {
746
746
  return Co({
747
747
  items: e,
748
748
  processor: (n) => i(n.url, n.filename),
@@ -751,7 +751,7 @@ async function fl(e, i, t = {}) {
751
751
  }
752
752
  const Ro = {}, Ao = { class: "pl-32" };
753
753
  function Mo(e, i) {
754
- return M(), ie("div", Ao, [
754
+ return A(), ne("div", Ao, [
755
755
  ve(e.$slots, "default")
756
756
  ]);
757
757
  }
@@ -774,100 +774,100 @@ const Oo = /* @__PURE__ */ nt(Ro, [["render", Mo]]), Fo = { class: "flex flex-co
774
774
  },
775
775
  emits: ["update:modelValue"],
776
776
  setup(e, { expose: i, emit: t }) {
777
- const n = e, a = t, o = te(null), r = te([]), l = (v, b) => {
777
+ const n = e, a = t, o = te(null), r = te([]), l = (f, b) => {
778
778
  var y;
779
- if (v)
779
+ if (f)
780
780
  if (!n.multiple)
781
781
  r.value = [b], (y = o.value) == null || y.toggleMenu(!1);
782
782
  else if (b.value === "" || b.value === null)
783
783
  r.value = [b];
784
784
  else {
785
- const w = r.value.filter(
786
- (f) => f.value !== "" && f.value !== null
785
+ const _ = r.value.filter(
786
+ (v) => v.value !== "" && v.value !== null
787
787
  );
788
- r.value = [...w, b];
788
+ r.value = [..._, b];
789
789
  }
790
790
  else
791
- r.value = r.value.filter((w) => w.value !== b.value);
791
+ r.value = r.value.filter((_) => _.value !== b.value);
792
792
  a(
793
793
  "update:modelValue",
794
- r.value.map((w) => w.value)
794
+ r.value.map((_) => _.value)
795
795
  );
796
- }, s = (v) => {
797
- r.value.length <= 1 || (r.value = r.value.filter((b, y) => y !== v), a(
796
+ }, s = (f) => {
797
+ r.value.length <= 1 || (r.value = r.value.filter((b, y) => y !== f), a(
798
798
  "update:modelValue",
799
799
  r.value.map((b) => b.value)
800
800
  ));
801
801
  }, u = () => {
802
- var v;
803
- (v = o.value) == null || v.toggleMenu(!1);
802
+ var f;
803
+ (f = o.value) == null || f.toggleMenu(!1);
804
804
  }, d = O(() => n.items.reduce(
805
- (v, b) => (v[b.value] = b, v),
805
+ (f, b) => (f[b.value] = b, f),
806
806
  {}
807
807
  )), c = te(!1);
808
808
  Re(
809
809
  () => n.modelValue,
810
- (v) => {
811
- v != null && v.length ? r.value = v.map((b) => d.value[b]).filter((b) => !!b) : r.value = [];
810
+ (f) => {
811
+ f != null && f.length ? r.value = f.map((b) => d.value[b]).filter((b) => !!b) : r.value = [];
812
812
  },
813
813
  { immediate: !0 }
814
814
  );
815
- const m = O(() => n.shouldShowSelectedItemsWithinPlaceholder && r.value.length > 0), p = O(() => m.value ? r.value.map((v) => v.label).join(", ") : n.placeholder);
815
+ const m = O(() => n.shouldShowSelectedItemsWithinPlaceholder && r.value.length > 0), p = O(() => m.value ? r.value.map((f) => f.label).join(", ") : n.placeholder);
816
816
  return i({
817
817
  hideMenu: u
818
- }), (v, b) => {
819
- const y = N("FmIcon"), w = N("FmField"), f = N("FmMenuItem"), x = N("FmMenu"), Y = N("FmFormGroup"), U = N("FmChipGroup");
820
- return M(), ie("div", Fo, [
821
- g(Y, {
822
- "model-value": v.modelValue,
823
- disabled: v.disabled,
818
+ }), (f, b) => {
819
+ const y = N("FmIcon"), _ = N("FmField"), v = N("FmMenuItem"), x = N("FmMenu"), H = N("FmFormGroup"), U = N("FmChipGroup");
820
+ return A(), ne("div", Fo, [
821
+ g(H, {
822
+ "model-value": f.modelValue,
823
+ disabled: f.disabled,
824
824
  focused: c.value,
825
- "helper-state": v.helperState,
826
- "helper-text": v.helperText,
827
- rules: v.rules
825
+ "helper-state": f.helperState,
826
+ "helper-text": f.helperText,
827
+ rules: f.rules
828
828
  }, {
829
- default: P(({ invalid: K }) => [
829
+ default: V(({ invalid: K }) => [
830
830
  g(x, {
831
- disabled: v.disabled,
831
+ disabled: f.disabled,
832
832
  ref_key: "fmMenuRef",
833
833
  ref: o,
834
834
  "close-on-click": !1,
835
- onMenuChanged: b[0] || (b[0] = (A) => c.value = A)
835
+ onMenuChanged: b[0] || (b[0] = (M) => c.value = M)
836
836
  }, {
837
- "menu-button": P(() => [
838
- g(w, {
839
- class: Fe(v.disabled ? "cursor-not-allowed" : "cursor-pointer"),
837
+ "menu-button": V(() => [
838
+ g(_, {
839
+ class: Fe(f.disabled ? "cursor-not-allowed" : "cursor-pointer"),
840
840
  focused: c.value,
841
841
  invalid: K
842
842
  }, {
843
- append: P(() => [
843
+ append: V(() => [
844
844
  g(y, {
845
- color: v.disabled ? "#C7C7CC" : "black",
845
+ color: f.disabled ? "#C7C7CC" : "black",
846
846
  name: c.value ? "expand_less" : "expand_more",
847
847
  size: "md"
848
848
  }, null, 8, ["color", "name"])
849
849
  ]),
850
- default: P(() => [
851
- V("div", {
850
+ default: V(() => [
851
+ P("div", {
852
852
  class: Fe([[
853
- v.disabled ? "text-fm-color-typo-disabled" : m.value ? "text-fm-color-typo-primary" : "text-fm-color-typo-tertiary"
853
+ f.disabled ? "text-fm-color-typo-disabled" : m.value ? "text-fm-color-typo-primary" : "text-fm-color-typo-tertiary"
854
854
  ], "break-all fm-typo-en-body-lg-400 line-clamp-1"])
855
855
  }, de(p.value), 3)
856
856
  ]),
857
857
  _: 2
858
858
  }, 1032, ["class", "focused", "invalid"])
859
859
  ]),
860
- default: P(() => [
861
- V("div", zo, [
862
- (M(!0), ie(Me, null, Ne(v.items, (A) => (M(), H(f, {
863
- key: A.value,
864
- disabled: A.disabled,
860
+ default: V(() => [
861
+ P("div", zo, [
862
+ (A(!0), ne(Me, null, Ne(f.items, (M) => (A(), Y(v, {
863
+ key: M.value,
864
+ disabled: M.disabled,
865
865
  "has-checkbox": !0,
866
- label: A.label,
867
- "model-value": r.value.some((D) => D.value === A.value),
868
- "onUpdate:modelValue": (D) => l(D, A)
866
+ label: M.label,
867
+ "model-value": r.value.some((D) => D.value === M.value),
868
+ "onUpdate:modelValue": (D) => l(D, M)
869
869
  }, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue"]))), 128)),
870
- ve(v.$slots, "append-menu", {}, void 0, !0)
870
+ ve(f.$slots, "append-menu", {}, void 0, !0)
871
871
  ])
872
872
  ]),
873
873
  _: 2
@@ -875,14 +875,14 @@ const Oo = /* @__PURE__ */ nt(Ro, [["render", Mo]]), Fo = { class: "flex flex-co
875
875
  ]),
876
876
  _: 3
877
877
  }, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
878
- v.shouldShowChips && r.value.length > 0 ? (M(), ie("div", Io, [
878
+ f.shouldShowChips && r.value.length > 0 ? (A(), ne("div", Io, [
879
879
  g(U, {
880
- disabled: v.disabled,
880
+ disabled: f.disabled,
881
881
  items: r.value.map((K) => ({ label: K.label })),
882
882
  removable: "",
883
883
  onChipClosed: s
884
884
  }, null, 8, ["disabled", "items"])
885
- ])) : ne("", !0)
885
+ ])) : ie("", !0)
886
886
  ]);
887
887
  };
888
888
  }
@@ -1133,7 +1133,7 @@ var dt = function(e, i) {
1133
1133
  this.touches.length && this.$emit("drag-end"), this.hovered && (this.$emit("leave"), this.hovered = !1), this.touches = [];
1134
1134
  } }, emits: ["drag", "drag-end", "leave", "enter"] };
1135
1135
  Qt.render = function(e, i, t, n, a, o) {
1136
- return M(), H("div", { ref: "draggable", class: t.classname, onTouchstart: i[1] || (i[1] = function() {
1136
+ return A(), Y("div", { ref: "draggable", class: t.classname, onTouchstart: i[1] || (i[1] = function() {
1137
1137
  return o.onTouchStart && o.onTouchStart.apply(o, arguments);
1138
1138
  }), onMousedown: i[2] || (i[2] = function() {
1139
1139
  return o.onMouseDown && o.onMouseDown.apply(o, arguments);
@@ -1153,7 +1153,7 @@ var It = Pe("vue-handler-wrapper"), Zi = { name: "HandlerWrapper", components: {
1153
1153
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
1154
1154
  Zi.render = function(e, i, t, n, a, o) {
1155
1155
  var r = N("DraggableElement");
1156
- return M(), H("div", { class: o.classes.root }, [g(r, { class: o.classes.draggable, onDrag: i[1] || (i[1] = function(l) {
1156
+ return A(), Y("div", { class: o.classes.root }, [g(r, { class: o.classes.draggable, onDrag: i[1] || (i[1] = function(l) {
1157
1157
  return e.$emit("drag", l);
1158
1158
  }), onDragEnd: i[2] || (i[2] = function(l) {
1159
1159
  return e.$emit("drag-end");
@@ -1161,7 +1161,7 @@ Zi.render = function(e, i, t, n, a, o) {
1161
1161
  return e.$emit("leave");
1162
1162
  }), onEnter: i[4] || (i[4] = function(l) {
1163
1163
  return e.$emit("enter");
1164
- }) }, { default: P(function() {
1164
+ }) }, { default: V(function() {
1165
1165
  return [ve(e.$slots, "default")];
1166
1166
  }), _: 3 }, 8, ["class"])], 2);
1167
1167
  };
@@ -1171,7 +1171,7 @@ var $o = Pe("vue-line-wrapper"), Qi = { name: "LineWrapper", components: { Dragg
1171
1171
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
1172
1172
  Qi.render = function(e, i, t, n, a, o) {
1173
1173
  var r = N("DraggableElement");
1174
- return M(), H(r, { class: o.classname, onDrag: i[1] || (i[1] = function(l) {
1174
+ return A(), Y(r, { class: o.classname, onDrag: i[1] || (i[1] = function(l) {
1175
1175
  return e.$emit("drag", l);
1176
1176
  }), onDragEnd: i[2] || (i[2] = function(l) {
1177
1177
  return e.$emit("drag-end");
@@ -1179,7 +1179,7 @@ Qi.render = function(e, i, t, n, a, o) {
1179
1179
  return e.$emit("leave");
1180
1180
  }), onEnter: i[4] || (i[4] = function(l) {
1181
1181
  return e.$emit("enter");
1182
- }) }, { default: P(function() {
1182
+ }) }, { default: V(function() {
1183
1183
  return [ve(e.$slots, "default")];
1184
1184
  }), _: 3 }, 8, ["class"]);
1185
1185
  };
@@ -1308,8 +1308,8 @@ function jo(e) {
1308
1308
  return (Array.isArray(t) ? t : [t]).forEach(function(d) {
1309
1309
  var c = {};
1310
1310
  _e((c = typeof d == "function" ? d({ coordinates: u, imageSize: n, visibleArea: l }) : d).width) && _e(c.height) || (u = function(m, p) {
1311
- var v = ee(ee(ee({}, m), Ye({ width: p.width, height: p.height, sizeRestrictions: a, aspectRatio: r })), { left: 0, top: 0 });
1312
- return s(v, { left: m.left, top: m.top });
1311
+ var f = ee(ee(ee({}, m), Ye({ width: p.width, height: p.height, sizeRestrictions: a, aspectRatio: r })), { left: 0, top: 0 });
1312
+ return s(f, { left: m.left, top: m.top });
1313
1313
  }(u, ee(ee({}, u), c))), _e(c.left) && _e(c.top) || (u = s(u, ee(ee({}, u), c)));
1314
1314
  }), u;
1315
1315
  }
@@ -1321,8 +1321,8 @@ function Wo(e) {
1321
1321
  e.stencilReference;
1322
1322
  var s, u, d, c = ee({}, n), m = ee({}, a), p = ee({}, o);
1323
1323
  s = le(p), u = le(c), d === void 0 && (d = 1e-3), (s === 0 || u === 0 ? Math.abs(u - s) < d : Math.abs(u / s) < 1 + d && Math.abs(u / s) > 1 - d) || (c = ee(ee({}, c), Ye({ sizeRestrictions: r, width: c.width, height: c.height, aspectRatio: { minimum: le(p), maximum: le(p) } })));
1324
- var v = At(m = Ee(m, c.width * t.width / (m.width * p.width)), i({ visibleArea: m, type: "resize" }));
1325
- return v !== 1 && (m = Ee(m, v), c = Ee(c, v)), m = Se(m = Oe(m, st(we(c), we(m))), i({ visibleArea: m, type: "move" })), { coordinates: c = Se(c, Mt(Be(m), l)), visibleArea: m };
1324
+ var f = At(m = Ee(m, c.width * t.width / (m.width * p.width)), i({ visibleArea: m, type: "resize" }));
1325
+ return f !== 1 && (m = Ee(m, f), c = Ee(c, f)), m = Se(m = Oe(m, st(we(c), we(m))), i({ visibleArea: m, type: "move" })), { coordinates: c = Se(c, Mt(Be(m), l)), visibleArea: m };
1326
1326
  }
1327
1327
  function Yo(e) {
1328
1328
  var i = e.event, t = e.getAreaRestrictions, n = e.boundaries, a = e.coordinates, o = e.visibleArea;
@@ -1371,12 +1371,12 @@ function gt(e, i) {
1371
1371
  return tn(e, Be(i));
1372
1372
  }
1373
1373
  function Jo(e) {
1374
- var i = e.event, t = e.coordinates, n = e.visibleArea, a = e.sizeRestrictions, o = e.getAreaRestrictions, r = e.positionRestrictions, l = e.adjustStencil, s = i.scale, u = i.move, d = ee({}, n), c = ee({}, t), m = 1, p = 1, v = s.factor && Math.abs(s.factor - 1) > 1e-3;
1374
+ var i = e.event, t = e.coordinates, n = e.visibleArea, a = e.sizeRestrictions, o = e.getAreaRestrictions, r = e.positionRestrictions, l = e.adjustStencil, s = i.scale, u = i.move, d = ee({}, n), c = ee({}, t), m = 1, p = 1, f = s.factor && Math.abs(s.factor - 1) > 1e-3;
1375
1375
  d = Oe(d, { left: u.left || 0, top: u.top || 0 });
1376
1376
  var b = { stencil: { minimum: Math.max(a.minWidth ? a.minWidth / c.width : 0, a.minHeight ? a.minHeight / c.height : 0), maximum: Math.min(a.maxWidth ? a.maxWidth / c.width : 1 / 0, a.maxHeight ? a.maxHeight / c.height : 1 / 0, lt(c, r)) }, area: { maximum: lt(d, o({ visibleArea: d, type: "resize" })) } };
1377
- s.factor && v && (s.factor < 1 ? (p = Math.max(s.factor, b.stencil.minimum)) > 1 && (p = 1) : s.factor > 1 && (p = Math.min(s.factor, Math.min(b.area.maximum, b.stencil.maximum))) < 1 && (p = 1)), p && (d = Ee(d, p, s.center));
1378
- var y = t.left - n.left, w = n.width + n.left - (t.width + t.left), f = t.top - n.top, x = n.height + n.top - (t.height + t.top);
1379
- return d = Se(d = Oe(d, ut(d, { left: r.left !== void 0 ? r.left - y * p : void 0, top: r.top !== void 0 ? r.top - f * p : void 0, bottom: r.bottom !== void 0 ? r.bottom + x * p : void 0, right: r.right !== void 0 ? r.right + w * p : void 0 })), o({ visibleArea: d, type: "move" })), c.width = c.width * p, c.height = c.height * p, c.left = d.left + y * p, c.top = d.top + f * p, c = Se(c, Mt(Be(d), r)), s.factor && v && l && (s.factor > 1 ? m = Math.min(b.area.maximum, s.factor) / p : s.factor < 1 && (m = Math.max(c.height / d.height, c.width / d.width, s.factor / p)), m !== 1 && (d = Oe(d = Se(d = Ee(d, m, s.factor > 1 ? s.center : we(c)), o({ visibleArea: d, type: "move" })), Rt(ut(c, Be(d)))))), { coordinates: c, visibleArea: d };
1377
+ s.factor && f && (s.factor < 1 ? (p = Math.max(s.factor, b.stencil.minimum)) > 1 && (p = 1) : s.factor > 1 && (p = Math.min(s.factor, Math.min(b.area.maximum, b.stencil.maximum))) < 1 && (p = 1)), p && (d = Ee(d, p, s.center));
1378
+ var y = t.left - n.left, _ = n.width + n.left - (t.width + t.left), v = t.top - n.top, x = n.height + n.top - (t.height + t.top);
1379
+ return d = Se(d = Oe(d, ut(d, { left: r.left !== void 0 ? r.left - y * p : void 0, top: r.top !== void 0 ? r.top - v * p : void 0, bottom: r.bottom !== void 0 ? r.bottom + x * p : void 0, right: r.right !== void 0 ? r.right + _ * p : void 0 })), o({ visibleArea: d, type: "move" })), c.width = c.width * p, c.height = c.height * p, c.left = d.left + y * p, c.top = d.top + v * p, c = Se(c, Mt(Be(d), r)), s.factor && f && l && (s.factor > 1 ? m = Math.min(b.area.maximum, s.factor) / p : s.factor < 1 && (m = Math.max(c.height / d.height, c.width / d.width, s.factor / p)), m !== 1 && (d = Oe(d = Se(d = Ee(d, m, s.factor > 1 ? s.center : we(c)), o({ visibleArea: d, type: "move" })), Rt(ut(c, Be(d)))))), { coordinates: c, visibleArea: d };
1380
1380
  }
1381
1381
  function ea(e) {
1382
1382
  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, d = ee({}, n), c = ee({}, a), m = Xe(we(ee({ left: 0, top: 0 }, s)), u);
@@ -1385,8 +1385,8 @@ function ea(e) {
1385
1385
  function ta(e) {
1386
1386
  var i = e.flip, t = e.previousFlip, n = e.rotate, a = e.getAreaRestrictions, o = e.coordinates, r = e.visibleArea, l = e.imageSize, s = ee({}, o), u = ee({}, r), d = t.horizontal !== i.horizontal, c = t.vertical !== i.vertical;
1387
1387
  if (d || c) {
1388
- var m = Xe({ left: l.width / 2, top: l.height / 2 }, -n), p = Xe(we(s), -n), v = Xe({ left: d ? m.left - (p.left - m.left) : p.left, top: c ? m.top - (p.top - m.top) : p.top }, n);
1389
- s = Oe(s, st(v, we(s))), p = Xe(we(u), -n), u = Se(u = Oe(u, st(v = Xe({ left: d ? m.left - (p.left - m.left) : p.left, top: c ? m.top - (p.top - m.top) : p.top }, n), we(u))), a({ visibleArea: u, type: "move" }));
1388
+ var m = Xe({ left: l.width / 2, top: l.height / 2 }, -n), p = Xe(we(s), -n), f = Xe({ left: d ? m.left - (p.left - m.left) : p.left, top: c ? m.top - (p.top - m.top) : p.top }, n);
1389
+ s = Oe(s, st(f, we(s))), p = Xe(we(u), -n), u = Se(u = Oe(u, st(f = Xe({ left: d ? m.left - (p.left - m.left) : p.left, top: c ? m.top - (p.top - m.top) : p.top }, n), we(u))), a({ visibleArea: u, type: "move" }));
1390
1390
  }
1391
1391
  return { coordinates: s, visibleArea: u };
1392
1392
  }
@@ -1410,9 +1410,9 @@ function Ri(e) {
1410
1410
  m[b] !== 1 / 0 && (s[b] *= m[b]);
1411
1411
  });
1412
1412
  if (u = Ve(t, s).width, d = Ve(t, s).height, s.right + s.left && (u > o.maxWidth ? m.width = (o.maxWidth - t.width) / (s.right + s.left) : u < o.minWidth && (m.width = (o.minWidth - t.width) / (s.right + s.left))), s.bottom + s.top && (d > o.maxHeight ? m.height = (o.maxHeight - t.height) / (s.bottom + s.top) : d < o.minHeight && (m.height = (o.minHeight - t.height) / (s.bottom + s.top))), r) {
1413
- var v = Math.min(m.width, m.height);
1414
- v !== 1 / 0 && Ue.forEach(function(b) {
1415
- s[b] *= v;
1413
+ var f = Math.min(m.width, m.height);
1414
+ f !== 1 / 0 && Ue.forEach(function(b) {
1415
+ s[b] *= f;
1416
1416
  });
1417
1417
  } else m.width !== 1 / 0 && No.forEach(function(b) {
1418
1418
  s[b] *= m.width;
@@ -1440,7 +1440,7 @@ var ia = Pe("vue-simple-handler"), na = Pe("vue-simple-handler-wrapper"), Jt = {
1440
1440
  } }, emits: ["drag", "drag-end"] };
1441
1441
  Jt.render = function(e, i, t, n, a, o) {
1442
1442
  var r = N("HandlerWrapper");
1443
- return M(), H(r, { class: o.classes.wrapper, "vertical-position": t.verticalPosition, "horizontal-position": t.horizontalPosition, disabled: t.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: P(function() {
1443
+ return A(), Y(r, { class: o.classes.wrapper, "vertical-position": t.verticalPosition, "horizontal-position": t.horizontalPosition, disabled: t.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: V(function() {
1444
1444
  return [g("div", { class: o.classes.default }, null, 2)];
1445
1445
  }), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
1446
1446
  };
@@ -1459,7 +1459,7 @@ var oa = Pe("vue-simple-line"), aa = Pe("vue-simple-line-wrapper"), ei = { name:
1459
1459
  } }, emits: ["drag", "drag-end"] };
1460
1460
  ei.render = function(e, i, t, n, a, o) {
1461
1461
  var r = N("LineWrapper");
1462
- return M(), H(r, { class: o.classes.wrapper, position: t.position, disabled: t.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: P(function() {
1462
+ return A(), Y(r, { class: o.classes.wrapper, position: t.position, disabled: t.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: V(function() {
1463
1463
  return [g("div", { class: o.classes.root }, null, 2)];
1464
1464
  }), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
1465
1465
  };
@@ -1525,14 +1525,14 @@ var Tt = Pe("vue-bounding-box"), ra = ["east", "west", null], sa = ["south", "no
1525
1525
  i === "west" ? l.left -= o : i === "east" && (l.right += o), t === "north" ? l.top -= r : t === "south" && (l.bottom += r), !t && i ? n = "width" : t && !i && (n = "height"), this.resizable && this.$emit("resize", new Vo(l, { allowedDirections: { left: i === "west" || !i, right: i === "east" || !i, bottom: t === "south" || !t, top: t === "north" || !t }, preserveAspectRatio: e.nativeEvent && e.nativeEvent.shiftKey, respectDirection: n }));
1526
1526
  } }, emits: ["resize", "resize-end"] };
1527
1527
  nn.render = function(e, i, t, n, a, o) {
1528
- return M(), H("div", { ref: "box", class: o.classes.root, style: o.style }, [ve(e.$slots, "default"), g("div", null, [(M(!0), H(Me, null, Ne(o.lineNodes, function(r) {
1529
- return M(), H(St(r.component), { key: r.name, "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, position: r.name, disabled: r.disabled, onDrag: function(l) {
1528
+ return A(), Y("div", { ref: "box", class: o.classes.root, style: o.style }, [ve(e.$slots, "default"), g("div", null, [(A(!0), Y(Me, null, Ne(o.lineNodes, function(r) {
1529
+ return A(), Y(St(r.component), { key: r.name, "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, position: r.name, disabled: r.disabled, onDrag: function(l) {
1530
1530
  return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
1531
1531
  }, onDragEnd: i[1] || (i[1] = function(l) {
1532
1532
  return o.onEnd();
1533
1533
  }) }, null, 8, ["default-class", "hover-class", "wrapper-class", "position", "disabled", "onDrag"]);
1534
- }), 128))]), (M(!0), H(Me, null, Ne(o.handlerNodes, function(r) {
1535
- return M(), H("div", { key: r.name, style: r.wrapperStyle, class: r.wrapperClass }, [(M(), H(St(r.component), { "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, "horizontal-position": r.horizontalDirection, "vertical-position": r.verticalDirection, disabled: r.disabled, onDrag: function(l) {
1534
+ }), 128))]), (A(!0), Y(Me, null, Ne(o.handlerNodes, function(r) {
1535
+ return A(), Y("div", { key: r.name, style: r.wrapperStyle, class: r.wrapperClass }, [(A(), Y(St(r.component), { "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, "horizontal-position": r.horizontalDirection, "vertical-position": r.verticalDirection, disabled: r.disabled, onDrag: function(l) {
1536
1536
  return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
1537
1537
  }, onDragEnd: i[2] || (i[2] = function(l) {
1538
1538
  return o.onEnd();
@@ -1578,7 +1578,7 @@ var la = Pe("vue-draggable-area"), on = { name: "DraggableArea", props: { movabl
1578
1578
  this.touches.length && this.$emit("move-end"), this.touches = [];
1579
1579
  } }, emits: ["move", "move-end"] };
1580
1580
  on.render = function(e, i, t, n, a, o) {
1581
- return M(), H("div", { ref: "container", onTouchstart: i[1] || (i[1] = function() {
1581
+ return A(), Y("div", { ref: "container", onTouchstart: i[1] || (i[1] = function() {
1582
1582
  return o.onTouchStart && o.onTouchStart.apply(o, arguments);
1583
1583
  }), onMousedown: i[2] || (i[2] = function() {
1584
1584
  return o.onMouseDown && o.onMouseDown.apply(o, arguments);
@@ -1634,10 +1634,10 @@ function ca(e) {
1634
1634
  }
1635
1635
  s++;
1636
1636
  }
1637
- if (o && (n = o + 10, function(p, v, b) {
1638
- var y, w = "";
1639
- for (y = v, b += v; y < b; y++) w += String.fromCharCode(p.getUint8(y));
1640
- return w;
1637
+ if (o && (n = o + 10, function(p, f, b) {
1638
+ var y, _ = "";
1639
+ for (y = f, b += f; y < b; y++) _ += String.fromCharCode(p.getUint8(y));
1640
+ return _;
1641
1641
  }(t, o + 4, 4) === "Exif")) {
1642
1642
  var u = t.getUint16(n);
1643
1643
  if (((a = u === 18761) || u === 19789) && t.getUint16(n + 2, a) === 42) {
@@ -1722,7 +1722,7 @@ var rn = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
1722
1722
  var r, l;
1723
1723
  } }, emits: ["resize", "move", "transform-end"] };
1724
1724
  rn.render = function(e, i, t, n, a, o) {
1725
- return M(), H("div", { ref: "container", onTouchstart: i[1] || (i[1] = function() {
1725
+ return A(), Y("div", { ref: "container", onTouchstart: i[1] || (i[1] = function() {
1726
1726
  return o.onTouchStart && o.onTouchStart.apply(o, arguments);
1727
1727
  }), onMousedown: i[2] || (i[2] = function() {
1728
1728
  return o.onMouseDown && o.onMouseDown.apply(o, arguments);
@@ -1733,11 +1733,11 @@ rn.render = function(e, i, t, n, a, o) {
1733
1733
  var Wt = { components: { TransformableImage: rn }, props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 } }, emits: ["resize", "move"] };
1734
1734
  Wt.render = function(e, i, t, n, a, o) {
1735
1735
  var r = N("transformable-image");
1736
- return M(), H(r, { "touch-move": t.touchMove, "touch-resize": t.touchResize, "mouse-move": t.mouseMove, "wheel-resize": t.wheelResize, onMove: i[1] || (i[1] = function(l) {
1736
+ return A(), Y(r, { "touch-move": t.touchMove, "touch-resize": t.touchResize, "mouse-move": t.mouseMove, "wheel-resize": t.wheelResize, onMove: i[1] || (i[1] = function(l) {
1737
1737
  return e.$emit("move", l);
1738
1738
  }), onResize: i[2] || (i[2] = function(l) {
1739
1739
  return e.$emit("resize", l);
1740
- }) }, { default: P(function() {
1740
+ }) }, { default: V(function() {
1741
1741
  return [ve(e.$slots, "default")];
1742
1742
  }), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
1743
1743
  };
@@ -1785,12 +1785,12 @@ var yt = Pe("vue-preview"), sn = { props: { coordinates: { type: Object }, trans
1785
1785
  e && e.complete && this.refreshImage(), this.refresh();
1786
1786
  } } };
1787
1787
  sn.render = function(e, i, t, n, a, o) {
1788
- return M(), H("div", { ref: "root", class: o.classes.root, style: o.style }, [g("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [ct(g("img", { ref: "image", src: t.image && t.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[Ct, t.image && t.image.src]])], 6)], 6);
1788
+ return A(), Y("div", { ref: "root", class: o.classes.root, style: o.style }, [g("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [ct(g("img", { ref: "image", src: t.image && t.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[Ct, t.image && t.image.src]])], 6)], 6);
1789
1789
  };
1790
1790
  var ln = { components: { Preview: sn }, inheritAttrs: !1 };
1791
1791
  ln.render = function(e, i, t, n, a, o) {
1792
1792
  var r = N("preview");
1793
- return M(), H(r, Fi(e.$attrs, { fill: !0 }), null, 16);
1793
+ return A(), Y(r, Fi(e.$attrs, { fill: !0 }), null, 16);
1794
1794
  };
1795
1795
  var Pt = Pe("vue-rectangle-stencil"), un = { name: "RectangleStencil", components: { StencilPreview: ln, BoundingBox: nn, DraggableArea: on }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
1796
1796
  return Jt;
@@ -1824,8 +1824,8 @@ var Pt = Pe("vue-rectangle-stencil"), un = { name: "RectangleStencil", component
1824
1824
  } }, emits: ["resize", "resize-end", "move", "move-end"] };
1825
1825
  un.render = function(e, i, t, n, a, o) {
1826
1826
  var r = N("stencil-preview"), l = N("draggable-area"), s = N("bounding-box");
1827
- return M(), H("div", { class: o.classes.stencil, style: o.style }, [g(s, { width: t.stencilCoordinates.width, height: t.stencilCoordinates.height, transitions: t.transitions, class: o.classes.boundingBox, handlers: t.handlers, "handlers-component": t.handlersComponent, "handlers-classes": t.handlersClasses, "handlers-wrappers-classes": t.handlersWrappersClasses, lines: t.lines, "lines-component": t.linesComponent, "lines-classes": t.linesClasses, "lines-wrappers-classes": t.linesWrappersClasses, resizable: t.resizable, onResize: o.onResize, onResizeEnd: o.onResizeEnd }, { default: P(function() {
1828
- return [g(l, { movable: t.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: P(function() {
1827
+ return A(), Y("div", { class: o.classes.stencil, style: o.style }, [g(s, { width: t.stencilCoordinates.width, height: t.stencilCoordinates.height, transitions: t.transitions, class: o.classes.boundingBox, handlers: t.handlers, "handlers-component": t.handlersComponent, "handlers-classes": t.handlersClasses, "handlers-wrappers-classes": t.handlersWrappersClasses, lines: t.lines, "lines-component": t.linesComponent, "lines-classes": t.linesClasses, "lines-wrappers-classes": t.linesWrappersClasses, resizable: t.resizable, onResize: o.onResize, onResizeEnd: o.onResizeEnd }, { default: V(function() {
1828
+ return [g(l, { movable: t.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: V(function() {
1829
1829
  return [g(r, { image: t.image, coordinates: t.coordinates, width: t.stencilCoordinates.width, height: t.stencilCoordinates.height, class: o.classes.preview, transitions: t.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
1830
1830
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
1831
1831
  }), _: 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);
@@ -1842,29 +1842,29 @@ var da = ["transitions"], Ke = Pe("vue-advanced-cropper"), cn = { name: "Cropper
1842
1842
  return !(typeof e == "string" && e !== "fill" && e !== "fit");
1843
1843
  } }, 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) {
1844
1844
  var i = e.event, t = e.coordinates, n = e.aspectRatio, a = e.positionRestrictions, o = e.sizeRestrictions, r = ee(ee({}, t), { right: t.left + t.width, bottom: t.top + t.height }), l = i.params || {}, s = ee({}, i.directions), u = l.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
1845
- o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), Ue.forEach(function(Y) {
1846
- u[Y] || (s[Y] = 0);
1845
+ o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), Ue.forEach(function(H) {
1846
+ u[H] || (s[H] = 0);
1847
1847
  });
1848
1848
  var d = Ve(r, s = Ri({ coordinates: r, directions: s, sizeRestrictions: o, positionRestrictions: a })).width, c = Ve(r, s).height, m = l.preserveRatio ? le(r) : Et(d / c, n);
1849
1849
  if (m) {
1850
1850
  var p = l.respectDirection;
1851
1851
  if (p || (p = r.width >= r.height || m === 1 ? "width" : "height"), p === "width") {
1852
- var v = d / m - r.height;
1852
+ var f = d / m - r.height;
1853
1853
  if (u.top && u.bottom) {
1854
1854
  var b = s.top, y = s.bottom;
1855
- s.bottom = bt(v, y, b), s.top = bt(v, b, y);
1856
- } else u.bottom ? s.bottom = v : u.top ? s.top = v : u.right ? s.right = 0 : u.left && (s.left = 0);
1855
+ s.bottom = bt(f, y, b), s.top = bt(f, b, y);
1856
+ } else u.bottom ? s.bottom = f : u.top ? s.top = f : u.right ? s.right = 0 : u.left && (s.left = 0);
1857
1857
  } else if (p === "height") {
1858
- var w = r.width - c * m;
1858
+ var _ = r.width - c * m;
1859
1859
  if (u.left && u.right) {
1860
- var f = s.left, x = s.right;
1861
- s.left = -bt(w, f, x), s.right = -bt(w, x, f);
1862
- } else u.left ? s.left = -w : u.right ? s.right = -w : u.top ? s.top = 0 : u.bottom && (s.bottom = 0);
1860
+ var v = s.left, x = s.right;
1861
+ s.left = -bt(_, v, x), s.right = -bt(_, x, v);
1862
+ } else u.left ? s.left = -_ : u.right ? s.right = -_ : u.top ? s.top = 0 : u.bottom && (s.bottom = 0);
1863
1863
  }
1864
1864
  s = Ri({ directions: s, coordinates: r, sizeRestrictions: o, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
1865
1865
  }
1866
- return d = Ve(r, s).width, c = Ve(r, s).height, (m = l.preserveRatio ? le(r) : Et(d / c, n)) && Math.abs(m - d / c) > 1e-3 && Ue.forEach(function(Y) {
1867
- u[Y] || (s[Y] = 0);
1866
+ return d = Ve(r, s).width, c = Ve(r, s).height, (m = l.preserveRatio ? le(r) : Et(d / c, n)) && Math.abs(m - d / c) > 1e-3 && Ue.forEach(function(H) {
1867
+ u[H] || (s[H] = 0);
1868
1868
  }), jt({ event: new Zt({ 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 });
1869
1869
  } }, moveAlgorithm: { type: Function, default: jt }, initStretcher: { type: Function, default: function(e) {
1870
1870
  var i = e.stretcher, t = e.imageSize, n = le(t);
@@ -2036,10 +2036,10 @@ var da = ["transitions"], Ke = Pe("vue-advanced-cropper"), cn = { name: "Cropper
2036
2036
  }, getCanvas: function() {
2037
2037
  if (this.$refs.canvas) {
2038
2038
  var e = this.$refs.canvas, i = this.$refs.image, t = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(l, s, u) {
2039
- var d = u.rotate, c = u.flip, m = { width: s.naturalWidth, height: s.naturalHeight }, p = en(m, d), v = l.getContext("2d");
2040
- l.height = p.height, l.width = p.width, v.save();
2039
+ var d = u.rotate, c = u.flip, m = { width: s.naturalWidth, height: s.naturalHeight }, p = en(m, d), f = l.getContext("2d");
2040
+ l.height = p.height, l.width = p.width, f.save();
2041
2041
  var b = Xe(we(ee({ left: 0, top: 0 }, m)), d);
2042
- return v.translate(-(b.left - p.width / 2), -(b.top - p.height / 2)), v.rotate(d * Math.PI / 180), v.translate(c.horizontal ? m.width : 0, c.vertical ? m.height : 0), v.scale(c.horizontal ? -1 : 1, c.vertical ? -1 : 1), v.drawImage(s, 0, 0, m.width, m.height), v.restore(), l;
2042
+ return f.translate(-(b.left - p.width / 2), -(b.top - p.height / 2)), f.rotate(d * Math.PI / 180), f.translate(c.horizontal ? m.width : 0, c.vertical ? m.height : 0), f.scale(c.horizontal ? -1 : 1, c.vertical ? -1 : 1), f.drawImage(s, 0, 0, m.width, m.height), f.restore(), l;
2043
2043
  }(this.$refs.sourceCanvas, i, this.imageTransforms) : i, n = se({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: !0, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), a = function(l) {
2044
2044
  return l.find(function(s) {
2045
2045
  return u = s, !Number.isNaN(parseFloat(u)) && isFinite(u);
@@ -2054,8 +2054,8 @@ var da = ["transitions"], Ke = Pe("vue-advanced-cropper"), cn = { name: "Cropper
2054
2054
  l.width = d ? d.width : u.width, l.height = d ? d.height : u.height;
2055
2055
  var m = l.getContext("2d");
2056
2056
  m.clearRect(0, 0, l.width, l.height), c && (c.imageSmoothingEnabled && (m.imageSmoothingEnabled = c.imageSmoothingEnabled), c.imageSmoothingQuality && (m.imageSmoothingQuality = c.imageSmoothingQuality), c.fillColor && (m.fillStyle = c.fillColor, m.fillRect(0, 0, l.width, l.height), m.save()));
2057
- var p = u.left < 0 ? -u.left : 0, v = u.top < 0 ? -u.top : 0;
2058
- m.drawImage(s, u.left + p, u.top + v, u.width, u.height, p * (l.width / u.width), v * (l.height / u.height), l.width, l.height);
2057
+ var p = u.left < 0 ? -u.left : 0, f = u.top < 0 ? -u.top : 0;
2058
+ m.drawImage(s, u.left + p, u.top + f, u.width, u.height, p * (l.width / u.width), f * (l.height / u.height), l.width, l.height);
2059
2059
  }(e, t, this.coordinates, o, n), e;
2060
2060
  }
2061
2061
  }, update: function() {
@@ -2257,9 +2257,9 @@ var da = ["transitions"], Ke = Pe("vue-advanced-cropper"), cn = { name: "Cropper
2257
2257
  }
2258
2258
  } }, emits: ["change", "error", "ready"] }, ma = { key: 0, ref: "canvas", style: { display: "none" } }, pa = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
2259
2259
  cn.render = function(e, i, t, n, a, o) {
2260
- return M(), H("div", { ref: "cropper", class: o.classes.cropper }, [g("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), g("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(M(), H(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: P(function() {
2260
+ return A(), Y("div", { ref: "cropper", class: o.classes.cropper }, [g("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), g("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(A(), 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: V(function() {
2261
2261
  return [g("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), g("div", { class: o.classes.imageWrapper }, [g("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: i[1] || (i[1] = kt(function() {
2262
- }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), g("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), ct((M(), H(St(t.stencilComponent), Fi({ 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"])), [[Ct, a.imageLoaded]]), t.canvas ? (M(), H("canvas", ma, null, 512)) : ne("", !0), t.canvas ? (M(), H("canvas", pa, null, 512)) : ne("", !0)];
2262
+ }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), g("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), ct((A(), Y(St(t.stencilComponent), Fi({ 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"])), [[Ct, a.imageLoaded]]), t.canvas ? (A(), Y("canvas", ma, null, 512)) : ie("", !0), t.canvas ? (A(), Y("canvas", pa, null, 512)) : ie("", !0)];
2263
2263
  }), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
2264
2264
  };
2265
2265
  function ti(e, i) {
@@ -2310,31 +2310,31 @@ const va = {
2310
2310
  async function u([y]) {
2311
2311
  if (!y) return;
2312
2312
  s.value = !0;
2313
- const w = new FileReader();
2314
- w.onload = () => {
2315
- const f = new Image();
2316
- f.src = w.result, l.value = w.result, f.onload = () => {
2317
- const x = fa(f, 1.7777777777777777);
2313
+ const _ = new FileReader();
2314
+ _.onload = () => {
2315
+ const v = new Image();
2316
+ v.src = _.result, l.value = _.result, v.onload = () => {
2317
+ const x = fa(v, 1.7777777777777777);
2318
2318
  r.value = x, s.value = !1;
2319
- }, f.onerror = () => {
2319
+ }, v.onerror = () => {
2320
2320
  s.value = !1;
2321
2321
  };
2322
- }, w.readAsDataURL(y);
2322
+ }, _.readAsDataURL(y);
2323
2323
  }
2324
2324
  const d = (y) => {
2325
2325
  u([y]);
2326
2326
  };
2327
2327
  async function c(y) {
2328
2328
  !r.value && o.value && (r.value = o.value);
2329
- const { canvas: w } = y, f = w.toDataURL("image/jpeg", 0.75);
2330
- l.value = f;
2331
- const x = await (await fetch(f)).blob(), Y = new File([x], "img.jpeg", { type: "image/jpeg" });
2332
- a("update:model-value", Y);
2329
+ const { canvas: _ } = y, v = _.toDataURL("image/jpeg", 0.75);
2330
+ l.value = v;
2331
+ const x = await (await fetch(v)).blob(), H = new File([x], "img.jpeg", { type: "image/jpeg" });
2332
+ a("update:model-value", H);
2333
2333
  }
2334
2334
  function m() {
2335
2335
  r.value = void 0, l.value = void 0, a("reset:model-value");
2336
2336
  }
2337
- const p = Ht(), v = O(() => !!p.showRemy);
2337
+ const p = Ht(), f = O(() => !!p.showRemy);
2338
2338
  ti("apply-image", (y) => {
2339
2339
  y != null && y.imageData && (r.value = y.imageData, l.value = y.imageData);
2340
2340
  });
@@ -2343,23 +2343,23 @@ const va = {
2343
2343
  const y = new FileReader();
2344
2344
  y.onload = () => {
2345
2345
  l.value = y.result;
2346
- }, y.readAsDataURL(t.modelValue), await new Promise((w) => setTimeout(w, 100));
2346
+ }, y.readAsDataURL(t.modelValue), await new Promise((_) => setTimeout(_, 100));
2347
2347
  }
2348
2348
  p.activate({
2349
2349
  imageData: l.value,
2350
2350
  command: "modifyImage"
2351
2351
  });
2352
2352
  }
2353
- return (y, w) => {
2354
- const f = N("fm-icon"), x = N("fm-drop-field");
2355
- return r.value || o.value ? (M(), ie("div", va, [
2356
- V("p", ga, [
2353
+ return (y, _) => {
2354
+ const v = N("fm-icon"), x = N("fm-drop-field");
2355
+ return r.value || o.value ? (A(), ne("div", va, [
2356
+ P("p", ga, [
2357
2357
  Vt(de(h(n)("menu.common.labels.product_image")) + " ", 1),
2358
- V("span", ba, de(h(n)("menu.common.labels.optional")), 1)
2358
+ P("span", ba, de(h(n)("menu.common.labels.optional")), 1)
2359
2359
  ]),
2360
- V("div", ya, [
2361
- V("div", _a, [
2362
- V("div", wa, [
2360
+ P("div", ya, [
2361
+ P("div", _a, [
2362
+ P("div", wa, [
2363
2363
  g(h(cn), {
2364
2364
  class: "cropper h-[150px] w-[200px]",
2365
2365
  src: r.value || o.value,
@@ -2376,15 +2376,15 @@ const va = {
2376
2376
  onChange: c
2377
2377
  }, null, 8, ["src"])
2378
2378
  ]),
2379
- V("div", Sa, [
2380
- V("button", {
2379
+ P("div", Sa, [
2380
+ P("button", {
2381
2381
  class: Fe(["w-24 h-24 rounded-[50%]", "bg-fm-color-neutral-white"]),
2382
2382
  type: "button",
2383
2383
  onClick: m
2384
2384
  }, [
2385
- g(f, { name: "close" })
2385
+ g(v, { name: "close" })
2386
2386
  ]),
2387
- v.value ? (M(), ie("button", {
2387
+ f.value ? (A(), ne("button", {
2388
2388
  key: 0,
2389
2389
  class: Fe([
2390
2390
  "w-24 h-24 rounded-[50%]",
@@ -2394,28 +2394,28 @@ const va = {
2394
2394
  type: "button",
2395
2395
  onClick: b
2396
2396
  }, [
2397
- g(f, {
2397
+ g(v, {
2398
2398
  name: "auto_awesome",
2399
2399
  size: "sm"
2400
2400
  })
2401
- ])) : ne("", !0)
2401
+ ])) : ie("", !0)
2402
2402
  ])
2403
2403
  ])
2404
2404
  ])
2405
- ])) : (M(), H(x, {
2405
+ ])) : (A(), Y(x, {
2406
2406
  key: 1,
2407
2407
  accept: ".jpg, .jpeg, .png, .gif, .JPG, .JPEG, .PNG, .GIF",
2408
2408
  "content-class": "h-[150px] w-[200px]",
2409
2409
  onFileUpload: d
2410
2410
  }, {
2411
- label: P(() => [
2412
- V("p", Ca, [
2411
+ label: V(() => [
2412
+ P("p", Ca, [
2413
2413
  Vt(de(h(n)("menu.common.labels.product_image")) + " ", 1),
2414
- V("span", ka, de(h(n)("menu.common.labels.optional")), 1)
2414
+ P("span", ka, de(h(n)("menu.common.labels.optional")), 1)
2415
2415
  ])
2416
2416
  ]),
2417
- "accept-text": P(() => [
2418
- V("p", xa, de(h(n)("menu.common.file.accepts")), 1)
2417
+ "accept-text": V(() => [
2418
+ P("p", xa, de(h(n)("menu.common.file.accepts")), 1)
2419
2419
  ]),
2420
2420
  _: 1
2421
2421
  }));
@@ -2499,7 +2499,7 @@ const va = {
2499
2499
  });
2500
2500
  return (u, d) => {
2501
2501
  const c = N("fm-select");
2502
- return M(), ie("div", null, [
2502
+ return A(), ne("div", null, [
2503
2503
  g(c, {
2504
2504
  disabled: e.disable,
2505
2505
  items: r.value,
@@ -2534,74 +2534,74 @@ const va = {
2534
2534
  dialog: a,
2535
2535
  menuLoader: l,
2536
2536
  isLocalOnly: t.isLocalOnly
2537
- }), m = (f, x) => {
2538
- f ? d.value = [...d.value, x] : d.value = d.value.filter((Y) => Y.value !== x.value), n(
2537
+ }), m = (v, x) => {
2538
+ v ? d.value = [...d.value, x] : d.value = d.value.filter((H) => H.value !== x.value), n(
2539
2539
  "update:modelValue",
2540
- d.value.map((Y) => Y.value)
2540
+ d.value.map((H) => H.value)
2541
2541
  );
2542
- }, p = (f) => {
2543
- d.value = d.value.filter((x, Y) => Y !== f), n(
2542
+ }, p = (v) => {
2543
+ d.value = d.value.filter((x, H) => H !== v), n(
2544
2544
  "update:modelValue",
2545
2545
  d.value.map((x) => x.value)
2546
2546
  );
2547
- }, v = () => {
2548
- var f;
2549
- (f = u.value) == null || f.toggleMenu(!1), c.create();
2547
+ }, f = () => {
2548
+ var v;
2549
+ (v = u.value) == null || v.toggleMenu(!1), c.create();
2550
2550
  }, b = O(() => t.items.reduce(
2551
- (f, x) => (f[x.value] = x, f),
2551
+ (v, x) => (v[x.value] = x, v),
2552
2552
  {}
2553
- )), y = O(() => d.value.length > 0 ? d.value.map((f) => f.label).join("/") : t.placeholder), w = te(!1);
2553
+ )), y = O(() => d.value.length > 0 ? d.value.map((v) => v.label).join("/") : t.placeholder), _ = te(!1);
2554
2554
  return Re(
2555
2555
  () => t.modelValue,
2556
- (f) => {
2557
- f != null && f.length ? d.value = f.map((x) => b.value[x]).filter((x) => !!x) : d.value = [];
2556
+ (v) => {
2557
+ v != null && v.length ? d.value = v.map((x) => b.value[x]).filter((x) => !!x) : d.value = [];
2558
2558
  },
2559
2559
  { immediate: !0 }
2560
- ), (f, x) => {
2561
- const Y = N("FmIcon"), U = N("FmField"), K = N("FmMenuItem"), A = N("FmMenu"), D = N("FmFormGroup"), I = N("FmChipGroup");
2562
- return M(), ie("div", Aa, [
2560
+ ), (v, x) => {
2561
+ const H = N("FmIcon"), U = N("FmField"), K = N("FmMenuItem"), M = N("FmMenu"), D = N("FmFormGroup"), I = N("FmChipGroup");
2562
+ return A(), ne("div", Aa, [
2563
2563
  g(D, {
2564
- "model-value": f.modelValue,
2565
- disabled: f.disabled,
2566
- focused: w.value,
2567
- "helper-state": f.helperState,
2568
- "helper-text": f.helperText,
2569
- rules: f.rules
2564
+ "model-value": v.modelValue,
2565
+ disabled: v.disabled,
2566
+ focused: _.value,
2567
+ "helper-state": v.helperState,
2568
+ "helper-text": v.helperText,
2569
+ rules: v.rules
2570
2570
  }, {
2571
- default: P(({ invalid: _ }) => [
2572
- g(A, {
2573
- disabled: f.disabled,
2571
+ default: V(({ invalid: w }) => [
2572
+ g(M, {
2573
+ disabled: v.disabled,
2574
2574
  ref_key: "fmMenuRef",
2575
2575
  ref: u,
2576
2576
  "close-on-click": !1,
2577
- onMenuChanged: x[1] || (x[1] = (R) => w.value = R)
2577
+ onMenuChanged: x[1] || (x[1] = (R) => _.value = R)
2578
2578
  }, {
2579
- "menu-button": P(() => [
2579
+ "menu-button": V(() => [
2580
2580
  g(U, {
2581
- class: Fe(f.disabled ? "cursor-not-allowed" : "cursor-pointer"),
2582
- focused: w.value,
2583
- invalid: _
2581
+ class: Fe(v.disabled ? "cursor-not-allowed" : "cursor-pointer"),
2582
+ focused: _.value,
2583
+ invalid: w
2584
2584
  }, {
2585
- append: P(() => [
2586
- g(Y, {
2587
- color: f.disabled ? "#C7C7CC" : "black",
2588
- name: w.value ? "expand_less" : "expand_more",
2585
+ append: V(() => [
2586
+ g(H, {
2587
+ color: v.disabled ? "#C7C7CC" : "black",
2588
+ name: _.value ? "expand_less" : "expand_more",
2589
2589
  size: "md"
2590
2590
  }, null, 8, ["color", "name"])
2591
2591
  ]),
2592
- default: P(() => [
2593
- V("div", {
2592
+ default: V(() => [
2593
+ P("div", {
2594
2594
  class: Fe([[
2595
- f.disabled ? "text-fm-color-typo-disabled" : d.value.length > 0 ? "text-fm-color-typo-primary" : "text-fm-color-typo-tertiary"
2595
+ v.disabled ? "text-fm-color-typo-disabled" : d.value.length > 0 ? "text-fm-color-typo-primary" : "text-fm-color-typo-tertiary"
2596
2596
  ], "break-all fm-typo-en-body-lg-400 line-clamp-1"])
2597
2597
  }, de(y.value), 3)
2598
2598
  ]),
2599
2599
  _: 2
2600
2600
  }, 1032, ["class", "focused", "invalid"])
2601
2601
  ]),
2602
- default: P(() => [
2603
- V("div", Ma, [
2604
- (M(!0), ie(Me, null, Ne(f.items, (R) => (M(), H(K, {
2602
+ default: V(() => [
2603
+ P("div", Ma, [
2604
+ (A(!0), ne(Me, null, Ne(v.items, (R) => (A(), Y(K, {
2605
2605
  key: R.value,
2606
2606
  disabled: R.disabled,
2607
2607
  "has-checkbox": !0,
@@ -2609,17 +2609,17 @@ const va = {
2609
2609
  "model-value": d.value.some((S) => S.value === R.value),
2610
2610
  "onUpdate:modelValue": (S) => m(S, R)
2611
2611
  }, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue"]))), 128)),
2612
- V("button", {
2612
+ P("button", {
2613
2613
  class: "flex items-center py-8 px-16 space-x-8",
2614
2614
  type: "button",
2615
- onClick: x[0] || (x[0] = (R) => v())
2615
+ onClick: x[0] || (x[0] = (R) => f())
2616
2616
  }, [
2617
- g(Y, {
2617
+ g(H, {
2618
2618
  color: "primary",
2619
2619
  name: "add",
2620
2620
  size: "md"
2621
2621
  }),
2622
- V("p", Oa, de(h(s)("menu.product.form.detail.subcategory.add_new")), 1)
2622
+ P("p", Oa, de(h(s)("menu.product.form.detail.subcategory.add_new")), 1)
2623
2623
  ])
2624
2624
  ])
2625
2625
  ]),
@@ -2628,14 +2628,14 @@ const va = {
2628
2628
  ]),
2629
2629
  _: 1
2630
2630
  }, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
2631
- d.value.length > 0 ? (M(), ie("div", Fa, [
2631
+ d.value.length > 0 ? (A(), ne("div", Fa, [
2632
2632
  g(I, {
2633
- disabled: f.disabled,
2634
- items: d.value.map((_) => ({ label: _.label })),
2633
+ disabled: v.disabled,
2634
+ items: d.value.map((w) => ({ label: w.label })),
2635
2635
  removable: "",
2636
2636
  onChipClosed: p
2637
2637
  }, null, 8, ["disabled", "items"])
2638
- ])) : ne("", !0)
2638
+ ])) : ie("", !0)
2639
2639
  ]);
2640
2640
  };
2641
2641
  }
@@ -2699,19 +2699,19 @@ const Wa = /* @__PURE__ */ me({
2699
2699
  menuLoader: s
2700
2700
  }), {
2701
2701
  checkMenuIsLoading: d
2702
- } = Ze(qe(De())), c = i, m = O(() => n.rules.item), p = O(() => n.categorizedItems), v = O(() => {
2702
+ } = Ze(qe(De())), c = i, m = O(() => n.rules.item), p = O(() => n.categorizedItems), f = O(() => {
2703
2703
  const T = p.value.map((L) => ({
2704
2704
  label: L.name,
2705
2705
  value: L.id
2706
2706
  }));
2707
2707
  return t.isAddon ? T : T.filter((L) => !!L.value);
2708
- }), b = O(() => m.value.addon), y = O(() => !v.value.find((T) => !!T.value)), w = O(() => On(t.form.category ? t.form : t.fallback) || []), f = O(() => w.value.reduce((T, L) => (T[L._id] = L, T), {})), x = O({
2708
+ }), b = O(() => m.value.addon), y = O(() => !f.value.find((T) => !!T.value)), _ = O(() => On(t.form.category ? t.form : t.fallback) || []), v = O(() => _.value.reduce((T, L) => (T[L._id] = L, T), {})), x = O({
2709
2709
  get() {
2710
- return w.value.map((T) => T._id);
2710
+ return _.value.map((T) => T._id);
2711
2711
  },
2712
2712
  set(T = []) {
2713
2713
  const [L, ...ae] = T.map((z) => {
2714
- const E = f.value[z];
2714
+ const E = v.value[z];
2715
2715
  return E || {
2716
2716
  _id: z,
2717
2717
  position: null
@@ -2723,12 +2723,12 @@ const Wa = /* @__PURE__ */ me({
2723
2723
  }
2724
2724
  c("update:form", "category", L._id), c("update:form", "additionalCategories", ae);
2725
2725
  }
2726
- }), Y = te(), U = ({
2726
+ }), H = te(), U = ({
2727
2727
  multiple: T = !0
2728
2728
  } = {}) => t.isAddon ? null : g(To, {
2729
- ref: Y,
2729
+ ref: H,
2730
2730
  disabled: !m.value.category || t.isAddon || d(),
2731
- items: v.value,
2731
+ items: f.value,
2732
2732
  modelValue: x.value,
2733
2733
  "onUpdate:model-value": (L) => x.value = L,
2734
2734
  placeholder: F("menu.product.form.detail.category.placeholder"),
@@ -2739,7 +2739,7 @@ const Wa = /* @__PURE__ */ me({
2739
2739
  type: "button",
2740
2740
  onClick: () => {
2741
2741
  var L;
2742
- (L = Y.value) == null || L.hideMenu(), u.create();
2742
+ (L = H.value) == null || L.hideMenu(), u.create();
2743
2743
  }
2744
2744
  }, [g(Ae.FmIcon, {
2745
2745
  color: "primary",
@@ -2756,7 +2756,7 @@ const Wa = /* @__PURE__ */ me({
2756
2756
  var L;
2757
2757
  const T = t.form.name || ((L = t.fallback) == null ? void 0 : L.name);
2758
2758
  return T ? n.items.filter((ae) => !!ae.category && ae._id !== t.form._id && ae.name === T).length : 0;
2759
- }), A = O(() => {
2759
+ }), M = O(() => {
2760
2760
  var z, E, j;
2761
2761
  if (!n.state.featureFlags.uniqueProductCode) return 0;
2762
2762
  const T = t.form.code || ((z = t.fallback) == null ? void 0 : z.code);
@@ -2771,9 +2771,9 @@ const Wa = /* @__PURE__ */ me({
2771
2771
  var ae, z, E;
2772
2772
  if (D.value === T) return;
2773
2773
  const L = T == et.ADD_ON;
2774
- c("update:form", "category", t.isOverride ? L ? "" : ((ae = t.fallback) == null ? void 0 : ae.category) ?? ((z = v.value.find((j) => !!j.value)) == null ? void 0 : z.value) : L ? null : (E = v.value.find((j) => !!j.value)) == null ? void 0 : E.value), L && c("update:form", "additionalCategories", []);
2774
+ c("update:form", "category", t.isOverride ? L ? "" : ((ae = t.fallback) == null ? void 0 : ae.category) ?? ((z = f.value.find((j) => !!j.value)) == null ? void 0 : z.value) : L ? null : (E = f.value.find((j) => !!j.value)) == null ? void 0 : E.value), L && c("update:form", "additionalCategories", []);
2775
2775
  }
2776
- const _ = Ht();
2776
+ const w = Ht();
2777
2777
  ti("apply-description", (T) => {
2778
2778
  c("update:form", "description", T || "");
2779
2779
  });
@@ -2788,7 +2788,7 @@ const Wa = /* @__PURE__ */ me({
2788
2788
  }
2789
2789
  a.pushDataLayer({
2790
2790
  event: "menu_catalog_item_general_remy_suggest_description"
2791
- }), _.activate({
2791
+ }), w.activate({
2792
2792
  prompt: `Suggest a menu description for ${t.form.name}`,
2793
2793
  command: "suggestDescription"
2794
2794
  });
@@ -2812,20 +2812,20 @@ const Wa = /* @__PURE__ */ me({
2812
2812
  } = he();
2813
2813
  return (T, L) => {
2814
2814
  const ae = N("fm-text-field"), z = N("fm-textarea"), E = N("fm-radio"), j = N("FmSnackbar"), Z = N("FmButton"), Q = N("fm-radio-group"), q = N("FmFormGroup"), oe = N("FmStepperField"), ce = zi("tooltip");
2815
- return M(), H(Ge, {
2815
+ return A(), Y(Ge, {
2816
2816
  title: h(F)("menu.product.form.detail.title")
2817
2817
  }, {
2818
- default: P(() => {
2818
+ default: V(() => {
2819
2819
  var ge, ze;
2820
- return [V("div", Ea, [V("div", Ta, [V("div", Da, [V("div", Pa, [g(ae, {
2820
+ return [P("div", Ea, [P("div", Ta, [P("div", Da, [P("div", Pa, [g(ae, {
2821
2821
  "model-value": T.form.code,
2822
2822
  placeholder: ((ge = T.fallback) == null ? void 0 : ge.code) || h(F)("menu.product.form.detail.fields.code.placeholder"),
2823
2823
  label: h(F)("menu.product.form.detail.fields.code.label"),
2824
- rules: [(re) => A.value === 0 || h(F)("menu.product.form.detail.fields.code.duplicate_warning", {
2825
- count: A.value
2824
+ rules: [(re) => M.value === 0 || h(F)("menu.product.form.detail.fields.code.duplicate_warning", {
2825
+ count: M.value
2826
2826
  })],
2827
2827
  "onUpdate:modelValue": L[0] || (L[0] = (re) => c("update:form", "code", h(dn)(re, T.isOverride)))
2828
- }, null, 8, ["model-value", "placeholder", "label", "rules"])]), V("div", Va, [g(ae, {
2828
+ }, null, 8, ["model-value", "placeholder", "label", "rules"])]), P("div", Va, [g(ae, {
2829
2829
  id: "product-name",
2830
2830
  disabled: !m.value.name,
2831
2831
  "helper-text": K.value > 0 ? h(F)("menu.product.form.detail.fields.name.duplicate_warning", {
@@ -2838,14 +2838,14 @@ const Wa = /* @__PURE__ */ me({
2838
2838
  autofocus: "",
2839
2839
  label: h(F)("menu.product.form.detail.fields.name.label"),
2840
2840
  "onUpdate:modelValue": L[1] || (L[1] = (re) => c("update:form", "name", re))
2841
- }, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), V("div", Ua, [g(z, {
2841
+ }, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), P("div", Ua, [g(z, {
2842
2842
  disabled: !m.value.description,
2843
2843
  "model-value": T.form.description || void 0,
2844
2844
  placeholder: h(F)("menu.product.form.detail.fields.description.placeholder"),
2845
2845
  "onUpdate:modelValue": L[2] || (L[2] = (re) => c("update:form", "description", re.trim())),
2846
2846
  class: "description"
2847
2847
  }, {
2848
- label: P(() => [V("p", $a, [Vt(de(h(F)("menu.product.form.detail.fields.description.label")) + " ", 1), V("span", Na, de(h(F)("menu.product.form.detail.fields.description.optional")), 1)])]),
2848
+ label: V(() => [P("p", $a, [Vt(de(h(F)("menu.product.form.detail.fields.description.label")) + " ", 1), P("span", Na, de(h(F)("menu.product.form.detail.fields.description.optional")), 1)])]),
2849
2849
  _: 1
2850
2850
  }, 8, ["disabled", "model-value", "placeholder"]), ct(g(h(Ni), {
2851
2851
  class: "absolute top-32 right-4 cursor-pointer",
@@ -2859,23 +2859,23 @@ const Wa = /* @__PURE__ */ me({
2859
2859
  }, null, 8, ["disabled", "model-value"])]), g(He, {
2860
2860
  label: h(n).isV4 ? h(F)("menu.product.form.detail.category.label") : h(F)("menu.product.form.detail.category.label_singular")
2861
2861
  }, {
2862
- default: P(() => [b.value ? (M(), H(Q, {
2862
+ default: V(() => [b.value ? (A(), Y(Q, {
2863
2863
  key: 0,
2864
2864
  disabled: !m.value.category,
2865
2865
  "model-value": D.value,
2866
2866
  "onUpdate:modelValue": L[6] || (L[6] = (re) => I(re))
2867
2867
  }, {
2868
- default: P(() => [V("div", Ba, [V("div", La, [g(E, {
2868
+ default: V(() => [P("div", Ba, [P("div", La, [g(E, {
2869
2869
  disabled: y.value || !m.value.category,
2870
2870
  value: et.PRODUCT,
2871
2871
  label: h(F)("menu.product.form.detail.category.options.product.label"),
2872
2872
  sublabel: h(F)("menu.product.form.detail.category.options.product.sublabel")
2873
2873
  }, null, 8, ["disabled", "value", "label", "sublabel"]), g(Oo, null, {
2874
- default: P(() => [h(n).isV4 ? (M(), H(U, {
2874
+ default: V(() => [h(n).isV4 ? (A(), Y(U, {
2875
2875
  key: 0
2876
- })) : ne("", !0)]),
2876
+ })) : ie("", !0)]),
2877
2877
  _: 1
2878
- })]), y.value ? (M(), ie("div", Ga, [g(j, {
2878
+ })]), y.value ? (A(), ne("div", Ga, [g(j, {
2879
2879
  title: h(F)("menu.product.form.detail.category.add_first"),
2880
2880
  variant: "info"
2881
2881
  }, null, 8, ["title"]), g(Z, {
@@ -2883,29 +2883,29 @@ const Wa = /* @__PURE__ */ me({
2883
2883
  "prepend-icon": "add",
2884
2884
  variant: "secondary",
2885
2885
  onClick: h(u).create
2886
- }, null, 8, ["label", "onClick"])])) : ne("", !0), g(E, {
2886
+ }, null, 8, ["label", "onClick"])])) : ie("", !0), g(E, {
2887
2887
  value: et.ADD_ON,
2888
2888
  label: h(F)("menu.product.form.detail.category.options.addon.label"),
2889
2889
  sublabel: h(F)("menu.product.form.detail.category.options.addon.sublabel")
2890
2890
  }, null, 8, ["value", "label", "sublabel"])])]),
2891
2891
  _: 1
2892
- }, 8, ["disabled", "model-value"])) : ne("", !0), h(n).isV4 ? ne("", !0) : (M(), H(q, {
2892
+ }, 8, ["disabled", "model-value"])) : ie("", !0), h(n).isV4 ? ie("", !0) : (A(), Y(q, {
2893
2893
  key: 1,
2894
2894
  "model-value": T.form.category,
2895
2895
  rules: [(re) => !re && !T.isOverride ? "Category is required" : !0],
2896
2896
  "onUpdate:modelValue": L[7] || (L[7] = (re) => c("update:form", "category", re))
2897
2897
  }, {
2898
- default: P(() => [g(U, {
2898
+ default: V(() => [g(U, {
2899
2899
  multiple: !1
2900
2900
  })]),
2901
2901
  _: 1
2902
2902
  }, 8, ["model-value", "rules"]))]),
2903
2903
  _: 1
2904
- }, 8, ["label"]), h(n).isV4 && !T.isAddon ? (M(), H(He, {
2904
+ }, 8, ["label"]), h(n).isV4 && !T.isAddon ? (A(), Y(He, {
2905
2905
  key: 0,
2906
2906
  label: h(F)("menu.product.form.detail.path.label")
2907
2907
  }, {
2908
- default: P(() => [V("div", Ka, [g(Ia, {
2908
+ default: V(() => [P("div", Ka, [g(Ia, {
2909
2909
  modelValue: $.value,
2910
2910
  "onUpdate:modelValue": L[8] || (L[8] = (re) => $.value = re),
2911
2911
  items: k.value,
@@ -2914,7 +2914,7 @@ const Wa = /* @__PURE__ */ me({
2914
2914
  "is-local-only": !1
2915
2915
  }, null, 8, ["modelValue", "items", "placeholder", "disabled"])])]),
2916
2916
  _: 1
2917
- }, 8, ["label"])) : ne("", !0), V("div", ja, [g(oe, {
2917
+ }, 8, ["label"])) : ie("", !0), P("div", ja, [g(oe, {
2918
2918
  label: "Shelf Life (mins)",
2919
2919
  "model-value": T.form.shelfLife ?? null,
2920
2920
  rules: [(re) => re == null || re > 0 || h(F)("menu.common.validation.min_value", {
@@ -2945,8 +2945,8 @@ const Wa = /* @__PURE__ */ me({
2945
2945
  }
2946
2946
  }), Ya = /* @__PURE__ */ nt(Wa, [["__scopeId", "data-v-0e4f5a8a"]]), Ha = {}, Xa = { class: "overflow-x-auto" }, qa = { class: "xs:w-[600px]" };
2947
2947
  function Za(e, i) {
2948
- return M(), ie("div", Xa, [
2949
- V("div", qa, [
2948
+ return A(), ne("div", Xa, [
2949
+ P("div", qa, [
2950
2950
  ve(e.$slots, "default")
2951
2951
  ])
2952
2952
  ]);
@@ -2956,19 +2956,19 @@ const mn = /* @__PURE__ */ nt(Ha, [["render", Za]]), Qa = /* @__PURE__ */ me({
2956
2956
  setup(e) {
2957
2957
  const i = ye(), t = O(() => i.rules.group), n = O(() => !!i.state.currentCatalogId || !!i.state.currentSchedulerId), a = O(() => {
2958
2958
  const s = !i.state.currentSchedulerId, u = i.rules.group.type, d = i.version === W.F_MENU_VERSION.enum.v3, c = i.rules.item.orderFromActiveOnly, m = i.rules.item.bindToVariant;
2959
- return function(v) {
2959
+ return function(f) {
2960
2960
  return {
2961
2961
  link: (b) => !n.value && (!b || m),
2962
2962
  name: (b) => !n.value && !b,
2963
2963
  isDefault: (b) => !n.value,
2964
- type: u && !v._id && !n.value,
2965
- price: v.type !== W.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
2964
+ type: u && !f._id && !n.value,
2965
+ price: f.type !== W.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
2966
2966
  priceEdit: !0,
2967
2967
  priceTier: i.isV4,
2968
- inventory: s ? d ? !n.value && v.type === W.F_ADDON_GROUP_TYPE.enum.NORMAL : !n.value : !1,
2969
- orderFrom: (b) => s ? d ? v.type === W.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? n.value : !!n.value == !b : n.value : !1,
2968
+ inventory: s ? d ? !n.value && f.type === W.F_ADDON_GROUP_TYPE.enum.NORMAL : !n.value : !1,
2969
+ orderFrom: (b) => s ? d ? f.type === W.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? n.value : !!n.value == !b : n.value : !1,
2970
2970
  orderFromActiveOnly: c,
2971
- showOrderFrom: s ? d ? n.value ? !0 : v.type === W.F_ADDON_GROUP_TYPE.enum.PRODUCT : n.value : !1,
2971
+ showOrderFrom: s ? d ? n.value ? !0 : f.type === W.F_ADDON_GROUP_TYPE.enum.PRODUCT : n.value : !1,
2972
2972
  bindToVariant: m,
2973
2973
  isOverride: n.value,
2974
2974
  isItemGroup: !1,
@@ -2982,7 +2982,7 @@ const mn = /* @__PURE__ */ nt(Ha, [["render", Za]]), Qa = /* @__PURE__ */ me({
2982
2982
  position: i.groups.length - 1,
2983
2983
  itemsLinked: []
2984
2984
  }), r = te(o()), { t: l } = he();
2985
- return (s, u) => t.value.create ? (M(), H(h(xr), {
2985
+ return (s, u) => t.value.create ? (A(), Y(h(xr), {
2986
2986
  key: 0,
2987
2987
  "categorized-items": h(i).categorizedItems,
2988
2988
  config: a.value,
@@ -2994,15 +2994,15 @@ const mn = /* @__PURE__ */ nt(Ha, [["render", Za]]), Qa = /* @__PURE__ */ me({
2994
2994
  action: "add",
2995
2995
  title: h(l)("menu.group.add")
2996
2996
  }, {
2997
- default: P(({ trigger: d }) => [
2997
+ default: V(({ trigger: d }) => [
2998
2998
  ve(s.$slots, "default", { trigger: d })
2999
2999
  ]),
3000
3000
  _: 3
3001
- }, 8, ["categorized-items", "config", "group", "title"])) : ne("", !0);
3001
+ }, 8, ["categorized-items", "config", "group", "title"])) : ie("", !0);
3002
3002
  }
3003
3003
  }), Ja = {}, er = { class: "flex gap-16" };
3004
3004
  function tr(e, i) {
3005
- return M(), ie("div", er, [
3005
+ return A(), ne("div", er, [
3006
3006
  ve(e.$slots, "default")
3007
3007
  ]);
3008
3008
  }
@@ -3038,14 +3038,14 @@ const ir = /* @__PURE__ */ nt(Ja, [["render", tr]]), nr = { class: "fm-typo-en-t
3038
3038
  }
3039
3039
  ), i({ getKey: () => n.bindingKey, trigger: o });
3040
3040
  const { t: c } = he(), m = Bi();
3041
- return (p, v) => {
3042
- const b = N("fm-text-field"), y = N("fm-card"), w = N("fm-button"), f = N("fm-side-sheet");
3043
- return M(), ie(Me, null, [
3041
+ return (p, f) => {
3042
+ const b = N("fm-text-field"), y = N("fm-card"), _ = N("fm-button"), v = N("fm-side-sheet");
3043
+ return A(), ne(Me, null, [
3044
3044
  ve(p.$slots, "default", { trigger: o }),
3045
- g(f, {
3045
+ g(v, {
3046
3046
  id: "inventory-form",
3047
3047
  modelValue: a.value,
3048
- "onUpdate:modelValue": v[2] || (v[2] = (x) => a.value = x),
3048
+ "onUpdate:modelValue": f[2] || (f[2] = (x) => a.value = x),
3049
3049
  "close-button": !1,
3050
3050
  "is-container": h(Ae).FmForm,
3051
3051
  "is-container-props": {
@@ -3055,27 +3055,27 @@ const ir = /* @__PURE__ */ nt(Ja, [["render", tr]]), nr = { class: "fm-typo-en-t
3055
3055
  "max-width": 560,
3056
3056
  "onOn:clickedAway": h(s)
3057
3057
  }, {
3058
- "side-sheet-header": P(() => [
3059
- V("p", nr, de(p.title || h(c)("menu.inventory.form.title")), 1)
3058
+ "side-sheet-header": V(() => [
3059
+ P("p", nr, de(p.title || h(c)("menu.inventory.form.title")), 1)
3060
3060
  ]),
3061
- "side-sheet-footer": P(() => [
3062
- V("div", ar, [
3063
- g(w, {
3061
+ "side-sheet-footer": V(() => [
3062
+ P("div", ar, [
3063
+ g(_, {
3064
3064
  label: h(c)("menu.common.actions.add"),
3065
3065
  size: "lg",
3066
3066
  type: "submit",
3067
3067
  variant: "primary"
3068
3068
  }, null, 8, ["label"]),
3069
- g(w, {
3069
+ g(_, {
3070
3070
  label: h(c)("menu.common.actions.cancel"),
3071
3071
  size: "lg",
3072
3072
  variant: "tertiary",
3073
- onClick: v[1] || (v[1] = () => a.value = !1)
3073
+ onClick: f[1] || (f[1] = () => a.value = !1)
3074
3074
  }, null, 8, ["label"])
3075
3075
  ])
3076
3076
  ]),
3077
- default: P(() => [
3078
- V("div", or, [
3077
+ default: V(() => [
3078
+ P("div", or, [
3079
3079
  g(b, {
3080
3080
  "model-value": p.name,
3081
3081
  disabled: "",
@@ -3085,10 +3085,10 @@ const ir = /* @__PURE__ */ nt(Ja, [["render", tr]]), nr = { class: "fm-typo-en-t
3085
3085
  class: "p-16 space-y-24",
3086
3086
  variant: "outlined"
3087
3087
  }, {
3088
- default: P(() => [
3088
+ default: V(() => [
3089
3089
  g(h(qn), {
3090
3090
  modelValue: r.value,
3091
- "onUpdate:modelValue": v[0] || (v[0] = (x) => r.value = x)
3091
+ "onUpdate:modelValue": f[0] || (f[0] = (x) => r.value = x)
3092
3092
  }, null, 8, ["modelValue"])
3093
3093
  ]),
3094
3094
  _: 1
@@ -3187,7 +3187,7 @@ const pn = /* @__PURE__ */ me({
3187
3187
  }];
3188
3188
  return (r, l) => {
3189
3189
  const s = N("FmTable");
3190
- return M(), ie("div", null, [g(s, {
3190
+ return A(), ne("div", null, [g(s, {
3191
3191
  "column-defs": o,
3192
3192
  "row-data": r.priceTiers,
3193
3193
  "page-size": r.priceTiers.length,
@@ -3215,12 +3215,12 @@ const pn = /* @__PURE__ */ me({
3215
3215
  function m() {
3216
3216
  n("submit", d.value), o();
3217
3217
  }
3218
- return (p, v) => {
3219
- const b = N("FmButton"), y = N("fm-button"), w = N("FmSideSheet");
3220
- return M(), H(w, {
3218
+ return (p, f) => {
3219
+ const b = N("FmButton"), y = N("fm-button"), _ = N("FmSideSheet");
3220
+ return A(), Y(_, {
3221
3221
  id: "business-form",
3222
3222
  modelValue: a.value,
3223
- "onUpdate:modelValue": v[1] || (v[1] = (f) => a.value = f),
3223
+ "onUpdate:modelValue": f[1] || (f[1] = (v) => a.value = v),
3224
3224
  "is-container": h(Ae).FmForm,
3225
3225
  "is-container-props": {
3226
3226
  onValidationSuccess: m,
@@ -3229,11 +3229,11 @@ const pn = /* @__PURE__ */ me({
3229
3229
  "max-width": 560,
3230
3230
  "onOn:clickedAway": h(c)
3231
3231
  }, {
3232
- "side-sheet-header": P(() => [
3233
- V("p", lr, de(r.value), 1)
3232
+ "side-sheet-header": V(() => [
3233
+ P("p", lr, de(r.value), 1)
3234
3234
  ]),
3235
- "side-sheet-footer": P(() => [
3236
- V("div", cr, [
3235
+ "side-sheet-footer": V(() => [
3236
+ P("div", cr, [
3237
3237
  g(y, {
3238
3238
  label: l.value,
3239
3239
  size: "lg",
@@ -3248,13 +3248,13 @@ const pn = /* @__PURE__ */ me({
3248
3248
  }, null, 8, ["label"])
3249
3249
  ])
3250
3250
  ]),
3251
- default: P(() => [
3252
- V("div", ur, [
3251
+ default: V(() => [
3252
+ P("div", ur, [
3253
3253
  g(He, {
3254
3254
  label: h(t)("menu.price_tier.price_group"),
3255
3255
  description: h(t)("menu.price_tier.description")
3256
3256
  }, {
3257
- append: P(() => [
3257
+ append: V(() => [
3258
3258
  g(b, {
3259
3259
  class: "min-w-fit",
3260
3260
  label: h(t)("menu.price_tier.add_price_group"),
@@ -3263,12 +3263,12 @@ const pn = /* @__PURE__ */ me({
3263
3263
  onClick: h(u).create
3264
3264
  }, null, 8, ["label", "onClick"])
3265
3265
  ]),
3266
- default: P(() => [
3266
+ default: V(() => [
3267
3267
  g(pn, {
3268
3268
  "price-tiers": h(u).priceTiers.value,
3269
3269
  "model-value": d.value,
3270
3270
  fallback: p.fallback,
3271
- "onUpdate:modelValue": v[0] || (v[0] = (f) => d.value = f)
3271
+ "onUpdate:modelValue": f[0] || (f[0] = (v) => d.value = v)
3272
3272
  }, null, 8, ["price-tiers", "model-value", "fallback"])
3273
3273
  ]),
3274
3274
  _: 1
@@ -3305,13 +3305,13 @@ const pn = /* @__PURE__ */ me({
3305
3305
  const { t: l } = he();
3306
3306
  return (s, u) => {
3307
3307
  const d = N("FmButton"), c = N("FmTooltip");
3308
- return s.$slots.default ? ve(s.$slots, "default", { key: 0 }) : (M(), H(c, {
3308
+ return s.$slots.default ? ve(s.$slots, "default", { key: 0 }) : (A(), Y(c, {
3309
3309
  key: 1,
3310
3310
  content: h(l)("menu.price_tier.price_tier_config"),
3311
3311
  "z-index": 999,
3312
3312
  placement: "top"
3313
3313
  }, {
3314
- default: P(() => [
3314
+ default: V(() => [
3315
3315
  g(d, {
3316
3316
  icon: "price_change",
3317
3317
  variant: "tertiary",
@@ -3358,8 +3358,8 @@ const pn = /* @__PURE__ */ me({
3358
3358
  }))])), {
3359
3359
  searchKey: m,
3360
3360
  filter: p
3361
- } = Jn(), v = O(() => {
3362
- const z = Object.entries(t.group.items).filter(([, E]) => p([E.code || "", E.name || E.fallbackName, w(E.price ?? E.fallbackPrice), f(E.orderFrom || E.fallbackOrder), ...(E.items || []).map((j) => [j.code || "", j.name || j.fallbackName, w(j.price ?? j.fallbackPrice), f(j.orderFrom || j.fallbackOrder)].join(""))]));
3361
+ } = Jn(), f = O(() => {
3362
+ const z = Object.entries(t.group.items).filter(([, E]) => p([E.code || "", E.name || E.fallbackName, _(E.price ?? E.fallbackPrice), v(E.orderFrom || E.fallbackOrder), ...(E.items || []).map((j) => [j.code || "", j.name || j.fallbackName, _(j.price ?? j.fallbackPrice), v(j.orderFrom || j.fallbackOrder)].join(""))]));
3363
3363
  return Object.fromEntries(z);
3364
3364
  }), b = (z) => ({
3365
3365
  ...t.config,
@@ -3367,10 +3367,10 @@ const pn = /* @__PURE__ */ me({
3367
3367
  link: t.config.link(z),
3368
3368
  name: t.config.name(z),
3369
3369
  orderFrom: t.config.orderFrom(z)
3370
- }), y = O(() => !0), w = (z) => z ? rt(z, !1) : "", f = (z) => {
3370
+ }), y = O(() => !0), _ = (z) => z ? rt(z, !1) : "", v = (z) => {
3371
3371
  var E;
3372
3372
  return z == null ? "" : (E = Fn()[z]) == null ? void 0 : E.label;
3373
- }, x = O(() => Object.values(v.value)), Y = te({}), {
3373
+ }, x = O(() => Object.values(f.value)), H = te({}), {
3374
3374
  t: U
3375
3375
  } = he(), K = te([{
3376
3376
  accessorKey: "isDefault",
@@ -3391,7 +3391,7 @@ const pn = /* @__PURE__ */ me({
3391
3391
  if (E) {
3392
3392
  const ze = (ge = z.row.getParentRow()) == null ? void 0 : ge.original;
3393
3393
  if (!ze) return;
3394
- _(ze._id, j.combinationKey ?? "", "isDefault", ce);
3394
+ w(ze._id, j.combinationKey ?? "", "isDefault", ce);
3395
3395
  } else
3396
3396
  I(j._id, "isDefault", ce);
3397
3397
  }
@@ -3430,7 +3430,7 @@ const pn = /* @__PURE__ */ me({
3430
3430
  if (Q) {
3431
3431
  const ge = (ce = z.row.getParentRow()) == null ? void 0 : ce.original;
3432
3432
  if (!ge) return;
3433
- _(ge._id, j.combinationKey ?? "", "name", oe);
3433
+ w(ge._id, j.combinationKey ?? "", "name", oe);
3434
3434
  } else
3435
3435
  I(j._id, "name", oe);
3436
3436
  },
@@ -3471,7 +3471,7 @@ const pn = /* @__PURE__ */ me({
3471
3471
  if (q) {
3472
3472
  const ge = (ce = z.row.getParentRow()) == null ? void 0 : ce.original;
3473
3473
  if (!ge) return;
3474
- _(
3474
+ w(
3475
3475
  ge._id,
3476
3476
  j.combinationKey ?? "",
3477
3477
  // @ts-ignore
@@ -3503,7 +3503,7 @@ const pn = /* @__PURE__ */ me({
3503
3503
  if (Q) {
3504
3504
  const ce = (oe = z.row.getParentRow()) == null ? void 0 : oe.original;
3505
3505
  if (!ce) return;
3506
- _(
3506
+ w(
3507
3507
  ce._id,
3508
3508
  j.combinationKey ?? "",
3509
3509
  // @ts-ignore
@@ -3537,7 +3537,7 @@ const pn = /* @__PURE__ */ me({
3537
3537
  if (Z) {
3538
3538
  const oe = (q = z.row.getParentRow()) == null ? void 0 : q.original;
3539
3539
  if (!oe) return;
3540
- _(
3540
+ w(
3541
3541
  oe._id,
3542
3542
  E.combinationKey ?? "",
3543
3543
  // @ts-ignore
@@ -3557,7 +3557,7 @@ const pn = /* @__PURE__ */ me({
3557
3557
  if (Z) {
3558
3558
  const oe = (q = z.row.getParentRow()) == null ? void 0 : q.original;
3559
3559
  if (!oe) return;
3560
- _(
3560
+ w(
3561
3561
  oe._id,
3562
3562
  E.combinationKey ?? "",
3563
3563
  // @ts-ignore
@@ -3596,7 +3596,7 @@ const pn = /* @__PURE__ */ me({
3596
3596
  }
3597
3597
  }, null)]);
3598
3598
  }
3599
- }]), A = O(() => ({
3599
+ }]), M = O(() => ({
3600
3600
  code: d.value,
3601
3601
  name: !0,
3602
3602
  price: b(null).price,
@@ -3635,7 +3635,7 @@ const pn = /* @__PURE__ */ me({
3635
3635
  }
3636
3636
  });
3637
3637
  }
3638
- function _(z, E, j, Z) {
3638
+ function w(z, E, j, Z) {
3639
3639
  var ce, ge;
3640
3640
  const Q = ue(t.group), q = (ce = Q.items[z].items) == null ? void 0 : ce.findIndex((ze) => ze.combinationKey === E);
3641
3641
  if (!ht.isSet(q)) return;
@@ -3711,13 +3711,13 @@ const pn = /* @__PURE__ */ me({
3711
3711
  const L = Pi(), ae = O(() => L.breakpoints.value.xs);
3712
3712
  return (z, E) => {
3713
3713
  const j = N("fm-button"), Z = N("fm-table");
3714
- return M(), H(Ge, {
3714
+ return A(), Y(Ge, {
3715
3715
  title: h(U)("menu.group.option.title"),
3716
3716
  "sub-title": z.config.link() && u.value ? h(U)("menu.group.option.subtitle") : ""
3717
3717
  }, {
3718
- "append-title": P(() => [z.config.link() ? (M(), ie(Me, {
3718
+ "append-title": V(() => [z.config.link() ? (A(), ne(Me, {
3719
3719
  key: 0
3720
- }, [u.value ? (M(), ie("div", mr, [g(Vn, {
3720
+ }, [u.value ? (A(), ne("div", mr, [g(Vn, {
3721
3721
  "categorized-items": z.categorizedItems,
3722
3722
  "initial-value": c.value,
3723
3723
  "show-variant": z.config.bindToVariant,
@@ -3727,7 +3727,7 @@ const pn = /* @__PURE__ */ me({
3727
3727
  items: Q
3728
3728
  }) => C(Q))
3729
3729
  }, {
3730
- default: P(({
3730
+ default: V(({
3731
3731
  trigger: Q
3732
3732
  }) => [g(j, {
3733
3733
  "text-color": h(je).ColorPrimary,
@@ -3738,26 +3738,26 @@ const pn = /* @__PURE__ */ me({
3738
3738
  onClick: Q
3739
3739
  }, null, 8, ["text-color", "border-color", "label", "onClick"])]),
3740
3740
  _: 1
3741
- }, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (M(), ie("div", pr, [g(j, {
3741
+ }, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (A(), ne("div", pr, [g(j, {
3742
3742
  "text-color": h(je).ColorPrimary,
3743
3743
  "border-color": h(je).ColorPrimary,
3744
3744
  variant: "secondary",
3745
3745
  label: h(U)("menu.group.option.add_option"),
3746
3746
  "prepend-icon": "add",
3747
3747
  onClick: D
3748
- }, null, 8, ["text-color", "border-color", "label"])]))], 64)) : ne("", !0)]),
3749
- default: P(() => [V("div", hr, [V("div", fr, [g(Z, {
3748
+ }, null, 8, ["text-color", "border-color", "label"])]))], 64)) : ie("", !0)]),
3749
+ default: V(() => [P("div", hr, [P("div", fr, [g(Z, {
3750
3750
  "column-defs": K.value,
3751
- "column-visibility": A.value,
3751
+ "column-visibility": M.value,
3752
3752
  draggable: !ae.value && b(null).name,
3753
- "expanded-state": l.value ? {} : Y.value,
3753
+ "expanded-state": l.value ? {} : H.value,
3754
3754
  "get-sub-row": F,
3755
3755
  "page-size": 999,
3756
3756
  "row-data": x.value,
3757
3757
  "search-value": h(m),
3758
3758
  "shrink-at": !1,
3759
3759
  "hide-footer": "",
3760
- "onUpdate:expandedState": E[1] || (E[1] = (Q) => Y.value = Q),
3760
+ "onUpdate:expandedState": E[1] || (E[1] = (Q) => H.value = Q),
3761
3761
  onDndChanged: E[2] || (E[2] = (Q) => T(Q)),
3762
3762
  "onUpdate:dragging": E[3] || (E[3] = (Q) => l.value = Q)
3763
3763
  }, null, 8, ["column-defs", "column-visibility", "draggable", "expanded-state", "row-data", "search-value"])])])]),
@@ -3843,9 +3843,9 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
3843
3843
  let n = e;
3844
3844
  const a = t, o = ye(), r = pt(), l = Le(), s = De(), u = Ze(qe(s)), { countDefaultItems: d, validateGroupItems: c, minMaxValidationRules: m } = gr(
3845
3845
  () => n.group
3846
- ), p = te(!1), v = te(!1), b = (C) => {
3847
- ht.isBoolean(C) ? v.value = C : v.value = !v.value;
3848
- }, y = O(() => n.group ? n.config(n.group) : null), w = O(() => Wi(y.value)), f = (C) => w.value.includes(C), x = O(() => [
3846
+ ), p = te(!1), f = te(!1), b = (C) => {
3847
+ ht.isBoolean(C) ? f.value = C : f.value = !f.value;
3848
+ }, y = O(() => n.group ? n.config(n.group) : null), _ = O(() => Wi(y.value)), v = (C) => _.value.includes(C), x = O(() => [
3849
3849
  {
3850
3850
  label: "Normal",
3851
3851
  value: W.F_ADDON_GROUP_TYPE.enum.NORMAL
@@ -3859,12 +3859,12 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
3859
3859
  value: W.F_ADDON_GROUP_TYPE.enum.DYNAMIC
3860
3860
  }
3861
3861
  ]);
3862
- function Y(C) {
3862
+ function H(C) {
3863
3863
  a("update:group", C);
3864
3864
  }
3865
3865
  function U(C) {
3866
3866
  function F() {
3867
- Y({
3867
+ H({
3868
3868
  ...n.group,
3869
3869
  items: {},
3870
3870
  type: C
@@ -3889,13 +3889,13 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
3889
3889
  y.value.isOverride
3890
3890
  )[0];
3891
3891
  }
3892
- const A = te($e.clone(n.group)), D = Xt(
3893
- () => !$e.isEqual(n.group, A.value),
3892
+ const M = te($e.clone(n.group)), D = Xt(
3893
+ () => !$e.isEqual(n.group, M.value),
3894
3894
  () => {
3895
- v.value = !1;
3895
+ f.value = !1;
3896
3896
  }
3897
3897
  ), I = O(() => n.action === "add" ? B("common.add") : B("common.update"));
3898
- async function _() {
3898
+ async function w() {
3899
3899
  var C;
3900
3900
  if (n.action === "add") {
3901
3901
  const { group: F, linkItems: T } = Ki(n.group), L = {
@@ -3928,9 +3928,9 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
3928
3928
  b(!1);
3929
3929
  }
3930
3930
  Re(
3931
- () => v.value,
3931
+ () => f.value,
3932
3932
  async (C) => {
3933
- a("status:show", C), C && (await Ei(), A.value = $e.clone(n.group));
3933
+ a("status:show", C), C && (await Ei(), M.value = $e.clone(n.group));
3934
3934
  }
3935
3935
  );
3936
3936
  const R = O(() => {
@@ -3944,7 +3944,7 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
3944
3944
  typeof ae == "string" && ae && !((T = C[L]) != null && T.includes(ae)) && (C[L] = [...C[L] || [], ae]);
3945
3945
  }), C;
3946
3946
  }), k = (C) => {
3947
- n.group && Y({
3947
+ n.group && H({
3948
3948
  ...n.group,
3949
3949
  customAttributes: C
3950
3950
  });
@@ -3956,30 +3956,30 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
3956
3956
  ]);
3957
3957
  i({
3958
3958
  trigger: b,
3959
- show: v
3959
+ show: f
3960
3960
  });
3961
3961
  const { t: B } = he();
3962
3962
  return (C, F) => {
3963
3963
  const T = N("fm-text-field"), L = N("fm-stepper-field"), ae = N("FmFormGroup"), z = N("fm-radio"), E = N("fm-radio-group"), j = N("fm-switch"), Z = N("fm-button"), Q = N("fm-side-sheet");
3964
- return M(), ie(Me, null, [
3964
+ return A(), ne(Me, null, [
3965
3965
  ve(C.$slots, "default", { trigger: b }),
3966
3966
  g(Q, {
3967
3967
  id: "group-form",
3968
- modelValue: v.value,
3969
- "onUpdate:modelValue": F[8] || (F[8] = (q) => v.value = q),
3968
+ modelValue: f.value,
3969
+ "onUpdate:modelValue": F[8] || (F[8] = (q) => f.value = q),
3970
3970
  "is-container": h(Ae).FmForm,
3971
3971
  "is-container-props": {
3972
- onValidationSuccess: _,
3972
+ onValidationSuccess: w,
3973
3973
  blameFormChildOnValidationFailed: !0
3974
3974
  },
3975
3975
  "max-width": 720,
3976
3976
  "onOn:clickedAway": h(D)
3977
3977
  }, {
3978
- "side-sheet-header": P(() => [
3979
- V("p", br, de(C.title), 1)
3978
+ "side-sheet-header": V(() => [
3979
+ P("p", br, de(C.title), 1)
3980
3980
  ]),
3981
- "side-sheet-footer": P(() => [
3982
- V("div", _r, [
3981
+ "side-sheet-footer": V(() => [
3982
+ P("div", _r, [
3983
3983
  g(Z, {
3984
3984
  label: h(eo)(I.value),
3985
3985
  loading: p.value,
@@ -3991,20 +3991,20 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
3991
3991
  label: h(B)("menu.common.actions.cancel"),
3992
3992
  size: "lg",
3993
3993
  variant: "tertiary",
3994
- onClick: F[7] || (F[7] = () => v.value = !1)
3994
+ onClick: F[7] || (F[7] = () => f.value = !1)
3995
3995
  }, null, 8, ["label"])
3996
3996
  ])
3997
3997
  ]),
3998
- default: P(() => [
3999
- C.group ? (M(), ie("div", yr, [
3998
+ default: V(() => [
3999
+ C.group ? (A(), ne("div", yr, [
4000
4000
  ve(C.$slots, "variant-section"),
4001
4001
  g($n, null, {
4002
- default: P(() => [
4003
- V("div", null, [
4002
+ default: V(() => [
4003
+ P("div", null, [
4004
4004
  g(T, {
4005
4005
  modelValue: C.group.name,
4006
4006
  "onUpdate:modelValue": F[0] || (F[0] = (q) => C.group.name = q),
4007
- disabled: f("name"),
4007
+ disabled: v("name"),
4008
4008
  rules: $.value,
4009
4009
  autofocus: "",
4010
4010
  label: h(B)("menu.common.labels.group_name")
@@ -4014,13 +4014,13 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4014
4014
  "model-value": C.group.min + " " + C.group.max,
4015
4015
  rules: h(m)
4016
4016
  }, {
4017
- default: P(() => [
4017
+ default: V(() => [
4018
4018
  g(ir, null, {
4019
- default: P(() => [
4019
+ default: V(() => [
4020
4020
  g(L, {
4021
4021
  modelValue: C.group.min,
4022
4022
  "onUpdate:modelValue": F[1] || (F[1] = (q) => C.group.min = q),
4023
- disabled: f("min"),
4023
+ disabled: v("min"),
4024
4024
  min: 0,
4025
4025
  class: "flex-1",
4026
4026
  label: h(B)("menu.common.labels.min_select")
@@ -4028,7 +4028,7 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4028
4028
  g(L, {
4029
4029
  modelValue: C.group.max,
4030
4030
  "onUpdate:modelValue": F[2] || (F[2] = (q) => C.group.max = q),
4031
- disabled: f("max"),
4031
+ disabled: v("max"),
4032
4032
  min: C.group.min,
4033
4033
  class: "flex-1",
4034
4034
  label: h(B)("menu.common.labels.max_select")
@@ -4039,18 +4039,18 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4039
4039
  ]),
4040
4040
  _: 1
4041
4041
  }, 8, ["model-value", "rules"]),
4042
- y.value.type ? (M(), H(He, {
4042
+ y.value.type ? (A(), Y(He, {
4043
4043
  key: 0,
4044
4044
  label: h(B)("menu.common.labels.group_type")
4045
4045
  }, {
4046
- default: P(() => [
4046
+ default: V(() => [
4047
4047
  g(E, {
4048
- disabled: f("type"),
4048
+ disabled: v("type"),
4049
4049
  "model-value": C.group.type,
4050
4050
  "onUpdate:modelValue": F[3] || (F[3] = (q) => U(q))
4051
4051
  }, {
4052
- default: P(() => [
4053
- (M(!0), ie(Me, null, Ne(x.value, (q) => (M(), H(z, {
4052
+ default: V(() => [
4053
+ (A(!0), ne(Me, null, Ne(x.value, (q) => (A(), Y(z, {
4054
4054
  key: q.value,
4055
4055
  label: h(B)(`menu.group.types.${q.label.toLowerCase()}`),
4056
4056
  value: q.value
@@ -4060,15 +4060,15 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4060
4060
  }, 8, ["disabled", "model-value"])
4061
4061
  ]),
4062
4062
  _: 1
4063
- }, 8, ["label"])) : ne("", !0),
4063
+ }, 8, ["label"])) : ie("", !0),
4064
4064
  g(He, {
4065
4065
  label: h(B)("menu.common.labels.configuration")
4066
4066
  }, {
4067
- default: P(() => [
4067
+ default: V(() => [
4068
4068
  g(j, {
4069
4069
  modelValue: C.group.stackable,
4070
4070
  "onUpdate:modelValue": F[4] || (F[4] = (q) => C.group.stackable = q),
4071
- disabled: f("stackable"),
4071
+ disabled: v("stackable"),
4072
4072
  label: h(B)("menu.common.labels.stackable"),
4073
4073
  "label-placement": "right",
4074
4074
  sublabel: h(B)("menu.common.labels.stackable_sublabel")
@@ -4076,12 +4076,12 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4076
4076
  ]),
4077
4077
  _: 1
4078
4078
  }, 8, ["label"]),
4079
- R.value ? (M(), H(Ge, {
4079
+ R.value ? (A(), Y(Ge, {
4080
4080
  key: 1,
4081
4081
  title: h(B)("menu.group.form.tagging.title"),
4082
4082
  "sub-title": h(B)("menu.group.form.tagging.subtitle")
4083
4083
  }, {
4084
- default: P(() => [
4084
+ default: V(() => [
4085
4085
  g(h(Di), {
4086
4086
  entity: "group",
4087
4087
  "model-value": C.group.customAttributes || {},
@@ -4090,7 +4090,7 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4090
4090
  }, null, 8, ["model-value", "value-options"])
4091
4091
  ]),
4092
4092
  _: 1
4093
- }, 8, ["title", "sub-title"])) : ne("", !0)
4093
+ }, 8, ["title", "sub-title"])) : ie("", !0)
4094
4094
  ]),
4095
4095
  _: 1
4096
4096
  }),
@@ -4103,19 +4103,19 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4103
4103
  max: C.group.max
4104
4104
  })
4105
4105
  }, {
4106
- default: P(() => [
4106
+ default: V(() => [
4107
4107
  g(vr, {
4108
4108
  "allow-refund-inventory": C.allowRefundInventory ?? !1,
4109
4109
  "categorized-items": C.categorizedItems,
4110
4110
  config: y.value,
4111
4111
  group: C.group,
4112
- "onUpdate:group": F[5] || (F[5] = (q) => Y(q)),
4113
- "onUpdate:unmapGroup": F[6] || (F[6] = (q) => Y(K(q)))
4112
+ "onUpdate:group": F[5] || (F[5] = (q) => H(q)),
4113
+ "onUpdate:unmapGroup": F[6] || (F[6] = (q) => H(K(q)))
4114
4114
  }, null, 8, ["allow-refund-inventory", "categorized-items", "config", "group"])
4115
4115
  ]),
4116
4116
  _: 1
4117
4117
  }, 8, ["modelValue", "rules", "helper-text"])
4118
- ])) : ne("", !0)
4118
+ ])) : ie("", !0)
4119
4119
  ]),
4120
4120
  _: 3
4121
4121
  }, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"])
@@ -4131,7 +4131,7 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4131
4131
  },
4132
4132
  emits: ["update:combinations"],
4133
4133
  setup(e, { expose: i, emit: t }) {
4134
- var Y, U;
4134
+ var H, U;
4135
4135
  const n = e, a = t, o = ye(), r = Le(), l = Ze(qe(De())), s = te([]), u = te(n.combinations[0].combinationKey || ""), d = O(
4136
4136
  () => s.value.findIndex((K) => K.combinationKey == u.value)
4137
4137
  ), c = O(
@@ -4141,11 +4141,11 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4141
4141
  }))
4142
4142
  ), m = O(() => {
4143
4143
  var R, S;
4144
- if (!w.value) return null;
4144
+ if (!_.value) return null;
4145
4145
  const K = ((S = (R = s.value[d.value]) == null ? void 0 : R.groups) == null ? void 0 : S.find((k) => k._id === n.groupId)) || {
4146
4146
  _id: n.groupId,
4147
4147
  groupKey: ""
4148
- }, D = o.state.menu.modules.group.find((k) => k._id === n.groupId), I = Object.entries({ ...K, items: void 0 }).filter(([, k]) => !!k), _ = {
4148
+ }, D = o.state.menu.modules.group.find((k) => k._id === n.groupId), I = Object.entries({ ...K, items: void 0 }).filter(([, k]) => !!k), w = {
4149
4149
  ...D,
4150
4150
  ...Object.fromEntries(I),
4151
4151
  items: D.items.map((k) => {
@@ -4162,30 +4162,30 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4162
4162
  };
4163
4163
  })
4164
4164
  };
4165
- return new ji(o, l.updateMenu, r).mapGroups([_], !0)[0];
4165
+ return new ji(o, l.updateMenu, r).mapGroups([w], !0)[0];
4166
4166
  });
4167
4167
  function p(K) {
4168
- var _, R;
4169
- const A = (_ = s.value[d.value].groups) == null ? void 0 : _.findIndex(
4168
+ var w, R;
4169
+ const M = (w = s.value[d.value].groups) == null ? void 0 : w.findIndex(
4170
4170
  (S) => S._id === n.groupId
4171
4171
  ), D = ue(s.value), I = { ...qt(K), _id: n.groupId, groupKey: "" };
4172
- (A ?? -1) < 0 ? D[d.value] = {
4172
+ (M ?? -1) < 0 ? D[d.value] = {
4173
4173
  ...D[d.value],
4174
4174
  groups: [...((R = D[d.value]) == null ? void 0 : R.groups) || [], I]
4175
- } : D[d.value].groups[A] = I, s.value = D;
4175
+ } : D[d.value].groups[M] = I, s.value = D;
4176
4176
  }
4177
- function v(K) {
4178
- const A = c.value.length;
4177
+ function f(K) {
4178
+ const M = c.value.length;
4179
4179
  let D = d.value;
4180
- K === "left" ? D = D === 0 ? A - 1 : D - 1 : D = D === A - 1 ? 0 : D + 1, u.value = c.value[D].value;
4180
+ K === "left" ? D = D === 0 ? M - 1 : D - 1 : D = D === M - 1 ? 0 : D + 1, u.value = c.value[D].value;
4181
4181
  }
4182
4182
  function b(K) {
4183
4183
  return {
4184
4184
  isV4: o.version === W.F_MENU_VERSION.enum.v4,
4185
- isDefault: (A) => !1,
4186
- link: (A) => !1,
4187
- orderFrom: (A) => !0,
4188
- name: (A) => !1,
4185
+ isDefault: (M) => !1,
4186
+ link: (M) => !1,
4187
+ orderFrom: (M) => !0,
4188
+ name: (M) => !1,
4189
4189
  bindToVariant: !1,
4190
4190
  inventory: !0,
4191
4191
  orderFromActiveOnly: o.rules.item.orderFromActiveOnly,
@@ -4199,81 +4199,81 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4199
4199
  };
4200
4200
  }
4201
4201
  function y() {
4202
- const K = s.value.map((A) => {
4202
+ const K = s.value.map((M) => {
4203
4203
  var D;
4204
4204
  return {
4205
- ...A,
4206
- groups: (D = A.groups) == null ? void 0 : D.map((I) => ({
4205
+ ...M,
4206
+ groups: (D = M.groups) == null ? void 0 : D.map((I) => ({
4207
4207
  ...oo(I, b())
4208
4208
  }))
4209
4209
  };
4210
4210
  });
4211
4211
  a("update:combinations", K);
4212
4212
  }
4213
- const w = te(!1);
4213
+ const _ = te(!1);
4214
4214
  Re(
4215
- () => w.value,
4215
+ () => _.value,
4216
4216
  (K) => {
4217
4217
  K && (s.value = ue(n.combinations), u.value = n.combinations[0].combinationKey || "");
4218
4218
  }
4219
4219
  );
4220
- const f = te();
4220
+ const v = te();
4221
4221
  i({
4222
- show: (Y = f.value) == null ? void 0 : Y.show,
4223
- trigger: (U = f.value) == null ? void 0 : U.trigger
4222
+ show: (H = v.value) == null ? void 0 : H.show,
4223
+ trigger: (U = v.value) == null ? void 0 : U.trigger
4224
4224
  });
4225
4225
  const { t: x } = he();
4226
- return (K, A) => {
4227
- const D = N("fm-select"), I = N("fm-button"), _ = N("fm-card");
4228
- return M(), H(fn, {
4226
+ return (K, M) => {
4227
+ const D = N("fm-select"), I = N("fm-button"), w = N("fm-card");
4228
+ return A(), Y(fn, {
4229
4229
  ref_key: "baseFormRef",
4230
- ref: f,
4230
+ ref: v,
4231
4231
  "allow-refund-inventory": !0,
4232
4232
  "categorized-items": h(o).categorizedItems,
4233
4233
  config: b,
4234
4234
  group: m.value,
4235
4235
  action: "update",
4236
4236
  title: h(x)("menu.group.update"),
4237
- "onUpdate:group": A[3] || (A[3] = (R) => p(R)),
4238
- "onSubmit:group": A[4] || (A[4] = (R) => y()),
4239
- "onStatus:show": A[5] || (A[5] = (R) => w.value = R)
4237
+ "onUpdate:group": M[3] || (M[3] = (R) => p(R)),
4238
+ "onSubmit:group": M[4] || (M[4] = (R) => y()),
4239
+ "onStatus:show": M[5] || (M[5] = (R) => _.value = R)
4240
4240
  }, {
4241
- default: P(({ trigger: R }) => [
4241
+ default: V(({ trigger: R }) => [
4242
4242
  ve(K.$slots, "default", { trigger: R })
4243
4243
  ]),
4244
- "variant-section": P(() => [
4245
- u.value ? (M(), H(_, {
4244
+ "variant-section": V(() => [
4245
+ u.value ? (A(), Y(w, {
4246
4246
  key: 0,
4247
4247
  class: "p-16 bg-fm-color-neutral-gray-100 space-y-24",
4248
4248
  variant: "outlined"
4249
4249
  }, {
4250
- default: P(() => [
4251
- V("p", wr, de(h(x)("menu.group.option.variant")), 1),
4252
- V("div", Sr, [
4250
+ default: V(() => [
4251
+ P("p", wr, de(h(x)("menu.group.option.variant")), 1),
4252
+ P("div", Sr, [
4253
4253
  g(D, {
4254
4254
  modelValue: u.value,
4255
- "onUpdate:modelValue": A[0] || (A[0] = (R) => u.value = R),
4255
+ "onUpdate:modelValue": M[0] || (M[0] = (R) => u.value = R),
4256
4256
  items: c.value,
4257
4257
  class: "flex-1"
4258
4258
  }, null, 8, ["modelValue", "items"]),
4259
- V("div", Cr, [
4259
+ P("div", Cr, [
4260
4260
  g(I, {
4261
4261
  variant: h(Qe).Tertiary,
4262
4262
  "prepend-icon": "keyboard_arrow_left",
4263
4263
  size: "lg",
4264
- onClick: A[1] || (A[1] = (R) => v("left"))
4264
+ onClick: M[1] || (M[1] = (R) => f("left"))
4265
4265
  }, null, 8, ["variant"]),
4266
4266
  g(I, {
4267
4267
  variant: h(Qe).Tertiary,
4268
4268
  "prepend-icon": "keyboard_arrow_right",
4269
4269
  size: "lg",
4270
- onClick: A[2] || (A[2] = (R) => v("right"))
4270
+ onClick: M[2] || (M[2] = (R) => f("right"))
4271
4271
  }, null, 8, ["variant"])
4272
4272
  ])
4273
4273
  ])
4274
4274
  ]),
4275
4275
  _: 1
4276
- })) : ne("", !0)
4276
+ })) : ie("", !0)
4277
4277
  ]),
4278
4278
  _: 3
4279
4279
  }, 8, ["categorized-items", "group", "title"]);
@@ -4293,36 +4293,36 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4293
4293
  setup(e) {
4294
4294
  const i = e, t = Le(), { emitData: n, emitAction: a } = Vi(), o = ye(), r = O(() => o.rules.group), l = O(() => o.groups);
4295
4295
  function s(y) {
4296
- return ue(y ?? []).sort((f, x) => f.position - x.position);
4296
+ return ue(y ?? []).sort((v, x) => v.position - x.position);
4297
4297
  }
4298
- const u = O(() => s(l.value).reduce((y, w) => (y[w._id] = {
4299
- name: w.name,
4300
- type: xt(o.items, w.items)
4298
+ const u = O(() => s(l.value).reduce((y, _) => (y[_._id] = {
4299
+ name: _.name,
4300
+ type: xt(o.items, _.items)
4301
4301
  }, y), {})), d = O(() => [
4302
- ...Object.entries(u.value).map(([y, { name: w, type: f }]) => ({
4303
- label: `${w} ${r.value.type ? `(${$t(f)})` : ""}`.trim(),
4302
+ ...Object.entries(u.value).map(([y, { name: _, type: v }]) => ({
4303
+ label: `${_} ${r.value.type ? `(${$t(v)})` : ""}`.trim(),
4304
4304
  value: y
4305
4305
  }))
4306
4306
  ]), c = O(() => !!o.state.currentCatalogId || !!o.state.currentSchedulerId);
4307
4307
  O(() => {
4308
- const y = !o.state.currentSchedulerId, w = o.rules.group.type, f = o.version == W.F_MENU_VERSION.enum.v3, x = o.rules.item.orderFromActiveOnly, Y = o.rules.item.bindToVariant;
4308
+ const y = !o.state.currentSchedulerId, _ = o.rules.group.type, v = o.version == W.F_MENU_VERSION.enum.v3, x = o.rules.item.orderFromActiveOnly, H = o.rules.item.bindToVariant;
4309
4309
  return function(K) {
4310
4310
  return {
4311
- isDefault: (A) => !c.value && !A,
4312
- link: (A) => !c.value && (!A || Y),
4313
- name: (A) => !c.value && !A,
4314
- type: w && !K._id && !c.value,
4311
+ isDefault: (M) => !c.value && !M,
4312
+ link: (M) => !c.value && (!M || H),
4313
+ name: (M) => !c.value && !M,
4314
+ type: _ && !K._id && !c.value,
4315
4315
  price: K.type != W.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
4316
4316
  priceEdit: !0,
4317
4317
  priceTier: o.isV4,
4318
- inventory: y ? f ? !c.value && K.type == W.F_ADDON_GROUP_TYPE.enum.NORMAL : !c.value : !1,
4319
- orderFrom: (A) => y ? f ? K.type == W.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? c.value : !!c.value == !A : c.value : !1,
4318
+ inventory: y ? v ? !c.value && K.type == W.F_ADDON_GROUP_TYPE.enum.NORMAL : !c.value : !1,
4319
+ orderFrom: (M) => y ? v ? K.type == W.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? c.value : !!c.value == !M : c.value : !1,
4320
4320
  orderFromActiveOnly: x,
4321
- showOrderFrom: y ? f ? c.value ? !0 : K.type == W.F_ADDON_GROUP_TYPE.enum.PRODUCT : c.value : !1,
4322
- bindToVariant: Y,
4321
+ showOrderFrom: y ? v ? c.value ? !0 : K.type == W.F_ADDON_GROUP_TYPE.enum.PRODUCT : c.value : !1,
4322
+ bindToVariant: H,
4323
4323
  isOverride: c.value,
4324
4324
  isItemGroup: !1,
4325
- isV4: !f
4325
+ isV4: !v
4326
4326
  };
4327
4327
  };
4328
4328
  }), O(() => ({
@@ -4332,30 +4332,30 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4332
4332
  position: o.groups.length - 1,
4333
4333
  itemsLinked: []
4334
4334
  }));
4335
- const m = te(ue(i.groupIds || [])), p = te(""), { t: v } = he(), b = () => {
4335
+ const m = te(ue(i.groupIds || [])), p = te(""), { t: f } = he(), b = () => {
4336
4336
  n(m.value), a("primary"), t.close();
4337
4337
  };
4338
- return (y, w) => {
4339
- const f = N("FmSearch"), x = N("FmCheckbox"), Y = N("FmButton");
4340
- return d.value.length > 0 ? (M(), ie("div", Ar, [
4341
- V("div", null, [
4342
- g(f, {
4338
+ return (y, _) => {
4339
+ const v = N("FmSearch"), x = N("FmCheckbox"), H = N("FmButton");
4340
+ return d.value.length > 0 ? (A(), ne("div", Ar, [
4341
+ P("div", null, [
4342
+ g(v, {
4343
4343
  autofocus: "",
4344
4344
  modelValue: p.value,
4345
- "onUpdate:modelValue": w[0] || (w[0] = (U) => p.value = U),
4346
- placeholder: h(v)("menu.common.labels.search_groups")
4345
+ "onUpdate:modelValue": _[0] || (_[0] = (U) => p.value = U),
4346
+ placeholder: h(f)("menu.common.labels.search_groups")
4347
4347
  }, null, 8, ["modelValue", "placeholder"])
4348
4348
  ]),
4349
- V("div", Mr, [
4350
- V("div", null, [
4351
- (M(!0), ie(Me, null, Ne(d.value, (U) => (M(), ie("div", {
4349
+ P("div", Mr, [
4350
+ P("div", null, [
4351
+ (A(!0), ne(Me, null, Ne(d.value, (U) => (A(), ne("div", {
4352
4352
  key: U.value
4353
4353
  }, [
4354
4354
  ct(g(x, {
4355
4355
  modelValue: m.value,
4356
4356
  "onUpdate:modelValue": [
4357
- w[1] || (w[1] = (K) => m.value = K),
4358
- w[2] || (w[2] = (K) => h(n)(m.value))
4357
+ _[1] || (_[1] = (K) => m.value = K),
4358
+ _[2] || (_[2] = (K) => h(n)(m.value))
4359
4359
  ],
4360
4360
  label: U.label,
4361
4361
  value: U.value
@@ -4365,11 +4365,11 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4365
4365
  ]))), 128))
4366
4366
  ])
4367
4367
  ]),
4368
- V("div", Or, [
4368
+ P("div", Or, [
4369
4369
  g(h(Mi), null, {
4370
- default: P(({ trigger: U }) => [
4371
- g(Y, {
4372
- label: h(v)("menu.common.actions.add_group"),
4370
+ default: V(({ trigger: U }) => [
4371
+ g(H, {
4372
+ label: h(f)("menu.common.actions.add_group"),
4373
4373
  variant: "tertiary",
4374
4374
  "text-color": "primary",
4375
4375
  onClick: (K) => U()
@@ -4377,27 +4377,27 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4377
4377
  ]),
4378
4378
  _: 1
4379
4379
  }),
4380
- V("div", Fr, [
4381
- g(Y, {
4382
- label: h(v)("menu.common.actions.cancel"),
4380
+ P("div", Fr, [
4381
+ g(H, {
4382
+ label: h(f)("menu.common.actions.cancel"),
4383
4383
  variant: "tertiary",
4384
- onClick: w[3] || (w[3] = (U) => h(t).close())
4384
+ onClick: _[3] || (_[3] = (U) => h(t).close())
4385
4385
  }, null, 8, ["label"]),
4386
- g(Y, {
4387
- label: h(v)("menu.common.actions.confirm"),
4388
- onClick: w[4] || (w[4] = (U) => b())
4386
+ g(H, {
4387
+ label: h(f)("menu.common.actions.confirm"),
4388
+ onClick: _[4] || (_[4] = (U) => b())
4389
4389
  }, null, 8, ["label"])
4390
4390
  ])
4391
4391
  ])
4392
- ])) : (M(), ie("div", zr, [
4393
- V("div", Ir, [
4394
- V("p", Er, de(h(v)("menu.common.empty.no_group.title")), 1),
4395
- V("p", Tr, de(h(v)("menu.common.empty.no_group.subtitle")), 1)
4392
+ ])) : (A(), ne("div", zr, [
4393
+ P("div", Ir, [
4394
+ P("p", Er, de(h(f)("menu.common.empty.no_group.title")), 1),
4395
+ P("p", Tr, de(h(f)("menu.common.empty.no_group.subtitle")), 1)
4396
4396
  ]),
4397
4397
  g(h(Mi), null, {
4398
- default: P(({ trigger: U }) => [
4399
- g(Y, {
4400
- label: h(v)("menu.common.actions.add_group"),
4398
+ default: V(({ trigger: U }) => [
4399
+ g(H, {
4400
+ label: h(f)("menu.common.actions.add_group"),
4401
4401
  icon: "add",
4402
4402
  onClick: (K) => U()
4403
4403
  }, null, 8, ["label", "onClick"])
@@ -4439,9 +4439,9 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4439
4439
  }
4440
4440
  const p = O(() => {
4441
4441
  var k;
4442
- return [...v(m(c.value, t.form.groups || ((k = t.fallback) == null ? void 0 : k.groups) || [])).map(($) => $._id)];
4442
+ return [...f(m(c.value, t.form.groups || ((k = t.fallback) == null ? void 0 : k.groups) || [])).map(($) => $._id)];
4443
4443
  });
4444
- function v(S) {
4444
+ function f(S) {
4445
4445
  return ue(S ?? []).sort(($, B) => $.position - B.position);
4446
4446
  }
4447
4447
  function b(S) {
@@ -4465,22 +4465,22 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4465
4465
  })})` : F;
4466
4466
  });
4467
4467
  }
4468
- const y = O(() => v(c.value).reduce((S, k) => (S[k._id] = {
4468
+ const y = O(() => f(c.value).reduce((S, k) => (S[k._id] = {
4469
4469
  name: k.name,
4470
4470
  type: xt(a.items, k.items)
4471
- }, S), {})), w = O(() => [...Object.entries(y.value).map(([S, {
4471
+ }, S), {})), _ = O(() => [...Object.entries(y.value).map(([S, {
4472
4472
  name: k,
4473
4473
  type: $
4474
4474
  }]) => ({
4475
4475
  label: `${k} ${u.value.type ? `(${$t($)})` : ""}`.trim(),
4476
4476
  value: S
4477
- }))]), f = O(() => [{
4477
+ }))]), v = O(() => [{
4478
4478
  accessorKey: "name",
4479
4479
  header: () => l("menu.product.form.group.columns.title"),
4480
4480
  enableSorting: !1,
4481
4481
  cell: (S) => {
4482
4482
  const k = S.row.original._id;
4483
- return _(k);
4483
+ return w(k);
4484
4484
  }
4485
4485
  }, {
4486
4486
  id: "type",
@@ -4555,7 +4555,7 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4555
4555
  }]), x = O(() => ({
4556
4556
  type: a.version !== W.F_MENU_VERSION.enum.v4
4557
4557
  }));
4558
- function Y() {
4558
+ function H() {
4559
4559
  r.open({
4560
4560
  title: l("menu.product.form.group.add"),
4561
4561
  contentComponent: Dr,
@@ -4606,12 +4606,12 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4606
4606
  groups: k
4607
4607
  }));
4608
4608
  }
4609
- const A = O(() => {
4609
+ const M = O(() => {
4610
4610
  var S;
4611
4611
  return !!((S = t.form.variant) != null && S.variantGroupIds.length);
4612
4612
  }), D = O(() => {
4613
4613
  var S;
4614
- return A.value ? (S = t.form.variant) == null ? void 0 : S.variantCombinations : [{
4614
+ return M.value ? (S = t.form.variant) == null ? void 0 : S.variantCombinations : [{
4615
4615
  _id: t.form._id,
4616
4616
  combinationKey: "",
4617
4617
  groups: t.form.groups || []
@@ -4633,35 +4633,35 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4633
4633
  }
4634
4634
  }
4635
4635
  Re(() => c.value.length, () => U([...p.value, c.value[c.value.length - 1]._id]));
4636
- const _ = (S) => {
4636
+ const w = (S) => {
4637
4637
  var k;
4638
- return (k = w.value.find(($) => $.value === S)) == null ? void 0 : k.label;
4638
+ return (k = _.value.find(($) => $.value === S)) == null ? void 0 : k.label;
4639
4639
  }, R = (S) => {
4640
4640
  var k;
4641
- A.value ? s("update:form", "variant", {
4641
+ M.value ? s("update:form", "variant", {
4642
4642
  variantGroupIds: ((k = t.form.variant) == null ? void 0 : k.variantGroupIds) || [],
4643
4643
  variantCombinations: S
4644
4644
  }) : s("update:form", "groups", S[0].groups || []);
4645
4645
  };
4646
4646
  return (S, k) => {
4647
4647
  const $ = N("FmButton"), B = N("FmTable");
4648
- return M(), H(Ge, {
4648
+ return A(), Y(Ge, {
4649
4649
  title: h(l)("menu.product.form.group.title"),
4650
4650
  "sub-title": h(l)("menu.product.form.group.subtitle")
4651
4651
  }, {
4652
- "append-title": P(() => [g($, {
4652
+ "append-title": V(() => [g($, {
4653
4653
  class: "flex-shrink-0",
4654
4654
  label: h(l)("menu.product.form.group.add"),
4655
4655
  "prepend-icon": "add",
4656
4656
  variant: "secondary",
4657
- onClick: Y
4657
+ onClick: H
4658
4658
  }, null, 8, ["label"])]),
4659
- default: P(() => [g(mn, null, {
4660
- default: P(() => {
4659
+ default: V(() => [g(mn, null, {
4660
+ default: V(() => {
4661
4661
  var C;
4662
- return [((C = p.value) == null ? void 0 : C.length) > 0 ? (M(), H(B, {
4662
+ return [((C = p.value) == null ? void 0 : C.length) > 0 ? (A(), Y(B, {
4663
4663
  key: 0,
4664
- "column-defs": f.value,
4664
+ "column-defs": v.value,
4665
4665
  "column-visibility": x.value,
4666
4666
  "row-data": p.value.map((F) => ({
4667
4667
  _id: F
@@ -4670,7 +4670,7 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4670
4670
  "hide-footer": "",
4671
4671
  "pin-header-row": "",
4672
4672
  "shrink-at": !1
4673
- }, null, 8, ["column-defs", "column-visibility", "row-data", "page-size"])) : ne("", !0)];
4673
+ }, null, 8, ["column-defs", "column-visibility", "row-data", "page-size"])) : ie("", !0)];
4674
4674
  }),
4675
4675
  _: 1
4676
4676
  })]),
@@ -4702,14 +4702,14 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4702
4702
  const {
4703
4703
  t
4704
4704
  } = he(), n = e, a = i, o = ye(), r = O(() => o.rules.item), l = O(() => r.value.inventory);
4705
- function s(b, y, w, f) {
4705
+ function s(b, y, _, v) {
4706
4706
  return !y || y && y.length === 0 ? [{
4707
4707
  _id: "",
4708
- name: w || "",
4708
+ name: _ || "",
4709
4709
  binding: b || []
4710
4710
  }] : y.map((x) => ({
4711
4711
  _id: x.combinationKey || "",
4712
- name: $i(x.combinationKey || "", f),
4712
+ name: $i(x.combinationKey || "", v),
4713
4713
  binding: x.inventoryBindings || []
4714
4714
  }));
4715
4715
  }
@@ -4721,26 +4721,26 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4721
4721
  return s(n.form.inventoryBindings || [], ((b = n.form.variant) == null ? void 0 : b.variantCombinations) || [], u.value, o.variants);
4722
4722
  });
4723
4723
  function c(b, y) {
4724
- var Y, U;
4725
- let w = $e.clone(n.form);
4726
- const f = w.variant;
4727
- if ((((Y = f == null ? void 0 : f.variantCombinations) == null ? void 0 : Y.length) ?? 0) > 0 && f) {
4728
- const K = f.variantCombinations.findIndex((D) => D.combinationKey === b);
4724
+ var H, U;
4725
+ let _ = $e.clone(n.form);
4726
+ const v = _.variant;
4727
+ if ((((H = v == null ? void 0 : v.variantCombinations) == null ? void 0 : H.length) ?? 0) > 0 && v) {
4728
+ const K = v.variantCombinations.findIndex((D) => D.combinationKey === b);
4729
4729
  if (K < 0) return;
4730
- const A = $e.clone(f.variantCombinations);
4731
- A[K].inventoryBindings = y, w = {
4732
- ...w,
4730
+ const M = $e.clone(v.variantCombinations);
4731
+ M[K].inventoryBindings = y, _ = {
4732
+ ..._,
4733
4733
  variant: {
4734
- variantGroupIds: ((U = w.variant) == null ? void 0 : U.variantGroupIds) || [],
4735
- variantCombinations: A
4734
+ variantGroupIds: ((U = _.variant) == null ? void 0 : U.variantGroupIds) || [],
4735
+ variantCombinations: M
4736
4736
  }
4737
4737
  };
4738
4738
  } else
4739
- w = {
4740
- ...w,
4739
+ _ = {
4740
+ ..._,
4741
4741
  inventoryBindings: y
4742
4742
  };
4743
- a("replace:form", w);
4743
+ a("replace:form", _);
4744
4744
  }
4745
4745
  te([{
4746
4746
  accessorKey: "name",
@@ -4780,17 +4780,17 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4780
4780
  title: t("menu.inventory.dialog.title", {
4781
4781
  name: u.value
4782
4782
  }),
4783
- "onUpdate:inventory": (w) => {
4784
- c(y.key, w);
4783
+ "onUpdate:inventory": (_) => {
4784
+ c(y.key, _);
4785
4785
  }
4786
4786
  }, {
4787
4787
  default: ({
4788
- trigger: w
4788
+ trigger: _
4789
4789
  }) => g(N("fm-button"), {
4790
4790
  variant: Qe.Tertiary,
4791
4791
  prependIcon: "edit",
4792
4792
  textColor: je.NeutralGray400,
4793
- onClick: w
4793
+ onClick: _
4794
4794
  }, null)
4795
4795
  })]) : null;
4796
4796
  }
@@ -4802,26 +4802,26 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4802
4802
  for (const y of m.value)
4803
4803
  y.getKey() === b && y.trigger(!0);
4804
4804
  }
4805
- const v = Bi();
4805
+ const f = Bi();
4806
4806
  return at(() => {
4807
- v.readInventory();
4808
- }), (b, y) => (M(), H(Ge, {
4807
+ f.readInventory();
4808
+ }), (b, y) => (A(), Y(Ge, {
4809
4809
  title: h(t)("menu.inventory.title"),
4810
4810
  subTitle: h(t)("menu.inventory.subtitle")
4811
4811
  }, {
4812
- default: P(() => [V("div", Vr, [V("div", Ur, [(M(!0), ie(Me, null, Ne(d.value, (w) => (M(), H(h(Yt), {
4813
- key: w._id,
4812
+ default: V(() => [P("div", Vr, [P("div", Ur, [(A(!0), ne(Me, null, Ne(d.value, (_) => (A(), Y(h(Yt), {
4813
+ key: _._id,
4814
4814
  ref_for: !0,
4815
4815
  ref_key: "inventoryManagerForms",
4816
4816
  ref: m,
4817
4817
  title: h(t)("menu.inventory.dialog.title", {
4818
4818
  name: u.value
4819
4819
  }),
4820
- name: w.name || "",
4821
- bindingKey: w._id,
4822
- initialValue: w.binding ?? [],
4823
- "onUpdate:inventory": (f) => {
4824
- c(w._id, f);
4820
+ name: _.name || "",
4821
+ bindingKey: _._id,
4822
+ initialValue: _.binding ?? [],
4823
+ "onUpdate:inventory": (v) => {
4824
+ c(_._id, v);
4825
4825
  }
4826
4826
  }, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), g(h(Zn), {
4827
4827
  "row-data": d.value,
@@ -4855,43 +4855,43 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4855
4855
  emits: ["update:form"],
4856
4856
  setup(e, { emit: i }) {
4857
4857
  const t = e, n = pt(), a = ye(), o = Li(), { t: r } = he(), l = i, s = O(() => a.rules.item), u = O(() => {
4858
- var Y, U;
4859
- const f = t.isOverride ? ((Y = t.fallback) == null ? void 0 : Y.unit) ?? ((U = t.fallback) == null ? void 0 : U.perXUnit) : void 0, x = t.form.unit ?? t.form.perXUnit ?? f;
4858
+ var H, U;
4859
+ const v = t.isOverride ? ((H = t.fallback) == null ? void 0 : H.unit) ?? ((U = t.fallback) == null ? void 0 : U.perXUnit) : void 0, x = t.form.unit ?? t.form.perXUnit ?? v;
4860
4860
  return x != null;
4861
- }), d = (f) => {
4862
- l("update:form", "unit", f ? "" : void 0), l("update:form", "perXUnit", f ? 0 : void 0);
4861
+ }), d = (v) => {
4862
+ l("update:form", "unit", v ? "" : void 0), l("update:form", "perXUnit", v ? 0 : void 0);
4863
4863
  }, c = O(() => {
4864
- const f = a.isV4;
4865
- return Ft.setCoreStore(n).taxSetting(f);
4864
+ const v = a.isV4;
4865
+ return Ft.setCoreStore(n).taxSetting(v);
4866
4866
  }), m = O(() => {
4867
- var f;
4867
+ var v;
4868
4868
  return Ft.getSelectedTax(
4869
4869
  t.form.taxes,
4870
- (f = t.fallback) == null ? void 0 : f.taxes,
4870
+ (v = t.fallback) == null ? void 0 : v.taxes,
4871
4871
  c.value.countryTaxOptions
4872
4872
  );
4873
4873
  });
4874
- function p(f) {
4875
- const x = f.replace(/[^0-9.]/g, "");
4876
- if (!f) return !1;
4874
+ function p(v) {
4875
+ const x = v.replace(/[^0-9.]/g, "");
4876
+ if (!v) return !1;
4877
4877
  l("update:form", "perXUnit", parseFloat(x));
4878
4878
  }
4879
- function v(f) {
4880
- if (!f && t.form.perXUnit) {
4881
- const [x, Y] = t.form.perXUnit.toString().split(".");
4882
- if (Y && Y.length > 4) {
4879
+ function f(v) {
4880
+ if (!v && t.form.perXUnit) {
4881
+ const [x, H] = t.form.perXUnit.toString().split(".");
4882
+ if (H && H.length > 4) {
4883
4883
  const K = (typeof t.form.perXUnit == "string" ? parseFloat(t.form.perXUnit) : t.form.perXUnit).toFixed(4);
4884
4884
  l("update:form", "perXUnit", parseFloat(K));
4885
4885
  }
4886
4886
  }
4887
4887
  }
4888
4888
  const b = Ht();
4889
- ti("apply-pricing", (f) => {
4890
- l("update:form", "price", xe.Dinero.fromNumber({ number: f }).toObject());
4889
+ ti("apply-pricing", (v) => {
4890
+ l("update:form", "price", xe.Dinero.fromNumber({ number: v }).toObject());
4891
4891
  });
4892
4892
  async function y() {
4893
- const f = t.form.name || "";
4894
- if (!f) {
4893
+ const v = t.form.name || "";
4894
+ if (!v) {
4895
4895
  const x = document.getElementById("product-name");
4896
4896
  if (x) {
4897
4897
  x.focus();
@@ -4900,37 +4900,37 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4900
4900
  return;
4901
4901
  }
4902
4902
  n.pushDataLayer({ event: "menu_catalog_item_price_remy_suggest_pricing" }), b.activate({
4903
- prompt: `Suggest a price for ${f}`,
4903
+ prompt: `Suggest a price for ${v}`,
4904
4904
  command: "suggestPrice"
4905
4905
  });
4906
4906
  }
4907
- const w = O(() => {
4908
- var f, x;
4909
- return ((f = a.currentCatalog) == null ? void 0 : f.priceTierRules) ?? ((x = a.currentCatalog) == null ? void 0 : x.usePriceTiers) ?? [];
4907
+ const _ = O(() => {
4908
+ var v, x;
4909
+ return ((v = a.currentCatalog) == null ? void 0 : v.priceTierRules) ?? ((x = a.currentCatalog) == null ? void 0 : x.usePriceTiers) ?? [];
4910
4910
  });
4911
- return (f, x) => {
4912
- const Y = N("fm-select"), U = N("FmButton"), K = N("fm-checkbox"), A = N("fm-text-field"), D = zi("tooltip");
4913
- return M(), H(Ge, {
4911
+ return (v, x) => {
4912
+ const H = N("fm-select"), U = N("FmButton"), K = N("fm-checkbox"), M = N("fm-text-field"), D = zi("tooltip");
4913
+ return A(), Y(Ge, {
4914
4914
  title: h(r)("menu.product.form.price.title")
4915
4915
  }, {
4916
- default: P(() => {
4916
+ default: V(() => {
4917
4917
  var I;
4918
4918
  return [
4919
- V("div", Nr, [
4919
+ P("div", Nr, [
4920
4920
  g(tt, {
4921
- disable: w.value.length > 0 && h(a).currentCatalog && !h(a).currentScheduler,
4921
+ disable: _.value.length > 0 && h(a).currentCatalog && !h(a).currentScheduler,
4922
4922
  min: 0,
4923
- "model-value": f.form.price || null,
4924
- placeholder: (I = f.fallback) != null && I.price ? h(rt)(f.fallback.price, !1) : void 0,
4923
+ "model-value": v.form.price || null,
4924
+ placeholder: (I = v.fallback) != null && I.price ? h(rt)(v.fallback.price, !1) : void 0,
4925
4925
  rules: [
4926
- s.value.price ? (_) => !!_ || h(r)("menu.product.form.price.fields.selling_price.required") : void 0
4926
+ s.value.price ? (w) => !!w || h(r)("menu.product.form.price.fields.selling_price.required") : void 0
4927
4927
  ].filter(h(ht).isSet),
4928
4928
  class: "w-[258px] xs:w-full",
4929
4929
  label: h(r)("menu.product.form.price.fields.selling_price.label"),
4930
4930
  "show-currency": "",
4931
- "onUpdate:modelValue": x[0] || (x[0] = (_) => _ && l("update:form", "price", _))
4931
+ "onUpdate:modelValue": x[0] || (x[0] = (w) => w && l("update:form", "price", w))
4932
4932
  }, {
4933
- append: P(() => [
4933
+ append: V(() => [
4934
4934
  ct(g(h(Ni), {
4935
4935
  "pure-styling": "",
4936
4936
  class: "shrink-0 scale-75",
@@ -4941,7 +4941,7 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4941
4941
  ]),
4942
4942
  _: 1
4943
4943
  }, 8, ["disable", "model-value", "placeholder", "rules", "label"]),
4944
- g(Y, {
4944
+ g(H, {
4945
4945
  disabled: !s.value.tax || !c.value.systemCode,
4946
4946
  items: c.value.countryTaxOptions,
4947
4947
  label: c.value.systemCode ? h(r)("menu.product.form.price.fields.tax.label_with_code", {
@@ -4951,15 +4951,15 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4951
4951
  placeholder: "--",
4952
4952
  class: "flex-1",
4953
4953
  "shift-menu": "",
4954
- "onUpdate:modelValue": x[1] || (x[1] = (_) => l("update:form", "taxes", [h(Ft).decodeTax(_)]))
4954
+ "onUpdate:modelValue": x[1] || (x[1] = (w) => l("update:form", "taxes", [h(Ft).decodeTax(w)]))
4955
4955
  }, null, 8, ["disabled", "items", "label", "model-value"])
4956
4956
  ]),
4957
- !f.isOverride && h(a).isV4 ? (M(), H(He, {
4957
+ !v.isOverride && h(a).isV4 ? (A(), Y(He, {
4958
4958
  key: 0,
4959
4959
  label: h(r)("menu.price_tier.price_group"),
4960
4960
  description: h(r)("menu.price_tier.description")
4961
4961
  }, {
4962
- append: P(() => [
4962
+ append: V(() => [
4963
4963
  g(U, {
4964
4964
  label: h(r)("menu.price_tier.add_price_group"),
4965
4965
  icon: "add",
@@ -4967,50 +4967,50 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
4967
4967
  onClick: h(o).create
4968
4968
  }, null, 8, ["label", "onClick"])
4969
4969
  ]),
4970
- default: P(() => {
4971
- var _;
4970
+ default: V(() => {
4971
+ var w;
4972
4972
  return [
4973
- f.isOverride ? ne("", !0) : (M(), H(pn, {
4973
+ v.isOverride ? ie("", !0) : (A(), Y(pn, {
4974
4974
  key: 0,
4975
4975
  "price-tiers": h(o).priceTiers.value,
4976
- "model-value": f.form.priceTiers || ((_ = f.fallback) == null ? void 0 : _.priceTiers) || {},
4976
+ "model-value": v.form.priceTiers || ((w = v.fallback) == null ? void 0 : w.priceTiers) || {},
4977
4977
  "allow-negative-price": !1,
4978
4978
  "onUpdate:modelValue": x[2] || (x[2] = (R) => l("update:form", "priceTiers", R))
4979
4979
  }, null, 8, ["price-tiers", "model-value"]))
4980
4980
  ];
4981
4981
  }),
4982
4982
  _: 1
4983
- }, 8, ["label", "description"])) : ne("", !0),
4983
+ }, 8, ["label", "description"])) : ie("", !0),
4984
4984
  g(He, {
4985
4985
  label: h(r)("menu.product.form.price.settings.title")
4986
4986
  }, {
4987
- default: P(() => {
4988
- var _, R, S;
4987
+ default: V(() => {
4988
+ var w, R, S;
4989
4989
  return [
4990
- V("div", Br, [
4990
+ P("div", Br, [
4991
4991
  g(K, {
4992
- disabled: !s.value.openPrice || f.isAddon,
4993
- "model-value": f.form.openPrice ?? ((_ = f.fallback) == null ? void 0 : _.openPrice) ?? !1,
4994
- value: f.form.openPrice,
4992
+ disabled: !s.value.openPrice || v.isAddon,
4993
+ "model-value": v.form.openPrice ?? ((w = v.fallback) == null ? void 0 : w.openPrice) ?? !1,
4994
+ value: v.form.openPrice,
4995
4995
  label: h(r)("menu.product.form.price.settings.open_price.label"),
4996
4996
  sublabel: h(r)("menu.product.form.price.settings.open_price.sublabel"),
4997
4997
  "onUpdate:modelValue": x[3] || (x[3] = (k) => l("update:form", "openPrice", k))
4998
4998
  }, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
4999
- V("div", Lr, [
4999
+ P("div", Lr, [
5000
5000
  g(K, {
5001
- disabled: !s.value.unit || f.isAddon,
5001
+ disabled: !s.value.unit || v.isAddon,
5002
5002
  "model-value": u.value,
5003
5003
  value: u.value,
5004
5004
  label: h(r)("menu.product.form.price.settings.sell_by_unit.label"),
5005
5005
  sublabel: h(r)("menu.product.form.price.settings.sell_by_unit.sublabel"),
5006
5006
  "onUpdate:modelValue": d
5007
5007
  }, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
5008
- u.value ? (M(), ie("div", Gr, [
5009
- V("p", Kr, de(h(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
5010
- V("div", jr, [
5011
- g(A, {
5008
+ u.value ? (A(), ne("div", Gr, [
5009
+ P("p", Kr, de(h(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
5010
+ P("div", jr, [
5011
+ g(M, {
5012
5012
  disabled: !s.value.unit,
5013
- "model-value": f.form.perXUnit || ((R = f.fallback) == null ? void 0 : R.perXUnit) || null,
5013
+ "model-value": v.form.perXUnit || ((R = v.fallback) == null ? void 0 : R.perXUnit) || null,
5014
5014
  rules: [
5015
5015
  (k) => !!k || h(r)("menu.product.form.price.settings.sell_by_unit.per_unit.required"),
5016
5016
  (k) => !k || k > 0 || h(r)("menu.product.form.price.settings.sell_by_unit.per_unit.min")
@@ -5018,14 +5018,14 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
5018
5018
  inputmode: "numeric",
5019
5019
  placeholder: h(r)("menu.product.form.price.settings.sell_by_unit.per_unit.placeholder"),
5020
5020
  type: "number",
5021
- onFocusChanged: v,
5021
+ onFocusChanged: f,
5022
5022
  "onUpdate:modelValue": p
5023
5023
  }, null, 8, ["disabled", "model-value", "rules", "placeholder"])
5024
5024
  ]),
5025
- V("div", Wr, [
5026
- g(A, {
5025
+ P("div", Wr, [
5026
+ g(M, {
5027
5027
  disabled: !s.value.unit,
5028
- "model-value": f.form.unit || ((S = f.fallback) == null ? void 0 : S.unit) || null,
5028
+ "model-value": v.form.unit || ((S = v.fallback) == null ? void 0 : S.unit) || null,
5029
5029
  rules: [
5030
5030
  (k) => !!k || h(r)("menu.product.form.price.settings.sell_by_unit.unit.required")
5031
5031
  ],
@@ -5033,50 +5033,50 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
5033
5033
  "onUpdate:modelValue": x[4] || (x[4] = (k) => l("update:form", "unit", k))
5034
5034
  }, null, 8, ["disabled", "model-value", "rules", "placeholder"])
5035
5035
  ])
5036
- ])) : ne("", !0)
5036
+ ])) : ie("", !0)
5037
5037
  ]),
5038
- s.value.costing ? (M(), ie("div", Yr, [
5038
+ s.value.costing ? (A(), ne("div", Yr, [
5039
5039
  g(K, {
5040
- "model-value": !!f.form.costing,
5041
- value: !!f.form.costing,
5040
+ "model-value": !!v.form.costing,
5041
+ value: !!v.form.costing,
5042
5042
  label: h(r)("menu.product.form.price.settings.track_costing.label"),
5043
5043
  "onUpdate:modelValue": x[5] || (x[5] = (k) => l("update:form", "costing", k ? h(xe.Dinero).zero().toObject() : void 0))
5044
5044
  }, null, 8, ["model-value", "value", "label"]),
5045
- f.form.costing ? (M(), ie("div", Hr, [
5046
- V("div", Xr, [
5045
+ v.form.costing ? (A(), ne("div", Hr, [
5046
+ P("div", Xr, [
5047
5047
  g(tt, {
5048
5048
  class: "w-full",
5049
5049
  min: 0,
5050
- "model-value": f.form.costing || null,
5050
+ "model-value": v.form.costing || null,
5051
5051
  nullable: "",
5052
5052
  "show-currency": "",
5053
5053
  "onUpdate:modelValue": x[6] || (x[6] = (k) => l("update:form", "costing", k ?? h(xe.Dinero).zero().toObject()))
5054
5054
  }, null, 8, ["model-value"])
5055
5055
  ])
5056
- ])) : ne("", !0)
5057
- ])) : ne("", !0),
5058
- s.value.minPrice ? (M(), ie("div", qr, [
5056
+ ])) : ie("", !0)
5057
+ ])) : ie("", !0),
5058
+ s.value.minPrice ? (A(), ne("div", qr, [
5059
5059
  g(K, {
5060
- disabled: !s.value.minPrice || f.isAddon,
5061
- "model-value": !!f.form.minPrice,
5062
- value: !!f.form.minPrice,
5060
+ disabled: !s.value.minPrice || v.isAddon,
5061
+ "model-value": !!v.form.minPrice,
5062
+ value: !!v.form.minPrice,
5063
5063
  label: h(r)("menu.product.form.price.settings.min_price.label"),
5064
5064
  "onUpdate:modelValue": x[7] || (x[7] = (k) => l("update:form", "minPrice", k ? h(xe.Dinero).zero().toObject() : void 0))
5065
5065
  }, null, 8, ["disabled", "model-value", "value", "label"]),
5066
- V("div", Zr, [
5067
- V("div", Qr, [
5068
- f.form.minPrice ? (M(), H(tt, {
5066
+ P("div", Zr, [
5067
+ P("div", Qr, [
5068
+ v.form.minPrice ? (A(), Y(tt, {
5069
5069
  key: 0,
5070
- max: h(xe.Dinero).fromFdoDinero(f.form.price).toUnit(),
5070
+ max: h(xe.Dinero).fromFdoDinero(v.form.price).toUnit(),
5071
5071
  min: 0,
5072
- "model-value": f.form.minPrice || null,
5072
+ "model-value": v.form.minPrice || null,
5073
5073
  class: "flex-1",
5074
5074
  "show-currency": "",
5075
5075
  "onUpdate:modelValue": x[8] || (x[8] = (k) => l("update:form", "minPrice", k ?? h(xe.Dinero).zero().toObject()))
5076
- }, null, 8, ["max", "model-value"])) : ne("", !0)
5076
+ }, null, 8, ["max", "model-value"])) : ie("", !0)
5077
5077
  ])
5078
5078
  ])
5079
- ])) : ne("", !0)
5079
+ ])) : ie("", !0)
5080
5080
  ])
5081
5081
  ];
5082
5082
  }),
@@ -5136,8 +5136,8 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
5136
5136
  c && (r.value = t.initialValue ? ue(t.initialValue) : { ...Te.generator.initMenuV4PrintDepartment(), usedBy: [] });
5137
5137
  }
5138
5138
  ), (c, m) => {
5139
- const p = N("fm-text-field"), v = N("fm-button"), b = N("fm-side-sheet");
5140
- return M(), ie(Me, null, [
5139
+ const p = N("fm-text-field"), f = N("fm-button"), b = N("fm-side-sheet");
5140
+ return A(), ne(Me, null, [
5141
5141
  ve(c.$slots, "default", { trigger: u }),
5142
5142
  g(b, {
5143
5143
  id: "variant-form",
@@ -5151,19 +5151,19 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
5151
5151
  "max-width": 560,
5152
5152
  "dismiss-away": ""
5153
5153
  }, {
5154
- "side-sheet-header": P(() => [
5155
- V("p", es, de(a.value), 1)
5154
+ "side-sheet-header": V(() => [
5155
+ P("p", es, de(a.value), 1)
5156
5156
  ]),
5157
- "side-sheet-footer": P(() => [
5158
- V("div", is, [
5159
- g(v, {
5157
+ "side-sheet-footer": V(() => [
5158
+ P("div", is, [
5159
+ g(f, {
5160
5160
  label: o.value,
5161
5161
  loading: l.value,
5162
5162
  size: "lg",
5163
5163
  type: "submit",
5164
5164
  variant: "primary"
5165
5165
  }, null, 8, ["label", "loading"]),
5166
- g(v, {
5166
+ g(f, {
5167
5167
  label: h(i)("menu.common.actions.cancel"),
5168
5168
  size: "lg",
5169
5169
  variant: "tertiary",
@@ -5171,8 +5171,8 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
5171
5171
  }, null, 8, ["label"])
5172
5172
  ])
5173
5173
  ]),
5174
- default: P(() => [
5175
- V("div", ts, [
5174
+ default: V(() => [
5175
+ P("div", ts, [
5176
5176
  g(p, {
5177
5177
  modelValue: r.value.name,
5178
5178
  "onUpdate:modelValue": m[0] || (m[0] = (y) => r.value.name = y),
@@ -5184,14 +5184,14 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
5184
5184
  autofocus: "",
5185
5185
  label: h(i)("menu.print_dept.columns.name")
5186
5186
  }, null, 8, ["modelValue", "rules", "label"]),
5187
- c.applyProduct ? (M(), H(to, {
5187
+ c.applyProduct ? (A(), Y(to, {
5188
5188
  key: 0,
5189
5189
  overrides: r.value.usedBy || [],
5190
5190
  "select-variant": !1,
5191
5191
  editable: "",
5192
5192
  title: h(i)("menu.print_dept.columns.products"),
5193
5193
  "onUpdate:overrides": m[1] || (m[1] = (y) => r.value.usedBy = y)
5194
- }, null, 8, ["overrides", "title"])) : ne("", !0)
5194
+ }, null, 8, ["overrides", "title"])) : ie("", !0)
5195
5195
  ])
5196
5196
  ]),
5197
5197
  _: 1
@@ -5219,43 +5219,43 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
5219
5219
  };
5220
5220
  }
5221
5221
  const l = O(() => n.rules.item), s = O(() => n.printDepartments), u = O(() => {
5222
- var w;
5223
- return ((w = t.form.print) == null ? void 0 : w.sequential) ?? !1;
5222
+ var _;
5223
+ return ((_ = t.form.print) == null ? void 0 : _.sequential) ?? !1;
5224
5224
  }), d = O(() => {
5225
- var w;
5225
+ var _;
5226
5226
  return u.value ? s.value.reduce(
5227
- (f, { _id: x }) => (f.includes(x) || (f = [...f, x]), f),
5228
- [...((w = t.form.print) == null ? void 0 : w.department) ?? []]
5229
- ) : s.value.map(({ _id: f }) => f);
5230
- }), c = O(() => s.value.reduce((w, f) => (w[f._id] = f.name, w), {}));
5231
- function m(w) {
5227
+ (v, { _id: x }) => (v.includes(x) || (v = [...v, x]), v),
5228
+ [...((_ = t.form.print) == null ? void 0 : _.department) ?? []]
5229
+ ) : s.value.map(({ _id: v }) => v);
5230
+ }), c = O(() => s.value.reduce((_, v) => (_[v._id] = v.name, _), {}));
5231
+ function m(_) {
5232
5232
  o("update:form", "print", {
5233
5233
  ...r(),
5234
5234
  ...t.form.print,
5235
- toRoot: !w
5235
+ toRoot: !_
5236
5236
  });
5237
5237
  }
5238
- function p(w) {
5238
+ function p(_) {
5239
5239
  o("update:form", "print", {
5240
5240
  ...r(),
5241
5241
  ...t.form.print,
5242
- sequential: w
5242
+ sequential: _
5243
5243
  });
5244
5244
  }
5245
- function v(w) {
5245
+ function f(_) {
5246
5246
  o("update:form", "print", {
5247
5247
  ...r(),
5248
5248
  ...t.form.print,
5249
- department: w.filter((f) => {
5249
+ department: _.filter((v) => {
5250
5250
  var x;
5251
- return (((x = t.form.print) == null ? void 0 : x.department) ?? []).includes(f);
5251
+ return (((x = t.form.print) == null ? void 0 : x.department) ?? []).includes(v);
5252
5252
  })
5253
5253
  });
5254
5254
  }
5255
- function b(w, f) {
5256
- var Y, U;
5257
- let x = [...((U = (Y = t.form) == null ? void 0 : Y.print) == null ? void 0 : U.department) ?? []];
5258
- f && !x.includes(w) ? x = [...x, w] : f || (x = x.filter((K) => K !== w)), o("update:form", "print", {
5255
+ function b(_, v) {
5256
+ var H, U;
5257
+ let x = [...((U = (H = t.form) == null ? void 0 : H.print) == null ? void 0 : U.department) ?? []];
5258
+ v && !x.includes(_) ? x = [...x, _] : v || (x = x.filter((K) => K !== _)), o("update:form", "print", {
5259
5259
  ...r(),
5260
5260
  ...t.form.print,
5261
5261
  department: x
@@ -5276,41 +5276,41 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
5276
5276
  return Re(
5277
5277
  () => s.value.length,
5278
5278
  () => b(s.value[s.value.length - 1]._id, !0)
5279
- ), (w, f) => {
5280
- const x = N("fm-switch"), Y = N("fm-radio"), U = N("fm-radio-group"), K = N("fm-button"), A = N("fm-checkbox");
5281
- return M(), H(Ge, {
5279
+ ), (_, v) => {
5280
+ const x = N("fm-switch"), H = N("fm-radio"), U = N("fm-radio-group"), K = N("fm-button"), M = N("fm-checkbox");
5281
+ return A(), Y(Ge, {
5282
5282
  title: h(a)("menu.product.form.print.title")
5283
5283
  }, {
5284
- default: P(() => {
5284
+ default: V(() => {
5285
5285
  var D;
5286
5286
  return [
5287
- l.value.printConfig ? (M(), H(He, {
5287
+ l.value.printConfig ? (A(), Y(He, {
5288
5288
  key: 0,
5289
5289
  label: h(a)("menu.product.form.print.config.label")
5290
5290
  }, {
5291
- default: P(() => {
5291
+ default: V(() => {
5292
5292
  var I;
5293
5293
  return [
5294
5294
  g(x, {
5295
- "model-value": !((I = w.form.print) != null && I.toRoot),
5295
+ "model-value": !((I = _.form.print) != null && I.toRoot),
5296
5296
  label: h(a)("menu.product.form.print.config.group_parent.label"),
5297
5297
  "label-placement": "right",
5298
5298
  sublabel: h(a)("menu.product.form.print.config.group_parent.sublabel"),
5299
- "onUpdate:modelValue": f[0] || (f[0] = (_) => m(_))
5299
+ "onUpdate:modelValue": v[0] || (v[0] = (w) => m(w))
5300
5300
  }, null, 8, ["model-value", "label", "sublabel"])
5301
5301
  ];
5302
5302
  }),
5303
5303
  _: 1
5304
- }, 8, ["label"])) : ne("", !0),
5304
+ }, 8, ["label"])) : ie("", !0),
5305
5305
  g(U, {
5306
5306
  label: h(a)("menu.product.form.print.kds.label"),
5307
- "model-value": ((D = w.form.print) == null ? void 0 : D.sequential) ?? !1,
5308
- "onUpdate:modelValue": f[1] || (f[1] = (I) => p(I))
5307
+ "model-value": ((D = _.form.print) == null ? void 0 : D.sequential) ?? !1,
5308
+ "onUpdate:modelValue": v[1] || (v[1] = (I) => p(I))
5309
5309
  }, {
5310
- default: P(() => [
5311
- V("div", as, [
5312
- (M(!0), ie(Me, null, Ne(y.value, (I, _) => (M(), H(Y, {
5313
- key: _,
5310
+ default: V(() => [
5311
+ P("div", as, [
5312
+ (A(!0), ne(Me, null, Ne(y.value, (I, w) => (A(), Y(H, {
5313
+ key: w,
5314
5314
  label: I.label,
5315
5315
  sublabel: I.description,
5316
5316
  value: I.value
@@ -5322,31 +5322,31 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
5322
5322
  g(He, {
5323
5323
  label: h(a)("menu.product.form.print.routes.label")
5324
5324
  }, {
5325
- default: P(() => [
5326
- d.value.length ? (M(), H(h(Gi), {
5325
+ default: V(() => [
5326
+ d.value.length ? (A(), Y(h(Gi), {
5327
5327
  key: 0,
5328
5328
  "item-key": (I) => I,
5329
5329
  "model-value": d.value,
5330
5330
  handle: ".handle",
5331
- "onUpdate:modelValue": f[3] || (f[3] = (I) => v(I)),
5331
+ "onUpdate:modelValue": v[3] || (v[3] = (I) => f(I)),
5332
5332
  class: "space-y-16"
5333
5333
  }, {
5334
- item: P(({ element: I }) => {
5335
- var _, R, S, k, $;
5334
+ item: V(({ element: I }) => {
5335
+ var w, R, S, k, $;
5336
5336
  return [
5337
- V("div", rs, [
5338
- V("div", ss, [
5339
- u.value ? (M(), H(K, {
5337
+ P("div", rs, [
5338
+ P("div", ss, [
5339
+ u.value ? (A(), Y(K, {
5340
5340
  key: 0,
5341
- disabled: !((R = (_ = t.form.print) == null ? void 0 : _.department) != null && R.includes(I)),
5341
+ disabled: !((R = (w = t.form.print) == null ? void 0 : w.department) != null && R.includes(I)),
5342
5342
  class: "handle",
5343
5343
  "prepend-icon": "drag_handle",
5344
5344
  variant: "tertiary",
5345
- onClick: f[2] || (f[2] = kt(() => {
5345
+ onClick: v[2] || (v[2] = kt(() => {
5346
5346
  }, ["stop"]))
5347
- }, null, 8, ["disabled"])) : ne("", !0)
5347
+ }, null, 8, ["disabled"])) : ie("", !0)
5348
5348
  ]),
5349
- g(A, {
5349
+ g(M, {
5350
5350
  id: I,
5351
5351
  "data-checked": (k = (S = t.form.print) == null ? void 0 : S.department) == null ? void 0 : k.includes(I),
5352
5352
  label: c.value[I],
@@ -5359,10 +5359,10 @@ const br = { class: "fm-typo-en-title-md-600" }, yr = {
5359
5359
  ];
5360
5360
  }),
5361
5361
  _: 1
5362
- }, 8, ["item-key", "model-value"])) : ne("", !0),
5362
+ }, 8, ["item-key", "model-value"])) : ie("", !0),
5363
5363
  g(h(os), { "apply-product": !1 }, {
5364
- default: P(({ trigger: I }) => [
5365
- V("div", ls, [
5364
+ default: V(({ trigger: I }) => [
5365
+ P("div", ls, [
5366
5366
  g(K, {
5367
5367
  variant: h(Qe).Secondary,
5368
5368
  label: h(a)("menu.product.form.print.routes.add"),
@@ -5415,8 +5415,8 @@ function cs(e, i, t) {
5415
5415
  name: e.fullCombinations[d.combinationKey || ""],
5416
5416
  takeaway: d.takeawayUsed,
5417
5417
  onUpdate: (m) => {
5418
- var v, b;
5419
- const p = ue(((v = e.form.variant) == null ? void 0 : v.variantCombinations) || []);
5418
+ var f, b;
5419
+ const p = ue(((f = e.form.variant) == null ? void 0 : f.variantCombinations) || []);
5420
5420
  p[c].takeawayUsed = m, i("update:form", "variant", {
5421
5421
  variantGroupIds: ((b = e.form.variant) == null ? void 0 : b.variantGroupIds) || [],
5422
5422
  variantCombinations: p
@@ -5432,7 +5432,9 @@ function cs(e, i, t) {
5432
5432
  takeaways: l
5433
5433
  };
5434
5434
  }
5435
- const ds = /* @__PURE__ */ me({
5435
+ const ds = {
5436
+ class: "flex flex-col gap-16"
5437
+ }, ms = /* @__PURE__ */ me({
5436
5438
  __name: "ProductTakeaway",
5437
5439
  props: {
5438
5440
  isOverride: {
@@ -5460,9 +5462,9 @@ const ds = /* @__PURE__ */ me({
5460
5462
  } : {
5461
5463
  label: r("menu.product.form.takeaway.options.no_preset"),
5462
5464
  value: null
5463
- }, ...n.takeaways.map((m) => ({
5464
- label: m.name,
5465
- value: m._id
5465
+ }, ...n.takeaways.map((f) => ({
5466
+ label: f.name,
5467
+ value: f._id
5466
5468
  }))]), c = te([{
5467
5469
  accessorKey: "name",
5468
5470
  enableSorting: !1,
@@ -5471,36 +5473,36 @@ const ds = /* @__PURE__ */ me({
5471
5473
  accessorKey: "takeaway",
5472
5474
  enableSorting: !1,
5473
5475
  header: () => r("menu.product.form.takeaway.columns.takeaway"),
5474
- cell: (m) => {
5475
- const p = m.getValue(), v = m.row.original;
5476
+ cell: (f) => {
5477
+ const b = f.getValue(), y = f.row.original;
5476
5478
  return Ce(Xn, {
5477
5479
  action: "add",
5478
5480
  applyProduct: !1,
5479
5481
  bindToVariant: n.rules.item.bindToVariant,
5480
- "onUpdate:takeaway": async (b) => {
5482
+ "onUpdate:takeaway": async (_) => {
5481
5483
  await o.updateMenu({
5482
5484
  module: W.F_MENU_MODULE_V4_KEY.enum.takeaway,
5483
5485
  operation: ke.F_OPERATION_TYPE.create,
5484
- data: b,
5485
- link: Nt(b.usedBy || [])
5486
- }, b.name);
5486
+ data: _,
5487
+ link: Nt(_.usedBy || [])
5488
+ }, _.name);
5487
5489
  }
5488
5490
  }, {
5489
5491
  default: ({
5490
- trigger: b
5492
+ trigger: _
5491
5493
  }) => Ce(Ae.FmSelect, {
5492
- modelValue: p || null,
5494
+ modelValue: b || null,
5493
5495
  menuZIndex: 103,
5494
5496
  items: d.value,
5495
5497
  shiftMenu: !0,
5496
- "onUpdate:modelValue": (y) => {
5497
- v.onUpdate(y || "");
5498
+ "onUpdate:modelValue": (v) => {
5499
+ y.onUpdate(v || "");
5498
5500
  }
5499
5501
  }, {
5500
5502
  "append-menu": () => n.rules.takeaway.create ? Ce("button", {
5501
5503
  class: "flex items-center py-8 px-16 space-x-8",
5502
5504
  type: "button",
5503
- onClick: b
5505
+ onClick: _
5504
5506
  }, [Ce(Ae.FmIcon, {
5505
5507
  name: "add",
5506
5508
  size: "md",
@@ -5512,13 +5514,44 @@ const ds = /* @__PURE__ */ me({
5512
5514
  });
5513
5515
  }
5514
5516
  }]);
5515
- return (m, p) => {
5516
- const v = N("fm-table");
5517
- return M(), H(Ge, {
5517
+ function m(f) {
5518
+ return (b) => {
5519
+ const y = t.form.takeawayConfig, _ = {
5520
+ pos: (y == null ? void 0 : y.pos) ?? !0,
5521
+ app: (y == null ? void 0 : y.app) ?? !0,
5522
+ [f]: b
5523
+ };
5524
+ l("update:form", "takeawayConfig", _);
5525
+ };
5526
+ }
5527
+ O({
5528
+ get() {
5529
+ var f;
5530
+ return ((f = t.form.takeawayConfig) == null ? void 0 : f.pos) ?? !0;
5531
+ },
5532
+ set: m("pos")
5533
+ });
5534
+ const p = O({
5535
+ get() {
5536
+ var f;
5537
+ return ((f = t.form.takeawayConfig) == null ? void 0 : f.app) ?? !0;
5538
+ },
5539
+ set: m("app")
5540
+ });
5541
+ return (f, b) => {
5542
+ const y = N("FmCheckbox"), _ = N("fm-table");
5543
+ return A(), Y(Ge, {
5518
5544
  title: h(r)("menu.product.form.takeaway.title"),
5519
5545
  "sub-title": h(r)("menu.product.form.takeaway.subtitle")
5520
5546
  }, {
5521
- default: P(() => [g(v, {
5547
+ default: V(() => [P("div", ds, [h(n).state.featureFlags.showTakeawayAvailability.app ? (A(), Y(y, {
5548
+ key: 0,
5549
+ modelValue: p.value,
5550
+ "onUpdate:modelValue": b[0] || (b[0] = (v) => p.value = v),
5551
+ label: h(r)("menu.product.form.takeaway.takeawayConfig.app.label"),
5552
+ sublabel: h(r)("menu.product.form.takeaway.takeawayConfig.app.sublabel"),
5553
+ value: !0
5554
+ }, null, 8, ["modelValue", "label", "sublabel"])) : ie("", !0)]), g(_, {
5522
5555
  columnDefs: c.value,
5523
5556
  "page-size": h(u).length,
5524
5557
  "row-data": h(u),
@@ -5528,13 +5561,13 @@ const ds = /* @__PURE__ */ me({
5528
5561
  }, 8, ["title", "sub-title"]);
5529
5562
  };
5530
5563
  }
5531
- }), ms = {
5564
+ }), ps = {
5532
5565
  key: 0,
5533
5566
  class: "flex flex-col space-y-16 h-[440px]"
5534
- }, ps = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, hs = { class: "flex justify-between pb-16" }, fs = { class: "flex gap-8" }, vs = {
5567
+ }, hs = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, fs = { class: "flex justify-between pb-16" }, vs = { class: "flex gap-8" }, gs = {
5535
5568
  key: 1,
5536
5569
  class: "flex flex-col items-center space-y-16"
5537
- }, gs = { class: "flex flex-col items-center space-y-4 w-full" }, bs = { class: "fm-typo-en-title-sm-600" }, ys = { class: "text-fm-color-typo-secondary" }, _s = /* @__PURE__ */ me({
5570
+ }, bs = { class: "flex flex-col items-center space-y-4 w-full" }, ys = { class: "fm-typo-en-title-sm-600" }, _s = { class: "text-fm-color-typo-secondary" }, ws = /* @__PURE__ */ me({
5538
5571
  __name: "SelectVariantDialog",
5539
5572
  props: {
5540
5573
  selectedVariants: {}
@@ -5548,9 +5581,9 @@ const ds = /* @__PURE__ */ me({
5548
5581
  t(s.value), n("primary"), i.close();
5549
5582
  };
5550
5583
  return (c, m) => {
5551
- const p = N("FmSearch"), v = N("FmCheckbox"), b = N("FmButton");
5552
- return l.value.length > 0 ? (M(), ie("div", ms, [
5553
- V("div", null, [
5584
+ const p = N("FmSearch"), f = N("FmCheckbox"), b = N("FmButton");
5585
+ return l.value.length > 0 ? (A(), ne("div", ps, [
5586
+ P("div", null, [
5554
5587
  g(p, {
5555
5588
  autofocus: "",
5556
5589
  modelValue: u.value,
@@ -5558,16 +5591,16 @@ const ds = /* @__PURE__ */ me({
5558
5591
  placeholder: h(o)("menu.common.labels.search_variants")
5559
5592
  }, null, 8, ["modelValue", "placeholder"])
5560
5593
  ]),
5561
- V("div", ps, [
5562
- V("div", null, [
5563
- (M(!0), ie(Me, null, Ne(l.value, (y) => (M(), ie("div", {
5594
+ P("div", hs, [
5595
+ P("div", null, [
5596
+ (A(!0), ne(Me, null, Ne(l.value, (y) => (A(), ne("div", {
5564
5597
  key: y.value
5565
5598
  }, [
5566
- ct(g(v, {
5599
+ ct(g(f, {
5567
5600
  modelValue: s.value,
5568
5601
  "onUpdate:modelValue": [
5569
- m[1] || (m[1] = (w) => s.value = w),
5570
- m[2] || (m[2] = (w) => h(t)(s.value))
5602
+ m[1] || (m[1] = (_) => s.value = _),
5603
+ m[2] || (m[2] = (_) => h(t)(s.value))
5571
5604
  ],
5572
5605
  label: y.label,
5573
5606
  value: y.value
@@ -5577,20 +5610,20 @@ const ds = /* @__PURE__ */ me({
5577
5610
  ]))), 128))
5578
5611
  ])
5579
5612
  ]),
5580
- V("div", hs, [
5613
+ P("div", fs, [
5581
5614
  g(h(vi), null, {
5582
- default: P(({ trigger: y }) => [
5583
- h(a).rules.item.variant ? (M(), H(b, {
5615
+ default: V(({ trigger: y }) => [
5616
+ h(a).rules.item.variant ? (A(), Y(b, {
5584
5617
  key: 0,
5585
5618
  label: h(o)("menu.common.actions.add_new_variant"),
5586
5619
  variant: "tertiary",
5587
5620
  "text-color": "primary",
5588
- onClick: (w) => y()
5589
- }, null, 8, ["label", "onClick"])) : ne("", !0)
5621
+ onClick: (_) => y()
5622
+ }, null, 8, ["label", "onClick"])) : ie("", !0)
5590
5623
  ]),
5591
5624
  _: 1
5592
5625
  }),
5593
- V("div", fs, [
5626
+ P("div", vs, [
5594
5627
  g(b, {
5595
5628
  label: h(o)("menu.common.actions.cancel"),
5596
5629
  variant: "tertiary",
@@ -5602,17 +5635,17 @@ const ds = /* @__PURE__ */ me({
5602
5635
  }, null, 8, ["label"])
5603
5636
  ])
5604
5637
  ])
5605
- ])) : (M(), ie("div", vs, [
5606
- V("div", gs, [
5607
- V("p", bs, de(h(o)("menu.common.empty.no_variant.title")), 1),
5608
- V("p", ys, de(h(o)("menu.common.empty.no_variant.subtitle")), 1)
5638
+ ])) : (A(), ne("div", gs, [
5639
+ P("div", bs, [
5640
+ P("p", ys, de(h(o)("menu.common.empty.no_variant.title")), 1),
5641
+ P("p", _s, de(h(o)("menu.common.empty.no_variant.subtitle")), 1)
5609
5642
  ]),
5610
5643
  g(h(vi), null, {
5611
- default: P(({ trigger: y }) => [
5644
+ default: V(({ trigger: y }) => [
5612
5645
  g(b, {
5613
5646
  label: h(o)("menu.variant.add"),
5614
5647
  icon: "add",
5615
- onClick: (w) => y()
5648
+ onClick: (_) => y()
5616
5649
  }, null, 8, ["label", "onClick"])
5617
5650
  ]),
5618
5651
  _: 1
@@ -5620,15 +5653,15 @@ const ds = /* @__PURE__ */ me({
5620
5653
  ]));
5621
5654
  };
5622
5655
  }
5623
- }), ws = {
5656
+ }), Ss = {
5624
5657
  class: "space-y-16"
5625
- }, Ss = {
5626
- class: "flex items-center space-x-8"
5627
5658
  }, Cs = {
5628
- class: "flex items-center flex-1 h-[36px] px-8 border border-fm-color-neutral-gray-300 rounded-md bg-fm-color-neutral-white"
5659
+ class: "flex items-center space-x-8"
5629
5660
  }, ks = {
5661
+ class: "flex items-center flex-1 h-[36px] px-8 border border-fm-color-neutral-gray-300 rounded-md bg-fm-color-neutral-white"
5662
+ }, xs = {
5630
5663
  class: "flex-1 fm-typo-en-body-lg-400"
5631
- }, xs = /* @__PURE__ */ me({
5664
+ }, Rs = /* @__PURE__ */ me({
5632
5665
  __name: "ProductVariants",
5633
5666
  props: {
5634
5667
  isOverride: {
@@ -5647,21 +5680,21 @@ const ds = /* @__PURE__ */ me({
5647
5680
  }) {
5648
5681
  const t = e, n = ye(), a = ni(), o = De(), r = Le(), {
5649
5682
  t: l
5650
- } = he(), s = te(!1), u = O(() => n.rules.item), d = O(() => u.value.minPrice && !!t.form.minPrice), c = O(() => !n.state.currentCatalogId), m = O(() => n.variants.reduce((_, R) => (_[R._id] = R, _), {})), p = i;
5651
- function v(_) {
5683
+ } = he(), s = te(!1), u = O(() => n.rules.item), d = O(() => u.value.minPrice && !!t.form.minPrice), c = O(() => !n.state.currentCatalogId), m = O(() => n.variants.reduce((w, R) => (w[R._id] = R, w), {})), p = i;
5684
+ function f(w) {
5652
5685
  const R = $e.clone(t.form);
5653
5686
  for (const {
5654
5687
  key: S,
5655
5688
  value: k
5656
- } of _)
5689
+ } of w)
5657
5690
  R[S] = k;
5658
5691
  p("replace:form", R);
5659
5692
  }
5660
- function b(_) {
5693
+ function b(w) {
5661
5694
  var S;
5662
- const R = w(_.combinationKey || "");
5695
+ const R = _(w.combinationKey || "");
5663
5696
  return {
5664
- ..._,
5697
+ ...w,
5665
5698
  price: R == null ? void 0 : R.price,
5666
5699
  inventoryBindings: (R == null ? void 0 : R.inventoryBindings) || t.form.inventoryBindings,
5667
5700
  takeawayUsed: (R == null ? void 0 : R.takeawayUsed) || t.form.takeawayUsed,
@@ -5672,24 +5705,24 @@ const ds = /* @__PURE__ */ me({
5672
5705
  };
5673
5706
  }
5674
5707
  function y() {
5675
- var _;
5708
+ var w;
5676
5709
  r.open({
5677
5710
  title: "Add variant",
5678
- contentComponent: _s,
5711
+ contentComponent: ws,
5679
5712
  contentComponentProps: {
5680
- selectedVariants: ((_ = t.form.variant) == null ? void 0 : _.variantGroupIds) ?? []
5713
+ selectedVariants: ((w = t.form.variant) == null ? void 0 : w.variantGroupIds) ?? []
5681
5714
  }
5682
5715
  }).onPrimary(async (R) => {
5683
- Y(R, b);
5716
+ H(R, b);
5684
5717
  });
5685
5718
  }
5686
- function w(_) {
5719
+ function _(w) {
5687
5720
  var C, F;
5688
- const R = ((C = t.form.variant) == null ? void 0 : C.variantGroupIds) || [], S = (F = t.form.variant) == null ? void 0 : F.variantCombinations, B = _.split(/(?=variant)/g).map((T) => T.replace(/\/*$/, "")).filter((T) => R.some((L) => T.includes(L))).join("/");
5721
+ const R = ((C = t.form.variant) == null ? void 0 : C.variantGroupIds) || [], S = (F = t.form.variant) == null ? void 0 : F.variantCombinations, B = w.split(/(?=variant)/g).map((T) => T.replace(/\/*$/, "")).filter((T) => R.some((L) => T.includes(L))).join("/");
5689
5722
  return S == null ? void 0 : S.find((T) => T.combinationKey === B);
5690
5723
  }
5691
- const f = (_) => {
5692
- Y(_);
5724
+ const v = (w) => {
5725
+ H(w);
5693
5726
  }, x = O(() => {
5694
5727
  var R;
5695
5728
  return (((R = t.form.variant) == null ? void 0 : R.variantCombinations) || []).map((S) => {
@@ -5710,9 +5743,9 @@ const ds = /* @__PURE__ */ me({
5710
5743
  };
5711
5744
  });
5712
5745
  });
5713
- function Y(_, R = (S) => S) {
5746
+ function H(w, R = (S) => S) {
5714
5747
  var $;
5715
- const S = _.filter((B) => !!B);
5748
+ const S = w.filter((B) => !!B);
5716
5749
  let k;
5717
5750
  if (S.length) {
5718
5751
  const B = S.map((F) => n.variants.find((T) => T._id === F)), C = Te.fullVariantCombination(B).map(({
@@ -5743,7 +5776,7 @@ const ds = /* @__PURE__ */ me({
5743
5776
  };
5744
5777
  } else {
5745
5778
  const B = ($ = t.form.variant) == null ? void 0 : $.variantCombinations.map((F) => F.takeawayUsed), C = [...new Set(B)];
5746
- v([{
5779
+ f([{
5747
5780
  key: "variant",
5748
5781
  value: void 0
5749
5782
  }, {
@@ -5757,28 +5790,28 @@ const ds = /* @__PURE__ */ me({
5757
5790
  }
5758
5791
  p("replace:form", a.initDynamicGroupItem(k));
5759
5792
  }
5760
- async function U(_, R, S) {
5793
+ async function U(w, R, S) {
5761
5794
  const k = $e.clone(t.form);
5762
- k.variant.variantCombinations[_][R] = S, v([{
5795
+ k.variant.variantCombinations[w][R] = S, f([{
5763
5796
  key: "variant",
5764
5797
  value: k.variant
5765
5798
  }]);
5766
5799
  }
5767
5800
  const K = O(() => {
5768
- var _, R;
5769
- return ((_ = n.currentCatalog) == null ? void 0 : _.priceTierRules) ?? ((R = n.currentCatalog) == null ? void 0 : R.usePriceTiers) ?? [];
5770
- }), A = O(() => [{
5801
+ var w, R;
5802
+ return ((w = n.currentCatalog) == null ? void 0 : w.priceTierRules) ?? ((R = n.currentCatalog) == null ? void 0 : R.usePriceTiers) ?? [];
5803
+ }), M = O(() => [{
5771
5804
  accessorKey: "combinationKey",
5772
5805
  header: () => l("menu.product.form.variant.columns.variant"),
5773
5806
  enableSorting: !1,
5774
- cell: (_) => t.fullCombinations[_.getValue()]
5807
+ cell: (w) => t.fullCombinations[w.getValue()]
5775
5808
  }, {
5776
5809
  accessorKey: "code",
5777
5810
  header: () => l("menu.product.form.variant.columns.code"),
5778
5811
  enableSorting: !1,
5779
- cell: (_) => {
5812
+ cell: (w) => {
5780
5813
  var B, C;
5781
- const R = _.getValue(), S = _.row.original, $ = ((B = S.fallback) == null ? void 0 : B.code) ?? t.form.code ?? ((C = t.fallback) == null ? void 0 : C.code);
5814
+ const R = w.getValue(), S = w.row.original, $ = ((B = S.fallback) == null ? void 0 : B.code) ?? t.form.code ?? ((C = t.fallback) == null ? void 0 : C.code);
5782
5815
  return g(Ae.FmTextField, {
5783
5816
  modelValue: R,
5784
5817
  placeholder: $ || l("menu.product.form.variant.placeholders.no_code"),
@@ -5796,7 +5829,7 @@ const ds = /* @__PURE__ */ me({
5796
5829
  }) : !0;
5797
5830
  }],
5798
5831
  "onUpdate:model-value": (F) => {
5799
- U(_.row.index, "code", dn(F, !0));
5832
+ U(w.row.index, "code", dn(F, !0));
5800
5833
  }
5801
5834
  }, null);
5802
5835
  }
@@ -5804,9 +5837,9 @@ const ds = /* @__PURE__ */ me({
5804
5837
  accessorKey: "orderFrom",
5805
5838
  header: () => l("menu.product.form.variant.columns.order_from"),
5806
5839
  enableSorting: !1,
5807
- cell: (_) => {
5840
+ cell: (w) => {
5808
5841
  var $, B;
5809
- const R = _.getValue(), k = ($ = _.row.original.fallback) == null ? void 0 : $.orderFrom;
5842
+ const R = w.getValue(), k = ($ = w.row.original.fallback) == null ? void 0 : $.orderFrom;
5810
5843
  return g(ii, {
5811
5844
  modelValue: R,
5812
5845
  fallback: t.form.orderFrom ?? k ?? ((B = t.fallback) == null ? void 0 : B.orderFrom),
@@ -5814,7 +5847,7 @@ const ds = /* @__PURE__ */ me({
5814
5847
  required: u.value.orderFrom && u.value.orderFromActiveOnly,
5815
5848
  editActiveOnly: u.value.orderFromActiveOnly || !1,
5816
5849
  "onUpdate:model-value": (C) => {
5817
- U(_.row.index, "orderFrom", C);
5850
+ U(w.row.index, "orderFrom", C);
5818
5851
  },
5819
5852
  label: "",
5820
5853
  defaultLabel: "Follow general"
@@ -5825,9 +5858,9 @@ const ds = /* @__PURE__ */ me({
5825
5858
  header: () => l("menu.product.form.variant.columns.price"),
5826
5859
  size: 200,
5827
5860
  enableSorting: !1,
5828
- cell: (_) => {
5861
+ cell: (w) => {
5829
5862
  var B, C, F;
5830
- const R = _.getValue(), S = _.row.original, $ = ((B = S.fallback) == null ? void 0 : B.price) ?? t.form.price ?? ((C = t.fallback) == null ? void 0 : C.price);
5863
+ const R = w.getValue(), S = w.row.original, $ = ((B = S.fallback) == null ? void 0 : B.price) ?? t.form.price ?? ((C = t.fallback) == null ? void 0 : C.price);
5831
5864
  return g("div", {
5832
5865
  class: "flex items-center gap-8"
5833
5866
  }, [g(tt, {
@@ -5836,29 +5869,29 @@ const ds = /* @__PURE__ */ me({
5836
5869
  modelValue: R,
5837
5870
  min: 0,
5838
5871
  "onUpdate:model-value": (T) => {
5839
- U(_.row.index, "price", T);
5872
+ U(w.row.index, "price", T);
5840
5873
  },
5841
5874
  nullable: !0,
5842
5875
  showCurrency: !1
5843
5876
  }, null), n.isV4 && !t.isOverride && g(hn, {
5844
5877
  "price-tiers": S.priceTiers,
5845
5878
  fallback: (F = S.fallback) == null ? void 0 : F.priceTiers,
5846
- "onUpdate:price-tiers": (T) => U(_.row.index, "priceTiers", T)
5879
+ "onUpdate:price-tiers": (T) => U(w.row.index, "priceTiers", T)
5847
5880
  }, null)]);
5848
5881
  }
5849
5882
  }, {
5850
5883
  accessorKey: "minPrice",
5851
5884
  header: () => l("menu.product.form.variant.columns.min_price"),
5852
5885
  enableSorting: !1,
5853
- cell: (_) => {
5886
+ cell: (w) => {
5854
5887
  var B, C, F;
5855
- const R = _.getValue(), S = _.row.original, $ = ((B = S.fallback) == null ? void 0 : B.minPrice) ?? t.form.minPrice ?? ((C = t.fallback) == null ? void 0 : C.minPrice);
5888
+ const R = w.getValue(), S = w.row.original, $ = ((B = S.fallback) == null ? void 0 : B.minPrice) ?? t.form.minPrice ?? ((C = t.fallback) == null ? void 0 : C.minPrice);
5856
5889
  return g(tt, {
5857
5890
  placeholder: $ ? rt($) : void 0,
5858
5891
  modelValue: R,
5859
5892
  max: xe.Dinero.fromFdoDinero(S.price ?? ((F = S.fallback) == null ? void 0 : F.price) ?? xe.Dinero.zero().toObject()).toUnit(),
5860
5893
  "onUpdate:model-value": (T) => {
5861
- U(_.row.index, "minPrice", T);
5894
+ U(w.row.index, "minPrice", T);
5862
5895
  },
5863
5896
  nullable: !0,
5864
5897
  showCurrency: !1
@@ -5867,54 +5900,54 @@ const ds = /* @__PURE__ */ me({
5867
5900
  }]), D = O(() => ({
5868
5901
  minPrice: d.value
5869
5902
  }));
5870
- function I(_) {
5871
- return _ != null && _.length && _.length > n.rules.item.maxVariant ? l("menu.product.form.variant.validation.max_variants", {
5903
+ function I(w) {
5904
+ return w != null && w.length && w.length > n.rules.item.maxVariant ? l("menu.product.form.variant.validation.max_variants", {
5872
5905
  max: n.rules.item.maxVariant
5873
5906
  }) : !0;
5874
5907
  }
5875
- return (_, R) => {
5908
+ return (w, R) => {
5876
5909
  const S = N("fm-button"), k = N("fm-icon"), $ = N("FmFormGroup"), B = N("fm-table");
5877
- return M(), H(Ge, {
5910
+ return A(), Y(Ge, {
5878
5911
  title: h(l)("menu.product.form.variant.title"),
5879
5912
  "sub-title": h(l)("menu.product.form.variant.subtitle")
5880
5913
  }, {
5881
- "append-title": P(() => [h(n).rules.item.variant ? (M(), H(S, {
5914
+ "append-title": V(() => [h(n).rules.item.variant ? (A(), Y(S, {
5882
5915
  key: 0,
5883
5916
  label: h(l)("menu.product.form.variant.add"),
5884
5917
  variant: "secondary",
5885
5918
  "prepend-icon": "add",
5886
5919
  onClick: y
5887
- }, null, 8, ["label"])) : ne("", !0)]),
5888
- default: P(() => {
5920
+ }, null, 8, ["label"])) : ie("", !0)]),
5921
+ default: V(() => {
5889
5922
  var C;
5890
- return [V("div", ws, [g($, {
5891
- "model-value": (C = _.form.variant) == null ? void 0 : C.variantGroupIds,
5923
+ return [P("div", Ss, [g($, {
5924
+ "model-value": (C = w.form.variant) == null ? void 0 : C.variantGroupIds,
5892
5925
  rules: [I]
5893
5926
  }, {
5894
- default: P(() => {
5927
+ default: V(() => {
5895
5928
  var F;
5896
5929
  return [g(h(Gi), {
5897
- "model-value": ((F = _.form.variant) == null ? void 0 : F.variantGroupIds) ?? [],
5930
+ "model-value": ((F = w.form.variant) == null ? void 0 : F.variantGroupIds) ?? [],
5898
5931
  class: "space-y-16",
5899
5932
  group: "variants",
5900
5933
  handle: ".handle",
5901
5934
  "item-key": "id",
5902
- "onUpdate:modelValue": f
5935
+ "onUpdate:modelValue": v
5903
5936
  }, {
5904
- item: P(({
5937
+ item: V(({
5905
5938
  element: T
5906
5939
  }) => {
5907
5940
  var L;
5908
- return [V("div", Ss, [g(S, {
5941
+ return [P("div", Cs, [g(S, {
5909
5942
  variant: h(Qe).Tertiary,
5910
5943
  class: "handle",
5911
5944
  "prepend-icon": "drag_handle"
5912
- }, null, 8, ["variant"]), V("div", Cs, [V("p", ks, de((L = m.value[T]) == null ? void 0 : L.name), 1), g(k, {
5945
+ }, null, 8, ["variant"]), P("div", ks, [P("p", xs, de((L = m.value[T]) == null ? void 0 : L.name), 1), g(k, {
5913
5946
  class: "cursor-pointer",
5914
5947
  name: "close",
5915
5948
  onClick: kt((ae) => {
5916
5949
  var z;
5917
- return Y(((z = _.form.variant) == null ? void 0 : z.variantGroupIds.filter((E) => E !== T)) ?? []);
5950
+ return H(((z = w.form.variant) == null ? void 0 : z.variantGroupIds.filter((E) => E !== T)) ?? []);
5918
5951
  }, ["stop"])
5919
5952
  }, null, 8, ["onClick"])])])];
5920
5953
  }),
@@ -5923,16 +5956,16 @@ const ds = /* @__PURE__ */ me({
5923
5956
  }),
5924
5957
  _: 1
5925
5958
  }, 8, ["model-value", "rules"]), g(mn, null, {
5926
- default: P(() => [x.value.length ? (M(), H(B, {
5959
+ default: V(() => [x.value.length ? (A(), Y(B, {
5927
5960
  key: 0,
5928
5961
  class: "w-full",
5929
- "column-defs": A.value,
5962
+ "column-defs": M.value,
5930
5963
  "column-visibility": D.value,
5931
5964
  "page-size": x.value.length ?? 0,
5932
5965
  "row-data": x.value ?? [],
5933
5966
  "hide-footer": "",
5934
5967
  "shrink-at": !1
5935
- }, null, 8, ["column-defs", "column-visibility", "page-size", "row-data"])) : ne("", !0)]),
5968
+ }, null, 8, ["column-defs", "column-visibility", "page-size", "row-data"])) : ie("", !0)]),
5936
5969
  _: 1
5937
5970
  })])];
5938
5971
  }),
@@ -5940,30 +5973,30 @@ const ds = /* @__PURE__ */ me({
5940
5973
  }, 8, ["title", "sub-title"]);
5941
5974
  };
5942
5975
  }
5943
- }), Rs = {
5976
+ }), As = {
5944
5977
  class: /* @__PURE__ */ Fe(["flex", "space-x-40", "max-w-[1200px] mx-auto w-full"])
5945
- }, As = {
5978
+ }, Ms = {
5946
5979
  key: 1,
5947
5980
  class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
5948
- }, Ms = {
5981
+ }, Os = {
5949
5982
  key: 3,
5950
5983
  class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
5951
- }, Os = {
5984
+ }, Fs = {
5952
5985
  key: 4,
5953
5986
  class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
5954
- }, Fs = {
5987
+ }, zs = {
5955
5988
  key: 6,
5956
5989
  class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
5957
- }, zs = {
5990
+ }, Is = {
5958
5991
  key: 7,
5959
5992
  class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
5960
- }, Is = {
5993
+ }, Es = {
5961
5994
  key: 9,
5962
5995
  class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
5963
- }, Es = {
5996
+ }, Ts = {
5964
5997
  key: 11,
5965
5998
  class: "w-full h-[2px] bg-fm-color-neutral-gray-100"
5966
- }, Ts = /* @__PURE__ */ me({
5999
+ }, Ds = /* @__PURE__ */ me({
5967
6000
  __name: "Form",
5968
6001
  props: {
5969
6002
  initialForm: {},
@@ -5992,12 +6025,12 @@ const ds = /* @__PURE__ */ me({
5992
6025
  ...Te.generator.initMenuV4Item(),
5993
6026
  category: t.categoryId
5994
6027
  }
5995
- ), v = te(null);
6028
+ ), f = te(null);
5996
6029
  Re(
5997
6030
  () => t.initialForm,
5998
6031
  async () => {
5999
6032
  if (t.initialForm)
6000
- v.value = await jn(
6033
+ f.value = await jn(
6001
6034
  a.state.menu,
6002
6035
  t.initialForm._id
6003
6036
  );
@@ -6012,14 +6045,14 @@ const ds = /* @__PURE__ */ me({
6012
6045
  a.selectCatalog(X), a.selectScheduler(G), await Ei(), b.update(p.value._id), setTimeout(() => {
6013
6046
  n("update:show", !1);
6014
6047
  }, 100);
6015
- }, w = O(() => {
6048
+ }, _ = O(() => {
6016
6049
  var X;
6017
6050
  return a.mapVariant((X = p.value.variant) == null ? void 0 : X.variantGroupIds);
6018
- }), f = te(null);
6051
+ }), v = te(null);
6019
6052
  Re(
6020
6053
  () => p.value.thumbnail,
6021
6054
  async (X) => {
6022
- X && (typeof X == "string" ? f.value = await xo(X, "thumbnail.jpg", "image/jpeg") : f.value = X);
6055
+ X && (typeof X == "string" ? v.value = await xo(X, "thumbnail.jpg", "image/jpeg") : v.value = X);
6023
6056
  },
6024
6057
  {
6025
6058
  immediate: !0
@@ -6031,7 +6064,7 @@ const ds = /* @__PURE__ */ me({
6031
6064
  [X]: G
6032
6065
  };
6033
6066
  };
6034
- async function Y() {
6067
+ async function H() {
6035
6068
  var X, G;
6036
6069
  m.value = p.value._id && U.value ? (await Wn(
6037
6070
  a.mergedMenu,
@@ -6046,7 +6079,7 @@ const ds = /* @__PURE__ */ me({
6046
6079
  ), K = O(() => {
6047
6080
  var X;
6048
6081
  return U.value ? p.value.category == "" || p.value.category == null && ((X = m.value) == null ? void 0 : X.category) == null : a.version === W.F_MENU_VERSION.enum.v4 && p.value.category == null;
6049
- }), A = O(() => o.itemAttributeSettings.value.length > 0 && !U.value);
6082
+ }), M = O(() => o.itemAttributeSettings.value.length > 0 && !U.value);
6050
6083
  function D() {
6051
6084
  var fe;
6052
6085
  const X = a.getSelectedTax(
@@ -6057,9 +6090,9 @@ const ds = /* @__PURE__ */ me({
6057
6090
  return pe ? In(pe.meta.rate) : "-";
6058
6091
  }
6059
6092
  function I() {
6060
- f.value = null, p.value.thumbnail = null;
6093
+ v.value = null, p.value.thumbnail = null;
6061
6094
  }
6062
- const _ = O(() => {
6095
+ const w = O(() => {
6063
6096
  var X, G, pe, fe, J, ui, ci, di, mi;
6064
6097
  return {
6065
6098
  title: r("menu.product.form.summary.title"),
@@ -6212,7 +6245,7 @@ const ds = /* @__PURE__ */ me({
6212
6245
  Re(() => {
6213
6246
  var X;
6214
6247
  return (X = p.value.price) == null ? void 0 : X.amount;
6215
- }, Y, { deep: !0 }), Re(
6248
+ }, H, { deep: !0 }), Re(
6216
6249
  () => d.value,
6217
6250
  (X) => {
6218
6251
  X && (p.value = t.initialForm ? ue(t.initialForm) : {
@@ -6221,7 +6254,7 @@ const ds = /* @__PURE__ */ me({
6221
6254
  });
6222
6255
  }
6223
6256
  ), at(() => {
6224
- Y();
6257
+ H();
6225
6258
  try {
6226
6259
  o.pushDataLayer(
6227
6260
  {
@@ -6250,14 +6283,14 @@ const ds = /* @__PURE__ */ me({
6250
6283
  }), n(
6251
6284
  "submit:form",
6252
6285
  En(ue(p.value), U.value),
6253
- f.value
6286
+ v.value
6254
6287
  ), c(), oe();
6255
6288
  }
6256
6289
  function ge() {
6257
6290
  c(), oe();
6258
6291
  }
6259
6292
  const { isAtMost: ze } = Pi(), re = te(null), gn = Ln(re);
6260
- return (X, G) => (M(), ie(Me, null, [
6293
+ return (X, G) => (A(), ne(Me, null, [
6261
6294
  ve(X.$slots, "trigger", Cn(kn({
6262
6295
  trigger: c
6263
6296
  }))),
@@ -6276,18 +6309,18 @@ const ds = /* @__PURE__ */ me({
6276
6309
  onOnPrimary: ce,
6277
6310
  onOnCancel: ge
6278
6311
  }, {
6279
- "append-title": P(() => [
6280
- h(ze)("sm") ? (M(), H(gi, {
6312
+ "append-title": V(() => [
6313
+ h(ze)("sm") ? (A(), Y(gi, {
6281
6314
  key: 0,
6282
6315
  variant: "dialog",
6283
- title: _.value.title,
6284
- items: _.value.items
6285
- }, null, 8, ["title", "items"])) : ne("", !0)
6316
+ title: w.value.title,
6317
+ items: w.value.items
6318
+ }, null, 8, ["title", "items"])) : ie("", !0)
6286
6319
  ]),
6287
- default: P(() => {
6320
+ default: V(() => {
6288
6321
  var pe, fe;
6289
6322
  return [
6290
- h(ze)("sm") ? ne("", !0) : (M(), H(gi, {
6323
+ h(ze)("sm") ? ie("", !0) : (A(), Y(gi, {
6291
6324
  key: 0,
6292
6325
  class: "fixed",
6293
6326
  style: xn({
@@ -6295,20 +6328,20 @@ const ds = /* @__PURE__ */ me({
6295
6328
  left: h(gn).right + "px"
6296
6329
  }),
6297
6330
  variant: "full",
6298
- title: _.value.title,
6299
- items: _.value.items
6331
+ title: w.value.title,
6332
+ items: w.value.items
6300
6333
  }, null, 8, ["style", "title", "items"])),
6301
- V("div", Rs, [
6302
- V("div", {
6334
+ P("div", As, [
6335
+ P("div", {
6303
6336
  ref_key: "formWrapper",
6304
6337
  ref: re,
6305
6338
  class: Fe(["flex-1 py-24 space-y-24", "xs:w-full"])
6306
6339
  }, [
6307
- v.value && (Object.keys(v.value.catalogs || {}).length > 0 || v.value.schedulers.length > 0) ? (M(), H(fo, {
6340
+ f.value && (Object.keys(f.value.catalogs || {}).length > 0 || f.value.schedulers.length > 0) ? (A(), Y(fo, {
6308
6341
  key: 0,
6309
- "linked-status": v.value,
6342
+ "linked-status": f.value,
6310
6343
  "onUpdate:catalogAndScheduler": y
6311
- }, null, 8, ["linked-status"])) : ne("", !0),
6344
+ }, null, 8, ["linked-status"])) : ie("", !0),
6312
6345
  g(Bn, { "menu-store": h(a) }, null, 8, ["menu-store"]),
6313
6346
  g(Je, {
6314
6347
  toggle: R.value,
@@ -6320,28 +6353,28 @@ const ds = /* @__PURE__ */ me({
6320
6353
  description: h(r)("menu.product.form.sections.general.description"),
6321
6354
  title: h(r)("menu.product.form.sections.general.title")
6322
6355
  }, {
6323
- default: P(() => [
6356
+ default: V(() => [
6324
6357
  g(Ya, {
6325
6358
  fallback: m.value,
6326
6359
  form: p.value,
6327
6360
  "is-addon": K.value,
6328
6361
  "is-override": U.value,
6329
6362
  "is-create": t.action === "add",
6330
- thumbnail: f.value,
6363
+ thumbnail: v.value,
6331
6364
  "onUpdate:form": x,
6332
- "onUpdate:thumbnail": G[0] || (G[0] = (J) => f.value = J),
6365
+ "onUpdate:thumbnail": G[0] || (G[0] = (J) => v.value = J),
6333
6366
  "onReset:thumbnail": I
6334
6367
  }, null, 8, ["fallback", "form", "is-addon", "is-override", "is-create", "thumbnail"])
6335
6368
  ]),
6336
6369
  _: 1
6337
6370
  }, 8, ["toggle", "disabled", "description", "title"]),
6338
- U.value ? ne("", !0) : (M(), ie("div", As)),
6339
- A.value ? (M(), H(Ge, {
6371
+ U.value ? ie("", !0) : (A(), ne("div", Ms)),
6372
+ M.value ? (A(), Y(Ge, {
6340
6373
  key: 2,
6341
6374
  title: h(r)("menu.product.form.sections.tagging.title"),
6342
6375
  "sub-title": h(r)("menu.product.form.sections.tagging.subtitle")
6343
6376
  }, {
6344
- default: P(() => [
6377
+ default: V(() => [
6345
6378
  g(h(Di), {
6346
6379
  entity: "item",
6347
6380
  "model-value": p.value.customAttributes || {},
@@ -6350,8 +6383,8 @@ const ds = /* @__PURE__ */ me({
6350
6383
  }, null, 8, ["model-value", "value-options"])
6351
6384
  ]),
6352
6385
  _: 1
6353
- }, 8, ["title", "sub-title"])) : ne("", !0),
6354
- A.value ? (M(), ie("div", Ms)) : ne("", !0),
6386
+ }, 8, ["title", "sub-title"])) : ie("", !0),
6387
+ M.value ? (A(), ne("div", Os)) : ie("", !0),
6355
6388
  g(Je, {
6356
6389
  toggle: $.value,
6357
6390
  "onUpdate:toggle": [
@@ -6362,7 +6395,7 @@ const ds = /* @__PURE__ */ me({
6362
6395
  description: h(r)("menu.product.form.sections.price.description"),
6363
6396
  title: h(r)("menu.product.form.sections.price.title")
6364
6397
  }, {
6365
- default: P(() => [
6398
+ default: V(() => [
6366
6399
  g(Jr, {
6367
6400
  fallback: m.value,
6368
6401
  form: p.value,
@@ -6373,8 +6406,8 @@ const ds = /* @__PURE__ */ me({
6373
6406
  ]),
6374
6407
  _: 1
6375
6408
  }, 8, ["toggle", "disabled", "description", "title"]),
6376
- s.value.print && !U.value ? (M(), ie("div", Os)) : ne("", !0),
6377
- s.value.print ? (M(), H(Je, {
6409
+ s.value.print && !U.value ? (A(), ne("div", Fs)) : ie("", !0),
6410
+ s.value.print ? (A(), Y(Je, {
6378
6411
  key: 5,
6379
6412
  toggle: E.value,
6380
6413
  "onUpdate:toggle": [
@@ -6385,11 +6418,11 @@ const ds = /* @__PURE__ */ me({
6385
6418
  disabled: "",
6386
6419
  title: "Update print"
6387
6420
  }, {
6388
- default: P(() => [
6421
+ default: V(() => [
6389
6422
  g(us, {
6390
6423
  fallback: m.value,
6391
6424
  form: p.value,
6392
- "full-combinations": w.value,
6425
+ "full-combinations": _.value,
6393
6426
  "is-addon": K.value,
6394
6427
  "is-override": U.value,
6395
6428
  "onUpdate:form": x,
@@ -6397,8 +6430,8 @@ const ds = /* @__PURE__ */ me({
6397
6430
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
6398
6431
  ]),
6399
6432
  _: 1
6400
- }, 8, ["toggle"])) : ne("", !0),
6401
- U.value ? ne("", !0) : (M(), ie("div", Fs)),
6433
+ }, 8, ["toggle"])) : ie("", !0),
6434
+ U.value ? ie("", !0) : (A(), ne("div", zs)),
6402
6435
  g(Je, {
6403
6436
  toggle: C.value,
6404
6437
  "onUpdate:toggle": [
@@ -6409,11 +6442,11 @@ const ds = /* @__PURE__ */ me({
6409
6442
  description: h(r)("menu.product.form.sections.variant.description"),
6410
6443
  title: h(r)("menu.product.form.sections.variant.title")
6411
6444
  }, {
6412
- default: P(() => [
6413
- g(xs, {
6445
+ default: V(() => [
6446
+ g(Rs, {
6414
6447
  fallback: m.value,
6415
6448
  form: p.value,
6416
- "full-combinations": w.value,
6449
+ "full-combinations": _.value,
6417
6450
  "is-addon": K.value,
6418
6451
  "is-override": U.value,
6419
6452
  "onUpdate:form": x,
@@ -6422,8 +6455,8 @@ const ds = /* @__PURE__ */ me({
6422
6455
  ]),
6423
6456
  _: 1
6424
6457
  }, 8, ["toggle", "disabled", "description", "title"]),
6425
- s.value.group && !U.value ? (M(), ie("div", zs)) : ne("", !0),
6426
- s.value.group ? (M(), H(Je, {
6458
+ s.value.group && !U.value ? (A(), ne("div", Is)) : ie("", !0),
6459
+ s.value.group ? (A(), Y(Je, {
6427
6460
  key: 8,
6428
6461
  toggle: Z.value,
6429
6462
  "onUpdate:toggle": [
@@ -6434,11 +6467,11 @@ const ds = /* @__PURE__ */ me({
6434
6467
  description: "Use a different group setting",
6435
6468
  title: "Update group"
6436
6469
  }, {
6437
- default: P(() => [
6470
+ default: V(() => [
6438
6471
  g(Pr, {
6439
6472
  fallback: m.value,
6440
6473
  form: p.value,
6441
- "full-combinations": w.value,
6474
+ "full-combinations": _.value,
6442
6475
  "is-addon": K.value,
6443
6476
  "is-override": U.value,
6444
6477
  "onUpdate:form": x,
@@ -6446,9 +6479,9 @@ const ds = /* @__PURE__ */ me({
6446
6479
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
6447
6480
  ]),
6448
6481
  _: 1
6449
- }, 8, ["toggle", "disabled"])) : ne("", !0),
6450
- s.value.inventory && !U.value ? (M(), ie("div", Is)) : ne("", !0),
6451
- s.value.inventory ? (M(), H(Je, {
6482
+ }, 8, ["toggle", "disabled"])) : ie("", !0),
6483
+ s.value.inventory && !U.value ? (A(), ne("div", Es)) : ie("", !0),
6484
+ s.value.inventory ? (A(), Y(Je, {
6452
6485
  key: 10,
6453
6486
  toggle: T.value,
6454
6487
  "onUpdate:toggle": [
@@ -6459,11 +6492,11 @@ const ds = /* @__PURE__ */ me({
6459
6492
  description: h(r)("menu.product.form.sections.inventory.description"),
6460
6493
  title: h(r)("menu.product.form.sections.inventory.title")
6461
6494
  }, {
6462
- default: P(() => [
6495
+ default: V(() => [
6463
6496
  g($r, {
6464
6497
  fallback: m.value,
6465
6498
  form: p.value,
6466
- "full-combinations": w.value,
6499
+ "full-combinations": _.value,
6467
6500
  "is-addon": K.value,
6468
6501
  "is-override": U.value,
6469
6502
  "onUpdate:form": x,
@@ -6471,9 +6504,9 @@ const ds = /* @__PURE__ */ me({
6471
6504
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
6472
6505
  ]),
6473
6506
  _: 1
6474
- }, 8, ["toggle", "disabled", "description", "title"])) : ne("", !0),
6475
- s.value.takeaway(p.value.category ?? ((pe = m.value) == null ? void 0 : pe.category)) && !U.value ? (M(), ie("div", Es)) : ne("", !0),
6476
- s.value.takeaway(p.value.category ?? ((fe = m.value) == null ? void 0 : fe.category)) ? (M(), H(Je, {
6507
+ }, 8, ["toggle", "disabled", "description", "title"])) : ie("", !0),
6508
+ s.value.takeaway(p.value.category ?? ((pe = m.value) == null ? void 0 : pe.category)) && !U.value ? (A(), ne("div", Ts)) : ie("", !0),
6509
+ s.value.takeaway(p.value.category ?? ((fe = m.value) == null ? void 0 : fe.category)) ? (A(), Y(Je, {
6477
6510
  key: 12,
6478
6511
  toggle: ae.value,
6479
6512
  "onUpdate:toggle": [
@@ -6484,11 +6517,11 @@ const ds = /* @__PURE__ */ me({
6484
6517
  description: h(r)("menu.product.form.sections.takeaway.description"),
6485
6518
  title: h(r)("menu.product.form.sections.takeaway.title")
6486
6519
  }, {
6487
- default: P(() => [
6488
- g(ds, {
6520
+ default: V(() => [
6521
+ g(ms, {
6489
6522
  fallback: m.value,
6490
6523
  form: p.value,
6491
- "full-combinations": w.value,
6524
+ "full-combinations": _.value,
6492
6525
  "is-addon": K.value,
6493
6526
  "is-override": U.value,
6494
6527
  "onUpdate:form": x,
@@ -6496,9 +6529,9 @@ const ds = /* @__PURE__ */ me({
6496
6529
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
6497
6530
  ]),
6498
6531
  _: 1
6499
- }, 8, ["toggle", "disabled", "description", "title"])) : ne("", !0)
6532
+ }, 8, ["toggle", "disabled", "description", "title"])) : ie("", !0)
6500
6533
  ], 512),
6501
- G[21] || (G[21] = V("div", { class: "w-[360px] xs:hidden sm:hidden" }, null, -1))
6534
+ G[21] || (G[21] = P("div", { class: "w-[360px] xs:hidden sm:hidden" }, null, -1))
6502
6535
  ])
6503
6536
  ];
6504
6537
  }),
@@ -6506,7 +6539,7 @@ const ds = /* @__PURE__ */ me({
6506
6539
  }, 8, ["title", "show", "primary-action", "secondary-actions"])
6507
6540
  ], 64));
6508
6541
  }
6509
- }), Ds = Ts;
6542
+ }), Ps = Ds;
6510
6543
  function vn(e, i) {
6511
6544
  var o, r, l, s;
6512
6545
  const t = (o = i.groups) == null ? void 0 : o.reduce((u, d) => {
@@ -6517,11 +6550,11 @@ function vn(e, i) {
6517
6550
  const n = t.map((u) => u._id);
6518
6551
  function a(u) {
6519
6552
  const d = t.map((c) => {
6520
- var v;
6521
- const m = u.find((b) => b._id === c._id), p = (v = c.items) == null ? void 0 : v.map((b) => {
6522
- var w;
6523
- const y = (w = m == null ? void 0 : m.items) == null ? void 0 : w.find(
6524
- (f) => f._id === b._id && f.combinationKey == b.combinationKey
6553
+ var f;
6554
+ const m = u.find((b) => b._id === c._id), p = (f = c.items) == null ? void 0 : f.map((b) => {
6555
+ var _;
6556
+ const y = (_ = m == null ? void 0 : m.items) == null ? void 0 : _.find(
6557
+ (v) => v._id === b._id && v.combinationKey == b.combinationKey
6525
6558
  );
6526
6559
  return {
6527
6560
  ...y || {},
@@ -6551,13 +6584,13 @@ function vn(e, i) {
6551
6584
  }
6552
6585
  return { ...i, groups: a(i.groups || []) };
6553
6586
  }
6554
- function Ps(e, i, t, n) {
6555
- const a = ue(i), o = t ? a.modules.catalog.find((m) => m._id === t) : null, r = n ? a.modules.scheduler.find((m) => m._id === n) : null, l = o ? ue(o) : void 0, s = t ? a.modules.catalog.filter((m) => m._id !== t) : [], u = r ? ue(r) : void 0, d = e.reduce((m, p) => (m[p._id] = Vs(p), m), {});
6587
+ function Vs(e, i, t, n) {
6588
+ const a = ue(i), o = t ? a.modules.catalog.find((m) => m._id === t) : null, r = n ? a.modules.scheduler.find((m) => m._id === n) : null, l = o ? ue(o) : void 0, s = t ? a.modules.catalog.filter((m) => m._id !== t) : [], u = r ? ue(r) : void 0, d = e.reduce((m, p) => (m[p._id] = Us(p), m), {});
6556
6589
  function c(m = []) {
6557
- const p = e.map((v) => v._id);
6590
+ const p = e.map((f) => f._id);
6558
6591
  return [
6559
- ...m.filter((v) => !p.includes(v._id)),
6560
- ...Object.values(d).flatMap((v) => v)
6592
+ ...m.filter((f) => !p.includes(f._id)),
6593
+ ...Object.values(d).flatMap((f) => f)
6561
6594
  ];
6562
6595
  }
6563
6596
  return l && n ? (l.override.scheduler = {
@@ -6588,12 +6621,12 @@ function Ps(e, i, t, n) {
6588
6621
  _id: a._id
6589
6622
  };
6590
6623
  }
6591
- function Vs(e) {
6624
+ function Us(e) {
6592
6625
  var n;
6593
6626
  const i = ue(e), t = (n = i.variant) == null ? void 0 : n.variantCombinations;
6594
6627
  return delete i.variant, delete i.thumbnail, [i, ...t || []];
6595
6628
  }
6596
- function Us(e, i) {
6629
+ function $s(e, i) {
6597
6630
  var n;
6598
6631
  return {
6599
6632
  ...i.find((a) => !a.combinationKey),
@@ -6605,36 +6638,36 @@ function Us(e, i) {
6605
6638
  };
6606
6639
  }
6607
6640
  const ni = Oi("item-manager", () => {
6608
- const e = ye(), i = De(), t = Le(), n = qe(i), a = Ze(n), o = Ii(), { t: r } = he(), l = (A) => {
6641
+ const e = ye(), i = De(), t = Le(), n = qe(i), a = Ze(n), o = Ii(), { t: r } = he(), l = (M) => {
6609
6642
  if (!o) throw new Error("No current instance found");
6610
- const { container: D } = Dn(Ds, o, {
6611
- ...A,
6643
+ const { container: D } = Dn(Ps, o, {
6644
+ ...M,
6612
6645
  autoShow: !0,
6613
6646
  "onUpdate:show": async (I) => {
6614
6647
  I || (Ut(null, D), D.remove());
6615
6648
  }
6616
6649
  });
6617
6650
  };
6618
- function s(A) {
6651
+ function s(M) {
6619
6652
  const { saveMenuWithThumbnail: D } = a;
6620
6653
  l({
6621
6654
  action: "add",
6622
- categoryId: A,
6623
- "onSubmit:form": async (I, _) => {
6655
+ categoryId: M,
6656
+ "onSubmit:form": async (I, w) => {
6624
6657
  I.inventoryBindings ?? (I.inventoryBindings = []), I.inventoryBindings.length === 0 && (I.inventoryBindings = null);
6625
6658
  const R = hi();
6626
- await D(I, ke.F_OPERATION_TYPE.create, R, _);
6659
+ await D(I, ke.F_OPERATION_TYPE.create, R, w);
6627
6660
  }
6628
6661
  });
6629
6662
  }
6630
- async function u(A, D, I) {
6663
+ async function u(M, D, I) {
6631
6664
  l({
6632
- initialForm: Us(A, D || []),
6665
+ initialForm: $s(M, D || []),
6633
6666
  action: "update",
6634
- "onSubmit:form": async (_) => {
6635
- _.inventoryBindings ?? (_.inventoryBindings = []), _.inventoryBindings.length === 0 && (_.inventoryBindings = null), await I(
6636
- Ps(
6637
- [_],
6667
+ "onSubmit:form": async (w) => {
6668
+ w.inventoryBindings ?? (w.inventoryBindings = []), w.inventoryBindings.length === 0 && (w.inventoryBindings = null), await I(
6669
+ Vs(
6670
+ [w],
6638
6671
  e.state.menu,
6639
6672
  e.state.currentCatalogId,
6640
6673
  e.state.currentSchedulerId
@@ -6643,41 +6676,41 @@ const ni = Oi("item-manager", () => {
6643
6676
  }
6644
6677
  });
6645
6678
  }
6646
- async function d(A) {
6679
+ async function d(M) {
6647
6680
  var S;
6648
- const D = e.currentCatalog, I = e.state.currentSchedulerId, _ = D.override.scheduler[I] ?? {}, R = (S = _ == null ? void 0 : _.items) == null ? void 0 : S.filter((k) => k._id === A._id);
6649
- await u(A, R, async (k) => {
6681
+ const D = e.currentCatalog, I = e.state.currentSchedulerId, w = D.override.scheduler[I] ?? {}, R = (S = w == null ? void 0 : w.items) == null ? void 0 : S.filter((k) => k._id === M._id);
6682
+ await u(M, R, async (k) => {
6650
6683
  const $ = k.modules.catalog.find(
6651
6684
  (B) => B._id === D._id
6652
6685
  );
6653
6686
  await new We($, e, a.updateMenu, t).update();
6654
6687
  });
6655
6688
  }
6656
- async function c(A) {
6689
+ async function c(M) {
6657
6690
  const D = e.currentCatalog;
6658
- await u(A, D.override.items[A._id], async (I) => {
6659
- const _ = I.modules.catalog.find(
6691
+ await u(M, D.override.items[M._id], async (I) => {
6692
+ const w = I.modules.catalog.find(
6660
6693
  (R) => R._id === D._id
6661
6694
  );
6662
- await new We(_, e, a.updateMenu, t).update();
6695
+ await new We(w, e, a.updateMenu, t).update();
6663
6696
  });
6664
6697
  }
6665
- async function m(A) {
6698
+ async function m(M) {
6666
6699
  const D = e.schedulers.find(
6667
- (_) => _._id === e.state.currentSchedulerId
6668
- ), I = D.items.filter((_) => _._id === A._id);
6669
- await u(A, I, async (_) => {
6670
- const R = _.modules.scheduler.find(
6700
+ (w) => w._id === e.state.currentSchedulerId
6701
+ ), I = D.items.filter((w) => w._id === M._id);
6702
+ await u(M, I, async (w) => {
6703
+ const R = w.modules.scheduler.find(
6671
6704
  (S) => S._id === D._id
6672
6705
  );
6673
6706
  await new _t(R, e, a.updateMenu, t).update();
6674
6707
  });
6675
6708
  }
6676
- async function p(A) {
6709
+ async function p(M) {
6677
6710
  var R, S;
6678
- const D = e.state.currentSchedulerId, I = ue(e.currentCatalog), _ = (S = ((R = I.override.scheduler[D]) == null ? void 0 : R.items) || []) == null ? void 0 : S.reduce((k, $) => {
6711
+ const D = e.state.currentSchedulerId, I = ue(e.currentCatalog), w = (S = ((R = I.override.scheduler[D]) == null ? void 0 : R.items) || []) == null ? void 0 : S.reduce((k, $) => {
6679
6712
  if ($.combinationKey) return [...k, $];
6680
- const B = A.find((C) => C._id === $._id);
6713
+ const B = M.find((C) => C._id === $._id);
6681
6714
  return B ? [...k, { ...$, price: B.price }] : [...k, $];
6682
6715
  }, []);
6683
6716
  I.override.scheduler = {
@@ -6685,15 +6718,15 @@ const ni = Oi("item-manager", () => {
6685
6718
  [D]: {
6686
6719
  ...I.override.scheduler[D],
6687
6720
  _id: D,
6688
- items: _
6721
+ items: w
6689
6722
  }
6690
6723
  }, await new We(I, e, a.updateMenu, t).update();
6691
6724
  }
6692
- async function v(A) {
6725
+ async function f(M) {
6693
6726
  var R;
6694
6727
  const D = ue(e.currentCatalog), I = (R = Object.entries(D.override.items)) == null ? void 0 : R.reduce(
6695
6728
  (S, [k, $]) => {
6696
- const B = A.find((F) => F._id === k);
6729
+ const B = M.find((F) => F._id === k);
6697
6730
  if (!B)
6698
6731
  return S[k] = $, S;
6699
6732
  const C = $.find((F) => !F.combinationKey);
@@ -6709,7 +6742,7 @@ const ni = Oi("item-manager", () => {
6709
6742
  ], S;
6710
6743
  },
6711
6744
  {}
6712
- ), { updateMenu: _ } = a;
6745
+ ), { updateMenu: w } = a;
6713
6746
  await new We(
6714
6747
  {
6715
6748
  ...D,
@@ -6719,15 +6752,15 @@ const ni = Oi("item-manager", () => {
6719
6752
  }
6720
6753
  },
6721
6754
  e,
6722
- _,
6755
+ w,
6723
6756
  t
6724
6757
  ).update();
6725
6758
  }
6726
- async function b(A) {
6727
- const D = ue(e.currentScheduler), I = D.items.reduce((_, R) => {
6728
- if (R.combinationKey) return [..._, R];
6729
- const S = A.find((k) => k._id === R._id);
6730
- return S ? [..._, { ...R, price: S.price }] : [..._, R];
6759
+ async function b(M) {
6760
+ const D = ue(e.currentScheduler), I = D.items.reduce((w, R) => {
6761
+ if (R.combinationKey) return [...w, R];
6762
+ const S = M.find((k) => k._id === R._id);
6763
+ return S ? [...w, { ...R, price: S.price }] : [...w, R];
6731
6764
  }, []);
6732
6765
  await new _t(
6733
6766
  {
@@ -6739,10 +6772,10 @@ const ni = Oi("item-manager", () => {
6739
6772
  t
6740
6773
  ).update();
6741
6774
  }
6742
- async function y(A) {
6743
- const D = A.reduce((_, R) => {
6775
+ async function y(M) {
6776
+ const D = M.reduce((w, R) => {
6744
6777
  const S = e.items.find((k) => k._id === R._id);
6745
- return S && _.push({
6778
+ return S && w.push({
6746
6779
  ...S,
6747
6780
  code: R.code ?? S.code,
6748
6781
  name: R.name || S.name,
@@ -6752,40 +6785,40 @@ const ni = Oi("item-manager", () => {
6752
6785
  category: R.category === void 0 ? S.category : R.category,
6753
6786
  position: R.position ?? S.position,
6754
6787
  additionalCategories: R.additionalCategories ?? S.additionalCategories
6755
- }), _;
6788
+ }), w;
6756
6789
  }, []), { updateMenu: I } = a;
6757
6790
  await I(
6758
- D.map((_) => ({
6791
+ D.map((w) => ({
6759
6792
  module: W.F_MENU_MODULE_V4_KEY.enum.item,
6760
6793
  operation: ke.F_OPERATION_TYPE.update,
6761
- data: _
6794
+ data: w
6762
6795
  })),
6763
6796
  `${D.length} products`
6764
6797
  );
6765
6798
  }
6766
- function w(A) {
6799
+ function _(M) {
6767
6800
  const { saveMenuWithThumbnail: D } = a;
6768
6801
  l({
6769
- initialForm: A,
6802
+ initialForm: M,
6770
6803
  action: "update",
6771
- "onSubmit:form": async (I, _) => {
6772
- const R = hi(A._id);
6773
- I.inventoryBindings ?? (I.inventoryBindings = []), I.inventoryBindings.length === 0 && (I.inventoryBindings = null), await D(I, ke.F_OPERATION_TYPE.update, R, _);
6804
+ "onSubmit:form": async (I, w) => {
6805
+ const R = hi(M._id);
6806
+ I.inventoryBindings ?? (I.inventoryBindings = []), I.inventoryBindings.length === 0 && (I.inventoryBindings = null), await D(I, ke.F_OPERATION_TYPE.update, R, w);
6774
6807
  }
6775
6808
  });
6776
6809
  }
6777
- async function f(A) {
6778
- const D = e.state.menu.modules.item.find((I) => I._id === A);
6779
- e.currentCatalog ? e.state.currentSchedulerId ? await d(D) : await c(D) : e.state.currentSchedulerId ? await m(D) : w(D);
6810
+ async function v(M) {
6811
+ const D = e.state.menu.modules.item.find((I) => I._id === M);
6812
+ e.currentCatalog ? e.state.currentSchedulerId ? await d(D) : await c(D) : e.state.currentSchedulerId ? await m(D) : _(D);
6780
6813
  }
6781
- async function x(A) {
6782
- e.currentCatalog ? e.currentScheduler ? await p(A) : await v(A) : (
6814
+ async function x(M) {
6815
+ e.currentCatalog ? e.currentScheduler ? await p(M) : await f(M) : (
6783
6816
  // If Main
6784
- e.currentScheduler ? await b(A) : await y(A)
6817
+ e.currentScheduler ? await b(M) : await y(M)
6785
6818
  );
6786
6819
  }
6787
- function Y(A) {
6788
- const { updateMenu: D } = a, I = A.length > 1 ? `${A.length} products` : A[0].name;
6820
+ function H(M) {
6821
+ const { updateMenu: D } = a, I = M.length > 1 ? `${M.length} products` : M[0].name;
6789
6822
  t.open({
6790
6823
  title: r("menu.common.dialog.remove.product.title"),
6791
6824
  message: r("menu.common.dialog.remove.product.message", { name: I }),
@@ -6800,50 +6833,50 @@ const ni = Oi("item-manager", () => {
6800
6833
  }
6801
6834
  }).onPrimary(async () => {
6802
6835
  await D(
6803
- A.map(({ _id: _ }) => ({
6836
+ M.map(({ _id: w }) => ({
6804
6837
  module: W.F_MENU_MODULE_V4_KEY.enum.item,
6805
6838
  operation: ke.F_OPERATION_TYPE.delete,
6806
- data: _
6839
+ data: w
6807
6840
  })),
6808
6841
  I,
6809
6842
  !0
6810
6843
  );
6811
- for (const _ of A)
6812
- _.thumbnail && await Tn.delete(_.thumbnail);
6844
+ for (const w of M)
6845
+ w.thumbnail && await Tn.delete(w.thumbnail);
6813
6846
  i.open({
6814
6847
  message: r("menu.common.dialog.remove.product.success"),
6815
6848
  type: "success"
6816
6849
  });
6817
6850
  });
6818
6851
  }
6819
- async function U(A) {
6852
+ async function U(M) {
6820
6853
  e.currentScheduler ? await new _t(
6821
6854
  e.currentScheduler,
6822
6855
  e,
6823
6856
  a.updateMenu,
6824
6857
  t
6825
- ).unlinkProduct(A.map((D) => D._id)) : e.currentCatalog ? await new We(
6858
+ ).unlinkProduct(M.map((D) => D._id)) : e.currentCatalog ? await new We(
6826
6859
  e.currentCatalog,
6827
6860
  e,
6828
6861
  a.updateMenu,
6829
6862
  t
6830
- ).unlinkProduct(A.map((D) => D._id)) : Y(A);
6863
+ ).unlinkProduct(M.map((D) => D._id)) : H(M);
6831
6864
  }
6832
- async function K(A) {
6865
+ async function K(M) {
6833
6866
  const { updateMenu: D } = a;
6834
6867
  await D(
6835
6868
  {
6836
6869
  module: W.F_MENU_MODULE_V4_KEY.enum.item,
6837
6870
  operation: ke.F_OPERATION_TYPE.rearrange,
6838
- data: A
6871
+ data: M
6839
6872
  },
6840
6873
  "Products"
6841
6874
  );
6842
6875
  }
6843
6876
  return {
6844
- initDynamicGroupItem: (A) => vn(e, A),
6877
+ initDynamicGroupItem: (M) => vn(e, M),
6845
6878
  create: s,
6846
- update: f,
6879
+ update: v,
6847
6880
  updateMany: x,
6848
6881
  deleteItem: U,
6849
6882
  rearrange: K
@@ -6865,7 +6898,7 @@ export {
6865
6898
  Yt as d,
6866
6899
  qt as e,
6867
6900
  cn as f,
6868
- Ps as g,
6901
+ Vs as g,
6869
6902
  gr as h,
6870
6903
  Ki as i,
6871
6904
  xt as j,
@@ -6873,12 +6906,12 @@ export {
6873
6906
  mn as l,
6874
6907
  Wi as m,
6875
6908
  dn as n,
6876
- Us as o,
6909
+ $s as o,
6877
6910
  pn as p,
6878
6911
  cs as q,
6879
6912
  oo as r,
6880
6913
  sr as s,
6881
- fl as t,
6914
+ vl as t,
6882
6915
  ni as u,
6883
6916
  Co as v,
6884
6917
  ko as w,