@feedmepos/mf-menu 0.32.56 → 0.32.57-dev.2

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 (73) hide show
  1. package/dist/{App-BUePFRjb.js → App-CE5s0l9A.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-oPq3AcV2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DZ5sZWpU.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-r2W9cuVe.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-B0POr6JV.js} +2 -2
  4. package/dist/{Catalog-uo0vO8uy.js → Catalog-CY6RvjyS.js} +6 -6
  5. package/dist/{Category-CHN6aSPS.js → Category-BoVnd_-a.js} +10 -10
  6. package/dist/{Category-BvetZzck.js → Category-DIpJlX_N.js} +13 -13
  7. package/dist/{CookingGuide-DU8D0T0w.js → CookingGuide-CHzasZA9.js} +4 -4
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DIxKLpe8.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DIhsGYRl.js} +1 -1
  9. package/dist/{Group-Cd1OoALN.js → Group-CwBojMky.js} +1 -1
  10. package/dist/{Group-BFGFyGhC.js → Group-SUmVQxSU.js} +3 -3
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-Dyb9On55.js → Group.vue_vue_type_script_setup_true_lang-BBqXiV3r.js} +57 -58
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-XcNt0ZBv.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CcQdvzMy.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dw3IXPUL.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C8VMeXoW.js} +193 -190
  14. package/dist/{Ingredient-CXU04qIu.js → Ingredient-DmsJNTi3.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-q9DVgfMD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CZ3Ti5o-.js} +2 -2
  16. package/dist/{LinkProductSideSheet-CaFKMMSd.js → LinkProductSideSheet-D8Dvdhk0.js} +3 -3
  17. package/dist/{MenuSetting-EeJdFNfx.js → MenuSetting-CmFx4CKw.js} +6 -6
  18. package/dist/{OrderPacing-Db4P-2ea.js → OrderPacing-CFuteZjm.js} +5 -5
  19. package/dist/{PrintRoute-CSScKjFa.js → PrintRoute-CeHNsLcv.js} +4 -4
  20. package/dist/{Product-tvbYvK5u.js → Product-bJfbi1yz.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-BQ_PgMDP.js → Product.vue_vue_type_script_setup_true_lang-kvqrUjei.js} +66 -66
  22. package/dist/{ProductInternalTools-D2rmgEby.js → ProductInternalTools-BkKbXFdG.js} +16 -16
  23. package/dist/{Products-WPvLY_wr.js → Products-Bv9gINb8.js} +24 -24
  24. package/dist/{Publish-BJ9rz75C.js → Publish-CSMkGRiV.js} +3 -3
  25. package/dist/{Recipe-BMRTd58L.js → Recipe-CDK1f07t.js} +4 -4
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BefgcG34.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-hYs_2e94.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DlzIboPc.js → RuleView.vue_vue_type_script_setup_true_lang-DdSe-i8f.js} +187 -187
  28. package/dist/{Scheduler-CHQ5YcBq.js → Scheduler-Ce6qK5xo.js} +3 -3
  29. package/dist/{ServingSequence-BtXSEzfn.js → ServingSequence-BSX_g50j.js} +3 -3
  30. package/dist/{Setting-BnXj1uTa.js → Setting-BNS9ggtX.js} +5 -5
  31. package/dist/{Subcategory-miGPIoku.js → Subcategory-62g1JEwl.js} +5 -5
  32. package/dist/{Takeaway-DtVvfRQy.js → Takeaway-DR0Ax44B.js} +1 -1
  33. package/dist/{Takeaway-zaChLDgt.js → Takeaway-f4VO0ZJ-.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BFnbiGsG.js → Takeaway.vue_vue_type_script_setup_true_lang-B3UE1p7X.js} +5 -5
  35. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CNYxe969.js → Thumbnail.vue_vue_type_script_setup_true_lang-CTw2lKns.js} +4 -4
  36. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-D4fWF46n.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-hd6JGri0.js} +1 -1
  37. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DLqeQRkH.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BRXHWG5s.js} +2 -2
  38. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ClDRf-88.js +5986 -0
  39. package/dist/{Unit-BaLVANd9.js → Unit-DnrLxe1V.js} +2 -2
  40. package/dist/{Variant-Bnb4SllS.js → Variant-DM2r3Of9.js} +3 -3
  41. package/dist/{_id_-btH88hnV.js → _id_-BhFeSJIu.js} +9 -9
  42. package/dist/{app-D1a9CqKF.js → app-CO3nuOc3.js} +1 -1
  43. package/dist/{app-BO16t-ps.js → app-DH7q5VuL.js} +32 -32
  44. package/dist/app.js +1 -1
  45. package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +2 -0
  46. package/dist/apps/mf-menu/src/manager/menu/circularLink.d.ts +3 -0
  47. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +1 -2
  48. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/assets/{linked-status-zxrRiX3x.js → linked-status-BR-paOgW.js} +2 -2
  50. package/dist/assets/{menu-export-DXB8Py6r.js → menu-export-Dwpl4c_S.js} +4 -4
  51. package/dist/assets/{override-menu-CEIJGR_x.js → override-menu-BS1DhRTo.js} +2 -2
  52. package/dist/assets/{validate-menu-DN3P-OR7.js → validate-menu-B-YCNUDR.js} +2 -2
  53. package/dist/{catalog-COu1SO_p.js → catalog-DN1unMjl.js} +1 -1
  54. package/dist/{catalogSetting-D34fLwdB.js → catalogSetting-CI8dXYw5.js} +1 -1
  55. package/dist/{currency-DlfcFoj5.js → currency-BFqLFFOP.js} +1 -1
  56. package/dist/{dayjs.min-xM9KAjrx.js → dayjs.min-BXDB3ec6.js} +2 -2
  57. package/dist/{index-B5d_uvVc.js → index-CCKQLhW1.js} +4 -4
  58. package/dist/{index-ByEp1JD0.js → index-CYexEfd8.js} +5 -5
  59. package/dist/{index.vue_vue_type_script_setup_true_lang-DAJSG8i1.js → index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js} +5 -5
  60. package/dist/{item-CtfWra_w.js → item-eua4dBDT.js} +516 -488
  61. package/dist/{jszip.min-CNLaYb3p.js → jszip.min-C10zcIsO.js} +3 -3
  62. package/dist/{memberPricing-DSqwOAgM.js → memberPricing-BlITNLhE.js} +1 -1
  63. package/dist/{menu-DUsES-YM.js → menu-C4vsCvFL.js} +1 -1
  64. package/dist/menuV2-DB-VttRA.js +1023 -0
  65. package/dist/{order_pacing-B5a8Fch-.js → order_pacing-CDQ6wUL_.js} +5 -5
  66. package/dist/{priceTier-bxvu4c84.js → priceTier-pJMZysfK.js} +1 -1
  67. package/dist/{rules-CTd3QZhN.js → rules-BScEYhiY.js} +3 -3
  68. package/dist/{scheduler-DIl9SPsA.js → scheduler-BTiyl-EY.js} +4 -4
  69. package/dist/{toExcel-CUAEPhEv.js → toExcel-CSdnEWqk.js} +2 -2
  70. package/dist/{unit-DThoovpF.js → unit-BcPS3VM3.js} +2 -2
  71. package/package.json +1 -1
  72. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DUxEgL0r.js +0 -5974
  73. package/dist/menuV2-BaY8Z_1c.js +0 -1055
@@ -1,38 +1,38 @@
1
1
  import { defineStore as ai } from "pinia";
2
- import { defineComponent as pe, resolveComponent as U, createElementBlock as Y, createBlock as X, openBlock as k, createElementVNode as F, createVNode as h, toDisplayString as ae, Fragment as ve, renderList as Re, h as Me, ref as H, computed as T, watch as xe, unref as m, renderSlot as Ve, withCtx as P, createCommentVNode as ne, Transition as Gi, normalizeClass as Ne, resolveDynamicComponent as Bt, withDirectives as ut, vShow as Jt, mergeProps as ri, withModifiers as zt, onMounted as wt, onUnmounted as Ki, createTextVNode as jt, getCurrentInstance as zn, render as Gt, resolveDirective as Kt, markRaw as Wi, mergeModels as Bn, useModel as Hi, nextTick as si, normalizeProps as Yi, guardReactiveProps as qi, normalizeStyle as Xi } from "vue";
3
- import { J as Ie, K as Pe, U as Te, as as Zi, au as Qi, a0 as li, G as _e, A as Ye, R as Se, z as Le, X as Ji, u as Fe, H as ze, B as nt, P as it, a2 as eo, y as pt, av as to, M as Wt, N as yn, O as jn, Q as no, T as io, V as oo, W as mn, am as ao, Y as ro } from "./index.vue_vue_type_script_setup_true_lang-DAJSG8i1.js";
2
+ import { defineComponent as pe, resolveComponent as U, createElementBlock as Y, createBlock as X, openBlock as k, createElementVNode as F, createVNode as h, toDisplayString as ae, Fragment as ve, renderList as Ie, h as Me, ref as H, computed as T, watch as xe, unref as m, renderSlot as Ve, withCtx as R, createCommentVNode as ne, Transition as Gi, normalizeClass as Ne, resolveDynamicComponent as Bt, withDirectives as ut, vShow as Jt, mergeProps as ri, withModifiers as zt, onMounted as wt, onUnmounted as Ki, createTextVNode as jt, getCurrentInstance as zn, render as Gt, resolveDirective as Kt, markRaw as Wi, mergeModels as Bn, useModel as Hi, nextTick as si, normalizeProps as Yi, guardReactiveProps as qi, normalizeStyle as Xi } from "vue";
3
+ import { J as Pe, K as Re, U as Te, as as Zi, au as Qi, a0 as li, G as _e, A as Ye, R as Se, z as Le, X as Ji, u as Fe, H as ze, B as nt, P as it, a2 as eo, y as pt, av as to, M as Wt, N as yn, O as jn, Q as no, T as io, V as oo, W as mn, am as ao, Y as ro } from "./index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js";
4
4
  import { useI18n as fe, useCoreStore as xt, CustomAttributesForm as ui } from "@feedmepos/mf-common";
5
5
  import { useDialog as Ze, useSnackbar as qe, components as Ae, useDialogChild as en, FmButtonVariant as je, FmButtonColorThemeVariant as Je, useBreakpoints as ci } from "@feedmepos/ui-library";
6
- import { C as rt } from "./catalog-COu1SO_p.js";
6
+ import { C as rt } from "./catalog-DN1unMjl.js";
7
7
  import { c as di } from "./createComponentProgrammatically-Bt2rn1IQ.js";
8
8
  import { a as Gn, _ as Ft } from "./tooltip-B5BiPMx9.js";
9
- import { H as so, L as lo } from "./LinkProductSideSheet-CaFKMMSd.js";
10
- import { u as uo, _ as Be, a as co } from "./RuleView.vue_vue_type_script_setup_true_lang-DlzIboPc.js";
9
+ import { H as so, L as lo } from "./LinkProductSideSheet-D8Dvdhk0.js";
10
+ import { u as uo, _ as Be, a as co } from "./RuleView.vue_vue_type_script_setup_true_lang-DdSe-i8f.js";
11
11
  import { s as _n, F as mo, _ as po } from "./index-CisutoS9.js";
12
- import { e as fo } from "./app-BO16t-ps.js";
12
+ import { e as fo } from "./app-DH7q5VuL.js";
13
13
  import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- import { g as mi, b as ho, c as vo, a as go, m as bo } from "./menuV2-BaY8Z_1c.js";
14
+ import { g as mi, a as ho, m as vo } from "./menuV2-DB-VttRA.js";
15
15
  import { useAppStore as tn, RemyButton as Ht } from "@feedmepos/mf-remy-panel";
16
16
  import { _ as ct } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
17
- import { u as yo, r as _o } from "./rules-CTd3QZhN.js";
17
+ import { u as go, r as bo } from "./rules-BScEYhiY.js";
18
18
  import { u as At } from "./discardConfirm-BHni0LNu.js";
19
- import { _ as pi, a as Yt, b as qt, c as Xt } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-D4fWF46n.js";
19
+ import { _ as pi, a as Yt, b as qt, c as Xt } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-hd6JGri0.js";
20
20
  import { a as wn, g as mt } from "./translation-fNx6yEpy.js";
21
21
  import { c as Zt } from "./object-DVUNCr7w.js";
22
- import { _ as In } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DLqeQRkH.js";
23
- import { u as wo } from "./menu-DUsES-YM.js";
22
+ import { _ as Pn } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BRXHWG5s.js";
23
+ import { u as yo } from "./menu-C4vsCvFL.js";
24
24
  import { c as yt } from "./check-C9mY6LiX.js";
25
- import { _ as lt, l as kn, T as ko } from "./index-ByEp1JD0.js";
26
- import { useInventoryStore as fi, InventoryBindingForm as Co, InventoryBindingSummary as So } from "@feedmepos/mf-inventory-portal";
27
- import { f as Xe } from "./currency-DlfcFoj5.js";
28
- import { u as nn } from "./memberPricing-DSqwOAgM.js";
29
- import { u as hi } from "./priceTier-bxvu4c84.js";
30
- import { u as xo } from "./search-BAPEUu1R.js";
31
- import { c as Ao } from "./string-DpfFixWH.js";
25
+ import { _ as lt, l as kn, T as _o } from "./index-CYexEfd8.js";
26
+ import { useInventoryStore as fi, InventoryBindingForm as wo, InventoryBindingSummary as ko } from "@feedmepos/mf-inventory-portal";
27
+ import { f as Xe } from "./currency-BFqLFFOP.js";
28
+ import { u as nn } from "./memberPricing-BlITNLhE.js";
29
+ import { u as hi } from "./priceTier-pJMZysfK.js";
30
+ import { u as Co } from "./search-BAPEUu1R.js";
31
+ import { c as So } from "./string-DpfFixWH.js";
32
32
  import { d as vi } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
33
- import { _ as Vo } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-oPq3AcV2.js";
34
- import { u as To, a as Fo } from "./order_pacing-B5a8Fch-.js";
35
- import { V as Kn } from "./index-B5d_uvVc.js";
33
+ import { _ as xo } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DZ5sZWpU.js";
34
+ import { u as Ao, a as Vo } from "./order_pacing-CDQ6wUL_.js";
35
+ import { V as Kn } from "./index-CCKQLhW1.js";
36
36
  class Lt {
37
37
  constructor(n, t, i, a) {
38
38
  this.scheduler = n, this.menuStore = t, this.updateMenu = i, this.dialog = a;
@@ -41,8 +41,8 @@ class Lt {
41
41
  this.promptDialog().onPrimary(async (n) => {
42
42
  await this.updateMenu(
43
43
  {
44
- module: Pe.enum.scheduler,
45
- operation: Ie.F_OPERATION_TYPE.create,
44
+ module: Re.enum.scheduler,
45
+ operation: Pe.F_OPERATION_TYPE.create,
46
46
  data: n
47
47
  },
48
48
  n.name
@@ -55,8 +55,8 @@ class Lt {
55
55
  async update() {
56
56
  this.scheduler && await this.updateMenu(
57
57
  {
58
- module: Pe.enum.scheduler,
59
- operation: Ie.F_OPERATION_TYPE.update,
58
+ module: Re.enum.scheduler,
59
+ operation: Pe.F_OPERATION_TYPE.update,
60
60
  data: this.scheduler
61
61
  },
62
62
  this.scheduler.name
@@ -78,8 +78,8 @@ class Lt {
78
78
  }).onPrimary(async () => {
79
79
  await this.updateMenu(
80
80
  {
81
- module: Pe.enum.scheduler,
82
- operation: Ie.F_OPERATION_TYPE.delete,
81
+ module: Re.enum.scheduler,
82
+ operation: Pe.F_OPERATION_TYPE.delete,
83
83
  data: n._id
84
84
  },
85
85
  n.name,
@@ -251,7 +251,7 @@ function on(e, n) {
251
251
  }
252
252
  return Se.enum.NORMAL;
253
253
  }
254
- function Mo(e) {
254
+ function To(e) {
255
255
  return [...new Set(e.map((t) => t._id))].reduce((t, i) => {
256
256
  const a = e.filter((l) => l._id === i), { base: o, variants: r } = a.reduce(
257
257
  (l, s) => {
@@ -394,17 +394,17 @@ class bi {
394
394
  const a = this.menuStore.state.menu.modules.item, o = this.menuStore.state.menu.modules.group, r = this.menuStore.items, l = this.menuStore.rules.group.linkAddonName;
395
395
  function s(u, d) {
396
396
  const c = u.items.reduce((f, v) => {
397
- var I, D, O, y;
397
+ var P, D, O, y;
398
398
  const S = a.find((M) => v._id === M._id);
399
399
  if (!S && t) return f;
400
400
  const g = v.combinationKey ? {
401
- ...(I = S == null ? void 0 : S.variant) == null ? void 0 : I.variantCombinations.find(
401
+ ...(P = S == null ? void 0 : S.variant) == null ? void 0 : P.variantCombinations.find(
402
402
  (M) => M.combinationKey === v.combinationKey
403
403
  ),
404
404
  name: Ji(Fe().variants, ((D = S == null ? void 0 : S.variant) == null ? void 0 : D.variantGroupIds) || [])[v.combinationKey]
405
405
  } : S, b = (O = o.find((M) => M._id === u._id)) == null ? void 0 : O.items.find((M) => M._id === v._id && M.combinationKey === v.combinationKey), A = !t && !v.combinationKey, V = (y = d.find(
406
406
  (M) => M._id == v._id && M.combinationKey == v.combinationKey
407
- )) == null ? void 0 : y.price, B = l ? null : g == null ? void 0 : g.name, x = v.name || (b == null ? void 0 : b.name) || B || null, C = (g == null ? void 0 : g.name) || null, _ = v.name_locale ?? (b == null ? void 0 : b.name_locale) ?? (g == null ? void 0 : g.name_locale) ?? null, R = {
407
+ )) == null ? void 0 : y.price, B = l ? null : g == null ? void 0 : g.name, x = v.name || (b == null ? void 0 : b.name) || B || null, C = (g == null ? void 0 : g.name) || null, _ = v.name_locale ?? (b == null ? void 0 : b.name_locale) ?? (g == null ? void 0 : g.name_locale) ?? null, I = {
408
408
  ...v,
409
409
  name: x,
410
410
  name_locale: _,
@@ -418,12 +418,12 @@ class bi {
418
418
  priceTiers: v.priceTiers,
419
419
  priceTiers_variant: v.priceTiers_variant
420
420
  };
421
- return [...f, R];
421
+ return [...f, I];
422
422
  }, []), p = on(a, u.items);
423
423
  return {
424
424
  ...u,
425
425
  type: p,
426
- items: Mo(c),
426
+ items: To(c),
427
427
  itemsLinked: r.filter((f) => f.groups.some(({ _id: v }) => v === u._id)).map((f) => f._id)
428
428
  };
429
429
  }
@@ -434,8 +434,8 @@ class bi {
434
434
  }
435
435
  async sortGroups(n) {
436
436
  const t = {
437
- module: Pe.enum.group,
438
- operation: Ie.F_OPERATION_TYPE.rearrange,
437
+ module: Re.enum.group,
438
+ operation: Pe.F_OPERATION_TYPE.rearrange,
439
439
  data: n.map((i) => i._id)
440
440
  };
441
441
  await this.updateMenu(t, "Groups");
@@ -447,15 +447,15 @@ class bi {
447
447
  items: (s.items ?? []).map((u) => ({ ...u, _id: "" }))
448
448
  }, r), {}));
449
449
  const a = gi(t), o = {
450
- module: Pe.enum.group,
451
- operation: Ie.F_OPERATION_TYPE.create,
450
+ module: Re.enum.group,
451
+ operation: Pe.F_OPERATION_TYPE.create,
452
452
  data: {
453
453
  ...a.group,
454
454
  name: `${n.name} clone`
455
455
  },
456
456
  link: [
457
457
  {
458
- module: Pe.enum.item,
458
+ module: Re.enum.item,
459
459
  id: "",
460
460
  data: a.linkItems
461
461
  }
@@ -466,8 +466,8 @@ class bi {
466
466
  async deleteGroup(n) {
467
467
  n.itemsLinked.length > 0 && await this.applyItems(n, []);
468
468
  const t = {
469
- module: Pe.enum.group,
470
- operation: Ie.F_OPERATION_TYPE.delete,
469
+ module: Re.enum.group,
470
+ operation: Pe.F_OPERATION_TYPE.delete,
471
471
  data: n._id
472
472
  };
473
473
  await this.updateMenu(t, n.name);
@@ -497,8 +497,8 @@ class bi {
497
497
  (d) => d._id === s
498
498
  );
499
499
  return {
500
- module: Pe.enum.item,
501
- operation: Ie.F_OPERATION_TYPE.update,
500
+ module: Re.enum.item,
501
+ operation: Pe.F_OPERATION_TYPE.update,
502
502
  id: s,
503
503
  data: a(this.menuStore, u, !t.includes(s))
504
504
  };
@@ -515,19 +515,19 @@ function yi(e) {
515
515
  const n = [];
516
516
  return e.link() || (n.push("name"), n.push("min"), n.push("max"), n.push("stackable")), e.type || n.push("type"), n;
517
517
  }
518
- function zo(e, n) {
518
+ function Fo(e, n) {
519
519
  if (!e)
520
520
  return [];
521
521
  const t = ["code"];
522
522
  return e.priceEdit || t.push("price"), e.isDefault(n) || t.push("isDefault"), e.name(n) || t.push("name"), t;
523
523
  }
524
- function Io(e, n) {
524
+ function Mo(e, n) {
525
525
  const t = _e(e);
526
526
  return yi(n).forEach((o) => {
527
527
  delete t[o];
528
528
  }), (t.items ?? []).forEach((o) => {
529
529
  const r = o.combinationKey ?? null;
530
- zo(
530
+ Fo(
531
531
  n,
532
532
  r
533
533
  ).forEach((s) => {
@@ -535,10 +535,10 @@ function Io(e, n) {
535
535
  });
536
536
  }), t;
537
537
  }
538
- const Po = {
538
+ const zo = {
539
539
  key: 0,
540
540
  class: "ml-40 w-[320px] fm-corner-radius-lg p-16 border border-fm-color-neutral-gray-200 space-y-4"
541
- }, Ro = { class: "fm-typo-en-title-sm-600" }, Wn = /* @__PURE__ */ pe({
541
+ }, Po = { class: "fm-typo-en-title-sm-600" }, Wn = /* @__PURE__ */ pe({
542
542
  __name: "Summary",
543
543
  props: {
544
544
  title: {},
@@ -562,10 +562,10 @@ const Po = {
562
562
  }
563
563
  return (a, o) => {
564
564
  const r = U("FmButton");
565
- return n.variant === "full" ? (k(), Y("div", Po, [
566
- F("div", Ro, ae(a.title), 1),
565
+ return n.variant === "full" ? (k(), Y("div", zo, [
566
+ F("div", Po, ae(a.title), 1),
567
567
  h(so),
568
- (k(!0), Y(ve, null, Re(a.items, (l) => (k(), X(Gn, {
568
+ (k(!0), Y(ve, null, Ie(a.items, (l) => (k(), X(Gn, {
569
569
  key: l.name,
570
570
  name: l.name,
571
571
  value: l.value || "--"
@@ -578,7 +578,7 @@ const Po = {
578
578
  }));
579
579
  };
580
580
  }
581
- }), Oo = { class: "space-y-24 p-16 border-fm-color-neutral-gray-200 fm-corner-radius-lg border" }, $o = { class: "space-y-4" }, Do = { class: "fm-typo-en-title-sm-600" }, Eo = { class: "text-fm-color-typo-secondary" }, Uo = { class: "flex gap-16" }, Lo = { class: "flex-1" }, No = { class: "flex-1" }, Bo = /* @__PURE__ */ pe({
581
+ }), Ro = { class: "space-y-24 p-16 border-fm-color-neutral-gray-200 fm-corner-radius-lg border" }, Io = { class: "space-y-4" }, Oo = { class: "fm-typo-en-title-sm-600" }, $o = { class: "text-fm-color-typo-secondary" }, Do = { class: "flex gap-16" }, Eo = { class: "flex-1" }, Uo = { class: "flex-1" }, Lo = /* @__PURE__ */ pe({
582
582
  __name: "CatalogSchedulerSelector",
583
583
  props: {
584
584
  linkedStatus: {}
@@ -629,13 +629,13 @@ const Po = {
629
629
  }
630
630
  ), (p, f) => {
631
631
  const v = U("FmSelect");
632
- return k(), Y("div", Oo, [
633
- F("div", $o, [
634
- F("div", Do, ae(m(a)("menu.catalog_scheduler.title")), 1),
635
- F("div", Eo, ae(m(a)("menu.catalog_scheduler.subtitle")), 1)
632
+ return k(), Y("div", Ro, [
633
+ F("div", Io, [
634
+ F("div", Oo, ae(m(a)("menu.catalog_scheduler.title")), 1),
635
+ F("div", $o, ae(m(a)("menu.catalog_scheduler.subtitle")), 1)
636
636
  ]),
637
- F("div", Uo, [
638
- F("div", Lo, [
637
+ F("div", Do, [
638
+ F("div", Eo, [
639
639
  h(v, {
640
640
  label: m(a)("menu.common.labels.catalog"),
641
641
  items: l.value,
@@ -643,7 +643,7 @@ const Po = {
643
643
  "onUpdate:modelValue": f[0] || (f[0] = (S) => r.value = S)
644
644
  }, null, 8, ["label", "items", "modelValue"])
645
645
  ]),
646
- F("div", No, [
646
+ F("div", Uo, [
647
647
  h(v, {
648
648
  label: m(a)("menu.common.labels.scheduler"),
649
649
  items: d.value,
@@ -655,10 +655,10 @@ const Po = {
655
655
  ]);
656
656
  };
657
657
  }
658
- }), jo = { class: "flex items-center justify-between" }, Go = { class: "space-y-4 flex-1" }, Ko = { class: "fm-typo-en-title-sm-600" }, Wo = {
658
+ }), No = { class: "flex items-center justify-between" }, Bo = { class: "space-y-4 flex-1" }, jo = { class: "fm-typo-en-title-sm-600" }, Go = {
659
659
  key: 0,
660
660
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
661
- }, Ho = { key: 0 }, Yo = /* @__PURE__ */ pe({
661
+ }, Ko = { key: 0 }, Wo = /* @__PURE__ */ pe({
662
662
  __name: "ToggleCard",
663
663
  props: {
664
664
  title: {},
@@ -676,11 +676,11 @@ const Po = {
676
676
  class: "p-16 space-y-24",
677
677
  variant: "outlined"
678
678
  }, {
679
- default: P(() => [
680
- F("div", jo, [
681
- F("div", Go, [
682
- F("p", Ko, ae(i.title), 1),
683
- i.description ? (k(), Y("p", Wo, ae(i.description), 1)) : ne("", !0)
679
+ default: R(() => [
680
+ F("div", No, [
681
+ F("div", Bo, [
682
+ F("p", jo, ae(i.title), 1),
683
+ i.description ? (k(), Y("p", Go, ae(i.description), 1)) : ne("", !0)
684
684
  ]),
685
685
  h(o, {
686
686
  "model-value": i.toggle,
@@ -688,8 +688,8 @@ const Po = {
688
688
  }, null, 8, ["model-value"])
689
689
  ]),
690
690
  h(Gi, { name: "expand" }, {
691
- default: P(() => [
692
- i.toggle ? (k(), Y("div", Ho, [
691
+ default: R(() => [
692
+ i.toggle ? (k(), Y("div", Ko, [
693
693
  Ve(i.$slots, "default", {}, void 0, !0)
694
694
  ])) : ne("", !0)
695
695
  ]),
@@ -700,7 +700,34 @@ const Po = {
700
700
  }));
701
701
  };
702
702
  }
703
- }), ht = /* @__PURE__ */ bt(Yo, [["__scopeId", "data-v-e920f110"]]), qo = ai("menu-edit-state", {
703
+ }), ht = /* @__PURE__ */ bt(Wo, [["__scopeId", "data-v-e920f110"]]);
704
+ function Ho(e, n, t) {
705
+ const i = /* @__PURE__ */ new Set();
706
+ function a(o, r) {
707
+ if (!e || !o || !r || i.has(r)) return !1;
708
+ i.add(r);
709
+ const l = e.modules.item.find((s) => s._id === r);
710
+ return !l || !l.groups ? !1 : l.groups.some((s) => s._id === o) ? !0 : l.groups.some((s) => {
711
+ const u = e.modules.group.find((d) => d._id === s._id);
712
+ return ((u == null ? void 0 : u.items) || []).some((d) => a(o, d._id));
713
+ });
714
+ }
715
+ return a(n, t);
716
+ }
717
+ function Yo(e, n, t) {
718
+ const i = /* @__PURE__ */ new Set();
719
+ function a(o, r) {
720
+ if (!e || !o || !r || i.has(o)) return !1;
721
+ i.add(o);
722
+ const l = e.modules.group.find((s) => s._id === o);
723
+ return !l || !l.items ? !1 : l.items.some((s) => s._id === r) ? !0 : l.items.some((s) => {
724
+ const u = e.modules.item.find((d) => d._id === s._id);
725
+ return ((u == null ? void 0 : u.groups) || []).some((d) => a(d._id, r));
726
+ });
727
+ }
728
+ return a(n, t);
729
+ }
730
+ const qo = ai("menu-edit-state", {
704
731
  state: () => ({
705
732
  isUpdatingItem: !1,
706
733
  storedCatalogId: null,
@@ -841,7 +868,7 @@ const ta = /* @__PURE__ */ bt(Qo, [["render", ea]]), na = { class: "flex flex-co
841
868
  "helper-text": v.helperText,
842
869
  rules: v.rules
843
870
  }, {
844
- default: P(({ invalid: C }) => [
871
+ default: R(({ invalid: C }) => [
845
872
  h(V, {
846
873
  disabled: v.disabled,
847
874
  ref_key: "fmMenuRef",
@@ -849,20 +876,20 @@ const ta = /* @__PURE__ */ bt(Qo, [["render", ea]]), na = { class: "flex flex-co
849
876
  "close-on-click": !1,
850
877
  onMenuChanged: S[0] || (S[0] = (_) => c.value = _)
851
878
  }, {
852
- "menu-button": P(() => [
879
+ "menu-button": R(() => [
853
880
  h(b, {
854
881
  class: Ne(v.disabled ? "cursor-not-allowed" : "cursor-pointer"),
855
882
  focused: c.value,
856
883
  invalid: C
857
884
  }, {
858
- append: P(() => [
885
+ append: R(() => [
859
886
  h(g, {
860
887
  color: v.disabled ? "#C7C7CC" : "black",
861
888
  name: c.value ? "expand_less" : "expand_more",
862
889
  size: "md"
863
890
  }, null, 8, ["color", "name"])
864
891
  ]),
865
- default: P(() => [
892
+ default: R(() => [
866
893
  F("div", {
867
894
  class: Ne([[
868
895
  v.disabled ? "text-fm-color-typo-disabled" : p.value ? "text-fm-color-typo-primary" : "text-fm-color-typo-tertiary"
@@ -872,15 +899,15 @@ const ta = /* @__PURE__ */ bt(Qo, [["render", ea]]), na = { class: "flex flex-co
872
899
  _: 2
873
900
  }, 1032, ["class", "focused", "invalid"])
874
901
  ]),
875
- default: P(() => [
902
+ default: R(() => [
876
903
  F("div", ia, [
877
- (k(!0), Y(ve, null, Re(v.items, (_) => (k(), X(A, {
904
+ (k(!0), Y(ve, null, Ie(v.items, (_) => (k(), X(A, {
878
905
  key: _.value,
879
906
  disabled: _.disabled,
880
907
  "has-checkbox": !0,
881
908
  label: _.label,
882
- "model-value": r.value.some((R) => R.value === _.value),
883
- "onUpdate:modelValue": (R) => l(R, _)
909
+ "model-value": r.value.some((I) => I.value === _.value),
910
+ "onUpdate:modelValue": (I) => l(I, _)
884
911
  }, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue"]))), 128)),
885
912
  Ve(v.$slots, "append-menu", {}, void 0, !0)
886
913
  ])
@@ -1090,7 +1117,7 @@ var Tt = function(e, n) {
1090
1117
  e === void 0 && (e = {}), n === void 0 && (n = {}), this.type = "manipulateImage", this.move = e, this.scale = n;
1091
1118
  }, ua = function(e, n) {
1092
1119
  n === void 0 && (n = {}), this.type = "resize", this.directions = e, this.params = n;
1093
- }, Pn = function(e) {
1120
+ }, Rn = function(e) {
1094
1121
  this.type = "move", this.directions = e;
1095
1122
  }, ca = function() {
1096
1123
  function e(n, t, i, a, o) {
@@ -1104,7 +1131,7 @@ var Tt = function(e, n) {
1104
1131
  }
1105
1132
  return { left: 0, top: 0 };
1106
1133
  }, e;
1107
- }(), Rn = { name: "DraggableElement", props: { classname: { type: String } }, beforeMount: function() {
1134
+ }(), In = { name: "DraggableElement", props: { classname: { type: String } }, beforeMount: function() {
1108
1135
  window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
1109
1136
  }, beforeUnmount: function() {
1110
1137
  window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
@@ -1147,7 +1174,7 @@ var Tt = function(e, n) {
1147
1174
  }, processEnd: function() {
1148
1175
  this.touches.length && this.$emit("drag-end"), this.hovered && (this.$emit("leave"), this.hovered = !1), this.touches = [];
1149
1176
  } }, emits: ["drag", "drag-end", "leave", "enter"] };
1150
- Rn.render = function(e, n, t, i, a, o) {
1177
+ In.render = function(e, n, t, i, a, o) {
1151
1178
  return k(), X("div", { ref: "draggable", class: t.classname, onTouchstart: n[1] || (n[1] = function() {
1152
1179
  return o.onTouchStart && o.onTouchStart.apply(o, arguments);
1153
1180
  }), onMousedown: n[2] || (n[2] = function() {
@@ -1158,7 +1185,7 @@ Rn.render = function(e, n, t, i, a, o) {
1158
1185
  return o.onMouseLeave && o.onMouseLeave.apply(o, arguments);
1159
1186
  }) }, [Ve(e.$slots, "default")], 34);
1160
1187
  };
1161
- var fn = Qe("vue-handler-wrapper"), xi = { name: "HandlerWrapper", components: { DraggableElement: Rn }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
1188
+ var fn = Qe("vue-handler-wrapper"), xi = { name: "HandlerWrapper", components: { DraggableElement: In }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
1162
1189
  var e;
1163
1190
  if (this.horizontalPosition || this.verticalPosition) {
1164
1191
  var n, t = wi(this.horizontalPosition, this.verticalPosition);
@@ -1176,11 +1203,11 @@ xi.render = function(e, n, t, i, a, o) {
1176
1203
  return e.$emit("leave");
1177
1204
  }), onEnter: n[4] || (n[4] = function(l) {
1178
1205
  return e.$emit("enter");
1179
- }) }, { default: P(function() {
1206
+ }) }, { default: R(function() {
1180
1207
  return [Ve(e.$slots, "default")];
1181
1208
  }), _: 3 }, 8, ["class"])], 2);
1182
1209
  };
1183
- var da = Qe("vue-line-wrapper"), Ai = { name: "LineWrapper", components: { DraggableElement: Rn }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
1210
+ var da = Qe("vue-line-wrapper"), Ai = { name: "LineWrapper", components: { DraggableElement: In }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
1184
1211
  var e;
1185
1212
  return da((We(e = {}, this.position, !0), We(e, "disabled", this.disabled), e));
1186
1213
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
@@ -1194,7 +1221,7 @@ Ai.render = function(e, n, t, i, a, o) {
1194
1221
  return e.$emit("leave");
1195
1222
  }), onEnter: n[4] || (n[4] = function(l) {
1196
1223
  return e.$emit("enter");
1197
- }) }, { default: P(function() {
1224
+ }) }, { default: R(function() {
1198
1225
  return [Ve(e.$slots, "default")];
1199
1226
  }), _: 3 }, 8, ["class"]);
1200
1227
  };
@@ -1318,7 +1345,7 @@ function Vn(e) {
1318
1345
  }
1319
1346
  function ga(e) {
1320
1347
  var n = e.coordinates, t = e.transform, i = e.imageSize, a = e.sizeRestrictions, o = e.positionRestrictions, r = e.aspectRatio, l = e.visibleArea, s = function(d, c) {
1321
- return Vn({ coordinates: d, positionRestrictions: o, event: new Pn({ left: c.left - d.left, top: c.top - d.top }) });
1348
+ return Vn({ coordinates: d, positionRestrictions: o, event: new Rn({ left: c.left - d.left, top: c.top - d.top }) });
1322
1349
  }, u = re({}, n);
1323
1350
  return (Array.isArray(t) ? t : [t]).forEach(function(d) {
1324
1351
  var c = {};
@@ -1455,7 +1482,7 @@ var Ta = Qe("vue-simple-handler"), Fa = Qe("vue-simple-handler-wrapper"), On = {
1455
1482
  } }, emits: ["drag", "drag-end"] };
1456
1483
  On.render = function(e, n, t, i, a, o) {
1457
1484
  var r = U("HandlerWrapper");
1458
- return k(), X(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() {
1485
+ return k(), X(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: R(function() {
1459
1486
  return [h("div", { class: o.classes.default }, null, 2)];
1460
1487
  }), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
1461
1488
  };
@@ -1474,11 +1501,11 @@ var Ma = Qe("vue-simple-line"), za = Qe("vue-simple-line-wrapper"), $n = { name:
1474
1501
  } }, emits: ["drag", "drag-end"] };
1475
1502
  $n.render = function(e, n, t, i, a, o) {
1476
1503
  var r = U("LineWrapper");
1477
- return k(), X(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() {
1504
+ return k(), X(r, { class: o.classes.wrapper, position: t.position, disabled: t.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: R(function() {
1478
1505
  return [h("div", { class: o.classes.root }, null, 2)];
1479
1506
  }), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
1480
1507
  };
1481
- var vn = Qe("vue-bounding-box"), Ia = ["east", "west", null], Pa = ["south", "north", null], Mi = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
1508
+ var vn = Qe("vue-bounding-box"), Pa = ["east", "west", null], Ra = ["south", "north", null], Mi = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
1482
1509
  return { eastNorth: !0, north: !0, westNorth: !0, west: !0, westSouth: !0, south: !0, eastSouth: !0, east: !0 };
1483
1510
  } }, handlersComponent: { type: [Object, String], default: function() {
1484
1511
  return On;
@@ -1496,8 +1523,8 @@ var vn = Qe("vue-bounding-box"), Ia = ["east", "west", null], Pa = ["south", "no
1496
1523
  return {};
1497
1524
  } }, resizable: { type: Boolean, default: !0 } }, data: function() {
1498
1525
  var e = [];
1499
- return Ia.forEach(function(n) {
1500
- Pa.forEach(function(t) {
1526
+ return Pa.forEach(function(n) {
1527
+ Ra.forEach(function(t) {
1501
1528
  if (n !== t) {
1502
1529
  var i = wi(n, t), a = i.name, o = i.classname;
1503
1530
  e.push({ name: a, classname: o, verticalDirection: t, horizontalDirection: n });
@@ -1540,13 +1567,13 @@ var vn = Qe("vue-bounding-box"), Ia = ["east", "west", null], Pa = ["south", "no
1540
1567
  n === "west" ? l.left -= o : n === "east" && (l.right += o), t === "north" ? l.top -= r : t === "south" && (l.bottom += r), !t && n ? i = "width" : t && !n && (i = "height"), this.resizable && this.$emit("resize", new ua(l, { allowedDirections: { left: n === "west" || !n, right: n === "east" || !n, bottom: t === "south" || !t, top: t === "north" || !t }, preserveAspectRatio: e.nativeEvent && e.nativeEvent.shiftKey, respectDirection: i }));
1541
1568
  } }, emits: ["resize", "resize-end"] };
1542
1569
  Mi.render = function(e, n, t, i, a, o) {
1543
- return k(), X("div", { ref: "box", class: o.classes.root, style: o.style }, [Ve(e.$slots, "default"), h("div", null, [(k(!0), X(ve, null, Re(o.lineNodes, function(r) {
1570
+ return k(), X("div", { ref: "box", class: o.classes.root, style: o.style }, [Ve(e.$slots, "default"), h("div", null, [(k(!0), X(ve, null, Ie(o.lineNodes, function(r) {
1544
1571
  return k(), X(Bt(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) {
1545
1572
  return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
1546
1573
  }, onDragEnd: n[1] || (n[1] = function(l) {
1547
1574
  return o.onEnd();
1548
1575
  }) }, null, 8, ["default-class", "hover-class", "wrapper-class", "position", "disabled", "onDrag"]);
1549
- }), 128))]), (k(!0), X(ve, null, Re(o.handlerNodes, function(r) {
1576
+ }), 128))]), (k(!0), X(ve, null, Ie(o.handlerNodes, function(r) {
1550
1577
  return k(), X("div", { key: r.name, style: r.wrapperStyle, class: r.wrapperClass }, [(k(), X(Bt(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) {
1551
1578
  return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
1552
1579
  }, onDragEnd: n[2] || (n[2] = function(l) {
@@ -1554,8 +1581,8 @@ Mi.render = function(e, n, t, i, a, o) {
1554
1581
  }) }, null, 8, ["default-class", "hover-class", "wrapper-class", "horizontal-position", "vertical-position", "disabled", "onDrag"]))], 6);
1555
1582
  }), 128))], 6);
1556
1583
  };
1557
- var Ra = Qe("vue-draggable-area"), zi = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
1558
- return { default: Ra() };
1584
+ var Ia = Qe("vue-draggable-area"), zi = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
1585
+ return { default: Ia() };
1559
1586
  } }, beforeMount: function() {
1560
1587
  window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
1561
1588
  }, beforeUnmount: function() {
@@ -1587,7 +1614,7 @@ var Ra = Qe("vue-draggable-area"), zi = { name: "DraggableArea", props: { movabl
1587
1614
  var t = gt(n);
1588
1615
  if (this.touches.length) {
1589
1616
  var i = this.$refs.container.getBoundingClientRect(), a = i.left, o = i.top;
1590
- this.touches.length === 1 && t.length === 1 && this.$emit("move", new Pn({ left: t[0].clientX - (a + this.anchor.x), top: t[0].clientY - (o + this.anchor.y) }));
1617
+ this.touches.length === 1 && t.length === 1 && this.$emit("move", new Rn({ left: t[0].clientX - (a + this.anchor.x), top: t[0].clientY - (o + this.anchor.y) }));
1591
1618
  }
1592
1619
  }, processEnd: function() {
1593
1620
  this.touches.length && this.$emit("move-end"), this.touches = [];
@@ -1635,7 +1662,7 @@ function Oa(e) {
1635
1662
  var o, r, l;
1636
1663
  });
1637
1664
  }
1638
- function Ii(e) {
1665
+ function Pi(e) {
1639
1666
  var n = e.rotate, t = e.flip, i = e.scaleX, a = e.scaleY, o = "";
1640
1667
  return o += " rotate(" + n + "deg) ", o += " scaleX(" + i * (t.horizontal ? -1 : 1) + ") ", o += " scaleY(" + a * (t.vertical ? -1 : 1) + ") ";
1641
1668
  }
@@ -1680,7 +1707,7 @@ function ni(e, n) {
1680
1707
  r += Si({ x: o.left, y: o.top }, { x: l.clientX - i, y: l.clientY - a });
1681
1708
  }), { centerMass: o, spread: r, count: e.length };
1682
1709
  }
1683
- var Pi = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 }, eventsFilter: { type: Function, required: !1 } }, beforeMount: function() {
1710
+ var Ri = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 }, eventsFilter: { type: Function, required: !1 } }, beforeMount: function() {
1684
1711
  window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
1685
1712
  }, beforeUnmount: function() {
1686
1713
  window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
@@ -1736,7 +1763,7 @@ var Pi = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
1736
1763
  }
1737
1764
  var r, l;
1738
1765
  } }, emits: ["resize", "move", "transform-end"] };
1739
- Pi.render = function(e, n, t, i, a, o) {
1766
+ Ri.render = function(e, n, t, i, a, o) {
1740
1767
  return k(), X("div", { ref: "container", onTouchstart: n[1] || (n[1] = function() {
1741
1768
  return o.onTouchStart && o.onTouchStart.apply(o, arguments);
1742
1769
  }), onMousedown: n[2] || (n[2] = function() {
@@ -1745,18 +1772,18 @@ Pi.render = function(e, n, t, i, a, o) {
1745
1772
  return o.onWheel && o.onWheel.apply(o, arguments);
1746
1773
  }) }, [Ve(e.$slots, "default")], 544);
1747
1774
  };
1748
- var Tn = { components: { TransformableImage: Pi }, 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"] };
1775
+ var Tn = { components: { TransformableImage: Ri }, 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"] };
1749
1776
  Tn.render = function(e, n, t, i, a, o) {
1750
1777
  var r = U("transformable-image");
1751
1778
  return k(), X(r, { "touch-move": t.touchMove, "touch-resize": t.touchResize, "mouse-move": t.mouseMove, "wheel-resize": t.wheelResize, onMove: n[1] || (n[1] = function(l) {
1752
1779
  return e.$emit("move", l);
1753
1780
  }), onResize: n[2] || (n[2] = function(l) {
1754
1781
  return e.$emit("resize", l);
1755
- }) }, { default: P(function() {
1782
+ }) }, { default: R(function() {
1756
1783
  return [Ve(e.$slots, "default")];
1757
1784
  }), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
1758
1785
  };
1759
- var Ut = Qe("vue-preview"), Ri = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
1786
+ var Ut = Qe("vue-preview"), Ii = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
1760
1787
  return {};
1761
1788
  } }, imageClass: { type: String }, width: { type: Number }, height: { type: Number }, fill: { type: Boolean } }, data: function() {
1762
1789
  return { calculatedImageSize: { width: 0, height: 0 }, calculatedSize: { width: 0, height: 0 } };
@@ -1773,7 +1800,7 @@ var Ut = Qe("vue-preview"), Ri = { props: { coordinates: { type: Object }, trans
1773
1800
  if (this.coordinates && this.image) {
1774
1801
  var e = this.coordinates.width / this.size.width, n = ge(ge({ rotate: 0, flip: { horizontal: !1, vertical: !1 } }, this.image.transforms), {}, { scaleX: 1 / e, scaleY: 1 / e }), t = this.imageSize.width, i = this.imageSize.height, a = Ti({ width: t, height: i }, n.rotate), o = { width: "".concat(t, "px"), height: "".concat(i, "px"), left: "0px", top: "0px" }, r = { rotate: { left: (t - a.width) * n.scaleX / 2, top: (i - a.height) * n.scaleY / 2 }, scale: { left: (1 - n.scaleX) * t / 2, top: (1 - n.scaleY) * i / 2 } };
1775
1802
  return o.transform = `translate(
1776
- `.concat(-this.coordinates.left / e - r.rotate.left - r.scale.left, "px,").concat(-this.coordinates.top / e - r.rotate.top - r.scale.top, "px) ") + Ii(n), this.transitions && this.transitions.enabled && (o.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), o;
1803
+ `.concat(-this.coordinates.left / e - r.rotate.left - r.scale.left, "px,").concat(-this.coordinates.top / e - r.rotate.top - r.scale.top, "px) ") + Pi(n), this.transitions && this.transitions.enabled && (o.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), o;
1777
1804
  }
1778
1805
  return {};
1779
1806
  }, size: function() {
@@ -1799,10 +1826,10 @@ var Ut = Qe("vue-preview"), Ri = { props: { coordinates: { type: Object }, trans
1799
1826
  var e = this.$refs.image;
1800
1827
  e && e.complete && this.refreshImage(), this.refresh();
1801
1828
  } } };
1802
- Ri.render = function(e, n, t, i, a, o) {
1829
+ Ii.render = function(e, n, t, i, a, o) {
1803
1830
  return k(), X("div", { ref: "root", class: o.classes.root, style: o.style }, [h("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [ut(h("img", { ref: "image", src: t.image && t.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[Jt, t.image && t.image.src]])], 6)], 6);
1804
1831
  };
1805
- var Oi = { components: { Preview: Ri }, inheritAttrs: !1 };
1832
+ var Oi = { components: { Preview: Ii }, inheritAttrs: !1 };
1806
1833
  Oi.render = function(e, n, t, i, a, o) {
1807
1834
  var r = U("preview");
1808
1835
  return k(), X(r, ri(e.$attrs, { fill: !0 }), null, 16);
@@ -1839,8 +1866,8 @@ var bn = Qe("vue-rectangle-stencil"), $i = { name: "RectangleStencil", component
1839
1866
  } }, emits: ["resize", "resize-end", "move", "move-end"] };
1840
1867
  $i.render = function(e, n, t, i, a, o) {
1841
1868
  var r = U("stencil-preview"), l = U("draggable-area"), s = U("bounding-box");
1842
- return k(), X("div", { class: o.classes.stencil, style: o.style }, [h(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() {
1843
- return [h(l, { movable: t.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: P(function() {
1869
+ return k(), X("div", { class: o.classes.stencil, style: o.style }, [h(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: R(function() {
1870
+ return [h(l, { movable: t.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: R(function() {
1844
1871
  return [h(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"])];
1845
1872
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
1846
1873
  }), _: 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);
@@ -1880,7 +1907,7 @@ var Da = ["transitions"], at = Qe("vue-advanced-cropper"), Di = { name: "Cropper
1880
1907
  }
1881
1908
  return d = et(r, s).width, c = et(r, s).height, (p = l.preserveRatio ? be(r) : hn(d / c, i)) && Math.abs(p - d / c) > 1e-3 && tt.forEach(function(B) {
1882
1909
  u[B] || (s[B] = 0);
1883
- }), Vn({ event: new Pn({ 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 });
1910
+ }), Vn({ event: new Rn({ 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 });
1884
1911
  } }, moveAlgorithm: { type: Function, default: Vn }, initStretcher: { type: Function, default: function(e) {
1885
1912
  var n = e.stretcher, t = e.imageSize, i = be(t);
1886
1913
  n.style.width = t.width + "px", n.style.height = n.clientWidth / i + "px", n.style.width = n.clientWidth + "px";
@@ -1951,7 +1978,7 @@ var Da = ["transitions"], at = Qe("vue-advanced-cropper"), Di = { name: "Cropper
1951
1978
  var e = { width: this.boundaries.width ? "".concat(Math.round(this.boundaries.width), "px") : "auto", height: this.boundaries.height ? "".concat(Math.round(this.boundaries.height), "px") : "auto", transition: "opacity ".concat(this.transitionTime, "ms"), pointerEvents: this.imageLoaded ? "all" : "none" };
1952
1979
  return this.imageLoaded || (e.opacity = "0"), e;
1953
1980
  }, imageStyle: function() {
1954
- var e = this.imageAttributes.width > this.imageAttributes.height ? { width: Math.min(1024, this.imageAttributes.width), height: Math.min(1024, this.imageAttributes.width) / (this.imageAttributes.width / this.imageAttributes.height) } : { height: Math.min(1024, this.imageAttributes.height), width: Math.min(1024, this.imageAttributes.height) * (this.imageAttributes.width / this.imageAttributes.height) }, n = { left: (e.width - this.imageSize.width) / (2 * this.coefficient), top: (e.height - this.imageSize.height) / (2 * this.coefficient) }, t = { left: (1 - 1 / this.coefficient) * e.width / 2, top: (1 - 1 / this.coefficient) * e.height / 2 }, i = ge(ge({}, this.imageTransforms), {}, { scaleX: this.imageTransforms.scaleX * (this.imageAttributes.width / e.width), scaleY: this.imageTransforms.scaleY * (this.imageAttributes.height / e.height) }), a = { width: "".concat(e.width, "px"), height: "".concat(e.height, "px"), left: "0px", top: "0px", transform: "translate(".concat(-n.left - t.left - this.imageTransforms.translateX, "px, ").concat(-n.top - t.top - this.imageTransforms.translateY, "px)") + Ii(i) };
1981
+ var e = this.imageAttributes.width > this.imageAttributes.height ? { width: Math.min(1024, this.imageAttributes.width), height: Math.min(1024, this.imageAttributes.width) / (this.imageAttributes.width / this.imageAttributes.height) } : { height: Math.min(1024, this.imageAttributes.height), width: Math.min(1024, this.imageAttributes.height) * (this.imageAttributes.width / this.imageAttributes.height) }, n = { left: (e.width - this.imageSize.width) / (2 * this.coefficient), top: (e.height - this.imageSize.height) / (2 * this.coefficient) }, t = { left: (1 - 1 / this.coefficient) * e.width / 2, top: (1 - 1 / this.coefficient) * e.height / 2 }, i = ge(ge({}, this.imageTransforms), {}, { scaleX: this.imageTransforms.scaleX * (this.imageAttributes.width / e.width), scaleY: this.imageTransforms.scaleY * (this.imageAttributes.height / e.height) }), a = { width: "".concat(e.width, "px"), height: "".concat(e.height, "px"), left: "0px", top: "0px", transform: "translate(".concat(-n.left - t.left - this.imageTransforms.translateX, "px, ").concat(-n.top - t.top - this.imageTransforms.translateY, "px)") + Pi(i) };
1955
1982
  return this.transitionsOptions.enabled && (a.transition = "".concat(this.transitionsOptions.time, "ms ").concat(this.transitionsOptions.timingFunction)), a;
1956
1983
  } }, watch: { src: function() {
1957
1984
  this.onChangeImage();
@@ -2272,7 +2299,7 @@ var Da = ["transitions"], at = Qe("vue-advanced-cropper"), Di = { name: "Cropper
2272
2299
  }
2273
2300
  } }, emits: ["change", "error", "ready"] }, Ea = { key: 0, ref: "canvas", style: { display: "none" } }, Ua = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
2274
2301
  Di.render = function(e, n, t, i, a, o) {
2275
- return k(), X("div", { ref: "cropper", class: o.classes.cropper }, [h("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), h("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(k(), X(Bt(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() {
2302
+ return k(), X("div", { ref: "cropper", class: o.classes.cropper }, [h("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), h("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(k(), X(Bt(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: R(function() {
2276
2303
  return [h("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), h("div", { class: o.classes.imageWrapper }, [h("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: n[1] || (n[1] = zt(function() {
2277
2304
  }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), h("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), ut((k(), X(Bt(t.stencilComponent), ri({ 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"])), [[Jt, a.imageLoaded]]), t.canvas ? (k(), X("canvas", Ea, null, 512)) : ne("", !0), t.canvas ? (k(), X("canvas", Ua, null, 512)) : ne("", !0)];
2278
2305
  }), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
@@ -2424,13 +2451,13 @@ const Ba = {
2424
2451
  "content-class": "h-[150px] w-[200px]",
2425
2452
  onFileUpload: d
2426
2453
  }, {
2427
- label: P(() => [
2454
+ label: R(() => [
2428
2455
  F("p", qa, [
2429
2456
  jt(ae(g.title) + " ", 1),
2430
2457
  F("span", Xa, ae(m(i)("menu.common.labels.optional")), 1)
2431
2458
  ])
2432
2459
  ]),
2433
- "accept-text": P(() => [
2460
+ "accept-text": R(() => [
2434
2461
  F("p", Za, ae(m(i)("menu.common.file.accepts")), 1)
2435
2462
  ]),
2436
2463
  _: 1
@@ -2547,7 +2574,7 @@ const Ba = {
2547
2574
  },
2548
2575
  emits: ["update:modelValue"],
2549
2576
  setup(e, { emit: n }) {
2550
- const t = e, i = n, a = Ze(), o = qe(), r = nt(o), l = it(r), { t: s } = uo(), u = H(null), d = H([]), c = yo({
2577
+ const t = e, i = n, a = Ze(), o = qe(), r = nt(o), l = it(r), { t: s } = uo(), u = H(null), d = H([]), c = go({
2551
2578
  dialog: a,
2552
2579
  menuLoader: l,
2553
2580
  isLocalOnly: t.isLocalOnly
@@ -2575,9 +2602,9 @@ const Ba = {
2575
2602
  },
2576
2603
  { immediate: !0 }
2577
2604
  ), (A, V) => {
2578
- const B = U("FmIcon"), x = U("FmField"), C = U("FmMenuItem"), _ = U("FmMenu"), R = U("FmFormGroup"), I = U("FmChipGroup");
2605
+ const B = U("FmIcon"), x = U("FmField"), C = U("FmMenuItem"), _ = U("FmMenu"), I = U("FmFormGroup"), P = U("FmChipGroup");
2579
2606
  return k(), Y("div", Qa, [
2580
- h(R, {
2607
+ h(I, {
2581
2608
  "model-value": A.modelValue,
2582
2609
  disabled: A.disabled,
2583
2610
  focused: b.value,
@@ -2585,7 +2612,7 @@ const Ba = {
2585
2612
  "helper-text": A.helperText,
2586
2613
  rules: A.rules
2587
2614
  }, {
2588
- default: P(({ invalid: D }) => [
2615
+ default: R(({ invalid: D }) => [
2589
2616
  h(_, {
2590
2617
  disabled: A.disabled,
2591
2618
  ref_key: "fmMenuRef",
@@ -2593,20 +2620,20 @@ const Ba = {
2593
2620
  "close-on-click": !1,
2594
2621
  onMenuChanged: V[1] || (V[1] = (O) => b.value = O)
2595
2622
  }, {
2596
- "menu-button": P(() => [
2623
+ "menu-button": R(() => [
2597
2624
  h(x, {
2598
2625
  class: Ne(A.disabled ? "cursor-not-allowed" : "cursor-pointer"),
2599
2626
  focused: b.value,
2600
2627
  invalid: D
2601
2628
  }, {
2602
- append: P(() => [
2629
+ append: R(() => [
2603
2630
  h(B, {
2604
2631
  color: A.disabled ? "#C7C7CC" : "black",
2605
2632
  name: b.value ? "expand_less" : "expand_more",
2606
2633
  size: "md"
2607
2634
  }, null, 8, ["color", "name"])
2608
2635
  ]),
2609
- default: P(() => [
2636
+ default: R(() => [
2610
2637
  F("div", {
2611
2638
  class: Ne([[
2612
2639
  A.disabled ? "text-fm-color-typo-disabled" : d.value.length > 0 ? "text-fm-color-typo-primary" : "text-fm-color-typo-tertiary"
@@ -2616,9 +2643,9 @@ const Ba = {
2616
2643
  _: 2
2617
2644
  }, 1032, ["class", "focused", "invalid"])
2618
2645
  ]),
2619
- default: P(() => [
2646
+ default: R(() => [
2620
2647
  F("div", Ja, [
2621
- (k(!0), Y(ve, null, Re(A.items, (O) => (k(), X(C, {
2648
+ (k(!0), Y(ve, null, Ie(A.items, (O) => (k(), X(C, {
2622
2649
  key: O.value,
2623
2650
  disabled: O.disabled,
2624
2651
  "has-checkbox": !0,
@@ -2646,7 +2673,7 @@ const Ba = {
2646
2673
  _: 1
2647
2674
  }, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
2648
2675
  A.shouldShowChips && d.value.length > 0 ? (k(), Y("div", tr, [
2649
- h(I, {
2676
+ h(P, {
2650
2677
  disabled: A.disabled,
2651
2678
  items: d.value.map((D) => ({ label: D.label })),
2652
2679
  removable: "",
@@ -2682,12 +2709,12 @@ const Ba = {
2682
2709
  setup(e, { emit: n }) {
2683
2710
  const t = e, i = n, { t: a } = fe(), o = H([]), r = H([]), l = H(""), s = H(""), u = H(""), d = H(""), c = H(!0), p = H(!1);
2684
2711
  function f() {
2685
- const _ = t.productNameLocale || {}, R = t.productDescriptionLocale || {}, I = /* @__PURE__ */ new Set([...Object.keys(_), ...Object.keys(R)]);
2686
- return I.size === 0 ? [] : Array.from(I).map((D) => ({
2712
+ const _ = t.productNameLocale || {}, I = t.productDescriptionLocale || {}, P = /* @__PURE__ */ new Set([...Object.keys(_), ...Object.keys(I)]);
2713
+ return P.size === 0 ? [] : Array.from(P).map((D) => ({
2687
2714
  localeCode: D,
2688
2715
  localeName: wn(D),
2689
2716
  nameValue: _[D] || "",
2690
- descriptionValue: R[D] || ""
2717
+ descriptionValue: I[D] || ""
2691
2718
  }));
2692
2719
  }
2693
2720
  xe(
@@ -2705,30 +2732,30 @@ const Ba = {
2705
2732
  );
2706
2733
  const v = T(() => o.value.map((_) => _.localeCode));
2707
2734
  function S(_) {
2708
- const R = new Set(v.value), I = new Set(_);
2735
+ const I = new Set(v.value), P = new Set(_);
2709
2736
  for (const D of _)
2710
- R.has(D) || o.value.push({
2737
+ I.has(D) || o.value.push({
2711
2738
  localeCode: D,
2712
2739
  localeName: wn(D),
2713
2740
  nameValue: "",
2714
2741
  descriptionValue: ""
2715
2742
  });
2716
- o.value = o.value.filter((D) => I.has(D.localeCode));
2743
+ o.value = o.value.filter((D) => P.has(D.localeCode));
2717
2744
  }
2718
2745
  function g() {
2719
- const _ = !ze.isEqual(o.value, r.value), R = l.value !== u.value, I = s.value !== d.value;
2720
- return _ || R || I;
2746
+ const _ = !ze.isEqual(o.value, r.value), I = l.value !== u.value, P = s.value !== d.value;
2747
+ return _ || I || P;
2721
2748
  }
2722
2749
  function b() {
2723
2750
  i("update:name", l.value.trim()), i("update:description", s.value.trim());
2724
- const _ = o.value.filter((O) => O.nameValue.trim()), R = _.length === 0 ? void 0 : _.reduce(
2751
+ const _ = o.value.filter((O) => O.nameValue.trim()), I = _.length === 0 ? void 0 : _.reduce(
2725
2752
  (O, y) => (O[y.localeCode] = y.nameValue.trim(), O),
2726
2753
  {}
2727
- ), I = o.value.filter((O) => O.descriptionValue.trim()), D = I.length === 0 ? void 0 : I.reduce(
2754
+ ), P = o.value.filter((O) => O.descriptionValue.trim()), D = P.length === 0 ? void 0 : P.reduce(
2728
2755
  (O, y) => (O[y.localeCode] = y.descriptionValue.trim(), O),
2729
2756
  {}
2730
2757
  );
2731
- i("update:nameLocale", R), i("update:descriptionLocale", D), i("update:modelValue", !1);
2758
+ i("update:nameLocale", I), i("update:descriptionLocale", D), i("update:modelValue", !1);
2732
2759
  }
2733
2760
  function A() {
2734
2761
  i("update:modelValue", !1);
@@ -2743,18 +2770,18 @@ const Ba = {
2743
2770
  function C() {
2744
2771
  p.value = !p.value;
2745
2772
  }
2746
- return (_, R) => {
2747
- const I = U("FmIcon"), D = U("fm-button"), O = U("fm-dialog");
2773
+ return (_, I) => {
2774
+ const P = U("FmIcon"), D = U("fm-button"), O = U("fm-dialog");
2748
2775
  return k(), X(O, {
2749
2776
  modelValue: B.value,
2750
- "onUpdate:modelValue": R[2] || (R[2] = (y) => B.value = y),
2777
+ "onUpdate:modelValue": I[2] || (I[2] = (y) => B.value = y),
2751
2778
  "max-width": 800,
2752
2779
  "onOn:clickedAway": m(V)
2753
2780
  }, {
2754
- "dialog-header": P(() => [
2781
+ "dialog-header": R(() => [
2755
2782
  F("p", or, ae(m(a)("menu.product.translation.title")), 1)
2756
2783
  ]),
2757
- "dialog-footer": P(() => [
2784
+ "dialog-footer": R(() => [
2758
2785
  F("div", hr, [
2759
2786
  h(D, {
2760
2787
  label: m(a)("menu.common.actions.cancel"),
@@ -2770,7 +2797,7 @@ const Ba = {
2770
2797
  }, null, 8, ["label"])
2771
2798
  ])
2772
2799
  ]),
2773
- default: P(() => [
2800
+ default: R(() => [
2774
2801
  F("div", ar, [
2775
2802
  h(pi, {
2776
2803
  "selected-locales": v.value,
@@ -2782,7 +2809,7 @@ const Ba = {
2782
2809
  class: "flex items-center gap-16 cursor-pointer",
2783
2810
  onClick: x
2784
2811
  }, [
2785
- h(I, {
2812
+ h(P, {
2786
2813
  name: c.value ? "keyboard_arrow_down" : "keyboard_arrow_right"
2787
2814
  }, null, 8, ["name"]),
2788
2815
  F("p", sr, ae(m(a)("menu.product.translation.product_name")), 1)
@@ -2790,7 +2817,7 @@ const Ba = {
2790
2817
  c.value ? (k(), Y("div", lr, [
2791
2818
  h(Yt, {
2792
2819
  modelValue: l.value,
2793
- "onUpdate:modelValue": R[0] || (R[0] = (y) => l.value = y),
2820
+ "onUpdate:modelValue": I[0] || (I[0] = (y) => l.value = y),
2794
2821
  label: m(a)("menu.product.translation.default"),
2795
2822
  readonly: !1,
2796
2823
  placeholder: m(a)("menu.product.translation.placeholder")
@@ -2799,7 +2826,7 @@ const Ba = {
2799
2826
  h(qt, {
2800
2827
  label: m(a)("menu.product.translation.translation")
2801
2828
  }, null, 8, ["label"]),
2802
- (k(!0), Y(ve, null, Re(o.value, (y) => (k(), X(Xt, {
2829
+ (k(!0), Y(ve, null, Ie(o.value, (y) => (k(), X(Xt, {
2803
2830
  key: y.localeCode,
2804
2831
  "locale-code": y.localeCode,
2805
2832
  modelValue: y.nameValue,
@@ -2814,7 +2841,7 @@ const Ba = {
2814
2841
  class: "flex items-center gap-16 cursor-pointer",
2815
2842
  onClick: C
2816
2843
  }, [
2817
- h(I, {
2844
+ h(P, {
2818
2845
  name: p.value ? "keyboard_arrow_down" : "keyboard_arrow_right"
2819
2846
  }, null, 8, ["name"]),
2820
2847
  F("p", dr, [
@@ -2825,7 +2852,7 @@ const Ba = {
2825
2852
  p.value ? (k(), Y("div", pr, [
2826
2853
  h(Yt, {
2827
2854
  modelValue: s.value,
2828
- "onUpdate:modelValue": R[1] || (R[1] = (y) => s.value = y),
2855
+ "onUpdate:modelValue": I[1] || (I[1] = (y) => s.value = y),
2829
2856
  label: m(a)("menu.product.translation.default"),
2830
2857
  readonly: !1,
2831
2858
  type: "textarea",
@@ -2835,7 +2862,7 @@ const Ba = {
2835
2862
  h(qt, {
2836
2863
  label: m(a)("menu.product.translation.translation")
2837
2864
  }, null, 8, ["label"]),
2838
- (k(!0), Y(ve, null, Re(o.value, (y) => (k(), X(Xt, {
2865
+ (k(!0), Y(ve, null, Ie(o.value, (y) => (k(), X(Xt, {
2839
2866
  key: y.localeCode,
2840
2867
  "locale-code": y.localeCode,
2841
2868
  modelValue: y.descriptionValue,
@@ -2885,7 +2912,7 @@ const gr = {
2885
2912
  }) {
2886
2913
  const t = e, i = qe(), a = nt(i), o = it(a), r = Fe(), l = cn(), {
2887
2914
  categories: s
2888
- } = wo(), {
2915
+ } = yo(), {
2889
2916
  t: u
2890
2917
  } = fe(), d = H(!1), c = H(!1), p = H(!1), f = H(void 0), v = H(null), S = (E) => {
2891
2918
  yt.isBoolean(E) ? c.value = E : c.value = !c.value;
@@ -2932,12 +2959,12 @@ const gr = {
2932
2959
  async function _(E) {
2933
2960
  A.value || await l.update(E._id);
2934
2961
  }
2935
- const R = T(() => r.version === pt.enum.v4);
2936
- async function I(E) {
2962
+ const I = T(() => r.version === pt.enum.v4);
2963
+ async function P(E) {
2937
2964
  const N = to(E, b.value.id);
2938
2965
  await l.updateMany(N);
2939
2966
  }
2940
- const D = T(() => [_o]), O = T(() => !!b.value.name), y = T(() => {
2967
+ const D = T(() => [bo]), O = T(() => !!b.value.name), y = T(() => {
2941
2968
  var Z;
2942
2969
  const E = [], N = "en-US", ee = (Z = f.value) == null ? void 0 : Z[N];
2943
2970
  return b.value.name && !ee && E.push({
@@ -2977,8 +3004,8 @@ const gr = {
2977
3004
  await yn.update(de, v.value, ii.firebase.storageBucket), ee = jn(de);
2978
3005
  }
2979
3006
  await E({
2980
- module: Pe.enum.category,
2981
- operation: Ie.F_OPERATION_TYPE.create,
3007
+ module: Re.enum.category,
3008
+ operation: Pe.F_OPERATION_TYPE.create,
2982
3009
  data: {
2983
3010
  name: b.value.name,
2984
3011
  name_locale: N,
@@ -2996,8 +3023,8 @@ const gr = {
2996
3023
  await yn.update(de, v.value, ii.firebase.storageBucket), Z = jn(de);
2997
3024
  } else v.value === null && (ee != null && ee.thumbnail) && (Z = "");
2998
3025
  await E({
2999
- module: Pe.enum.category,
3000
- operation: Ie.F_OPERATION_TYPE.update,
3026
+ module: Re.enum.category,
3027
+ operation: Pe.F_OPERATION_TYPE.update,
3001
3028
  data: {
3002
3029
  ...ee,
3003
3030
  name: b.value.name,
@@ -3037,8 +3064,8 @@ const gr = {
3037
3064
  "max-width": 560,
3038
3065
  "onOn:clickedAway": m(j)
3039
3066
  }, {
3040
- "side-sheet-header": P(() => [F("p", gr, ae(A.value ? m(u)("menu.category.manager.dialog.add.title") : m(u)("menu.category.title")), 1)]),
3041
- "side-sheet-footer": P(() => [F("div", xr, [g.value ? ne("", !0) : (k(), X(ee, {
3067
+ "side-sheet-header": R(() => [F("p", gr, ae(A.value ? m(u)("menu.category.manager.dialog.add.title") : m(u)("menu.category.title")), 1)]),
3068
+ "side-sheet-footer": R(() => [F("div", xr, [g.value ? ne("", !0) : (k(), X(ee, {
3042
3069
  key: 0,
3043
3070
  label: A.value ? m(u)("menu.category.manager.dialog.add.action") : m(u)("menu.common.actions.update"),
3044
3071
  loading: d.value,
@@ -3051,25 +3078,25 @@ const gr = {
3051
3078
  variant: "tertiary",
3052
3079
  onClick: N[6] || (N[6] = () => c.value = !1)
3053
3080
  }, null, 8, ["label"])])]),
3054
- default: P(() => [F("div", br, [h(Be, {
3081
+ default: R(() => [F("div", br, [h(Be, {
3055
3082
  title: m(u)("menu.category.detail")
3056
3083
  }, {
3057
- default: P(() => [h(de, {
3084
+ default: R(() => [h(de, {
3058
3085
  modelValue: b.value.name,
3059
3086
  "onUpdate:modelValue": N[1] || (N[1] = (J) => b.value.name = J),
3060
3087
  label: m(u)("menu.category.name"),
3061
3088
  rules: D.value,
3062
3089
  readonly: g.value
3063
3090
  }, {
3064
- append: P(() => [h(Z, {
3091
+ append: R(() => [h(Z, {
3065
3092
  variant: "plain",
3066
3093
  placement: "top",
3067
3094
  "z-index": 999
3068
3095
  }, {
3069
- content: P(() => [F("div", yr, [(k(!0), Y(ve, null, Re(y.value, (J) => (k(), Y("div", {
3096
+ content: R(() => [F("div", yr, [(k(!0), Y(ve, null, Ie(y.value, (J) => (k(), Y("div", {
3070
3097
  key: J.locale
3071
3098
  }, ae(J.name) + " (" + ae(J.localeDisplay) + ") ", 1))), 128))])]),
3072
- default: P(() => [h(ee, {
3099
+ default: R(() => [h(ee, {
3073
3100
  variant: "tertiary",
3074
3101
  icon: "g_translate",
3075
3102
  onClick: N[0] || (N[0] = (J) => p.value = !0),
@@ -3091,13 +3118,13 @@ const gr = {
3091
3118
  class: "flex-1 min-h-0",
3092
3119
  shrinkable: !0
3093
3120
  }, {
3094
- "append-title": P(() => [A.value ? (k(), X(Z, {
3121
+ "append-title": R(() => [A.value ? (k(), X(Z, {
3095
3122
  key: 0,
3096
3123
  placement: "top",
3097
3124
  "z-index": 999
3098
3125
  }, {
3099
- content: P(() => [F("div", _r, ae(m(u)("menu.category.products.save_first")), 1)]),
3100
- default: P(() => [h(se, {
3126
+ content: R(() => [F("div", _r, ae(m(u)("menu.category.products.save_first")), 1)]),
3127
+ default: R(() => [h(se, {
3101
3128
  label: m(u)("menu.category.products.add"),
3102
3129
  variant: "secondary",
3103
3130
  "prepend-icon": "add",
@@ -3116,7 +3143,7 @@ const gr = {
3116
3143
  "border-color": "primary",
3117
3144
  onClick: C
3118
3145
  }, null, 8, ["label"]))]),
3119
- default: P(() => [F("div", wr, [F("div", kr, ae(m(u)("menu.category.products.linked_count", {
3146
+ default: R(() => [F("div", wr, [F("div", kr, ae(m(u)("menu.category.products.linked_count", {
3120
3147
  count: B.value.length
3121
3148
  })), 1), F("div", Cr, [h(w, {
3122
3149
  placeholder: m(u)("menu.common.actions.search"),
@@ -3124,20 +3151,20 @@ const gr = {
3124
3151
  "onUpdate:modelValue": N[4] || (N[4] = (J) => V.value = J)
3125
3152
  }, null, 8, ["placeholder", "modelValue"])])]), F("div", Sr, [h(z, {
3126
3153
  "column-defs": x,
3127
- draggable: R.value && !A.value,
3154
+ draggable: I.value && !A.value,
3128
3155
  "page-size": B.value.length,
3129
3156
  "row-data": B.value,
3130
3157
  "search-value": V.value,
3131
3158
  "shrink-at": !1,
3132
3159
  "hide-footer": "",
3133
3160
  "pin-header-row": "",
3134
- onDndChanged: I,
3161
+ onDndChanged: P,
3135
3162
  onRowClick: N[5] || (N[5] = (J) => _(J.original))
3136
3163
  }, null, 8, ["draggable", "page-size", "row-data", "search-value"])])]),
3137
3164
  _: 1
3138
3165
  }, 8, ["title"])])]),
3139
3166
  _: 1
3140
- }, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]), h(In, {
3167
+ }, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]), h(Pn, {
3141
3168
  modelValue: p.value,
3142
3169
  "onUpdate:modelValue": N[8] || (N[8] = (J) => p.value = J),
3143
3170
  title: m(u)("menu.category.title"),
@@ -3184,7 +3211,7 @@ const gr = {
3184
3211
  const g = U("fm-button"), b = U("fm-text-field"), A = U("FmForm");
3185
3212
  return k(), Y(ve, null, [
3186
3213
  h(A, { onValidationSuccess: f }, {
3187
- default: P(() => [
3214
+ default: R(() => [
3188
3215
  h(b, {
3189
3216
  modelValue: a.value,
3190
3217
  "onUpdate:modelValue": S[1] || (S[1] = (V) => a.value = V),
@@ -3193,7 +3220,7 @@ const gr = {
3193
3220
  label: m(t)("menu.category.dialog.add.name.label"),
3194
3221
  placeholder: m(t)("menu.category.dialog.add.name.placeholder")
3195
3222
  }, {
3196
- append: P(() => [
3223
+ append: R(() => [
3197
3224
  h(g, {
3198
3225
  variant: "tertiary",
3199
3226
  icon: "g_translate",
@@ -3206,7 +3233,7 @@ const gr = {
3206
3233
  ]),
3207
3234
  _: 1
3208
3235
  }),
3209
- h(In, {
3236
+ h(Pn, {
3210
3237
  modelValue: i.value,
3211
3238
  "onUpdate:modelValue": S[2] || (S[2] = (V) => i.value = V),
3212
3239
  title: m(t)("menu.category.title"),
@@ -3262,8 +3289,8 @@ const gr = {
3262
3289
  }).onPrimary(async (d) => {
3263
3290
  d != null && d.name && (await u(
3264
3291
  {
3265
- module: Pe.enum.category,
3266
- operation: Ie.F_OPERATION_TYPE.update,
3292
+ module: Re.enum.category,
3293
+ operation: Pe.F_OPERATION_TYPE.update,
3267
3294
  data: {
3268
3295
  ...s,
3269
3296
  name: d.name,
@@ -3290,8 +3317,8 @@ const gr = {
3290
3317
  }).onPrimary(async () => {
3291
3318
  await u(
3292
3319
  {
3293
- module: Pe.enum.category,
3294
- operation: Ie.F_OPERATION_TYPE.delete,
3320
+ module: Re.enum.category,
3321
+ operation: Pe.F_OPERATION_TYPE.delete,
3295
3322
  data: s._id
3296
3323
  },
3297
3324
  s.name,
@@ -3302,8 +3329,8 @@ const gr = {
3302
3329
  async function l(s) {
3303
3330
  await n.updateMenu(
3304
3331
  {
3305
- module: Pe.enum.category,
3306
- operation: Ie.F_OPERATION_TYPE.rearrange,
3332
+ module: Re.enum.category,
3333
+ operation: Pe.F_OPERATION_TYPE.rearrange,
3307
3334
  data: s
3308
3335
  },
3309
3336
  "Categories"
@@ -3326,11 +3353,11 @@ const Fr = {
3326
3353
  class: "flex-1 flex flex-col gap-24"
3327
3354
  }, zr = {
3328
3355
  class: /* @__PURE__ */ Ne(["flex space-x-16", "xs:flex-col xs:space-x-0 xs:space-y-16"])
3329
- }, Ir = {
3330
- class: "w-[160px] xs:w-full"
3331
3356
  }, Pr = {
3332
- class: "flex-1"
3357
+ class: "w-[160px] xs:w-full"
3333
3358
  }, Rr = {
3359
+ class: "flex-1"
3360
+ }, Ir = {
3334
3361
  class: "py-12 px-16 space-y-4"
3335
3362
  }, Or = {
3336
3363
  class: "relative"
@@ -3444,7 +3471,7 @@ const Kr = /* @__PURE__ */ pe({
3444
3471
  var K;
3445
3472
  const L = t.form.name2 || ((K = t.fallback) == null ? void 0 : K.name2);
3446
3473
  return L ? i.items.filter((oe) => !!oe.category && oe._id !== t.form._id && oe.name2 === L).length : 0;
3447
- }), R = T(() => {
3474
+ }), I = T(() => {
3448
3475
  var ke, Ce, we;
3449
3476
  if (!i.state.featureFlags.uniqueProductCode) return 0;
3450
3477
  const L = t.form.code || ((ke = t.fallback) == null ? void 0 : ke.code);
@@ -3454,10 +3481,10 @@ const Kr = /* @__PURE__ */ pe({
3454
3481
  return (oe == null ? void 0 : oe.code) === L && (K -= 1), (we = (Ce = oe == null ? void 0 : oe.variant) == null ? void 0 : Ce.variantCombinations) == null || we.forEach((me) => {
3455
3482
  me.code === L && (K -= 1);
3456
3483
  }), K;
3457
- }), I = T(() => t.isAddon ? vt.ADD_ON : vt.PRODUCT);
3484
+ }), P = T(() => t.isAddon ? vt.ADD_ON : vt.PRODUCT);
3458
3485
  function D(L) {
3459
3486
  var oe, ke, Ce;
3460
- if (I.value === L) return;
3487
+ if (P.value === L) return;
3461
3488
  const K = L == vt.ADD_ON;
3462
3489
  c("update:form", "category", t.isOverride ? K ? "" : ((oe = t.fallback) == null ? void 0 : oe.category) ?? ((ke = v.value.find((we) => !!we.value)) == null ? void 0 : ke.value) : K ? null : (Ce = v.value.find((we) => !!we.value)) == null ? void 0 : Ce.value), K && (c("update:form", "additionalCategories", []), c("update:form", "subCategories", []));
3463
3490
  }
@@ -3550,21 +3577,21 @@ const Kr = /* @__PURE__ */ pe({
3550
3577
  });
3551
3578
  return (L, K) => {
3552
3579
  var he, ye;
3553
- const oe = U("fm-text-field"), ke = U("fm-button"), Ce = U("FmTooltip"), we = U("fm-textarea"), me = U("fm-radio"), $e = U("FmSnackbar"), It = U("FmButton"), Pt = U("fm-radio-group"), Rt = U("FmFormGroup"), q = U("FmStepperField"), W = Kt("tooltip");
3580
+ const oe = U("fm-text-field"), ke = U("fm-button"), Ce = U("FmTooltip"), we = U("fm-textarea"), me = U("fm-radio"), $e = U("FmSnackbar"), Pt = U("FmButton"), Rt = U("fm-radio-group"), It = U("FmFormGroup"), q = U("FmStepperField"), W = Kt("tooltip");
3554
3581
  return k(), Y(ve, null, [h(Be, {
3555
3582
  title: m(N)("menu.product.form.detail.title")
3556
3583
  }, {
3557
- default: P(() => {
3584
+ default: R(() => {
3558
3585
  var ie, ft, Ke, Vt;
3559
- return [F("div", Fr, [F("div", Mr, [F("div", zr, [F("div", Ir, [h(oe, {
3586
+ return [F("div", Fr, [F("div", Mr, [F("div", zr, [F("div", Pr, [h(oe, {
3560
3587
  "model-value": L.form.code,
3561
3588
  placeholder: ((ie = L.fallback) == null ? void 0 : ie.code) || m(N)("menu.product.form.detail.fields.code.placeholder"),
3562
3589
  label: m(N)("menu.product.form.detail.fields.code.label"),
3563
- rules: [(le) => R.value === 0 || m(N)("menu.product.form.detail.fields.code.duplicate_warning", {
3564
- count: R.value
3590
+ rules: [(le) => I.value === 0 || m(N)("menu.product.form.detail.fields.code.duplicate_warning", {
3591
+ count: I.value
3565
3592
  })],
3566
3593
  "onUpdate:modelValue": K[0] || (K[0] = (le) => c("update:form", "code", m(Fn)(le, L.isOverride)))
3567
- }, null, 8, ["model-value", "placeholder", "label", "rules"])]), F("div", Pr, [h(oe, {
3594
+ }, null, 8, ["model-value", "placeholder", "label", "rules"])]), F("div", Rr, [h(oe, {
3568
3595
  id: "product-name",
3569
3596
  disabled: !p.value.name,
3570
3597
  "helper-text": C.value > 0 ? m(N)("menu.product.form.detail.fields.name.duplicate_warning", {
@@ -3578,15 +3605,15 @@ const Kr = /* @__PURE__ */ pe({
3578
3605
  label: m(N)("menu.product.form.detail.fields.name.label"),
3579
3606
  "onUpdate:modelValue": K[1] || (K[1] = (le) => c("update:form", "name", le))
3580
3607
  }, {
3581
- append: P(() => [h(Ce, {
3608
+ append: R(() => [h(Ce, {
3582
3609
  variant: "plain",
3583
3610
  placement: "top",
3584
3611
  "z-index": 999
3585
3612
  }, {
3586
- content: P(() => [F("div", Rr, [(k(!0), Y(ve, null, Re(de.value, (le) => (k(), Y("div", {
3613
+ content: R(() => [F("div", Ir, [(k(!0), Y(ve, null, Ie(de.value, (le) => (k(), Y("div", {
3587
3614
  key: le.locale
3588
3615
  }, ae(le.name) + " (" + ae(le.localeDisplay) + ") ", 1))), 128))])]),
3589
- default: P(() => [h(ke, {
3616
+ default: R(() => [h(ke, {
3590
3617
  variant: "tertiary",
3591
3618
  icon: "g_translate",
3592
3619
  onClick: w,
@@ -3612,17 +3639,17 @@ const Kr = /* @__PURE__ */ pe({
3612
3639
  "onUpdate:modelValue": K[3] || (K[3] = (le) => c("update:form", "description", le.trim())),
3613
3640
  class: "description"
3614
3641
  }, {
3615
- label: P(() => [F("p", $r, [jt(ae(m(N)("menu.product.form.detail.fields.description.label")) + " ", 1), F("span", Dr, ae(m(N)("menu.product.form.detail.fields.description.optional")), 1)])]),
3642
+ label: R(() => [F("p", $r, [jt(ae(m(N)("menu.product.form.detail.fields.description.label")) + " ", 1), F("span", Dr, ae(m(N)("menu.product.form.detail.fields.description.optional")), 1)])]),
3616
3643
  _: 1
3617
3644
  }, 8, ["disabled", "model-value", "placeholder"]), F("div", Er, [h(Ce, {
3618
3645
  variant: "plain",
3619
3646
  placement: "top",
3620
3647
  "z-index": 999
3621
3648
  }, {
3622
- content: P(() => [F("div", Ur, [(k(!0), Y(ve, null, Re(se.value, (le) => (k(), Y("div", {
3649
+ content: R(() => [F("div", Ur, [(k(!0), Y(ve, null, Ie(se.value, (le) => (k(), Y("div", {
3623
3650
  key: le.locale
3624
3651
  }, ae(le.name) + " (" + ae(le.localeDisplay) + ") ", 1))), 128))])]),
3625
- default: P(() => {
3652
+ default: R(() => {
3626
3653
  var le;
3627
3654
  return [ut(h(ke, {
3628
3655
  variant: "tertiary",
@@ -3646,26 +3673,26 @@ const Kr = /* @__PURE__ */ pe({
3646
3673
  }, null, 8, ["disabled", "title", "model-value"])]), h(ct, {
3647
3674
  label: m(i).isV4 ? m(N)("menu.product.form.detail.category.label") : m(N)("menu.product.form.detail.category.label_singular")
3648
3675
  }, {
3649
- default: P(() => [S.value ? (k(), X(Pt, {
3676
+ default: R(() => [S.value ? (k(), X(Rt, {
3650
3677
  key: 0,
3651
3678
  disabled: !p.value.category,
3652
- "model-value": I.value,
3679
+ "model-value": P.value,
3653
3680
  "onUpdate:modelValue": K[7] || (K[7] = (le) => D(le))
3654
3681
  }, {
3655
- default: P(() => [F("div", Lr, [F("div", Nr, [h(me, {
3682
+ default: R(() => [F("div", Lr, [F("div", Nr, [h(me, {
3656
3683
  disabled: g.value || !p.value.category,
3657
3684
  value: vt.PRODUCT,
3658
3685
  label: m(N)("menu.product.form.detail.category.options.product.label"),
3659
3686
  sublabel: m(N)("menu.product.form.detail.category.options.product.sublabel")
3660
3687
  }, null, 8, ["disabled", "value", "label", "sublabel"]), h(ta, null, {
3661
- default: P(() => [m(i).isV4 ? (k(), X(x, {
3688
+ default: R(() => [m(i).isV4 ? (k(), X(x, {
3662
3689
  key: 0
3663
3690
  })) : ne("", !0)]),
3664
3691
  _: 1
3665
3692
  })]), g.value ? (k(), Y("div", Br, [h($e, {
3666
3693
  title: m(N)("menu.product.form.detail.category.add_first"),
3667
3694
  variant: "info"
3668
- }, null, 8, ["title"]), h(It, {
3695
+ }, null, 8, ["title"]), h(Pt, {
3669
3696
  label: m(N)("menu.common.actions.add"),
3670
3697
  "prepend-icon": "add",
3671
3698
  variant: "secondary",
@@ -3676,13 +3703,13 @@ const Kr = /* @__PURE__ */ pe({
3676
3703
  sublabel: m(N)("menu.product.form.detail.category.options.addon.sublabel")
3677
3704
  }, null, 8, ["value", "label", "sublabel"])])]),
3678
3705
  _: 1
3679
- }, 8, ["disabled", "model-value"])) : ne("", !0), m(i).isV4 ? ne("", !0) : (k(), X(Rt, {
3706
+ }, 8, ["disabled", "model-value"])) : ne("", !0), m(i).isV4 ? ne("", !0) : (k(), X(It, {
3680
3707
  key: 1,
3681
3708
  "model-value": L.form.category,
3682
3709
  rules: [(le) => !le && !L.isOverride ? "Category is required" : !0],
3683
3710
  "onUpdate:modelValue": K[8] || (K[8] = (le) => c("update:form", "category", le))
3684
3711
  }, {
3685
- default: P(() => [h(x, {
3712
+ default: R(() => [h(x, {
3686
3713
  multiple: !1
3687
3714
  })]),
3688
3715
  _: 1
@@ -3692,7 +3719,7 @@ const Kr = /* @__PURE__ */ pe({
3692
3719
  key: 0,
3693
3720
  label: m(N)("menu.product.form.detail.path.label")
3694
3721
  }, {
3695
- default: P(() => [F("div", jr, [h(ir, {
3722
+ default: R(() => [F("div", jr, [h(ir, {
3696
3723
  modelValue: j.value,
3697
3724
  "onUpdate:modelValue": K[9] || (K[9] = (le) => j.value = le),
3698
3725
  items: $.value,
@@ -3793,7 +3820,7 @@ const Ui = /* @__PURE__ */ bt(Hr, [["render", Xr]]), Zr = /* @__PURE__ */ pe({
3793
3820
  action: "add",
3794
3821
  title: m(l)("menu.group.add")
3795
3822
  }, {
3796
- default: P(({ trigger: d }) => [
3823
+ default: R(({ trigger: d }) => [
3797
3824
  Ve(s.$slots, "default", { trigger: d })
3798
3825
  ]),
3799
3826
  _: 3
@@ -3840,12 +3867,12 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
3840
3867
  }), C.size === 0 && t.group.name_locale && Object.keys(t.group.name_locale).forEach((D) => C.add(D));
3841
3868
  const _ = Array.from(C);
3842
3869
  l.value = _;
3843
- const R = {}, I = {};
3870
+ const I = {}, P = {};
3844
3871
  Object.values(t.group.items).forEach((D) => {
3845
- R[D._id] = {}, D.name_locale && Object.entries(D.name_locale).forEach(([O, y]) => {
3846
- R[D._id][O] = y;
3847
- }), I[D._id] = D.name || D.fallbackName || "";
3848
- }), u.value = R, c.value = I;
3872
+ I[D._id] = {}, D.name_locale && Object.entries(D.name_locale).forEach(([O, y]) => {
3873
+ I[D._id][O] = y;
3874
+ }), P[D._id] = D.name || D.fallbackName || "";
3875
+ }), u.value = I, c.value = P;
3849
3876
  }
3850
3877
  xe(
3851
3878
  () => [t.modelValue, t.group],
@@ -3855,14 +3882,14 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
3855
3882
  { immediate: !0, deep: !0 }
3856
3883
  );
3857
3884
  function g(C) {
3858
- const _ = new Set(l.value), R = new Set(C);
3859
- for (const I of C)
3860
- _.has(I) || Object.keys(u.value).forEach((D) => {
3861
- u.value[D][I] || (u.value[D][I] = "");
3885
+ const _ = new Set(l.value), I = new Set(C);
3886
+ for (const P of C)
3887
+ _.has(P) || Object.keys(u.value).forEach((D) => {
3888
+ u.value[D][P] || (u.value[D][P] = "");
3862
3889
  });
3863
- for (const I of _)
3864
- R.has(I) || Object.keys(u.value).forEach((D) => {
3865
- delete u.value[D][I];
3890
+ for (const P of _)
3891
+ I.has(P) || Object.keys(u.value).forEach((D) => {
3892
+ delete u.value[D][P];
3866
3893
  });
3867
3894
  l.value = C;
3868
3895
  }
@@ -3872,12 +3899,12 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
3872
3899
  function A() {
3873
3900
  const C = ze.clone(t.group);
3874
3901
  Object.keys(C.items).forEach((_) => {
3875
- const R = c.value[_];
3876
- R !== void 0 && (C.items[_].name = R || null);
3877
- const I = u.value[_];
3878
- if (I && Object.keys(I).length > 0) {
3902
+ const I = c.value[_];
3903
+ I !== void 0 && (C.items[_].name = I || null);
3904
+ const P = u.value[_];
3905
+ if (P && Object.keys(P).length > 0) {
3879
3906
  const D = {};
3880
- Object.entries(I).forEach(([O, y]) => {
3907
+ Object.entries(P).forEach(([O, y]) => {
3881
3908
  y && y.trim() && (D[O] = y.trim());
3882
3909
  }), Object.keys(D).length > 0 ? C.items[_].name_locale = D : delete C.items[_].name_locale;
3883
3910
  } else
@@ -3892,25 +3919,25 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
3892
3919
  set: (C) => i("update:modelValue", C)
3893
3920
  });
3894
3921
  return (C, _) => {
3895
- const R = U("FmIcon"), I = U("fm-button"), D = U("fm-side-sheet");
3922
+ const I = U("FmIcon"), P = U("fm-button"), D = U("fm-side-sheet");
3896
3923
  return k(), X(D, {
3897
3924
  modelValue: x.value,
3898
3925
  "onUpdate:modelValue": _[2] || (_[2] = (O) => x.value = O),
3899
3926
  "max-width": 720,
3900
3927
  "onOn:clickedAway": m(B)
3901
3928
  }, {
3902
- "side-sheet-header": P(() => [
3929
+ "side-sheet-header": R(() => [
3903
3930
  F("p", ns, ae(m(a)("menu.group.translation.title")), 1)
3904
3931
  ]),
3905
- "side-sheet-footer": P(() => [
3932
+ "side-sheet-footer": R(() => [
3906
3933
  F("div", fs, [
3907
- h(I, {
3934
+ h(P, {
3908
3935
  label: m(a)("common.save"),
3909
3936
  size: "lg",
3910
3937
  variant: "primary",
3911
3938
  onClick: A
3912
3939
  }, null, 8, ["label"]),
3913
- h(I, {
3940
+ h(P, {
3914
3941
  label: m(a)("common.cancel"),
3915
3942
  size: "lg",
3916
3943
  variant: "tertiary",
@@ -3918,7 +3945,7 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
3918
3945
  }, null, 8, ["label", "onClick"])
3919
3946
  ])
3920
3947
  ]),
3921
- default: P(() => [
3948
+ default: R(() => [
3922
3949
  F("div", is, [
3923
3950
  h(pi, {
3924
3951
  "selected-locales": l.value,
@@ -3930,7 +3957,7 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
3930
3957
  class: "flex items-center gap-16 cursor-pointer",
3931
3958
  onClick: _[0] || (_[0] = (O) => o.value = !o.value)
3932
3959
  }, [
3933
- h(R, {
3960
+ h(I, {
3934
3961
  name: "keyboard_arrow_down",
3935
3962
  class: Ne(["transition-transform", o.value ? "transform rotate-180" : ""])
3936
3963
  }, null, 8, ["class"]),
@@ -3946,7 +3973,7 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
3946
3973
  h(qt, {
3947
3974
  label: m(a)("menu.group.translation.translation")
3948
3975
  }, null, 8, ["label"]),
3949
- (k(!0), Y(ve, null, Re(f.value, (O) => (k(), X(Xt, {
3976
+ (k(!0), Y(ve, null, Ie(f.value, (O) => (k(), X(Xt, {
3950
3977
  key: O.localeCode,
3951
3978
  "locale-code": O.localeCode,
3952
3979
  "model-value": O.value,
@@ -3960,14 +3987,14 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
3960
3987
  class: "flex items-center gap-16 cursor-pointer",
3961
3988
  onClick: _[1] || (_[1] = (O) => r.value = !r.value)
3962
3989
  }, [
3963
- h(R, {
3990
+ h(I, {
3964
3991
  name: "keyboard_arrow_down",
3965
3992
  class: Ne(["transition-transform", r.value ? "transform rotate-180" : ""])
3966
3993
  }, null, 8, ["class"]),
3967
3994
  F("p", us, ae(m(a)("menu.group.translation.product_name")), 1)
3968
3995
  ]),
3969
3996
  r.value ? (k(), Y("div", cs, [
3970
- (k(!0), Y(ve, null, Re(v.value, (O) => (k(), Y("div", {
3997
+ (k(!0), Y(ve, null, Ie(v.value, (O) => (k(), Y("div", {
3971
3998
  key: O._id,
3972
3999
  class: "space-y-8"
3973
4000
  }, [
@@ -3985,7 +4012,7 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
3985
4012
  label: m(a)("menu.group.translation.translation"),
3986
4013
  spacing: "sm"
3987
4014
  }, null, 8, ["label"]),
3988
- (k(!0), Y(ve, null, Re(l.value, (y) => (k(), X(Xt, {
4015
+ (k(!0), Y(ve, null, Ie(l.value, (y) => (k(), X(Xt, {
3989
4016
  key: y,
3990
4017
  "locale-code": y,
3991
4018
  modelValue: u.value[O._id][y],
@@ -4052,10 +4079,10 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
4052
4079
  "max-width": 560,
4053
4080
  "onOn:clickedAway": m(s)
4054
4081
  }, {
4055
- "side-sheet-header": P(() => [
4082
+ "side-sheet-header": R(() => [
4056
4083
  F("p", vs, ae(f.title || m(c)("menu.inventory.form.title")), 1)
4057
4084
  ]),
4058
- "side-sheet-footer": P(() => [
4085
+ "side-sheet-footer": R(() => [
4059
4086
  F("div", bs, [
4060
4087
  h(b, {
4061
4088
  label: m(c)("menu.common.actions.add"),
@@ -4071,7 +4098,7 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
4071
4098
  }, null, 8, ["label"])
4072
4099
  ])
4073
4100
  ]),
4074
- default: P(() => [
4101
+ default: R(() => [
4075
4102
  F("div", gs, [
4076
4103
  h(S, {
4077
4104
  "model-value": f.name,
@@ -4082,8 +4109,8 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
4082
4109
  class: "p-16 space-y-24",
4083
4110
  variant: "outlined"
4084
4111
  }, {
4085
- default: P(() => [
4086
- h(m(Co), {
4112
+ default: R(() => [
4113
+ h(m(wo), {
4087
4114
  modelValue: r.value,
4088
4115
  "onUpdate:modelValue": v[0] || (v[0] = (V) => r.value = V)
4089
4116
  }, null, 8, ["modelValue"])
@@ -4164,9 +4191,9 @@ const ws = {
4164
4191
  class: "flex flex-col gap-4"
4165
4192
  }, zs = {
4166
4193
  class: "fm-typo-en-body-lg-600"
4167
- }, Is = {
4168
- class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
4169
4194
  }, Ps = {
4195
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
4196
+ }, Rs = {
4170
4197
  class: "flex gap-8 items-center justify-start"
4171
4198
  }, ln = /* @__PURE__ */ pe({
4172
4199
  __name: "MemberPriceForm",
@@ -4259,8 +4286,8 @@ const ws = {
4259
4286
  blameFormChildOnValidationFailed: !0
4260
4287
  }
4261
4288
  }, {
4262
- "side-sheet-header": P(() => [F("p", xs, ae(g.title), 1)]),
4263
- "side-sheet-footer": P(() => [F("div", Ps, [h(V, {
4289
+ "side-sheet-header": R(() => [F("p", xs, ae(g.title), 1)]),
4290
+ "side-sheet-footer": R(() => [F("div", Rs, [h(V, {
4264
4291
  label: m(o)("menu.common.actions.apply"),
4265
4292
  size: "lg",
4266
4293
  type: "submit",
@@ -4271,7 +4298,7 @@ const ws = {
4271
4298
  variant: "tertiary",
4272
4299
  onClick: b[1] || (b[1] = () => r.value = !1)
4273
4300
  }, null, 8, ["label"])])]),
4274
- default: P(() => [F("div", As, [h(Ss, {
4301
+ default: R(() => [F("div", As, [h(Ss, {
4275
4302
  name: g.currentConfig
4276
4303
  }, null, 8, ["name"]), F("div", Vs, [F("p", Ts, ae(m(o)("menu.product.form.member_price.configure.pricing_grid")), 1), h(lt, {
4277
4304
  min: 0,
@@ -4283,14 +4310,14 @@ const ws = {
4283
4310
  "show-currency": "",
4284
4311
  rules: g.currentConfig == "Main Pricing" ? [(C) => !!C || m(o)("menu.product.form.price.fields.selling_price.required")] : []
4285
4312
  }, {
4286
- append: P(() => [m(t).showRemy ? ut((k(), X(m(Ht), {
4313
+ append: R(() => [m(t).showRemy ? ut((k(), X(m(Ht), {
4287
4314
  key: 0,
4288
4315
  "pure-styling": "",
4289
4316
  class: "shrink-0 scale-75",
4290
4317
  onClick: c
4291
4318
  }, null, 512)), [[x, m(Ft)("Suggest pricing")]]) : ne("", !0)]),
4292
4319
  _: 1
4293
- }, 8, ["modelValue", "placeholder", "label", "rules"])]), F("div", Fs, [F("div", Ms, [F("p", zs, ae(m(o)("menu.product.form.member_price.configure.member_selling_price.label")), 1), F("p", Is, ae(m(o)("menu.product.form.member_price.configure.member_selling_price.sublabel")), 1)]), h(A, {
4320
+ }, 8, ["modelValue", "placeholder", "label", "rules"])]), F("div", Fs, [F("div", Ms, [F("p", zs, ae(m(o)("menu.product.form.member_price.configure.member_selling_price.label")), 1), F("p", Ps, ae(m(o)("menu.product.form.member_price.configure.member_selling_price.sublabel")), 1)]), h(A, {
4294
4321
  "column-defs": f,
4295
4322
  "row-data": v.value,
4296
4323
  "hide-footer": ""
@@ -4299,7 +4326,7 @@ const ws = {
4299
4326
  }, 8, ["modelValue", "is-container", "is-container-props"])], 64);
4300
4327
  };
4301
4328
  }
4302
- }), Rs = {
4329
+ }), Is = {
4303
4330
  class: "flex flex-col gap-8 p-8"
4304
4331
  }, Os = {
4305
4332
  class: "fm-typo-en-body-md-600"
@@ -4325,11 +4352,11 @@ const ws = {
4325
4352
  placement: t.placement || "right",
4326
4353
  "z-index": 100
4327
4354
  }, {
4328
- default: P(() => [h(l, {
4355
+ default: R(() => [h(l, {
4329
4356
  name: "info",
4330
4357
  outline: ""
4331
4358
  })]),
4332
- content: P(() => [F("div", Rs, [F("p", Os, ae(m(n)("menu.member_pricing.title")), 1), F("ul", $s, [(k(!0), Y(ve, null, Re(a.value, (u) => (k(), Y("li", {
4359
+ content: R(() => [F("div", Is, [F("p", Os, ae(m(n)("menu.member_pricing.title")), 1), F("ul", $s, [(k(!0), Y(ve, null, Ie(a.value, (u) => (k(), Y("li", {
4333
4360
  key: u,
4334
4361
  class: "fm-typo-en-body-md-400"
4335
4362
  }, ae(u), 1))), 128))])])]),
@@ -4486,10 +4513,10 @@ const ws = {
4486
4513
  "max-width": 560,
4487
4514
  "onOn:clickedAway": m(p)
4488
4515
  }, {
4489
- "side-sheet-header": P(() => [
4516
+ "side-sheet-header": R(() => [
4490
4517
  F("p", Ds, ae(r.value), 1)
4491
4518
  ]),
4492
- "side-sheet-footer": P(() => [
4519
+ "side-sheet-footer": R(() => [
4493
4520
  F("div", Us, [
4494
4521
  h(b, {
4495
4522
  label: l.value,
@@ -4505,13 +4532,13 @@ const ws = {
4505
4532
  }, null, 8, ["label"])
4506
4533
  ])
4507
4534
  ]),
4508
- default: P(() => [
4535
+ default: R(() => [
4509
4536
  F("div", Es, [
4510
4537
  h(ct, {
4511
4538
  label: m(t)("menu.price_tier.price_group"),
4512
4539
  description: m(t)("menu.price_tier.description")
4513
4540
  }, {
4514
- append: P(() => [
4541
+ append: R(() => [
4515
4542
  h(g, {
4516
4543
  class: "min-w-fit",
4517
4544
  label: m(t)("menu.price_tier.add_price_group"),
@@ -4520,7 +4547,7 @@ const ws = {
4520
4547
  onClick: m(u).create
4521
4548
  }, null, 8, ["label", "onClick"])
4522
4549
  ]),
4523
- default: P(() => [
4550
+ default: R(() => [
4524
4551
  h(Li, {
4525
4552
  "price-tiers": m(u).priceTiers.value,
4526
4553
  "price-variant": c.value,
@@ -4577,7 +4604,7 @@ const ws = {
4577
4604
  "z-index": 999,
4578
4605
  placement: "top"
4579
4606
  }, {
4580
- default: P(() => [
4607
+ default: R(() => [
4581
4608
  h(d, {
4582
4609
  icon: "price_change",
4583
4610
  variant: "tertiary",
@@ -4641,7 +4668,7 @@ const Ns = {
4641
4668
  }))])), {
4642
4669
  searchKey: f,
4643
4670
  filter: v
4644
- } = xo(), S = T(() => {
4671
+ } = Co(), S = T(() => {
4645
4672
  const w = Object.entries(t.group.items).filter(([, z]) => v([z.code || "", z.name || z.fallbackName, A(z.price ?? z.fallbackPrice), V(z.orderFrom || z.fallbackOrder), ...(z.items || []).map((G) => [G.code || "", G.name || G.fallbackName, A(G.price ?? G.fallbackPrice), V(G.orderFrom || G.fallbackOrder)].join(""))]));
4646
4673
  return Object.fromEntries(w);
4647
4674
  }), g = (w) => ({
@@ -4655,7 +4682,7 @@ const Ns = {
4655
4682
  return w == null ? "" : (z = io()[w]) == null ? void 0 : z.label;
4656
4683
  }, B = T(() => Object.values(S.value)), x = H({}), {
4657
4684
  t: C
4658
- } = fe(), _ = nn(), R = H([{
4685
+ } = fe(), _ = nn(), I = H([{
4659
4686
  accessorKey: "isDefault",
4660
4687
  header: () => C("menu.group.option.is_default"),
4661
4688
  enableSorting: !1,
@@ -4930,7 +4957,7 @@ const Ns = {
4930
4957
  }
4931
4958
  }, null)]);
4932
4959
  }
4933
- }]), I = T(() => ({
4960
+ }]), P = T(() => ({
4934
4961
  code: c.value,
4935
4962
  name: !0,
4936
4963
  price: g(null).price,
@@ -5055,19 +5082,19 @@ const Ns = {
5055
5082
  title: m(C)("menu.group.option.title"),
5056
5083
  "sub-title": w.config.link() && d.value ? m(C)("menu.group.option.subtitle") : ""
5057
5084
  }, {
5058
- "append-title": P(() => [w.config.link() ? (k(), Y(ve, {
5085
+ "append-title": R(() => [w.config.link() ? (k(), Y(ve, {
5059
5086
  key: 0
5060
5087
  }, [d.value ? (k(), Y("div", Ns, [h(lo, {
5061
5088
  "categorized-items": w.categorizedItems,
5062
5089
  "initial-value": p.value,
5063
5090
  "show-variant": w.config.bindToVariant,
5064
- "select-variant": !1,
5091
+ "select-variant": "",
5065
5092
  title: m(C)("menu.group.option.link_products"),
5066
5093
  onSubmit: z[0] || (z[0] = ({
5067
5094
  items: te
5068
5095
  }) => N(te))
5069
5096
  }, {
5070
- default: P(({
5097
+ default: R(({
5071
5098
  trigger: te
5072
5099
  }) => [h(G, {
5073
5100
  "text-color": m(Je).ColorPrimary,
@@ -5086,9 +5113,9 @@ const Ns = {
5086
5113
  "prepend-icon": "add",
5087
5114
  onClick: D
5088
5115
  }, null, 8, ["text-color", "border-color", "label"])]))], 64)) : ne("", !0)]),
5089
- default: P(() => [F("div", js, [F("div", Gs, [h(J, {
5090
- "column-defs": R.value,
5091
- "column-visibility": I.value,
5116
+ default: R(() => [F("div", js, [F("div", Gs, [h(J, {
5117
+ "column-defs": I.value,
5118
+ "column-visibility": P.value,
5092
5119
  draggable: !se.value && g(null).name,
5093
5120
  "expanded-state": l.value ? {} : x.value,
5094
5121
  "get-sub-row": ee,
@@ -5215,13 +5242,13 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5215
5242
  });
5216
5243
  }
5217
5244
  const _ = H((se = i.group) == null ? void 0 : se.name);
5218
- function R(w) {
5245
+ function I(w) {
5219
5246
  i.group && (_.value = w, x({
5220
5247
  ...i.group,
5221
5248
  name: w
5222
5249
  }));
5223
5250
  }
5224
- function I(w) {
5251
+ function P(w) {
5225
5252
  function z() {
5226
5253
  x({
5227
5254
  ...i.group,
@@ -5279,12 +5306,12 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5279
5306
  name: _.value,
5280
5307
  ...i.group.name_locale && { name_locale: i.group.name_locale }
5281
5308
  }, { group: G, linkItems: J } = gi(z), te = {
5282
- module: Pe.enum.group,
5283
- operation: Ie.F_OPERATION_TYPE.create,
5309
+ module: Re.enum.group,
5310
+ operation: Pe.F_OPERATION_TYPE.create,
5284
5311
  data: G,
5285
5312
  link: [
5286
5313
  {
5287
- module: Pe.enum.item,
5314
+ module: Re.enum.item,
5288
5315
  id: "",
5289
5316
  data: J
5290
5317
  }
@@ -5293,7 +5320,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5293
5320
  await u.updateMenu(te, G.name), a("submit:group", z);
5294
5321
  } else if (i.action === "update") {
5295
5322
  for (const G of Object.values(((w = i.group) == null ? void 0 : w.items) ?? {}))
5296
- if (ho(o.state.menu, i.group._id, G._id)) {
5323
+ if (Ho(o.state.menu, i.group._id, G._id)) {
5297
5324
  s.open({
5298
5325
  type: "error",
5299
5326
  message: Z("menu.product.form.group.circularError", {
@@ -5375,13 +5402,13 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5375
5402
  "max-width": 800,
5376
5403
  "onOn:clickedAway": m(y)
5377
5404
  }, {
5378
- "side-sheet-header": P(() => [
5405
+ "side-sheet-header": R(() => [
5379
5406
  F("p", Hs, ae(w.title), 1)
5380
5407
  ]),
5381
- "side-sheet-footer": P(() => [
5408
+ "side-sheet-footer": R(() => [
5382
5409
  F("div", Xs, [
5383
5410
  h(G, {
5384
- label: m(Ao)(M.value),
5411
+ label: m(So)(M.value),
5385
5412
  loading: f.value,
5386
5413
  size: "lg",
5387
5414
  type: "submit",
@@ -5395,11 +5422,11 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5395
5422
  }, null, 8, ["label"])
5396
5423
  ])
5397
5424
  ]),
5398
- default: P(() => [
5425
+ default: R(() => [
5399
5426
  w.group ? (k(), Y("div", Ys, [
5400
5427
  Ve(w.$slots, "variant-section"),
5401
5428
  h(co, null, {
5402
- default: P(() => {
5429
+ default: R(() => {
5403
5430
  var we;
5404
5431
  return [
5405
5432
  h(te, {
@@ -5411,20 +5438,20 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5411
5438
  autofocus: "",
5412
5439
  label: m(Z)("menu.common.labels.group_name")
5413
5440
  }, {
5414
- append: P(() => [
5441
+ append: R(() => [
5415
5442
  h(J, {
5416
5443
  variant: "plain",
5417
5444
  placement: "top",
5418
5445
  "z-index": 999
5419
5446
  }, {
5420
- content: P(() => [
5447
+ content: R(() => [
5421
5448
  F("div", qs, [
5422
- (k(!0), Y(ve, null, Re(de.value, (me) => (k(), Y("div", {
5449
+ (k(!0), Y(ve, null, Ie(de.value, (me) => (k(), Y("div", {
5423
5450
  key: me.locale
5424
5451
  }, ae(me.name) + " (" + ae(me.localeDisplay) + ") ", 1))), 128))
5425
5452
  ])
5426
5453
  ]),
5427
- default: P(() => [
5454
+ default: R(() => [
5428
5455
  h(G, {
5429
5456
  variant: "tertiary",
5430
5457
  icon: "g_translate",
@@ -5441,9 +5468,9 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5441
5468
  "model-value": w.group.min + " " + w.group.max,
5442
5469
  rules: m(p)
5443
5470
  }, {
5444
- default: P(() => [
5471
+ default: R(() => [
5445
5472
  h(ts, null, {
5446
- default: P(() => [
5473
+ default: R(() => [
5447
5474
  h(ce, {
5448
5475
  modelValue: w.group.min,
5449
5476
  "onUpdate:modelValue": z[2] || (z[2] = (me) => w.group.min = me),
@@ -5470,14 +5497,14 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5470
5497
  key: 0,
5471
5498
  label: m(Z)("menu.common.labels.group_type")
5472
5499
  }, {
5473
- default: P(() => [
5500
+ default: R(() => [
5474
5501
  h(K, {
5475
5502
  disabled: V("type"),
5476
5503
  "model-value": w.group.type,
5477
- "onUpdate:modelValue": z[4] || (z[4] = (me) => I(me))
5504
+ "onUpdate:modelValue": z[4] || (z[4] = (me) => P(me))
5478
5505
  }, {
5479
- default: P(() => [
5480
- (k(!0), Y(ve, null, Re(B.value, (me) => (k(), X(L, {
5506
+ default: R(() => [
5507
+ (k(!0), Y(ve, null, Ie(B.value, (me) => (k(), X(L, {
5481
5508
  key: me.value,
5482
5509
  label: m(Z)(`menu.group.types.${me.label.toLowerCase()}`),
5483
5510
  value: me.value
@@ -5491,7 +5518,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5491
5518
  h(ct, {
5492
5519
  label: m(Z)("menu.common.labels.configuration")
5493
5520
  }, {
5494
- default: P(() => [
5521
+ default: R(() => [
5495
5522
  h(oe, {
5496
5523
  modelValue: w.group.stackable,
5497
5524
  "onUpdate:modelValue": z[5] || (z[5] = (me) => w.group.stackable = me),
@@ -5508,7 +5535,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5508
5535
  title: m(Z)("menu.group.form.tagging.title"),
5509
5536
  "sub-title": m(Z)("menu.group.form.tagging.subtitle")
5510
5537
  }, {
5511
- default: P(() => [
5538
+ default: R(() => [
5512
5539
  h(m(ui), {
5513
5540
  entity: "group",
5514
5541
  "model-value": w.group.customAttributes || {},
@@ -5531,7 +5558,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5531
5558
  max: w.group.max
5532
5559
  })
5533
5560
  }, {
5534
- default: P(() => [
5561
+ default: R(() => [
5535
5562
  h(Ks, {
5536
5563
  "allow-refund-inventory": w.allowRefundInventory ?? !1,
5537
5564
  "categorized-items": w.categorizedItems,
@@ -5547,14 +5574,14 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5547
5574
  ]),
5548
5575
  _: 3
5549
5576
  }, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]),
5550
- w.group ? (k(), X(In, {
5577
+ w.group ? (k(), X(Pn, {
5551
5578
  key: 0,
5552
5579
  modelValue: S.value,
5553
5580
  "onUpdate:modelValue": z[10] || (z[10] = (we) => S.value = we),
5554
5581
  title: m(Z)("menu.group.title"),
5555
5582
  name: _.value ?? ((Ce = O.value) == null ? void 0 : Ce.name) ?? "",
5556
5583
  "name-locale": w.group.name_locale,
5557
- "onUpdate:name": R,
5584
+ "onUpdate:name": I,
5558
5585
  "onUpdate:nameLocale": C
5559
5586
  }, null, 8, ["modelValue", "title", "name", "name-locale"])) : ne("", !0)
5560
5587
  ], 64);
@@ -5583,10 +5610,10 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5583
5610
  const C = ((M = (y = s.value[d.value]) == null ? void 0 : y.groups) == null ? void 0 : M.find(($) => $._id === i.groupId)) || {
5584
5611
  _id: i.groupId,
5585
5612
  groupKey: ""
5586
- }, R = o.state.menu.modules.group.find(($) => $._id === i.groupId), I = Object.entries({ ...C, items: void 0 }).filter(([, $]) => !!$), D = {
5587
- ...R,
5588
- ...Object.fromEntries(I),
5589
- items: R.items.map(($) => {
5613
+ }, I = o.state.menu.modules.group.find(($) => $._id === i.groupId), P = Object.entries({ ...C, items: void 0 }).filter(([, $]) => !!$), D = {
5614
+ ...I,
5615
+ ...Object.fromEntries(P),
5616
+ items: I.items.map(($) => {
5590
5617
  var Q;
5591
5618
  const j = (Q = C.items) == null ? void 0 : Q.find(
5592
5619
  (E) => E._id == $._id && E.combinationKey == $.combinationKey
@@ -5611,16 +5638,16 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5611
5638
  var D, O;
5612
5639
  const _ = (D = s.value[d.value].groups) == null ? void 0 : D.findIndex(
5613
5640
  (y) => y._id === i.groupId
5614
- ), R = _e(s.value), I = { ...Qt(C), _id: i.groupId, groupKey: "" };
5615
- (_ ?? -1) < 0 ? R[d.value] = {
5616
- ...R[d.value],
5617
- groups: [...((O = R[d.value]) == null ? void 0 : O.groups) || [], I]
5618
- } : R[d.value].groups[_] = I, s.value = R;
5641
+ ), I = _e(s.value), P = { ...Qt(C), _id: i.groupId, groupKey: "" };
5642
+ (_ ?? -1) < 0 ? I[d.value] = {
5643
+ ...I[d.value],
5644
+ groups: [...((O = I[d.value]) == null ? void 0 : O.groups) || [], P]
5645
+ } : I[d.value].groups[_] = P, s.value = I;
5619
5646
  }
5620
5647
  function v(C) {
5621
5648
  const _ = c.value.length;
5622
- let R = d.value;
5623
- C === "left" ? R = R === 0 ? _ - 1 : R - 1 : R = R === _ - 1 ? 0 : R + 1, u.value = c.value[R].value;
5649
+ let I = d.value;
5650
+ C === "left" ? I = I === 0 ? _ - 1 : I - 1 : I = I === _ - 1 ? 0 : I + 1, u.value = c.value[I].value;
5624
5651
  }
5625
5652
  function S(C) {
5626
5653
  return {
@@ -5643,11 +5670,11 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5643
5670
  }
5644
5671
  function g() {
5645
5672
  const C = s.value.map((_) => {
5646
- var R;
5673
+ var I;
5647
5674
  return {
5648
5675
  ..._,
5649
- groups: (R = _.groups) == null ? void 0 : R.map((I) => ({
5650
- ...Io(I, S())
5676
+ groups: (I = _.groups) == null ? void 0 : I.map((P) => ({
5677
+ ...Mo(P, S())
5651
5678
  }))
5652
5679
  };
5653
5680
  });
@@ -5667,7 +5694,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5667
5694
  });
5668
5695
  const { t: V } = fe();
5669
5696
  return (C, _) => {
5670
- const R = U("fm-select"), I = U("fm-button"), D = U("fm-card");
5697
+ const I = U("fm-select"), P = U("fm-button"), D = U("fm-card");
5671
5698
  return k(), X(Bi, {
5672
5699
  ref_key: "baseFormRef",
5673
5700
  ref: A,
@@ -5681,32 +5708,32 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5681
5708
  "onSubmit:group": _[4] || (_[4] = (O) => g()),
5682
5709
  "onStatus:show": _[5] || (_[5] = (O) => b.value = O)
5683
5710
  }, {
5684
- default: P(({ trigger: O }) => [
5711
+ default: R(({ trigger: O }) => [
5685
5712
  Ve(C.$slots, "default", { trigger: O })
5686
5713
  ]),
5687
- "variant-section": P(() => [
5714
+ "variant-section": R(() => [
5688
5715
  u.value ? (k(), X(D, {
5689
5716
  key: 0,
5690
5717
  class: "p-16 bg-fm-color-neutral-gray-100 space-y-24",
5691
5718
  variant: "outlined"
5692
5719
  }, {
5693
- default: P(() => [
5720
+ default: R(() => [
5694
5721
  F("p", Zs, ae(m(V)("menu.group.option.variant")), 1),
5695
5722
  F("div", Qs, [
5696
- h(R, {
5723
+ h(I, {
5697
5724
  modelValue: u.value,
5698
5725
  "onUpdate:modelValue": _[0] || (_[0] = (O) => u.value = O),
5699
5726
  items: c.value,
5700
5727
  class: "flex-1"
5701
5728
  }, null, 8, ["modelValue", "items"]),
5702
5729
  F("div", Js, [
5703
- h(I, {
5730
+ h(P, {
5704
5731
  variant: m(je).Tertiary,
5705
5732
  "prepend-icon": "keyboard_arrow_left",
5706
5733
  size: "lg",
5707
5734
  onClick: _[1] || (_[1] = (O) => v("left"))
5708
5735
  }, null, 8, ["variant"]),
5709
- h(I, {
5736
+ h(P, {
5710
5737
  variant: m(je).Tertiary,
5711
5738
  "prepend-icon": "keyboard_arrow_right",
5712
5739
  size: "lg",
@@ -5791,7 +5818,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5791
5818
  ]),
5792
5819
  F("div", ol, [
5793
5820
  F("div", null, [
5794
- (k(!0), Y(ve, null, Re(d.value, (x) => (k(), Y("div", {
5821
+ (k(!0), Y(ve, null, Ie(d.value, (x) => (k(), Y("div", {
5795
5822
  key: x.value
5796
5823
  }, [
5797
5824
  ut(h(V, {
@@ -5810,7 +5837,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5810
5837
  ]),
5811
5838
  F("div", al, [
5812
5839
  h(m(oi), null, {
5813
- default: P(({ trigger: x }) => [
5840
+ default: R(({ trigger: x }) => [
5814
5841
  h(B, {
5815
5842
  label: m(v)("menu.common.actions.add_group"),
5816
5843
  variant: "tertiary",
@@ -5838,7 +5865,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5838
5865
  F("p", cl, ae(m(v)("menu.common.empty.no_group.subtitle")), 1)
5839
5866
  ]),
5840
5867
  h(m(oi), null, {
5841
- default: P(({ trigger: x }) => [
5868
+ default: R(({ trigger: x }) => [
5842
5869
  h(B, {
5843
5870
  label: m(v)("menu.common.actions.add_group"),
5844
5871
  icon: "add",
@@ -5978,7 +6005,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5978
6005
  }, ["stop", "prevent"])
5979
6006
  }), Me(nl, {
5980
6007
  // variant items
5981
- combinations: R.value ?? [],
6008
+ combinations: I.value ?? [],
5982
6009
  // combinationKey: varaintName
5983
6010
  fullCombinations: t.fullCombinations,
5984
6011
  groupId: M,
@@ -5989,7 +6016,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5989
6016
  }) => Me(Ae.FmButton, {
5990
6017
  icon: "edit",
5991
6018
  variant: "tertiary",
5992
- disabled: !I(M),
6019
+ disabled: !P(M),
5993
6020
  textColor: "neutral-gray-400",
5994
6021
  onClick: $
5995
6022
  })
@@ -6008,7 +6035,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6008
6035
  }).onPrimary((y) => {
6009
6036
  var M;
6010
6037
  for (const $ of y)
6011
- if (vo(a.state.menu, $, t.form._id)) {
6038
+ if (Yo(a.state.menu, $, t.form._id)) {
6012
6039
  const j = (M = g.value[$]) == null ? void 0 : M.name;
6013
6040
  i.open({
6014
6041
  type: "error",
@@ -6052,7 +6079,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6052
6079
  const _ = T(() => {
6053
6080
  var y;
6054
6081
  return !!((y = t.form.variant) != null && y.variantGroupIds.length);
6055
- }), R = T(() => {
6082
+ }), I = T(() => {
6056
6083
  var y;
6057
6084
  return _.value ? (y = t.form.variant) == null ? void 0 : y.variantCombinations : [{
6058
6085
  _id: t.form._id,
@@ -6060,7 +6087,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6060
6087
  groups: t.form.groups || []
6061
6088
  }];
6062
6089
  });
6063
- function I(y) {
6090
+ function P(y) {
6064
6091
  var $;
6065
6092
  if (!y) return !1;
6066
6093
  if (d.value.overrideProductGroup) return !0;
@@ -6092,15 +6119,15 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6092
6119
  title: m(l)("menu.product.form.group.title"),
6093
6120
  "sub-title": m(l)("menu.product.form.group.subtitle")
6094
6121
  }, {
6095
- "append-title": P(() => [h($, {
6122
+ "append-title": R(() => [h($, {
6096
6123
  class: "flex-shrink-0",
6097
6124
  label: m(l)("menu.product.form.group.add"),
6098
6125
  "prepend-icon": "add",
6099
6126
  variant: "secondary",
6100
6127
  onClick: B
6101
6128
  }, null, 8, ["label"])]),
6102
- default: P(() => [h(Ui, null, {
6103
- default: P(() => {
6129
+ default: R(() => [h(Ui, null, {
6130
+ default: R(() => {
6104
6131
  var Q;
6105
6132
  return [((Q = f.value) == null ? void 0 : Q.length) > 0 ? (k(), X(j, {
6106
6133
  key: 0,
@@ -6168,17 +6195,17 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6168
6195
  return p(i.form.inventoryBindings || [], ((V = i.form.variant) == null ? void 0 : V.variantCombinations) || [], f.value, o.variants);
6169
6196
  });
6170
6197
  function S(V, B) {
6171
- var R, I;
6198
+ var I, P;
6172
6199
  let x = ze.clone(i.form);
6173
6200
  const C = x.variant;
6174
- if ((((R = C == null ? void 0 : C.variantCombinations) == null ? void 0 : R.length) ?? 0) > 0 && C) {
6201
+ if ((((I = C == null ? void 0 : C.variantCombinations) == null ? void 0 : I.length) ?? 0) > 0 && C) {
6175
6202
  const D = C.variantCombinations.findIndex((y) => y.combinationKey === V);
6176
6203
  if (D < 0) return;
6177
6204
  const O = ze.clone(C.variantCombinations);
6178
6205
  O[D].inventoryBindings = B, x = {
6179
6206
  ...x,
6180
6207
  variant: {
6181
- variantGroupIds: ((I = x.variant) == null ? void 0 : I.variantGroupIds) || [],
6208
+ variantGroupIds: ((P = x.variant) == null ? void 0 : P.variantGroupIds) || [],
6182
6209
  variantCombinations: O
6183
6210
  }
6184
6211
  };
@@ -6258,7 +6285,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6258
6285
  title: m(t)("menu.inventory.title"),
6259
6286
  subTitle: m(t)("menu.inventory.subtitle")
6260
6287
  }, {
6261
- default: P(() => [F("div", pl, [F("div", fl, [(k(!0), Y(ve, null, Re(v.value, (C) => (k(), X(m(Mn), {
6288
+ default: R(() => [F("div", pl, [F("div", fl, [(k(!0), Y(ve, null, Ie(v.value, (C) => (k(), X(m(Mn), {
6262
6289
  key: C._id,
6263
6290
  ref_for: !0,
6264
6291
  ref_key: "inventoryManagerForms",
@@ -6272,7 +6299,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6272
6299
  "onUpdate:inventory": (_) => {
6273
6300
  S(C._id, _);
6274
6301
  }
6275
- }, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), h(m(So), {
6302
+ }, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), h(m(ko), {
6276
6303
  "row-data": v.value,
6277
6304
  onRowClick: b
6278
6305
  }, null, 8, ["row-data"])])])]),
@@ -6285,7 +6312,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6285
6312
  title: m(t)("menu.inventory.threshold.title"),
6286
6313
  "sub-title": m(t)("menu.inventory.threshold.subtitle")
6287
6314
  }, {
6288
- default: P(() => [h(x, {
6315
+ default: R(() => [h(x, {
6289
6316
  "model-value": u.value ?? null,
6290
6317
  step: 1,
6291
6318
  placeholder: d.value,
@@ -6314,7 +6341,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6314
6341
  }, Ml = { class: "w-[258px] xs:w-full" }, zl = {
6315
6342
  key: 1,
6316
6343
  class: "space-y-8"
6317
- }, Il = { class: "pl-32 pb-4 flex space-x-16" }, Pl = { class: "w-[258px] xs:w-full" }, Rl = /* @__PURE__ */ pe({
6344
+ }, Pl = { class: "pl-32 pb-4 flex space-x-16" }, Rl = { class: "w-[258px] xs:w-full" }, Il = /* @__PURE__ */ pe({
6318
6345
  __name: "ProductPrice",
6319
6346
  props: {
6320
6347
  isOverride: { type: Boolean },
@@ -6325,8 +6352,8 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6325
6352
  emits: ["update:form"],
6326
6353
  setup(e, { emit: n }) {
6327
6354
  const t = e, i = xt(), a = Fe(), o = hi(), { t: r } = fe(), l = n, s = T(() => a.rules.item), u = T(() => {
6328
- var _, R;
6329
- const x = t.isOverride ? ((_ = t.fallback) == null ? void 0 : _.unit) ?? ((R = t.fallback) == null ? void 0 : R.perXUnit) : void 0, C = t.form.unit ?? t.form.perXUnit ?? x;
6355
+ var _, I;
6356
+ const x = t.isOverride ? ((_ = t.fallback) == null ? void 0 : _.unit) ?? ((I = t.fallback) == null ? void 0 : I.perXUnit) : void 0, C = t.form.unit ?? t.form.perXUnit ?? x;
6330
6357
  return C != null;
6331
6358
  }), d = (x) => {
6332
6359
  l("update:form", "unit", x ? "" : void 0), l("update:form", "perXUnit", x ? 0 : void 0);
@@ -6350,8 +6377,8 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6350
6377
  if (!x && t.form.perXUnit) {
6351
6378
  const [C, _] = t.form.perXUnit.toString().split(".");
6352
6379
  if (_ && _.length > 4) {
6353
- const I = (typeof t.form.perXUnit == "string" ? parseFloat(t.form.perXUnit) : t.form.perXUnit).toFixed(4);
6354
- l("update:form", "perXUnit", parseFloat(I));
6380
+ const P = (typeof t.form.perXUnit == "string" ? parseFloat(t.form.perXUnit) : t.form.perXUnit).toFixed(4);
6381
+ l("update:form", "perXUnit", parseFloat(P));
6355
6382
  }
6356
6383
  }
6357
6384
  }
@@ -6382,11 +6409,11 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6382
6409
  C ? l("update:form", "priceTiers_variant", Un(x)) : l("update:form", "price_variant", Ln(x));
6383
6410
  }
6384
6411
  return (x, C) => {
6385
- const _ = U("fm-select"), R = U("FmButton"), I = U("fm-checkbox"), D = U("fm-text-field"), O = Kt("tooltip");
6412
+ const _ = U("fm-select"), I = U("FmButton"), P = U("fm-checkbox"), D = U("fm-text-field"), O = Kt("tooltip");
6386
6413
  return k(), X(Be, {
6387
6414
  title: m(r)("menu.product.form.price.title")
6388
6415
  }, {
6389
- default: P(() => {
6416
+ default: R(() => {
6390
6417
  var y, M;
6391
6418
  return [
6392
6419
  F("div", vl, [
@@ -6403,7 +6430,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6403
6430
  "show-currency": "",
6404
6431
  "onUpdate:modelValue": C[0] || (C[0] = ($) => $ && l("update:form", "price", $))
6405
6432
  }, {
6406
- append: P(() => [
6433
+ append: R(() => [
6407
6434
  ut(h(m(Ht), {
6408
6435
  "pure-styling": "",
6409
6436
  class: "shrink-0 scale-75",
@@ -6444,8 +6471,8 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6444
6471
  "onUpdate:basePrice": C[2] || (C[2] = ($) => l("update:form", "price", $)),
6445
6472
  "onUpdate:priceVariants": C[3] || (C[3] = ($) => B($))
6446
6473
  }, {
6447
- default: P(({ trigger: $ }) => [
6448
- h(R, {
6474
+ default: R(({ trigger: $ }) => [
6475
+ h(I, {
6449
6476
  variant: m(je).Secondary,
6450
6477
  label: m(r)("menu.product.form.member_price.configure.title"),
6451
6478
  onClick: (j) => $()
@@ -6461,15 +6488,15 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6461
6488
  label: m(r)("menu.price_tier.price_group"),
6462
6489
  description: m(r)("menu.price_tier.description")
6463
6490
  }, {
6464
- append: P(() => [
6465
- h(R, {
6491
+ append: R(() => [
6492
+ h(I, {
6466
6493
  label: m(r)("menu.price_tier.add_price_group"),
6467
6494
  icon: "add",
6468
6495
  variant: "secondary",
6469
6496
  onClick: m(o).create
6470
6497
  }, null, 8, ["label", "onClick"])
6471
6498
  ]),
6472
- default: P(() => {
6499
+ default: R(() => {
6473
6500
  var $;
6474
6501
  return [
6475
6502
  x.isOverride ? ne("", !0) : (k(), X(Li, {
@@ -6488,11 +6515,11 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6488
6515
  h(ct, {
6489
6516
  label: m(r)("menu.product.form.price.settings.title")
6490
6517
  }, {
6491
- default: P(() => {
6518
+ default: R(() => {
6492
6519
  var $, j, Q;
6493
6520
  return [
6494
6521
  F("div", kl, [
6495
- h(I, {
6522
+ h(P, {
6496
6523
  disabled: !s.value.openPrice || x.isAddon,
6497
6524
  "model-value": x.form.openPrice ?? (($ = x.fallback) == null ? void 0 : $.openPrice) ?? !1,
6498
6525
  value: x.form.openPrice,
@@ -6501,7 +6528,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6501
6528
  "onUpdate:modelValue": C[6] || (C[6] = (E) => l("update:form", "openPrice", E))
6502
6529
  }, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
6503
6530
  F("div", Cl, [
6504
- h(I, {
6531
+ h(P, {
6505
6532
  disabled: !s.value.unit || x.isAddon,
6506
6533
  "model-value": u.value,
6507
6534
  value: u.value,
@@ -6540,7 +6567,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6540
6567
  ])) : ne("", !0)
6541
6568
  ]),
6542
6569
  s.value.costing ? (k(), Y("div", Tl, [
6543
- h(I, {
6570
+ h(P, {
6544
6571
  "model-value": !!x.form.costing,
6545
6572
  value: !!x.form.costing,
6546
6573
  label: m(r)("menu.product.form.price.settings.track_costing.label"),
@@ -6560,15 +6587,15 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6560
6587
  ])) : ne("", !0)
6561
6588
  ])) : ne("", !0),
6562
6589
  s.value.minPrice ? (k(), Y("div", zl, [
6563
- h(I, {
6590
+ h(P, {
6564
6591
  disabled: !s.value.minPrice || x.isAddon,
6565
6592
  "model-value": !!x.form.minPrice,
6566
6593
  value: !!x.form.minPrice,
6567
6594
  label: m(r)("menu.product.form.price.settings.min_price.label"),
6568
6595
  "onUpdate:modelValue": C[10] || (C[10] = (E) => l("update:form", "minPrice", E ? m(Le.Dinero).zero().toObject() : void 0))
6569
6596
  }, null, 8, ["disabled", "model-value", "value", "label"]),
6570
- F("div", Il, [
6571
- F("div", Pl, [
6597
+ F("div", Pl, [
6598
+ F("div", Rl, [
6572
6599
  x.form.minPrice ? (k(), X(lt, {
6573
6600
  key: 0,
6574
6601
  max: m(Le.Dinero).fromFdoDinero(x.form.price).toUnit(),
@@ -6613,16 +6640,16 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6613
6640
  try {
6614
6641
  l.value = !0, t.initialValue ? await i.updateMenu(
6615
6642
  {
6616
- module: Pe.enum.printDepartment,
6617
- operation: Ie.F_OPERATION_TYPE.update,
6643
+ module: Re.enum.printDepartment,
6644
+ operation: Pe.F_OPERATION_TYPE.update,
6618
6645
  data: r.value,
6619
6646
  link: kn(((c = r.value) == null ? void 0 : c.usedBy) || [])
6620
6647
  },
6621
6648
  r.value.name
6622
6649
  ) : await i.updateMenu(
6623
6650
  {
6624
- module: Pe.enum.printDepartment,
6625
- operation: Ie.F_OPERATION_TYPE.create,
6651
+ module: Re.enum.printDepartment,
6652
+ operation: Pe.F_OPERATION_TYPE.create,
6626
6653
  data: r.value,
6627
6654
  link: kn(((p = r.value) == null ? void 0 : p.usedBy) || [])
6628
6655
  },
@@ -6655,10 +6682,10 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6655
6682
  "max-width": 560,
6656
6683
  "dismiss-away": ""
6657
6684
  }, {
6658
- "side-sheet-header": P(() => [
6685
+ "side-sheet-header": R(() => [
6659
6686
  F("p", Ol, ae(a.value), 1)
6660
6687
  ]),
6661
- "side-sheet-footer": P(() => [
6688
+ "side-sheet-footer": R(() => [
6662
6689
  F("div", Dl, [
6663
6690
  h(v, {
6664
6691
  label: o.value,
@@ -6675,7 +6702,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6675
6702
  }, null, 8, ["label"])
6676
6703
  ])
6677
6704
  ]),
6678
- default: P(() => [
6705
+ default: R(() => [
6679
6706
  F("div", $l, [
6680
6707
  h(f, {
6681
6708
  modelValue: r.value.name,
@@ -6688,7 +6715,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6688
6715
  autofocus: "",
6689
6716
  label: m(n)("menu.print_dept.columns.name")
6690
6717
  }, null, 8, ["modelValue", "rules", "label"]),
6691
- c.applyProduct ? (k(), X(Vo, {
6718
+ c.applyProduct ? (k(), X(xo, {
6692
6719
  key: 0,
6693
6720
  overrides: r.value.usedBy || [],
6694
6721
  "select-variant": !1,
@@ -6785,18 +6812,18 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6785
6812
  return k(), X(Be, {
6786
6813
  title: m(a)("menu.product.form.print.title")
6787
6814
  }, {
6788
- default: P(() => {
6789
- var R;
6815
+ default: R(() => {
6816
+ var I;
6790
6817
  return [
6791
6818
  l.value.printConfig ? (k(), X(ct, {
6792
6819
  key: 0,
6793
6820
  label: m(a)("menu.product.form.print.config.label")
6794
6821
  }, {
6795
- default: P(() => {
6796
- var I;
6822
+ default: R(() => {
6823
+ var P;
6797
6824
  return [
6798
6825
  h(V, {
6799
- "model-value": !((I = b.form.print) != null && I.toRoot),
6826
+ "model-value": !((P = b.form.print) != null && P.toRoot),
6800
6827
  label: m(a)("menu.product.form.print.config.group_parent.label"),
6801
6828
  "label-placement": "right",
6802
6829
  sublabel: m(a)("menu.product.form.print.config.group_parent.sublabel"),
@@ -6808,16 +6835,16 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6808
6835
  }, 8, ["label"])) : ne("", !0),
6809
6836
  h(x, {
6810
6837
  label: m(a)("menu.product.form.print.kds.label"),
6811
- "model-value": ((R = b.form.print) == null ? void 0 : R.sequential) ?? !1,
6812
- "onUpdate:modelValue": A[1] || (A[1] = (I) => f(I))
6838
+ "model-value": ((I = b.form.print) == null ? void 0 : I.sequential) ?? !1,
6839
+ "onUpdate:modelValue": A[1] || (A[1] = (P) => f(P))
6813
6840
  }, {
6814
- default: P(() => [
6841
+ default: R(() => [
6815
6842
  F("div", Ll, [
6816
- (k(!0), Y(ve, null, Re(g.value, (I, D) => (k(), X(B, {
6843
+ (k(!0), Y(ve, null, Ie(g.value, (P, D) => (k(), X(B, {
6817
6844
  key: D,
6818
- label: I.label,
6819
- sublabel: I.description,
6820
- value: I.value
6845
+ label: P.label,
6846
+ sublabel: P.description,
6847
+ value: P.value
6821
6848
  }, null, 8, ["label", "sublabel", "value"]))), 128))
6822
6849
  ])
6823
6850
  ]),
@@ -6826,23 +6853,23 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6826
6853
  h(ct, {
6827
6854
  label: m(a)("menu.product.form.print.routes.label")
6828
6855
  }, {
6829
- default: P(() => [
6856
+ default: R(() => [
6830
6857
  d.value.length ? (k(), X(m(vi), {
6831
6858
  key: 0,
6832
- "item-key": (I) => I,
6859
+ "item-key": (P) => P,
6833
6860
  "model-value": d.value,
6834
6861
  handle: ".handle",
6835
- "onUpdate:modelValue": A[3] || (A[3] = (I) => v(I)),
6862
+ "onUpdate:modelValue": A[3] || (A[3] = (P) => v(P)),
6836
6863
  class: "space-y-16"
6837
6864
  }, {
6838
- item: P(({ element: I }) => {
6865
+ item: R(({ element: P }) => {
6839
6866
  var D, O, y, M, $;
6840
6867
  return [
6841
6868
  F("div", Nl, [
6842
6869
  F("div", Bl, [
6843
6870
  u.value ? (k(), X(C, {
6844
6871
  key: 0,
6845
- disabled: !((O = (D = t.form.print) == null ? void 0 : D.department) != null && O.includes(I)),
6872
+ disabled: !((O = (D = t.form.print) == null ? void 0 : D.department) != null && O.includes(P)),
6846
6873
  class: "handle",
6847
6874
  "prepend-icon": "drag_handle",
6848
6875
  variant: "tertiary",
@@ -6851,13 +6878,13 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6851
6878
  }, null, 8, ["disabled"])) : ne("", !0)
6852
6879
  ]),
6853
6880
  h(_, {
6854
- id: I,
6855
- "data-checked": (M = (y = t.form.print) == null ? void 0 : y.department) == null ? void 0 : M.includes(I),
6856
- label: c.value[I],
6857
- "model-value": ((($ = t.form.print) == null ? void 0 : $.department) ?? []).includes(I),
6858
- value: I,
6881
+ id: P,
6882
+ "data-checked": (M = (y = t.form.print) == null ? void 0 : y.department) == null ? void 0 : M.includes(P),
6883
+ label: c.value[P],
6884
+ "model-value": ((($ = t.form.print) == null ? void 0 : $.department) ?? []).includes(P),
6885
+ value: P,
6859
6886
  class: "flex-1",
6860
- "onUpdate:modelValue": (j) => S(I, j)
6887
+ "onUpdate:modelValue": (j) => S(P, j)
6861
6888
  }, null, 8, ["id", "data-checked", "label", "model-value", "value", "onUpdate:modelValue"])
6862
6889
  ])
6863
6890
  ];
@@ -6865,13 +6892,13 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6865
6892
  _: 1
6866
6893
  }, 8, ["item-key", "model-value"])) : ne("", !0),
6867
6894
  h(m(Ul), { "apply-product": !1 }, {
6868
- default: P(({ trigger: I }) => [
6895
+ default: R(({ trigger: P }) => [
6869
6896
  F("div", jl, [
6870
6897
  h(C, {
6871
6898
  variant: m(je).Secondary,
6872
6899
  label: m(a)("menu.product.form.print.routes.add"),
6873
6900
  "prepend-icon": "add",
6874
- onClick: I
6901
+ onClick: P
6875
6902
  }, null, 8, ["variant", "label", "onClick"])
6876
6903
  ])
6877
6904
  ]),
@@ -6917,7 +6944,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6917
6944
  placeholder: m(n)("menu.common.actions.search")
6918
6945
  }, null, 8, ["modelValue", "placeholder"]),
6919
6946
  F("div", Wl, [
6920
- (k(!0), Y(ve, null, Re(o.value, (p) => (k(), X(c, {
6947
+ (k(!0), Y(ve, null, Ie(o.value, (p) => (k(), X(c, {
6921
6948
  key: p.id,
6922
6949
  modelValue: r.value,
6923
6950
  "onUpdate:modelValue": u[1] || (u[1] = (f) => r.value = f),
@@ -6940,7 +6967,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6940
6967
  }) {
6941
6968
  const {
6942
6969
  t
6943
- } = fe(), i = e, a = n, o = Ze(), r = qe(), l = nt(r), s = it(l), u = Fe(), d = To({
6970
+ } = fe(), i = e, a = n, o = Ze(), r = qe(), l = nt(r), s = it(l), u = Fe(), d = Ao({
6944
6971
  dialog: o,
6945
6972
  menuLoader: s
6946
6973
  }), c = T(() => i.timePresets.map((g) => {
@@ -7004,7 +7031,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
7004
7031
  }).onPrimary((g) => {
7005
7032
  a("update:linkedOrderPacing", g);
7006
7033
  }).onTertiary(() => {
7007
- const g = u.items.find((A) => A._id === i.itemId), b = g ? [Fo(g, u.orderPacings)] : [];
7034
+ const g = u.items.find((A) => A._id === i.itemId), b = g ? [Vo(g, u.orderPacings)] : [];
7008
7035
  d.create(b);
7009
7036
  });
7010
7037
  }
@@ -7014,7 +7041,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
7014
7041
  title: m(t)("menu.product.form.order_pacing.time_presets.title"),
7015
7042
  "sub-title": m(t)("menu.product.form.order_pacing.time_presets.subtitle")
7016
7043
  }, {
7017
- "append-title": P(() => [h(A, {
7044
+ "append-title": R(() => [h(A, {
7018
7045
  class: "flex-shrink-0",
7019
7046
  label: m(t)("menu.product.form.order_pacing.time_presets.add"),
7020
7047
  "prepend-icon": "add",
@@ -7057,7 +7084,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
7057
7084
  return k(), X(Be, {
7058
7085
  title: m(t)("menu.product.form.order_pacing.title")
7059
7086
  }, {
7060
- default: P(() => {
7087
+ default: R(() => {
7061
7088
  var c;
7062
7089
  return [h(d, {
7063
7090
  modelValue: r.value,
@@ -7176,14 +7203,14 @@ const Ql = {
7176
7203
  header: () => r("menu.product.form.takeaway.columns.takeaway"),
7177
7204
  cell: (g) => {
7178
7205
  const b = g.getValue(), A = g.row.original;
7179
- return Me(ko, {
7206
+ return Me(_o, {
7180
7207
  action: "add",
7181
7208
  applyProduct: !1,
7182
7209
  bindToVariant: i.rules.item.bindToVariant,
7183
7210
  "onUpdate:takeaway": async (V) => {
7184
7211
  await o.updateMenu({
7185
- module: Pe.enum.takeaway,
7186
- operation: Ie.F_OPERATION_TYPE.create,
7212
+ module: Re.enum.takeaway,
7213
+ operation: Pe.F_OPERATION_TYPE.create,
7187
7214
  data: V,
7188
7215
  link: kn(V.usedBy || [])
7189
7216
  }, V.name);
@@ -7250,7 +7277,7 @@ const Ql = {
7250
7277
  title: m(r)("menu.product.form.takeaway.title"),
7251
7278
  "sub-title": m(r)("menu.product.form.takeaway.subtitle")
7252
7279
  }, {
7253
- default: P(() => [F("div", Ql, [p.value.pos ? (k(), X(A, {
7280
+ default: R(() => [F("div", Ql, [p.value.pos ? (k(), X(A, {
7254
7281
  key: 0,
7255
7282
  modelValue: v.value,
7256
7283
  "onUpdate:modelValue": b[0] || (b[0] = (B) => v.value = B),
@@ -7306,7 +7333,7 @@ const Ql = {
7306
7333
  ]),
7307
7334
  F("div", tu, [
7308
7335
  F("div", null, [
7309
- (k(!0), Y(ve, null, Re(l.value, (g) => (k(), Y("div", {
7336
+ (k(!0), Y(ve, null, Ie(l.value, (g) => (k(), Y("div", {
7310
7337
  key: g.value
7311
7338
  }, [
7312
7339
  ut(h(v, {
@@ -7325,7 +7352,7 @@ const Ql = {
7325
7352
  ]),
7326
7353
  F("div", nu, [
7327
7354
  h(m(Kn), null, {
7328
- default: P(({ trigger: g }) => [
7355
+ default: R(({ trigger: g }) => [
7329
7356
  m(a).rules.item.variant ? (k(), X(S, {
7330
7357
  key: 0,
7331
7358
  label: m(o)("menu.common.actions.add_new_variant"),
@@ -7354,7 +7381,7 @@ const Ql = {
7354
7381
  F("p", su, ae(m(o)("menu.common.empty.no_variant.subtitle")), 1)
7355
7382
  ]),
7356
7383
  h(m(Kn), null, {
7357
- default: P(({ trigger: g }) => [
7384
+ default: R(({ trigger: g }) => [
7358
7385
  h(S, {
7359
7386
  label: m(o)("menu.variant.add"),
7360
7387
  icon: "add",
@@ -7514,7 +7541,7 @@ const Ql = {
7514
7541
  const C = T(() => {
7515
7542
  var y, M;
7516
7543
  return ((y = i.currentCatalog) == null ? void 0 : y.priceTierRules) ?? ((M = i.currentCatalog) == null ? void 0 : M.usePriceTiers) ?? [];
7517
- }), _ = T(() => C.value.length > 0 && i.currentCatalog && !i.currentScheduler), R = nn(), I = T(() => [{
7544
+ }), _ = T(() => C.value.length > 0 && i.currentCatalog && !i.currentScheduler), I = nn(), P = T(() => [{
7518
7545
  accessorKey: "combinationKey",
7519
7546
  header: () => l("menu.product.form.variant.columns.variant"),
7520
7547
  enableSorting: !1,
@@ -7574,7 +7601,7 @@ const Ql = {
7574
7601
  enableSorting: !1,
7575
7602
  cell: (y) => {
7576
7603
  var ee, Z, de;
7577
- const M = y.getValue(), $ = y.row.original, Q = ((ee = $.fallback) == null ? void 0 : ee.price) ?? t.form.price ?? ((Z = t.fallback) == null ? void 0 : Z.price), E = R.getMemberPricingPriceVariant($.price_variant), N = Object.values(E).every((se) => se === null);
7604
+ const M = y.getValue(), $ = y.row.original, Q = ((ee = $.fallback) == null ? void 0 : ee.price) ?? t.form.price ?? ((Z = t.fallback) == null ? void 0 : Z.price), E = I.getMemberPricingPriceVariant($.price_variant), N = Object.values(E).every((se) => se === null);
7578
7605
  return h("div", {
7579
7606
  class: "flex items-center gap-8"
7580
7607
  }, [h(lt, {
@@ -7659,20 +7686,20 @@ const Ql = {
7659
7686
  title: m(l)("menu.product.form.variant.title"),
7660
7687
  "sub-title": m(l)("menu.product.form.variant.subtitle")
7661
7688
  }, {
7662
- "append-title": P(() => [m(i).rules.item.variant ? (k(), X($, {
7689
+ "append-title": R(() => [m(i).rules.item.variant ? (k(), X($, {
7663
7690
  key: 0,
7664
7691
  label: m(l)("menu.variant.add"),
7665
7692
  variant: "secondary",
7666
7693
  "prepend-icon": "add",
7667
7694
  onClick: g
7668
7695
  }, null, 8, ["label"])) : ne("", !0)]),
7669
- default: P(() => {
7696
+ default: R(() => {
7670
7697
  var N;
7671
7698
  return [F("div", uu, [h(Q, {
7672
7699
  "model-value": (N = y.form.variant) == null ? void 0 : N.variantGroupIds,
7673
7700
  rules: [O]
7674
7701
  }, {
7675
- default: P(() => {
7702
+ default: R(() => {
7676
7703
  var ee;
7677
7704
  return [h(m(vi), {
7678
7705
  "model-value": ((ee = y.form.variant) == null ? void 0 : ee.variantGroupIds) ?? [],
@@ -7682,7 +7709,7 @@ const Ql = {
7682
7709
  "item-key": "id",
7683
7710
  "onUpdate:modelValue": A
7684
7711
  }, {
7685
- item: P(({
7712
+ item: R(({
7686
7713
  element: Z
7687
7714
  }) => {
7688
7715
  var de;
@@ -7704,10 +7731,10 @@ const Ql = {
7704
7731
  }),
7705
7732
  _: 1
7706
7733
  }, 8, ["model-value", "rules"]), h(Ui, null, {
7707
- default: P(() => [V.value.length ? (k(), X(E, {
7734
+ default: R(() => [V.value.length ? (k(), X(E, {
7708
7735
  key: 0,
7709
7736
  class: "w-full",
7710
- "column-defs": I.value,
7737
+ "column-defs": P.value,
7711
7738
  "column-visibility": D.value,
7712
7739
  "page-size": V.value.length ?? 0,
7713
7740
  "row-data": V.value ?? [],
@@ -7757,7 +7784,7 @@ const Ql = {
7757
7784
  },
7758
7785
  emits: ["update:show", "submit:form"],
7759
7786
  setup(e, { emit: n }) {
7760
- var me, $e, It, Pt, Rt;
7787
+ var me, $e, Pt, Rt, It;
7761
7788
  const t = e, i = n, a = Fe(), o = xt(), { t: r } = fe(), l = T(() => t.action === "add" ? r("menu.product.form.title.add") : r("menu.product.form.title.update")), s = T(() => a.rules.item), u = (q) => new Promise((W) => setTimeout(W, q));
7762
7789
  wt(async () => {
7763
7790
  t.autoShow && (await u(100), c());
@@ -7781,7 +7808,7 @@ const Ql = {
7781
7808
  () => t.initialForm,
7782
7809
  async () => {
7783
7810
  if (t.initialForm)
7784
- v.value = await go(
7811
+ v.value = await ho(
7785
7812
  a.state.menu,
7786
7813
  t.initialForm._id
7787
7814
  );
@@ -7817,7 +7844,7 @@ const Ql = {
7817
7844
  };
7818
7845
  async function B() {
7819
7846
  var q, W;
7820
- p.value = f.value._id && x.value ? (await bo(
7847
+ p.value = f.value._id && x.value ? (await vo(
7821
7848
  a.mergedMenu,
7822
7849
  [f.value],
7823
7850
  a.state.menu,
@@ -7831,7 +7858,7 @@ const Ql = {
7831
7858
  var q;
7832
7859
  return x.value ? f.value.category == "" || f.value.category == null && ((q = p.value) == null ? void 0 : q.category) == null : a.version === pt.enum.v4 && f.value.category == null;
7833
7860
  }), _ = T(() => o.itemAttributeSettings.value.length > 0 && !x.value);
7834
- function R() {
7861
+ function I() {
7835
7862
  var ye;
7836
7863
  const q = a.getSelectedTax(
7837
7864
  f.value.taxes,
@@ -7840,7 +7867,7 @@ const Ql = {
7840
7867
  ), he = a.taxSetting.countryTaxOptions.find((ie) => ie.value === q);
7841
7868
  return he ? ao(he.meta.rate) : "-";
7842
7869
  }
7843
- function I() {
7870
+ function P() {
7844
7871
  A.value = null, f.value.thumbnail = null;
7845
7872
  }
7846
7873
  const D = T(() => {
@@ -7870,7 +7897,7 @@ const Ql = {
7870
7897
  },
7871
7898
  {
7872
7899
  name: r("menu.product.form.summary.fields.tax"),
7873
- value: R()
7900
+ value: I()
7874
7901
  },
7875
7902
  {
7876
7903
  name: r("menu.product.form.summary.fields.inventory"),
@@ -7953,7 +7980,7 @@ const Ql = {
7953
7980
  });
7954
7981
  }
7955
7982
  const Z = H(
7956
- f.value.takeawayUsed != null || (((It = f.value.variant) == null ? void 0 : It.variantCombinations) || []).some((q) => q.takeawayUsed != null) || !1
7983
+ f.value.takeawayUsed != null || (((Pt = f.value.variant) == null ? void 0 : Pt.variantCombinations) || []).some((q) => q.takeawayUsed != null) || !1
7957
7984
  );
7958
7985
  function de(q) {
7959
7986
  var W, he;
@@ -7974,7 +8001,7 @@ const Ql = {
7974
8001
  q || (f.value = { ...f.value, print: void 0 });
7975
8002
  }
7976
8003
  const z = H(
7977
- !!((Pt = f.value.groups) != null && Pt.length) != null || (((Rt = f.value.variant) == null ? void 0 : Rt.variantCombinations) || []).some((q) => {
8004
+ !!((Rt = f.value.groups) != null && Rt.length) != null || (((It = f.value.variant) == null ? void 0 : It.variantCombinations) || []).some((q) => {
7978
8005
  var W;
7979
8006
  return !!((W = q.groups) != null && W.length);
7980
8007
  }) || !1
@@ -8096,7 +8123,7 @@ const Ql = {
8096
8123
  onOnPrimary: K,
8097
8124
  onOnCancel: oe
8098
8125
  }, {
8099
- "append-title": P(() => [
8126
+ "append-title": R(() => [
8100
8127
  m(ke)("sm") ? (k(), X(Wn, {
8101
8128
  key: 0,
8102
8129
  variant: "dialog",
@@ -8104,7 +8131,7 @@ const Ql = {
8104
8131
  items: D.value.items
8105
8132
  }, null, 8, ["title", "items"])) : ne("", !0)
8106
8133
  ]),
8107
- default: P(() => {
8134
+ default: R(() => {
8108
8135
  var he, ye;
8109
8136
  return [
8110
8137
  m(ke)("sm") ? ne("", !0) : (k(), X(Wn, {
@@ -8124,7 +8151,7 @@ const Ql = {
8124
8151
  ref: Ce,
8125
8152
  class: Ne(["flex-1 py-24 space-y-24", "xs:w-full"])
8126
8153
  }, [
8127
- v.value && (Object.keys(v.value.catalogs || {}).length > 0 || v.value.schedulers.length > 0) ? (k(), X(Bo, {
8154
+ v.value && (Object.keys(v.value.catalogs || {}).length > 0 || v.value.schedulers.length > 0) ? (k(), X(Lo, {
8128
8155
  key: 0,
8129
8156
  "linked-status": v.value,
8130
8157
  "onUpdate:catalogAndScheduler": g
@@ -8140,7 +8167,7 @@ const Ql = {
8140
8167
  description: m(r)("menu.product.form.sections.general.description"),
8141
8168
  title: m(r)("menu.product.form.sections.general.title")
8142
8169
  }, {
8143
- default: P(() => [
8170
+ default: R(() => [
8144
8171
  h(Wr, {
8145
8172
  fallback: p.value,
8146
8173
  form: f.value,
@@ -8150,7 +8177,7 @@ const Ql = {
8150
8177
  thumbnail: A.value,
8151
8178
  "onUpdate:form": V,
8152
8179
  "onUpdate:thumbnail": W[0] || (W[0] = (ie) => A.value = ie),
8153
- "onReset:thumbnail": I
8180
+ "onReset:thumbnail": P
8154
8181
  }, null, 8, ["fallback", "form", "is-addon", "is-override", "is-create", "thumbnail"])
8155
8182
  ]),
8156
8183
  _: 1
@@ -8161,7 +8188,7 @@ const Ql = {
8161
8188
  title: m(r)("menu.product.form.sections.tagging.title"),
8162
8189
  "sub-title": m(r)("menu.product.form.sections.tagging.subtitle")
8163
8190
  }, {
8164
- default: P(() => [
8191
+ default: R(() => [
8165
8192
  h(m(ui), {
8166
8193
  entity: "item",
8167
8194
  "model-value": f.value.customAttributes || {},
@@ -8182,8 +8209,8 @@ const Ql = {
8182
8209
  description: m(r)("menu.product.form.sections.price.description"),
8183
8210
  title: m(r)("menu.product.form.sections.price.title")
8184
8211
  }, {
8185
- default: P(() => [
8186
- h(Rl, {
8212
+ default: R(() => [
8213
+ h(Il, {
8187
8214
  fallback: p.value,
8188
8215
  form: f.value,
8189
8216
  "is-addon": C.value,
@@ -8205,7 +8232,7 @@ const Ql = {
8205
8232
  disabled: "",
8206
8233
  title: "Update print"
8207
8234
  }, {
8208
- default: P(() => [
8235
+ default: R(() => [
8209
8236
  h(Gl, {
8210
8237
  fallback: p.value,
8211
8238
  form: f.value,
@@ -8229,7 +8256,7 @@ const Ql = {
8229
8256
  description: m(r)("menu.product.form.sections.variant.description"),
8230
8257
  title: m(r)("menu.product.form.sections.variant.title")
8231
8258
  }, {
8232
- default: P(() => [
8259
+ default: R(() => [
8233
8260
  h(pu, {
8234
8261
  fallback: p.value,
8235
8262
  form: f.value,
@@ -8254,7 +8281,7 @@ const Ql = {
8254
8281
  description: "Use a different group setting",
8255
8282
  title: "Update group"
8256
8283
  }, {
8257
- default: P(() => [
8284
+ default: R(() => [
8258
8285
  h(ml, {
8259
8286
  fallback: p.value,
8260
8287
  form: f.value,
@@ -8279,7 +8306,7 @@ const Ql = {
8279
8306
  description: m(r)("menu.product.form.sections.inventory.description"),
8280
8307
  title: m(r)("menu.product.form.sections.inventory.title")
8281
8308
  }, {
8282
- default: P(() => [
8309
+ default: R(() => [
8283
8310
  h(hl, {
8284
8311
  fallback: p.value,
8285
8312
  form: f.value,
@@ -8304,7 +8331,7 @@ const Ql = {
8304
8331
  description: m(r)("menu.product.form.sections.takeaway.description"),
8305
8332
  title: m(r)("menu.product.form.sections.takeaway.title")
8306
8333
  }, {
8307
- default: P(() => [
8334
+ default: R(() => [
8308
8335
  h(Jl, {
8309
8336
  fallback: p.value,
8310
8337
  form: f.value,
@@ -8435,32 +8462,32 @@ function Vu(e, n) {
8435
8462
  const cn = ai("item-manager", () => {
8436
8463
  const e = Fe(), n = qe(), t = Ze(), i = nt(n), a = it(i), o = zn(), { t: r } = fe(), l = (_) => {
8437
8464
  if (!o) throw new Error("No current instance found");
8438
- const { container: R } = di(Su, o, {
8465
+ const { container: I } = di(Su, o, {
8439
8466
  ..._,
8440
8467
  autoShow: !0,
8441
- "onUpdate:show": async (I) => {
8442
- I || (Gt(null, R), R.remove());
8468
+ "onUpdate:show": async (P) => {
8469
+ P || (Gt(null, I), I.remove());
8443
8470
  }
8444
8471
  });
8445
8472
  };
8446
8473
  function s(_) {
8447
- const { saveMenuWithThumbnail: R } = a;
8474
+ const { saveMenuWithThumbnail: I } = a;
8448
8475
  l({
8449
8476
  action: "add",
8450
8477
  categoryId: _,
8451
- "onSubmit:form": async (I, D) => {
8452
- I.inventoryBindings ?? (I.inventoryBindings = []), I.inventoryBindings.length === 0 && (I.inventoryBindings = null);
8478
+ "onSubmit:form": async (P, D) => {
8479
+ P.inventoryBindings ?? (P.inventoryBindings = []), P.inventoryBindings.length === 0 && (P.inventoryBindings = null);
8453
8480
  const O = Wt();
8454
- await R(I, Ie.F_OPERATION_TYPE.create, O, D);
8481
+ await I(P, Pe.F_OPERATION_TYPE.create, O, D);
8455
8482
  }
8456
8483
  });
8457
8484
  }
8458
- async function u(_, R, I) {
8485
+ async function u(_, I, P) {
8459
8486
  l({
8460
- initialForm: Vu(_, R || []),
8487
+ initialForm: Vu(_, I || []),
8461
8488
  action: "update",
8462
8489
  "onSubmit:form": async (D) => {
8463
- D.inventoryBindings ?? (D.inventoryBindings = []), D.inventoryBindings.length === 0 && (D.inventoryBindings = null), await I(
8490
+ D.inventoryBindings ?? (D.inventoryBindings = []), D.inventoryBindings.length === 0 && (D.inventoryBindings = null), await P(
8464
8491
  xu(
8465
8492
  [D],
8466
8493
  e.state.menu,
@@ -8473,53 +8500,53 @@ const cn = ai("item-manager", () => {
8473
8500
  }
8474
8501
  async function d(_) {
8475
8502
  var y;
8476
- const R = e.currentCatalog, I = e.state.currentSchedulerId, D = R.override.scheduler[I] ?? {}, O = (y = D == null ? void 0 : D.items) == null ? void 0 : y.filter((M) => M._id === _._id);
8503
+ const I = e.currentCatalog, P = e.state.currentSchedulerId, D = I.override.scheduler[P] ?? {}, O = (y = D == null ? void 0 : D.items) == null ? void 0 : y.filter((M) => M._id === _._id);
8477
8504
  await u(_, O, async (M) => {
8478
8505
  const $ = M.modules.catalog.find(
8479
- (j) => j._id === R._id
8506
+ (j) => j._id === I._id
8480
8507
  );
8481
8508
  await new rt($, e, a.updateMenu, t).update();
8482
8509
  });
8483
8510
  }
8484
8511
  async function c(_) {
8485
- const R = e.currentCatalog;
8486
- await u(_, R.override.items[_._id], async (I) => {
8487
- const D = I.modules.catalog.find(
8488
- (O) => O._id === R._id
8512
+ const I = e.currentCatalog;
8513
+ await u(_, I.override.items[_._id], async (P) => {
8514
+ const D = P.modules.catalog.find(
8515
+ (O) => O._id === I._id
8489
8516
  );
8490
8517
  await new rt(D, e, a.updateMenu, t).update();
8491
8518
  });
8492
8519
  }
8493
8520
  async function p(_) {
8494
- const R = e.schedulers.find(
8521
+ const I = e.schedulers.find(
8495
8522
  (D) => D._id === e.state.currentSchedulerId
8496
- ), I = R.items.filter((D) => D._id === _._id);
8497
- await u(_, I, async (D) => {
8523
+ ), P = I.items.filter((D) => D._id === _._id);
8524
+ await u(_, P, async (D) => {
8498
8525
  const O = D.modules.scheduler.find(
8499
- (y) => y._id === R._id
8526
+ (y) => y._id === I._id
8500
8527
  );
8501
8528
  await new Lt(O, e, a.updateMenu, t).update();
8502
8529
  });
8503
8530
  }
8504
8531
  async function f(_) {
8505
8532
  var O, y;
8506
- const R = e.state.currentSchedulerId, I = _e(e.currentCatalog), D = (y = ((O = I.override.scheduler[R]) == null ? void 0 : O.items) || []) == null ? void 0 : y.reduce((M, $) => {
8533
+ const I = e.state.currentSchedulerId, P = _e(e.currentCatalog), D = (y = ((O = P.override.scheduler[I]) == null ? void 0 : O.items) || []) == null ? void 0 : y.reduce((M, $) => {
8507
8534
  if ($.combinationKey) return [...M, $];
8508
8535
  const j = _.find((Q) => Q._id === $._id);
8509
8536
  return j ? [...M, { ...$, price: j.price }] : [...M, $];
8510
8537
  }, []);
8511
- I.override.scheduler = {
8512
- ...I.override.scheduler,
8513
- [R]: {
8514
- ...I.override.scheduler[R],
8515
- _id: R,
8538
+ P.override.scheduler = {
8539
+ ...P.override.scheduler,
8540
+ [I]: {
8541
+ ...P.override.scheduler[I],
8542
+ _id: I,
8516
8543
  items: D
8517
8544
  }
8518
- }, await new rt(I, e, a.updateMenu, t).update();
8545
+ }, await new rt(P, e, a.updateMenu, t).update();
8519
8546
  }
8520
8547
  async function v(_) {
8521
8548
  var O;
8522
- const R = _e(e.currentCatalog), I = (O = Object.entries(R.override.items)) == null ? void 0 : O.reduce(
8549
+ const I = _e(e.currentCatalog), P = (O = Object.entries(I.override.items)) == null ? void 0 : O.reduce(
8523
8550
  (y, [M, $]) => {
8524
8551
  const j = _.find((E) => E._id === M);
8525
8552
  if (!j)
@@ -8540,10 +8567,10 @@ const cn = ai("item-manager", () => {
8540
8567
  ), { updateMenu: D } = a;
8541
8568
  await new rt(
8542
8569
  {
8543
- ...R,
8570
+ ...I,
8544
8571
  override: {
8545
- ...R.override,
8546
- items: I
8572
+ ...I.override,
8573
+ items: P
8547
8574
  }
8548
8575
  },
8549
8576
  e,
@@ -8552,15 +8579,15 @@ const cn = ai("item-manager", () => {
8552
8579
  ).update();
8553
8580
  }
8554
8581
  async function S(_) {
8555
- const R = _e(e.currentScheduler), I = R.items.reduce((D, O) => {
8582
+ const I = _e(e.currentScheduler), P = I.items.reduce((D, O) => {
8556
8583
  if (O.combinationKey) return [...D, O];
8557
8584
  const y = _.find((M) => M._id === O._id);
8558
8585
  return y ? [...D, { ...O, price: y.price }] : [...D, O];
8559
8586
  }, []);
8560
8587
  await new Lt(
8561
8588
  {
8562
- ...R,
8563
- items: I
8589
+ ...I,
8590
+ items: P
8564
8591
  },
8565
8592
  e,
8566
8593
  a.updateMenu,
@@ -8568,7 +8595,7 @@ const cn = ai("item-manager", () => {
8568
8595
  ).update();
8569
8596
  }
8570
8597
  async function g(_) {
8571
- const R = _.reduce((D, O) => {
8598
+ const I = _.reduce((D, O) => {
8572
8599
  const y = e.items.find((M) => M._id === O._id);
8573
8600
  return y && D.push({
8574
8601
  ...y,
@@ -8582,30 +8609,30 @@ const cn = ai("item-manager", () => {
8582
8609
  additionalCategories: O.additionalCategories ?? y.additionalCategories,
8583
8610
  subCategories: O.subCategories ?? y.subCategories
8584
8611
  }), D;
8585
- }, []), { updateMenu: I } = a;
8586
- await I(
8587
- R.map((D) => ({
8588
- module: Pe.enum.item,
8589
- operation: Ie.F_OPERATION_TYPE.update,
8612
+ }, []), { updateMenu: P } = a;
8613
+ await P(
8614
+ I.map((D) => ({
8615
+ module: Re.enum.item,
8616
+ operation: Pe.F_OPERATION_TYPE.update,
8590
8617
  data: D
8591
8618
  })),
8592
- `${R.length} products`
8619
+ `${I.length} products`
8593
8620
  );
8594
8621
  }
8595
8622
  function b(_) {
8596
- const { saveMenuWithThumbnail: R } = a;
8623
+ const { saveMenuWithThumbnail: I } = a;
8597
8624
  l({
8598
8625
  initialForm: _,
8599
8626
  action: "update",
8600
- "onSubmit:form": async (I, D) => {
8627
+ "onSubmit:form": async (P, D) => {
8601
8628
  const O = Wt(_._id);
8602
- I.inventoryBindings ?? (I.inventoryBindings = []), I.inventoryBindings.length === 0 && (I.inventoryBindings = null), await R(I, Ie.F_OPERATION_TYPE.update, O, D);
8629
+ P.inventoryBindings ?? (P.inventoryBindings = []), P.inventoryBindings.length === 0 && (P.inventoryBindings = null), await I(P, Pe.F_OPERATION_TYPE.update, O, D);
8603
8630
  }
8604
8631
  });
8605
8632
  }
8606
8633
  async function A(_) {
8607
- const R = e.state.menu.modules.item.find((I) => I._id === _);
8608
- e.currentCatalog ? e.state.currentSchedulerId ? await d(R) : await c(R) : e.state.currentSchedulerId ? await p(R) : b(R);
8634
+ const I = e.state.menu.modules.item.find((P) => P._id === _);
8635
+ e.currentCatalog ? e.state.currentSchedulerId ? await d(I) : await c(I) : e.state.currentSchedulerId ? await p(I) : b(I);
8609
8636
  }
8610
8637
  async function V(_) {
8611
8638
  e.currentCatalog ? e.currentScheduler ? await f(_) : await v(_) : (
@@ -8614,10 +8641,10 @@ const cn = ai("item-manager", () => {
8614
8641
  );
8615
8642
  }
8616
8643
  function B(_) {
8617
- const { updateMenu: R } = a, I = _.length > 1 ? `${_.length} products` : _[0].name;
8644
+ const { updateMenu: I } = a, P = _.length > 1 ? `${_.length} products` : _[0].name;
8618
8645
  t.open({
8619
8646
  title: r("menu.common.dialog.remove.product.title"),
8620
- message: r("menu.common.dialog.remove.product.message", { name: I }),
8647
+ message: r("menu.common.dialog.remove.product.message", { name: P }),
8621
8648
  primaryActions: {
8622
8649
  text: r("menu.common.actions.remove"),
8623
8650
  close: !0,
@@ -8628,13 +8655,13 @@ const cn = ai("item-manager", () => {
8628
8655
  close: !0
8629
8656
  }
8630
8657
  }).onPrimary(async () => {
8631
- await R(
8658
+ await I(
8632
8659
  _.map(({ _id: D }) => ({
8633
- module: Pe.enum.item,
8634
- operation: Ie.F_OPERATION_TYPE.delete,
8660
+ module: Re.enum.item,
8661
+ operation: Pe.F_OPERATION_TYPE.delete,
8635
8662
  data: D
8636
8663
  })),
8637
- I,
8664
+ P,
8638
8665
  !0
8639
8666
  );
8640
8667
  for (const D of _)
@@ -8651,19 +8678,19 @@ const cn = ai("item-manager", () => {
8651
8678
  e,
8652
8679
  a.updateMenu,
8653
8680
  t
8654
- ).unlinkProduct(_.map((R) => R._id)) : e.currentCatalog ? await new rt(
8681
+ ).unlinkProduct(_.map((I) => I._id)) : e.currentCatalog ? await new rt(
8655
8682
  e.currentCatalog,
8656
8683
  e,
8657
8684
  a.updateMenu,
8658
8685
  t
8659
- ).unlinkProduct(_.map((R) => R._id)) : B(_);
8686
+ ).unlinkProduct(_.map((I) => I._id)) : B(_);
8660
8687
  }
8661
8688
  async function C(_) {
8662
- const { updateMenu: R } = a;
8663
- await R(
8689
+ const { updateMenu: I } = a;
8690
+ await I(
8664
8691
  {
8665
- module: Pe.enum.item,
8666
- operation: Ie.F_OPERATION_TYPE.rearrange,
8692
+ module: Re.enum.item,
8693
+ operation: Pe.F_OPERATION_TYPE.rearrange,
8667
8694
  data: _
8668
8695
  },
8669
8696
  "Products"
@@ -8679,19 +8706,20 @@ const cn = ai("item-manager", () => {
8679
8706
  };
8680
8707
  });
8681
8708
  export {
8682
- Un as A,
8683
- Xl as B,
8709
+ _s as A,
8710
+ Un as B,
8684
8711
  ra as C,
8685
- uc as D,
8686
- Xo as E,
8712
+ Xl as D,
8713
+ uc as E,
8687
8714
  ts as F,
8688
- Zo as G,
8689
- Tr as H,
8715
+ Xo as G,
8716
+ Zo as H,
8690
8717
  ta as I,
8691
- oi as J,
8692
- Lt as K,
8693
- Bi as L,
8718
+ Tr as J,
8719
+ oi as K,
8720
+ Lt as L,
8694
8721
  bi as M,
8722
+ Bi as N,
8695
8723
  Ul as P,
8696
8724
  ir as S,
8697
8725
  ht as T,
@@ -8714,12 +8742,12 @@ export {
8714
8742
  Ws as p,
8715
8743
  yi as q,
8716
8744
  gi as r,
8717
- Io as s,
8745
+ Mo as s,
8718
8746
  on as t,
8719
8747
  cn as u,
8720
8748
  ji as v,
8721
8749
  Ui as w,
8722
- Li as x,
8723
- Zl as y,
8724
- _s as z
8750
+ Yo as x,
8751
+ Li as y,
8752
+ Zl as z
8725
8753
  };