@feedmepos/mf-menu 0.31.18-prod → 0.31.19-beta

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 (68) hide show
  1. package/dist/{App-CA9Sl2_e.js → App-y2Q2D6AO.js} +2400 -1296
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DXC06G_p.js → ApplyProduct.vue_vue_type_script_setup_true_lang-XV96dt6h.js} +2 -2
  3. package/dist/{Catalog-DO0Z3SSz.js → Catalog-Di-YSP-w.js} +5 -5
  4. package/dist/{Category-B1kXrXpy.js → Category-BzydRf7k.js} +21 -21
  5. package/dist/{Category-DTh_5WI5.js → Category-CAccN9m6.js} +8 -8
  6. package/dist/{CookingGuide-eHhSbisd.js → CookingGuide-BQcVxx1R.js} +66 -66
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DKGEMS0s.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BjUqhzCZ.js} +1 -1
  8. package/dist/{Group-Bd61FXOa.js → Group-B8TuooWf.js} +3 -3
  9. package/dist/{Group-Dh5RNyxf.js → Group-CAV74Npz.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-p3ZeU8Ad.js → Group.vue_vue_type_script_setup_true_lang-ClnFek9W.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CuR3HOn4.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DsC5e95X.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BjwTTR43.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DV0-XcfW.js} +3078 -3074
  13. package/dist/{Ingredient-BLfFgX0g.js → Ingredient-DMLmjp-1.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C2f4oQV_.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C0tjGp89.js} +2 -2
  15. package/dist/{LinkProductSideSheet-DPIxXikN.js → LinkProductSideSheet-DIvOzMB8.js} +1 -1
  16. package/dist/{MenuSetting-UVUYswl1.js → MenuSetting-C5sIpDMN.js} +16 -16
  17. package/dist/{PrintRoute-B4WpCa5j.js → PrintRoute-NHoHTnMc.js} +26 -26
  18. package/dist/{Product-DMqUEuUP.js → Product-C2SOvPy4.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DvqDdaNh.js → Product.vue_vue_type_script_setup_true_lang-BEHnUKcc.js} +62 -59
  20. package/dist/{ProductInternalTools-BjQILwqA.js → ProductInternalTools-eXFZoo1G.js} +14 -14
  21. package/dist/{Products-BR612MbF.js → Products-3J5DcGEc.js} +15 -15
  22. package/dist/{Publish-HQprte7i.js → Publish-BdWd54a5.js} +32 -32
  23. package/dist/{Recipe-CW8DpUib.js → Recipe-DrNJifKH.js} +9 -9
  24. package/dist/{Scheduler-jwxuWWBc.js → Scheduler-OLKgjhjM.js} +3 -3
  25. package/dist/{ServingSequence-DILOiy8d.js → ServingSequence-DZ-eaRkW.js} +25 -25
  26. package/dist/{Setting-DtHcu5eE.js → Setting-t5Edfa6F.js} +10 -10
  27. package/dist/{Subcategory-BuBhmpHK.js → Subcategory-B1BeXahn.js} +18 -18
  28. package/dist/{Takeaway-CFH-2jGX.js → Takeaway-CS31a0G6.js} +1 -1
  29. package/dist/{Takeaway-Dadg_p4p.js → Takeaway-q69U7AjK.js} +10 -10
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Ccm340Do.js → Takeaway.vue_vue_type_script_setup_true_lang-CNheVEqy.js} +17 -17
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BO_RY7Nb.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-0kXXOsyC.js} +356 -352
  32. package/dist/{Unit-BhC7HKdj.js → Unit-R0fBKDBQ.js} +8 -8
  33. package/dist/{Variant-op1jI8lu.js → Variant-DdIfbckf.js} +8 -8
  34. package/dist/{_id_-C8aH00wO.js → _id_-Cpxz3UoN.js} +17 -17
  35. package/dist/{app-CgdrcHjA.js → app-CMGlnsG5.js} +24 -24
  36. package/dist/{app-DTuhoxK_.js → app-DRorRq_c.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/components/Announcements.vue.d.ts +19 -0
  39. package/dist/apps/mf-menu/src/components/feature/Fields/OrderFrom.vue.d.ts +1 -1
  40. package/dist/apps/mf-menu/src/helper/menu.d.ts +1 -1
  41. package/dist/apps/mf-menu/src/stores/announcement/announcement.d.ts +11 -0
  42. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/assets/linked-status-CdVNB55V.js +24 -0
  44. package/dist/assets/override-menu-CjvOi-J-.js +24 -0
  45. package/dist/assets/validate-menu-BU_-Jge5.js +24 -0
  46. package/dist/{catalog-C_ivwYaQ.js → catalog-BXSv7rZo.js} +1 -1
  47. package/dist/{catalogSetting-DZueIrzX.js → catalogSetting-DhXLcwI_.js} +1 -1
  48. package/dist/{category-B3iKQFQ-.js → category-LHZTSH3_.js} +1 -1
  49. package/dist/{currency-CA5FQbXi.js → currency-C05JOYSJ.js} +1 -1
  50. package/dist/{dayjs.min-B5JdMy-O.js → dayjs.min-OqJAuW-9.js} +1 -1
  51. package/dist/{index-g0Su2v11.js → index-BgrBG_Iz.js} +11 -11
  52. package/dist/{index-jZfKRlag.js → index-CxytOxGX.js} +1 -1
  53. package/dist/{index-BFdAL_N3.js → index-kz099Vvw.js} +6 -6
  54. package/dist/{item-SVoStXDW.js → item-vz-nrIWG.js} +694 -691
  55. package/dist/{jszip.min-DYjqumCW.js → jszip.min-C2aY4t8L.js} +2 -2
  56. package/dist/menu-CAVt_lFp.js +107896 -0
  57. package/dist/{menu-CTQtotYO.js → menu-DJkyk-fC.js} +1 -1
  58. package/dist/mf-menu.css +1 -1
  59. package/dist/{priceTier-D7hqwCP7.js → priceTier-xvRS9QN2.js} +1 -1
  60. package/dist/{scheduler-sOWjTP9q.js → scheduler-Du42t5zf.js} +3 -3
  61. package/dist/{subcategory-DzOnwchb.js → subcategory-CqKHknsQ.js} +219 -219
  62. package/dist/{toExcel-CXiBEHW2.js → toExcel-BvBlj-X5.js} +2 -2
  63. package/dist/{unit-CejxJLsQ.js → unit-DENherye.js} +1 -1
  64. package/package.json +3 -2
  65. package/dist/assets/linked-status-DjuegQzl.js +0 -24
  66. package/dist/assets/override-menu-SwLrxhgz.js +0 -24
  67. package/dist/assets/validate-menu-kf0hkaus.js +0 -24
  68. package/dist/menu-GZ7mL7Mu.js +0 -132202
@@ -1,32 +1,32 @@
1
1
  import { defineStore as mo } from "pinia";
2
- import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ve, resolveComponent as H, createBlock as Z, createVNode as A, toDisplayString as ye, Fragment as Ue, renderList as at, h as De, ref as te, computed as z, watch as Fe, unref as b, renderSlot as Re, withCtx as G, createCommentVNode as se, Transition as ha, resolveDynamicComponent as wn, withDirectives as Xt, vShow as kn, mergeProps as po, withModifiers as Cn, createTextVNode as Gn, normalizeClass as He, getCurrentInstance as an, inject as ga, shallowRef as va, onMounted as $t, onUnmounted as _a, Text as ba, resolveDirective as fo, markRaw as ya, render as Wn, mergeModels as wa, useModel as Ea, nextTick as ho, onBeforeUnmount as Sa, normalizeProps as ka, guardReactiveProps as Ca, normalizeStyle as Ra } from "vue";
3
- import { J as Ve, G as ee, V as Aa, ai as Oa, Y as Ia, H as ge, A as qe, T as go, u as Te, z as $e, I as ot, B as kt, O as Ct, P as Ta, Q as Ma, R as Da, U as Pn, ab as Pa, M as Na, K as ki } from "./menu-GZ7mL7Mu.js";
4
- import { useI18n as Se, useCoreStore as rn, CustomAttributesForm as vo } from "@feedmepos/mf-common";
5
- import { useDialog as st, useSnackbar as Ze, components as Be, FmButtonColorThemeVariant as pt, FmButtonVariant as Rt, useBreakpoints as _o, useDialogChild as bo } from "@feedmepos/ui-library";
6
- import { C as ft } from "./catalog-C_ivwYaQ.js";
2
+ import { createElementBlock as re, openBlock as U, createElementVNode as B, defineComponent as ve, resolveComponent as H, createBlock as Z, createVNode as R, toDisplayString as ye, Fragment as Ue, renderList as at, h as De, ref as te, computed as z, watch as Fe, unref as b, renderSlot as Ae, withCtx as G, createCommentVNode as se, Transition as ha, resolveDynamicComponent as wn, withDirectives as Xt, vShow as Sn, mergeProps as po, withModifiers as Cn, createTextVNode as Gn, normalizeClass as He, getCurrentInstance as an, inject as ga, shallowRef as va, onMounted as $t, onUnmounted as _a, Text as ba, resolveDirective as fo, markRaw as ya, render as Wn, mergeModels as wa, useModel as Ea, nextTick as ho, onBeforeUnmount as ka, normalizeProps as Sa, guardReactiveProps as Ca, normalizeStyle as Aa } from "vue";
3
+ import { J as Ve, G as ee, V as Ra, ai as Oa, Y as Ia, H as ge, B as qe, T as go, u as Te, A as $e, I as ot, D as St, O as Ct, P as Ta, Q as Ma, R as Da, U as Pn, ab as Pa, M as Na, K as Si } from "./menu-CAVt_lFp.js";
4
+ import { useI18n as ke, useCoreStore as rn, CustomAttributesForm as vo } from "@feedmepos/mf-common";
5
+ import { useDialog as st, useSnackbar as Ze, components as Be, FmButtonColorThemeVariant as pt, FmButtonVariant as At, useBreakpoints as _o, useDialogChild as bo } from "@feedmepos/ui-library";
6
+ import { C as ft } from "./catalog-BXSv7rZo.js";
7
7
  import { c as Fa } from "./createComponentProgrammatically-Bt2rn1IQ.js";
8
8
  import { a as Ci, _ as yo } from "./tooltip-B5BiPMx9.js";
9
- import { _ as At, L as La } from "./LinkProductSideSheet-DPIxXikN.js";
9
+ import { _ as Rt, L as La } from "./LinkProductSideSheet-DIvOzMB8.js";
10
10
  import { _ as lt, a as xa } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
11
- import { s as Hn, F as Ua, _ as Va } from "./index-jZfKRlag.js";
12
- import { I as za, u as $a } from "./app-CgdrcHjA.js";
13
- import { u as Ba } from "./app-DTuhoxK_.js";
14
- import { a as Ga, g as wo, d as Wa, c as Ha, b as ja, m as Ka } from "./subcategory-DzOnwchb.js";
11
+ import { s as Hn, F as Ua, _ as Va } from "./index-CxytOxGX.js";
12
+ import { I as za, u as $a } from "./app-CMGlnsG5.js";
13
+ import { u as Ba } from "./app-DRorRq_c.js";
14
+ import { a as Ga, g as wo, d as Wa, c as Ha, b as ja, m as Ka } from "./subcategory-CqKHknsQ.js";
15
15
  import { _ as _t } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
16
- import { u as Ya } from "./category-B3iKQFQ-.js";
16
+ import { u as Ya } from "./category-LHZTSH3_.js";
17
17
  import "@vue/devtools-api";
18
18
  import { u as ui } from "./discardConfirm-BHni0LNu.js";
19
- import { _ as Pt, l as jn, T as Xa } from "./index-BFdAL_N3.js";
19
+ import { _ as Pt, l as jn, T as Xa } from "./index-kz099Vvw.js";
20
20
  import { useInventoryStore as Eo, InventoryBindingForm as qa, InventoryBindingSummary as Ja } from "@feedmepos/mf-inventory-portal";
21
21
  import { c as sn } from "./check-C9mY6LiX.js";
22
22
  import { c as Za } from "./object-DVUNCr7w.js";
23
- import { f as Bt } from "./currency-CA5FQbXi.js";
24
- import { u as So } from "./priceTier-D7hqwCP7.js";
23
+ import { f as Bt } from "./currency-C05JOYSJ.js";
24
+ import { u as ko } from "./priceTier-xvRS9QN2.js";
25
25
  import { u as Qa } from "./search-BAPEUu1R.js";
26
26
  import { c as er } from "./string-DpfFixWH.js";
27
- import { d as ko } from "./vuedraggable-CK8z7qA8.js";
28
- import { _ as tr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DXC06G_p.js";
29
- import { V as Ri } from "./index-g0Su2v11.js";
27
+ import { d as So } from "./vuedraggable-CK8z7qA8.js";
28
+ import { _ as tr } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-XV96dt6h.js";
29
+ import { V as Ai } from "./index-BgrBG_Iz.js";
30
30
  class _n {
31
31
  constructor(t, n, i, a) {
32
32
  this.scheduler = t, this.menuStore = n, this.updateMenu = i, this.dialog = a;
@@ -211,7 +211,7 @@ class _n {
211
211
  const a = t.reduce((r, l) => {
212
212
  const s = n.items.filter((u) => u._id == l) ?? [];
213
213
  return r = r.concat(
214
- Aa(l, s, (u) => ({
214
+ Ra(l, s, (u) => ({
215
215
  ...u,
216
216
  orderFrom: null
217
217
  }))
@@ -237,7 +237,7 @@ class _n {
237
237
  })).filter((a) => a.items.length > 0);
238
238
  }
239
239
  }
240
- function Rn(e, t) {
240
+ function An(e, t) {
241
241
  for (const n of t) {
242
242
  const i = e.find((a) => a._id === n._id);
243
243
  if (i != null && i.isDynamicAddon || n.isDynamicAddon) return ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC;
@@ -316,7 +316,7 @@ function Co(e) {
316
316
  linkItems: a
317
317
  };
318
318
  }
319
- class Ro {
319
+ class Ao {
320
320
  constructor(t, n, i) {
321
321
  this.menuStore = t, this.updateMenu = n, this.dialog = i;
322
322
  }
@@ -382,28 +382,28 @@ class Ro {
382
382
  function l(s, u) {
383
383
  const m = s.items.reduce((c, p) => {
384
384
  var M, O, w, x;
385
- const E = a.find((k) => p._id === k._id);
385
+ const E = a.find((S) => p._id === S._id);
386
386
  if (!E && n) return c;
387
387
  const _ = p.combinationKey ? {
388
388
  ...(M = E == null ? void 0 : E.variant) == null ? void 0 : M.variantCombinations.find(
389
- (k) => k.combinationKey === p.combinationKey
389
+ (S) => S.combinationKey === p.combinationKey
390
390
  ),
391
391
  name: go(Te().variants, ((O = E == null ? void 0 : E.variant) == null ? void 0 : O.variantGroupIds) || [])[p.combinationKey]
392
- } : E, y = (w = o.find((k) => k._id === s._id)) == null ? void 0 : w.items.find((k) => k._id === p._id && k.combinationKey === p.combinationKey), g = !n && !p.combinationKey, v = (x = u.find(
393
- (k) => k._id == p._id && k.combinationKey == p.combinationKey
394
- )) == null ? void 0 : x.price, S = p.name ?? (y == null ? void 0 : y.name) ?? (_ == null ? void 0 : _.name) ?? "", R = {
392
+ } : E, y = (w = o.find((S) => S._id === s._id)) == null ? void 0 : w.items.find((S) => S._id === p._id && S.combinationKey === p.combinationKey), g = !n && !p.combinationKey, v = (x = u.find(
393
+ (S) => S._id == p._id && S.combinationKey == p.combinationKey
394
+ )) == null ? void 0 : x.price, k = p.name ?? (y == null ? void 0 : y.name) ?? (_ == null ? void 0 : _.name) ?? "", A = {
395
395
  ...p,
396
- name: S,
396
+ name: k,
397
397
  code: _ == null ? void 0 : _.code,
398
- fallbackName: g ? null : S,
398
+ fallbackName: g ? null : k,
399
399
  price: p.price,
400
400
  fallbackPrice: g ? null : v,
401
401
  orderFrom: p.orderFrom,
402
402
  fallbackOrder: _ == null ? void 0 : _.orderFrom,
403
403
  priceTiers: p.priceTiers
404
404
  };
405
- return [...c, R];
406
- }, []), d = Rn(a, s.items);
405
+ return [...c, A];
406
+ }, []), d = An(a, s.items);
407
407
  return {
408
408
  ...s,
409
409
  type: d,
@@ -493,7 +493,7 @@ class Ro {
493
493
  return !!this.menuStore.state.currentCatalogId || !!this.menuStore.state.currentSchedulerId;
494
494
  }
495
495
  }
496
- function Ao(e) {
496
+ function Ro(e) {
497
497
  if (!e)
498
498
  return [];
499
499
  const t = [];
@@ -507,7 +507,7 @@ function ir(e, t) {
507
507
  }
508
508
  function or(e, t) {
509
509
  const n = ge(e);
510
- return Ao(t).forEach((o) => {
510
+ return Ro(t).forEach((o) => {
511
511
  delete n[o];
512
512
  }), (n.items ?? []).forEach((o) => {
513
513
  const r = o.combinationKey ?? null;
@@ -525,10 +525,10 @@ function rr(e, t) {
525
525
  B("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
526
526
  ]));
527
527
  }
528
- const sr = /* @__PURE__ */ At(ar, [["render", rr]]), lr = {
528
+ const sr = /* @__PURE__ */ Rt(ar, [["render", rr]]), lr = {
529
529
  key: 0,
530
530
  class: "ml-40 w-[320px] fm-corner-radius-lg p-16 border border-fm-color-neutral-gray-200 space-y-4"
531
- }, ur = { class: "fm-typo-en-title-sm-600" }, Ai = /* @__PURE__ */ ve({
531
+ }, ur = { class: "fm-typo-en-title-sm-600" }, Ri = /* @__PURE__ */ ve({
532
532
  __name: "Summary",
533
533
  props: {
534
534
  title: {},
@@ -554,7 +554,7 @@ const sr = /* @__PURE__ */ At(ar, [["render", rr]]), lr = {
554
554
  const r = H("FmButton");
555
555
  return t.variant === "full" ? (U(), re("div", lr, [
556
556
  B("div", ur, ye(a.title), 1),
557
- A(sr),
557
+ R(sr),
558
558
  (U(!0), re(Ue, null, at(a.items, (l) => (U(), Z(Ci, {
559
559
  key: l.name,
560
560
  name: l.name,
@@ -575,7 +575,7 @@ const sr = /* @__PURE__ */ At(ar, [["render", rr]]), lr = {
575
575
  },
576
576
  emits: ["update:catalogAndScheduler"],
577
577
  setup(e, { emit: t }) {
578
- const n = e, i = t, { t: a } = Se(), o = Te(), r = te(o.state.currentCatalogId || null), l = z(() => {
578
+ const n = e, i = t, { t: a } = ke(), o = Te(), r = te(o.state.currentCatalogId || null), l = z(() => {
579
579
  const c = Object.keys(n.linkedStatus.catalogs).map((p) => {
580
580
  var E;
581
581
  return {
@@ -626,7 +626,7 @@ const sr = /* @__PURE__ */ At(ar, [["render", rr]]), lr = {
626
626
  ]),
627
627
  B("div", fr, [
628
628
  B("div", hr, [
629
- A(E, {
629
+ R(E, {
630
630
  label: b(a)("menu.common.labels.catalog"),
631
631
  items: l.value,
632
632
  modelValue: r.value,
@@ -634,7 +634,7 @@ const sr = /* @__PURE__ */ At(ar, [["render", rr]]), lr = {
634
634
  }, null, 8, ["label", "items", "modelValue"])
635
635
  ]),
636
636
  B("div", gr, [
637
- A(E, {
637
+ R(E, {
638
638
  label: b(a)("menu.common.labels.scheduler"),
639
639
  items: m.value,
640
640
  modelValue: s.value,
@@ -648,7 +648,7 @@ const sr = /* @__PURE__ */ At(ar, [["render", rr]]), lr = {
648
648
  }), _r = { class: "flex items-center justify-between" }, br = { class: "space-y-4 flex-1" }, yr = { class: "fm-typo-en-title-sm-600" }, wr = {
649
649
  key: 0,
650
650
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
651
- }, Er = { key: 0 }, Sr = /* @__PURE__ */ ve({
651
+ }, Er = { key: 0 }, kr = /* @__PURE__ */ ve({
652
652
  __name: "ToggleCard",
653
653
  props: {
654
654
  title: {},
@@ -661,7 +661,7 @@ const sr = /* @__PURE__ */ At(ar, [["render", rr]]), lr = {
661
661
  const n = t;
662
662
  return (i, a) => {
663
663
  const o = H("fm-switch"), r = H("fm-card");
664
- return i.disabled ? Re(i.$slots, "default", { key: 0 }, void 0, !0) : (U(), Z(r, {
664
+ return i.disabled ? Ae(i.$slots, "default", { key: 0 }, void 0, !0) : (U(), Z(r, {
665
665
  key: 1,
666
666
  class: "p-16 space-y-24",
667
667
  variant: "outlined"
@@ -672,15 +672,15 @@ const sr = /* @__PURE__ */ At(ar, [["render", rr]]), lr = {
672
672
  B("p", yr, ye(i.title), 1),
673
673
  i.description ? (U(), re("p", wr, ye(i.description), 1)) : se("", !0)
674
674
  ]),
675
- A(o, {
675
+ R(o, {
676
676
  "model-value": i.toggle,
677
677
  "onUpdate:modelValue": a[0] || (a[0] = (l) => n("update:toggle", l))
678
678
  }, null, 8, ["model-value"])
679
679
  ]),
680
- A(ha, { name: "expand" }, {
680
+ R(ha, { name: "expand" }, {
681
681
  default: G(() => [
682
682
  i.toggle ? (U(), re("div", Er, [
683
- Re(i.$slots, "default", {}, void 0, !0)
683
+ Ae(i.$slots, "default", {}, void 0, !0)
684
684
  ])) : se("", !0)
685
685
  ]),
686
686
  _: 3
@@ -690,8 +690,8 @@ const sr = /* @__PURE__ */ At(ar, [["render", rr]]), lr = {
690
690
  }));
691
691
  };
692
692
  }
693
- }), Tt = /* @__PURE__ */ At(Sr, [["__scopeId", "data-v-e920f110"]]);
694
- var kr = { remy: "https://remy.feedmeapi.com/v1" };
693
+ }), Tt = /* @__PURE__ */ Rt(kr, [["__scopeId", "data-v-e920f110"]]);
694
+ var Sr = { remy: "https://remy-dev.feedmeapi.com/v1" };
695
695
  let Ge;
696
696
  function Cr(e) {
697
697
  const t = Ba(), n = za(e), i = z(() => {
@@ -718,17 +718,17 @@ function Cr(e) {
718
718
  function Em(e) {
719
719
  Ge = Cr({
720
720
  token: e,
721
- url: kr.remy
721
+ url: Sr.remy
722
722
  });
723
723
  }
724
- const Rr = mo("menu-edit-state", {
724
+ const Ar = mo("menu-edit-state", {
725
725
  state: () => ({
726
726
  isUpdatingItem: !1,
727
727
  storedCatalogId: null,
728
728
  storedSchedulerId: null
729
729
  })
730
730
  });
731
- async function Ar(e) {
731
+ async function Rr(e) {
732
732
  const { items: t, processor: n, batchSize: i = 5, batchDelay: a = 200, onProgress: o, progressMessage: r } = e, l = t.length, s = [];
733
733
  for (let u = 0; u < t.length; u += i) {
734
734
  const m = t.slice(u, u + i), d = u + 1, c = Math.min(u + i, t.length), p = `Processing items ${d}-${c}/${l}...`;
@@ -767,8 +767,8 @@ async function Ir(e, t = "image.jpg", n = "image/jpeg") {
767
767
  });
768
768
  return i ? new File([i.blob], t, { type: n }) : null;
769
769
  }
770
- async function Sm(e, t, n = {}) {
771
- return Ar({
770
+ async function km(e, t, n = {}) {
771
+ return Rr({
772
772
  items: e,
773
773
  processor: (i) => t(i.url, i.filename),
774
774
  ...n
@@ -777,10 +777,10 @@ async function Sm(e, t, n = {}) {
777
777
  const Tr = {}, Mr = { class: "pl-32" };
778
778
  function Dr(e, t) {
779
779
  return U(), re("div", Mr, [
780
- Re(e.$slots, "default")
780
+ Ae(e.$slots, "default")
781
781
  ]);
782
782
  }
783
- const Pr = /* @__PURE__ */ At(Tr, [["render", Dr]]);
783
+ const Pr = /* @__PURE__ */ Rt(Tr, [["render", Dr]]);
784
784
  function Oi(e, t) {
785
785
  var n = Object.keys(e);
786
786
  if (Object.getOwnPropertySymbols) {
@@ -1035,7 +1035,7 @@ mi.render = function(e, t, n, i, a, o) {
1035
1035
  return o.onMouseOver && o.onMouseOver.apply(o, arguments);
1036
1036
  }), onMouseleave: t[4] || (t[4] = function() {
1037
1037
  return o.onMouseLeave && o.onMouseLeave.apply(o, arguments);
1038
- }) }, [Re(e.$slots, "default")], 34);
1038
+ }) }, [Ae(e.$slots, "default")], 34);
1039
1039
  };
1040
1040
  var Fn = Qe("vue-handler-wrapper"), Do = { name: "HandlerWrapper", components: { DraggableElement: mi }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
1041
1041
  var e;
@@ -1047,7 +1047,7 @@ var Fn = Qe("vue-handler-wrapper"), Do = { name: "HandlerWrapper", components: {
1047
1047
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
1048
1048
  Do.render = function(e, t, n, i, a, o) {
1049
1049
  var r = H("DraggableElement");
1050
- return U(), Z("div", { class: o.classes.root }, [A(r, { class: o.classes.draggable, onDrag: t[1] || (t[1] = function(l) {
1050
+ return U(), Z("div", { class: o.classes.root }, [R(r, { class: o.classes.draggable, onDrag: t[1] || (t[1] = function(l) {
1051
1051
  return e.$emit("drag", l);
1052
1052
  }), onDragEnd: t[2] || (t[2] = function(l) {
1053
1053
  return e.$emit("drag-end");
@@ -1056,7 +1056,7 @@ Do.render = function(e, t, n, i, a, o) {
1056
1056
  }), onEnter: t[4] || (t[4] = function(l) {
1057
1057
  return e.$emit("enter");
1058
1058
  }) }, { default: G(function() {
1059
- return [Re(e.$slots, "default")];
1059
+ return [Ae(e.$slots, "default")];
1060
1060
  }), _: 3 }, 8, ["class"])], 2);
1061
1061
  };
1062
1062
  var Ur = Qe("vue-line-wrapper"), Po = { name: "LineWrapper", components: { DraggableElement: mi }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
@@ -1074,7 +1074,7 @@ Po.render = function(e, t, n, i, a, o) {
1074
1074
  }), onEnter: t[4] || (t[4] = function(l) {
1075
1075
  return e.$emit("enter");
1076
1076
  }) }, { default: G(function() {
1077
- return [Re(e.$slots, "default")];
1077
+ return [Ae(e.$slots, "default")];
1078
1078
  }), _: 3 }, 8, ["class"]);
1079
1079
  };
1080
1080
  var it = ["left", "right", "top", "bottom"], Vr = ["left", "right"], zr = ["top", "bottom"], $r = ["left", "top"], Br = ["fill-area", "fit-area", "stencil", "none"], Di = { left: 0, top: 0, width: 0, height: 0 };
@@ -1102,7 +1102,7 @@ function Qt(e, t) {
1102
1102
  function nt(e, t) {
1103
1103
  return { left: e.left - t.left, top: e.top - t.top, width: e.width + t.left + t.right, height: e.height + t.top + t.bottom };
1104
1104
  }
1105
- function An(e) {
1105
+ function Rn(e) {
1106
1106
  return { left: -e.left, top: -e.top };
1107
1107
  }
1108
1108
  function We(e, t) {
@@ -1140,7 +1140,7 @@ function Fo(e, t) {
1140
1140
  var n = t * Math.PI / 180;
1141
1141
  return { width: Math.abs(e.width * Math.cos(n)) + Math.abs(e.height * Math.sin(n)), height: Math.abs(e.width * Math.sin(n)) + Math.abs(e.height * Math.cos(n)) };
1142
1142
  }
1143
- function St(e, t) {
1143
+ function kt(e, t) {
1144
1144
  var n = t * Math.PI / 180;
1145
1145
  return { left: e.left * Math.cos(n) - e.top * Math.sin(n), top: e.left * Math.sin(n) + e.top * Math.cos(n) };
1146
1146
  }
@@ -1151,7 +1151,7 @@ function On(e, t) {
1151
1151
  function xe(e, t, n) {
1152
1152
  n === void 0 && (n = !1);
1153
1153
  var i = Ht(e, t);
1154
- return We(e, n ? An(i) : i);
1154
+ return We(e, n ? Rn(i) : i);
1155
1155
  }
1156
1156
  function qn(e) {
1157
1157
  return { width: e.right !== void 0 && e.left !== void 0 ? e.right - e.left : 1 / 0, height: e.bottom !== void 0 && e.top !== void 0 ? e.bottom - e.top : 1 / 0 };
@@ -1236,7 +1236,7 @@ function Kr(e) {
1236
1236
  var t = e.event, n = e.coordinates, i = e.visibleArea, a = e.getAreaRestrictions, o = ie({}, i), r = ie({}, n);
1237
1237
  if (t.type === "setCoordinates") {
1238
1238
  var l = Math.max(0, r.width - o.width), s = Math.max(0, r.height - o.height);
1239
- l > s ? o = Xe(o, Math.min(r.width / o.width, Wt(o, a({ visibleArea: o, type: "resize" })))) : s > l && (o = Xe(o, Math.min(r.height / o.height, Wt(o, a({ visibleArea: o, type: "resize" }))))), o = xe(o = We(o, An(Ht(r, rt(o)))), a({ visibleArea: o, type: "move" }));
1239
+ l > s ? o = Xe(o, Math.min(r.width / o.width, Wt(o, a({ visibleArea: o, type: "resize" })))) : s > l && (o = Xe(o, Math.min(r.height / o.height, Wt(o, a({ visibleArea: o, type: "resize" }))))), o = xe(o = We(o, Rn(Ht(r, rt(o)))), a({ visibleArea: o, type: "move" }));
1240
1240
  }
1241
1241
  return { visibleArea: o, coordinates: r };
1242
1242
  }
@@ -1269,18 +1269,18 @@ function Zr(e) {
1269
1269
  m = We(m, { left: u.left || 0, top: u.top || 0 });
1270
1270
  var _ = { stencil: { minimum: Math.max(a.minWidth ? a.minWidth / d.width : 0, a.minHeight ? a.minHeight / d.height : 0), maximum: Math.min(a.maxWidth ? a.maxWidth / d.width : 1 / 0, a.maxHeight ? a.maxHeight / d.height : 1 / 0, Wt(d, r)) }, area: { maximum: Wt(m, o({ visibleArea: m, type: "resize" })) } };
1271
1271
  s.factor && E && (s.factor < 1 ? (p = Math.max(s.factor, _.stencil.minimum)) > 1 && (p = 1) : s.factor > 1 && (p = Math.min(s.factor, Math.min(_.area.maximum, _.stencil.maximum))) < 1 && (p = 1)), p && (m = Xe(m, p, s.center));
1272
- var y = n.left - i.left, g = i.width + i.left - (n.width + n.left), v = n.top - i.top, S = i.height + i.top - (n.height + n.top);
1273
- return m = xe(m = We(m, Ht(m, { left: r.left !== void 0 ? r.left - y * p : void 0, top: r.top !== void 0 ? r.top - v * p : void 0, bottom: r.bottom !== void 0 ? r.bottom + S * p : void 0, right: r.right !== void 0 ? r.right + g * p : void 0 })), o({ visibleArea: m, type: "move" })), d.width = d.width * p, d.height = d.height * p, d.left = m.left + y * p, d.top = m.top + v * p, d = xe(d, In(rt(m), r)), s.factor && E && l && (s.factor > 1 ? c = Math.min(_.area.maximum, s.factor) / p : s.factor < 1 && (c = Math.max(d.height / m.height, d.width / m.width, s.factor / p)), c !== 1 && (m = We(m = xe(m = Xe(m, c, s.factor > 1 ? s.center : Le(d)), o({ visibleArea: m, type: "move" })), An(Ht(d, rt(m)))))), { coordinates: d, visibleArea: m };
1272
+ var y = n.left - i.left, g = i.width + i.left - (n.width + n.left), v = n.top - i.top, k = i.height + i.top - (n.height + n.top);
1273
+ return m = xe(m = We(m, Ht(m, { left: r.left !== void 0 ? r.left - y * p : void 0, top: r.top !== void 0 ? r.top - v * p : void 0, bottom: r.bottom !== void 0 ? r.bottom + k * p : void 0, right: r.right !== void 0 ? r.right + g * p : void 0 })), o({ visibleArea: m, type: "move" })), d.width = d.width * p, d.height = d.height * p, d.left = m.left + y * p, d.top = m.top + v * p, d = xe(d, In(rt(m), r)), s.factor && E && l && (s.factor > 1 ? c = Math.min(_.area.maximum, s.factor) / p : s.factor < 1 && (c = Math.max(d.height / m.height, d.width / m.width, s.factor / p)), c !== 1 && (m = We(m = xe(m = Xe(m, c, s.factor > 1 ? s.center : Le(d)), o({ visibleArea: m, type: "move" })), Rn(Ht(d, rt(m)))))), { coordinates: d, visibleArea: m };
1274
1274
  }
1275
1275
  function Qr(e) {
1276
- var t = e.aspectRatio, n = e.getAreaRestrictions, i = e.coordinates, a = e.visibleArea, o = e.sizeRestrictions, r = e.positionRestrictions, l = e.imageSize, s = e.previousImageSize, u = e.angle, m = ie({}, i), d = ie({}, a), c = St(Le(ie({ left: 0, top: 0 }, s)), u);
1277
- return (m = ie(ie({}, ht({ sizeRestrictions: o, aspectRatio: t, width: m.width, height: m.height })), St(Le(m), u))).left -= c.left - l.width / 2 + m.width / 2, m.top -= c.top - l.height / 2 + m.height / 2, d = Xe(d, On(d, n({ visibleArea: d, type: "resize" }))), { coordinates: m = xe(m, r), visibleArea: d = xe(d = We(d, Gt(Le(m), Le(i))), n({ visibleArea: d, type: "move" })) };
1276
+ var t = e.aspectRatio, n = e.getAreaRestrictions, i = e.coordinates, a = e.visibleArea, o = e.sizeRestrictions, r = e.positionRestrictions, l = e.imageSize, s = e.previousImageSize, u = e.angle, m = ie({}, i), d = ie({}, a), c = kt(Le(ie({ left: 0, top: 0 }, s)), u);
1277
+ return (m = ie(ie({}, ht({ sizeRestrictions: o, aspectRatio: t, width: m.width, height: m.height })), kt(Le(m), u))).left -= c.left - l.width / 2 + m.width / 2, m.top -= c.top - l.height / 2 + m.height / 2, d = Xe(d, On(d, n({ visibleArea: d, type: "resize" }))), { coordinates: m = xe(m, r), visibleArea: d = xe(d = We(d, Gt(Le(m), Le(i))), n({ visibleArea: d, type: "move" })) };
1278
1278
  }
1279
1279
  function es(e) {
1280
1280
  var t = e.flip, n = e.previousFlip, i = e.rotate, a = e.getAreaRestrictions, o = e.coordinates, r = e.visibleArea, l = e.imageSize, s = ie({}, o), u = ie({}, r), m = n.horizontal !== t.horizontal, d = n.vertical !== t.vertical;
1281
1281
  if (m || d) {
1282
- var c = St({ left: l.width / 2, top: l.height / 2 }, -i), p = St(Le(s), -i), E = St({ left: m ? c.left - (p.left - c.left) : p.left, top: d ? c.top - (p.top - c.top) : p.top }, i);
1283
- s = We(s, Gt(E, Le(s))), p = St(Le(u), -i), u = xe(u = We(u, Gt(E = St({ left: m ? c.left - (p.left - c.left) : p.left, top: d ? c.top - (p.top - c.top) : p.top }, i), Le(u))), a({ visibleArea: u, type: "move" }));
1282
+ var c = kt({ left: l.width / 2, top: l.height / 2 }, -i), p = kt(Le(s), -i), E = kt({ left: m ? c.left - (p.left - c.left) : p.left, top: d ? c.top - (p.top - c.top) : p.top }, i);
1283
+ s = We(s, Gt(E, Le(s))), p = kt(Le(u), -i), u = xe(u = We(u, Gt(E = kt({ left: m ? c.left - (p.left - c.left) : p.left, top: d ? c.top - (p.top - c.top) : p.top }, i), Le(u))), a({ visibleArea: u, type: "move" }));
1284
1284
  }
1285
1285
  return { coordinates: s, visibleArea: u };
1286
1286
  }
@@ -1335,7 +1335,7 @@ var ts = Qe("vue-simple-handler"), ns = Qe("vue-simple-handler-wrapper"), pi = {
1335
1335
  pi.render = function(e, t, n, i, a, o) {
1336
1336
  var r = H("HandlerWrapper");
1337
1337
  return U(), Z(r, { class: o.classes.wrapper, "vertical-position": n.verticalPosition, "horizontal-position": n.horizontalPosition, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: G(function() {
1338
- return [A("div", { class: o.classes.default }, null, 2)];
1338
+ return [R("div", { class: o.classes.default }, null, 2)];
1339
1339
  }), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
1340
1340
  };
1341
1341
  var is = Qe("vue-simple-line"), os = Qe("vue-simple-line-wrapper"), fi = { name: "SimpleLine", components: { LineWrapper: Po }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
@@ -1354,7 +1354,7 @@ var is = Qe("vue-simple-line"), os = Qe("vue-simple-line-wrapper"), fi = { name:
1354
1354
  fi.render = function(e, t, n, i, a, o) {
1355
1355
  var r = H("LineWrapper");
1356
1356
  return U(), Z(r, { class: o.classes.wrapper, position: n.position, disabled: n.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: G(function() {
1357
- return [A("div", { class: o.classes.root }, null, 2)];
1357
+ return [R("div", { class: o.classes.root }, null, 2)];
1358
1358
  }), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
1359
1359
  };
1360
1360
  var xn = Qe("vue-bounding-box"), as = ["east", "west", null], rs = ["south", "north", null], xo = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
@@ -1419,7 +1419,7 @@ var xn = Qe("vue-bounding-box"), as = ["east", "west", null], rs = ["south", "no
1419
1419
  t === "west" ? l.left -= o : t === "east" && (l.right += o), n === "north" ? l.top -= r : n === "south" && (l.bottom += r), !n && t ? i = "width" : n && !t && (i = "height"), this.resizable && this.$emit("resize", new Lr(l, { allowedDirections: { left: t === "west" || !t, right: t === "east" || !t, bottom: n === "south" || !n, top: n === "north" || !n }, preserveAspectRatio: e.nativeEvent && e.nativeEvent.shiftKey, respectDirection: i }));
1420
1420
  } }, emits: ["resize", "resize-end"] };
1421
1421
  xo.render = function(e, t, n, i, a, o) {
1422
- return U(), Z("div", { ref: "box", class: o.classes.root, style: o.style }, [Re(e.$slots, "default"), A("div", null, [(U(!0), Z(Ue, null, at(o.lineNodes, function(r) {
1422
+ return U(), Z("div", { ref: "box", class: o.classes.root, style: o.style }, [Ae(e.$slots, "default"), R("div", null, [(U(!0), Z(Ue, null, at(o.lineNodes, function(r) {
1423
1423
  return U(), Z(wn(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) {
1424
1424
  return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
1425
1425
  }, onDragEnd: t[1] || (t[1] = function(l) {
@@ -1476,7 +1476,7 @@ Uo.render = function(e, t, n, i, a, o) {
1476
1476
  return o.onTouchStart && o.onTouchStart.apply(o, arguments);
1477
1477
  }), onMousedown: t[2] || (t[2] = function() {
1478
1478
  return o.onMouseDown && o.onMouseDown.apply(o, arguments);
1479
- }) }, [Re(e.$slots, "default")], 544);
1479
+ }) }, [Ae(e.$slots, "default")], 544);
1480
1480
  };
1481
1481
  function Un(e) {
1482
1482
  var t, n;
@@ -1622,7 +1622,7 @@ zo.render = function(e, t, n, i, a, o) {
1622
1622
  return o.onMouseDown && o.onMouseDown.apply(o, arguments);
1623
1623
  }), onWheel: t[3] || (t[3] = function() {
1624
1624
  return o.onWheel && o.onWheel.apply(o, arguments);
1625
- }) }, [Re(e.$slots, "default")], 544);
1625
+ }) }, [Ae(e.$slots, "default")], 544);
1626
1626
  };
1627
1627
  var Zn = { components: { TransformableImage: zo }, 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"] };
1628
1628
  Zn.render = function(e, t, n, i, a, o) {
@@ -1632,7 +1632,7 @@ Zn.render = function(e, t, n, i, a, o) {
1632
1632
  }), onResize: t[2] || (t[2] = function(l) {
1633
1633
  return e.$emit("resize", l);
1634
1634
  }) }, { default: G(function() {
1635
- return [Re(e.$slots, "default")];
1635
+ return [Ae(e.$slots, "default")];
1636
1636
  }), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
1637
1637
  };
1638
1638
  var fn = Qe("vue-preview"), $o = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
@@ -1679,7 +1679,7 @@ var fn = Qe("vue-preview"), $o = { props: { coordinates: { type: Object }, trans
1679
1679
  e && e.complete && this.refreshImage(), this.refresh();
1680
1680
  } } };
1681
1681
  $o.render = function(e, t, n, i, a, o) {
1682
- return U(), Z("div", { ref: "root", class: o.classes.root, style: o.style }, [A("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [Xt(A("img", { ref: "image", src: n.image && n.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[kn, n.image && n.image.src]])], 6)], 6);
1682
+ return U(), Z("div", { ref: "root", class: o.classes.root, style: o.style }, [R("div", { ref: "wrapper", class: o.classes.wrapper, style: o.wrapperStyle }, [Xt(R("img", { ref: "image", src: n.image && n.image.src, class: o.classes.image, style: o.imageStyle }, null, 14, ["src"]), [[Sn, n.image && n.image.src]])], 6)], 6);
1683
1683
  };
1684
1684
  var Bo = { components: { Preview: $o }, inheritAttrs: !1 };
1685
1685
  Bo.render = function(e, t, n, i, a, o) {
@@ -1718,9 +1718,9 @@ var Vn = Qe("vue-rectangle-stencil"), Go = { name: "RectangleStencil", component
1718
1718
  } }, emits: ["resize", "resize-end", "move", "move-end"] };
1719
1719
  Go.render = function(e, t, n, i, a, o) {
1720
1720
  var r = H("stencil-preview"), l = H("draggable-area"), s = H("bounding-box");
1721
- return U(), Z("div", { class: o.classes.stencil, style: o.style }, [A(s, { width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, transitions: n.transitions, class: o.classes.boundingBox, handlers: n.handlers, "handlers-component": n.handlersComponent, "handlers-classes": n.handlersClasses, "handlers-wrappers-classes": n.handlersWrappersClasses, lines: n.lines, "lines-component": n.linesComponent, "lines-classes": n.linesClasses, "lines-wrappers-classes": n.linesWrappersClasses, resizable: n.resizable, onResize: o.onResize, onResizeEnd: o.onResizeEnd }, { default: G(function() {
1722
- return [A(l, { movable: n.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: G(function() {
1723
- return [A(r, { image: n.image, coordinates: n.coordinates, width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, class: o.classes.preview, transitions: n.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
1721
+ return U(), Z("div", { class: o.classes.stencil, style: o.style }, [R(s, { width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, transitions: n.transitions, class: o.classes.boundingBox, handlers: n.handlers, "handlers-component": n.handlersComponent, "handlers-classes": n.handlersClasses, "handlers-wrappers-classes": n.handlersWrappersClasses, lines: n.lines, "lines-component": n.linesComponent, "lines-classes": n.linesClasses, "lines-wrappers-classes": n.linesWrappersClasses, resizable: n.resizable, onResize: o.onResize, onResizeEnd: o.onResizeEnd }, { default: G(function() {
1722
+ return [R(l, { movable: n.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: G(function() {
1723
+ return [R(r, { image: n.image, coordinates: n.coordinates, width: n.stencilCoordinates.width, height: n.stencilCoordinates.height, class: o.classes.preview, transitions: n.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
1724
1724
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
1725
1725
  }), _: 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);
1726
1726
  };
@@ -1736,8 +1736,8 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
1736
1736
  return !(typeof e == "string" && e !== "fill" && e !== "fit");
1737
1737
  } }, priority: { type: String, default: "coordinates" }, stencilSize: { type: [Object, Function] }, resizeImage: { type: [Boolean, Object], default: !0 }, moveImage: { type: [Boolean, Object], default: !0 }, autoZoomAlgorithm: { type: Function }, resizeAlgorithm: { type: Function, default: function(e) {
1738
1738
  var t = e.event, n = e.coordinates, i = e.aspectRatio, a = e.positionRestrictions, o = e.sizeRestrictions, r = ie(ie({}, n), { right: n.left + n.width, bottom: n.top + n.height }), l = t.params || {}, s = ie({}, t.directions), u = l.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
1739
- o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), it.forEach(function(R) {
1740
- u[R] || (s[R] = 0);
1739
+ o.widthFrozen && (s.left = 0, s.right = 0), o.heightFrozen && (s.top = 0, s.bottom = 0), it.forEach(function(A) {
1740
+ u[A] || (s[A] = 0);
1741
1741
  });
1742
1742
  var m = nt(r, s = Li({ coordinates: r, directions: s, sizeRestrictions: o, positionRestrictions: a })).width, d = nt(r, s).height, c = l.preserveRatio ? me(r) : Ln(m / d, i);
1743
1743
  if (c) {
@@ -1751,14 +1751,14 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
1751
1751
  } else if (p === "height") {
1752
1752
  var g = r.width - d * c;
1753
1753
  if (u.left && u.right) {
1754
- var v = s.left, S = s.right;
1755
- s.left = -pn(g, v, S), s.right = -pn(g, S, v);
1754
+ var v = s.left, k = s.right;
1755
+ s.left = -pn(g, v, k), s.right = -pn(g, k, v);
1756
1756
  } else u.left ? s.left = -g : u.right ? s.right = -g : u.top ? s.top = 0 : u.bottom && (s.bottom = 0);
1757
1757
  }
1758
1758
  s = Li({ directions: s, coordinates: r, sizeRestrictions: o, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
1759
1759
  }
1760
- return m = nt(r, s).width, d = nt(r, s).height, (c = l.preserveRatio ? me(r) : Ln(m / d, i)) && Math.abs(c - m / d) > 1e-3 && it.forEach(function(R) {
1761
- u[R] || (s[R] = 0);
1760
+ return m = nt(r, s).width, d = nt(r, s).height, (c = l.preserveRatio ? me(r) : Ln(m / d, i)) && Math.abs(c - m / d) > 1e-3 && it.forEach(function(A) {
1761
+ u[A] || (s[A] = 0);
1762
1762
  }), Jn({ event: new di({ left: -s.left, top: -s.top }), coordinates: { width: n.width + s.right + s.left, height: n.height + s.top + s.bottom, left: n.left, top: n.top }, positionRestrictions: a });
1763
1763
  } }, moveAlgorithm: { type: Function, default: Jn }, initStretcher: { type: Function, default: function(e) {
1764
1764
  var t = e.stretcher, n = e.imageSize, i = me(n);
@@ -1769,7 +1769,7 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
1769
1769
  } }, fitVisibleArea: { type: Function, default: function(e) {
1770
1770
  var t = e.visibleArea, n = e.boundaries, i = e.getAreaRestrictions, a = e.coordinates, o = ie({}, t);
1771
1771
  o.height = o.width / me(n), o.top += (t.height - o.height) / 2, (a.height - o.height > 0 || a.width - o.width > 0) && (o = Xe(o, Math.max(a.height / o.height, a.width / o.width)));
1772
- var r = An(Ht(a, rt(o = Xe(o, On(o, i({ visibleArea: o, type: "resize" }))))));
1772
+ var r = Rn(Ht(a, rt(o = Xe(o, On(o, i({ visibleArea: o, type: "resize" }))))));
1773
1773
  return o.width < a.width && (r.left = 0), o.height < a.height && (r.top = 0), o = xe(o = We(o, r), i({ visibleArea: o, type: "move" }));
1774
1774
  } }, areaRestrictionsAlgorithm: { type: Function, default: function(e) {
1775
1775
  var t = e.visibleArea, n = e.boundaries, i = e.imageSize, a = e.imageRestriction, o = e.type, r = {};
@@ -1932,7 +1932,7 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
1932
1932
  var e = this.$refs.canvas, t = this.$refs.image, n = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(l, s, u) {
1933
1933
  var m = u.rotate, d = u.flip, c = { width: s.naturalWidth, height: s.naturalHeight }, p = Fo(c, m), E = l.getContext("2d");
1934
1934
  l.height = p.height, l.width = p.width, E.save();
1935
- var _ = St(Le(ie({ left: 0, top: 0 }, c)), m);
1935
+ var _ = kt(Le(ie({ left: 0, top: 0 }, c)), m);
1936
1936
  return E.translate(-(_.left - p.width / 2), -(_.top - p.height / 2)), E.rotate(m * Math.PI / 180), E.translate(d.horizontal ? c.width : 0, d.vertical ? c.height : 0), E.scale(d.horizontal ? -1 : 1, d.vertical ? -1 : 1), E.drawImage(s, 0, 0, c.width, c.height), E.restore(), l;
1937
1937
  }(this.$refs.sourceCanvas, t, this.imageTransforms) : t, i = de({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: !0, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), a = function(l) {
1938
1938
  return l.find(function(s) {
@@ -2151,9 +2151,9 @@ var cs = ["transitions"], dt = Qe("vue-advanced-cropper"), Wo = { name: "Cropper
2151
2151
  }
2152
2152
  } }, emits: ["change", "error", "ready"] }, ds = { key: 0, ref: "canvas", style: { display: "none" } }, ms = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
2153
2153
  Wo.render = function(e, t, n, i, a, o) {
2154
- return U(), Z("div", { ref: "cropper", class: o.classes.cropper }, [A("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), A("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(U(), Z(wn(n.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: G(function() {
2155
- return [A("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), A("div", { class: o.classes.imageWrapper }, [A("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: t[1] || (t[1] = Cn(function() {
2156
- }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), A("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Xt((U(), Z(wn(n.stencilComponent), po({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, n.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[kn, a.imageLoaded]]), n.canvas ? (U(), Z("canvas", ds, null, 512)) : se("", !0), n.canvas ? (U(), Z("canvas", ms, null, 512)) : se("", !0)];
2154
+ return U(), Z("div", { ref: "cropper", class: o.classes.cropper }, [R("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), R("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(U(), Z(wn(n.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: G(function() {
2155
+ return [R("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), R("div", { class: o.classes.imageWrapper }, [R("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: t[1] || (t[1] = Cn(function() {
2156
+ }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), R("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), Xt((U(), Z(wn(n.stencilComponent), po({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, n.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[Sn, a.imageLoaded]]), n.canvas ? (U(), Z("canvas", ds, null, 512)) : se("", !0), n.canvas ? (U(), Z("canvas", ms, null, 512)) : se("", !0)];
2157
2157
  }), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
2158
2158
  };
2159
2159
  function ps(e, t) {
@@ -2186,14 +2186,14 @@ const hs = {
2186
2186
  class: /* @__PURE__ */ He(["absolute inset-0", "h-full w-full", "rounded-md overflow-hidden"])
2187
2187
  }, ys = {
2188
2188
  class: /* @__PURE__ */ He(["relative z-0", "w-full h-full", "overflow-hidden"])
2189
- }, ws = { class: "fm-typo-en-body-lg-600 pb-4" }, Es = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Ss = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ks = /* @__PURE__ */ ve({
2189
+ }, ws = { class: "fm-typo-en-body-lg-600 pb-4" }, Es = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ks = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ss = /* @__PURE__ */ ve({
2190
2190
  __name: "ImageDropField",
2191
2191
  props: {
2192
2192
  modelValue: {}
2193
2193
  },
2194
2194
  emits: ["update:model-value", "reset:model-value"],
2195
2195
  setup(e, { emit: t }) {
2196
- const n = e, { t: i } = Se(), a = t, o = z(() => n.modelValue ? URL.createObjectURL(n.modelValue) : ""), r = te(), l = te(!1);
2196
+ const n = e, { t: i } = ke(), a = t, o = z(() => n.modelValue ? URL.createObjectURL(n.modelValue) : ""), r = te(), l = te(!1);
2197
2197
  async function s([c]) {
2198
2198
  if (!c) return;
2199
2199
  l.value = !0;
@@ -2229,7 +2229,7 @@ const hs = {
2229
2229
  B("div", _s, [
2230
2230
  B("div", bs, [
2231
2231
  B("div", ys, [
2232
- A(b(Wo), {
2232
+ R(b(Wo), {
2233
2233
  class: "cropper h-[150px] w-[200px]",
2234
2234
  src: r.value || o.value,
2235
2235
  "stencil-props": {
@@ -2254,7 +2254,7 @@ const hs = {
2254
2254
  type: "button",
2255
2255
  onClick: d
2256
2256
  }, [
2257
- A(E, { name: "close" })
2257
+ R(E, { name: "close" })
2258
2258
  ])
2259
2259
  ])
2260
2260
  ])
@@ -2271,7 +2271,7 @@ const hs = {
2271
2271
  ])
2272
2272
  ]),
2273
2273
  "accept-text": G(() => [
2274
- B("p", Ss, ye(b(i)("menu.common.file.accepts")), 1)
2274
+ B("p", ks, ye(b(i)("menu.common.file.accepts")), 1)
2275
2275
  ]),
2276
2276
  _: 1
2277
2277
  }));
@@ -2319,7 +2319,7 @@ const hs = {
2319
2319
  },
2320
2320
  emits: ["update:model-value"],
2321
2321
  setup(e, { emit: t }) {
2322
- const n = e, { t: i } = Se(), a = t, o = z(() => ({
2322
+ const n = e, { t: i } = ke(), a = t, o = z(() => ({
2323
2323
  ALL: {
2324
2324
  label: i("menu.order.from.options.all"),
2325
2325
  value: ee.F_ORDER_FROM.enum.ALL
@@ -2356,7 +2356,7 @@ const hs = {
2356
2356
  return (u, m) => {
2357
2357
  const d = H("fm-select");
2358
2358
  return U(), re("div", null, [
2359
- A(d, {
2359
+ R(d, {
2360
2360
  disabled: e.disable,
2361
2361
  items: r.value,
2362
2362
  label: e.label ?? b(i)("menu.common.labels.order_from"),
@@ -2375,7 +2375,7 @@ const hs = {
2375
2375
  height: "24",
2376
2376
  fill: "none"
2377
2377
  };
2378
- function Rs(e, t) {
2378
+ function As(e, t) {
2379
2379
  return U(), re("svg", Cs, t[0] || (t[0] = [
2380
2380
  B("path", {
2381
2381
  fill: "#1C1C1E",
@@ -2390,7 +2390,7 @@ function Rs(e, t) {
2390
2390
  }, null, -1)
2391
2391
  ]));
2392
2392
  }
2393
- const As = { render: Rs }, Os = {
2393
+ const Rs = { render: As }, Os = {
2394
2394
  xmlns: "http://www.w3.org/2000/svg",
2395
2395
  width: "24",
2396
2396
  height: "24",
@@ -2424,7 +2424,7 @@ const Ts = { render: Is }, Ho = /* @__PURE__ */ ve({
2424
2424
  onClick: n[0] || (n[0] = //@ts-ignore
2425
2425
  (...a) => t.onClick && t.onClick(...a))
2426
2426
  }, [
2427
- b(Ge).isDialogOpened.value ? (U(), Z(b(As), { key: 1 })) : (U(), Z(b(Ts), { key: 0 }))
2427
+ b(Ge).isDialogOpened.value ? (U(), Z(b(Rs), { key: 1 })) : (U(), Z(b(Ts), { key: 0 }))
2428
2428
  ], 2)) : se("", !0);
2429
2429
  };
2430
2430
  }
@@ -2506,10 +2506,10 @@ function Hs(e) {
2506
2506
  function v() {
2507
2507
  return o = 0, m(n) && (i++, a = 0), r(n) && n++, n++, a++, t[n];
2508
2508
  }
2509
- function S() {
2509
+ function k() {
2510
2510
  return r(n + o) && o++, o++, t[n + o];
2511
2511
  }
2512
- function R() {
2512
+ function A() {
2513
2513
  n = 0, i = 1, a = 1, o = 0;
2514
2514
  }
2515
2515
  function M(w = 0) {
@@ -2530,8 +2530,8 @@ function Hs(e) {
2530
2530
  currentChar: y,
2531
2531
  currentPeek: g,
2532
2532
  next: v,
2533
- peek: S,
2534
- reset: R,
2533
+ peek: k,
2534
+ reset: A,
2535
2535
  resetPeek: M,
2536
2536
  skipToPeek: O
2537
2537
  };
@@ -2598,7 +2598,7 @@ function Ys(e, t = {}) {
2598
2598
  const h = f.charCodeAt(0);
2599
2599
  return h >= 48 && h <= 57;
2600
2600
  }
2601
- function S(f, h) {
2601
+ function k(f, h) {
2602
2602
  const { currentType: L } = h;
2603
2603
  if (L !== 2)
2604
2604
  return !1;
@@ -2606,7 +2606,7 @@ function Ys(e, t = {}) {
2606
2606
  const Y = g(f.currentPeek());
2607
2607
  return f.resetPeek(), Y;
2608
2608
  }
2609
- function R(f, h) {
2609
+ function A(f, h) {
2610
2610
  const { currentType: L } = h;
2611
2611
  if (L !== 2)
2612
2612
  return !1;
@@ -2646,7 +2646,7 @@ function Ys(e, t = {}) {
2646
2646
  const Y = f.currentPeek() === ":";
2647
2647
  return f.resetPeek(), Y;
2648
2648
  }
2649
- function k(f, h) {
2649
+ function S(f, h) {
2650
2650
  const { currentType: L } = h;
2651
2651
  if (L !== 9)
2652
2652
  return !1;
@@ -2708,7 +2708,7 @@ function Ys(e, t = {}) {
2708
2708
  h >= 65 && h <= 70 || // A-F
2709
2709
  h >= 97 && h <= 102;
2710
2710
  }
2711
- function Ae(f) {
2711
+ function Re(f) {
2712
2712
  return P(f, ce);
2713
2713
  }
2714
2714
  function $(f) {
@@ -2766,18 +2766,18 @@ function Ys(e, t = {}) {
2766
2766
  case "'":
2767
2767
  return f.next(), `\\${h}`;
2768
2768
  case "u":
2769
- return ke(f, h, 4);
2769
+ return Se(f, h, 4);
2770
2770
  case "U":
2771
- return ke(f, h, 6);
2771
+ return Se(f, h, 6);
2772
2772
  default:
2773
2773
  return d(_e.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, h), "";
2774
2774
  }
2775
2775
  }
2776
- function ke(f, h, L) {
2776
+ function Se(f, h, L) {
2777
2777
  E(f, h);
2778
2778
  let Y = "";
2779
2779
  for (let X = 0; X < L; X++) {
2780
- const ue = Ae(f);
2780
+ const ue = Re(f);
2781
2781
  if (!ue) {
2782
2782
  d(_e.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${h}${Y}${f.currentChar()}`);
2783
2783
  break;
@@ -2843,9 +2843,9 @@ function Ys(e, t = {}) {
2843
2843
  return h.braceNest > 0 && d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), L = c(h, 1, yt(f)), h.braceNest = 0, h.inLinked = !1, L;
2844
2844
  if (h.braceNest > 0 && (h.currentType === 4 || h.currentType === 5 || h.currentType === 6))
2845
2845
  return d(_e.UNTERMINATED_CLOSING_BRACE, o(), 0), h.braceNest = 0, wt(f, h);
2846
- if (X = S(f, h))
2846
+ if (X = k(f, h))
2847
2847
  return L = c(h, 4, q(f)), y(f), L;
2848
- if (ue = R(f, h))
2848
+ if (ue = A(f, h))
2849
2849
  return L = c(h, 5, J(f)), y(f), L;
2850
2850
  if (F = M(f, h))
2851
2851
  return L = c(h, 6, ae(f)), y(f), L;
@@ -2883,7 +2883,7 @@ function Ys(e, t = {}) {
2883
2883
  /* TokenChars.LinkedDelimiter */
2884
2884
  );
2885
2885
  default:
2886
- return I(f) ? (Y = c(h, 1, yt(f)), h.braceNest = 0, h.inLinked = !1, Y) : O(f, h) || x(f, h) ? (y(f), ct(f, h)) : w(f, h) ? (y(f), c(h, 11, Lt(f))) : k(f, h) ? (y(f), X === "{" ? ut(f, h) || Y : c(h, 10, qt(f))) : (L === 7 && d(_e.INVALID_LINKED_FORMAT, o(), 0), h.braceNest = 0, h.inLinked = !1, wt(f, h));
2886
+ return I(f) ? (Y = c(h, 1, yt(f)), h.braceNest = 0, h.inLinked = !1, Y) : O(f, h) || x(f, h) ? (y(f), ct(f, h)) : w(f, h) ? (y(f), c(h, 11, Lt(f))) : S(f, h) ? (y(f), X === "{" ? ut(f, h) || Y : c(h, 10, qt(f))) : (L === 7 && d(_e.INVALID_LINKED_FORMAT, o(), 0), h.braceNest = 0, h.inLinked = !1, wt(f, h));
2887
2887
  }
2888
2888
  }
2889
2889
  function wt(f, h) {
@@ -2948,103 +2948,103 @@ function Js(e, t, n) {
2948
2948
  }
2949
2949
  function Zs(e = {}) {
2950
2950
  const t = e.location !== !1, { onError: n } = e;
2951
- function i(g, v, S, R, ...M) {
2951
+ function i(g, v, k, A, ...M) {
2952
2952
  const O = g.currentPosition();
2953
- if (O.offset += R, O.column += R, n) {
2954
- const w = t ? Qn(S, O) : null, x = Mn(v, w, {
2953
+ if (O.offset += A, O.column += A, n) {
2954
+ const w = t ? Qn(k, O) : null, x = Mn(v, w, {
2955
2955
  domain: Xs,
2956
2956
  args: M
2957
2957
  });
2958
2958
  n(x);
2959
2959
  }
2960
2960
  }
2961
- function a(g, v, S) {
2962
- const R = { type: g };
2963
- return t && (R.start = v, R.end = v, R.loc = { start: S, end: S }), R;
2961
+ function a(g, v, k) {
2962
+ const A = { type: g };
2963
+ return t && (A.start = v, A.end = v, A.loc = { start: k, end: k }), A;
2964
2964
  }
2965
- function o(g, v, S, R) {
2966
- t && (g.end = v, g.loc && (g.loc.end = S));
2965
+ function o(g, v, k, A) {
2966
+ t && (g.end = v, g.loc && (g.loc.end = k));
2967
2967
  }
2968
2968
  function r(g, v) {
2969
- const S = g.context(), R = a(3, S.offset, S.startLoc);
2970
- return R.value = v, o(R, g.currentOffset(), g.currentPosition()), R;
2969
+ const k = g.context(), A = a(3, k.offset, k.startLoc);
2970
+ return A.value = v, o(A, g.currentOffset(), g.currentPosition()), A;
2971
2971
  }
2972
2972
  function l(g, v) {
2973
- const S = g.context(), { lastOffset: R, lastStartLoc: M } = S, O = a(5, R, M);
2973
+ const k = g.context(), { lastOffset: A, lastStartLoc: M } = k, O = a(5, A, M);
2974
2974
  return O.index = parseInt(v, 10), g.nextToken(), o(O, g.currentOffset(), g.currentPosition()), O;
2975
2975
  }
2976
2976
  function s(g, v) {
2977
- const S = g.context(), { lastOffset: R, lastStartLoc: M } = S, O = a(4, R, M);
2977
+ const k = g.context(), { lastOffset: A, lastStartLoc: M } = k, O = a(4, A, M);
2978
2978
  return O.key = v, g.nextToken(), o(O, g.currentOffset(), g.currentPosition()), O;
2979
2979
  }
2980
2980
  function u(g, v) {
2981
- const S = g.context(), { lastOffset: R, lastStartLoc: M } = S, O = a(9, R, M);
2981
+ const k = g.context(), { lastOffset: A, lastStartLoc: M } = k, O = a(9, A, M);
2982
2982
  return O.value = v.replace(qs, Js), g.nextToken(), o(O, g.currentOffset(), g.currentPosition()), O;
2983
2983
  }
2984
2984
  function m(g) {
2985
- const v = g.nextToken(), S = g.context(), { lastOffset: R, lastStartLoc: M } = S, O = a(8, R, M);
2986
- return v.type !== 11 ? (i(g, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), O.value = "", o(O, R, M), {
2985
+ const v = g.nextToken(), k = g.context(), { lastOffset: A, lastStartLoc: M } = k, O = a(8, A, M);
2986
+ return v.type !== 11 ? (i(g, _e.UNEXPECTED_EMPTY_LINKED_MODIFIER, k.lastStartLoc, 0), O.value = "", o(O, A, M), {
2987
2987
  nextConsumeToken: v,
2988
2988
  node: O
2989
- }) : (v.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, tt(v)), O.value = v.value || "", o(O, g.currentOffset(), g.currentPosition()), {
2989
+ }) : (v.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, k.lastStartLoc, 0, tt(v)), O.value = v.value || "", o(O, g.currentOffset(), g.currentPosition()), {
2990
2990
  node: O
2991
2991
  });
2992
2992
  }
2993
2993
  function d(g, v) {
2994
- const S = g.context(), R = a(7, S.offset, S.startLoc);
2995
- return R.value = v, o(R, g.currentOffset(), g.currentPosition()), R;
2994
+ const k = g.context(), A = a(7, k.offset, k.startLoc);
2995
+ return A.value = v, o(A, g.currentOffset(), g.currentPosition()), A;
2996
2996
  }
2997
2997
  function c(g) {
2998
- const v = g.context(), S = a(6, v.offset, v.startLoc);
2999
- let R = g.nextToken();
3000
- if (R.type === 8) {
2998
+ const v = g.context(), k = a(6, v.offset, v.startLoc);
2999
+ let A = g.nextToken();
3000
+ if (A.type === 8) {
3001
3001
  const M = m(g);
3002
- S.modifier = M.node, R = M.nextConsumeToken || g.nextToken();
3002
+ k.modifier = M.node, A = M.nextConsumeToken || g.nextToken();
3003
3003
  }
3004
- switch (R.type !== 9 && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), R = g.nextToken(), R.type === 2 && (R = g.nextToken()), R.type) {
3004
+ switch (A.type !== 9 && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)), A = g.nextToken(), A.type === 2 && (A = g.nextToken()), A.type) {
3005
3005
  case 10:
3006
- R.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), S.key = d(g, R.value || "");
3006
+ A.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)), k.key = d(g, A.value || "");
3007
3007
  break;
3008
3008
  case 4:
3009
- R.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), S.key = s(g, R.value || "");
3009
+ A.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)), k.key = s(g, A.value || "");
3010
3010
  break;
3011
3011
  case 5:
3012
- R.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), S.key = l(g, R.value || "");
3012
+ A.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)), k.key = l(g, A.value || "");
3013
3013
  break;
3014
3014
  case 6:
3015
- R.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(R)), S.key = u(g, R.value || "");
3015
+ A.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(A)), k.key = u(g, A.value || "");
3016
3016
  break;
3017
3017
  default: {
3018
3018
  i(g, _e.UNEXPECTED_EMPTY_LINKED_KEY, v.lastStartLoc, 0);
3019
3019
  const M = g.context(), O = a(7, M.offset, M.startLoc);
3020
- return O.value = "", o(O, M.offset, M.startLoc), S.key = O, o(S, M.offset, M.startLoc), {
3021
- nextConsumeToken: R,
3022
- node: S
3020
+ return O.value = "", o(O, M.offset, M.startLoc), k.key = O, o(k, M.offset, M.startLoc), {
3021
+ nextConsumeToken: A,
3022
+ node: k
3023
3023
  };
3024
3024
  }
3025
3025
  }
3026
- return o(S, g.currentOffset(), g.currentPosition()), {
3027
- node: S
3026
+ return o(k, g.currentOffset(), g.currentPosition()), {
3027
+ node: k
3028
3028
  };
3029
3029
  }
3030
3030
  function p(g) {
3031
- const v = g.context(), S = v.currentType === 1 ? g.currentOffset() : v.offset, R = v.currentType === 1 ? v.endLoc : v.startLoc, M = a(2, S, R);
3031
+ const v = g.context(), k = v.currentType === 1 ? g.currentOffset() : v.offset, A = v.currentType === 1 ? v.endLoc : v.startLoc, M = a(2, k, A);
3032
3032
  M.items = [];
3033
3033
  let O = null;
3034
3034
  do {
3035
- const k = O || g.nextToken();
3036
- switch (O = null, k.type) {
3035
+ const S = O || g.nextToken();
3036
+ switch (O = null, S.type) {
3037
3037
  case 0:
3038
- k.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(k)), M.items.push(r(g, k.value || ""));
3038
+ S.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(S)), M.items.push(r(g, S.value || ""));
3039
3039
  break;
3040
3040
  case 5:
3041
- k.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(k)), M.items.push(l(g, k.value || ""));
3041
+ S.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(S)), M.items.push(l(g, S.value || ""));
3042
3042
  break;
3043
3043
  case 4:
3044
- k.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(k)), M.items.push(s(g, k.value || ""));
3044
+ S.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(S)), M.items.push(s(g, S.value || ""));
3045
3045
  break;
3046
3046
  case 6:
3047
- k.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(k)), M.items.push(u(g, k.value || ""));
3047
+ S.value == null && i(g, _e.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, tt(S)), M.items.push(u(g, S.value || ""));
3048
3048
  break;
3049
3049
  case 7: {
3050
3050
  const I = c(g);
@@ -3056,24 +3056,24 @@ function Zs(e = {}) {
3056
3056
  const w = v.currentType === 1 ? v.lastOffset : g.currentOffset(), x = v.currentType === 1 ? v.lastEndLoc : g.currentPosition();
3057
3057
  return o(M, w, x), M;
3058
3058
  }
3059
- function E(g, v, S, R) {
3059
+ function E(g, v, k, A) {
3060
3060
  const M = g.context();
3061
- let O = R.items.length === 0;
3062
- const w = a(1, v, S);
3063
- w.cases = [], w.cases.push(R);
3061
+ let O = A.items.length === 0;
3062
+ const w = a(1, v, k);
3063
+ w.cases = [], w.cases.push(A);
3064
3064
  do {
3065
3065
  const x = p(g);
3066
3066
  O || (O = x.items.length === 0), w.cases.push(x);
3067
3067
  } while (M.currentType !== 13);
3068
- return O && i(g, _e.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), o(w, g.currentOffset(), g.currentPosition()), w;
3068
+ return O && i(g, _e.MUST_HAVE_MESSAGES_IN_PLURAL, k, 0), o(w, g.currentOffset(), g.currentPosition()), w;
3069
3069
  }
3070
3070
  function _(g) {
3071
- const v = g.context(), { offset: S, startLoc: R } = v, M = p(g);
3072
- return v.currentType === 13 ? M : E(g, S, R, M);
3071
+ const v = g.context(), { offset: k, startLoc: A } = v, M = p(g);
3072
+ return v.currentType === 13 ? M : E(g, k, A, M);
3073
3073
  }
3074
3074
  function y(g) {
3075
- const v = Ys(g, Ne({}, e)), S = v.context(), R = a(0, S.offset, S.startLoc);
3076
- return t && R.loc && (R.loc.source = g), R.body = _(v), e.onCacheKey && (R.cacheKey = e.onCacheKey(g)), S.currentType !== 13 && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, g[S.offset] || ""), o(R, v.currentOffset(), v.currentPosition()), R;
3075
+ const v = Ys(g, Ne({}, e)), k = v.context(), A = a(0, k.offset, k.startLoc);
3076
+ return t && A.loc && (A.loc.source = g), A.body = _(v), e.onCacheKey && (A.cacheKey = e.onCacheKey(g)), k.currentType !== 13 && i(v, _e.UNEXPECTED_LEXICAL_ANALYSIS, k.lastStartLoc, 0, g[k.offset] || ""), o(A, v.currentOffset(), v.currentPosition()), A;
3077
3077
  }
3078
3078
  return { parse: y };
3079
3079
  }
@@ -3433,7 +3433,7 @@ function ei(e, t) {
3433
3433
  throw en(n);
3434
3434
  }
3435
3435
  case 6: {
3436
- const i = t, a = Sl(i), o = Cl(i);
3436
+ const i = t, a = kl(i), o = Cl(i);
3437
3437
  return e.linked(ei(e, o), a ? ei(e, a) : void 0, e.type);
3438
3438
  }
3439
3439
  case 7:
@@ -3456,12 +3456,12 @@ function gn(e, t) {
3456
3456
  throw en(t);
3457
3457
  }
3458
3458
  const El = ["m", "modifier"];
3459
- function Sl(e) {
3459
+ function kl(e) {
3460
3460
  return Ot(e, El);
3461
3461
  }
3462
- const kl = ["k", "key"];
3462
+ const Sl = ["k", "key"];
3463
3463
  function Cl(e) {
3464
- const t = Ot(e, kl);
3464
+ const t = Ot(e, Sl);
3465
3465
  if (t)
3466
3466
  return t;
3467
3467
  throw en(
@@ -3480,12 +3480,12 @@ function Ot(e, t, n) {
3480
3480
  function en(e) {
3481
3481
  return new Error(`unhandled node type: ${e}`);
3482
3482
  }
3483
- const Rl = (e) => e;
3483
+ const Al = (e) => e;
3484
3484
  let vn = be();
3485
3485
  function Kt(e) {
3486
3486
  return fe(e) && bi(e) === 0 && (Je(e, "b") || Je(e, "body"));
3487
3487
  }
3488
- function Al(e, t = {}) {
3488
+ function Rl(e, t = {}) {
3489
3489
  let n = !1;
3490
3490
  const i = t.onError || $s;
3491
3491
  return t.onError = (a) => {
@@ -3496,10 +3496,10 @@ function Al(e, t = {}) {
3496
3496
  function Ol(e, t) {
3497
3497
  if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && Q(e)) {
3498
3498
  Ce(t.warnHtmlMessage) && t.warnHtmlMessage;
3499
- const i = (t.onCacheKey || Rl)(e), a = vn[i];
3499
+ const i = (t.onCacheKey || Al)(e), a = vn[i];
3500
3500
  if (a)
3501
3501
  return a;
3502
- const { ast: o, detectError: r } = Al(e, {
3502
+ const { ast: o, detectError: r } = Rl(e, {
3503
3503
  ...t,
3504
3504
  location: ul.env.NODE_ENV !== "production",
3505
3505
  jit: !0
@@ -3569,7 +3569,7 @@ function Nl(e, t, n) {
3569
3569
  ])];
3570
3570
  }
3571
3571
  function Yo(e, t, n) {
3572
- const i = Q(n) ? n : Sn, a = e;
3572
+ const i = Q(n) ? n : kn, a = e;
3573
3573
  a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
3574
3574
  let o = a.__localeChainCache.get(i);
3575
3575
  if (!o) {
@@ -3894,7 +3894,7 @@ function Wl(e, t) {
3894
3894
  }
3895
3895
  return a;
3896
3896
  }
3897
- const Hl = "10.0.5", Dn = -1, Sn = "en-US", Yi = "", Xi = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
3897
+ const Hl = "10.0.5", Dn = -1, kn = "en-US", Yi = "", Xi = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
3898
3898
  function jl() {
3899
3899
  return {
3900
3900
  upper: (e, t) => t === "text" && Q(e) ? e.toUpperCase() : t === "vnode" && fe(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
@@ -3924,7 +3924,7 @@ const qi = (e) => {
3924
3924
  }, Zl = () => Qo;
3925
3925
  let Ji = 0;
3926
3926
  function Ql(e = {}) {
3927
- const t = Ee(e.onWarn) ? e.onWarn : Us, n = Q(e.version) ? e.version : Hl, i = Q(e.locale) || Ee(e.locale) ? e.locale : Sn, a = Ee(i) ? Sn : i, o = Ie(e.fallbackLocale) || pe(e.fallbackLocale) || Q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, r = pe(e.messages) ? e.messages : Bn(a), l = pe(e.datetimeFormats) ? e.datetimeFormats : Bn(a), s = pe(e.numberFormats) ? e.numberFormats : Bn(a), u = Ne(be(), e.modifiers, jl()), m = e.pluralRules || be(), d = Ee(e.missing) ? e.missing : null, c = Ce(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = Ce(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, _ = !!e.unresolving, y = Ee(e.postTranslation) ? e.postTranslation : null, g = pe(e.processor) ? e.processor : null, v = Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, R = Ee(e.messageCompiler) ? e.messageCompiler : Xo, M = Ee(e.messageResolver) ? e.messageResolver : qo || Gl, O = Ee(e.localeFallbacker) ? e.localeFallbacker : Jo || Nl, w = fe(e.fallbackContext) ? e.fallbackContext : void 0, x = e, k = fe(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), I = fe(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), N = fe(x.__meta) ? x.__meta : {};
3927
+ const t = Ee(e.onWarn) ? e.onWarn : Us, n = Q(e.version) ? e.version : Hl, i = Q(e.locale) || Ee(e.locale) ? e.locale : kn, a = Ee(i) ? kn : i, o = Ie(e.fallbackLocale) || pe(e.fallbackLocale) || Q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, r = pe(e.messages) ? e.messages : Bn(a), l = pe(e.datetimeFormats) ? e.datetimeFormats : Bn(a), s = pe(e.numberFormats) ? e.numberFormats : Bn(a), u = Ne(be(), e.modifiers, jl()), m = e.pluralRules || be(), d = Ee(e.missing) ? e.missing : null, c = Ce(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = Ce(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, _ = !!e.unresolving, y = Ee(e.postTranslation) ? e.postTranslation : null, g = pe(e.processor) ? e.processor : null, v = Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, k = !!e.escapeParameter, A = Ee(e.messageCompiler) ? e.messageCompiler : Xo, M = Ee(e.messageResolver) ? e.messageResolver : qo || Gl, O = Ee(e.localeFallbacker) ? e.localeFallbacker : Jo || Nl, w = fe(e.fallbackContext) ? e.fallbackContext : void 0, x = e, S = fe(x.__datetimeFormatters) ? x.__datetimeFormatters : /* @__PURE__ */ new Map(), I = fe(x.__numberFormatters) ? x.__numberFormatters : /* @__PURE__ */ new Map(), N = fe(x.__meta) ? x.__meta : {};
3928
3928
  Ji++;
3929
3929
  const P = {
3930
3930
  version: n,
@@ -3942,15 +3942,15 @@ function Ql(e = {}) {
3942
3942
  postTranslation: y,
3943
3943
  processor: g,
3944
3944
  warnHtmlMessage: v,
3945
- escapeParameter: S,
3946
- messageCompiler: R,
3945
+ escapeParameter: k,
3946
+ messageCompiler: A,
3947
3947
  messageResolver: M,
3948
3948
  localeFallbacker: O,
3949
3949
  fallbackContext: w,
3950
3950
  onWarn: t,
3951
3951
  __meta: N
3952
3952
  };
3953
- return P.datetimeFormats = l, P.numberFormats = s, P.__datetimeFormatters = k, P.__numberFormatters = I, __INTLIFY_PROD_DEVTOOLS__ && Tl(P, n, N), P;
3953
+ return P.datetimeFormats = l, P.numberFormats = s, P.__datetimeFormatters = S, P.__numberFormatters = I, __INTLIFY_PROD_DEVTOOLS__ && Tl(P, n, N), P;
3954
3954
  }
3955
3955
  const Bn = (e) => ({ [e]: be() });
3956
3956
  function wi(e, t, n, i, a) {
@@ -3989,15 +3989,15 @@ function Zi(e, ...t) {
3989
3989
  if (!Q(s) || s === "")
3990
3990
  return new Intl.DateTimeFormat(E, d).format(u);
3991
3991
  let y = {}, g, v = null;
3992
- const S = "datetime format";
3992
+ const k = "datetime format";
3993
3993
  for (let O = 0; O < _.length && (g = _[O], y = n[g] || {}, v = y[s], !pe(v)); O++)
3994
- wi(e, s, g, c, S);
3994
+ wi(e, s, g, c, k);
3995
3995
  if (!pe(v) || !Q(g))
3996
3996
  return i ? Dn : s;
3997
- let R = `${g}__${s}`;
3998
- Tn(d) || (R = `${R}__${JSON.stringify(d)}`);
3999
- let M = l.get(R);
4000
- return M || (M = new Intl.DateTimeFormat(g, Ne({}, v, d)), l.set(R, M)), p ? M.formatToParts(u) : M.format(u);
3997
+ let A = `${g}__${s}`;
3998
+ Tn(d) || (A = `${A}__${JSON.stringify(d)}`);
3999
+ let M = l.get(A);
4000
+ return M || (M = new Intl.DateTimeFormat(g, Ne({}, v, d)), l.set(A, M)), p ? M.formatToParts(u) : M.format(u);
4001
4001
  }
4002
4002
  const ea = [
4003
4003
  "localeMatcher",
@@ -4066,15 +4066,15 @@ function eo(e, ...t) {
4066
4066
  if (!Q(s) || s === "")
4067
4067
  return new Intl.NumberFormat(E, d).format(u);
4068
4068
  let y = {}, g, v = null;
4069
- const S = "number format";
4069
+ const k = "number format";
4070
4070
  for (let O = 0; O < _.length && (g = _[O], y = n[g] || {}, v = y[s], !pe(v)); O++)
4071
- wi(e, s, g, c, S);
4071
+ wi(e, s, g, c, k);
4072
4072
  if (!pe(v) || !Q(g))
4073
4073
  return i ? Dn : s;
4074
- let R = `${g}__${s}`;
4075
- Tn(d) || (R = `${R}__${JSON.stringify(d)}`);
4076
- let M = l.get(R);
4077
- return M || (M = new Intl.NumberFormat(g, Ne({}, v, d)), l.set(R, M)), p ? M.formatToParts(u) : M.format(u);
4074
+ let A = `${g}__${s}`;
4075
+ Tn(d) || (A = `${A}__${JSON.stringify(d)}`);
4076
+ let M = l.get(A);
4077
+ return M || (M = new Intl.NumberFormat(g, Ne({}, v, d)), l.set(A, M)), p ? M.formatToParts(u) : M.format(u);
4078
4078
  }
4079
4079
  const ta = [
4080
4080
  "localeMatcher",
@@ -4131,17 +4131,17 @@ function uu(e = {}) {
4131
4131
  Pe(e.pluralIndex) && lu(n, s);
4132
4132
  const u = (g) => s[g];
4133
4133
  function m(g, v) {
4134
- const S = Ee(e.messages) ? e.messages(g, !!v) : fe(e.messages) ? e.messages[g] : !1;
4135
- return S || (e.parent ? e.parent.message(g) : iu);
4134
+ const k = Ee(e.messages) ? e.messages(g, !!v) : fe(e.messages) ? e.messages[g] : !1;
4135
+ return k || (e.parent ? e.parent.message(g) : iu);
4136
4136
  }
4137
4137
  const d = (g) => e.modifiers ? e.modifiers[g] : nu, c = pe(e.processor) && Ee(e.processor.normalize) ? e.processor.normalize : au, p = pe(e.processor) && Ee(e.processor.interpolate) ? e.processor.interpolate : ru, E = pe(e.processor) && Q(e.processor.type) ? e.processor.type : ou, y = {
4138
4138
  list: l,
4139
4139
  named: u,
4140
4140
  plural: o,
4141
4141
  linked: (g, ...v) => {
4142
- const [S, R] = v;
4142
+ const [k, A] = v;
4143
4143
  let M = "text", O = "";
4144
- v.length === 1 ? fe(S) ? (O = S.modifier || O, M = S.type || M) : Q(S) && (O = S || O) : v.length === 2 && (Q(S) && (O = S || O), Q(R) && (M = R || M));
4144
+ v.length === 1 ? fe(k) ? (O = k.modifier || O, M = k.type || M) : Q(k) && (O = k || O) : v.length === 2 && (Q(k) && (O = k || O), Q(A) && (M = A || M));
4145
4145
  const w = m(g, !0)(y), x = (
4146
4146
  // The message in vnode resolved with linked are returned as an array by processor.nomalize
4147
4147
  M === "vnode" && Ie(w) && O ? w[0] : w
@@ -4160,26 +4160,26 @@ const io = () => "", Ke = (e) => Ee(e);
4160
4160
  function oo(e, ...t) {
4161
4161
  const { fallbackFormat: n, postTranslation: i, unresolving: a, messageCompiler: o, fallbackLocale: r, messages: l } = e, [s, u] = ii(...t), m = Ce(u.missingWarn) ? u.missingWarn : e.missingWarn, d = Ce(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, c = Ce(u.escapeParameter) ? u.escapeParameter : e.escapeParameter, p = !!u.resolvedMessage, E = Q(u.default) || Ce(u.default) ? Ce(u.default) ? o ? s : () => s : u.default : n ? o ? s : () => s : null, _ = n || E != null && (Q(E) || Ee(E)), y = yi(e, u);
4162
4162
  c && cu(u);
4163
- let [g, v, S] = p ? [
4163
+ let [g, v, k] = p ? [
4164
4164
  s,
4165
4165
  y,
4166
4166
  l[y] || be()
4167
- ] : na(e, s, y, r, d, m), R = g, M = s;
4168
- if (!p && !(Q(R) || Kt(R) || Ke(R)) && _ && (R = E, M = R), !p && (!(Q(R) || Kt(R) || Ke(R)) || !Q(v)))
4167
+ ] : na(e, s, y, r, d, m), A = g, M = s;
4168
+ if (!p && !(Q(A) || Kt(A) || Ke(A)) && _ && (A = E, M = A), !p && (!(Q(A) || Kt(A) || Ke(A)) || !Q(v)))
4169
4169
  return a ? Dn : s;
4170
4170
  let O = !1;
4171
4171
  const w = () => {
4172
4172
  O = !0;
4173
- }, x = Ke(R) ? R : ia(e, s, v, R, M, w);
4173
+ }, x = Ke(A) ? A : ia(e, s, v, A, M, w);
4174
4174
  if (O)
4175
- return R;
4176
- const k = pu(e, v, S, u), I = uu(k), N = du(e, x, I), P = i ? i(N, s) : N;
4175
+ return A;
4176
+ const S = pu(e, v, k, u), I = uu(S), N = du(e, x, I), P = i ? i(N, s) : N;
4177
4177
  if (__INTLIFY_PROD_DEVTOOLS__) {
4178
4178
  const D = {
4179
4179
  timestamp: Date.now(),
4180
- key: Q(s) ? s : Ke(R) ? R.key : "",
4181
- locale: v || (Ke(R) ? R.locale : ""),
4182
- format: Q(R) ? R : Ke(R) ? R.source : "",
4180
+ key: Q(s) ? s : Ke(A) ? A.key : "",
4181
+ locale: v || (Ke(A) ? A.locale : ""),
4182
+ format: Q(A) ? A : Ke(A) ? A.source : "",
4183
4183
  message: P
4184
4184
  };
4185
4185
  D.meta = Ne({}, e.__meta, /* @__PURE__ */ Jl() || {}), Ml(D);
@@ -4274,7 +4274,7 @@ function pu(e, t, n, i) {
4274
4274
  return e.processor && (c.processor = e.processor), i.list && (c.list = i.list), i.named && (c.named = i.named), Pe(i.plural) && (c.pluralIndex = i.plural), c;
4275
4275
  }
4276
4276
  cl();
4277
- var fu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_9683a90f-bedb-456c-b512-2a15aa2b18cd", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_9683a90f-bedb-456c-b512-2a15aa2b18cd", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4.feedmeapi.com", GTM_ID: "GTM-WR8XHXLH", FIREBASE_MESSAGING_SENDER_ID: "128512026847", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "production", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-0.7.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-8.14.3", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-zzez732dna-as.a.run.app", SYSTEMD_EXEC_PID: "1742", npm_package_dependencies__feedmepos_ui_library: "1.7.0", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250728.1.0", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.11/x64", JOURNAL_STREAM: "9:12776", GITHUB_WORKFLOW: "Publish mf-menu prod", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.5/x64", REMY_URL: "https://remy.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "16801258743", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "0ec8c76f7811a39c13f543c2d2a198da555a77b9", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "production", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.2.4", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu-prod.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_219de0ae-6619-457e-8d0f-0fecaf12eab7", INVOCATION_ID: "69148b3818464e788f2635568875eb95", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "65", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-2MP52PC24R", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000010997", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.19", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.18-prod", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "false", FIREBASE_PROJECT_ID: "feedme-253402", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "0ec8c76f7811a39c13f543c2d2a198da555a77b9", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_9683a90f-bedb-456c-b512-2a15aa2b18cd", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "7780463", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_9683a90f-bedb-456c-b512-2a15aa2b18cd", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", npm_package_dependencies__feedmepos_menu: "1.5.26", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_9683a90f-bedb-456c-b512-2a15aa2b18cd", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
4277
+ var fu = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_d1e7a846-9113-46da-a41d-f954bb7e3e7a", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_d1e7a846-9113-46da-a41d-f954bb7e3e7a", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-0.7.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.0.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1751", npm_package_dependencies__feedmepos_ui_library: "1.7.0", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250804.2.0", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.11/x64", JOURNAL_STREAM: "9:13536", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.5/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "16876207365", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "6401f42a9453c84c6ab8c30b187990da799768c8", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.2.4", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_b46b2853-d889-4c47-a42f-44cc92369f19", INVOCATION_ID: "2d547cbd7c3046ed95d1e4f872f7f203", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "389", GITHUB_TRIGGERING_ACTOR: "victorchai", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000011562", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.26", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.19-beta", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "6401f42a9453c84c6ab8c30b187990da799768c8", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_d1e7a846-9113-46da-a41d-f954bb7e3e7a", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "49786844", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_d1e7a846-9113-46da-a41d-f954bb7e3e7a", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", npm_package_dependencies__feedmepos_menu: "1.5.26", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_d1e7a846-9113-46da-a41d-f954bb7e3e7a", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
4278
4278
  const hu = "10.0.5";
4279
4279
  function gu() {
4280
4280
  typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Dt().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Dt().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Dt().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Dt().__INTLIFY_PROD_DEVTOOLS__ = !1);
@@ -4359,7 +4359,7 @@ function _u(e, t, n) {
4359
4359
  }
4360
4360
  }
4361
4361
  function ao(e) {
4362
- return A(ba, null, e, 0);
4362
+ return R(ba, null, e, 0);
4363
4363
  }
4364
4364
  const ro = "__INTLIFY_META__", so = () => [], bu = () => !1;
4365
4365
  let lo = 0;
@@ -4376,12 +4376,12 @@ function wu(e = {}) {
4376
4376
  let r = Ce(e.inheritLocale) ? e.inheritLocale : !0;
4377
4377
  const l = o(
4378
4378
  // prettier-ignore
4379
- t && r ? t.locale.value : Q(e.locale) ? e.locale : Sn
4379
+ t && r ? t.locale.value : Q(e.locale) ? e.locale : kn
4380
4380
  ), s = o(
4381
4381
  // prettier-ignore
4382
4382
  t && r ? t.fallbackLocale.value : Q(e.fallbackLocale) || Ie(e.fallbackLocale) || pe(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
4383
4383
  ), u = o(aa(l.value, e)), m = o(pe(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), d = o(pe(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
4384
- let c = t ? t.missingWarn : Ce(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Ce(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : Ce(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, y = Ee(e.missing) ? e.missing : null, g = Ee(e.missing) ? uo(e.missing) : null, v = Ee(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, R = !!e.escapeParameter;
4384
+ let c = t ? t.missingWarn : Ce(e.missingWarn) || En(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : Ce(e.fallbackWarn) || En(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : Ce(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, y = Ee(e.missing) ? e.missing : null, g = Ee(e.missing) ? uo(e.missing) : null, v = Ee(e.postTranslation) ? e.postTranslation : null, k = t ? t.warnHtmlMessage : Ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter;
4385
4385
  const M = t ? t.modifiers : pe(e.modifiers) ? e.modifiers : {};
4386
4386
  let O = e.pluralRules || t && t.pluralRules, w;
4387
4387
  w = (() => {
@@ -4399,8 +4399,8 @@ function wu(e = {}) {
4399
4399
  fallbackFormat: _,
4400
4400
  unresolving: !0,
4401
4401
  postTranslation: v === null ? void 0 : v,
4402
- warnHtmlMessage: S,
4403
- escapeParameter: R,
4402
+ warnHtmlMessage: k,
4403
+ escapeParameter: A,
4404
4404
  messageResolver: e.messageResolver,
4405
4405
  messageCompiler: e.messageCompiler,
4406
4406
  __meta: { framework: "vue" }
@@ -4409,7 +4409,7 @@ function wu(e = {}) {
4409
4409
  const W = Ql(F);
4410
4410
  return i && qi(W), W;
4411
4411
  })(), Jt(w, l.value, s.value);
4412
- function k() {
4412
+ function S() {
4413
4413
  return [
4414
4414
  l.value,
4415
4415
  s.value,
@@ -4442,7 +4442,7 @@ function wu(e = {}) {
4442
4442
  F !== null && (g = uo(F)), y = F, w.missing = g;
4443
4443
  }
4444
4444
  const ce = (F, W, he, we, et, un) => {
4445
- k();
4445
+ S();
4446
4446
  let Ut;
4447
4447
  try {
4448
4448
  fu.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (w.fallbackContext = t ? Zl() : void 0), Ut = F(w);
@@ -4459,14 +4459,14 @@ function wu(e = {}) {
4459
4459
  throw nn(Yt.UNEXPECTED_RETURN_TYPE);
4460
4460
  }
4461
4461
  };
4462
- function Ae(...F) {
4462
+ function Re(...F) {
4463
4463
  return ce((W) => Reflect.apply(oo, null, [W, ...F]), () => ii(...F), "translate", (W) => Reflect.apply(W.t, W, [...F]), (W) => W, (W) => Q(W));
4464
4464
  }
4465
4465
  function $(...F) {
4466
4466
  const [W, he, we] = F;
4467
4467
  if (we && !fe(we))
4468
4468
  throw nn(Yt.INVALID_ARGUMENT);
4469
- return Ae(W, he, Ne({ resolvedMessage: !0 }, we || {}));
4469
+ return Re(W, he, Ne({ resolvedMessage: !0 }, we || {}));
4470
4470
  }
4471
4471
  function K(...F) {
4472
4472
  return ce((W) => Reflect.apply(Zi, null, [W, ...F]), () => ti(...F), "datetime format", (W) => Reflect.apply(W.d, W, [...F]), () => Yi, (W) => Q(W));
@@ -4494,7 +4494,7 @@ function wu(e = {}) {
4494
4494
  return he;
4495
4495
  }, () => ii(...F), "translate", (W) => W[oi](...F), (W) => [ao(W)], (W) => Ie(W));
4496
4496
  }
4497
- function ke(...F) {
4497
+ function Se(...F) {
4498
4498
  return ce((W) => Reflect.apply(eo, null, [W, ...F]), () => ni(...F), "number format", (W) => W[ri](...F), so, (W) => Q(W) || Ie(W));
4499
4499
  }
4500
4500
  function je(...F) {
@@ -4618,18 +4618,18 @@ function wu(e = {}) {
4618
4618
  _ = F, w.fallbackFormat = _;
4619
4619
  },
4620
4620
  get warnHtmlMessage() {
4621
- return S;
4621
+ return k;
4622
4622
  },
4623
4623
  set warnHtmlMessage(F) {
4624
- S = F, w.warnHtmlMessage = F;
4624
+ k = F, w.warnHtmlMessage = F;
4625
4625
  },
4626
4626
  get escapeParameter() {
4627
- return R;
4627
+ return A;
4628
4628
  },
4629
4629
  set escapeParameter(F) {
4630
- R = F, w.escapeParameter = F;
4630
+ A = F, w.escapeParameter = F;
4631
4631
  },
4632
- t: Ae,
4632
+ t: Re,
4633
4633
  getLocaleMessage: ut,
4634
4634
  setLocaleMessage: ct,
4635
4635
  mergeLocaleMessage: wt,
@@ -4639,7 +4639,7 @@ function wu(e = {}) {
4639
4639
  setMissingHandler: le,
4640
4640
  [vu]: bt
4641
4641
  };
4642
- return ue.datetimeFormats = D, ue.numberFormats = C, ue.rt = $, ue.te = Lt, ue.tm = yt, ue.d = K, ue.n = q, ue.getDateTimeFormat = xt, ue.setDateTimeFormat = f, ue.mergeDateTimeFormat = h, ue.getNumberFormat = L, ue.setNumberFormat = Y, ue.mergeNumberFormat = X, ue[oa] = n, ue[oi] = oe, ue[ai] = je, ue[ri] = ke, ue;
4642
+ return ue.datetimeFormats = D, ue.numberFormats = C, ue.rt = $, ue.te = Lt, ue.tm = yt, ue.d = K, ue.n = q, ue.getDateTimeFormat = xt, ue.setDateTimeFormat = f, ue.mergeDateTimeFormat = h, ue.getNumberFormat = L, ue.setNumberFormat = Y, ue.mergeNumberFormat = X, ue[oa] = n, ue[oi] = oe, ue[ai] = je, ue[ri] = Se, ue;
4643
4643
  }
4644
4644
  const Ei = {
4645
4645
  tag: {
@@ -4682,7 +4682,7 @@ Ne({
4682
4682
  validator: (e) => Pe(e) || !isNaN(e)
4683
4683
  }
4684
4684
  }, Ei);
4685
- function Su(e) {
4685
+ function ku(e) {
4686
4686
  return Ie(e) && !Q(e[0]);
4687
4687
  }
4688
4688
  function la(e, t, n, i) {
@@ -4695,7 +4695,7 @@ function la(e, t, n, i) {
4695
4695
  let u = [r.key];
4696
4696
  Ie(s) ? u = s.map((c, p) => {
4697
4697
  const E = a[c.type], _ = E ? E({ [c.type]: c.value, index: p, parts: s }) : [c.value];
4698
- return Su(_) && (_[0].key = `${c.type}-${p}`), _;
4698
+ return ku(_) && (_[0].key = `${c.type}-${p}`), _;
4699
4699
  }) : Q(s) && (u = [s]);
4700
4700
  const m = Ne(be(), o), d = Q(e.tag) || fe(e.tag) ? e.tag : sa();
4701
4701
  return De(d, m, u);
@@ -4719,14 +4719,14 @@ Ne({
4719
4719
  type: [String, Object]
4720
4720
  }
4721
4721
  }, Ei);
4722
- const ku = /* @__PURE__ */ Ft("global-vue-i18n");
4722
+ const Su = /* @__PURE__ */ Ft("global-vue-i18n");
4723
4723
  function ln(e = {}) {
4724
4724
  const t = an();
4725
4725
  if (t == null)
4726
4726
  throw nn(Yt.MUST_BE_CALL_SETUP_TOP);
4727
4727
  if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
4728
4728
  throw nn(Yt.NOT_INSTALLED);
4729
- const n = Cu(t), i = Au(n), a = ra(t), o = Ru(e, a);
4729
+ const n = Cu(t), i = Ru(n), a = ra(t), o = Au(e, a);
4730
4730
  if (o === "global")
4731
4731
  return _u(i, e, a), i;
4732
4732
  if (o === "parent") {
@@ -4742,15 +4742,15 @@ function ln(e = {}) {
4742
4742
  return l;
4743
4743
  }
4744
4744
  function Cu(e) {
4745
- const t = ga(e.isCE ? ku : e.appContext.app.__VUE_I18N_SYMBOL__);
4745
+ const t = ga(e.isCE ? Su : e.appContext.app.__VUE_I18N_SYMBOL__);
4746
4746
  if (!t)
4747
4747
  throw nn(e.isCE ? Yt.NOT_INSTALLED_WITH_PROVIDE : Yt.UNEXPECTED_ERROR);
4748
4748
  return t;
4749
4749
  }
4750
- function Ru(e, t) {
4750
+ function Au(e, t) {
4751
4751
  return Tn(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
4752
4752
  }
4753
- function Au(e) {
4753
+ function Ru(e) {
4754
4754
  return e.mode === "composition" ? e.global : e.global.__composer;
4755
4755
  }
4756
4756
  function Ou(e, t, n = !1) {
@@ -4808,37 +4808,37 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
4808
4808
  },
4809
4809
  emits: ["update:modelValue"],
4810
4810
  setup(e, { emit: t }) {
4811
- const n = e, i = t, a = st(), o = Ze(), r = kt(o), l = Ct(r), { t: s } = ln(), u = te(null), m = te([]), d = Ga({
4811
+ const n = e, i = t, a = st(), o = Ze(), r = St(o), l = Ct(r), { t: s } = ln(), u = te(null), m = te([]), d = Ga({
4812
4812
  dialog: a,
4813
4813
  menuLoader: l,
4814
4814
  isLocalOnly: n.isLocalOnly
4815
- }), c = (v, S) => {
4816
- v ? m.value = [...m.value, S] : m.value = m.value.filter((R) => R.value !== S.value), i(
4815
+ }), c = (v, k) => {
4816
+ v ? m.value = [...m.value, k] : m.value = m.value.filter((A) => A.value !== k.value), i(
4817
4817
  "update:modelValue",
4818
- m.value.map((R) => R.value)
4818
+ m.value.map((A) => A.value)
4819
4819
  );
4820
4820
  }, p = (v) => {
4821
- m.value = m.value.filter((S, R) => R !== v), i(
4821
+ m.value = m.value.filter((k, A) => A !== v), i(
4822
4822
  "update:modelValue",
4823
- m.value.map((S) => S.value)
4823
+ m.value.map((k) => k.value)
4824
4824
  );
4825
4825
  }, E = () => {
4826
4826
  var v;
4827
4827
  (v = u.value) == null || v.toggleMenu(!1), d.create();
4828
4828
  }, _ = z(() => n.items.reduce(
4829
- (v, S) => (v[S.value] = S, v),
4829
+ (v, k) => (v[k.value] = k, v),
4830
4830
  {}
4831
4831
  )), y = z(() => m.value.length > 0 ? m.value.map((v) => v.label).join("/") : n.placeholder), g = te(!1);
4832
4832
  return Fe(
4833
4833
  () => n.modelValue,
4834
4834
  (v) => {
4835
- v != null && v.length ? m.value = v.map((S) => _.value[S]).filter((S) => !!S) : m.value = [];
4835
+ v != null && v.length ? m.value = v.map((k) => _.value[k]).filter((k) => !!k) : m.value = [];
4836
4836
  },
4837
4837
  { immediate: !0 }
4838
- ), (v, S) => {
4839
- const R = H("FmIcon"), M = H("FmField"), O = H("FmMenuItem"), w = H("FmMenu"), x = H("FmFormGroup"), k = H("FmChipGroup");
4838
+ ), (v, k) => {
4839
+ const A = H("FmIcon"), M = H("FmField"), O = H("FmMenuItem"), w = H("FmMenu"), x = H("FmFormGroup"), S = H("FmChipGroup");
4840
4840
  return U(), re("div", Mu, [
4841
- A(x, {
4841
+ R(x, {
4842
4842
  "model-value": v.modelValue,
4843
4843
  disabled: v.disabled,
4844
4844
  focused: g.value,
@@ -4847,21 +4847,21 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
4847
4847
  rules: v.rules
4848
4848
  }, {
4849
4849
  default: G(({ invalid: I }) => [
4850
- A(w, {
4850
+ R(w, {
4851
4851
  disabled: v.disabled,
4852
4852
  ref_key: "fmMenuRef",
4853
4853
  ref: u,
4854
4854
  "close-on-click": !1,
4855
- onMenuChanged: S[1] || (S[1] = (N) => g.value = N)
4855
+ onMenuChanged: k[1] || (k[1] = (N) => g.value = N)
4856
4856
  }, {
4857
4857
  "menu-button": G(() => [
4858
- A(M, {
4858
+ R(M, {
4859
4859
  class: He(v.disabled ? "cursor-not-allowed" : "cursor-pointer"),
4860
4860
  focused: g.value,
4861
4861
  invalid: I
4862
4862
  }, {
4863
4863
  append: G(() => [
4864
- A(R, {
4864
+ R(A, {
4865
4865
  color: v.disabled ? "#C7C7CC" : "black",
4866
4866
  name: g.value ? "expand_less" : "expand_more",
4867
4867
  size: "md"
@@ -4890,9 +4890,9 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
4890
4890
  B("button", {
4891
4891
  class: "flex items-center py-8 px-16 space-x-8",
4892
4892
  type: "button",
4893
- onClick: S[0] || (S[0] = (N) => E())
4893
+ onClick: k[0] || (k[0] = (N) => E())
4894
4894
  }, [
4895
- A(R, {
4895
+ R(A, {
4896
4896
  color: "primary",
4897
4897
  name: "add",
4898
4898
  size: "md"
@@ -4907,7 +4907,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
4907
4907
  _: 1
4908
4908
  }, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
4909
4909
  m.value.length > 0 ? (U(), re("div", Nu, [
4910
- A(k, {
4910
+ R(S, {
4911
4911
  disabled: v.disabled,
4912
4912
  items: m.value.map((I) => ({ label: I.label })),
4913
4913
  removable: "",
@@ -4917,7 +4917,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
4917
4917
  ]);
4918
4918
  };
4919
4919
  }
4920
- }), Lu = /* @__PURE__ */ At(Fu, [["__scopeId", "data-v-ca5e943c"]]), xu = { class: "flex flex-col gap-4" }, Uu = { class: "fm-select__menu__wrapper" }, Vu = {
4920
+ }), Lu = /* @__PURE__ */ Rt(Fu, [["__scopeId", "data-v-ca5e943c"]]), xu = { class: "flex flex-col gap-4" }, Uu = { class: "fm-select__menu__wrapper" }, Vu = {
4921
4921
  key: 0,
4922
4922
  class: "flex flex-col gap-4 justify-center"
4923
4923
  }, zu = /* @__PURE__ */ ve({
@@ -4974,9 +4974,9 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
4974
4974
  return t({
4975
4975
  hideMenu: m
4976
4976
  }), (_, y) => {
4977
- const g = H("FmIcon"), v = H("FmField"), S = H("FmMenuItem"), R = H("FmMenu"), M = H("FmFormGroup"), O = H("FmChipGroup");
4977
+ const g = H("FmIcon"), v = H("FmField"), k = H("FmMenuItem"), A = H("FmMenu"), M = H("FmFormGroup"), O = H("FmChipGroup");
4978
4978
  return U(), re("div", xu, [
4979
- A(M, {
4979
+ R(M, {
4980
4980
  "model-value": _.modelValue,
4981
4981
  disabled: _.disabled,
4982
4982
  focused: c.value,
@@ -4985,7 +4985,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
4985
4985
  rules: _.rules
4986
4986
  }, {
4987
4987
  default: G(({ invalid: w }) => [
4988
- A(R, {
4988
+ R(A, {
4989
4989
  disabled: _.disabled,
4990
4990
  ref_key: "fmMenuRef",
4991
4991
  ref: r,
@@ -4993,13 +4993,13 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
4993
4993
  onMenuChanged: y[0] || (y[0] = (x) => c.value = x)
4994
4994
  }, {
4995
4995
  "menu-button": G(() => [
4996
- A(v, {
4996
+ R(v, {
4997
4997
  class: He(_.disabled ? "cursor-not-allowed" : "cursor-pointer"),
4998
4998
  focused: c.value,
4999
4999
  invalid: w
5000
5000
  }, {
5001
5001
  append: G(() => [
5002
- A(g, {
5002
+ R(g, {
5003
5003
  color: _.disabled ? "#C7C7CC" : "black",
5004
5004
  name: c.value ? "expand_less" : "expand_more",
5005
5005
  size: "md"
@@ -5017,15 +5017,15 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
5017
5017
  ]),
5018
5018
  default: G(() => [
5019
5019
  B("div", Uu, [
5020
- (U(!0), re(Ue, null, at(_.items, (x) => (U(), Z(S, {
5020
+ (U(!0), re(Ue, null, at(_.items, (x) => (U(), Z(k, {
5021
5021
  key: x.value,
5022
5022
  disabled: x.disabled,
5023
5023
  "has-checkbox": !0,
5024
5024
  label: x.label,
5025
- "model-value": l.value.some((k) => k.value === x.value),
5026
- "onUpdate:modelValue": (k) => s(k, x)
5025
+ "model-value": l.value.some((S) => S.value === x.value),
5026
+ "onUpdate:modelValue": (S) => s(S, x)
5027
5027
  }, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue"]))), 128)),
5028
- Re(_.$slots, "append-menu", {}, void 0, !0)
5028
+ Ae(_.$slots, "append-menu", {}, void 0, !0)
5029
5029
  ])
5030
5030
  ]),
5031
5031
  _: 2
@@ -5034,7 +5034,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
5034
5034
  _: 3
5035
5035
  }, 8, ["model-value", "disabled", "focused", "helper-state", "helper-text", "rules"]),
5036
5036
  _.shouldShowChips && l.value.length > 0 ? (U(), re("div", Vu, [
5037
- A(O, {
5037
+ R(O, {
5038
5038
  disabled: _.disabled,
5039
5039
  items: l.value.map((w) => ({ label: w.label })),
5040
5040
  removable: "",
@@ -5044,7 +5044,7 @@ const Mu = { class: "flex flex-col gap-4" }, Du = { class: "fm-select__menu__wra
5044
5044
  ]);
5045
5045
  };
5046
5046
  }
5047
- }), $u = /* @__PURE__ */ At(zu, [["__scopeId", "data-v-1d940d75"]]), Bu = {
5047
+ }), $u = /* @__PURE__ */ Rt(zu, [["__scopeId", "data-v-1d940d75"]]), Bu = {
5048
5048
  class: "flex flex-row xs:flex-col gap-24"
5049
5049
  }, Gu = {
5050
5050
  class: "flex-1 flex flex-col gap-24"
@@ -5093,18 +5093,18 @@ const ec = /* @__PURE__ */ ve({
5093
5093
  setup(e, {
5094
5094
  emit: t
5095
5095
  }) {
5096
- const n = e, i = Te(), a = rn(), o = st(), r = Ze(), l = kt(r), s = Ct(l), u = Ya({
5096
+ const n = e, i = Te(), a = rn(), o = st(), r = Ze(), l = St(r), s = Ct(l), u = Ya({
5097
5097
  dialog: o,
5098
5098
  menuLoader: s
5099
5099
  }), {
5100
5100
  checkMenuIsLoading: m
5101
- } = Ct(kt(Ze())), d = t, c = z(() => i.rules.item), p = z(() => i.categorizedItems), E = z(() => {
5101
+ } = Ct(St(Ze())), d = t, c = z(() => i.rules.item), p = z(() => i.categorizedItems), E = z(() => {
5102
5102
  const T = p.value.map((V) => ({
5103
5103
  label: V.name,
5104
5104
  value: V.id
5105
5105
  }));
5106
5106
  return n.isAddon ? T : T.filter((V) => !!V.value);
5107
- }), _ = z(() => c.value.addon), y = z(() => !E.value.find((T) => !!T.value)), g = z(() => Ta(n.form.category ? n.form : n.fallback) || []), v = z(() => g.value.reduce((T, V) => (T[V._id] = V, T), {})), S = z({
5107
+ }), _ = z(() => c.value.addon), y = z(() => !E.value.find((T) => !!T.value)), g = z(() => Ta(n.form.category ? n.form : n.fallback) || []), v = z(() => g.value.reduce((T, V) => (T[V._id] = V, T), {})), k = z({
5108
5108
  get() {
5109
5109
  return g.value.map((T) => T._id);
5110
5110
  },
@@ -5122,26 +5122,26 @@ const ec = /* @__PURE__ */ ve({
5122
5122
  }
5123
5123
  d("update:form", "category", V._id), d("update:form", "additionalCategories", j);
5124
5124
  }
5125
- }), R = te(), M = () => n.isAddon ? null : A($u, {
5126
- ref: R,
5125
+ }), A = te(), M = () => n.isAddon ? null : R($u, {
5126
+ ref: A,
5127
5127
  disabled: !c.value.category || n.isAddon || m(),
5128
5128
  items: E.value,
5129
- modelValue: S.value,
5130
- "onUpdate:model-value": (T) => S.value = T,
5129
+ modelValue: k.value,
5130
+ "onUpdate:model-value": (T) => k.value = T,
5131
5131
  placeholder: C("menu.product.form.detail.category.placeholder")
5132
5132
  }, {
5133
- "append-menu": () => A("button", {
5133
+ "append-menu": () => R("button", {
5134
5134
  class: "flex items-center py-8 px-16 space-x-8",
5135
5135
  type: "button",
5136
5136
  onClick: () => {
5137
5137
  var T;
5138
- (T = R.value) == null || T.hideMenu(), u.create();
5138
+ (T = A.value) == null || T.hideMenu(), u.create();
5139
5139
  }
5140
- }, [A(Be.FmIcon, {
5140
+ }, [R(Be.FmIcon, {
5141
5141
  color: "primary",
5142
5142
  name: "add",
5143
5143
  size: "md"
5144
- }, null), A("p", {
5144
+ }, null), R("p", {
5145
5145
  class: "fm-typo-en-body-lg-600 text-fm-color-primary"
5146
5146
  }, [C("menu.product.form.detail.category.add_new")])])
5147
5147
  });
@@ -5157,9 +5157,9 @@ const ec = /* @__PURE__ */ ve({
5157
5157
  var j, le, ce;
5158
5158
  if (w.value === T) return;
5159
5159
  const V = T == Mt.ADD_ON;
5160
- d("update:form", "category", n.isOverride ? V ? "" : ((j = n.fallback) == null ? void 0 : j.category) ?? ((le = E.value.find((Ae) => !!Ae.value)) == null ? void 0 : le.value) : V ? null : (ce = E.value.find((Ae) => !!Ae.value)) == null ? void 0 : ce.value), V && d("update:form", "additionalCategories", []);
5160
+ d("update:form", "category", n.isOverride ? V ? "" : ((j = n.fallback) == null ? void 0 : j.category) ?? ((le = E.value.find((Re) => !!Re.value)) == null ? void 0 : le.value) : V ? null : (ce = E.value.find((Re) => !!Re.value)) == null ? void 0 : ce.value), V && d("update:form", "additionalCategories", []);
5161
5161
  }
5162
- const k = te(!1);
5162
+ const S = te(!1);
5163
5163
  async function I() {
5164
5164
  var T, V;
5165
5165
  if (!n.form.name) {
@@ -5170,9 +5170,9 @@ const ec = /* @__PURE__ */ ve({
5170
5170
  } else
5171
5171
  return;
5172
5172
  }
5173
- if (!k.value)
5173
+ if (!S.value)
5174
5174
  try {
5175
- k.value = !0, a.pushDataLayer({
5175
+ S.value = !0, a.pushDataLayer({
5176
5176
  event: "menu_catalog_item_general_remy_suggest_description"
5177
5177
  }), Ge.toggleDialog(!0);
5178
5178
  const j = await ((T = Ge.getItemDescription) == null ? void 0 : T.call(Ge, {
@@ -5180,7 +5180,7 @@ const ec = /* @__PURE__ */ ve({
5180
5180
  }, !0)), le = (V = j == null ? void 0 : j.data) == null ? void 0 : V.value;
5181
5181
  typeof le == "string" && d("update:form", "description", le);
5182
5182
  } finally {
5183
- k.value = !1;
5183
+ S.value = !1;
5184
5184
  }
5185
5185
  }
5186
5186
  const N = z(() => i.subcategories), P = z(() => N.value.map((T) => ({
@@ -5195,20 +5195,20 @@ const ec = /* @__PURE__ */ ve({
5195
5195
  }
5196
5196
  }), {
5197
5197
  t: C
5198
- } = Se();
5198
+ } = ke();
5199
5199
  return (T, V) => {
5200
- const j = H("fm-text-field"), le = H("fm-textarea"), ce = H("fm-radio"), Ae = H("FmSnackbar"), $ = H("FmButton"), K = H("fm-radio-group"), q = H("FmFormGroup"), J = fo("tooltip");
5200
+ const j = H("fm-text-field"), le = H("fm-textarea"), ce = H("fm-radio"), Re = H("FmSnackbar"), $ = H("FmButton"), K = H("fm-radio-group"), q = H("FmFormGroup"), J = fo("tooltip");
5201
5201
  return U(), Z(lt, {
5202
5202
  title: b(C)("menu.product.form.detail.title")
5203
5203
  }, {
5204
5204
  default: G(() => {
5205
5205
  var ne, ae;
5206
- return [B("div", Bu, [B("div", Gu, [B("div", Wu, [B("div", Hu, [A(j, {
5206
+ return [B("div", Bu, [B("div", Gu, [B("div", Wu, [B("div", Hu, [R(j, {
5207
5207
  "model-value": T.form.code,
5208
5208
  placeholder: ((ne = T.fallback) == null ? void 0 : ne.code) || b(C)("menu.product.form.detail.fields.code.placeholder"),
5209
5209
  label: b(C)("menu.product.form.detail.fields.code.label"),
5210
5210
  "onUpdate:modelValue": V[0] || (V[0] = (oe) => d("update:form", "code", b(jo)(oe, T.isOverride)))
5211
- }, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [A(j, {
5211
+ }, null, 8, ["model-value", "placeholder", "label"])]), B("div", ju, [R(j, {
5212
5212
  id: "product-name",
5213
5213
  disabled: !c.value.name,
5214
5214
  "helper-text": O.value > 0 ? b(C)("menu.product.form.detail.fields.name.duplicate_warning", {
@@ -5221,7 +5221,7 @@ const ec = /* @__PURE__ */ ve({
5221
5221
  autofocus: "",
5222
5222
  label: b(C)("menu.product.form.detail.fields.name.label"),
5223
5223
  "onUpdate:modelValue": V[1] || (V[1] = (oe) => d("update:form", "name", oe))
5224
- }, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [A(le, {
5224
+ }, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), B("div", Ku, [R(le, {
5225
5225
  disabled: !c.value.description,
5226
5226
  "model-value": T.form.description || void 0,
5227
5227
  placeholder: b(C)("menu.product.form.detail.fields.description.placeholder"),
@@ -5230,15 +5230,15 @@ const ec = /* @__PURE__ */ ve({
5230
5230
  }, {
5231
5231
  label: G(() => [B("p", Yu, [Gn(ye(b(C)("menu.product.form.detail.fields.description.label")) + " ", 1), B("span", Xu, ye(b(C)("menu.product.form.detail.fields.description.optional")), 1)])]),
5232
5232
  _: 1
5233
- }, 8, ["disabled", "model-value", "placeholder"]), Xt(A(Ho, {
5233
+ }, 8, ["disabled", "model-value", "placeholder"]), Xt(R(Ho, {
5234
5234
  class: "absolute top-32 right-4 cursor-pointer",
5235
5235
  onClick: I
5236
- }, null, 512), [[J, b(yo)("Suggest description")]])])]), A(ks, {
5236
+ }, null, 512), [[J, b(yo)("Suggest description")]])])]), R(Ss, {
5237
5237
  disabled: !c.value.thumbnail,
5238
5238
  "model-value": T.thumbnail,
5239
5239
  "onUpdate:modelValue": V[3] || (V[3] = (oe) => d("update:thumbnail", oe)),
5240
5240
  "onReset:modelValue": V[4] || (V[4] = (oe) => d("reset:thumbnail"))
5241
- }, null, 8, ["disabled", "model-value"])]), A(_t, {
5241
+ }, null, 8, ["disabled", "model-value"])]), R(_t, {
5242
5242
  label: b(C)("menu.product.form.detail.category.label")
5243
5243
  }, {
5244
5244
  default: G(() => [_.value ? (U(), Z(K, {
@@ -5247,25 +5247,25 @@ const ec = /* @__PURE__ */ ve({
5247
5247
  "model-value": w.value,
5248
5248
  "onUpdate:modelValue": V[5] || (V[5] = (oe) => x(oe))
5249
5249
  }, {
5250
- default: G(() => [B("div", qu, [B("div", Ju, [A(ce, {
5250
+ default: G(() => [B("div", qu, [B("div", Ju, [R(ce, {
5251
5251
  disabled: y.value || !c.value.category,
5252
5252
  value: Mt.PRODUCT,
5253
5253
  label: b(C)("menu.product.form.detail.category.options.product.label"),
5254
5254
  sublabel: b(C)("menu.product.form.detail.category.options.product.sublabel")
5255
- }, null, 8, ["disabled", "value", "label", "sublabel"]), A(Pr, null, {
5255
+ }, null, 8, ["disabled", "value", "label", "sublabel"]), R(Pr, null, {
5256
5256
  default: G(() => [b(i).isV4 ? (U(), Z(M, {
5257
5257
  key: 0
5258
5258
  })) : se("", !0)]),
5259
5259
  _: 1
5260
- })]), y.value ? (U(), re("div", Zu, [A(Ae, {
5260
+ })]), y.value ? (U(), re("div", Zu, [R(Re, {
5261
5261
  title: b(C)("menu.product.form.detail.category.add_first"),
5262
5262
  variant: "info"
5263
- }, null, 8, ["title"]), A($, {
5263
+ }, null, 8, ["title"]), R($, {
5264
5264
  label: b(C)("menu.common.actions.add"),
5265
5265
  "prepend-icon": "add",
5266
5266
  variant: "secondary",
5267
5267
  onClick: b(u).create
5268
- }, null, 8, ["label", "onClick"])])) : se("", !0), A(ce, {
5268
+ }, null, 8, ["label", "onClick"])])) : se("", !0), R(ce, {
5269
5269
  value: Mt.ADD_ON,
5270
5270
  label: b(C)("menu.product.form.detail.category.options.addon.label"),
5271
5271
  sublabel: b(C)("menu.product.form.detail.category.options.addon.sublabel")
@@ -5277,7 +5277,7 @@ const ec = /* @__PURE__ */ ve({
5277
5277
  "onUpdate:modelValue": V[6] || (V[6] = (oe) => T.form.category = oe),
5278
5278
  rules: [(oe) => !oe && !T.isOverride ? "Category is required" : !0]
5279
5279
  }, {
5280
- default: G(() => [A(M)]),
5280
+ default: G(() => [R(M)]),
5281
5281
  _: 1
5282
5282
  }, 8, ["modelValue", "rules"]))]),
5283
5283
  _: 1
@@ -5285,7 +5285,7 @@ const ec = /* @__PURE__ */ ve({
5285
5285
  key: 0,
5286
5286
  label: b(C)("menu.product.form.detail.path.label")
5287
5287
  }, {
5288
- default: G(() => [B("div", Qu, [A(Lu, {
5288
+ default: G(() => [B("div", Qu, [R(Lu, {
5289
5289
  modelValue: D.value,
5290
5290
  "onUpdate:modelValue": V[7] || (V[7] = (oe) => D.value = oe),
5291
5291
  items: P.value,
@@ -5294,7 +5294,7 @@ const ec = /* @__PURE__ */ ve({
5294
5294
  "is-local-only": !1
5295
5295
  }, null, 8, ["modelValue", "items", "placeholder", "disabled"])])]),
5296
5296
  _: 1
5297
- }, 8, ["label"])) : se("", !0), A(hi, {
5297
+ }, 8, ["label"])) : se("", !0), R(hi, {
5298
5298
  disabled: !c.value.orderFrom,
5299
5299
  "model-value": T.form.orderFrom,
5300
5300
  "order-from-none": c.value.orderFromNone,
@@ -5308,15 +5308,15 @@ const ec = /* @__PURE__ */ ve({
5308
5308
  }, 8, ["title"]);
5309
5309
  };
5310
5310
  }
5311
- }), tc = /* @__PURE__ */ At(ec, [["__scopeId", "data-v-3e6c0c15"]]), nc = {}, ic = { class: "overflow-x-auto" }, oc = { class: "xs:w-[600px]" };
5311
+ }), tc = /* @__PURE__ */ Rt(ec, [["__scopeId", "data-v-3e6c0c15"]]), nc = {}, ic = { class: "overflow-x-auto" }, oc = { class: "xs:w-[600px]" };
5312
5312
  function ac(e, t) {
5313
5313
  return U(), re("div", ic, [
5314
5314
  B("div", oc, [
5315
- Re(e.$slots, "default")
5315
+ Ae(e.$slots, "default")
5316
5316
  ])
5317
5317
  ]);
5318
5318
  }
5319
- const ua = /* @__PURE__ */ At(nc, [["render", ac]]), rc = /* @__PURE__ */ ve({
5319
+ const ua = /* @__PURE__ */ Rt(nc, [["render", ac]]), rc = /* @__PURE__ */ ve({
5320
5320
  __name: "AddForm",
5321
5321
  setup(e) {
5322
5322
  const t = Te(), n = z(() => t.rules.group), i = z(() => !!t.state.currentCatalogId || !!t.state.currentSchedulerId), a = z(() => {
@@ -5346,7 +5346,7 @@ const ua = /* @__PURE__ */ At(nc, [["render", ac]]), rc = /* @__PURE__ */ ve({
5346
5346
  items: {},
5347
5347
  position: t.groups.length - 1,
5348
5348
  itemsLinked: []
5349
- }), r = te(o()), { t: l } = Se();
5349
+ }), r = te(o()), { t: l } = ke();
5350
5350
  return (s, u) => n.value.create ? (U(), Z(b(Dc), {
5351
5351
  key: 0,
5352
5352
  "categorized-items": b(t).categorizedItems,
@@ -5360,7 +5360,7 @@ const ua = /* @__PURE__ */ At(nc, [["render", ac]]), rc = /* @__PURE__ */ ve({
5360
5360
  title: b(l)("menu.group.add")
5361
5361
  }, {
5362
5362
  default: G(({ trigger: m }) => [
5363
- Re(s.$slots, "default", { trigger: m })
5363
+ Ae(s.$slots, "default", { trigger: m })
5364
5364
  ]),
5365
5365
  _: 3
5366
5366
  }, 8, ["categorized-items", "config", "group", "title"])) : se("", !0);
@@ -5368,10 +5368,10 @@ const ua = /* @__PURE__ */ At(nc, [["render", ac]]), rc = /* @__PURE__ */ ve({
5368
5368
  }), sc = {}, lc = { class: "flex gap-16" };
5369
5369
  function uc(e, t) {
5370
5370
  return U(), re("div", lc, [
5371
- Re(e.$slots, "default")
5371
+ Ae(e.$slots, "default")
5372
5372
  ]);
5373
5373
  }
5374
- const cc = /* @__PURE__ */ At(sc, [["render", uc]]), dc = { class: "fm-typo-en-title-md-600 mr-auto" }, mc = { class: "space-y-40" }, pc = { class: "flex gap-8 items-center justify-start" }, fc = /* @__PURE__ */ ve({
5374
+ const cc = /* @__PURE__ */ Rt(sc, [["render", uc]]), dc = { class: "fm-typo-en-title-md-600 mr-auto" }, mc = { class: "space-y-40" }, pc = { class: "flex gap-8 items-center justify-start" }, fc = /* @__PURE__ */ ve({
5375
5375
  __name: "Form",
5376
5376
  props: {
5377
5377
  bindingKey: {},
@@ -5402,15 +5402,15 @@ const cc = /* @__PURE__ */ At(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
5402
5402
  p && (r.value = ge(i.initialValue), c.readInventory());
5403
5403
  }
5404
5404
  ), t({ getKey: () => i.bindingKey, trigger: o });
5405
- const { t: d } = Se(), c = Eo();
5405
+ const { t: d } = ke(), c = Eo();
5406
5406
  return (p, E) => {
5407
5407
  const _ = H("fm-text-field"), y = H("fm-card"), g = H("fm-button"), v = H("fm-side-sheet");
5408
5408
  return U(), re(Ue, null, [
5409
- Re(p.$slots, "default", { trigger: o }),
5410
- A(v, {
5409
+ Ae(p.$slots, "default", { trigger: o }),
5410
+ R(v, {
5411
5411
  id: "inventory-form",
5412
5412
  modelValue: a.value,
5413
- "onUpdate:modelValue": E[2] || (E[2] = (S) => a.value = S),
5413
+ "onUpdate:modelValue": E[2] || (E[2] = (k) => a.value = k),
5414
5414
  "close-button": !1,
5415
5415
  "is-container": b(Be).FmForm,
5416
5416
  "is-container-props": {
@@ -5425,13 +5425,13 @@ const cc = /* @__PURE__ */ At(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
5425
5425
  ]),
5426
5426
  "side-sheet-footer": G(() => [
5427
5427
  B("div", pc, [
5428
- A(g, {
5428
+ R(g, {
5429
5429
  label: b(d)("menu.common.actions.add"),
5430
5430
  size: "lg",
5431
5431
  type: "submit",
5432
5432
  variant: "primary"
5433
5433
  }, null, 8, ["label"]),
5434
- A(g, {
5434
+ R(g, {
5435
5435
  label: b(d)("menu.common.actions.cancel"),
5436
5436
  size: "lg",
5437
5437
  variant: "tertiary",
@@ -5441,19 +5441,19 @@ const cc = /* @__PURE__ */ At(sc, [["render", uc]]), dc = { class: "fm-typo-en-t
5441
5441
  ]),
5442
5442
  default: G(() => [
5443
5443
  B("div", mc, [
5444
- A(_, {
5444
+ R(_, {
5445
5445
  "model-value": p.name,
5446
5446
  disabled: "",
5447
5447
  label: b(d)("menu.inventory.form.product_name")
5448
5448
  }, null, 8, ["model-value", "label"]),
5449
- A(y, {
5449
+ R(y, {
5450
5450
  class: "p-16 space-y-24",
5451
5451
  variant: "outlined"
5452
5452
  }, {
5453
5453
  default: G(() => [
5454
- A(b(qa), {
5454
+ R(b(qa), {
5455
5455
  modelValue: r.value,
5456
- "onUpdate:modelValue": E[0] || (E[0] = (S) => r.value = S)
5456
+ "onUpdate:modelValue": E[0] || (E[0] = (k) => r.value = k)
5457
5457
  }, null, 8, ["modelValue"])
5458
5458
  ]),
5459
5459
  _: 1
@@ -5484,7 +5484,7 @@ function hc() {
5484
5484
  l = c;
5485
5485
  }, m = (c) => {
5486
5486
  s = c;
5487
- }, d = A(o, {
5487
+ }, d = R(o, {
5488
5488
  ...i,
5489
5489
  // close event from the component
5490
5490
  "onUpdate:show": (c) => {
@@ -5522,7 +5522,7 @@ const ca = /* @__PURE__ */ ve({
5522
5522
  setup(e) {
5523
5523
  const {
5524
5524
  t
5525
- } = Se(), n = e, i = Ea(e, "modelValue");
5525
+ } = ke(), n = e, i = Ea(e, "modelValue");
5526
5526
  function a(r, l) {
5527
5527
  l ? i.value = {
5528
5528
  ...i.value,
@@ -5539,7 +5539,7 @@ const ca = /* @__PURE__ */ ve({
5539
5539
  cell: (r) => {
5540
5540
  var u, m;
5541
5541
  const l = (u = n.fallback) == null ? void 0 : u[r.row.original.key], s = l ? Bt(l) : void 0;
5542
- return A(Pt, {
5542
+ return R(Pt, {
5543
5543
  required: !1,
5544
5544
  nullable: !0,
5545
5545
  min: n.allowNegativePrice ? void 0 : 0,
@@ -5552,7 +5552,7 @@ const ca = /* @__PURE__ */ ve({
5552
5552
  }];
5553
5553
  return (r, l) => {
5554
5554
  const s = H("FmTable");
5555
- return U(), re("div", null, [A(s, {
5555
+ return U(), re("div", null, [R(s, {
5556
5556
  "column-defs": o,
5557
5557
  "row-data": r.priceTiers,
5558
5558
  "page-size": r.priceTiers.length,
@@ -5569,9 +5569,9 @@ const ca = /* @__PURE__ */ ve({
5569
5569
  },
5570
5570
  emits: ["update:show", "submit"],
5571
5571
  setup(e, { emit: t }) {
5572
- const { t: n } = Se(), i = t, a = te(!0), o = () => {
5572
+ const { t: n } = ke(), i = t, a = te(!0), o = () => {
5573
5573
  a.value = !1, i("update:show", !1);
5574
- }, r = z(() => n("menu.price_tier.price_tier_config")), l = z(() => n("common.update")), s = e, u = So(s.menuStore), m = te(s.initialValue ? Za(s.initialValue) : {}), d = ui(
5574
+ }, r = z(() => n("menu.price_tier.price_tier_config")), l = z(() => n("common.update")), s = e, u = ko(s.menuStore), m = te(s.initialValue ? Za(s.initialValue) : {}), d = ui(
5575
5575
  () => !ot.isEqual(s.initialValue || {}, m.value),
5576
5576
  () => {
5577
5577
  o();
@@ -5599,13 +5599,13 @@ const ca = /* @__PURE__ */ ve({
5599
5599
  ]),
5600
5600
  "side-sheet-footer": G(() => [
5601
5601
  B("div", _c, [
5602
- A(y, {
5602
+ R(y, {
5603
5603
  label: l.value,
5604
5604
  size: "lg",
5605
5605
  type: "submit",
5606
5606
  variant: "primary"
5607
5607
  }, null, 8, ["label"]),
5608
- A(y, {
5608
+ R(y, {
5609
5609
  label: b(n)("common.cancel"),
5610
5610
  size: "lg",
5611
5611
  variant: "tertiary",
@@ -5615,12 +5615,12 @@ const ca = /* @__PURE__ */ ve({
5615
5615
  ]),
5616
5616
  default: G(() => [
5617
5617
  B("div", vc, [
5618
- A(_t, {
5618
+ R(_t, {
5619
5619
  label: b(n)("menu.price_tier.price_group"),
5620
5620
  description: b(n)("menu.price_tier.description")
5621
5621
  }, {
5622
5622
  append: G(() => [
5623
- A(_, {
5623
+ R(_, {
5624
5624
  class: "min-w-fit",
5625
5625
  label: b(n)("menu.price_tier.add_price_group"),
5626
5626
  icon: "add",
@@ -5629,7 +5629,7 @@ const ca = /* @__PURE__ */ ve({
5629
5629
  }, null, 8, ["label", "onClick"])
5630
5630
  ]),
5631
5631
  default: G(() => [
5632
- A(ca, {
5632
+ R(ca, {
5633
5633
  "price-tiers": b(u).priceTiers.value,
5634
5634
  "model-value": m.value,
5635
5635
  fallback: p.fallback,
@@ -5666,17 +5666,17 @@ const ca = /* @__PURE__ */ ve({
5666
5666
  i("update:priceTiers", s);
5667
5667
  });
5668
5668
  }
5669
- const { t: l } = Se();
5669
+ const { t: l } = ke();
5670
5670
  return (s, u) => {
5671
5671
  const m = H("FmButton"), d = H("FmTooltip");
5672
- return s.$slots.default ? Re(s.$slots, "default", { key: 0 }) : (U(), Z(d, {
5672
+ return s.$slots.default ? Ae(s.$slots, "default", { key: 0 }) : (U(), Z(d, {
5673
5673
  key: 1,
5674
5674
  content: b(l)("menu.price_tier.price_tier_config"),
5675
5675
  "z-index": 999,
5676
5676
  placement: "top"
5677
5677
  }, {
5678
5678
  default: G(() => [
5679
- A(m, {
5679
+ R(m, {
5680
5680
  icon: "price_change",
5681
5681
  variant: "tertiary",
5682
5682
  "text-color": b(pt).NeutralGray400,
@@ -5694,9 +5694,9 @@ const ca = /* @__PURE__ */ ve({
5694
5694
  key: 1
5695
5695
  }, Ec = {
5696
5696
  class: "xs:overflow-x-scroll"
5697
- }, Sc = {
5697
+ }, kc = {
5698
5698
  class: "xs:min-w-[640px]"
5699
- }, kc = /* @__PURE__ */ ve({
5699
+ }, Sc = /* @__PURE__ */ ve({
5700
5700
  __name: "OptionTable",
5701
5701
  props: {
5702
5702
  config: {},
@@ -5720,7 +5720,7 @@ const ca = /* @__PURE__ */ ve({
5720
5720
  searchKey: p,
5721
5721
  filter: E
5722
5722
  } = Qa(), _ = z(() => {
5723
- const $ = Object.entries(n.group.items).filter(([, K]) => E([K.code || "", K.name || K.fallbackName, v(K.price ?? K.fallbackPrice), S(K.orderFrom || K.fallbackOrder), ...(K.items || []).map((q) => [q.code || "", q.name || q.fallbackName, v(q.price ?? q.fallbackPrice), S(q.orderFrom || q.fallbackOrder)].join(""))]));
5723
+ const $ = Object.entries(n.group.items).filter(([, K]) => E([K.code || "", K.name || K.fallbackName, v(K.price ?? K.fallbackPrice), k(K.orderFrom || K.fallbackOrder), ...(K.items || []).map((q) => [q.code || "", q.name || q.fallbackName, v(q.price ?? q.fallbackPrice), k(q.orderFrom || q.fallbackOrder)].join(""))]));
5724
5724
  return Object.fromEntries($);
5725
5725
  }), y = ($) => ({
5726
5726
  ...n.config,
@@ -5728,12 +5728,12 @@ const ca = /* @__PURE__ */ ve({
5728
5728
  link: n.config.link($),
5729
5729
  name: n.config.name($),
5730
5730
  orderFrom: n.config.orderFrom($)
5731
- }), g = z(() => !0), v = ($) => $ ? Bt($, !1) : "", S = ($) => {
5731
+ }), g = z(() => !0), v = ($) => $ ? Bt($, !1) : "", k = ($) => {
5732
5732
  var K;
5733
5733
  return $ == null ? "" : (K = Ma()[$]) == null ? void 0 : K.label;
5734
- }, R = z(() => Object.values(_.value)), M = te({}), {
5734
+ }, A = z(() => Object.values(_.value)), M = te({}), {
5735
5735
  t: O
5736
- } = Se(), w = te([{
5736
+ } = ke(), w = te([{
5737
5737
  accessorKey: "isDefault",
5738
5738
  header: () => O("menu.group.option.is_default"),
5739
5739
  enableSorting: !1,
@@ -5743,14 +5743,14 @@ const ca = /* @__PURE__ */ ve({
5743
5743
  if ((ae = (ne = $.row.original) == null ? void 0 : ne.items) != null && ae.length)
5744
5744
  return null;
5745
5745
  const K = $.row.depth > 0, q = $.row.original, J = !!$.getValue();
5746
- return A(Be.FmCheckbox, {
5746
+ return R(Be.FmCheckbox, {
5747
5747
  value: "default",
5748
5748
  modelValue: J,
5749
5749
  disabled: !y(q.combinationKey).isDefault,
5750
5750
  "onUpdate:modelValue": (oe) => {
5751
- var ke;
5751
+ var Se;
5752
5752
  if (K) {
5753
- const je = (ke = $.row.getParentRow()) == null ? void 0 : ke.original;
5753
+ const je = (Se = $.row.getParentRow()) == null ? void 0 : Se.original;
5754
5754
  if (!je) return;
5755
5755
  N(je._id, q.combinationKey ?? "", "isDefault", oe);
5756
5756
  } else
@@ -5765,12 +5765,12 @@ const ca = /* @__PURE__ */ ve({
5765
5765
  size: 100,
5766
5766
  cell: ($) => {
5767
5767
  const K = $.getValue();
5768
- return A(Be.FmTooltip, {
5768
+ return R(Be.FmTooltip, {
5769
5769
  class: "flex",
5770
5770
  content: K,
5771
5771
  zIndex: 110
5772
5772
  }, {
5773
- default: () => [A("div", {
5773
+ default: () => [R("div", {
5774
5774
  class: "break-all max-w-[100px]"
5775
5775
  }, [K])]
5776
5776
  });
@@ -5789,9 +5789,9 @@ const ca = /* @__PURE__ */ ve({
5789
5789
  "onUpdate:modelValue": (ae) => {
5790
5790
  var oe;
5791
5791
  if (J) {
5792
- const ke = (oe = $.row.getParentRow()) == null ? void 0 : oe.original;
5793
- if (!ke) return;
5794
- N(ke._id, q.combinationKey ?? "", "name", ae);
5792
+ const Se = (oe = $.row.getParentRow()) == null ? void 0 : oe.original;
5793
+ if (!Se) return;
5794
+ N(Se._id, q.combinationKey ?? "", "name", ae);
5795
5795
  } else
5796
5796
  I(q._id, "name", ae);
5797
5797
  },
@@ -5830,10 +5830,10 @@ const ca = /* @__PURE__ */ ve({
5830
5830
  "onUpdate:modelValue": (ae) => {
5831
5831
  var oe;
5832
5832
  if (ne) {
5833
- const ke = (oe = $.row.getParentRow()) == null ? void 0 : oe.original;
5834
- if (!ke) return;
5833
+ const Se = (oe = $.row.getParentRow()) == null ? void 0 : oe.original;
5834
+ if (!Se) return;
5835
5835
  N(
5836
- ke._id,
5836
+ Se._id,
5837
5837
  q.combinationKey ?? "",
5838
5838
  // @ts-ignore
5839
5839
  "price",
@@ -5862,10 +5862,10 @@ const ca = /* @__PURE__ */ ve({
5862
5862
  "onUpdate:modelValue": (ae) => {
5863
5863
  var oe;
5864
5864
  if (ne) {
5865
- const ke = (oe = $.row.getParentRow()) == null ? void 0 : oe.original;
5866
- if (!ke) return;
5865
+ const Se = (oe = $.row.getParentRow()) == null ? void 0 : oe.original;
5866
+ if (!Se) return;
5867
5867
  N(
5868
- ke._id,
5868
+ Se._id,
5869
5869
  q.combinationKey ?? "",
5870
5870
  // @ts-ignore
5871
5871
  "orderFrom",
@@ -5888,9 +5888,9 @@ const ca = /* @__PURE__ */ ve({
5888
5888
  size: 80,
5889
5889
  cell: ($) => {
5890
5890
  const K = $.row.original, q = $.row.depth > 0;
5891
- return A("div", {
5891
+ return R("div", {
5892
5892
  class: "flex items-center justify-end"
5893
- }, [y(null).priceTier && A(da, {
5893
+ }, [y(null).priceTier && R(da, {
5894
5894
  priceTiers: K.priceTiers,
5895
5895
  "onUpdate:priceTiers": (J) => {
5896
5896
  var ne;
@@ -5907,7 +5907,7 @@ const ca = /* @__PURE__ */ ve({
5907
5907
  } else
5908
5908
  I(K._id, "priceTiers", J);
5909
5909
  }
5910
- }, null), y(K.combinationKey).inventory && A(li, {
5910
+ }, null), y(K.combinationKey).inventory && R(li, {
5911
5911
  title: "Inventory",
5912
5912
  initialValue: K.inventoryBindings ?? [],
5913
5913
  name: K.name ?? K.fallbackName ?? "",
@@ -5930,14 +5930,14 @@ const ca = /* @__PURE__ */ ve({
5930
5930
  }, {
5931
5931
  default: ({
5932
5932
  trigger: J
5933
- }) => A(H("fm-tooltip"), {
5933
+ }) => R(H("fm-tooltip"), {
5934
5934
  content: "Inventory",
5935
5935
  zIndex: 110
5936
5936
  }, {
5937
5937
  default: () => {
5938
5938
  var ne;
5939
- return [A(H("fm-button"), {
5940
- variant: Rt.Tertiary,
5939
+ return [R(H("fm-button"), {
5940
+ variant: At.Tertiary,
5941
5941
  prependIcon: "inventory_2",
5942
5942
  overwriteIconOutline: (ne = K.inventoryBindings) != null && ne.length ? "filled" : "outline",
5943
5943
  textColor: pt.NeutralGray400,
@@ -5945,8 +5945,8 @@ const ca = /* @__PURE__ */ ve({
5945
5945
  }, null)];
5946
5946
  }
5947
5947
  })
5948
- }), y(K.combinationKey).link && A(H("fm-button"), {
5949
- variant: Rt.Tertiary,
5948
+ }), y(K.combinationKey).link && R(H("fm-button"), {
5949
+ variant: At.Tertiary,
5950
5950
  prependIcon: "delete",
5951
5951
  textColor: pt.NeutralGray400,
5952
5952
  onClick: () => {
@@ -5976,7 +5976,7 @@ const ca = /* @__PURE__ */ ve({
5976
5976
  orderFrom: y(null).showOrderFrom
5977
5977
  // action: rules(null).inventory || rules(null).link
5978
5978
  }));
5979
- async function k() {
5979
+ async function S() {
5980
5980
  const $ = (/* @__PURE__ */ new Date()).toISOString();
5981
5981
  i("update:group", {
5982
5982
  ...n.group,
@@ -6009,8 +6009,8 @@ const ca = /* @__PURE__ */ ve({
6009
6009
  });
6010
6010
  }
6011
6011
  function N($, K, q, J) {
6012
- var ke, je;
6013
- const ne = ge(n.group), ae = (ke = ne.items[$].items) == null ? void 0 : ke.findIndex((bt) => bt.combinationKey === K);
6012
+ var Se, je;
6013
+ const ne = ge(n.group), ae = (Se = ne.items[$].items) == null ? void 0 : Se.findIndex((bt) => bt.combinationKey === K);
6014
6014
  if (!sn.isSet(ae)) return;
6015
6015
  let oe = (je = ne.items[$].items) == null ? void 0 : je[ae];
6016
6016
  oe && (oe = {
@@ -6061,7 +6061,7 @@ const ca = /* @__PURE__ */ ve({
6061
6061
  [J._id]: J
6062
6062
  }), {}), i("update:group", K);
6063
6063
  }
6064
- const ce = _o(), Ae = z(() => ce.breakpoints.value.xs);
6064
+ const ce = _o(), Re = z(() => ce.breakpoints.value.xs);
6065
6065
  return ($, K) => {
6066
6066
  const q = H("fm-button"), J = H("fm-table");
6067
6067
  return U(), Z(lt, {
@@ -6069,7 +6069,7 @@ const ca = /* @__PURE__ */ ve({
6069
6069
  }, {
6070
6070
  "append-title": G(() => [$.config.link() ? (U(), re(Ue, {
6071
6071
  key: 0
6072
- }, [m.value ? (U(), re("div", yc, [A(La, {
6072
+ }, [m.value ? (U(), re("div", yc, [R(La, {
6073
6073
  "categorized-items": $.categorizedItems,
6074
6074
  "initial-value": c.value,
6075
6075
  "show-variant": $.config.bindToVariant,
@@ -6079,7 +6079,7 @@ const ca = /* @__PURE__ */ ve({
6079
6079
  }, {
6080
6080
  default: G(({
6081
6081
  trigger: ne
6082
- }) => [A(q, {
6082
+ }) => [R(q, {
6083
6083
  "text-color": b(pt).ColorPrimary,
6084
6084
  "border-color": b(pt).ColorPrimary,
6085
6085
  variant: "secondary",
@@ -6088,22 +6088,22 @@ const ca = /* @__PURE__ */ ve({
6088
6088
  onClick: ne
6089
6089
  }, null, 8, ["text-color", "border-color", "label", "onClick"])]),
6090
6090
  _: 1
6091
- }, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", wc, [A(q, {
6091
+ }, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (U(), re("div", wc, [R(q, {
6092
6092
  "text-color": b(pt).ColorPrimary,
6093
6093
  "border-color": b(pt).ColorPrimary,
6094
6094
  variant: "secondary",
6095
6095
  label: b(O)("menu.group.option.add_option"),
6096
6096
  "prepend-icon": "add",
6097
- onClick: k
6097
+ onClick: S
6098
6098
  }, null, 8, ["text-color", "border-color", "label"])]))], 64)) : se("", !0)]),
6099
- default: G(() => [B("div", Ec, [B("div", Sc, [A(J, {
6099
+ default: G(() => [B("div", Ec, [B("div", kc, [R(J, {
6100
6100
  "column-defs": w.value,
6101
6101
  "column-visibility": x.value,
6102
- draggable: !Ae.value && y(null).name,
6102
+ draggable: !Re.value && y(null).name,
6103
6103
  "expanded-state": s.value ? {} : M.value,
6104
6104
  "get-sub-row": j,
6105
6105
  "page-size": 999,
6106
- "row-data": R.value,
6106
+ "row-data": A.value,
6107
6107
  "search-value": b(p),
6108
6108
  "shrink-at": !1,
6109
6109
  "hide-footer": "",
@@ -6115,10 +6115,10 @@ const ca = /* @__PURE__ */ ve({
6115
6115
  }, 8, ["title"]);
6116
6116
  };
6117
6117
  }
6118
- }), Cc = { class: "fm-typo-en-title-md-600" }, Rc = {
6118
+ }), Cc = { class: "fm-typo-en-title-md-600" }, Ac = {
6119
6119
  key: 0,
6120
6120
  class: "pt-8 space-y-32"
6121
- }, Ac = { class: "flex gap-8 items-center justify-start" }, ma = /* @__PURE__ */ ve({
6121
+ }, Rc = { class: "flex gap-8 items-center justify-start" }, ma = /* @__PURE__ */ ve({
6122
6122
  __name: "BaseForm",
6123
6123
  props: {
6124
6124
  title: {},
@@ -6131,9 +6131,9 @@ const ca = /* @__PURE__ */ ve({
6131
6131
  emits: ["update:group", "submit:group", "status:show"],
6132
6132
  setup(e, { expose: t, emit: n }) {
6133
6133
  let i = e;
6134
- const a = n, o = Te(), r = rn(), l = st(), s = Ze(), u = Ct(kt(s)), m = te(!1), d = te(!1), c = (C) => {
6134
+ const a = n, o = Te(), r = rn(), l = st(), s = Ze(), u = Ct(St(s)), m = te(!1), d = te(!1), c = (C) => {
6135
6135
  sn.isBoolean(C) ? d.value = C : d.value = !d.value;
6136
- }, p = z(() => i.group ? i.config(i.group) : null), E = z(() => Ao(p.value)), _ = (C) => E.value.includes(C), y = z(() => [
6136
+ }, p = z(() => i.group ? i.config(i.group) : null), E = z(() => Ro(p.value)), _ = (C) => E.value.includes(C), y = z(() => [
6137
6137
  {
6138
6138
  label: "Normal",
6139
6139
  value: ee.F_ADDON_GROUP_TYPE.enum.NORMAL
@@ -6171,13 +6171,13 @@ const ca = /* @__PURE__ */ ve({
6171
6171
  }
6172
6172
  }).onPrimary(T) : T();
6173
6173
  }
6174
- function S(C) {
6175
- return new Ro(o, u.updateMenu, l).mapGroups(
6174
+ function k(C) {
6175
+ return new Ao(o, u.updateMenu, l).mapGroups(
6176
6176
  [C],
6177
6177
  p.value.isOverride
6178
6178
  )[0];
6179
6179
  }
6180
- function R(C) {
6180
+ function A(C) {
6181
6181
  let T = 0;
6182
6182
  for (const V of Object.values(C.items)) {
6183
6183
  V.isDefault && T++;
@@ -6187,7 +6187,7 @@ const ca = /* @__PURE__ */ ve({
6187
6187
  return T;
6188
6188
  }
6189
6189
  function M(C) {
6190
- return R(C) <= C.max || D("menu.common.validation.max_default_items", { max: C.max });
6190
+ return A(C) <= C.max || D("menu.common.validation.max_default_items", { max: C.max });
6191
6191
  }
6192
6192
  const O = te(ot.clone(i.group)), w = ui(
6193
6193
  () => !ot.isEqual(i.group, O.value),
@@ -6195,7 +6195,7 @@ const ca = /* @__PURE__ */ ve({
6195
6195
  d.value = !1;
6196
6196
  }
6197
6197
  ), x = z(() => i.action === "add" ? D("common.add") : D("common.update"));
6198
- async function k() {
6198
+ async function S() {
6199
6199
  var C;
6200
6200
  if (i.action === "add") {
6201
6201
  const { group: T, linkItems: V } = Co(i.group), j = {
@@ -6253,18 +6253,18 @@ const ca = /* @__PURE__ */ ve({
6253
6253
  trigger: c,
6254
6254
  show: d
6255
6255
  });
6256
- const { t: D } = Se();
6256
+ const { t: D } = ke();
6257
6257
  return (C, T) => {
6258
- const V = H("fm-text-field"), j = H("fm-stepper-field"), le = H("FmFormGroup"), ce = H("fm-radio"), Ae = H("fm-radio-group"), $ = H("fm-switch"), K = H("fm-button"), q = H("fm-side-sheet");
6258
+ const V = H("fm-text-field"), j = H("fm-stepper-field"), le = H("FmFormGroup"), ce = H("fm-radio"), Re = H("fm-radio-group"), $ = H("fm-switch"), K = H("fm-button"), q = H("fm-side-sheet");
6259
6259
  return U(), re(Ue, null, [
6260
- Re(C.$slots, "default", { trigger: c }),
6261
- A(q, {
6260
+ Ae(C.$slots, "default", { trigger: c }),
6261
+ R(q, {
6262
6262
  id: "group-form",
6263
6263
  modelValue: d.value,
6264
6264
  "onUpdate:modelValue": T[8] || (T[8] = (J) => d.value = J),
6265
6265
  "is-container": b(Be).FmForm,
6266
6266
  "is-container-props": {
6267
- onValidationSuccess: k,
6267
+ onValidationSuccess: S,
6268
6268
  blameFormChildOnValidationFailed: !0
6269
6269
  },
6270
6270
  "max-width": 720,
@@ -6274,15 +6274,15 @@ const ca = /* @__PURE__ */ ve({
6274
6274
  B("p", Cc, ye(C.title), 1)
6275
6275
  ]),
6276
6276
  "side-sheet-footer": G(() => [
6277
- B("div", Ac, [
6278
- A(K, {
6277
+ B("div", Rc, [
6278
+ R(K, {
6279
6279
  label: b(er)(x.value),
6280
6280
  loading: m.value,
6281
6281
  size: "lg",
6282
6282
  type: "submit",
6283
6283
  variant: "primary"
6284
6284
  }, null, 8, ["label", "loading"]),
6285
- A(K, {
6285
+ R(K, {
6286
6286
  label: b(D)("menu.common.actions.cancel"),
6287
6287
  size: "lg",
6288
6288
  variant: "tertiary",
@@ -6291,12 +6291,12 @@ const ca = /* @__PURE__ */ ve({
6291
6291
  ])
6292
6292
  ]),
6293
6293
  default: G(() => [
6294
- C.group ? (U(), re("div", Rc, [
6295
- Re(C.$slots, "variant-section"),
6296
- A(xa, null, {
6294
+ C.group ? (U(), re("div", Ac, [
6295
+ Ae(C.$slots, "variant-section"),
6296
+ R(xa, null, {
6297
6297
  default: G(() => [
6298
6298
  B("div", null, [
6299
- A(V, {
6299
+ R(V, {
6300
6300
  modelValue: C.group.name,
6301
6301
  "onUpdate:modelValue": T[0] || (T[0] = (J) => C.group.name = J),
6302
6302
  disabled: _("name"),
@@ -6307,16 +6307,16 @@ const ca = /* @__PURE__ */ ve({
6307
6307
  label: b(D)("menu.common.labels.group_name")
6308
6308
  }, null, 8, ["modelValue", "disabled", "rules", "label"])
6309
6309
  ]),
6310
- A(le, {
6310
+ R(le, {
6311
6311
  "model-value": C.group.min + " " + C.group.max,
6312
6312
  rules: [
6313
6313
  () => Number.isInteger(C.group.min) && Number.isInteger(C.group.max) && C.group.min <= C.group.max || b(D)("menu.common.validation.min_max")
6314
6314
  ]
6315
6315
  }, {
6316
6316
  default: G(() => [
6317
- A(cc, null, {
6317
+ R(cc, null, {
6318
6318
  default: G(() => [
6319
- A(j, {
6319
+ R(j, {
6320
6320
  modelValue: C.group.min,
6321
6321
  "onUpdate:modelValue": T[1] || (T[1] = (J) => C.group.min = J),
6322
6322
  disabled: _("min"),
@@ -6324,7 +6324,7 @@ const ca = /* @__PURE__ */ ve({
6324
6324
  class: "flex-1",
6325
6325
  label: b(D)("menu.common.labels.min_select")
6326
6326
  }, null, 8, ["modelValue", "disabled", "label"]),
6327
- A(j, {
6327
+ R(j, {
6328
6328
  modelValue: C.group.max,
6329
6329
  "onUpdate:modelValue": T[2] || (T[2] = (J) => C.group.max = J),
6330
6330
  disabled: _("max"),
@@ -6343,7 +6343,7 @@ const ca = /* @__PURE__ */ ve({
6343
6343
  label: b(D)("menu.common.labels.group_type")
6344
6344
  }, {
6345
6345
  default: G(() => [
6346
- A(Ae, {
6346
+ R(Re, {
6347
6347
  disabled: _("type"),
6348
6348
  "model-value": C.group.type,
6349
6349
  "onUpdate:modelValue": T[3] || (T[3] = (J) => v(J))
@@ -6360,11 +6360,11 @@ const ca = /* @__PURE__ */ ve({
6360
6360
  ]),
6361
6361
  _: 1
6362
6362
  }, 8, ["label"])) : se("", !0),
6363
- A(_t, {
6363
+ R(_t, {
6364
6364
  label: b(D)("menu.common.labels.configuration")
6365
6365
  }, {
6366
6366
  default: G(() => [
6367
- A($, {
6367
+ R($, {
6368
6368
  modelValue: C.group.stackable,
6369
6369
  "onUpdate:modelValue": T[4] || (T[4] = (J) => C.group.stackable = J),
6370
6370
  disabled: _("stackable"),
@@ -6381,7 +6381,7 @@ const ca = /* @__PURE__ */ ve({
6381
6381
  "sub-title": b(D)("menu.group.form.tagging.subtitle")
6382
6382
  }, {
6383
6383
  default: G(() => [
6384
- A(b(vo), {
6384
+ R(b(vo), {
6385
6385
  entity: "group",
6386
6386
  "model-value": C.group.customAttributes || {},
6387
6387
  "onUpdate:modelValue": P,
@@ -6393,23 +6393,23 @@ const ca = /* @__PURE__ */ ve({
6393
6393
  ]),
6394
6394
  _: 1
6395
6395
  }),
6396
- A(le, {
6396
+ R(le, {
6397
6397
  tag: "div",
6398
6398
  modelValue: C.group,
6399
6399
  rules: [M],
6400
6400
  "helper-text": b(D)("menu.common.validation.default_items_tip", {
6401
- count: R(C.group),
6401
+ count: A(C.group),
6402
6402
  max: C.group.max
6403
6403
  })
6404
6404
  }, {
6405
6405
  default: G(() => [
6406
- A(kc, {
6406
+ R(Sc, {
6407
6407
  "allow-refund-inventory": C.allowRefundInventory ?? !1,
6408
6408
  "categorized-items": C.categorizedItems,
6409
6409
  config: p.value,
6410
6410
  group: C.group,
6411
6411
  "onUpdate:group": T[5] || (T[5] = (J) => g(J)),
6412
- "onUpdate:unmapGroup": T[6] || (T[6] = (J) => g(S(J)))
6412
+ "onUpdate:unmapGroup": T[6] || (T[6] = (J) => g(k(J)))
6413
6413
  }, null, 8, ["allow-refund-inventory", "categorized-items", "config", "group"])
6414
6414
  ]),
6415
6415
  _: 1
@@ -6430,8 +6430,8 @@ const ca = /* @__PURE__ */ ve({
6430
6430
  },
6431
6431
  emits: ["update:combinations"],
6432
6432
  setup(e, { expose: t, emit: n }) {
6433
- var R, M;
6434
- const i = e, a = n, o = Te(), r = st(), l = Ct(kt(Ze())), s = te([]), u = te(i.combinations[0].combinationKey || ""), m = z(
6433
+ var A, M;
6434
+ const i = e, a = n, o = Te(), r = st(), l = Ct(St(Ze())), s = te([]), u = te(i.combinations[0].combinationKey || ""), m = z(
6435
6435
  () => s.value.findIndex((O) => O.combinationKey == u.value)
6436
6436
  ), d = z(
6437
6437
  () => i.combinations.map((O) => ({
@@ -6444,9 +6444,9 @@ const ca = /* @__PURE__ */ ve({
6444
6444
  const O = ((P = (N = s.value[m.value]) == null ? void 0 : N.groups) == null ? void 0 : P.find((D) => D._id === i.groupId)) || {
6445
6445
  _id: i.groupId,
6446
6446
  groupKey: ""
6447
- }, x = o.state.menu.modules.group.find((D) => D._id === i.groupId), k = Object.entries({ ...O, items: void 0 }).filter(([, D]) => !!D), I = {
6447
+ }, x = o.state.menu.modules.group.find((D) => D._id === i.groupId), S = Object.entries({ ...O, items: void 0 }).filter(([, D]) => !!D), I = {
6448
6448
  ...x,
6449
- ...Object.fromEntries(k),
6449
+ ...Object.fromEntries(S),
6450
6450
  items: x.items.map((D) => {
6451
6451
  var T;
6452
6452
  const C = (T = O.items) == null ? void 0 : T.find(
@@ -6461,17 +6461,17 @@ const ca = /* @__PURE__ */ ve({
6461
6461
  };
6462
6462
  })
6463
6463
  };
6464
- return new Ro(o, l.updateMenu, r).mapGroups([I], !0)[0];
6464
+ return new Ao(o, l.updateMenu, r).mapGroups([I], !0)[0];
6465
6465
  });
6466
6466
  function p(O) {
6467
6467
  var I, N;
6468
6468
  const w = (I = s.value[m.value].groups) == null ? void 0 : I.findIndex(
6469
6469
  (P) => P._id === i.groupId
6470
- ), x = ge(s.value), k = { ...ci(O), _id: i.groupId, groupKey: "" };
6470
+ ), x = ge(s.value), S = { ...ci(O), _id: i.groupId, groupKey: "" };
6471
6471
  (w ?? -1) < 0 ? x[m.value] = {
6472
6472
  ...x[m.value],
6473
- groups: [...((N = x[m.value]) == null ? void 0 : N.groups) || [], k]
6474
- } : x[m.value].groups[w] = k, s.value = x;
6473
+ groups: [...((N = x[m.value]) == null ? void 0 : N.groups) || [], S]
6474
+ } : x[m.value].groups[w] = S, s.value = x;
6475
6475
  }
6476
6476
  function E(O) {
6477
6477
  const w = d.value.length;
@@ -6502,8 +6502,8 @@ const ca = /* @__PURE__ */ ve({
6502
6502
  var x;
6503
6503
  return {
6504
6504
  ...w,
6505
- groups: (x = w.groups) == null ? void 0 : x.map((k) => ({
6506
- ...or(k, _())
6505
+ groups: (x = w.groups) == null ? void 0 : x.map((S) => ({
6506
+ ...or(S, _())
6507
6507
  }))
6508
6508
  };
6509
6509
  });
@@ -6518,12 +6518,12 @@ const ca = /* @__PURE__ */ ve({
6518
6518
  );
6519
6519
  const v = te();
6520
6520
  t({
6521
- show: (R = v.value) == null ? void 0 : R.show,
6521
+ show: (A = v.value) == null ? void 0 : A.show,
6522
6522
  trigger: (M = v.value) == null ? void 0 : M.trigger
6523
6523
  });
6524
- const { t: S } = Se();
6524
+ const { t: k } = ke();
6525
6525
  return (O, w) => {
6526
- const x = H("fm-select"), k = H("fm-button"), I = H("fm-card");
6526
+ const x = H("fm-select"), S = H("fm-button"), I = H("fm-card");
6527
6527
  return U(), Z(ma, {
6528
6528
  ref_key: "baseFormRef",
6529
6529
  ref: v,
@@ -6532,13 +6532,13 @@ const ca = /* @__PURE__ */ ve({
6532
6532
  config: _,
6533
6533
  group: c.value,
6534
6534
  action: "update",
6535
- title: b(S)("menu.group.update"),
6535
+ title: b(k)("menu.group.update"),
6536
6536
  "onUpdate:group": w[3] || (w[3] = (N) => p(N)),
6537
6537
  "onSubmit:group": w[4] || (w[4] = (N) => y()),
6538
6538
  "onStatus:show": w[5] || (w[5] = (N) => g.value = N)
6539
6539
  }, {
6540
6540
  default: G(({ trigger: N }) => [
6541
- Re(O.$slots, "default", { trigger: N })
6541
+ Ae(O.$slots, "default", { trigger: N })
6542
6542
  ]),
6543
6543
  "variant-section": G(() => [
6544
6544
  u.value ? (U(), Z(I, {
@@ -6547,23 +6547,23 @@ const ca = /* @__PURE__ */ ve({
6547
6547
  variant: "outlined"
6548
6548
  }, {
6549
6549
  default: G(() => [
6550
- B("p", Oc, ye(b(S)("menu.group.option.variant")), 1),
6550
+ B("p", Oc, ye(b(k)("menu.group.option.variant")), 1),
6551
6551
  B("div", Ic, [
6552
- A(x, {
6552
+ R(x, {
6553
6553
  modelValue: u.value,
6554
6554
  "onUpdate:modelValue": w[0] || (w[0] = (N) => u.value = N),
6555
6555
  items: d.value,
6556
6556
  class: "flex-1"
6557
6557
  }, null, 8, ["modelValue", "items"]),
6558
6558
  B("div", Tc, [
6559
- A(k, {
6560
- variant: b(Rt).Tertiary,
6559
+ R(S, {
6560
+ variant: b(At).Tertiary,
6561
6561
  "prepend-icon": "keyboard_arrow_left",
6562
6562
  size: "lg",
6563
6563
  onClick: w[1] || (w[1] = (N) => E("left"))
6564
6564
  }, null, 8, ["variant"]),
6565
- A(k, {
6566
- variant: b(Rt).Tertiary,
6565
+ R(S, {
6566
+ variant: b(At).Tertiary,
6567
6567
  "prepend-icon": "keyboard_arrow_right",
6568
6568
  size: "lg",
6569
6569
  onClick: w[2] || (w[2] = (N) => E("right"))
@@ -6592,11 +6592,11 @@ const ca = /* @__PURE__ */ ve({
6592
6592
  setup(e) {
6593
6593
  const t = e, n = st(), { emitData: i, emitAction: a } = bo(), o = Te(), r = z(() => o.rules.group), l = z(() => o.groups);
6594
6594
  function s(y) {
6595
- return ge(y ?? []).sort((v, S) => v.position - S.position);
6595
+ return ge(y ?? []).sort((v, k) => v.position - k.position);
6596
6596
  }
6597
6597
  const u = z(() => s(l.value).reduce((y, g) => (y[g._id] = {
6598
6598
  name: g.name,
6599
- type: Rn(o.items, g.items)
6599
+ type: An(o.items, g.items)
6600
6600
  }, y), {})), m = z(() => [
6601
6601
  ...Object.entries(u.value).map(([y, { name: g, type: v }]) => ({
6602
6602
  label: `${g} ${r.value.type ? `(${Hn(v)})` : ""}`.trim(),
@@ -6604,11 +6604,11 @@ const ca = /* @__PURE__ */ ve({
6604
6604
  }))
6605
6605
  ]), d = z(() => !!o.state.currentCatalogId || !!o.state.currentSchedulerId);
6606
6606
  z(() => {
6607
- const y = !o.state.currentSchedulerId, g = o.rules.group.type, v = o.version == ee.F_MENU_VERSION.enum.v3, S = o.rules.item.orderFromActiveOnly, R = o.rules.item.bindToVariant;
6607
+ const y = !o.state.currentSchedulerId, g = o.rules.group.type, v = o.version == ee.F_MENU_VERSION.enum.v3, k = o.rules.item.orderFromActiveOnly, A = o.rules.item.bindToVariant;
6608
6608
  return function(O) {
6609
6609
  return {
6610
6610
  isDefault: (w) => !d.value && !w,
6611
- link: (w) => !d.value && (!w || R),
6611
+ link: (w) => !d.value && (!w || A),
6612
6612
  name: (w) => !d.value && !w,
6613
6613
  type: g && !O._id && !d.value,
6614
6614
  price: O.type != ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
@@ -6616,9 +6616,9 @@ const ca = /* @__PURE__ */ ve({
6616
6616
  priceTier: o.isV4,
6617
6617
  inventory: y ? v ? !d.value && O.type == ee.F_ADDON_GROUP_TYPE.enum.NORMAL : !d.value : !1,
6618
6618
  orderFrom: (w) => y ? v ? O.type == ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? d.value : !!d.value == !w : d.value : !1,
6619
- orderFromActiveOnly: S,
6619
+ orderFromActiveOnly: k,
6620
6620
  showOrderFrom: y ? v ? d.value ? !0 : O.type == ee.F_ADDON_GROUP_TYPE.enum.PRODUCT : d.value : !1,
6621
- bindToVariant: R,
6621
+ bindToVariant: A,
6622
6622
  isOverride: d.value,
6623
6623
  isItemGroup: !1,
6624
6624
  isV4: !v
@@ -6631,14 +6631,14 @@ const ca = /* @__PURE__ */ ve({
6631
6631
  position: o.groups.length - 1,
6632
6632
  itemsLinked: []
6633
6633
  }));
6634
- const c = te(ge(t.groupIds || [])), p = te(""), { t: E } = Se(), _ = () => {
6634
+ const c = te(ge(t.groupIds || [])), p = te(""), { t: E } = ke(), _ = () => {
6635
6635
  i(c.value), a("primary"), n.close();
6636
6636
  };
6637
6637
  return (y, g) => {
6638
- const v = H("FmSearch"), S = H("FmCheckbox"), R = H("FmButton");
6638
+ const v = H("FmSearch"), k = H("FmCheckbox"), A = H("FmButton");
6639
6639
  return m.value.length > 0 ? (U(), re("div", Nc, [
6640
6640
  B("div", null, [
6641
- A(v, {
6641
+ R(v, {
6642
6642
  autofocus: "",
6643
6643
  modelValue: p.value,
6644
6644
  "onUpdate:modelValue": g[0] || (g[0] = (M) => p.value = M),
@@ -6650,7 +6650,7 @@ const ca = /* @__PURE__ */ ve({
6650
6650
  (U(!0), re(Ue, null, at(m.value, (M) => (U(), re("div", {
6651
6651
  key: M.value
6652
6652
  }, [
6653
- Xt(A(S, {
6653
+ Xt(R(k, {
6654
6654
  modelValue: c.value,
6655
6655
  "onUpdate:modelValue": [
6656
6656
  g[1] || (g[1] = (O) => c.value = O),
@@ -6659,15 +6659,15 @@ const ca = /* @__PURE__ */ ve({
6659
6659
  label: M.label,
6660
6660
  value: M.value
6661
6661
  }, null, 8, ["modelValue", "label", "value"]), [
6662
- [kn, M.label.toLowerCase().includes(p.value.toLowerCase())]
6662
+ [Sn, M.label.toLowerCase().includes(p.value.toLowerCase())]
6663
6663
  ])
6664
6664
  ]))), 128))
6665
6665
  ])
6666
6666
  ]),
6667
6667
  B("div", Lc, [
6668
- A(b(co), null, {
6668
+ R(b(co), null, {
6669
6669
  default: G(({ trigger: M }) => [
6670
- A(R, {
6670
+ R(A, {
6671
6671
  label: b(E)("menu.common.actions.add_group"),
6672
6672
  variant: "tertiary",
6673
6673
  "text-color": "primary",
@@ -6677,12 +6677,12 @@ const ca = /* @__PURE__ */ ve({
6677
6677
  _: 1
6678
6678
  }),
6679
6679
  B("div", xc, [
6680
- A(R, {
6680
+ R(A, {
6681
6681
  label: b(E)("menu.common.actions.cancel"),
6682
6682
  variant: "tertiary",
6683
6683
  onClick: g[3] || (g[3] = (M) => b(n).close())
6684
6684
  }, null, 8, ["label"]),
6685
- A(R, {
6685
+ R(A, {
6686
6686
  label: b(E)("menu.common.actions.confirm"),
6687
6687
  onClick: g[4] || (g[4] = (M) => _())
6688
6688
  }, null, 8, ["label"])
@@ -6693,9 +6693,9 @@ const ca = /* @__PURE__ */ ve({
6693
6693
  B("p", zc, ye(b(E)("menu.common.empty.no_group.title")), 1),
6694
6694
  B("p", $c, ye(b(E)("menu.common.empty.no_group.subtitle")), 1)
6695
6695
  ]),
6696
- A(b(co), null, {
6696
+ R(b(co), null, {
6697
6697
  default: G(({ trigger: M }) => [
6698
- A(R, {
6698
+ R(A, {
6699
6699
  label: b(E)("menu.common.actions.add_group"),
6700
6700
  icon: "add",
6701
6701
  onClick: (O) => M()
@@ -6723,9 +6723,9 @@ const ca = /* @__PURE__ */ ve({
6723
6723
  setup(e, {
6724
6724
  emit: t
6725
6725
  }) {
6726
- const n = e, i = Ze(), a = Te(), o = Si(), r = st(), {
6726
+ const n = e, i = Ze(), a = Te(), o = ki(), r = st(), {
6727
6727
  t: l
6728
- } = Se(), s = t, u = z(() => a.rules.group), m = z(() => a.rules.item), d = z(() => a.groups);
6728
+ } = ke(), s = t, u = z(() => a.rules.group), m = z(() => a.rules.item), d = z(() => a.groups);
6729
6729
  function c(P, D) {
6730
6730
  return ge(D ?? []).map((T) => {
6731
6731
  const V = P.find((j) => j._id === T._id);
@@ -6766,7 +6766,7 @@ const ca = /* @__PURE__ */ ve({
6766
6766
  }
6767
6767
  const y = z(() => E(d.value).reduce((P, D) => (P[D._id] = {
6768
6768
  name: D.name,
6769
- type: Rn(a.items, D.items)
6769
+ type: An(a.items, D.items)
6770
6770
  }, P), {})), g = z(() => [...Object.entries(y.value).map(([P, {
6771
6771
  name: D,
6772
6772
  type: C
@@ -6798,20 +6798,20 @@ const ca = /* @__PURE__ */ ve({
6798
6798
  size: 200,
6799
6799
  cell: (P) => {
6800
6800
  const D = P.row.original._id, T = _(D).join(", ");
6801
- return A(Be.FmTooltip, {
6801
+ return R(Be.FmTooltip, {
6802
6802
  "z-index": 51,
6803
6803
  class: "flex",
6804
6804
  variant: "rich",
6805
6805
  placement: "top"
6806
6806
  }, {
6807
- default: () => A("div", {
6807
+ default: () => R("div", {
6808
6808
  class: "line-clamp-2 break-all"
6809
6809
  }, [T]),
6810
- content: () => A("div", {
6810
+ content: () => R("div", {
6811
6811
  class: "py-12 px-16 space-y-12"
6812
- }, [A("p", {
6812
+ }, [R("p", {
6813
6813
  class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600"
6814
- }, [l("menu.group.list.columns.products")]), A("div", {
6814
+ }, [l("menu.group.list.columns.products")]), R("div", {
6815
6815
  class: "flex flex-wrap gap-8"
6816
6816
  }, [T])])
6817
6817
  });
@@ -6845,16 +6845,16 @@ const ca = /* @__PURE__ */ ve({
6845
6845
  }) => De(Be.FmButton, {
6846
6846
  icon: "edit",
6847
6847
  variant: "tertiary",
6848
- disabled: !k(D),
6848
+ disabled: !S(D),
6849
6849
  textColor: "neutral-gray-400",
6850
6850
  onClick: C
6851
6851
  })
6852
6852
  })]);
6853
6853
  }
6854
- }]), S = z(() => ({
6854
+ }]), k = z(() => ({
6855
6855
  type: a.version !== ee.F_MENU_VERSION.enum.v4
6856
6856
  }));
6857
- function R() {
6857
+ function A() {
6858
6858
  r.open({
6859
6859
  title: l("menu.product.form.group.add"),
6860
6860
  contentComponent: Bc,
@@ -6916,7 +6916,7 @@ const ca = /* @__PURE__ */ ve({
6916
6916
  groups: n.form.groups || []
6917
6917
  }];
6918
6918
  });
6919
- function k(P) {
6919
+ function S(P) {
6920
6920
  var C;
6921
6921
  if (!P) return !1;
6922
6922
  if (m.value.overrideProductGroup) return !0;
@@ -6948,20 +6948,20 @@ const ca = /* @__PURE__ */ ve({
6948
6948
  title: b(l)("menu.product.form.group.title"),
6949
6949
  "sub-title": b(l)("menu.product.form.group.subtitle")
6950
6950
  }, {
6951
- "append-title": G(() => [A(C, {
6951
+ "append-title": G(() => [R(C, {
6952
6952
  class: "flex-shrink-0",
6953
6953
  label: b(l)("menu.product.form.group.add"),
6954
6954
  "prepend-icon": "add",
6955
6955
  variant: "secondary",
6956
- onClick: R
6956
+ onClick: A
6957
6957
  }, null, 8, ["label"])]),
6958
- default: G(() => [A(ua, null, {
6958
+ default: G(() => [R(ua, null, {
6959
6959
  default: G(() => {
6960
6960
  var V;
6961
6961
  return [((V = p.value) == null ? void 0 : V.length) > 0 ? (U(), Z(T, {
6962
6962
  key: 0,
6963
6963
  "column-defs": v.value,
6964
- "column-visibility": S.value,
6964
+ "column-visibility": k.value,
6965
6965
  "row-data": p.value.map((j) => ({
6966
6966
  _id: j
6967
6967
  })),
@@ -7000,16 +7000,16 @@ const ca = /* @__PURE__ */ ve({
7000
7000
  }) {
7001
7001
  const {
7002
7002
  t: n
7003
- } = Se(), i = e, a = t, o = Te(), r = z(() => o.rules.item), l = z(() => r.value.inventory);
7003
+ } = ke(), i = e, a = t, o = Te(), r = z(() => o.rules.item), l = z(() => r.value.inventory);
7004
7004
  function s(_, y, g, v) {
7005
7005
  return !y || y && y.length === 0 ? [{
7006
7006
  _id: "",
7007
7007
  name: g || "",
7008
7008
  binding: _ || []
7009
- }] : y.map((S) => ({
7010
- _id: S.combinationKey || "",
7011
- name: wo(S.combinationKey || "", v),
7012
- binding: S.inventoryBindings || []
7009
+ }] : y.map((k) => ({
7010
+ _id: k.combinationKey || "",
7011
+ name: wo(k.combinationKey || "", v),
7012
+ binding: k.inventoryBindings || []
7013
7013
  }));
7014
7014
  }
7015
7015
  const u = z(() => {
@@ -7020,10 +7020,10 @@ const ca = /* @__PURE__ */ ve({
7020
7020
  return s(i.form.inventoryBindings || [], ((_ = i.form.variant) == null ? void 0 : _.variantCombinations) || [], u.value, o.variants);
7021
7021
  });
7022
7022
  function d(_, y) {
7023
- var R, M;
7023
+ var A, M;
7024
7024
  let g = ot.clone(i.form);
7025
7025
  const v = g.variant;
7026
- if ((((R = v == null ? void 0 : v.variantCombinations) == null ? void 0 : R.length) ?? 0) > 0 && v) {
7026
+ if ((((A = v == null ? void 0 : v.variantCombinations) == null ? void 0 : A.length) ?? 0) > 0 && v) {
7027
7027
  const O = v.variantCombinations.findIndex((x) => x.combinationKey === _);
7028
7028
  if (O < 0) return;
7029
7029
  const w = ot.clone(v.variantCombinations);
@@ -7071,9 +7071,9 @@ const ca = /* @__PURE__ */ ve({
7071
7071
  enableSorting: !1,
7072
7072
  cell: (_) => {
7073
7073
  const y = _.row.original;
7074
- return l.value ? A("div", {
7074
+ return l.value ? R("div", {
7075
7075
  class: "flex items-center justify-end"
7076
- }, [A(li, {
7076
+ }, [R(li, {
7077
7077
  name: y.name,
7078
7078
  initialValue: y.bindings ?? [],
7079
7079
  title: n("menu.inventory.dialog.title", {
@@ -7085,8 +7085,8 @@ const ca = /* @__PURE__ */ ve({
7085
7085
  }, {
7086
7086
  default: ({
7087
7087
  trigger: g
7088
- }) => A(H("fm-button"), {
7089
- variant: Rt.Tertiary,
7088
+ }) => R(H("fm-button"), {
7089
+ variant: At.Tertiary,
7090
7090
  prependIcon: "edit",
7091
7091
  textColor: pt.NeutralGray400,
7092
7092
  onClick: g
@@ -7122,7 +7122,7 @@ const ca = /* @__PURE__ */ ve({
7122
7122
  "onUpdate:inventory": (v) => {
7123
7123
  d(g._id, v);
7124
7124
  }
7125
- }, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), A(b(Ja), {
7125
+ }, null, 8, ["title", "name", "bindingKey", "initialValue", "onUpdate:inventory"]))), 128)), R(b(Ja), {
7126
7126
  "row-data": m.value,
7127
7127
  onRowClick: p
7128
7128
  }, null, 8, ["row-data"])])])]),
@@ -7153,13 +7153,16 @@ const ca = /* @__PURE__ */ ve({
7153
7153
  },
7154
7154
  emits: ["update:form"],
7155
7155
  setup(e, { emit: t }) {
7156
- const n = e, i = rn(), a = Te(), o = So(), { t: r } = Se(), l = t, s = z(() => a.rules.item), u = z(() => {
7157
- var R, M;
7158
- const v = n.isOverride ? ((R = n.fallback) == null ? void 0 : R.unit) ?? ((M = n.fallback) == null ? void 0 : M.perXUnit) : void 0, S = n.form.unit ?? n.form.perXUnit ?? v;
7159
- return S != null;
7156
+ const n = e, i = rn(), a = Te(), o = ko(), { t: r } = ke(), l = t, s = z(() => a.rules.item), u = z(() => {
7157
+ var A, M;
7158
+ const v = n.isOverride ? ((A = n.fallback) == null ? void 0 : A.unit) ?? ((M = n.fallback) == null ? void 0 : M.perXUnit) : void 0, k = n.form.unit ?? n.form.perXUnit ?? v;
7159
+ return k != null;
7160
7160
  }), m = (v) => {
7161
7161
  l("update:form", "unit", v ? "" : void 0), l("update:form", "perXUnit", v ? 0 : void 0);
7162
- }, d = z(() => Pn.setCoreStore(i).taxSetting()), c = z(() => {
7162
+ }, d = z(() => {
7163
+ const v = a.isV4;
7164
+ return Pn.setCoreStore(i).taxSetting(v);
7165
+ }), c = z(() => {
7163
7166
  var v;
7164
7167
  return Pn.getSelectedTax(
7165
7168
  n.form.taxes,
@@ -7168,14 +7171,14 @@ const ca = /* @__PURE__ */ ve({
7168
7171
  );
7169
7172
  });
7170
7173
  function p(v) {
7171
- const S = v.replace(/[^0-9.]/g, "");
7174
+ const k = v.replace(/[^0-9.]/g, "");
7172
7175
  if (!v) return !1;
7173
- l("update:form", "perXUnit", parseFloat(S));
7176
+ l("update:form", "perXUnit", parseFloat(k));
7174
7177
  }
7175
7178
  function E(v) {
7176
7179
  if (!v && n.form.perXUnit) {
7177
- const [S, R] = n.form.perXUnit.toString().split(".");
7178
- if (R && R.length > 4) {
7180
+ const [k, A] = n.form.perXUnit.toString().split(".");
7181
+ if (A && A.length > 4) {
7179
7182
  const O = (typeof n.form.perXUnit == "string" ? parseFloat(n.form.perXUnit) : n.form.perXUnit).toFixed(4);
7180
7183
  l("update:form", "perXUnit", parseFloat(O));
7181
7184
  }
@@ -7183,7 +7186,7 @@ const ca = /* @__PURE__ */ ve({
7183
7186
  }
7184
7187
  const _ = te(!1);
7185
7188
  async function y() {
7186
- var S, R, M, O, w, x, k;
7189
+ var k, A, M, O, w, x, S;
7187
7190
  if (!(n.form.name || "")) {
7188
7191
  const I = document.getElementById("product-name");
7189
7192
  if (I) {
@@ -7202,11 +7205,11 @@ const ca = /* @__PURE__ */ ve({
7202
7205
  number: I
7203
7206
  }).toObject()
7204
7207
  );
7205
- }), await ((k = Ge.getItemPricing) == null ? void 0 : k.call(
7208
+ }), await ((S = Ge.getItemPricing) == null ? void 0 : S.call(
7206
7209
  Ge,
7207
7210
  {
7208
7211
  name: n.form.name || "",
7209
- lat: (M = (R = (S = i.currentRestaurant) == null ? void 0 : S.value) == null ? void 0 : R.profile.address.coordinates) == null ? void 0 : M[1],
7212
+ lat: (M = (A = (k = i.currentRestaurant) == null ? void 0 : k.value) == null ? void 0 : A.profile.address.coordinates) == null ? void 0 : M[1],
7210
7213
  lon: (x = (w = (O = i.currentRestaurant) == null ? void 0 : O.value) == null ? void 0 : w.profile.address.coordinates) == null ? void 0 : x[0]
7211
7214
  },
7212
7215
  !0
@@ -7219,30 +7222,30 @@ const ca = /* @__PURE__ */ ve({
7219
7222
  var v;
7220
7223
  return ((v = a.currentCatalog) == null ? void 0 : v.usePriceTiers) ?? [];
7221
7224
  });
7222
- return (v, S) => {
7223
- const R = H("fm-select"), M = H("FmButton"), O = H("fm-checkbox"), w = H("fm-text-field"), x = fo("tooltip");
7225
+ return (v, k) => {
7226
+ const A = H("fm-select"), M = H("FmButton"), O = H("fm-checkbox"), w = H("fm-text-field"), x = fo("tooltip");
7224
7227
  return U(), Z(lt, {
7225
7228
  title: b(r)("menu.product.form.price.title")
7226
7229
  }, {
7227
7230
  default: G(() => {
7228
- var k;
7231
+ var S;
7229
7232
  return [
7230
7233
  B("div", Kc, [
7231
- A(Pt, {
7234
+ R(Pt, {
7232
7235
  disable: g.value.length > 0 && b(a).currentCatalog && !b(a).currentScheduler,
7233
7236
  min: 0,
7234
7237
  "model-value": v.form.price || null,
7235
- placeholder: (k = v.fallback) != null && k.price ? b(Bt)(v.fallback.price, !1) : void 0,
7238
+ placeholder: (S = v.fallback) != null && S.price ? b(Bt)(v.fallback.price, !1) : void 0,
7236
7239
  rules: [
7237
7240
  s.value.price ? (I) => !!I || b(r)("menu.product.form.price.fields.selling_price.required") : void 0
7238
7241
  ].filter(b(sn).isSet),
7239
7242
  class: "w-[258px] xs:w-full",
7240
7243
  label: b(r)("menu.product.form.price.fields.selling_price.label"),
7241
7244
  "show-currency": "",
7242
- "onUpdate:modelValue": S[0] || (S[0] = (I) => I && l("update:form", "price", I))
7245
+ "onUpdate:modelValue": k[0] || (k[0] = (I) => I && l("update:form", "price", I))
7243
7246
  }, {
7244
7247
  append: G(() => [
7245
- Xt(A(Ho, {
7248
+ Xt(R(Ho, {
7246
7249
  "pure-styling": "",
7247
7250
  onClick: y
7248
7251
  }, null, 512), [
@@ -7251,7 +7254,7 @@ const ca = /* @__PURE__ */ ve({
7251
7254
  ]),
7252
7255
  _: 1
7253
7256
  }, 8, ["disable", "model-value", "placeholder", "rules", "label"]),
7254
- A(R, {
7257
+ R(A, {
7255
7258
  disabled: !s.value.tax || !d.value.systemCode,
7256
7259
  items: d.value.countryTaxOptions,
7257
7260
  label: d.value.systemCode ? b(r)("menu.product.form.price.fields.tax.label_with_code", {
@@ -7261,7 +7264,7 @@ const ca = /* @__PURE__ */ ve({
7261
7264
  placeholder: "--",
7262
7265
  class: "flex-1",
7263
7266
  "shift-menu": "",
7264
- "onUpdate:modelValue": S[1] || (S[1] = (I) => l("update:form", "taxes", [b(Pn).decodeTax(I)]))
7267
+ "onUpdate:modelValue": k[1] || (k[1] = (I) => l("update:form", "taxes", [b(Pn).decodeTax(I)]))
7265
7268
  }, null, 8, ["disabled", "items", "label", "model-value"])
7266
7269
  ]),
7267
7270
  !v.isOverride && b(a).isV4 ? (U(), Z(_t, {
@@ -7270,7 +7273,7 @@ const ca = /* @__PURE__ */ ve({
7270
7273
  description: b(r)("menu.price_tier.description")
7271
7274
  }, {
7272
7275
  append: G(() => [
7273
- A(M, {
7276
+ R(M, {
7274
7277
  label: b(r)("menu.price_tier.add_price_group"),
7275
7278
  icon: "add",
7276
7279
  variant: "secondary",
@@ -7285,29 +7288,29 @@ const ca = /* @__PURE__ */ ve({
7285
7288
  "price-tiers": b(o).priceTiers.value,
7286
7289
  "model-value": v.form.priceTiers || ((I = v.fallback) == null ? void 0 : I.priceTiers) || {},
7287
7290
  "allow-negative-price": !1,
7288
- "onUpdate:modelValue": S[2] || (S[2] = (N) => l("update:form", "priceTiers", N))
7291
+ "onUpdate:modelValue": k[2] || (k[2] = (N) => l("update:form", "priceTiers", N))
7289
7292
  }, null, 8, ["price-tiers", "model-value"]))
7290
7293
  ];
7291
7294
  }),
7292
7295
  _: 1
7293
7296
  }, 8, ["label", "description"])) : se("", !0),
7294
- A(_t, {
7297
+ R(_t, {
7295
7298
  label: b(r)("menu.product.form.price.settings.title")
7296
7299
  }, {
7297
7300
  default: G(() => {
7298
7301
  var I, N, P;
7299
7302
  return [
7300
7303
  B("div", Yc, [
7301
- A(O, {
7304
+ R(O, {
7302
7305
  disabled: !s.value.openPrice || v.isAddon,
7303
7306
  "model-value": v.form.openPrice ?? ((I = v.fallback) == null ? void 0 : I.openPrice) ?? !1,
7304
7307
  value: v.form.openPrice,
7305
7308
  label: b(r)("menu.product.form.price.settings.open_price.label"),
7306
7309
  sublabel: b(r)("menu.product.form.price.settings.open_price.sublabel"),
7307
- "onUpdate:modelValue": S[3] || (S[3] = (D) => l("update:form", "openPrice", D))
7310
+ "onUpdate:modelValue": k[3] || (k[3] = (D) => l("update:form", "openPrice", D))
7308
7311
  }, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
7309
7312
  B("div", Xc, [
7310
- A(O, {
7313
+ R(O, {
7311
7314
  disabled: !s.value.unit || v.isAddon,
7312
7315
  "model-value": u.value,
7313
7316
  value: u.value,
@@ -7318,7 +7321,7 @@ const ca = /* @__PURE__ */ ve({
7318
7321
  u.value ? (U(), re("div", qc, [
7319
7322
  B("p", Jc, ye(b(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
7320
7323
  B("div", Zc, [
7321
- A(w, {
7324
+ R(w, {
7322
7325
  disabled: !s.value.unit,
7323
7326
  "model-value": v.form.perXUnit || ((N = v.fallback) == null ? void 0 : N.perXUnit) || null,
7324
7327
  rules: [
@@ -7333,45 +7336,45 @@ const ca = /* @__PURE__ */ ve({
7333
7336
  }, null, 8, ["disabled", "model-value", "rules", "placeholder"])
7334
7337
  ]),
7335
7338
  B("div", Qc, [
7336
- A(w, {
7339
+ R(w, {
7337
7340
  disabled: !s.value.unit,
7338
7341
  "model-value": v.form.unit || ((P = v.fallback) == null ? void 0 : P.unit) || null,
7339
7342
  rules: [
7340
7343
  (D) => !!D || b(r)("menu.product.form.price.settings.sell_by_unit.unit.required")
7341
7344
  ],
7342
7345
  placeholder: b(r)("menu.product.form.price.settings.sell_by_unit.unit.placeholder"),
7343
- "onUpdate:modelValue": S[4] || (S[4] = (D) => l("update:form", "unit", D))
7346
+ "onUpdate:modelValue": k[4] || (k[4] = (D) => l("update:form", "unit", D))
7344
7347
  }, null, 8, ["disabled", "model-value", "rules", "placeholder"])
7345
7348
  ])
7346
7349
  ])) : se("", !0)
7347
7350
  ]),
7348
7351
  s.value.costing ? (U(), re("div", ed, [
7349
- A(O, {
7352
+ R(O, {
7350
7353
  "model-value": !!v.form.costing,
7351
7354
  value: !!v.form.costing,
7352
7355
  label: b(r)("menu.product.form.price.settings.track_costing.label"),
7353
- "onUpdate:modelValue": S[5] || (S[5] = (D) => l("update:form", "costing", D ? b($e.Dinero).zero().toObject() : void 0))
7356
+ "onUpdate:modelValue": k[5] || (k[5] = (D) => l("update:form", "costing", D ? b($e.Dinero).zero().toObject() : void 0))
7354
7357
  }, null, 8, ["model-value", "value", "label"]),
7355
7358
  v.form.costing ? (U(), re("div", td, [
7356
7359
  B("div", nd, [
7357
- A(Pt, {
7360
+ R(Pt, {
7358
7361
  class: "w-full",
7359
7362
  min: 0,
7360
7363
  "model-value": v.form.costing || null,
7361
7364
  nullable: "",
7362
7365
  "show-currency": "",
7363
- "onUpdate:modelValue": S[6] || (S[6] = (D) => l("update:form", "costing", D ?? b($e.Dinero).zero().toObject()))
7366
+ "onUpdate:modelValue": k[6] || (k[6] = (D) => l("update:form", "costing", D ?? b($e.Dinero).zero().toObject()))
7364
7367
  }, null, 8, ["model-value"])
7365
7368
  ])
7366
7369
  ])) : se("", !0)
7367
7370
  ])) : se("", !0),
7368
7371
  s.value.minPrice ? (U(), re("div", id, [
7369
- A(O, {
7372
+ R(O, {
7370
7373
  disabled: !s.value.minPrice || v.isAddon,
7371
7374
  "model-value": !!v.form.minPrice,
7372
7375
  value: !!v.form.minPrice,
7373
7376
  label: b(r)("menu.product.form.price.settings.min_price.label"),
7374
- "onUpdate:modelValue": S[7] || (S[7] = (D) => l("update:form", "minPrice", D ? b($e.Dinero).zero().toObject() : void 0))
7377
+ "onUpdate:modelValue": k[7] || (k[7] = (D) => l("update:form", "minPrice", D ? b($e.Dinero).zero().toObject() : void 0))
7375
7378
  }, null, 8, ["disabled", "model-value", "value", "label"]),
7376
7379
  B("div", od, [
7377
7380
  B("div", ad, [
@@ -7382,7 +7385,7 @@ const ca = /* @__PURE__ */ ve({
7382
7385
  "model-value": v.form.minPrice || null,
7383
7386
  class: "flex-1",
7384
7387
  "show-currency": "",
7385
- "onUpdate:modelValue": S[8] || (S[8] = (D) => l("update:form", "minPrice", D ?? b($e.Dinero).zero().toObject()))
7388
+ "onUpdate:modelValue": k[8] || (k[8] = (D) => l("update:form", "minPrice", D ?? b($e.Dinero).zero().toObject()))
7386
7389
  }, null, 8, ["max", "model-value"])) : se("", !0)
7387
7390
  ])
7388
7391
  ])
@@ -7405,7 +7408,7 @@ const ca = /* @__PURE__ */ ve({
7405
7408
  applyProduct: { type: Boolean }
7406
7409
  },
7407
7410
  setup(e) {
7408
- const { t } = Se(), n = e, i = Ct(kt(Ze())), a = z(
7411
+ const { t } = ke(), n = e, i = Ct(St(Ze())), a = z(
7409
7412
  () => n.initialValue ? t("menu.print_dept.update") : t("menu.print_dept.add")
7410
7413
  ), o = z(
7411
7414
  () => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
@@ -7448,8 +7451,8 @@ const ca = /* @__PURE__ */ ve({
7448
7451
  ), (d, c) => {
7449
7452
  const p = H("fm-text-field"), E = H("fm-button"), _ = H("fm-side-sheet");
7450
7453
  return U(), re(Ue, null, [
7451
- Re(d.$slots, "default", { trigger: u }),
7452
- A(_, {
7454
+ Ae(d.$slots, "default", { trigger: u }),
7455
+ R(_, {
7453
7456
  id: "variant-form",
7454
7457
  modelValue: s.value,
7455
7458
  "onUpdate:modelValue": c[3] || (c[3] = (y) => s.value = y),
@@ -7466,14 +7469,14 @@ const ca = /* @__PURE__ */ ve({
7466
7469
  ]),
7467
7470
  "side-sheet-footer": G(() => [
7468
7471
  B("div", ud, [
7469
- A(E, {
7472
+ R(E, {
7470
7473
  label: o.value,
7471
7474
  loading: l.value,
7472
7475
  size: "lg",
7473
7476
  type: "submit",
7474
7477
  variant: "primary"
7475
7478
  }, null, 8, ["label", "loading"]),
7476
- A(E, {
7479
+ R(E, {
7477
7480
  label: b(t)("menu.common.actions.cancel"),
7478
7481
  size: "lg",
7479
7482
  variant: "tertiary",
@@ -7483,7 +7486,7 @@ const ca = /* @__PURE__ */ ve({
7483
7486
  ]),
7484
7487
  default: G(() => [
7485
7488
  B("div", ld, [
7486
- A(p, {
7489
+ R(p, {
7487
7490
  modelValue: r.value.name,
7488
7491
  "onUpdate:modelValue": c[0] || (c[0] = (y) => r.value.name = y),
7489
7492
  rules: [
@@ -7520,7 +7523,7 @@ const ca = /* @__PURE__ */ ve({
7520
7523
  },
7521
7524
  emits: ["update:form", "replace:form"],
7522
7525
  setup(e, { emit: t }) {
7523
- const n = e, i = Te(), { t: a } = Se(), o = t;
7526
+ const n = e, i = Te(), { t: a } = ke(), o = t;
7524
7527
  function r() {
7525
7528
  return {
7526
7529
  ...qe.generator.initMenuV4PrintSetting(),
@@ -7534,7 +7537,7 @@ const ca = /* @__PURE__ */ ve({
7534
7537
  }), m = z(() => {
7535
7538
  var g;
7536
7539
  return u.value ? s.value.reduce(
7537
- (v, { _id: S }) => (v.includes(S) || (v = [...v, S]), v),
7540
+ (v, { _id: k }) => (v.includes(k) || (v = [...v, k]), v),
7538
7541
  [...((g = n.form.print) == null ? void 0 : g.department) ?? []]
7539
7542
  ) : s.value.map(({ _id: v }) => v);
7540
7543
  }), d = z(() => s.value.reduce((g, v) => (g[v._id] = v.name, g), {}));
@@ -7557,18 +7560,18 @@ const ca = /* @__PURE__ */ ve({
7557
7560
  ...r(),
7558
7561
  ...n.form.print,
7559
7562
  department: g.filter((v) => {
7560
- var S;
7561
- return (((S = n.form.print) == null ? void 0 : S.department) ?? []).includes(v);
7563
+ var k;
7564
+ return (((k = n.form.print) == null ? void 0 : k.department) ?? []).includes(v);
7562
7565
  })
7563
7566
  });
7564
7567
  }
7565
7568
  function _(g, v) {
7566
- var R, M;
7567
- let S = [...((M = (R = n.form) == null ? void 0 : R.print) == null ? void 0 : M.department) ?? []];
7568
- v && !S.includes(g) ? S = [...S, g] : v || (S = S.filter((O) => O !== g)), o("update:form", "print", {
7569
+ var A, M;
7570
+ let k = [...((M = (A = n.form) == null ? void 0 : A.print) == null ? void 0 : M.department) ?? []];
7571
+ v && !k.includes(g) ? k = [...k, g] : v || (k = k.filter((O) => O !== g)), o("update:form", "print", {
7569
7572
  ...r(),
7570
7573
  ...n.form.print,
7571
- department: S
7574
+ department: k
7572
7575
  });
7573
7576
  }
7574
7577
  const y = z(() => [
@@ -7587,7 +7590,7 @@ const ca = /* @__PURE__ */ ve({
7587
7590
  () => s.value.length,
7588
7591
  () => _(s.value[s.value.length - 1]._id, !0)
7589
7592
  ), (g, v) => {
7590
- const S = H("fm-switch"), R = H("fm-radio"), M = H("fm-radio-group"), O = H("fm-button"), w = H("fm-checkbox");
7593
+ const k = H("fm-switch"), A = H("fm-radio"), M = H("fm-radio-group"), O = H("fm-button"), w = H("fm-checkbox");
7591
7594
  return U(), Z(lt, {
7592
7595
  title: b(a)("menu.product.form.print.title")
7593
7596
  }, {
@@ -7599,10 +7602,10 @@ const ca = /* @__PURE__ */ ve({
7599
7602
  label: b(a)("menu.product.form.print.config.label")
7600
7603
  }, {
7601
7604
  default: G(() => {
7602
- var k;
7605
+ var S;
7603
7606
  return [
7604
- A(S, {
7605
- "model-value": !((k = g.form.print) != null && k.toRoot),
7607
+ R(k, {
7608
+ "model-value": !((S = g.form.print) != null && S.toRoot),
7606
7609
  label: b(a)("menu.product.form.print.config.group_parent.label"),
7607
7610
  "label-placement": "right",
7608
7611
  sublabel: b(a)("menu.product.form.print.config.group_parent.sublabel"),
@@ -7612,43 +7615,43 @@ const ca = /* @__PURE__ */ ve({
7612
7615
  }),
7613
7616
  _: 1
7614
7617
  }, 8, ["label"])) : se("", !0),
7615
- A(M, {
7618
+ R(M, {
7616
7619
  label: b(a)("menu.product.form.print.kds.label"),
7617
7620
  "model-value": ((x = g.form.print) == null ? void 0 : x.sequential) ?? !1,
7618
- "onUpdate:modelValue": v[1] || (v[1] = (k) => p(k))
7621
+ "onUpdate:modelValue": v[1] || (v[1] = (S) => p(S))
7619
7622
  }, {
7620
7623
  default: G(() => [
7621
7624
  B("div", md, [
7622
- (U(!0), re(Ue, null, at(y.value, (k, I) => (U(), Z(R, {
7625
+ (U(!0), re(Ue, null, at(y.value, (S, I) => (U(), Z(A, {
7623
7626
  key: I,
7624
- label: k.label,
7625
- sublabel: k.description,
7626
- value: k.value
7627
+ label: S.label,
7628
+ sublabel: S.description,
7629
+ value: S.value
7627
7630
  }, null, 8, ["label", "sublabel", "value"]))), 128))
7628
7631
  ])
7629
7632
  ]),
7630
7633
  _: 1
7631
7634
  }, 8, ["label", "model-value"]),
7632
- A(_t, {
7635
+ R(_t, {
7633
7636
  label: b(a)("menu.product.form.print.routes.label")
7634
7637
  }, {
7635
7638
  default: G(() => [
7636
- m.value.length ? (U(), Z(b(ko), {
7639
+ m.value.length ? (U(), Z(b(So), {
7637
7640
  key: 0,
7638
- "item-key": (k) => k,
7641
+ "item-key": (S) => S,
7639
7642
  "model-value": m.value,
7640
7643
  handle: ".handle",
7641
- "onUpdate:modelValue": v[3] || (v[3] = (k) => E(k)),
7644
+ "onUpdate:modelValue": v[3] || (v[3] = (S) => E(S)),
7642
7645
  class: "space-y-16"
7643
7646
  }, {
7644
- item: G(({ element: k }) => {
7647
+ item: G(({ element: S }) => {
7645
7648
  var I, N, P, D, C;
7646
7649
  return [
7647
7650
  B("div", pd, [
7648
7651
  B("div", fd, [
7649
7652
  u.value ? (U(), Z(O, {
7650
7653
  key: 0,
7651
- disabled: !((N = (I = n.form.print) == null ? void 0 : I.department) != null && N.includes(k)),
7654
+ disabled: !((N = (I = n.form.print) == null ? void 0 : I.department) != null && N.includes(S)),
7652
7655
  class: "handle",
7653
7656
  "prepend-icon": "drag_handle",
7654
7657
  variant: "tertiary",
@@ -7656,28 +7659,28 @@ const ca = /* @__PURE__ */ ve({
7656
7659
  }, ["stop"]))
7657
7660
  }, null, 8, ["disabled"])) : se("", !0)
7658
7661
  ]),
7659
- A(w, {
7660
- id: k,
7661
- "data-checked": (D = (P = n.form.print) == null ? void 0 : P.department) == null ? void 0 : D.includes(k),
7662
- label: d.value[k],
7663
- "model-value": (((C = n.form.print) == null ? void 0 : C.department) ?? []).includes(k),
7664
- value: k,
7662
+ R(w, {
7663
+ id: S,
7664
+ "data-checked": (D = (P = n.form.print) == null ? void 0 : P.department) == null ? void 0 : D.includes(S),
7665
+ label: d.value[S],
7666
+ "model-value": (((C = n.form.print) == null ? void 0 : C.department) ?? []).includes(S),
7667
+ value: S,
7665
7668
  class: "flex-1",
7666
- "onUpdate:modelValue": (T) => _(k, T)
7669
+ "onUpdate:modelValue": (T) => _(S, T)
7667
7670
  }, null, 8, ["id", "data-checked", "label", "model-value", "value", "onUpdate:modelValue"])
7668
7671
  ])
7669
7672
  ];
7670
7673
  }),
7671
7674
  _: 1
7672
7675
  }, 8, ["item-key", "model-value"])) : se("", !0),
7673
- A(b(dd), { "apply-product": !1 }, {
7674
- default: G(({ trigger: k }) => [
7676
+ R(b(dd), { "apply-product": !1 }, {
7677
+ default: G(({ trigger: S }) => [
7675
7678
  B("div", hd, [
7676
- A(O, {
7677
- variant: b(Rt).Secondary,
7679
+ R(O, {
7680
+ variant: b(At).Secondary,
7678
7681
  label: b(a)("menu.product.form.print.routes.add"),
7679
7682
  "prepend-icon": "add",
7680
- onClick: k
7683
+ onClick: S
7681
7684
  }, null, 8, ["variant", "label", "onClick"])
7682
7685
  ])
7683
7686
  ]),
@@ -7759,9 +7762,9 @@ const _d = /* @__PURE__ */ ve({
7759
7762
  setup(e, {
7760
7763
  emit: t
7761
7764
  }) {
7762
- const n = e, i = Te(), a = z(() => i.rules.item), o = Ct(kt(Ze())), {
7765
+ const n = e, i = Te(), a = z(() => i.rules.item), o = Ct(St(Ze())), {
7763
7766
  t: r
7764
- } = Se(), l = t, {
7767
+ } = ke(), l = t, {
7765
7768
  hasVariant: s,
7766
7769
  takeaways: u
7767
7770
  } = vd(n, l, a), m = z(() => [n.isOverride ? {
@@ -7828,7 +7831,7 @@ const _d = /* @__PURE__ */ ve({
7828
7831
  title: b(r)("menu.product.form.takeaway.title"),
7829
7832
  "sub-title": b(r)("menu.product.form.takeaway.subtitle")
7830
7833
  }, {
7831
- default: G(() => [A(E, {
7834
+ default: G(() => [R(E, {
7832
7835
  columnDefs: d.value,
7833
7836
  "page-size": b(u).length,
7834
7837
  "row-data": b(u),
@@ -7841,16 +7844,16 @@ const _d = /* @__PURE__ */ ve({
7841
7844
  }), bd = {
7842
7845
  key: 0,
7843
7846
  class: "flex flex-col space-y-16 h-[440px]"
7844
- }, yd = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, wd = { class: "flex justify-between pb-16" }, Ed = { class: "flex gap-8" }, Sd = {
7847
+ }, yd = { class: "flex-1 flex-shrink space-y-8 min-h-0 overflow-y-scroll p-8" }, wd = { class: "flex justify-between pb-16" }, Ed = { class: "flex gap-8" }, kd = {
7845
7848
  key: 1,
7846
7849
  class: "flex flex-col items-center space-y-16"
7847
- }, kd = { class: "flex flex-col items-center space-y-4 w-full" }, Cd = { class: "fm-typo-en-title-sm-600" }, Rd = { class: "text-fm-color-typo-secondary" }, Ad = /* @__PURE__ */ ve({
7850
+ }, Sd = { class: "flex flex-col items-center space-y-4 w-full" }, Cd = { class: "fm-typo-en-title-sm-600" }, Ad = { class: "text-fm-color-typo-secondary" }, Rd = /* @__PURE__ */ ve({
7848
7851
  __name: "SelectVariantDialog",
7849
7852
  props: {
7850
7853
  selectedVariants: {}
7851
7854
  },
7852
7855
  setup(e) {
7853
- const t = st(), { emitData: n, emitAction: i } = bo(), a = Te(), { t: o } = Se(), r = e, l = z(() => a.variants.map((d) => ({
7856
+ const t = st(), { emitData: n, emitAction: i } = bo(), a = Te(), { t: o } = ke(), r = e, l = z(() => a.variants.map((d) => ({
7854
7857
  label: d.name,
7855
7858
  value: d._id,
7856
7859
  disabled: !1
@@ -7861,7 +7864,7 @@ const _d = /* @__PURE__ */ ve({
7861
7864
  const p = H("FmSearch"), E = H("FmCheckbox"), _ = H("FmButton");
7862
7865
  return l.value.length > 0 ? (U(), re("div", bd, [
7863
7866
  B("div", null, [
7864
- A(p, {
7867
+ R(p, {
7865
7868
  autofocus: "",
7866
7869
  modelValue: u.value,
7867
7870
  "onUpdate:modelValue": c[0] || (c[0] = (y) => u.value = y),
@@ -7873,7 +7876,7 @@ const _d = /* @__PURE__ */ ve({
7873
7876
  (U(!0), re(Ue, null, at(l.value, (y) => (U(), re("div", {
7874
7877
  key: y.value
7875
7878
  }, [
7876
- Xt(A(E, {
7879
+ Xt(R(E, {
7877
7880
  modelValue: s.value,
7878
7881
  "onUpdate:modelValue": [
7879
7882
  c[1] || (c[1] = (g) => s.value = g),
@@ -7882,13 +7885,13 @@ const _d = /* @__PURE__ */ ve({
7882
7885
  label: y.label,
7883
7886
  value: y.value
7884
7887
  }, null, 8, ["modelValue", "label", "value"]), [
7885
- [kn, y.label.toLowerCase().includes(u.value.toLowerCase())]
7888
+ [Sn, y.label.toLowerCase().includes(u.value.toLowerCase())]
7886
7889
  ])
7887
7890
  ]))), 128))
7888
7891
  ])
7889
7892
  ]),
7890
7893
  B("div", wd, [
7891
- A(b(Ri), null, {
7894
+ R(b(Ai), null, {
7892
7895
  default: G(({ trigger: y }) => [
7893
7896
  b(a).rules.item.variant ? (U(), Z(_, {
7894
7897
  key: 0,
@@ -7901,25 +7904,25 @@ const _d = /* @__PURE__ */ ve({
7901
7904
  _: 1
7902
7905
  }),
7903
7906
  B("div", Ed, [
7904
- A(_, {
7907
+ R(_, {
7905
7908
  label: b(o)("menu.common.actions.cancel"),
7906
7909
  variant: "tertiary",
7907
7910
  onClick: c[3] || (c[3] = (y) => b(t).close())
7908
7911
  }, null, 8, ["label"]),
7909
- A(_, {
7912
+ R(_, {
7910
7913
  label: b(o)("menu.common.actions.confirm"),
7911
7914
  onClick: c[4] || (c[4] = (y) => m())
7912
7915
  }, null, 8, ["label"])
7913
7916
  ])
7914
7917
  ])
7915
- ])) : (U(), re("div", Sd, [
7916
- B("div", kd, [
7918
+ ])) : (U(), re("div", kd, [
7919
+ B("div", Sd, [
7917
7920
  B("p", Cd, ye(b(o)("menu.common.empty.no_variant.title")), 1),
7918
- B("p", Rd, ye(b(o)("menu.common.empty.no_variant.subtitle")), 1)
7921
+ B("p", Ad, ye(b(o)("menu.common.empty.no_variant.subtitle")), 1)
7919
7922
  ]),
7920
- A(b(Ri), null, {
7923
+ R(b(Ai), null, {
7921
7924
  default: G(({ trigger: y }) => [
7922
- A(_, {
7925
+ R(_, {
7923
7926
  label: b(o)("menu.variant.add"),
7924
7927
  icon: "add",
7925
7928
  onClick: (g) => y()
@@ -7955,30 +7958,30 @@ const _d = /* @__PURE__ */ ve({
7955
7958
  setup(e, {
7956
7959
  emit: t
7957
7960
  }) {
7958
- const n = e, i = Te(), a = Si(), o = Ze(), r = st(), {
7961
+ const n = e, i = Te(), a = ki(), o = Ze(), r = st(), {
7959
7962
  t: l
7960
- } = Se(), s = z(() => i.rules.item), u = z(() => s.value.minPrice && !!n.form.minPrice), m = z(() => !i.state.currentCatalogId), d = z(() => i.variants.reduce((k, I) => (k[I._id] = I, k), {}));
7963
+ } = ke(), s = z(() => i.rules.item), u = z(() => s.value.minPrice && !!n.form.minPrice), m = z(() => !i.state.currentCatalogId), d = z(() => i.variants.reduce((S, I) => (S[I._id] = I, S), {}));
7961
7964
  te(!1);
7962
7965
  const c = t;
7963
- function p(k) {
7966
+ function p(S) {
7964
7967
  const I = ot.clone(n.form);
7965
7968
  for (const {
7966
7969
  key: N,
7967
7970
  value: P
7968
- } of k)
7971
+ } of S)
7969
7972
  I[N] = P;
7970
7973
  c("replace:form", I);
7971
7974
  }
7972
- z(() => i.variants.map((k) => ({
7973
- label: k.name,
7974
- value: k._id,
7975
+ z(() => i.variants.map((S) => ({
7976
+ label: S.name,
7977
+ value: S._id,
7975
7978
  disabled: !1
7976
7979
  })));
7977
- function E(k) {
7980
+ function E(S) {
7978
7981
  var N;
7979
- const I = y(k.combinationKey || "");
7982
+ const I = y(S.combinationKey || "");
7980
7983
  return {
7981
- ...k,
7984
+ ...S,
7982
7985
  price: I == null ? void 0 : I.price,
7983
7986
  inventoryBindings: (I == null ? void 0 : I.inventoryBindings) || n.form.inventoryBindings,
7984
7987
  takeawayUsed: (I == null ? void 0 : I.takeawayUsed) || n.form.takeawayUsed,
@@ -7989,24 +7992,24 @@ const _d = /* @__PURE__ */ ve({
7989
7992
  };
7990
7993
  }
7991
7994
  function _() {
7992
- var k;
7995
+ var S;
7993
7996
  r.open({
7994
7997
  title: "Add variant",
7995
- contentComponent: Ad,
7998
+ contentComponent: Rd,
7996
7999
  contentComponentProps: {
7997
- selectedVariants: ((k = n.form.variant) == null ? void 0 : k.variantGroupIds) ?? []
8000
+ selectedVariants: ((S = n.form.variant) == null ? void 0 : S.variantGroupIds) ?? []
7998
8001
  }
7999
8002
  }).onPrimary(async (I) => {
8000
- S(I, E);
8003
+ k(I, E);
8001
8004
  });
8002
8005
  }
8003
- function y(k) {
8006
+ function y(S) {
8004
8007
  var T, V;
8005
- const I = ((T = n.form.variant) == null ? void 0 : T.variantGroupIds) || [], N = (V = n.form.variant) == null ? void 0 : V.variantCombinations, C = k.split(/(?=variant)/g).map((j) => j.replace(/\/*$/, "")).filter((j) => I.some((le) => j.includes(le))).join("/");
8008
+ const I = ((T = n.form.variant) == null ? void 0 : T.variantGroupIds) || [], N = (V = n.form.variant) == null ? void 0 : V.variantCombinations, C = S.split(/(?=variant)/g).map((j) => j.replace(/\/*$/, "")).filter((j) => I.some((le) => j.includes(le))).join("/");
8006
8009
  return N == null ? void 0 : N.find((j) => j.combinationKey === C);
8007
8010
  }
8008
- const g = (k) => {
8009
- S(k);
8011
+ const g = (S) => {
8012
+ k(S);
8010
8013
  }, v = z(() => {
8011
8014
  var I;
8012
8015
  return (((I = n.form.variant) == null ? void 0 : I.variantCombinations) || []).map((N) => {
@@ -8027,9 +8030,9 @@ const _d = /* @__PURE__ */ ve({
8027
8030
  };
8028
8031
  });
8029
8032
  });
8030
- function S(k, I = (N) => N) {
8033
+ function k(S, I = (N) => N) {
8031
8034
  var D;
8032
- const N = k.filter((C) => !!C);
8035
+ const N = S.filter((C) => !!C);
8033
8036
  let P;
8034
8037
  if (N.length) {
8035
8038
  const C = N.map((V) => i.variants.find((j) => j._id === V)), T = qe.fullVariantCombination(C).map(({
@@ -8074,33 +8077,33 @@ const _d = /* @__PURE__ */ ve({
8074
8077
  }
8075
8078
  c("replace:form", a.initDynamicGroupItem(P));
8076
8079
  }
8077
- async function R(k, I, N) {
8080
+ async function A(S, I, N) {
8078
8081
  const P = ot.clone(n.form);
8079
- P.variant.variantCombinations[k][I] = N, p([{
8082
+ P.variant.variantCombinations[S][I] = N, p([{
8080
8083
  key: "variant",
8081
8084
  value: P.variant
8082
8085
  }]);
8083
8086
  }
8084
8087
  const M = z(() => {
8085
- var k;
8086
- return ((k = i.currentCatalog) == null ? void 0 : k.usePriceTiers) ?? [];
8088
+ var S;
8089
+ return ((S = i.currentCatalog) == null ? void 0 : S.usePriceTiers) ?? [];
8087
8090
  }), O = z(() => [{
8088
8091
  accessorKey: "combinationKey",
8089
8092
  header: () => l("menu.product.form.variant.columns.variant"),
8090
8093
  enableSorting: !1,
8091
- cell: (k) => n.fullCombinations[k.getValue()]
8094
+ cell: (S) => n.fullCombinations[S.getValue()]
8092
8095
  }, {
8093
8096
  accessorKey: "code",
8094
8097
  header: () => l("menu.product.form.variant.columns.code"),
8095
8098
  enableSorting: !1,
8096
- cell: (k) => {
8099
+ cell: (S) => {
8097
8100
  var C, T;
8098
- const I = k.getValue(), D = ((C = k.row.original.fallback) == null ? void 0 : C.code) ?? n.form.code ?? ((T = n.fallback) == null ? void 0 : T.code);
8099
- return A(Be.FmTextField, {
8101
+ const I = S.getValue(), D = ((C = S.row.original.fallback) == null ? void 0 : C.code) ?? n.form.code ?? ((T = n.fallback) == null ? void 0 : T.code);
8102
+ return R(Be.FmTextField, {
8100
8103
  modelValue: I,
8101
8104
  placeholder: D || l("menu.product.form.variant.placeholders.no_code"),
8102
8105
  "onUpdate:model-value": (V) => {
8103
- R(k.row.index, "code", jo(V, !0));
8106
+ A(S.row.index, "code", jo(V, !0));
8104
8107
  }
8105
8108
  }, null);
8106
8109
  }
@@ -8108,17 +8111,17 @@ const _d = /* @__PURE__ */ ve({
8108
8111
  accessorKey: "orderFrom",
8109
8112
  header: () => l("menu.product.form.variant.columns.order_from"),
8110
8113
  enableSorting: !1,
8111
- cell: (k) => {
8114
+ cell: (S) => {
8112
8115
  var D, C;
8113
- const I = k.getValue(), P = (D = k.row.original.fallback) == null ? void 0 : D.orderFrom;
8114
- return A(hi, {
8116
+ const I = S.getValue(), P = (D = S.row.original.fallback) == null ? void 0 : D.orderFrom;
8117
+ return R(hi, {
8115
8118
  modelValue: I,
8116
8119
  fallback: n.form.orderFrom ?? P ?? ((C = n.fallback) == null ? void 0 : C.orderFrom),
8117
8120
  disable: !s.value.orderFrom,
8118
8121
  required: s.value.orderFrom && s.value.orderFromActiveOnly,
8119
8122
  editActiveOnly: s.value.orderFromActiveOnly || !1,
8120
8123
  "onUpdate:model-value": (T) => {
8121
- R(k.row.index, "orderFrom", T);
8124
+ A(S.row.index, "orderFrom", T);
8122
8125
  },
8123
8126
  label: "",
8124
8127
  defaultLabel: "Follow general"
@@ -8129,40 +8132,40 @@ const _d = /* @__PURE__ */ ve({
8129
8132
  header: () => l("menu.product.form.variant.columns.price"),
8130
8133
  size: 200,
8131
8134
  enableSorting: !1,
8132
- cell: (k) => {
8135
+ cell: (S) => {
8133
8136
  var C, T, V;
8134
- const I = k.getValue(), N = k.row.original, D = ((C = N.fallback) == null ? void 0 : C.price) ?? n.form.price ?? ((T = n.fallback) == null ? void 0 : T.price);
8135
- return A("div", {
8137
+ const I = S.getValue(), N = S.row.original, D = ((C = N.fallback) == null ? void 0 : C.price) ?? n.form.price ?? ((T = n.fallback) == null ? void 0 : T.price);
8138
+ return R("div", {
8136
8139
  class: "flex items-center gap-8"
8137
- }, [A(Pt, {
8140
+ }, [R(Pt, {
8138
8141
  disable: M.value.length > 0 && i.currentCatalog && !i.currentScheduler,
8139
8142
  placeholder: D ? Bt(D) : void 0,
8140
8143
  modelValue: I,
8141
8144
  min: 0,
8142
8145
  "onUpdate:model-value": (j) => {
8143
- R(k.row.index, "price", j);
8146
+ A(S.row.index, "price", j);
8144
8147
  },
8145
8148
  nullable: !0,
8146
8149
  showCurrency: !1
8147
- }, null), i.isV4 && !n.isOverride && A(da, {
8150
+ }, null), i.isV4 && !n.isOverride && R(da, {
8148
8151
  "price-tiers": N.priceTiers,
8149
8152
  fallback: (V = N.fallback) == null ? void 0 : V.priceTiers,
8150
- "onUpdate:price-tiers": (j) => R(k.row.index, "priceTiers", j)
8153
+ "onUpdate:price-tiers": (j) => A(S.row.index, "priceTiers", j)
8151
8154
  }, null)]);
8152
8155
  }
8153
8156
  }, {
8154
8157
  accessorKey: "minPrice",
8155
8158
  header: () => l("menu.product.form.variant.columns.min_price"),
8156
8159
  enableSorting: !1,
8157
- cell: (k) => {
8160
+ cell: (S) => {
8158
8161
  var C, T, V;
8159
- const I = k.getValue(), N = k.row.original, D = ((C = N.fallback) == null ? void 0 : C.minPrice) ?? n.form.minPrice ?? ((T = n.fallback) == null ? void 0 : T.minPrice);
8160
- return A(Pt, {
8162
+ const I = S.getValue(), N = S.row.original, D = ((C = N.fallback) == null ? void 0 : C.minPrice) ?? n.form.minPrice ?? ((T = n.fallback) == null ? void 0 : T.minPrice);
8163
+ return R(Pt, {
8161
8164
  placeholder: D ? Bt(D) : void 0,
8162
8165
  modelValue: I,
8163
8166
  max: $e.Dinero.fromFdoDinero(N.price ?? ((V = N.fallback) == null ? void 0 : V.price) ?? $e.Dinero.zero().toObject()).toUnit(),
8164
8167
  "onUpdate:model-value": (j) => {
8165
- R(k.row.index, "minPrice", j);
8168
+ A(S.row.index, "minPrice", j);
8166
8169
  },
8167
8170
  nullable: !0,
8168
8171
  showCurrency: !1
@@ -8171,12 +8174,12 @@ const _d = /* @__PURE__ */ ve({
8171
8174
  }]), w = z(() => ({
8172
8175
  minPrice: u.value
8173
8176
  }));
8174
- function x(k) {
8175
- return k != null && k.length && k.length > i.rules.item.maxVariant ? l("menu.product.form.variant.validation.max_variants", {
8177
+ function x(S) {
8178
+ return S != null && S.length && S.length > i.rules.item.maxVariant ? l("menu.product.form.variant.validation.max_variants", {
8176
8179
  max: i.rules.item.maxVariant
8177
8180
  }) : !0;
8178
8181
  }
8179
- return (k, I) => {
8182
+ return (S, I) => {
8180
8183
  const N = H("fm-button"), P = H("fm-icon"), D = H("FmFormGroup"), C = H("fm-table");
8181
8184
  return U(), Z(lt, {
8182
8185
  title: b(l)("menu.product.form.variant.title"),
@@ -8191,14 +8194,14 @@ const _d = /* @__PURE__ */ ve({
8191
8194
  }, null, 8, ["label"])) : se("", !0)]),
8192
8195
  default: G(() => {
8193
8196
  var T;
8194
- return [B("div", Od, [A(D, {
8195
- "model-value": (T = k.form.variant) == null ? void 0 : T.variantGroupIds,
8197
+ return [B("div", Od, [R(D, {
8198
+ "model-value": (T = S.form.variant) == null ? void 0 : T.variantGroupIds,
8196
8199
  rules: [x]
8197
8200
  }, {
8198
8201
  default: G(() => {
8199
8202
  var V;
8200
- return [A(b(ko), {
8201
- "model-value": ((V = k.form.variant) == null ? void 0 : V.variantGroupIds) ?? [],
8203
+ return [R(b(So), {
8204
+ "model-value": ((V = S.form.variant) == null ? void 0 : V.variantGroupIds) ?? [],
8202
8205
  class: "space-y-16",
8203
8206
  group: "variants",
8204
8207
  handle: ".handle",
@@ -8209,16 +8212,16 @@ const _d = /* @__PURE__ */ ve({
8209
8212
  element: j
8210
8213
  }) => {
8211
8214
  var le;
8212
- return [B("div", Id, [A(N, {
8213
- variant: b(Rt).Tertiary,
8215
+ return [B("div", Id, [R(N, {
8216
+ variant: b(At).Tertiary,
8214
8217
  class: "handle",
8215
8218
  "prepend-icon": "drag_handle"
8216
- }, null, 8, ["variant"]), B("div", Td, [B("p", Md, ye((le = d.value[j]) == null ? void 0 : le.name), 1), A(P, {
8219
+ }, null, 8, ["variant"]), B("div", Td, [B("p", Md, ye((le = d.value[j]) == null ? void 0 : le.name), 1), R(P, {
8217
8220
  class: "cursor-pointer",
8218
8221
  name: "close",
8219
8222
  onClick: Cn((ce) => {
8220
- var Ae;
8221
- return S(((Ae = k.form.variant) == null ? void 0 : Ae.variantGroupIds.filter(($) => $ !== j)) ?? []);
8223
+ var Re;
8224
+ return k(((Re = S.form.variant) == null ? void 0 : Re.variantGroupIds.filter(($) => $ !== j)) ?? []);
8222
8225
  }, ["stop"])
8223
8226
  }, null, 8, ["onClick"])])])];
8224
8227
  }),
@@ -8226,7 +8229,7 @@ const _d = /* @__PURE__ */ ve({
8226
8229
  }, 8, ["model-value"])];
8227
8230
  }),
8228
8231
  _: 1
8229
- }, 8, ["model-value", "rules"]), A(ua, null, {
8232
+ }, 8, ["model-value", "rules"]), R(ua, null, {
8230
8233
  default: G(() => [v.value.length ? (U(), Z(C, {
8231
8234
  key: 0,
8232
8235
  class: "w-full",
@@ -8278,7 +8281,7 @@ const _d = /* @__PURE__ */ ve({
8278
8281
  emits: ["update:show", "submit:form"],
8279
8282
  setup(e, { emit: t }) {
8280
8283
  var yt, ut, ct, wt, xt;
8281
- const n = e, i = t, a = Te(), o = rn(), { t: r } = Se(), l = z(() => n.action === "add" ? r("menu.product.form.title.add") : r("menu.product.form.title.update")), s = z(() => a.rules.item), u = (f) => new Promise((h) => setTimeout(h, f));
8284
+ const n = e, i = t, a = Te(), o = rn(), { t: r } = ke(), l = z(() => n.action === "add" ? r("menu.product.form.title.add") : r("menu.product.form.title.update")), s = z(() => a.rules.item), u = (f) => new Promise((h) => setTimeout(h, f));
8282
8285
  $t(async () => {
8283
8286
  n.autoShow && (await u(100), d());
8284
8287
  });
@@ -8312,7 +8315,7 @@ const _d = /* @__PURE__ */ ve({
8312
8315
  immediate: !0
8313
8316
  }
8314
8317
  );
8315
- const _ = Si(), y = async ([f, h]) => {
8318
+ const _ = ki(), y = async ([f, h]) => {
8316
8319
  a.selectCatalog(f), a.selectScheduler(h), await ho(), _.update(p.value._id), setTimeout(() => {
8317
8320
  i("update:show", !1);
8318
8321
  }, 100);
@@ -8329,13 +8332,13 @@ const _d = /* @__PURE__ */ ve({
8329
8332
  immediate: !0
8330
8333
  }
8331
8334
  );
8332
- const S = (f, h) => {
8335
+ const k = (f, h) => {
8333
8336
  p.value = {
8334
8337
  ...ge(p.value),
8335
8338
  [f]: h
8336
8339
  };
8337
8340
  };
8338
- async function R() {
8341
+ async function A() {
8339
8342
  var f, h;
8340
8343
  c.value = p.value._id && M.value ? (await Ka(
8341
8344
  a.mergedMenu,
@@ -8360,7 +8363,7 @@ const _d = /* @__PURE__ */ ve({
8360
8363
  ), L = a.taxSetting.countryTaxOptions.find((X) => X.value === f);
8361
8364
  return L ? Pa(L.meta.rate) : "-";
8362
8365
  }
8363
- function k() {
8366
+ function S() {
8364
8367
  v.value = null, p.value.thumbnail = null;
8365
8368
  }
8366
8369
  const I = z(() => {
@@ -8472,7 +8475,7 @@ const _d = /* @__PURE__ */ ve({
8472
8475
  } : void 0
8473
8476
  });
8474
8477
  }
8475
- const Ae = te(
8478
+ const Re = te(
8476
8479
  p.value.takeawayUsed != null || (((ct = p.value.variant) == null ? void 0 : ct.variantCombinations) || []).some((f) => f.takeawayUsed != null) || !1
8477
8480
  );
8478
8481
  function $(f) {
@@ -8516,7 +8519,7 @@ const _d = /* @__PURE__ */ ve({
8516
8519
  Fe(() => {
8517
8520
  var f;
8518
8521
  return (f = p.value.price) == null ? void 0 : f.amount;
8519
- }, R, { deep: !0 }), Fe(
8522
+ }, A, { deep: !0 }), Fe(
8520
8523
  () => m.value,
8521
8524
  (f) => {
8522
8525
  f && (p.value = n.initialForm ? ge(n.initialForm) : {
@@ -8526,7 +8529,7 @@ const _d = /* @__PURE__ */ ve({
8526
8529
  }
8527
8530
  ), $t(() => {
8528
8531
  var f, h;
8529
- R();
8532
+ A();
8530
8533
  try {
8531
8534
  Ge.startSession({
8532
8535
  userId: ((f = o.sessionUser.value) == null ? void 0 : f.id) || "",
@@ -8542,21 +8545,21 @@ const _d = /* @__PURE__ */ ve({
8542
8545
  } catch (L) {
8543
8546
  console.log(L);
8544
8547
  }
8545
- }), Sa(() => {
8548
+ }), ka(() => {
8546
8549
  try {
8547
8550
  Ge.closeSession();
8548
8551
  } catch (f) {
8549
8552
  console.log(f);
8550
8553
  }
8551
8554
  });
8552
- const ae = Rr();
8555
+ const ae = Ar();
8553
8556
  $t(() => {
8554
8557
  ae.isUpdatingItem || (ae.isUpdatingItem = !0, ae.storedCatalogId = a.state.currentCatalogId, ae.storedSchedulerId = a.state.currentSchedulerId);
8555
8558
  });
8556
8559
  function oe() {
8557
8560
  ae.isUpdatingItem = !1, a.selectCatalog(ae.storedCatalogId), a.selectScheduler(ae.storedSchedulerId);
8558
8561
  }
8559
- function ke() {
8562
+ function Se() {
8560
8563
  M.value && [
8561
8564
  [N.value, P],
8562
8565
  [C.value, T]
@@ -8569,10 +8572,10 @@ const _d = /* @__PURE__ */ ve({
8569
8572
  }
8570
8573
  const { isAtMost: bt } = _o(), Lt = te(null), qt = $a(Lt);
8571
8574
  return (f, h) => (U(), re(Ue, null, [
8572
- Re(f.$slots, "trigger", ka(Ca({
8575
+ Ae(f.$slots, "trigger", Sa(Ca({
8573
8576
  trigger: d
8574
8577
  }))),
8575
- A(Ua, {
8578
+ R(Ua, {
8576
8579
  title: l.value,
8577
8580
  show: m.value,
8578
8581
  "primary-action": {
@@ -8584,11 +8587,11 @@ const _d = /* @__PURE__ */ ve({
8584
8587
  click: je
8585
8588
  }
8586
8589
  ],
8587
- onOnPrimary: ke,
8590
+ onOnPrimary: Se,
8588
8591
  onOnCancel: je
8589
8592
  }, {
8590
8593
  "append-title": G(() => [
8591
- b(bt)("sm") ? (U(), Z(Ai, {
8594
+ b(bt)("sm") ? (U(), Z(Ri, {
8592
8595
  key: 0,
8593
8596
  variant: "dialog",
8594
8597
  title: I.value.title,
@@ -8598,10 +8601,10 @@ const _d = /* @__PURE__ */ ve({
8598
8601
  default: G(() => {
8599
8602
  var L, Y;
8600
8603
  return [
8601
- b(bt)("sm") ? se("", !0) : (U(), Z(Ai, {
8604
+ b(bt)("sm") ? se("", !0) : (U(), Z(Ri, {
8602
8605
  key: 0,
8603
8606
  class: "fixed",
8604
- style: Ra({
8607
+ style: Aa({
8605
8608
  top: "85px",
8606
8609
  left: b(qt).right + "px"
8607
8610
  }),
@@ -8620,8 +8623,8 @@ const _d = /* @__PURE__ */ ve({
8620
8623
  "linked-status": E.value,
8621
8624
  "onUpdate:catalogAndScheduler": y
8622
8625
  }, null, 8, ["linked-status"])) : se("", !0),
8623
- A(Va, { "menu-store": b(a) }, null, 8, ["menu-store"]),
8624
- A(Tt, {
8626
+ R(Va, { "menu-store": b(a) }, null, 8, ["menu-store"]),
8627
+ R(Tt, {
8625
8628
  toggle: N.value,
8626
8629
  "onUpdate:toggle": [
8627
8630
  h[1] || (h[1] = (X) => N.value = X),
@@ -8632,16 +8635,16 @@ const _d = /* @__PURE__ */ ve({
8632
8635
  title: b(r)("menu.product.form.sections.general.title")
8633
8636
  }, {
8634
8637
  default: G(() => [
8635
- A(tc, {
8638
+ R(tc, {
8636
8639
  fallback: c.value,
8637
8640
  form: p.value,
8638
8641
  "is-addon": O.value,
8639
8642
  "is-override": M.value,
8640
8643
  "is-create": n.action === "add",
8641
8644
  thumbnail: v.value,
8642
- "onUpdate:form": S,
8645
+ "onUpdate:form": k,
8643
8646
  "onUpdate:thumbnail": h[0] || (h[0] = (X) => v.value = X),
8644
- "onReset:thumbnail": k
8647
+ "onReset:thumbnail": S
8645
8648
  }, null, 8, ["fallback", "form", "is-addon", "is-override", "is-create", "thumbnail"])
8646
8649
  ]),
8647
8650
  _: 1
@@ -8653,17 +8656,17 @@ const _d = /* @__PURE__ */ ve({
8653
8656
  "sub-title": b(r)("menu.product.form.sections.tagging.subtitle")
8654
8657
  }, {
8655
8658
  default: G(() => [
8656
- A(b(vo), {
8659
+ R(b(vo), {
8657
8660
  entity: "item",
8658
8661
  "model-value": p.value.customAttributes || {},
8659
- "onUpdate:modelValue": h[3] || (h[3] = (X) => S("customAttributes", X)),
8662
+ "onUpdate:modelValue": h[3] || (h[3] = (X) => k("customAttributes", X)),
8660
8663
  "value-options": D.value
8661
8664
  }, null, 8, ["model-value", "value-options"])
8662
8665
  ]),
8663
8666
  _: 1
8664
8667
  }, 8, ["title", "sub-title"])) : se("", !0),
8665
8668
  w.value ? (U(), re("div", Fd)) : se("", !0),
8666
- A(Tt, {
8669
+ R(Tt, {
8667
8670
  toggle: C.value,
8668
8671
  "onUpdate:toggle": [
8669
8672
  h[4] || (h[4] = (X) => C.value = X),
@@ -8674,12 +8677,12 @@ const _d = /* @__PURE__ */ ve({
8674
8677
  title: b(r)("menu.product.form.sections.price.title")
8675
8678
  }, {
8676
8679
  default: G(() => [
8677
- A(rd, {
8680
+ R(rd, {
8678
8681
  fallback: c.value,
8679
8682
  form: p.value,
8680
8683
  "is-addon": O.value,
8681
8684
  "is-override": M.value,
8682
- "onUpdate:form": S
8685
+ "onUpdate:form": k
8683
8686
  }, null, 8, ["fallback", "form", "is-addon", "is-override"])
8684
8687
  ]),
8685
8688
  _: 1
@@ -8697,20 +8700,20 @@ const _d = /* @__PURE__ */ ve({
8697
8700
  title: "Update print"
8698
8701
  }, {
8699
8702
  default: G(() => [
8700
- A(gd, {
8703
+ R(gd, {
8701
8704
  fallback: c.value,
8702
8705
  form: p.value,
8703
8706
  "full-combinations": g.value,
8704
8707
  "is-addon": O.value,
8705
8708
  "is-override": M.value,
8706
- "onUpdate:form": S,
8709
+ "onUpdate:form": k,
8707
8710
  "onReplace:form": h[6] || (h[6] = (X) => p.value = X)
8708
8711
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
8709
8712
  ]),
8710
8713
  _: 1
8711
8714
  }, 8, ["toggle"])) : se("", !0),
8712
8715
  M.value ? se("", !0) : (U(), re("div", xd)),
8713
- A(Tt, {
8716
+ R(Tt, {
8714
8717
  toggle: V.value,
8715
8718
  "onUpdate:toggle": [
8716
8719
  h[10] || (h[10] = (X) => V.value = X),
@@ -8721,13 +8724,13 @@ const _d = /* @__PURE__ */ ve({
8721
8724
  title: b(r)("menu.product.form.sections.variant.title")
8722
8725
  }, {
8723
8726
  default: G(() => [
8724
- A(Dd, {
8727
+ R(Dd, {
8725
8728
  fallback: c.value,
8726
8729
  form: p.value,
8727
8730
  "full-combinations": g.value,
8728
8731
  "is-addon": O.value,
8729
8732
  "is-override": M.value,
8730
- "onUpdate:form": S,
8733
+ "onUpdate:form": k,
8731
8734
  "onReplace:form": h[9] || (h[9] = (X) => p.value = X)
8732
8735
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
8733
8736
  ]),
@@ -8746,13 +8749,13 @@ const _d = /* @__PURE__ */ ve({
8746
8749
  title: "Update group"
8747
8750
  }, {
8748
8751
  default: G(() => [
8749
- A(Gc, {
8752
+ R(Gc, {
8750
8753
  fallback: c.value,
8751
8754
  form: p.value,
8752
8755
  "full-combinations": g.value,
8753
8756
  "is-addon": O.value,
8754
8757
  "is-override": M.value,
8755
- "onUpdate:form": S,
8758
+ "onUpdate:form": k,
8756
8759
  "onReplace:form": h[12] || (h[12] = (X) => p.value = X)
8757
8760
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
8758
8761
  ]),
@@ -8771,13 +8774,13 @@ const _d = /* @__PURE__ */ ve({
8771
8774
  title: b(r)("menu.product.form.sections.inventory.title")
8772
8775
  }, {
8773
8776
  default: G(() => [
8774
- A(jc, {
8777
+ R(jc, {
8775
8778
  fallback: c.value,
8776
8779
  form: p.value,
8777
8780
  "full-combinations": g.value,
8778
8781
  "is-addon": O.value,
8779
8782
  "is-override": M.value,
8780
- "onUpdate:form": S,
8783
+ "onUpdate:form": k,
8781
8784
  "onReplace:form": h[15] || (h[15] = (X) => p.value = X)
8782
8785
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
8783
8786
  ]),
@@ -8786,9 +8789,9 @@ const _d = /* @__PURE__ */ ve({
8786
8789
  s.value.takeaway(p.value.category ?? ((L = c.value) == null ? void 0 : L.category)) && !M.value ? (U(), re("div", zd)) : se("", !0),
8787
8790
  s.value.takeaway(p.value.category ?? ((Y = c.value) == null ? void 0 : Y.category)) ? (U(), Z(Tt, {
8788
8791
  key: 12,
8789
- toggle: Ae.value,
8792
+ toggle: Re.value,
8790
8793
  "onUpdate:toggle": [
8791
- h[19] || (h[19] = (X) => Ae.value = X),
8794
+ h[19] || (h[19] = (X) => Re.value = X),
8792
8795
  h[20] || (h[20] = (X) => $(X))
8793
8796
  ],
8794
8797
  disabled: !M.value,
@@ -8796,13 +8799,13 @@ const _d = /* @__PURE__ */ ve({
8796
8799
  title: b(r)("menu.product.form.sections.takeaway.title")
8797
8800
  }, {
8798
8801
  default: G(() => [
8799
- A(_d, {
8802
+ R(_d, {
8800
8803
  fallback: c.value,
8801
8804
  form: p.value,
8802
8805
  "full-combinations": g.value,
8803
8806
  "is-addon": O.value,
8804
8807
  "is-override": M.value,
8805
- "onUpdate:form": S,
8808
+ "onUpdate:form": k,
8806
8809
  "onReplace:form": h[18] || (h[18] = (X) => p.value = X)
8807
8810
  }, null, 8, ["fallback", "form", "full-combinations", "is-addon", "is-override"])
8808
8811
  ]),
@@ -8822,7 +8825,7 @@ function pa(e, t) {
8822
8825
  var o, r, l, s;
8823
8826
  const n = (o = t.groups) == null ? void 0 : o.reduce((u, m) => {
8824
8827
  const d = e.groups.find((p) => p._id === m._id);
8825
- return Rn(e.items, d.items) === ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC && u.push(d), u;
8828
+ return An(e.items, d.items) === ee.F_ADDON_GROUP_TYPE.enum.DYNAMIC && u.push(d), u;
8826
8829
  }, []);
8827
8830
  if (!(n != null && n.length)) return t;
8828
8831
  const i = n.map((u) => u._id);
@@ -8915,14 +8918,14 @@ function Hd(e, t) {
8915
8918
  _id: e._id
8916
8919
  };
8917
8920
  }
8918
- const Si = mo("item-manager", () => {
8919
- const e = Te(), t = Ze(), n = st(), i = kt(t), a = Ct(i), o = an(), { t: r } = Se(), l = (w) => {
8921
+ const ki = mo("item-manager", () => {
8922
+ const e = Te(), t = Ze(), n = st(), i = St(t), a = Ct(i), o = an(), { t: r } = ke(), l = (w) => {
8920
8923
  if (!o) throw new Error("No current instance found");
8921
8924
  const { container: x } = Fa(Bd, o, {
8922
8925
  ...w,
8923
8926
  autoShow: !0,
8924
- "onUpdate:show": async (k) => {
8925
- k || (Wn(null, x), x.remove());
8927
+ "onUpdate:show": async (S) => {
8928
+ S || (Wn(null, x), x.remove());
8926
8929
  }
8927
8930
  });
8928
8931
  };
@@ -8931,19 +8934,19 @@ const Si = mo("item-manager", () => {
8931
8934
  l({
8932
8935
  action: "add",
8933
8936
  categoryId: w,
8934
- "onSubmit:form": async (k, I) => {
8935
- k.inventoryBindings ?? (k.inventoryBindings = []), k.inventoryBindings.length === 0 && (k.inventoryBindings = null);
8936
- const N = ki();
8937
- await x(k, Ve.F_OPERATION_TYPE.create, N, I);
8937
+ "onSubmit:form": async (S, I) => {
8938
+ S.inventoryBindings ?? (S.inventoryBindings = []), S.inventoryBindings.length === 0 && (S.inventoryBindings = null);
8939
+ const N = Si();
8940
+ await x(S, Ve.F_OPERATION_TYPE.create, N, I);
8938
8941
  }
8939
8942
  });
8940
8943
  }
8941
- async function u(w, x, k) {
8944
+ async function u(w, x, S) {
8942
8945
  l({
8943
8946
  initialForm: Hd(w, x || []),
8944
8947
  action: "update",
8945
8948
  "onSubmit:form": async (I) => {
8946
- I.inventoryBindings ?? (I.inventoryBindings = []), I.inventoryBindings.length === 0 && (I.inventoryBindings = null), await k(
8949
+ I.inventoryBindings ?? (I.inventoryBindings = []), I.inventoryBindings.length === 0 && (I.inventoryBindings = null), await S(
8947
8950
  Gd(
8948
8951
  [I],
8949
8952
  e.state.menu,
@@ -8956,7 +8959,7 @@ const Si = mo("item-manager", () => {
8956
8959
  }
8957
8960
  async function m(w) {
8958
8961
  var P;
8959
- const x = e.currentCatalog, k = e.state.currentSchedulerId, I = x.override.scheduler[k] ?? {}, N = (P = I == null ? void 0 : I.items) == null ? void 0 : P.filter((D) => D._id === w._id);
8962
+ const x = e.currentCatalog, S = e.state.currentSchedulerId, I = x.override.scheduler[S] ?? {}, N = (P = I == null ? void 0 : I.items) == null ? void 0 : P.filter((D) => D._id === w._id);
8960
8963
  await u(w, N, async (D) => {
8961
8964
  const C = D.modules.catalog.find(
8962
8965
  (T) => T._id === x._id
@@ -8966,8 +8969,8 @@ const Si = mo("item-manager", () => {
8966
8969
  }
8967
8970
  async function d(w) {
8968
8971
  const x = e.currentCatalog;
8969
- await u(w, x.override.items[w._id], async (k) => {
8970
- const I = k.modules.catalog.find(
8972
+ await u(w, x.override.items[w._id], async (S) => {
8973
+ const I = S.modules.catalog.find(
8971
8974
  (N) => N._id === x._id
8972
8975
  );
8973
8976
  await new ft(I, e, a.updateMenu, n).update();
@@ -8976,8 +8979,8 @@ const Si = mo("item-manager", () => {
8976
8979
  async function c(w) {
8977
8980
  const x = e.schedulers.find(
8978
8981
  (I) => I._id === e.state.currentSchedulerId
8979
- ), k = x.items.filter((I) => I._id === w._id);
8980
- await u(w, k, async (I) => {
8982
+ ), S = x.items.filter((I) => I._id === w._id);
8983
+ await u(w, S, async (I) => {
8981
8984
  const N = I.modules.scheduler.find(
8982
8985
  (P) => P._id === x._id
8983
8986
  );
@@ -8986,23 +8989,23 @@ const Si = mo("item-manager", () => {
8986
8989
  }
8987
8990
  async function p(w) {
8988
8991
  var N, P;
8989
- const x = e.state.currentSchedulerId, k = ge(e.currentCatalog), I = (P = ((N = k.override.scheduler[x]) == null ? void 0 : N.items) || []) == null ? void 0 : P.reduce((D, C) => {
8992
+ const x = e.state.currentSchedulerId, S = ge(e.currentCatalog), I = (P = ((N = S.override.scheduler[x]) == null ? void 0 : N.items) || []) == null ? void 0 : P.reduce((D, C) => {
8990
8993
  if (C.combinationKey) return [...D, C];
8991
8994
  const T = w.find((V) => V._id === C._id);
8992
8995
  return T ? [...D, { ...C, price: T.price }] : [...D, C];
8993
8996
  }, []);
8994
- k.override.scheduler = {
8995
- ...k.override.scheduler,
8997
+ S.override.scheduler = {
8998
+ ...S.override.scheduler,
8996
8999
  [x]: {
8997
- ...k.override.scheduler[x],
9000
+ ...S.override.scheduler[x],
8998
9001
  _id: x,
8999
9002
  items: I
9000
9003
  }
9001
- }, await new ft(k, e, a.updateMenu, n).update();
9004
+ }, await new ft(S, e, a.updateMenu, n).update();
9002
9005
  }
9003
9006
  async function E(w) {
9004
9007
  var N;
9005
- const x = ge(e.currentCatalog), k = (N = Object.entries(x.override.items)) == null ? void 0 : N.reduce(
9008
+ const x = ge(e.currentCatalog), S = (N = Object.entries(x.override.items)) == null ? void 0 : N.reduce(
9006
9009
  (P, [D, C]) => {
9007
9010
  const T = w.find((j) => j._id === D);
9008
9011
  if (!T)
@@ -9026,7 +9029,7 @@ const Si = mo("item-manager", () => {
9026
9029
  ...x,
9027
9030
  override: {
9028
9031
  ...x.override,
9029
- items: k
9032
+ items: S
9030
9033
  }
9031
9034
  },
9032
9035
  e,
@@ -9035,7 +9038,7 @@ const Si = mo("item-manager", () => {
9035
9038
  ).update();
9036
9039
  }
9037
9040
  async function _(w) {
9038
- const x = ge(e.currentScheduler), k = x.items.reduce((I, N) => {
9041
+ const x = ge(e.currentScheduler), S = x.items.reduce((I, N) => {
9039
9042
  if (N.combinationKey) return [...I, N];
9040
9043
  const P = w.find((D) => D._id === N._id);
9041
9044
  return P ? [...I, { ...N, price: P.price }] : [...I, N];
@@ -9043,7 +9046,7 @@ const Si = mo("item-manager", () => {
9043
9046
  await new _n(
9044
9047
  {
9045
9048
  ...x,
9046
- items: k
9049
+ items: S
9047
9050
  },
9048
9051
  e,
9049
9052
  a.updateMenu,
@@ -9064,8 +9067,8 @@ const Si = mo("item-manager", () => {
9064
9067
  position: N.position ?? P.position,
9065
9068
  additionalCategories: N.additionalCategories ?? P.additionalCategories
9066
9069
  }), I;
9067
- }, []), { updateMenu: k } = a;
9068
- await k(
9070
+ }, []), { updateMenu: S } = a;
9071
+ await S(
9069
9072
  x.map((I) => ({
9070
9073
  module: ee.F_MENU_MODULE_V4_KEY.enum.item,
9071
9074
  operation: Ve.F_OPERATION_TYPE.update,
@@ -9079,31 +9082,31 @@ const Si = mo("item-manager", () => {
9079
9082
  l({
9080
9083
  initialForm: w,
9081
9084
  action: "update",
9082
- "onSubmit:form": async (k, I) => {
9083
- const N = ki(w._id);
9084
- k.inventoryBindings ?? (k.inventoryBindings = []), k.inventoryBindings.length === 0 && (k.inventoryBindings = null), await x(k, Ve.F_OPERATION_TYPE.update, N, I);
9085
+ "onSubmit:form": async (S, I) => {
9086
+ const N = Si(w._id);
9087
+ S.inventoryBindings ?? (S.inventoryBindings = []), S.inventoryBindings.length === 0 && (S.inventoryBindings = null), await x(S, Ve.F_OPERATION_TYPE.update, N, I);
9085
9088
  }
9086
9089
  });
9087
9090
  }
9088
9091
  async function v(w) {
9089
- const x = e.state.menu.modules.item.find((k) => k._id === w);
9092
+ const x = e.state.menu.modules.item.find((S) => S._id === w);
9090
9093
  e.currentCatalog ? e.state.currentSchedulerId ? await m(x) : await d(x) : e.state.currentSchedulerId ? await c(x) : g(x);
9091
9094
  }
9092
- async function S(w) {
9095
+ async function k(w) {
9093
9096
  e.currentCatalog ? e.currentScheduler ? await p(w) : await E(w) : (
9094
9097
  // If Main
9095
9098
  e.currentScheduler ? await _(w) : await y(w)
9096
9099
  );
9097
9100
  }
9098
- function R(w) {
9099
- const { updateMenu: x } = a, k = w.length > 1 ? `${w.length} products` : w[0].name;
9101
+ function A(w) {
9102
+ const { updateMenu: x } = a, S = w.length > 1 ? `${w.length} products` : w[0].name;
9100
9103
  n.open({
9101
9104
  title: r("menu.common.dialog.remove.product.title"),
9102
- message: r("menu.common.dialog.remove.product.message", { name: k }),
9105
+ message: r("menu.common.dialog.remove.product.message", { name: S }),
9103
9106
  primaryActions: {
9104
9107
  text: r("menu.common.actions.remove"),
9105
9108
  close: !0,
9106
- variant: Rt.Destructive
9109
+ variant: At.Destructive
9107
9110
  },
9108
9111
  secondaryActions: {
9109
9112
  text: r("menu.common.actions.cancel"),
@@ -9116,7 +9119,7 @@ const Si = mo("item-manager", () => {
9116
9119
  operation: Ve.F_OPERATION_TYPE.delete,
9117
9120
  data: I
9118
9121
  })),
9119
- k,
9122
+ S,
9120
9123
  !0
9121
9124
  );
9122
9125
  for (const I of w)
@@ -9138,7 +9141,7 @@ const Si = mo("item-manager", () => {
9138
9141
  e,
9139
9142
  a.updateMenu,
9140
9143
  n
9141
- ).unlinkProduct(w.map((x) => x._id)) : R(w);
9144
+ ).unlinkProduct(w.map((x) => x._id)) : A(w);
9142
9145
  }
9143
9146
  async function O(w) {
9144
9147
  const { updateMenu: x } = a;
@@ -9155,7 +9158,7 @@ const Si = mo("item-manager", () => {
9155
9158
  initDynamicGroupItem: (w) => pa(e, w),
9156
9159
  create: s,
9157
9160
  update: v,
9158
- updateMany: S,
9161
+ updateMany: k,
9159
9162
  deleteItem: M,
9160
9163
  rearrange: O
9161
9164
  };
@@ -9165,7 +9168,7 @@ export {
9165
9168
  $u as C,
9166
9169
  cc as F,
9167
9170
  Pr as I,
9168
- Ro as M,
9171
+ Ao as M,
9169
9172
  dd as P,
9170
9173
  Ge as R,
9171
9174
  Lu as S,
@@ -9180,19 +9183,19 @@ export {
9180
9183
  Gd as g,
9181
9184
  Co as h,
9182
9185
  Em as i,
9183
- Rn as j,
9186
+ An as j,
9184
9187
  pa as k,
9185
9188
  ua as l,
9186
- Ao as m,
9189
+ Ro as m,
9187
9190
  jo as n,
9188
9191
  Hd as o,
9189
9192
  ca as p,
9190
9193
  vd as q,
9191
9194
  or as r,
9192
9195
  hc as s,
9193
- Sm as t,
9194
- Si as u,
9195
- Ar as v,
9196
+ km as t,
9197
+ ki as u,
9198
+ Rr as v,
9196
9199
  Or as w,
9197
9200
  _n as x,
9198
9201
  ma as y