@feedmepos/mf-menu 0.32.49-dev → 0.32.49

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 (67) hide show
  1. package/dist/{App-B01olmCo.js → App-DWwqICgN.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Bu_IpREq.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DGM-pqCB.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-DZwJeAGh.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-Bt0T0Q9-.js} +2 -2
  4. package/dist/{Catalog-BgrrIuxf.js → Catalog-Bj04dO46.js} +6 -6
  5. package/dist/{Category-CDGXCGQN.js → Category-B0c9uXCq.js} +4 -4
  6. package/dist/{Category-YxTmAvys.js → Category-CvpBi1HT.js} +4 -4
  7. package/dist/{CookingGuide-BVtJs_Kn.js → CookingGuide-YzbN_xWq.js} +4 -4
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DfGBraA0.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CnspihW3.js} +1 -1
  9. package/dist/{Group-Bjv6mYE2.js → Group-BqlrVpS1.js} +3 -3
  10. package/dist/{Group-oZVciF9U.js → Group-CjNy_UQt.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-DG8xGjYM.js → Group.vue_vue_type_script_setup_true_lang-vST-RMKe.js} +7 -7
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B1NvTvHU.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-E_WkJitJ.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BpgCEGWp.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Bi8JIOa6.js} +7 -7
  14. package/dist/{Ingredient-C3w_k7cs.js → Ingredient-CzWptpJk.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CWzd2Hgc.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CAcRjeYO.js} +2 -2
  16. package/dist/{LinkProductSideSheet-FMv4heTJ.js → LinkProductSideSheet-Bja4Cszh.js} +3 -3
  17. package/dist/{MenuSetting-CdG0CM4v.js → MenuSetting-BKz8Lc0o.js} +5 -5
  18. package/dist/{OrderPacing-DoHRQq6z.js → OrderPacing-hlKmIQe9.js} +5 -5
  19. package/dist/{PrintRoute-B3ZOdkWb.js → PrintRoute-CIcsTl5w.js} +4 -4
  20. package/dist/{Product-Bk033TSz.js → Product-DwuCexEe.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-Cj6YUmHX.js → Product.vue_vue_type_script_setup_true_lang-UwOYzxUw.js} +12 -12
  22. package/dist/{ProductInternalTools-hksQOO2B.js → ProductInternalTools-DXnnpR8K.js} +6 -6
  23. package/dist/{Products-Dot3BMR_.js → Products-D9ZEXzTI.js} +51 -51
  24. package/dist/{Publish-YBItRkDe.js → Publish-RXSNXPhJ.js} +3 -3
  25. package/dist/{Recipe-CsltmH36.js → Recipe-DVWLtSQ_.js} +4 -4
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CDFLaIlX.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CiZHJDhR.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DQ59tQmi.js → RuleView.vue_vue_type_script_setup_true_lang-DX9vKQdX.js} +176 -176
  28. package/dist/{Scheduler-0w8DL3Q_.js → Scheduler-Do-a3Cfo.js} +3 -3
  29. package/dist/{ServingSequence-CJYonk8g.js → ServingSequence-CwZ325jQ.js} +3 -3
  30. package/dist/{Setting-D0WgF4wm.js → Setting-BSszW7wy.js} +5 -5
  31. package/dist/{Subcategory-Byk1LOXo.js → Subcategory-Dht6gqhP.js} +5 -5
  32. package/dist/{Takeaway-Bn8HxGmV.js → Takeaway-BupuOrs5.js} +1 -1
  33. package/dist/{Takeaway-DQ-QWxj0.js → Takeaway-CwldkuES.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BpTYQzV-.js → Takeaway.vue_vue_type_script_setup_true_lang-CMx4MCzX.js} +5 -5
  35. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-D-FGnIw4.js → Thumbnail.vue_vue_type_script_setup_true_lang-B4F6XwEL.js} +4 -4
  36. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BhhaNpqT.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-C1WI2rIi.js} +1 -1
  37. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-B2Nzi_cG.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BQn-Iym4.js} +2 -2
  38. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Cs-pvp01.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dn57GJ7T.js} +114 -114
  39. package/dist/{Unit-DA0hunXt.js → Unit-D3Fpe664.js} +2 -2
  40. package/dist/{Variant-xzGvnmWi.js → Variant-AtN90DMV.js} +3 -3
  41. package/dist/{_id_-Bo8nUn6W.js → _id_-B76MDa4v.js} +9 -9
  42. package/dist/{app-B_pjPiJt.js → app-CDxIgV5P.js} +1 -1
  43. package/dist/{app-CxwU6oD_.js → app-DpeCSTH8.js} +32 -32
  44. package/dist/app.js +1 -1
  45. package/dist/assets/{linked-status-CLi0ZaMP.js → linked-status-BslgSQ_X.js} +2 -2
  46. package/dist/assets/{menu-export-tgemEoin.js → menu-export-Cz7GqhAg.js} +3 -3
  47. package/dist/assets/{override-menu-B2_pGKQ5.js → override-menu-DHtDBJkL.js} +2 -2
  48. package/dist/assets/{validate-menu-zFkBYOrT.js → validate-menu-D2RWU23-.js} +5 -5
  49. package/dist/{catalog-DCmaXyCR.js → catalog-DggxiDFI.js} +1 -1
  50. package/dist/{catalogSetting-BMdkGbQA.js → catalogSetting-CsodrJyH.js} +1 -1
  51. package/dist/{currency-BJl6Cdom.js → currency-Dik39bFt.js} +1 -1
  52. package/dist/{dayjs.min-CrqXlTYe.js → dayjs.min-CtPRPF6H.js} +2 -2
  53. package/dist/{index-DCQdFiEM.js → index-CZ0zKCWR.js} +5 -5
  54. package/dist/{index-5AaSAY-w.js → index-CnD7dG32.js} +4 -4
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-B1eRJHco.js → index.vue_vue_type_script_setup_true_lang-ayMUXcas.js} +7 -7
  56. package/dist/{item-Bkin6GCJ.js → item-vne0HbEn.js} +364 -364
  57. package/dist/{jszip.min-C7u5SEBq.js → jszip.min-CZGbdgZ_.js} +153 -153
  58. package/dist/{menu-CqrBIw8_.js → menu-BO6E5Ts_.js} +1 -1
  59. package/dist/{menuV2-DbnFxkWz.js → menuV2-B83JGuiX.js} +53 -53
  60. package/dist/mf-menu.css +1 -1
  61. package/dist/{order_pacing-Sk-V86me.js → order_pacing-AsrGCnda.js} +5 -5
  62. package/dist/{priceTier-0-_3YORa.js → priceTier-BSeu0mIP.js} +1 -1
  63. package/dist/{rules-CSn8QaHv.js → rules-DrZ6Uil3.js} +3 -3
  64. package/dist/{scheduler-CrOEXWb4.js → scheduler-CN9BIv5w.js} +4 -4
  65. package/dist/{toExcel-fLdoWcMu.js → toExcel-4AZNWspR.js} +2 -2
  66. package/dist/{unit-SuZbxNh5.js → unit-Dn2l5Mz-.js} +2 -2
  67. package/package.json +1 -1
@@ -1,37 +1,37 @@
1
1
  import { defineStore as Yn } from "pinia";
2
- import { defineComponent as he, resolveComponent as P, createElementBlock as W, createBlock as Y, openBlock as S, createElementVNode as D, createVNode as h, toDisplayString as se, Fragment as be, renderList as Ee, h as Se, ref as j, computed as R, watch as ke, unref as p, renderSlot as xe, withCtx as I, createCommentVNode as ne, Transition as zo, normalizeClass as Ue, resolveDynamicComponent as zt, withDirectives as ct, vShow as jt, mergeProps as Hn, withModifiers as St, onMounted as ft, onUnmounted as Po, createTextVNode as Pt, getCurrentInstance as yn, render as Ut, resolveDirective as qn, markRaw as Uo, mergeModels as $o, useModel as No, nextTick as Xn, normalizeProps as Lo, guardReactiveProps as Bo, normalizeStyle as Go } from "vue";
3
- import { J as Oe, y as Z, ai as jo, ak as Ko, Y as Zn, G as we, A as Ge, z as Pe, U as Wo, u as Fe, H as Me, B as Qe, O as Je, $ as Yo, al as Ho, K as $t, M as rn, N as En, P as qo, Q as Xo, R as Zo, T as Qt, ad as Qo, V as Jo } from "./index.vue_vue_type_script_setup_true_lang-B1eRJHco.js";
2
+ import { defineComponent as he, resolveComponent as U, createElementBlock as W, createBlock as Y, openBlock as S, createElementVNode as D, createVNode as h, toDisplayString as le, Fragment as be, renderList as Ee, h as Se, ref as j, computed as R, watch as ke, unref as p, renderSlot as xe, withCtx as I, createCommentVNode as ne, Transition as zo, normalizeClass as Ue, resolveDynamicComponent as zt, withDirectives as ct, vShow as jt, mergeProps as Hn, withModifiers as St, onMounted as ft, onUnmounted as Po, createTextVNode as Pt, getCurrentInstance as yn, render as Ut, resolveDirective as qn, markRaw as Uo, mergeModels as $o, useModel as No, nextTick as Xn, normalizeProps as Lo, guardReactiveProps as Bo, normalizeStyle as Go } from "vue";
3
+ import { J as Oe, y as Z, ai as jo, ak as Ko, Y as Zn, G as we, A as Ge, z as Pe, U as Wo, u as Fe, H as Me, B as Ze, O as Qe, $ as Yo, al as Ho, K as $t, M as rn, N as En, P as qo, Q as Xo, R as Zo, T as Qt, ad as Qo, V as Jo } from "./index.vue_vue_type_script_setup_true_lang-ayMUXcas.js";
4
4
  import { useI18n as ye, useCoreStore as xt, CustomAttributesForm as Qn } from "@feedmepos/mf-common";
5
- import { useDialog as Ke, useSnackbar as je, components as Te, useDialogChild as Kt, FmButtonColorThemeVariant as He, FmButtonVariant as Ze, useBreakpoints as Jn } from "@feedmepos/ui-library";
6
- import { C as nt } from "./catalog-DCmaXyCR.js";
5
+ import { useDialog as Ke, useSnackbar as je, components as Te, useDialogChild as Kt, FmButtonColorThemeVariant as Ye, FmButtonVariant as Xe, useBreakpoints as Jn } from "@feedmepos/ui-library";
6
+ import { C as tt } from "./catalog-DggxiDFI.js";
7
7
  import { c as eo } from "./createComponentProgrammatically-Bt2rn1IQ.js";
8
8
  import { a as Dn, _ as sn } from "./tooltip-B5BiPMx9.js";
9
- import { H as ei, L as ti } from "./LinkProductSideSheet-FMv4heTJ.js";
10
- import { u as ni, _ as $e, a as oi } from "./RuleView.vue_vue_type_script_setup_true_lang-DQ59tQmi.js";
9
+ import { H as ei, L as ti } from "./LinkProductSideSheet-Bja4Cszh.js";
10
+ import { u as ni, _ as $e, a as oi } from "./RuleView.vue_vue_type_script_setup_true_lang-DX9vKQdX.js";
11
11
  import { s as ln, F as ii, _ as ai } from "./index-CisutoS9.js";
12
- import { e as ri } from "./app-CxwU6oD_.js";
12
+ import { e as ri } from "./app-DpeCSTH8.js";
13
13
  import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- import { g as to, b as si, c as li, a as ui, m as ci } from "./menuV2-DbnFxkWz.js";
14
+ import { g as to, b as si, c as li, a as ui, m as ci } from "./menuV2-B83JGuiX.js";
15
15
  import { useAppStore as _n, RemyButton as no } from "@feedmepos/mf-remy-panel";
16
- import { _ as it } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
17
- import { u as di, r as mi } from "./rules-CSn8QaHv.js";
16
+ import { _ as ot } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
17
+ import { u as di, r as mi } from "./rules-DrZ6Uil3.js";
18
18
  import { u as yt } from "./discardConfirm-BHni0LNu.js";
19
- import { _ as oo, a as Nt, b as Lt, c as Bt } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-BhhaNpqT.js";
20
- import { a as un, g as rt } from "./translation-fNx6yEpy.js";
19
+ import { _ as oo, a as Nt, b as Lt, c as Bt } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-C1WI2rIi.js";
20
+ import { a as un, g as at } from "./translation-fNx6yEpy.js";
21
21
  import { c as cn } from "./object-DVUNCr7w.js";
22
- import { _ as wn } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B2Nzi_cG.js";
23
- import { u as pi } from "./menu-CqrBIw8_.js";
22
+ import { _ as wn } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BQn-Iym4.js";
23
+ import { u as pi } from "./menu-BO6E5Ts_.js";
24
24
  import { c as _t } from "./check-C9mY6LiX.js";
25
- import { _ as ut, l as dn, T as fi } from "./index-DCQdFiEM.js";
25
+ import { _ as ut, l as dn, T as fi } from "./index-CZ0zKCWR.js";
26
26
  import { useInventoryStore as io, InventoryBindingForm as hi, InventoryBindingSummary as vi } from "@feedmepos/mf-inventory-portal";
27
- import { f as ht } from "./currency-BJl6Cdom.js";
28
- import { u as ao } from "./priceTier-0-_3YORa.js";
27
+ import { f as ht } from "./currency-Dik39bFt.js";
28
+ import { u as ao } from "./priceTier-BSeu0mIP.js";
29
29
  import { u as gi } from "./search-BAPEUu1R.js";
30
30
  import { c as bi } from "./string-DpfFixWH.js";
31
31
  import { d as ro } from "./vuedraggable-CK8z7qA8.js";
32
- import { _ as yi } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Bu_IpREq.js";
33
- import { u as _i, a as wi } from "./order_pacing-Sk-V86me.js";
34
- import { V as Tn } from "./index-5AaSAY-w.js";
32
+ import { _ as yi } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DGM-pqCB.js";
33
+ import { u as _i, a as wi } from "./order_pacing-AsrGCnda.js";
34
+ import { V as Tn } from "./index-CnD7dG32.js";
35
35
  class Vt {
36
36
  constructor(n, t, o, a) {
37
37
  this.scheduler = n, this.menuStore = t, this.updateMenu = o, this.dialog = a;
@@ -158,7 +158,7 @@ class Vt {
158
158
  async overrideScheduler(n) {
159
159
  const t = this.scheduler;
160
160
  if (!t) return;
161
- const o = this.menuStore.catalogs.find((l) => l._id === n), a = new nt(o, this.menuStore, this.updateMenu, this.dialog), i = a.getCatalogScheduler(t._id);
161
+ const o = this.menuStore.catalogs.find((l) => l._id === n), a = new tt(o, this.menuStore, this.updateMenu, this.dialog), i = a.getCatalogScheduler(t._id);
162
162
  if (!i) return;
163
163
  const r = this.menuStore.state.menu.modules.scheduler.find(
164
164
  (l) => l._id === t._id
@@ -205,7 +205,7 @@ class Vt {
205
205
  if (!t) return;
206
206
  const o = this.menuStore.currentCatalog;
207
207
  if (o && this.menuStore.rules.scheduler.override) {
208
- const a = new nt(
208
+ const a = new tt(
209
209
  o,
210
210
  this.menuStore,
211
211
  this.updateMenu,
@@ -234,7 +234,7 @@ class Vt {
234
234
  this.menuStore.categories,
235
235
  Zn(this.menuStore.state.menu.modules.item, (a) => a.code || a.name)
236
236
  ), t = new Set(
237
- this.menuStore.currentCatalog ? nt.getItemAvailable(this.menuStore.currentCatalog) : this.menuStore.state.menu.modules.item.map((a) => a._id)
237
+ this.menuStore.currentCatalog ? tt.getItemAvailable(this.menuStore.currentCatalog) : this.menuStore.state.menu.modules.item.map((a) => a._id)
238
238
  );
239
239
  return n.map((a) => ({
240
240
  ...a,
@@ -329,7 +329,7 @@ class lo {
329
329
  this.menuStore = n, this.updateMenu = t, this.dialog = o;
330
330
  }
331
331
  getFallbackPrices(n) {
332
- const t = this.menuStore.currentCatalog, o = this.menuStore.currentScheduler, a = new nt(t, this.menuStore, this.updateMenu, this.dialog), i = new Vt(
332
+ const t = this.menuStore.currentCatalog, o = this.menuStore.currentScheduler, a = new tt(t, this.menuStore, this.updateMenu, this.dialog), i = new Vt(
333
333
  o,
334
334
  this.menuStore,
335
335
  this.updateMenu,
@@ -554,9 +554,9 @@ const xi = {
554
554
  });
555
555
  }
556
556
  return (a, i) => {
557
- const r = P("FmButton");
557
+ const r = U("FmButton");
558
558
  return n.variant === "full" ? (S(), W("div", xi, [
559
- D("div", Fi, se(a.title), 1),
559
+ D("div", Fi, le(a.title), 1),
560
560
  h(ei),
561
561
  (S(!0), W(be, null, Ee(a.items, (l) => (S(), Y(Dn, {
562
562
  key: l.name,
@@ -621,11 +621,11 @@ const xi = {
621
621
  c();
622
622
  }
623
623
  ), (m, f) => {
624
- const v = P("FmSelect");
624
+ const v = U("FmSelect");
625
625
  return S(), W("div", Oi, [
626
626
  D("div", Ri, [
627
- D("div", Ai, se(p(a)("menu.catalog_scheduler.title")), 1),
628
- D("div", Mi, se(p(a)("menu.catalog_scheduler.subtitle")), 1)
627
+ D("div", Ai, le(p(a)("menu.catalog_scheduler.title")), 1),
628
+ D("div", Mi, le(p(a)("menu.catalog_scheduler.subtitle")), 1)
629
629
  ]),
630
630
  D("div", Ei, [
631
631
  D("div", Di, [
@@ -663,7 +663,7 @@ const xi = {
663
663
  setup(e, { emit: n }) {
664
664
  const t = n;
665
665
  return (o, a) => {
666
- const i = P("fm-switch"), r = P("fm-card");
666
+ const i = U("fm-switch"), r = U("fm-card");
667
667
  return o.disabled ? xe(o.$slots, "default", { key: 0 }, void 0, !0) : (S(), Y(r, {
668
668
  key: 1,
669
669
  class: "p-16 space-y-24",
@@ -672,8 +672,8 @@ const xi = {
672
672
  default: I(() => [
673
673
  D("div", Ii, [
674
674
  D("div", zi, [
675
- D("p", Pi, se(o.title), 1),
676
- o.description ? (S(), W("p", Ui, se(o.description), 1)) : ne("", !0)
675
+ D("p", Pi, le(o.title), 1),
676
+ o.description ? (S(), W("p", Ui, le(o.description), 1)) : ne("", !0)
677
677
  ]),
678
678
  h(i, {
679
679
  "model-value": o.toggle,
@@ -824,7 +824,7 @@ const Yi = /* @__PURE__ */ mt(ji, [["render", Wi]]), Hi = { class: "flex flex-co
824
824
  return n({
825
825
  hideMenu: u
826
826
  }), (v, F) => {
827
- const b = P("FmIcon"), y = P("FmField"), g = P("FmMenuItem"), C = P("FmMenu"), N = P("FmFormGroup"), $ = P("FmChipGroup");
827
+ const b = U("FmIcon"), y = U("FmField"), g = U("FmMenuItem"), C = U("FmMenu"), N = U("FmFormGroup"), $ = U("FmChipGroup");
828
828
  return S(), W("div", Hi, [
829
829
  h(N, {
830
830
  "model-value": v.modelValue,
@@ -860,7 +860,7 @@ const Yi = /* @__PURE__ */ mt(ji, [["render", Wi]]), Hi = { class: "flex flex-co
860
860
  class: Ue([[
861
861
  v.disabled ? "text-fm-color-typo-disabled" : m.value ? "text-fm-color-typo-primary" : "text-fm-color-typo-tertiary"
862
862
  ], "break-all fm-typo-en-body-lg-400 line-clamp-1"])
863
- }, se(f.value), 3)
863
+ }, le(f.value), 3)
864
864
  ]),
865
865
  _: 2
866
866
  }, 1032, ["class", "focused", "invalid"])
@@ -1160,7 +1160,7 @@ var en = We("vue-handler-wrapper"), vo = { name: "HandlerWrapper", components: {
1160
1160
  return { root: e, draggable: en("draggable") };
1161
1161
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
1162
1162
  vo.render = function(e, n, t, o, a, i) {
1163
- var r = P("DraggableElement");
1163
+ var r = U("DraggableElement");
1164
1164
  return S(), Y("div", { class: i.classes.root }, [h(r, { class: i.classes.draggable, onDrag: n[1] || (n[1] = function(l) {
1165
1165
  return e.$emit("drag", l);
1166
1166
  }), onDragEnd: n[2] || (n[2] = function(l) {
@@ -1178,7 +1178,7 @@ var oa = We("vue-line-wrapper"), go = { name: "LineWrapper", components: { Dragg
1178
1178
  return oa((Le(e = {}, this.position, !0), Le(e, "disabled", this.disabled), e));
1179
1179
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
1180
1180
  go.render = function(e, n, t, o, a, i) {
1181
- var r = P("DraggableElement");
1181
+ var r = U("DraggableElement");
1182
1182
  return S(), Y(r, { class: i.classname, onDrag: n[1] || (n[1] = function(l) {
1183
1183
  return e.$emit("drag", l);
1184
1184
  }), onDragEnd: n[2] || (n[2] = function(l) {
@@ -1191,13 +1191,13 @@ go.render = function(e, n, t, o, a, i) {
1191
1191
  return [xe(e.$slots, "default")];
1192
1192
  }), _: 3 }, 8, ["class"]);
1193
1193
  };
1194
- var Xe = ["left", "right", "top", "bottom"], ia = ["left", "right"], aa = ["top", "bottom"], ra = ["left", "top"], sa = ["fill-area", "fit-area", "stencil", "none"], $n = { left: 0, top: 0, width: 0, height: 0 };
1194
+ var qe = ["left", "right", "top", "bottom"], ia = ["left", "right"], aa = ["top", "bottom"], ra = ["left", "top"], sa = ["fill-area", "fit-area", "stencil", "none"], $n = { left: 0, top: 0, width: 0, height: 0 };
1195
1195
  function Nn(e, n, t) {
1196
1196
  return !(t = t || ["width", "height", "left", "top"]).some(function(o) {
1197
1197
  return e[o] !== n[o];
1198
1198
  });
1199
1199
  }
1200
- function et(e) {
1200
+ function Je(e) {
1201
1201
  return { left: e.left, top: e.top, right: e.left + e.width, bottom: e.top + e.height };
1202
1202
  }
1203
1203
  function vt(e, n) {
@@ -1208,12 +1208,12 @@ function Ie(e) {
1208
1208
  }
1209
1209
  function Ct(e, n) {
1210
1210
  var t = { left: 0, top: 0, right: 0, bottom: 0 };
1211
- return Xe.forEach(function(o) {
1212
- var a = n[o], i = et(e)[o];
1211
+ return qe.forEach(function(o) {
1212
+ var a = n[o], i = Je(e)[o];
1213
1213
  t[o] = a !== void 0 && i !== void 0 ? o === "left" || o === "top" ? Math.max(0, a - i) : Math.max(0, i - a) : 0;
1214
1214
  }), t;
1215
1215
  }
1216
- function qe(e, n) {
1216
+ function He(e, n) {
1217
1217
  return { left: e.left - n.left, top: e.top - n.top, width: e.width + n.left + n.right, height: e.height + n.top + n.bottom };
1218
1218
  }
1219
1219
  function Yt(e) {
@@ -1254,7 +1254,7 @@ function yo(e, n) {
1254
1254
  var t = n * Math.PI / 180;
1255
1255
  return { width: Math.abs(e.width * Math.cos(t)) + Math.abs(e.height * Math.sin(t)), height: Math.abs(e.width * Math.sin(t)) + Math.abs(e.height * Math.cos(t)) };
1256
1256
  }
1257
- function at(e, n) {
1257
+ function it(e, n) {
1258
1258
  var t = n * Math.PI / 180;
1259
1259
  return { left: e.left * Math.cos(t) - e.top * Math.sin(t), top: e.left * Math.sin(t) + e.top * Math.cos(t) };
1260
1260
  }
@@ -1276,7 +1276,7 @@ function la(e, n) {
1276
1276
  function _o(e, n, t) {
1277
1277
  t === void 0 && (t = !0);
1278
1278
  var o = {};
1279
- return Xe.forEach(function(a) {
1279
+ return qe.forEach(function(a) {
1280
1280
  var i = e[a], r = n[a];
1281
1281
  i !== void 0 && r !== void 0 ? o[a] = a === "left" || a === "top" ? t ? Math.max(i, r) : Math.min(i, r) : t ? Math.min(i, r) : Math.max(i, r) : r !== void 0 ? o[a] = r : i !== void 0 && (o[a] = i);
1282
1282
  }), o;
@@ -1291,7 +1291,7 @@ function Ln(e) {
1291
1291
  function Bn(e, n) {
1292
1292
  return Math.pow(e.width - n.width, 2) + Math.pow(e.height - n.height, 2);
1293
1293
  }
1294
- function ot(e) {
1294
+ function nt(e) {
1295
1295
  var n = e.width, t = e.height, o = e.sizeRestrictions, a = { minimum: e.aspectRatio && e.aspectRatio.minimum || 0, maximum: e.aspectRatio && e.aspectRatio.maximum || 1 / 0 }, i = { width: Math.max(o.minWidth, Math.min(o.maxWidth, n)), height: Math.max(o.minHeight, Math.min(o.maxHeight, t)) };
1296
1296
  function r(u, d) {
1297
1297
  return d === void 0 && (d = !1), u.reduce(function(c, m) {
@@ -1316,7 +1316,7 @@ function ua(e) {
1316
1316
  return (Array.isArray(t) ? t : [t]).forEach(function(d) {
1317
1317
  var c = {};
1318
1318
  Ve((c = typeof d == "function" ? d({ coordinates: u, imageSize: o, visibleArea: l }) : d).width) && Ve(c.height) || (u = function(m, f) {
1319
- var v = ae(ae(ae({}, m), ot({ width: f.width, height: f.height, sizeRestrictions: a, aspectRatio: r })), { left: 0, top: 0 });
1319
+ var v = ae(ae(ae({}, m), nt({ width: f.width, height: f.height, sizeRestrictions: a, aspectRatio: r })), { left: 0, top: 0 });
1320
1320
  return s(v, { left: m.left, top: m.top });
1321
1321
  }(u, ae(ae({}, u), c))), Ve(c.left) && Ve(c.top) || (u = s(u, ae(ae({}, u), c)));
1322
1322
  }), u;
@@ -1328,9 +1328,9 @@ function ca(e) {
1328
1328
  var i = e.stencilSize, r = e.sizeRestrictions, l = e.positionRestrictions;
1329
1329
  e.stencilReference;
1330
1330
  var s, u, d, c = ae({}, o), m = ae({}, a), f = ae({}, i);
1331
- s = ge(f), u = ge(c), d === void 0 && (d = 1e-3), (s === 0 || u === 0 ? Math.abs(u - s) < d : Math.abs(u / s) < 1 + d && Math.abs(u / s) > 1 - d) || (c = ae(ae({}, c), ot({ sizeRestrictions: r, width: c.width, height: c.height, aspectRatio: { minimum: ge(f), maximum: ge(f) } })));
1331
+ s = ge(f), u = ge(c), d === void 0 && (d = 1e-3), (s === 0 || u === 0 ? Math.abs(u - s) < d : Math.abs(u / s) < 1 + d && Math.abs(u / s) > 1 - d) || (c = ae(ae({}, c), nt({ sizeRestrictions: r, width: c.width, height: c.height, aspectRatio: { minimum: ge(f), maximum: ge(f) } })));
1332
1332
  var v = Ht(m = Be(m, c.width * t.width / (m.width * f.width)), n({ visibleArea: m, type: "resize" }));
1333
- return v !== 1 && (m = Be(m, v), c = Be(c, v)), m = ze(m = Ne(m, vt(Ie(c), Ie(m))), n({ visibleArea: m, type: "move" })), { coordinates: c = ze(c, qt(et(m), l)), visibleArea: m };
1333
+ return v !== 1 && (m = Be(m, v), c = Be(c, v)), m = ze(m = Ne(m, vt(Ie(c), Ie(m))), n({ visibleArea: m, type: "move" })), { coordinates: c = ze(c, qt(Je(m), l)), visibleArea: m };
1334
1334
  }
1335
1335
  function da(e) {
1336
1336
  var n = e.event, t = e.getAreaRestrictions, o = e.boundaries, a = e.coordinates, i = e.visibleArea;
@@ -1342,7 +1342,7 @@ function da(e) {
1342
1342
  var u = { width: 0, height: 0 };
1343
1343
  s.width, o.width, ge(o) > ge(l) ? (u.height = 0.8 * o.height, u.width = u.height * ge(l)) : (u.width = 0.8 * o.width, u.height = u.width * ge(l));
1344
1344
  var d = Ht(s = Be(s, l.width * o.width / (s.width * u.width)), t({ visibleArea: s, type: "resize" }));
1345
- s = Be(s, d), d !== 1 && (u.height /= d, u.width /= d), s = ze(s = Ne(s, vt(Ie(l), Ie(s))), t({ visibleArea: s, type: "move" })), l = ze(l, qt(et(s), r));
1345
+ s = Be(s, d), d !== 1 && (u.height /= d, u.width /= d), s = ze(s = Ne(s, vt(Ie(l), Ie(s))), t({ visibleArea: s, type: "move" })), l = ze(l, qt(Je(s), r));
1346
1346
  }
1347
1347
  return { coordinates: l, visibleArea: s };
1348
1348
  }
@@ -1350,7 +1350,7 @@ function ma(e) {
1350
1350
  var n = e.event, t = e.coordinates, o = e.visibleArea, a = e.getAreaRestrictions, i = ae({}, o), r = ae({}, t);
1351
1351
  if (n.type === "setCoordinates") {
1352
1352
  var l = Math.max(0, r.width - i.width), s = Math.max(0, r.height - i.height);
1353
- l > s ? i = Be(i, Math.min(r.width / i.width, gt(i, a({ visibleArea: i, type: "resize" })))) : s > l && (i = Be(i, Math.min(r.height / i.height, gt(i, a({ visibleArea: i, type: "resize" }))))), i = ze(i = Ne(i, Yt(bt(r, et(i)))), a({ visibleArea: i, type: "move" }));
1353
+ l > s ? i = Be(i, Math.min(r.width / i.width, gt(i, a({ visibleArea: i, type: "resize" })))) : s > l && (i = Be(i, Math.min(r.height / i.height, gt(i, a({ visibleArea: i, type: "resize" }))))), i = ze(i = Ne(i, Yt(bt(r, Je(i)))), a({ visibleArea: i, type: "move" }));
1354
1354
  }
1355
1355
  return { visibleArea: i, coordinates: r };
1356
1356
  }
@@ -1360,23 +1360,23 @@ function pa(e) {
1360
1360
  }
1361
1361
  function fa(e) {
1362
1362
  var n = e.imageSize, t = e.visibleArea, o = e.aspectRatio, a = e.sizeRestrictions, i = t || n, r = Math.min(o.maximum || 1 / 0, Math.max(o.minimum || 0, ge(i))), l = i.width < i.height ? { width: 0.8 * i.width, height: 0.8 * i.width / r } : { height: 0.8 * i.height, width: 0.8 * i.height * r };
1363
- return ot(ae(ae({}, l), { aspectRatio: o, sizeRestrictions: a }));
1363
+ return nt(ae(ae({}, l), { aspectRatio: o, sizeRestrictions: a }));
1364
1364
  }
1365
1365
  function ha(e) {
1366
1366
  var n, t, o = e.imageSize, a = e.visibleArea, i = e.boundaries, r = e.aspectRatio, l = e.sizeRestrictions, s = e.stencilSize, u = a || o;
1367
- return ge(u) > ge(i) ? t = (n = s.height * u.height / i.height) * ge(s) : n = (t = s.width * u.width / i.width) / ge(s), ot({ width: t, height: n, aspectRatio: r, sizeRestrictions: l });
1367
+ return ge(u) > ge(i) ? t = (n = s.height * u.height / i.height) * ge(s) : n = (t = s.width * u.width / i.width) / ge(s), nt({ width: t, height: n, aspectRatio: r, sizeRestrictions: l });
1368
1368
  }
1369
1369
  function va(e) {
1370
1370
  var n = e.getAreaRestrictions, t = e.coordinates, o = e.imageSize, a = ge(e.boundaries);
1371
1371
  if (t) {
1372
- var i = { height: Math.max(t.height, o.height), width: Math.max(t.width, o.width) }, r = bo({ width: ge(i) > a ? i.width : i.height * a, height: ge(i) > a ? i.width / a : i.height }, hn(n())), l = { left: t.left + t.width / 2 - r.width / 2, top: t.top + t.height / 2 - r.height / 2, width: r.width, height: r.height }, s = Ct(t, et(ae({ left: 0, top: 0 }, o))), u = {};
1372
+ var i = { height: Math.max(t.height, o.height), width: Math.max(t.width, o.width) }, r = bo({ width: ge(i) > a ? i.width : i.height * a, height: ge(i) > a ? i.width / a : i.height }, hn(n())), l = { left: t.left + t.width / 2 - r.width / 2, top: t.top + t.height / 2 - r.height / 2, width: r.width, height: r.height }, s = Ct(t, Je(ae({ left: 0, top: 0 }, o))), u = {};
1373
1373
  return !s.left && !s.right && l.width <= o.width && (u.left = 0, u.right = o.width), !s.top && !s.bottom && l.height <= o.height && (u.top = 0, u.bottom = o.height), ze(l, u);
1374
1374
  }
1375
1375
  var d = ge(o);
1376
1376
  return r = { height: d > a ? o.height : o.width / a, width: d > a ? o.height * a : o.width }, { left: o.width / 2 - r.width / 2, top: o.height / 2 - r.height / 2, width: r.width, height: r.height };
1377
1377
  }
1378
1378
  function Et(e, n) {
1379
- return _o(e, et(n));
1379
+ return _o(e, Je(n));
1380
1380
  }
1381
1381
  function ga(e) {
1382
1382
  var n = e.event, t = e.coordinates, o = e.visibleArea, a = e.sizeRestrictions, i = e.getAreaRestrictions, r = e.positionRestrictions, l = e.adjustStencil, s = n.scale, u = n.move, d = ae({}, o), c = ae({}, t), m = 1, f = 1, v = s.factor && Math.abs(s.factor - 1) > 1e-3;
@@ -1384,42 +1384,42 @@ function ga(e) {
1384
1384
  var F = { stencil: { minimum: Math.max(a.minWidth ? a.minWidth / c.width : 0, a.minHeight ? a.minHeight / c.height : 0), maximum: Math.min(a.maxWidth ? a.maxWidth / c.width : 1 / 0, a.maxHeight ? a.maxHeight / c.height : 1 / 0, gt(c, r)) }, area: { maximum: gt(d, i({ visibleArea: d, type: "resize" })) } };
1385
1385
  s.factor && v && (s.factor < 1 ? (f = Math.max(s.factor, F.stencil.minimum)) > 1 && (f = 1) : s.factor > 1 && (f = Math.min(s.factor, Math.min(F.area.maximum, F.stencil.maximum))) < 1 && (f = 1)), f && (d = Be(d, f, s.center));
1386
1386
  var b = t.left - o.left, y = o.width + o.left - (t.width + t.left), g = t.top - o.top, C = o.height + o.top - (t.height + t.top);
1387
- return d = ze(d = Ne(d, bt(d, { left: r.left !== void 0 ? r.left - b * f : void 0, top: r.top !== void 0 ? r.top - g * f : void 0, bottom: r.bottom !== void 0 ? r.bottom + C * f : void 0, right: r.right !== void 0 ? r.right + y * f : void 0 })), i({ visibleArea: d, type: "move" })), c.width = c.width * f, c.height = c.height * f, c.left = d.left + b * f, c.top = d.top + g * f, c = ze(c, qt(et(d), r)), s.factor && v && l && (s.factor > 1 ? m = Math.min(F.area.maximum, s.factor) / f : s.factor < 1 && (m = Math.max(c.height / d.height, c.width / d.width, s.factor / f)), m !== 1 && (d = Ne(d = ze(d = Be(d, m, s.factor > 1 ? s.center : Ie(c)), i({ visibleArea: d, type: "move" })), Yt(bt(c, et(d)))))), { coordinates: c, visibleArea: d };
1387
+ return d = ze(d = Ne(d, bt(d, { left: r.left !== void 0 ? r.left - b * f : void 0, top: r.top !== void 0 ? r.top - g * f : void 0, bottom: r.bottom !== void 0 ? r.bottom + C * f : void 0, right: r.right !== void 0 ? r.right + y * f : void 0 })), i({ visibleArea: d, type: "move" })), c.width = c.width * f, c.height = c.height * f, c.left = d.left + b * f, c.top = d.top + g * f, c = ze(c, qt(Je(d), r)), s.factor && v && l && (s.factor > 1 ? m = Math.min(F.area.maximum, s.factor) / f : s.factor < 1 && (m = Math.max(c.height / d.height, c.width / d.width, s.factor / f)), m !== 1 && (d = Ne(d = ze(d = Be(d, m, s.factor > 1 ? s.center : Ie(c)), i({ visibleArea: d, type: "move" })), Yt(bt(c, Je(d)))))), { coordinates: c, visibleArea: d };
1388
1388
  }
1389
1389
  function ba(e) {
1390
- var n = e.aspectRatio, t = e.getAreaRestrictions, o = e.coordinates, a = e.visibleArea, i = e.sizeRestrictions, r = e.positionRestrictions, l = e.imageSize, s = e.previousImageSize, u = e.angle, d = ae({}, o), c = ae({}, a), m = at(Ie(ae({ left: 0, top: 0 }, s)), u);
1391
- return (d = ae(ae({}, ot({ sizeRestrictions: i, aspectRatio: n, width: d.width, height: d.height })), at(Ie(d), u))).left -= m.left - l.width / 2 + d.width / 2, d.top -= m.top - l.height / 2 + d.height / 2, c = Be(c, Ht(c, t({ visibleArea: c, type: "resize" }))), { coordinates: d = ze(d, r), visibleArea: c = ze(c = Ne(c, vt(Ie(d), Ie(o))), t({ visibleArea: c, type: "move" })) };
1390
+ var n = e.aspectRatio, t = e.getAreaRestrictions, o = e.coordinates, a = e.visibleArea, i = e.sizeRestrictions, r = e.positionRestrictions, l = e.imageSize, s = e.previousImageSize, u = e.angle, d = ae({}, o), c = ae({}, a), m = it(Ie(ae({ left: 0, top: 0 }, s)), u);
1391
+ return (d = ae(ae({}, nt({ sizeRestrictions: i, aspectRatio: n, width: d.width, height: d.height })), it(Ie(d), u))).left -= m.left - l.width / 2 + d.width / 2, d.top -= m.top - l.height / 2 + d.height / 2, c = Be(c, Ht(c, t({ visibleArea: c, type: "resize" }))), { coordinates: d = ze(d, r), visibleArea: c = ze(c = Ne(c, vt(Ie(d), Ie(o))), t({ visibleArea: c, type: "move" })) };
1392
1392
  }
1393
1393
  function ya(e) {
1394
1394
  var n = e.flip, t = e.previousFlip, o = e.rotate, a = e.getAreaRestrictions, i = e.coordinates, r = e.visibleArea, l = e.imageSize, s = ae({}, i), u = ae({}, r), d = t.horizontal !== n.horizontal, c = t.vertical !== n.vertical;
1395
1395
  if (d || c) {
1396
- var m = at({ left: l.width / 2, top: l.height / 2 }, -o), f = at(Ie(s), -o), v = at({ left: d ? m.left - (f.left - m.left) : f.left, top: c ? m.top - (f.top - m.top) : f.top }, o);
1397
- s = Ne(s, vt(v, Ie(s))), f = at(Ie(u), -o), u = ze(u = Ne(u, vt(v = at({ left: d ? m.left - (f.left - m.left) : f.left, top: c ? m.top - (f.top - m.top) : f.top }, o), Ie(u))), a({ visibleArea: u, type: "move" }));
1396
+ var m = it({ left: l.width / 2, top: l.height / 2 }, -o), f = it(Ie(s), -o), v = it({ left: d ? m.left - (f.left - m.left) : f.left, top: c ? m.top - (f.top - m.top) : f.top }, o);
1397
+ s = Ne(s, vt(v, Ie(s))), f = it(Ie(u), -o), u = ze(u = Ne(u, vt(v = it({ left: d ? m.left - (f.left - m.left) : f.left, top: c ? m.top - (f.top - m.top) : f.top }, o), Ie(u))), a({ visibleArea: u, type: "move" }));
1398
1398
  }
1399
1399
  return { coordinates: s, visibleArea: u };
1400
1400
  }
1401
1401
  function Gn(e) {
1402
- var n = e.directions, t = e.coordinates, o = e.positionRestrictions, a = o === void 0 ? {} : o, i = e.sizeRestrictions, r = e.preserveRatio, l = e.compensate, s = ae({}, n), u = qe(t, s).width, d = qe(t, s).height;
1402
+ var n = e.directions, t = e.coordinates, o = e.positionRestrictions, a = o === void 0 ? {} : o, i = e.sizeRestrictions, r = e.preserveRatio, l = e.compensate, s = ae({}, n), u = He(t, s).width, d = He(t, s).height;
1403
1403
  u < 0 && (s.left < 0 && s.right < 0 ? (s.left = -(t.width - i.minWidth) / (s.left / s.right), s.right = -(t.width - i.minWidth) / (s.right / s.left)) : s.left < 0 ? s.left = -(t.width - i.minWidth) : s.right < 0 && (s.right = -(t.width - i.minWidth))), d < 0 && (s.top < 0 && s.bottom < 0 ? (s.top = -(t.height - i.minHeight) / (s.top / s.bottom), s.bottom = -(t.height - i.minHeight) / (s.bottom / s.top)) : s.top < 0 ? s.top = -(t.height - i.minHeight) : s.bottom < 0 && (s.bottom = -(t.height - i.minHeight)));
1404
- var c = Ct(qe(t, s), a);
1405
- l && (c.left && c.left > 0 && c.right === 0 ? (s.right += c.left, s.left -= c.left) : c.right && c.right > 0 && c.left === 0 && (s.left += c.right, s.right -= c.right), c.top && c.top > 0 && c.bottom === 0 ? (s.bottom += c.top, s.top -= c.top) : c.bottom && c.bottom > 0 && c.top === 0 && (s.top += c.bottom, s.bottom -= c.bottom), c = Ct(qe(t, s), a));
1404
+ var c = Ct(He(t, s), a);
1405
+ l && (c.left && c.left > 0 && c.right === 0 ? (s.right += c.left, s.left -= c.left) : c.right && c.right > 0 && c.left === 0 && (s.left += c.right, s.right -= c.right), c.top && c.top > 0 && c.bottom === 0 ? (s.bottom += c.top, s.top -= c.top) : c.bottom && c.bottom > 0 && c.top === 0 && (s.top += c.bottom, s.bottom -= c.bottom), c = Ct(He(t, s), a));
1406
1406
  var m = { width: 1 / 0, height: 1 / 0, left: 1 / 0, right: 1 / 0, top: 1 / 0, bottom: 1 / 0 };
1407
- if (Xe.forEach(function(F) {
1407
+ if (qe.forEach(function(F) {
1408
1408
  var b = c[F];
1409
1409
  b && s[F] && (m[F] = Math.max(0, 1 - b / s[F]));
1410
1410
  }), r) {
1411
- var f = Math.min.apply(null, Xe.map(function(F) {
1411
+ var f = Math.min.apply(null, qe.map(function(F) {
1412
1412
  return m[F];
1413
1413
  }));
1414
- f !== 1 / 0 && Xe.forEach(function(F) {
1414
+ f !== 1 / 0 && qe.forEach(function(F) {
1415
1415
  s[F] *= f;
1416
1416
  });
1417
- } else Xe.forEach(function(F) {
1417
+ } else qe.forEach(function(F) {
1418
1418
  m[F] !== 1 / 0 && (s[F] *= m[F]);
1419
1419
  });
1420
- if (u = qe(t, s).width, d = qe(t, s).height, s.right + s.left && (u > i.maxWidth ? m.width = (i.maxWidth - t.width) / (s.right + s.left) : u < i.minWidth && (m.width = (i.minWidth - t.width) / (s.right + s.left))), s.bottom + s.top && (d > i.maxHeight ? m.height = (i.maxHeight - t.height) / (s.bottom + s.top) : d < i.minHeight && (m.height = (i.minHeight - t.height) / (s.bottom + s.top))), r) {
1420
+ if (u = He(t, s).width, d = He(t, s).height, s.right + s.left && (u > i.maxWidth ? m.width = (i.maxWidth - t.width) / (s.right + s.left) : u < i.minWidth && (m.width = (i.minWidth - t.width) / (s.right + s.left))), s.bottom + s.top && (d > i.maxHeight ? m.height = (i.maxHeight - t.height) / (s.bottom + s.top) : d < i.minHeight && (m.height = (i.minHeight - t.height) / (s.bottom + s.top))), r) {
1421
1421
  var v = Math.min(m.width, m.height);
1422
- v !== 1 / 0 && Xe.forEach(function(F) {
1422
+ v !== 1 / 0 && qe.forEach(function(F) {
1423
1423
  s[F] *= v;
1424
1424
  });
1425
1425
  } else m.width !== 1 / 0 && ia.forEach(function(F) {
@@ -1447,7 +1447,7 @@ var _a = We("vue-simple-handler"), wa = We("vue-simple-handler-wrapper"), Sn = {
1447
1447
  this.$emit("drag-end");
1448
1448
  } }, emits: ["drag", "drag-end"] };
1449
1449
  Sn.render = function(e, n, t, o, a, i) {
1450
- var r = P("HandlerWrapper");
1450
+ var r = U("HandlerWrapper");
1451
1451
  return S(), Y(r, { class: i.classes.wrapper, "vertical-position": t.verticalPosition, "horizontal-position": t.horizontalPosition, disabled: t.disabled, onDrag: i.onDrag, onDragEnd: i.onDragEnd, onEnter: i.onEnter, onLeave: i.onLeave }, { default: I(function() {
1452
1452
  return [h("div", { class: i.classes.default }, null, 2)];
1453
1453
  }), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
@@ -1466,7 +1466,7 @@ var ka = We("vue-simple-line"), Ca = We("vue-simple-line-wrapper"), xn = { name:
1466
1466
  this.$emit("drag-end");
1467
1467
  } }, emits: ["drag", "drag-end"] };
1468
1468
  xn.render = function(e, n, t, o, a, i) {
1469
- var r = P("LineWrapper");
1469
+ var r = U("LineWrapper");
1470
1470
  return S(), Y(r, { class: i.classes.wrapper, position: t.position, disabled: t.disabled, onDrag: i.onDrag, onDragEnd: i.onDragEnd, onEnter: i.onEnter, onLeave: i.onLeave }, { default: I(function() {
1471
1471
  return [h("div", { class: i.classes.root }, null, 2)];
1472
1472
  }), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
@@ -1740,7 +1740,7 @@ So.render = function(e, n, t, o, a, i) {
1740
1740
  };
1741
1741
  var gn = { components: { TransformableImage: So }, 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"] };
1742
1742
  gn.render = function(e, n, t, o, a, i) {
1743
- var r = P("transformable-image");
1743
+ var r = U("transformable-image");
1744
1744
  return S(), Y(r, { "touch-move": t.touchMove, "touch-resize": t.touchResize, "mouse-move": t.mouseMove, "wheel-resize": t.wheelResize, onMove: n[1] || (n[1] = function(l) {
1745
1745
  return e.$emit("move", l);
1746
1746
  }), onResize: n[2] || (n[2] = function(l) {
@@ -1797,7 +1797,7 @@ xo.render = function(e, n, t, o, a, i) {
1797
1797
  };
1798
1798
  var Fo = { components: { Preview: xo }, inheritAttrs: !1 };
1799
1799
  Fo.render = function(e, n, t, o, a, i) {
1800
- var r = P("preview");
1800
+ var r = U("preview");
1801
1801
  return S(), Y(r, Hn(e.$attrs, { fill: !0 }), null, 16);
1802
1802
  };
1803
1803
  var an = We("vue-rectangle-stencil"), Oo = { name: "RectangleStencil", components: { StencilPreview: Fo, BoundingBox: wo, DraggableArea: ko }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
@@ -1831,14 +1831,14 @@ var an = We("vue-rectangle-stencil"), Oo = { name: "RectangleStencil", component
1831
1831
  return { minimum: this.aspectRatio || this.minAspectRatio, maximum: this.aspectRatio || this.maxAspectRatio };
1832
1832
  } }, emits: ["resize", "resize-end", "move", "move-end"] };
1833
1833
  Oo.render = function(e, n, t, o, a, i) {
1834
- var r = P("stencil-preview"), l = P("draggable-area"), s = P("bounding-box");
1834
+ var r = U("stencil-preview"), l = U("draggable-area"), s = U("bounding-box");
1835
1835
  return S(), Y("div", { class: i.classes.stencil, style: i.style }, [h(s, { width: t.stencilCoordinates.width, height: t.stencilCoordinates.height, transitions: t.transitions, class: i.classes.boundingBox, handlers: t.handlers, "handlers-component": t.handlersComponent, "handlers-classes": t.handlersClasses, "handlers-wrappers-classes": t.handlersWrappersClasses, lines: t.lines, "lines-component": t.linesComponent, "lines-classes": t.linesClasses, "lines-wrappers-classes": t.linesWrappersClasses, resizable: t.resizable, onResize: i.onResize, onResizeEnd: i.onResizeEnd }, { default: I(function() {
1836
1836
  return [h(l, { movable: t.movable, onMove: i.onMove, onMoveEnd: i.onMoveEnd }, { default: I(function() {
1837
1837
  return [h(r, { image: t.image, coordinates: t.coordinates, width: t.stencilCoordinates.width, height: t.stencilCoordinates.height, class: i.classes.preview, transitions: t.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
1838
1838
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
1839
1839
  }), _: 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);
1840
1840
  };
1841
- var Aa = ["transitions"], tt = We("vue-advanced-cropper"), Ro = { name: "Cropper", components: { BackgroundWrapper: gn }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
1841
+ var Aa = ["transitions"], et = We("vue-advanced-cropper"), Ro = { name: "Cropper", components: { BackgroundWrapper: gn }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
1842
1842
  return Oo;
1843
1843
  } }, backgroundWrapperComponent: { type: [Object, String], default: function() {
1844
1844
  return gn;
@@ -1850,10 +1850,10 @@ var Aa = ["transitions"], tt = We("vue-advanced-cropper"), Ro = { name: "Cropper
1850
1850
  return !(typeof e == "string" && e !== "fill" && e !== "fit");
1851
1851
  } }, 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) {
1852
1852
  var n = e.event, t = e.coordinates, o = e.aspectRatio, a = e.positionRestrictions, i = e.sizeRestrictions, r = ae(ae({}, t), { right: t.left + t.width, bottom: t.top + t.height }), l = n.params || {}, s = ae({}, n.directions), u = l.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
1853
- i.widthFrozen && (s.left = 0, s.right = 0), i.heightFrozen && (s.top = 0, s.bottom = 0), Xe.forEach(function(N) {
1853
+ i.widthFrozen && (s.left = 0, s.right = 0), i.heightFrozen && (s.top = 0, s.bottom = 0), qe.forEach(function(N) {
1854
1854
  u[N] || (s[N] = 0);
1855
1855
  });
1856
- var d = qe(r, s = Gn({ coordinates: r, directions: s, sizeRestrictions: i, positionRestrictions: a })).width, c = qe(r, s).height, m = l.preserveRatio ? ge(r) : tn(d / c, o);
1856
+ var d = He(r, s = Gn({ coordinates: r, directions: s, sizeRestrictions: i, positionRestrictions: a })).width, c = He(r, s).height, m = l.preserveRatio ? ge(r) : tn(d / c, o);
1857
1857
  if (m) {
1858
1858
  var f = l.respectDirection;
1859
1859
  if (f || (f = r.width >= r.height || m === 1 ? "width" : "height"), f === "width") {
@@ -1871,19 +1871,19 @@ var Aa = ["transitions"], tt = We("vue-advanced-cropper"), Ro = { name: "Cropper
1871
1871
  }
1872
1872
  s = Gn({ directions: s, coordinates: r, sizeRestrictions: i, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
1873
1873
  }
1874
- return d = qe(r, s).width, c = qe(r, s).height, (m = l.preserveRatio ? ge(r) : tn(d / c, o)) && Math.abs(m - d / c) > 1e-3 && Xe.forEach(function(N) {
1874
+ return d = He(r, s).width, c = He(r, s).height, (m = l.preserveRatio ? ge(r) : tn(d / c, o)) && Math.abs(m - d / c) > 1e-3 && qe.forEach(function(N) {
1875
1875
  u[N] || (s[N] = 0);
1876
1876
  }), vn({ event: new kn({ left: -s.left, top: -s.top }), coordinates: { width: t.width + s.right + s.left, height: t.height + s.top + s.bottom, left: t.left, top: t.top }, positionRestrictions: a });
1877
1877
  } }, moveAlgorithm: { type: Function, default: vn }, initStretcher: { type: Function, default: function(e) {
1878
1878
  var n = e.stretcher, t = e.imageSize, o = ge(t);
1879
1879
  n.style.width = t.width + "px", n.style.height = n.clientWidth / o + "px", n.style.width = n.clientWidth + "px";
1880
1880
  } }, fitCoordinates: { type: Function, default: function(e) {
1881
- var n = e.visibleArea, t = e.coordinates, o = e.aspectRatio, a = e.sizeRestrictions, i = e.positionRestrictions, r = ae(ae({}, t), ot({ width: t.width, height: t.height, aspectRatio: o, sizeRestrictions: { maxWidth: n.width, maxHeight: n.height, minHeight: Math.min(n.height, a.minHeight), minWidth: Math.min(n.width, a.minWidth) } }));
1882
- return r = ze(r = Ne(r, vt(Ie(t), Ie(r))), qt(et(n), i));
1881
+ var n = e.visibleArea, t = e.coordinates, o = e.aspectRatio, a = e.sizeRestrictions, i = e.positionRestrictions, r = ae(ae({}, t), nt({ width: t.width, height: t.height, aspectRatio: o, sizeRestrictions: { maxWidth: n.width, maxHeight: n.height, minHeight: Math.min(n.height, a.minHeight), minWidth: Math.min(n.width, a.minWidth) } }));
1882
+ return r = ze(r = Ne(r, vt(Ie(t), Ie(r))), qt(Je(n), i));
1883
1883
  } }, fitVisibleArea: { type: Function, default: function(e) {
1884
1884
  var n = e.visibleArea, t = e.boundaries, o = e.getAreaRestrictions, a = e.coordinates, i = ae({}, n);
1885
1885
  i.height = i.width / ge(t), i.top += (n.height - i.height) / 2, (a.height - i.height > 0 || a.width - i.width > 0) && (i = Be(i, Math.max(a.height / i.height, a.width / i.width)));
1886
- var r = Yt(bt(a, et(i = Be(i, Ht(i, o({ visibleArea: i, type: "resize" }))))));
1886
+ var r = Yt(bt(a, Je(i = Be(i, Ht(i, o({ visibleArea: i, type: "resize" }))))));
1887
1887
  return i.width < a.width && (r.left = 0), i.height < a.height && (r.top = 0), i = ze(i = Ne(i, r), o({ visibleArea: i, type: "move" }));
1888
1888
  } }, areaRestrictionsAlgorithm: { type: Function, default: function(e) {
1889
1889
  var n = e.visibleArea, t = e.boundaries, o = e.imageSize, a = e.imageRestriction, i = e.type, r = {};
@@ -1933,7 +1933,7 @@ var Aa = ["transitions"], tt = We("vue-advanced-cropper"), Ro = { name: "Cropper
1933
1933
  }, positionRestrictions: function() {
1934
1934
  return this.positionRestrictionsAlgorithm({ imageSize: this.imageSize, imageRestriction: this.imageRestriction });
1935
1935
  }, classes: function() {
1936
- return { cropper: tt(), image: De(tt("image"), this.imageClass), stencil: tt("stencil"), boundaries: De(tt("boundaries"), this.boundariesClass), stretcher: De(tt("stretcher")), background: De(tt("background"), this.backgroundClass), foreground: De(tt("foreground"), this.foregroundClass), imageWrapper: De(tt("image-wrapper")), cropperWrapper: De(tt("cropper-wrapper")) };
1936
+ return { cropper: et(), image: De(et("image"), this.imageClass), stencil: et("stencil"), boundaries: De(et("boundaries"), this.boundariesClass), stretcher: De(et("stretcher")), background: De(et("background"), this.backgroundClass), foreground: De(et("foreground"), this.foregroundClass), imageWrapper: De(et("image-wrapper")), cropperWrapper: De(et("cropper-wrapper")) };
1937
1937
  }, stencilCoordinates: function() {
1938
1938
  if (this.initialized) {
1939
1939
  var e = this.coordinates, n = e.width, t = e.height, o = e.left, a = e.top;
@@ -2029,7 +2029,7 @@ var Aa = ["transitions"], tt = We("vue-advanced-cropper"), Ro = { name: "Cropper
2029
2029
  if (t.type === "manipulateImage") return ae(ae({}, t), { move: { left: t.move && t.move.left ? a * t.move.left : 0, top: t.move && t.move.top ? a * t.move.top : 0 }, scale: { factor: t.scale && t.scale.factor ? t.scale.factor : 1, center: t.scale && t.scale.center ? { left: t.scale.center.left * a + o.left, top: t.scale.center.top * a + o.top } : null } });
2030
2030
  if (t.type === "resize") {
2031
2031
  var i = ae(ae({}, t), { directions: ae({}, t.directions) });
2032
- return Xe.forEach(function(l) {
2032
+ return qe.forEach(function(l) {
2033
2033
  i.directions[l] *= a;
2034
2034
  }), i;
2035
2035
  }
@@ -2046,14 +2046,14 @@ var Aa = ["transitions"], tt = We("vue-advanced-cropper"), Ro = { name: "Cropper
2046
2046
  var e = this.$refs.canvas, n = this.$refs.image, t = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(l, s, u) {
2047
2047
  var d = u.rotate, c = u.flip, m = { width: s.naturalWidth, height: s.naturalHeight }, f = yo(m, d), v = l.getContext("2d");
2048
2048
  l.height = f.height, l.width = f.width, v.save();
2049
- var F = at(Ie(ae({ left: 0, top: 0 }, m)), d);
2049
+ var F = it(Ie(ae({ left: 0, top: 0 }, m)), d);
2050
2050
  return v.translate(-(F.left - f.width / 2), -(F.top - f.height / 2)), v.rotate(d * Math.PI / 180), v.translate(c.horizontal ? m.width : 0, c.vertical ? m.height : 0), v.scale(c.horizontal ? -1 : 1, c.vertical ? -1 : 1), v.drawImage(s, 0, 0, m.width, m.height), v.restore(), l;
2051
2051
  }(this.$refs.sourceCanvas, n, this.imageTransforms) : n, o = ve({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: !0, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), a = function(l) {
2052
2052
  return l.find(function(s) {
2053
2053
  return u = s, !Number.isNaN(parseFloat(u)) && isFinite(u);
2054
2054
  var u;
2055
2055
  });
2056
- }, i = ot({ sizeRestrictions: { minWidth: a([o.width, o.minWidth]) || 0, minHeight: a([o.height, o.minHeight]) || 0, maxWidth: a([o.width, o.maxWidth]) || 1 / 0, maxHeight: a([o.height, o.maxHeight]) || 1 / 0 }, width: this.coordinates.width, height: this.coordinates.height, aspectRatio: { minimum: this.coordinates.width / this.coordinates.height, maximum: this.coordinates.width / this.coordinates.height } });
2056
+ }, i = nt({ sizeRestrictions: { minWidth: a([o.width, o.minWidth]) || 0, minHeight: a([o.height, o.minHeight]) || 0, maxWidth: a([o.width, o.maxWidth]) || 1 / 0, maxHeight: a([o.height, o.maxHeight]) || 1 / 0 }, width: this.coordinates.width, height: this.coordinates.height, aspectRatio: { minimum: this.coordinates.width / this.coordinates.height, maximum: this.coordinates.width / this.coordinates.height } });
2057
2057
  if (o.maxArea && i.width * i.height > o.maxArea) {
2058
2058
  var r = Math.sqrt(o.maxArea / (i.width * i.height));
2059
2059
  i = { width: Math.round(r * i.width), height: Math.round(r * i.height) };
@@ -2241,7 +2241,7 @@ var Aa = ["transitions"], tt = We("vue-advanced-cropper"), Ro = { name: "Cropper
2241
2241
  }
2242
2242
  return { minimum: n, maximum: t };
2243
2243
  }, getStencilSize: function() {
2244
- if (this.stencilSize) return e = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, n = e.boundaries, t = e.stencilSize, o = e.aspectRatio, tn(ge(a = pt(t) ? t({ boundaries: n, aspectRatio: o }) : t), o) && (a = ot({ sizeRestrictions: { maxWidth: n.width, maxHeight: n.height, minWidth: 0, minHeight: 0 }, width: a.width, height: a.height, aspectRatio: { minimum: o.minimum, maximum: o.maximum } })), (a.width > n.width || a.height > n.height) && (a = ot({ sizeRestrictions: { maxWidth: n.width, maxHeight: n.height, minWidth: 0, minHeight: 0 }, width: a.width, height: a.height, aspectRatio: { minimum: ge(a), maximum: ge(a) } })), a;
2244
+ if (this.stencilSize) return e = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, n = e.boundaries, t = e.stencilSize, o = e.aspectRatio, tn(ge(a = pt(t) ? t({ boundaries: n, aspectRatio: o }) : t), o) && (a = nt({ sizeRestrictions: { maxWidth: n.width, maxHeight: n.height, minWidth: 0, minHeight: 0 }, width: a.width, height: a.height, aspectRatio: { minimum: o.minimum, maximum: o.maximum } })), (a.width > n.width || a.height > n.height) && (a = nt({ sizeRestrictions: { maxWidth: n.width, maxHeight: n.height, minWidth: 0, minHeight: 0 }, width: a.width, height: a.height, aspectRatio: { minimum: ge(a), maximum: ge(a) } })), a;
2245
2245
  var e, n, t, o, a;
2246
2246
  }, getPublicProperties: function() {
2247
2247
  return { coefficient: this.coefficient, visibleArea: this.visibleArea, coordinates: this.coordinates, boundaries: this.boundaries, sizeRestrictions: this.sizeRestrictions, positionRestrictions: this.positionRestrictions, aspectRatio: this.getAspectRatio(), imageRestriction: this.imageRestriction };
@@ -2360,11 +2360,11 @@ const Va = {
2360
2360
  });
2361
2361
  }
2362
2362
  return (b, y) => {
2363
- const g = P("fm-icon"), C = P("fm-drop-field");
2363
+ const g = U("fm-icon"), C = U("fm-drop-field");
2364
2364
  return r.value || i.value ? (S(), W("div", Va, [
2365
2365
  D("p", Ia, [
2366
- Pt(se(b.title) + " ", 1),
2367
- D("span", za, se(p(o)("menu.common.labels.optional")), 1)
2366
+ Pt(le(b.title) + " ", 1),
2367
+ D("span", za, le(p(o)("menu.common.labels.optional")), 1)
2368
2368
  ]),
2369
2369
  D("div", Pa, [
2370
2370
  D("div", Ua, [
@@ -2419,12 +2419,12 @@ const Va = {
2419
2419
  }, {
2420
2420
  label: I(() => [
2421
2421
  D("p", La, [
2422
- Pt(se(b.title) + " ", 1),
2423
- D("span", Ba, se(p(o)("menu.common.labels.optional")), 1)
2422
+ Pt(le(b.title) + " ", 1),
2423
+ D("span", Ba, le(p(o)("menu.common.labels.optional")), 1)
2424
2424
  ])
2425
2425
  ]),
2426
2426
  "accept-text": I(() => [
2427
- D("p", Ga, se(p(o)("menu.common.file.accepts")), 1)
2427
+ D("p", Ga, le(p(o)("menu.common.file.accepts")), 1)
2428
2428
  ]),
2429
2429
  _: 1
2430
2430
  }));
@@ -2507,7 +2507,7 @@ const Va = {
2507
2507
  return c ? l(c) : null;
2508
2508
  });
2509
2509
  return (u, d) => {
2510
- const c = P("fm-select");
2510
+ const c = U("fm-select");
2511
2511
  return S(), W("div", null, [
2512
2512
  h(c, {
2513
2513
  disabled: e.disable,
@@ -2539,7 +2539,7 @@ const Va = {
2539
2539
  },
2540
2540
  emits: ["update:modelValue"],
2541
2541
  setup(e, { emit: n }) {
2542
- const t = e, o = n, a = Ke(), i = je(), r = Qe(i), l = Je(r), { t: s } = ni(), u = j(null), d = j([]), c = di({
2542
+ const t = e, o = n, a = Ke(), i = je(), r = Ze(i), l = Qe(r), { t: s } = ni(), u = j(null), d = j([]), c = di({
2543
2543
  dialog: a,
2544
2544
  menuLoader: l,
2545
2545
  isLocalOnly: t.isLocalOnly
@@ -2567,7 +2567,7 @@ const Va = {
2567
2567
  },
2568
2568
  { immediate: !0 }
2569
2569
  ), (g, C) => {
2570
- const N = P("FmIcon"), $ = P("FmField"), M = P("FmMenuItem"), k = P("FmMenu"), T = P("FmFormGroup"), E = P("FmChipGroup");
2570
+ const N = U("FmIcon"), $ = U("FmField"), M = U("FmMenuItem"), k = U("FmMenu"), T = U("FmFormGroup"), E = U("FmChipGroup");
2571
2571
  return S(), W("div", ja, [
2572
2572
  h(T, {
2573
2573
  "model-value": g.modelValue,
@@ -2603,7 +2603,7 @@ const Va = {
2603
2603
  class: Ue([[
2604
2604
  g.disabled ? "text-fm-color-typo-disabled" : d.value.length > 0 ? "text-fm-color-typo-primary" : "text-fm-color-typo-tertiary"
2605
2605
  ], "break-all fm-typo-en-body-lg-400 line-clamp-1"])
2606
- }, se(b.value), 3)
2606
+ }, le(b.value), 3)
2607
2607
  ]),
2608
2608
  _: 2
2609
2609
  }, 1032, ["class", "focused", "invalid"])
@@ -2628,7 +2628,7 @@ const Va = {
2628
2628
  name: "add",
2629
2629
  size: "md"
2630
2630
  }),
2631
- D("p", Wa, se(p(s)("menu.product.form.detail.subcategory.add_new")), 1)
2631
+ D("p", Wa, le(p(s)("menu.product.form.detail.subcategory.add_new")), 1)
2632
2632
  ])
2633
2633
  ])
2634
2634
  ]),
@@ -2736,7 +2736,7 @@ const Va = {
2736
2736
  m.value = !m.value;
2737
2737
  }
2738
2738
  return (k, T) => {
2739
- const E = P("FmIcon"), A = P("fm-button"), _ = P("fm-dialog");
2739
+ const E = U("FmIcon"), A = U("fm-button"), _ = U("fm-dialog");
2740
2740
  return S(), Y(_, {
2741
2741
  modelValue: N.value,
2742
2742
  "onUpdate:modelValue": T[2] || (T[2] = (w) => N.value = w),
@@ -2744,7 +2744,7 @@ const Va = {
2744
2744
  "onOn:clickedAway": p(C)
2745
2745
  }, {
2746
2746
  "dialog-header": I(() => [
2747
- D("p", Xa, se(p(a)("menu.product.translation.title")), 1)
2747
+ D("p", Xa, le(p(a)("menu.product.translation.title")), 1)
2748
2748
  ]),
2749
2749
  "dialog-footer": I(() => [
2750
2750
  D("div", sr, [
@@ -2777,7 +2777,7 @@ const Va = {
2777
2777
  h(E, {
2778
2778
  name: c.value ? "keyboard_arrow_down" : "keyboard_arrow_right"
2779
2779
  }, null, 8, ["name"]),
2780
- D("p", Ja, se(p(a)("menu.product.translation.product_name")), 1)
2780
+ D("p", Ja, le(p(a)("menu.product.translation.product_name")), 1)
2781
2781
  ]),
2782
2782
  c.value ? (S(), W("div", er, [
2783
2783
  h(Nt, {
@@ -2810,8 +2810,8 @@ const Va = {
2810
2810
  name: m.value ? "keyboard_arrow_down" : "keyboard_arrow_right"
2811
2811
  }, null, 8, ["name"]),
2812
2812
  D("p", or, [
2813
- Pt(se(p(a)("menu.product.translation.description")) + " ", 1),
2814
- D("span", ir, se(p(a)("menu.product.translation.optional")), 1)
2813
+ Pt(le(p(a)("menu.product.translation.description")) + " ", 1),
2814
+ D("span", ir, le(p(a)("menu.product.translation.optional")), 1)
2815
2815
  ])
2816
2816
  ]),
2817
2817
  m.value ? (S(), W("div", ar, [
@@ -2845,7 +2845,7 @@ const Va = {
2845
2845
  };
2846
2846
  }
2847
2847
  });
2848
- var Kn = { firebase: { storageBucket: "image.feedmedev.cc" } };
2848
+ var Kn = { firebase: { storageBucket: "image.feedme.cc" } };
2849
2849
  const ur = {
2850
2850
  class: "fm-typo-en-title-md-600"
2851
2851
  }, cr = {
@@ -2875,7 +2875,7 @@ const ur = {
2875
2875
  setup(e, {
2876
2876
  expose: n
2877
2877
  }) {
2878
- const t = e, o = je(), a = Qe(o), i = Je(a), r = Fe(), l = Xt(), {
2878
+ const t = e, o = je(), a = Ze(o), i = Qe(a), r = Fe(), l = Xt(), {
2879
2879
  categories: s
2880
2880
  } = pi(), {
2881
2881
  t: u
@@ -2935,12 +2935,12 @@ const ur = {
2935
2935
  return y.value.name && !ee && V.push({
2936
2936
  locale: X,
2937
2937
  name: y.value.name,
2938
- localeDisplay: rt(X)
2938
+ localeDisplay: at(X)
2939
2939
  }), f.value && Object.entries(f.value).filter(([de, z]) => z && z.trim()).sort(([de], [z]) => de.localeCompare(z)).forEach(([de, z]) => {
2940
2940
  V.push({
2941
2941
  locale: de,
2942
2942
  name: z,
2943
- localeDisplay: rt(de)
2943
+ localeDisplay: at(de)
2944
2944
  });
2945
2945
  }), V;
2946
2946
  });
@@ -3014,7 +3014,7 @@ const ur = {
3014
3014
  trigger: F,
3015
3015
  show: c
3016
3016
  }), (V, X) => {
3017
- const ee = P("fm-button"), ie = P("FmTooltip"), de = P("FmTextField"), z = P("FmButton"), x = P("FmSearch"), L = P("FmTable"), J = P("fm-side-sheet");
3017
+ const ee = U("fm-button"), ie = U("FmTooltip"), de = U("FmTextField"), z = U("FmButton"), x = U("FmSearch"), L = U("FmTable"), J = U("fm-side-sheet");
3018
3018
  return S(), W(be, null, [xe(V.$slots, "default", {
3019
3019
  trigger: F
3020
3020
  }), h(J, {
@@ -3029,7 +3029,7 @@ const ur = {
3029
3029
  "max-width": 560,
3030
3030
  "onOn:clickedAway": p(te)
3031
3031
  }, {
3032
- "side-sheet-header": I(() => [D("p", ur, se(g.value ? p(u)("menu.category.manager.dialog.add.title") : p(u)("menu.category.title")), 1)]),
3032
+ "side-sheet-header": I(() => [D("p", ur, le(g.value ? p(u)("menu.category.manager.dialog.add.title") : p(u)("menu.category.title")), 1)]),
3033
3033
  "side-sheet-footer": I(() => [D("div", gr, [b.value ? ne("", !0) : (S(), Y(ee, {
3034
3034
  key: 0,
3035
3035
  label: g.value ? p(u)("menu.category.manager.dialog.add.action") : p(u)("menu.common.actions.update"),
@@ -3060,7 +3060,7 @@ const ur = {
3060
3060
  }, {
3061
3061
  content: I(() => [D("div", dr, [(S(!0), W(be, null, Ee(w.value, (q) => (S(), W("div", {
3062
3062
  key: q.locale
3063
- }, se(q.name) + " (" + se(q.localeDisplay) + ") ", 1))), 128))])]),
3063
+ }, le(q.name) + " (" + le(q.localeDisplay) + ") ", 1))), 128))])]),
3064
3064
  default: I(() => [h(ee, {
3065
3065
  variant: "tertiary",
3066
3066
  icon: "g_translate",
@@ -3088,7 +3088,7 @@ const ur = {
3088
3088
  placement: "top",
3089
3089
  "z-index": 999
3090
3090
  }, {
3091
- content: I(() => [D("div", mr, se(p(u)("menu.category.products.save_first")), 1)]),
3091
+ content: I(() => [D("div", mr, le(p(u)("menu.category.products.save_first")), 1)]),
3092
3092
  default: I(() => [h(z, {
3093
3093
  label: p(u)("menu.category.products.add"),
3094
3094
  variant: "secondary",
@@ -3108,7 +3108,7 @@ const ur = {
3108
3108
  "border-color": "primary",
3109
3109
  onClick: M
3110
3110
  }, null, 8, ["label"]))]),
3111
- default: I(() => [D("div", pr, [D("div", fr, se(p(u)("menu.category.products.linked_count", {
3111
+ default: I(() => [D("div", pr, [D("div", fr, le(p(u)("menu.category.products.linked_count", {
3112
3112
  count: N.value.length
3113
3113
  })), 1), D("div", hr, [h(x, {
3114
3114
  placeholder: p(u)("menu.common.actions.search"),
@@ -3173,7 +3173,7 @@ const ur = {
3173
3173
  m(), l("primary");
3174
3174
  }
3175
3175
  return (v, F) => {
3176
- const b = P("fm-button"), y = P("fm-text-field"), g = P("FmForm");
3176
+ const b = U("fm-button"), y = U("fm-text-field"), g = U("FmForm");
3177
3177
  return S(), W(be, null, [
3178
3178
  h(g, { onValidationSuccess: f }, {
3179
3179
  default: I(() => [
@@ -3369,23 +3369,23 @@ const Pr = /* @__PURE__ */ he({
3369
3369
  setup(e, {
3370
3370
  emit: n
3371
3371
  }) {
3372
- const t = e, o = Fe(), a = xt(), i = Ke(), r = je(), l = Qe(r), s = Je(l), u = _r({
3372
+ const t = e, o = Fe(), a = xt(), i = Ke(), r = je(), l = Ze(r), s = Qe(l), u = _r({
3373
3373
  dialog: i,
3374
3374
  menuLoader: s
3375
3375
  }), {
3376
3376
  checkMenuIsLoading: d
3377
- } = Je(Qe(je())), c = n, m = R(() => o.rules.item), f = R(() => o.categorizedItems), v = R(() => {
3378
- const U = f.value.map((H) => ({
3377
+ } = Qe(Ze(je())), c = n, m = R(() => o.rules.item), f = R(() => o.categorizedItems), v = R(() => {
3378
+ const P = f.value.map((H) => ({
3379
3379
  label: H.name,
3380
3380
  value: H.id
3381
3381
  }));
3382
- return t.isAddon ? U : U.filter((H) => !!H.value);
3383
- }), F = R(() => m.value.addon), b = R(() => !v.value.find((U) => !!U.value)), y = R(() => qo(t.form.category ? t.form : t.fallback) || []), g = R(() => y.value.reduce((U, H) => (U[H._id] = H, U), {})), C = R({
3382
+ return t.isAddon ? P : P.filter((H) => !!H.value);
3383
+ }), F = R(() => m.value.addon), b = R(() => !v.value.find((P) => !!P.value)), y = R(() => qo(t.form.category ? t.form : t.fallback) || []), g = R(() => y.value.reduce((P, H) => (P[H._id] = H, P), {})), C = R({
3384
3384
  get() {
3385
- return y.value.map((U) => U._id);
3385
+ return y.value.map((P) => P._id);
3386
3386
  },
3387
- set(U = []) {
3388
- const [H, ...le] = U.map((Re) => {
3387
+ set(P = []) {
3388
+ const [H, ...ue] = P.map((Re) => {
3389
3389
  const Ce = g.value[Re];
3390
3390
  return Ce || {
3391
3391
  _id: Re,
@@ -3396,10 +3396,10 @@ const Pr = /* @__PURE__ */ he({
3396
3396
  c("update:form", "category", null), c("update:form", "additionalCategories", []);
3397
3397
  return;
3398
3398
  }
3399
- c("update:form", "category", H._id), c("update:form", "additionalCategories", le);
3399
+ c("update:form", "category", H._id), c("update:form", "additionalCategories", ue);
3400
3400
  }
3401
3401
  }), N = j(), $ = ({
3402
- multiple: U = !0
3402
+ multiple: P = !0
3403
3403
  } = {}) => t.isAddon ? null : h(Qi, {
3404
3404
  ref: N,
3405
3405
  disabled: !m.value.category || t.isAddon || d(),
@@ -3407,7 +3407,7 @@ const Pr = /* @__PURE__ */ he({
3407
3407
  modelValue: C.value,
3408
3408
  "onUpdate:model-value": (H) => C.value = H,
3409
3409
  placeholder: V("menu.product.form.detail.category.placeholder"),
3410
- multiple: U
3410
+ multiple: P
3411
3411
  }, {
3412
3412
  "append-menu": () => h("button", {
3413
3413
  class: "flex items-center py-8 px-16 space-x-8",
@@ -3429,34 +3429,34 @@ const Pr = /* @__PURE__ */ he({
3429
3429
  });
3430
3430
  const M = R(() => {
3431
3431
  var H;
3432
- const U = t.form.name || ((H = t.fallback) == null ? void 0 : H.name);
3433
- return U ? o.items.filter((le) => !!le.category && le._id !== t.form._id && le.name === U).length : 0;
3432
+ const P = t.form.name || ((H = t.fallback) == null ? void 0 : H.name);
3433
+ return P ? o.items.filter((ue) => !!ue.category && ue._id !== t.form._id && ue.name === P).length : 0;
3434
3434
  }), k = R(() => {
3435
3435
  var Re, Ce, Ae;
3436
3436
  if (!o.state.featureFlags.uniqueProductCode) return 0;
3437
- const U = t.form.code || ((Re = t.fallback) == null ? void 0 : Re.code);
3438
- if (!U) return 0;
3439
- let H = o.itemCodeMap.get(U) || 0;
3440
- const le = o.items.find((_e) => _e._id === t.form._id);
3441
- return (le == null ? void 0 : le.code) === U && (H -= 1), (Ae = (Ce = le == null ? void 0 : le.variant) == null ? void 0 : Ce.variantCombinations) == null || Ae.forEach((_e) => {
3442
- _e.code === U && (H -= 1);
3437
+ const P = t.form.code || ((Re = t.fallback) == null ? void 0 : Re.code);
3438
+ if (!P) return 0;
3439
+ let H = o.itemCodeMap.get(P) || 0;
3440
+ const ue = o.items.find((_e) => _e._id === t.form._id);
3441
+ return (ue == null ? void 0 : ue.code) === P && (H -= 1), (Ae = (Ce = ue == null ? void 0 : ue.variant) == null ? void 0 : Ce.variantCombinations) == null || Ae.forEach((_e) => {
3442
+ _e.code === P && (H -= 1);
3443
3443
  }), H;
3444
3444
  }), T = R(() => t.isAddon ? lt.ADD_ON : lt.PRODUCT);
3445
- function E(U) {
3446
- var le, Re, Ce;
3447
- if (T.value === U) return;
3448
- const H = U == lt.ADD_ON;
3449
- c("update:form", "category", t.isOverride ? H ? "" : ((le = t.fallback) == null ? void 0 : le.category) ?? ((Re = v.value.find((Ae) => !!Ae.value)) == null ? void 0 : Re.value) : H ? null : (Ce = v.value.find((Ae) => !!Ae.value)) == null ? void 0 : Ce.value), H && (c("update:form", "additionalCategories", []), c("update:form", "subCategories", []));
3445
+ function E(P) {
3446
+ var ue, Re, Ce;
3447
+ if (T.value === P) return;
3448
+ const H = P == lt.ADD_ON;
3449
+ c("update:form", "category", t.isOverride ? H ? "" : ((ue = t.fallback) == null ? void 0 : ue.category) ?? ((Re = v.value.find((Ae) => !!Ae.value)) == null ? void 0 : Re.value) : H ? null : (Ce = v.value.find((Ae) => !!Ae.value)) == null ? void 0 : Ce.value), H && (c("update:form", "additionalCategories", []), c("update:form", "subCategories", []));
3450
3450
  }
3451
3451
  const A = _n();
3452
- Fn("apply-description", (U) => {
3453
- c("update:form", "description", U || "");
3452
+ Fn("apply-description", (P) => {
3453
+ c("update:form", "description", P || "");
3454
3454
  });
3455
3455
  async function _() {
3456
3456
  if (!t.form.name) {
3457
- const U = document.getElementById("product-name");
3458
- if (U) {
3459
- U.focus();
3457
+ const P = document.getElementById("product-name");
3458
+ if (P) {
3459
+ P.focus();
3460
3460
  return;
3461
3461
  } else
3462
3462
  return;
@@ -3468,50 +3468,50 @@ const Pr = /* @__PURE__ */ he({
3468
3468
  command: "suggestDescription"
3469
3469
  });
3470
3470
  }
3471
- const w = R(() => o.subcategories), O = R(() => w.value.map((U) => ({
3472
- label: U.name,
3473
- value: U._id
3471
+ const w = R(() => o.subcategories), O = R(() => w.value.map((P) => ({
3472
+ label: P.name,
3473
+ value: P._id
3474
3474
  }))), B = R({
3475
3475
  get() {
3476
3476
  return t.form.subCategories || [];
3477
3477
  },
3478
- set(U) {
3479
- c("update:form", "subCategories", U);
3478
+ set(P) {
3479
+ c("update:form", "subCategories", P);
3480
3480
  }
3481
3481
  }), te = R(() => t.isOverride ? t.form.minimumOrderQuantity ?? null : t.form.minimumOrderQuantity ?? 0);
3482
- function Q(U) {
3483
- c("update:form", "minimumOrderQuantity", t.isOverride ? U : U ?? 0);
3482
+ function Q(P) {
3483
+ c("update:form", "minimumOrderQuantity", t.isOverride ? P : P ?? 0);
3484
3484
  }
3485
3485
  const {
3486
3486
  t: V
3487
3487
  } = ye(), X = j(!1), ee = j("name"), ie = R(() => {
3488
3488
  var Ce, Ae;
3489
- const U = [], H = "en-US", le = t.form.name_locale, Re = le == null ? void 0 : le[H];
3490
- return (t.form.name || (Ce = t.fallback) != null && Ce.name) && !Re && U.push({
3489
+ const P = [], H = "en-US", ue = t.form.name_locale, Re = ue == null ? void 0 : ue[H];
3490
+ return (t.form.name || (Ce = t.fallback) != null && Ce.name) && !Re && P.push({
3491
3491
  locale: H,
3492
3492
  name: t.form.name || ((Ae = t.fallback) == null ? void 0 : Ae.name) || "",
3493
- localeDisplay: rt(H)
3494
- }), le && Object.entries(le).filter(([_e, me]) => me && me.trim()).sort(([_e], [me]) => _e.localeCompare(me)).forEach(([_e, me]) => {
3495
- U.push({
3493
+ localeDisplay: at(H)
3494
+ }), ue && Object.entries(ue).filter(([_e, me]) => me && me.trim()).sort(([_e], [me]) => _e.localeCompare(me)).forEach(([_e, me]) => {
3495
+ P.push({
3496
3496
  locale: _e,
3497
3497
  name: me,
3498
- localeDisplay: rt(_e)
3498
+ localeDisplay: at(_e)
3499
3499
  });
3500
- }), U;
3500
+ }), P;
3501
3501
  }), de = R(() => {
3502
3502
  var Ce, Ae;
3503
- const U = [], H = "en-US", le = t.form.description_locale, Re = le == null ? void 0 : le[H];
3504
- return (t.form.description || (Ce = t.fallback) != null && Ce.description) && !Re && U.push({
3503
+ const P = [], H = "en-US", ue = t.form.description_locale, Re = ue == null ? void 0 : ue[H];
3504
+ return (t.form.description || (Ce = t.fallback) != null && Ce.description) && !Re && P.push({
3505
3505
  locale: H,
3506
3506
  name: t.form.description || ((Ae = t.fallback) == null ? void 0 : Ae.description) || "",
3507
- localeDisplay: rt(H)
3508
- }), le && Object.entries(le).filter(([_e, me]) => me && me.trim()).sort(([_e], [me]) => _e.localeCompare(me)).forEach(([_e, me]) => {
3509
- U.push({
3507
+ localeDisplay: at(H)
3508
+ }), ue && Object.entries(ue).filter(([_e, me]) => me && me.trim()).sort(([_e], [me]) => _e.localeCompare(me)).forEach(([_e, me]) => {
3509
+ P.push({
3510
3510
  locale: _e,
3511
3511
  name: me,
3512
- localeDisplay: rt(_e)
3512
+ localeDisplay: at(_e)
3513
3513
  });
3514
- }), U;
3514
+ }), P;
3515
3515
  });
3516
3516
  function z() {
3517
3517
  ee.value = "name", X.value = !0;
@@ -3519,60 +3519,60 @@ const Pr = /* @__PURE__ */ he({
3519
3519
  function x() {
3520
3520
  ee.value = "description", X.value = !0;
3521
3521
  }
3522
- function L(U) {
3523
- c("update:form", "name", U);
3522
+ function L(P) {
3523
+ c("update:form", "name", P);
3524
3524
  }
3525
- function J(U) {
3526
- c("update:form", "description", U);
3525
+ function J(P) {
3526
+ c("update:form", "description", P);
3527
3527
  }
3528
- function q(U) {
3529
- c("update:form", "name_locale", U);
3528
+ function q(P) {
3529
+ c("update:form", "name_locale", P);
3530
3530
  }
3531
- function re(U) {
3532
- c("update:form", "description_locale", U);
3531
+ function se(P) {
3532
+ c("update:form", "description_locale", P);
3533
3533
  }
3534
3534
  const ce = R(() => {
3535
- var U;
3536
- return !!t.form.name || !!((U = t.fallback) != null && U.name);
3535
+ var P;
3536
+ return !!t.form.name || !!((P = t.fallback) != null && P.name);
3537
3537
  });
3538
- return (U, H) => {
3538
+ return (P, H) => {
3539
3539
  var G, pe;
3540
- const le = P("fm-text-field"), Re = P("fm-button"), Ce = P("FmTooltip"), Ae = P("fm-textarea"), _e = P("fm-radio"), me = P("FmSnackbar"), Ft = P("FmButton"), Ot = P("fm-radio-group"), Rt = P("FmFormGroup"), wt = P("FmStepperField"), K = qn("tooltip");
3540
+ const ue = U("fm-text-field"), Re = U("fm-button"), Ce = U("FmTooltip"), Ae = U("fm-textarea"), _e = U("fm-radio"), me = U("FmSnackbar"), Ft = U("FmButton"), Ot = U("fm-radio-group"), Rt = U("FmFormGroup"), wt = U("FmStepperField"), K = qn("tooltip");
3541
3541
  return S(), W(be, null, [h($e, {
3542
3542
  title: p(V)("menu.product.form.detail.title")
3543
3543
  }, {
3544
3544
  default: I(() => {
3545
- var fe, oe;
3546
- return [D("div", wr, [D("div", kr, [D("div", Cr, [D("div", Sr, [h(le, {
3547
- "model-value": U.form.code,
3548
- placeholder: ((fe = U.fallback) == null ? void 0 : fe.code) || p(V)("menu.product.form.detail.fields.code.placeholder"),
3545
+ var fe, oe, rt;
3546
+ return [D("div", wr, [D("div", kr, [D("div", Cr, [D("div", Sr, [h(ue, {
3547
+ "model-value": P.form.code,
3548
+ placeholder: ((fe = P.fallback) == null ? void 0 : fe.code) || p(V)("menu.product.form.detail.fields.code.placeholder"),
3549
3549
  label: p(V)("menu.product.form.detail.fields.code.label"),
3550
- rules: [(ue) => k.value === 0 || p(V)("menu.product.form.detail.fields.code.duplicate_warning", {
3550
+ rules: [(re) => k.value === 0 || p(V)("menu.product.form.detail.fields.code.duplicate_warning", {
3551
3551
  count: k.value
3552
3552
  })],
3553
- "onUpdate:modelValue": H[0] || (H[0] = (ue) => c("update:form", "code", p(Mo)(ue, U.isOverride)))
3554
- }, null, 8, ["model-value", "placeholder", "label", "rules"])]), D("div", xr, [h(le, {
3553
+ "onUpdate:modelValue": H[0] || (H[0] = (re) => c("update:form", "code", p(Mo)(re, P.isOverride)))
3554
+ }, null, 8, ["model-value", "placeholder", "label", "rules"])]), D("div", xr, [h(ue, {
3555
3555
  id: "product-name",
3556
3556
  disabled: !m.value.name,
3557
3557
  "helper-text": M.value > 0 ? p(V)("menu.product.form.detail.fields.name.duplicate_warning", {
3558
3558
  count: M.value
3559
3559
  }) : void 0,
3560
- "model-value": U.form.name,
3561
- placeholder: (oe = U.fallback) == null ? void 0 : oe.name,
3562
- rules: m.value.name ? [(ue) => !!ue || p(V)("menu.product.form.detail.fields.name.required")] : void 0,
3560
+ "model-value": P.form.name,
3561
+ placeholder: (oe = P.fallback) == null ? void 0 : oe.name,
3562
+ rules: m.value.name ? [(re) => !!re || p(V)("menu.product.form.detail.fields.name.required")] : void 0,
3563
3563
  "label-mark": "required",
3564
3564
  autofocus: "",
3565
3565
  label: p(V)("menu.product.form.detail.fields.name.label"),
3566
- "onUpdate:modelValue": H[1] || (H[1] = (ue) => c("update:form", "name", ue))
3566
+ "onUpdate:modelValue": H[1] || (H[1] = (re) => c("update:form", "name", re))
3567
3567
  }, {
3568
3568
  append: I(() => [h(Ce, {
3569
3569
  variant: "plain",
3570
3570
  placement: "top",
3571
3571
  "z-index": 999
3572
3572
  }, {
3573
- content: I(() => [D("div", Fr, [(S(!0), W(be, null, Ee(ie.value, (ue) => (S(), W("div", {
3574
- key: ue.locale
3575
- }, se(ue.name) + " (" + se(ue.localeDisplay) + ") ", 1))), 128))])]),
3573
+ content: I(() => [D("div", Fr, [(S(!0), W(be, null, Ee(ie.value, (re) => (S(), W("div", {
3574
+ key: re.locale
3575
+ }, le(re.name) + " (" + le(re.localeDisplay) + ") ", 1))), 128))])]),
3576
3576
  default: I(() => [h(Re, {
3577
3577
  variant: "tertiary",
3578
3578
  icon: "g_translate",
@@ -3584,21 +3584,21 @@ const Pr = /* @__PURE__ */ he({
3584
3584
  _: 1
3585
3585
  }, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), D("div", Or, [h(Ae, {
3586
3586
  disabled: !m.value.description,
3587
- "model-value": U.form.description || void 0,
3588
- placeholder: p(V)("menu.product.form.detail.fields.description.placeholder"),
3589
- "onUpdate:modelValue": H[2] || (H[2] = (ue) => c("update:form", "description", ue.trim())),
3587
+ "model-value": P.form.description || void 0,
3588
+ placeholder: ((rt = P.fallback) == null ? void 0 : rt.description) || p(V)("menu.product.form.detail.fields.description.placeholder"),
3589
+ "onUpdate:modelValue": H[2] || (H[2] = (re) => c("update:form", "description", re.trim())),
3590
3590
  class: "description"
3591
3591
  }, {
3592
- label: I(() => [D("p", Rr, [Pt(se(p(V)("menu.product.form.detail.fields.description.label")) + " ", 1), D("span", Ar, se(p(V)("menu.product.form.detail.fields.description.optional")), 1)])]),
3592
+ label: I(() => [D("p", Rr, [Pt(le(p(V)("menu.product.form.detail.fields.description.label")) + " ", 1), D("span", Ar, le(p(V)("menu.product.form.detail.fields.description.optional")), 1)])]),
3593
3593
  _: 1
3594
3594
  }, 8, ["disabled", "model-value", "placeholder"]), D("div", Mr, [h(Ce, {
3595
3595
  variant: "plain",
3596
3596
  placement: "top",
3597
3597
  "z-index": 999
3598
3598
  }, {
3599
- content: I(() => [D("div", Er, [(S(!0), W(be, null, Ee(de.value, (ue) => (S(), W("div", {
3600
- key: ue.locale
3601
- }, se(ue.name) + " (" + se(ue.localeDisplay) + ") ", 1))), 128))])]),
3599
+ content: I(() => [D("div", Er, [(S(!0), W(be, null, Ee(de.value, (re) => (S(), W("div", {
3600
+ key: re.locale
3601
+ }, le(re.name) + " (" + le(re.localeDisplay) + ") ", 1))), 128))])]),
3602
3602
  default: I(() => [ct(h(Re, {
3603
3603
  variant: "tertiary",
3604
3604
  icon: "g_translate",
@@ -3612,18 +3612,18 @@ const Pr = /* @__PURE__ */ he({
3612
3612
  }, null, 512), [[K, p(sn)("Suggest description")]])])])]), h(Ao, {
3613
3613
  disabled: !m.value.thumbnail,
3614
3614
  title: p(V)("menu.common.labels.product_image"),
3615
- "model-value": U.thumbnail,
3616
- "onUpdate:modelValue": H[3] || (H[3] = (ue) => c("update:thumbnail", ue)),
3617
- "onReset:modelValue": H[4] || (H[4] = (ue) => c("reset:thumbnail")),
3618
- "onUpdate:trackingId": H[5] || (H[5] = (ue) => c("update:form", "_thumbnailTrackingId", ue))
3619
- }, null, 8, ["disabled", "title", "model-value"])]), h(it, {
3615
+ "model-value": P.thumbnail,
3616
+ "onUpdate:modelValue": H[3] || (H[3] = (re) => c("update:thumbnail", re)),
3617
+ "onReset:modelValue": H[4] || (H[4] = (re) => c("reset:thumbnail")),
3618
+ "onUpdate:trackingId": H[5] || (H[5] = (re) => c("update:form", "_thumbnailTrackingId", re))
3619
+ }, null, 8, ["disabled", "title", "model-value"])]), h(ot, {
3620
3620
  label: p(o).isV4 ? p(V)("menu.product.form.detail.category.label") : p(V)("menu.product.form.detail.category.label_singular")
3621
3621
  }, {
3622
3622
  default: I(() => [F.value ? (S(), Y(Ot, {
3623
3623
  key: 0,
3624
3624
  disabled: !m.value.category,
3625
3625
  "model-value": T.value,
3626
- "onUpdate:modelValue": H[6] || (H[6] = (ue) => E(ue))
3626
+ "onUpdate:modelValue": H[6] || (H[6] = (re) => E(re))
3627
3627
  }, {
3628
3628
  default: I(() => [D("div", Dr, [D("div", Tr, [h(_e, {
3629
3629
  disabled: b.value || !m.value.category,
@@ -3651,9 +3651,9 @@ const Pr = /* @__PURE__ */ he({
3651
3651
  _: 1
3652
3652
  }, 8, ["disabled", "model-value"])) : ne("", !0), p(o).isV4 ? ne("", !0) : (S(), Y(Rt, {
3653
3653
  key: 1,
3654
- "model-value": U.form.category,
3655
- rules: [(ue) => !ue && !U.isOverride ? "Category is required" : !0],
3656
- "onUpdate:modelValue": H[7] || (H[7] = (ue) => c("update:form", "category", ue))
3654
+ "model-value": P.form.category,
3655
+ rules: [(re) => !re && !P.isOverride ? "Category is required" : !0],
3656
+ "onUpdate:modelValue": H[7] || (H[7] = (re) => c("update:form", "category", re))
3657
3657
  }, {
3658
3658
  default: I(() => [h($, {
3659
3659
  multiple: !1
@@ -3661,13 +3661,13 @@ const Pr = /* @__PURE__ */ he({
3661
3661
  _: 1
3662
3662
  }, 8, ["model-value", "rules"]))]),
3663
3663
  _: 1
3664
- }, 8, ["label"]), p(o).isV4 && !U.isAddon ? (S(), Y(it, {
3664
+ }, 8, ["label"]), p(o).isV4 && !P.isAddon ? (S(), Y(ot, {
3665
3665
  key: 0,
3666
3666
  label: p(V)("menu.product.form.detail.path.label")
3667
3667
  }, {
3668
3668
  default: I(() => [D("div", Ir, [h(qa, {
3669
3669
  modelValue: B.value,
3670
- "onUpdate:modelValue": H[8] || (H[8] = (ue) => B.value = ue),
3670
+ "onUpdate:modelValue": H[8] || (H[8] = (re) => B.value = re),
3671
3671
  items: O.value,
3672
3672
  placeholder: p(V)("menu.product.form.detail.path.placeholder"),
3673
3673
  disabled: !m.value.category,
@@ -3676,12 +3676,12 @@ const Pr = /* @__PURE__ */ he({
3676
3676
  _: 1
3677
3677
  }, 8, ["label"])) : ne("", !0), p(o).isV4 ? (S(), W("div", zr, [h(wt, {
3678
3678
  label: "Shelf Life (mins)",
3679
- "model-value": U.form.shelfLife ?? null,
3680
- rules: [(ue) => ue == null || ue > 0 || p(V)("menu.common.validation.min_value", {
3679
+ "model-value": P.form.shelfLife ?? null,
3680
+ rules: [(re) => re == null || re > 0 || p(V)("menu.common.validation.min_value", {
3681
3681
  value: 1
3682
3682
  })],
3683
- "onUpdate:modelValue": H[9] || (H[9] = (ue) => {
3684
- (ue == null || ue > 0) && c("update:form", "shelfLife", ue);
3683
+ "onUpdate:modelValue": H[9] || (H[9] = (re) => {
3684
+ (re == null || re > 0) && c("update:form", "shelfLife", re);
3685
3685
  })
3686
3686
  }, null, 8, ["model-value", "rules"]), h(wt, {
3687
3687
  label: p(V)("menu.product.form.detail.fields.minimum_order_quantity.label"),
@@ -3691,31 +3691,31 @@ const Pr = /* @__PURE__ */ he({
3691
3691
  "onUpdate:modelValue": Q
3692
3692
  }, null, 8, ["label", "model-value"])])) : ne("", !0), h(On, {
3693
3693
  disabled: !m.value.orderFrom,
3694
- "model-value": U.form.orderFrom,
3694
+ "model-value": P.form.orderFrom,
3695
3695
  "order-from-none": m.value.orderFromNone,
3696
3696
  required: m.value.orderFrom,
3697
3697
  "default-label": p(V)("menu.product.form.detail.order_from.default"),
3698
3698
  label: p(V)("menu.product.form.detail.order_from.label"),
3699
- "onUpdate:modelValue": H[10] || (H[10] = (ue) => ue && c("update:form", "orderFrom", ue))
3699
+ "onUpdate:modelValue": H[10] || (H[10] = (re) => re && c("update:form", "orderFrom", re))
3700
3700
  }, null, 8, ["disabled", "model-value", "order-from-none", "required", "default-label", "label"])];
3701
3701
  }),
3702
3702
  _: 1
3703
3703
  }, 8, ["title"]), h(lr, {
3704
3704
  modelValue: X.value,
3705
3705
  "onUpdate:modelValue": H[11] || (H[11] = (fe) => X.value = fe),
3706
- "product-name": U.form.name || ((G = U.fallback) == null ? void 0 : G.name) || "",
3707
- "product-name-locale": U.form.name_locale,
3708
- "product-description": U.form.description || ((pe = U.fallback) == null ? void 0 : pe.description),
3709
- "product-description-locale": U.form.description_locale,
3706
+ "product-name": P.form.name || ((G = P.fallback) == null ? void 0 : G.name) || "",
3707
+ "product-name-locale": P.form.name_locale,
3708
+ "product-description": P.form.description || ((pe = P.fallback) == null ? void 0 : pe.description),
3709
+ "product-description-locale": P.form.description_locale,
3710
3710
  "initial-section": ee.value,
3711
3711
  "onUpdate:name": L,
3712
3712
  "onUpdate:description": J,
3713
3713
  "onUpdate:nameLocale": q,
3714
- "onUpdate:descriptionLocale": re
3714
+ "onUpdate:descriptionLocale": se
3715
3715
  }, null, 8, ["modelValue", "product-name", "product-name-locale", "product-description", "product-description-locale", "initial-section"])], 64);
3716
3716
  };
3717
3717
  }
3718
- }), Ur = /* @__PURE__ */ mt(Pr, [["__scopeId", "data-v-67f1818f"]]), $r = {}, Nr = { class: "overflow-x-auto" }, Lr = { class: "xs:w-[600px]" };
3718
+ }), Ur = /* @__PURE__ */ mt(Pr, [["__scopeId", "data-v-26bf715f"]]), $r = {}, Nr = { class: "overflow-x-auto" }, Lr = { class: "xs:w-[600px]" };
3719
3719
  function Br(e, n) {
3720
3720
  return S(), W("div", Nr, [
3721
3721
  D("div", Lr, [
@@ -3865,7 +3865,7 @@ const Yr = /* @__PURE__ */ mt(jr, [["render", Wr]]), Hr = { class: "fm-typo-en-t
3865
3865
  set: (M) => o("update:modelValue", M)
3866
3866
  });
3867
3867
  return (M, k) => {
3868
- const T = P("FmIcon"), E = P("fm-button"), A = P("fm-side-sheet");
3868
+ const T = U("FmIcon"), E = U("fm-button"), A = U("fm-side-sheet");
3869
3869
  return S(), Y(A, {
3870
3870
  modelValue: $.value,
3871
3871
  "onUpdate:modelValue": k[2] || (k[2] = (_) => $.value = _),
@@ -3873,7 +3873,7 @@ const Yr = /* @__PURE__ */ mt(jr, [["render", Wr]]), Hr = { class: "fm-typo-en-t
3873
3873
  "onOn:clickedAway": p(N)
3874
3874
  }, {
3875
3875
  "side-sheet-header": I(() => [
3876
- D("p", Hr, se(p(a)("menu.group.translation.title")), 1)
3876
+ D("p", Hr, le(p(a)("menu.group.translation.title")), 1)
3877
3877
  ]),
3878
3878
  "side-sheet-footer": I(() => [
3879
3879
  D("div", rs, [
@@ -3907,7 +3907,7 @@ const Yr = /* @__PURE__ */ mt(jr, [["render", Wr]]), Hr = { class: "fm-typo-en-t
3907
3907
  name: "keyboard_arrow_down",
3908
3908
  class: Ue(["transition-transform", i.value ? "transform rotate-180" : ""])
3909
3909
  }, null, 8, ["class"]),
3910
- D("p", Zr, se(p(a)("menu.group.translation.group_name")), 1)
3910
+ D("p", Zr, le(p(a)("menu.group.translation.group_name")), 1)
3911
3911
  ]),
3912
3912
  i.value ? (S(), W("div", Qr, [
3913
3913
  h(Nt, {
@@ -3937,14 +3937,14 @@ const Yr = /* @__PURE__ */ mt(jr, [["render", Wr]]), Hr = { class: "fm-typo-en-t
3937
3937
  name: "keyboard_arrow_down",
3938
3938
  class: Ue(["transition-transform", r.value ? "transform rotate-180" : ""])
3939
3939
  }, null, 8, ["class"]),
3940
- D("p", ts, se(p(a)("menu.group.translation.product_name")), 1)
3940
+ D("p", ts, le(p(a)("menu.group.translation.product_name")), 1)
3941
3941
  ]),
3942
3942
  r.value ? (S(), W("div", ns, [
3943
3943
  (S(!0), W(be, null, Ee(v.value, (_) => (S(), W("div", {
3944
3944
  key: _._id,
3945
3945
  class: "space-y-8"
3946
3946
  }, [
3947
- D("p", os, se(p(a)("menu.group.translation.option", { number: _.optionIndex })), 1),
3947
+ D("p", os, le(p(a)("menu.group.translation.option", { number: _.optionIndex })), 1),
3948
3948
  D("div", is, [
3949
3949
  h(Nt, {
3950
3950
  label: p(a)("menu.group.translation.default"),
@@ -4009,7 +4009,7 @@ const Yr = /* @__PURE__ */ mt(jr, [["render", Wr]]), Hr = { class: "fm-typo-en-t
4009
4009
  ), n({ getKey: () => o.bindingKey, trigger: i });
4010
4010
  const { t: c } = ye(), m = io();
4011
4011
  return (f, v) => {
4012
- const F = P("fm-text-field"), b = P("fm-card"), y = P("fm-button"), g = P("fm-side-sheet");
4012
+ const F = U("fm-text-field"), b = U("fm-card"), y = U("fm-button"), g = U("fm-side-sheet");
4013
4013
  return S(), W(be, null, [
4014
4014
  xe(f.$slots, "default", { trigger: i }),
4015
4015
  h(g, {
@@ -4026,7 +4026,7 @@ const Yr = /* @__PURE__ */ mt(jr, [["render", Wr]]), Hr = { class: "fm-typo-en-t
4026
4026
  "onOn:clickedAway": p(s)
4027
4027
  }, {
4028
4028
  "side-sheet-header": I(() => [
4029
- D("p", ls, se(f.title || p(c)("menu.inventory.form.title")), 1)
4029
+ D("p", ls, le(f.title || p(c)("menu.inventory.form.title")), 1)
4030
4030
  ]),
4031
4031
  "side-sheet-footer": I(() => [
4032
4032
  D("div", cs, [
@@ -4156,7 +4156,7 @@ const Do = /* @__PURE__ */ he({
4156
4156
  enableSorting: !1
4157
4157
  }];
4158
4158
  return (r, l) => {
4159
- const s = P("FmTable");
4159
+ const s = U("FmTable");
4160
4160
  return S(), W("div", null, [h(s, {
4161
4161
  "column-defs": i,
4162
4162
  "row-data": r.priceTiers,
@@ -4186,7 +4186,7 @@ const Do = /* @__PURE__ */ he({
4186
4186
  o("submit", d.value), i();
4187
4187
  }
4188
4188
  return (f, v) => {
4189
- const F = P("FmButton"), b = P("fm-button"), y = P("FmSideSheet");
4189
+ const F = U("FmButton"), b = U("fm-button"), y = U("FmSideSheet");
4190
4190
  return S(), Y(y, {
4191
4191
  id: "business-form",
4192
4192
  modelValue: a.value,
@@ -4200,7 +4200,7 @@ const Do = /* @__PURE__ */ he({
4200
4200
  "onOn:clickedAway": p(c)
4201
4201
  }, {
4202
4202
  "side-sheet-header": I(() => [
4203
- D("p", ps, se(r.value), 1)
4203
+ D("p", ps, le(r.value), 1)
4204
4204
  ]),
4205
4205
  "side-sheet-footer": I(() => [
4206
4206
  D("div", hs, [
@@ -4220,7 +4220,7 @@ const Do = /* @__PURE__ */ he({
4220
4220
  ]),
4221
4221
  default: I(() => [
4222
4222
  D("div", fs, [
4223
- h(it, {
4223
+ h(ot, {
4224
4224
  label: p(t)("menu.price_tier.price_group"),
4225
4225
  description: p(t)("menu.price_tier.description")
4226
4226
  }, {
@@ -4274,7 +4274,7 @@ const Do = /* @__PURE__ */ he({
4274
4274
  }
4275
4275
  const { t: l } = ye();
4276
4276
  return (s, u) => {
4277
- const d = P("FmButton"), c = P("FmTooltip");
4277
+ const d = U("FmButton"), c = U("FmTooltip");
4278
4278
  return s.$slots.default ? xe(s.$slots, "default", { key: 0 }) : (S(), Y(c, {
4279
4279
  key: 1,
4280
4280
  content: p(l)("menu.price_tier.price_tier_config"),
@@ -4285,7 +4285,7 @@ const Do = /* @__PURE__ */ he({
4285
4285
  h(d, {
4286
4286
  icon: "price_change",
4287
4287
  variant: "tertiary",
4288
- "text-color": p(He).NeutralGray400,
4288
+ "text-color": p(Ye).NeutralGray400,
4289
4289
  "overwrite-icon-outline": a.value,
4290
4290
  onClick: r,
4291
4291
  disabled: s.disabled
@@ -4346,22 +4346,22 @@ const Do = /* @__PURE__ */ he({
4346
4346
  enableSorting: !1,
4347
4347
  size: 75,
4348
4348
  cell: (z) => {
4349
- var re, ce;
4350
- if ((ce = (re = z.row.original) == null ? void 0 : re.items) != null && ce.length)
4349
+ var se, ce;
4350
+ if ((ce = (se = z.row.original) == null ? void 0 : se.items) != null && ce.length)
4351
4351
  return null;
4352
4352
  const x = z.row.depth > 0, L = z.row.original, J = !b(L.combinationKey).isDefault || L.orderFrom === Z.F_ORDER_FROM.enum.NONE, q = !!z.getValue();
4353
4353
  return h(Te.FmCheckbox, {
4354
4354
  value: "default",
4355
4355
  modelValue: q,
4356
4356
  disabled: J,
4357
- "onUpdate:modelValue": (U) => {
4357
+ "onUpdate:modelValue": (P) => {
4358
4358
  var H;
4359
4359
  if (x) {
4360
- const le = (H = z.row.getParentRow()) == null ? void 0 : H.original;
4361
- if (!le) return;
4362
- _(le._id, L.combinationKey ?? "", "isDefault", U);
4360
+ const ue = (H = z.row.getParentRow()) == null ? void 0 : H.original;
4361
+ if (!ue) return;
4362
+ _(ue._id, L.combinationKey ?? "", "isDefault", P);
4363
4363
  } else
4364
- A(L._id, "isDefault", U);
4364
+ A(L._id, "isDefault", P);
4365
4365
  }
4366
4366
  }, null);
4367
4367
  }
@@ -4388,8 +4388,8 @@ const Do = /* @__PURE__ */ he({
4388
4388
  class: "flex items-center w-full gap-8"
4389
4389
  }, [Se("span", M("menu.group.option.product_title")), Se(Te.FmButton, {
4390
4390
  icon: "g_translate",
4391
- variant: Ze.Tertiary,
4392
- textColor: He.NeutralGray400,
4391
+ variant: Xe.Tertiary,
4392
+ textColor: Ye.NeutralGray400,
4393
4393
  onClick: (z) => {
4394
4394
  z.stopPropagation(), s.value = !0;
4395
4395
  }
@@ -4397,30 +4397,30 @@ const Do = /* @__PURE__ */ he({
4397
4397
  enableSorting: !1,
4398
4398
  cell: (z) => {
4399
4399
  var ce;
4400
- const x = z.getValue(), L = z.row.original, J = !b(L.combinationKey).name || L.orderFrom === Z.F_ORDER_FROM.enum.NONE, q = z.row.depth > 0, re = L.combinationKey ? to(L.combinationKey, Fe().variants) : i.rules.group.linkAddonName ? (ce = te.value[L._id]) == null ? void 0 : ce.name : null;
4400
+ const x = z.getValue(), L = z.row.original, J = !b(L.combinationKey).name || L.orderFrom === Z.F_ORDER_FROM.enum.NONE, q = z.row.depth > 0, se = L.combinationKey ? to(L.combinationKey, Fe().variants) : i.rules.group.linkAddonName ? (ce = te.value[L._id]) == null ? void 0 : ce.name : null;
4401
4401
  return Se("div", Se(Te.FmTextField, {
4402
4402
  modelValue: x,
4403
- placeholder: re ?? "",
4403
+ placeholder: se ?? "",
4404
4404
  disabled: J,
4405
- rules: re ? void 0 : [(U) => ((U == null ? void 0 : U.length) ?? 0) > 0 || M("menu.group.option.product_title_required")],
4406
- "onUpdate:modelValue": (U) => {
4405
+ rules: se ? void 0 : [(P) => ((P == null ? void 0 : P.length) ?? 0) > 0 || M("menu.group.option.product_title_required")],
4406
+ "onUpdate:modelValue": (P) => {
4407
4407
  var H;
4408
4408
  if (q) {
4409
- const le = (H = z.row.getParentRow()) == null ? void 0 : H.original;
4410
- if (!le) return;
4411
- _(le._id, L.combinationKey ?? "", "name", U || null);
4409
+ const ue = (H = z.row.getParentRow()) == null ? void 0 : H.original;
4410
+ if (!ue) return;
4411
+ _(ue._id, L.combinationKey ?? "", "name", P || null);
4412
4412
  } else
4413
- A(L._id, "name", U || null);
4413
+ A(L._id, "name", P || null);
4414
4414
  },
4415
4415
  class: "min-w-[300px]"
4416
4416
  }, {
4417
4417
  append: () => {
4418
- var U, H;
4419
- return (H = (U = z.row.original) == null ? void 0 : U.items) != null && H.length ? Se(Te.FmIcon, {
4418
+ var P, H;
4419
+ return (H = (P = z.row.original) == null ? void 0 : P.items) != null && H.length ? Se(Te.FmIcon, {
4420
4420
  name: "keyboard_arrow_up",
4421
4421
  onClick: z.row.getToggleExpandedHandler(),
4422
4422
  class: ["cursor-pointer", "transition-transform", z.row.getIsExpanded() ? "transform rotate-180" : ""],
4423
- color: b(L.combinationKey).name ? void 0 : He.NeutralGray200
4423
+ color: b(L.combinationKey).name ? void 0 : Ye.NeutralGray200
4424
4424
  }) : void 0;
4425
4425
  }
4426
4426
  }));
@@ -4436,7 +4436,7 @@ const Do = /* @__PURE__ */ he({
4436
4436
  },
4437
4437
  size: 100,
4438
4438
  cell: (z) => {
4439
- const x = z.getValue(), L = z.row.original, J = !b(null).priceEdit || L.orderFrom === Z.F_ORDER_FROM.enum.NONE, q = L.fallbackPrice, re = z.row.depth > 0;
4439
+ const x = z.getValue(), L = z.row.original, J = !b(null).priceEdit || L.orderFrom === Z.F_ORDER_FROM.enum.NONE, q = L.fallbackPrice, se = z.row.depth > 0;
4440
4440
  return Se(ut, {
4441
4441
  disable: J,
4442
4442
  placeholder: q ? ht(q) : void 0,
@@ -4445,9 +4445,9 @@ const Do = /* @__PURE__ */ he({
4445
4445
  nullable: !!q,
4446
4446
  min: y.value ? void 0 : 0,
4447
4447
  "onUpdate:modelValue": (ce) => {
4448
- var U;
4449
- if (re) {
4450
- const H = (U = z.row.getParentRow()) == null ? void 0 : U.original;
4448
+ var P;
4449
+ if (se) {
4450
+ const H = (P = z.row.getParentRow()) == null ? void 0 : P.original;
4451
4451
  if (!H) return;
4452
4452
  _(
4453
4453
  H._id,
@@ -4476,20 +4476,20 @@ const Do = /* @__PURE__ */ he({
4476
4476
  disable: !b(L.combinationKey).orderFrom,
4477
4477
  required: !0,
4478
4478
  editActiveOnly: b(L.combinationKey).orderFromActiveOnly,
4479
- "onUpdate:modelValue": (re) => {
4479
+ "onUpdate:modelValue": (se) => {
4480
4480
  var ce;
4481
4481
  if (q) {
4482
- const U = (ce = z.row.getParentRow()) == null ? void 0 : ce.original;
4483
- if (!U) return;
4482
+ const P = (ce = z.row.getParentRow()) == null ? void 0 : ce.original;
4483
+ if (!P) return;
4484
4484
  _(
4485
- U._id,
4485
+ P._id,
4486
4486
  L.combinationKey ?? "",
4487
4487
  // @ts-ignore
4488
4488
  "orderFrom",
4489
- re
4489
+ se
4490
4490
  );
4491
4491
  } else
4492
- A(L._id, "orderFrom", re);
4492
+ A(L._id, "orderFrom", se);
4493
4493
  },
4494
4494
  label: "",
4495
4495
  menuZIndex: 101
@@ -4511,9 +4511,9 @@ const Do = /* @__PURE__ */ he({
4511
4511
  priceTiers: x.priceTiers,
4512
4512
  disabled: L,
4513
4513
  "onUpdate:priceTiers": (q) => {
4514
- var re;
4514
+ var se;
4515
4515
  if (J) {
4516
- const ce = (re = z.row.getParentRow()) == null ? void 0 : re.original;
4516
+ const ce = (se = z.row.getParentRow()) == null ? void 0 : se.original;
4517
4517
  if (!ce) return;
4518
4518
  _(
4519
4519
  ce._id,
@@ -4531,9 +4531,9 @@ const Do = /* @__PURE__ */ he({
4531
4531
  name: x.name ?? x.fallbackName ?? "",
4532
4532
  allowRefund: t.allowRefundInventory,
4533
4533
  "onUpdate:inventory": (q) => {
4534
- var re;
4534
+ var se;
4535
4535
  if (J) {
4536
- const ce = (re = z.row.getParentRow()) == null ? void 0 : re.original;
4536
+ const ce = (se = z.row.getParentRow()) == null ? void 0 : se.original;
4537
4537
  if (!ce) return;
4538
4538
  _(
4539
4539
  ce._id,
@@ -4548,26 +4548,26 @@ const Do = /* @__PURE__ */ he({
4548
4548
  }, {
4549
4549
  default: ({
4550
4550
  trigger: q
4551
- }) => h(P("fm-tooltip"), {
4551
+ }) => h(U("fm-tooltip"), {
4552
4552
  content: "Inventory",
4553
4553
  zIndex: 110
4554
4554
  }, {
4555
4555
  default: () => {
4556
- var re;
4557
- return [h(P("fm-button"), {
4558
- variant: Ze.Tertiary,
4556
+ var se;
4557
+ return [h(U("fm-button"), {
4558
+ variant: Xe.Tertiary,
4559
4559
  disabled: L,
4560
4560
  prependIcon: "inventory_2",
4561
- overwriteIconOutline: (re = x.inventoryBindings) != null && re.length ? "filled" : "outline",
4562
- textColor: He.NeutralGray400,
4561
+ overwriteIconOutline: (se = x.inventoryBindings) != null && se.length ? "filled" : "outline",
4562
+ textColor: Ye.NeutralGray400,
4563
4563
  onClick: q
4564
4564
  }, null)];
4565
4565
  }
4566
4566
  })
4567
- }), b(x.combinationKey).link && h(P("fm-button"), {
4568
- variant: Ze.Tertiary,
4567
+ }), b(x.combinationKey).link && h(U("fm-button"), {
4568
+ variant: Xe.Tertiary,
4569
4569
  prependIcon: "delete",
4570
- textColor: He.NeutralGray400,
4570
+ textColor: Ye.NeutralGray400,
4571
4571
  disabled: J,
4572
4572
  onClick: () => {
4573
4573
  w(x._id);
@@ -4614,14 +4614,14 @@ const Do = /* @__PURE__ */ he({
4614
4614
  });
4615
4615
  }
4616
4616
  function _(z, x, L, J) {
4617
- var U, H;
4618
- const q = we(t.group), re = (U = q.items[z].items) == null ? void 0 : U.findIndex((le) => le.combinationKey === x);
4619
- if (!_t.isSet(re)) return;
4620
- let ce = (H = q.items[z].items) == null ? void 0 : H[re];
4617
+ var P, H;
4618
+ const q = we(t.group), se = (P = q.items[z].items) == null ? void 0 : P.findIndex((ue) => ue.combinationKey === x);
4619
+ if (!_t.isSet(se)) return;
4620
+ let ce = (H = q.items[z].items) == null ? void 0 : H[se];
4621
4621
  ce && (ce = {
4622
4622
  ...ce,
4623
4623
  [L]: J
4624
- }, q.items[z].items[re] = ce, o("update:group", q));
4624
+ }, q.items[z].items[se] = ce, o("update:group", q));
4625
4625
  }
4626
4626
  function w(z) {
4627
4627
  const x = we(t.group);
@@ -4647,12 +4647,12 @@ const Do = /* @__PURE__ */ he({
4647
4647
  const q = te.value[J._id];
4648
4648
  if (!q || !q.variant || ((ce = q.variant.variantCombinations) == null ? void 0 : ce.length) === 0)
4649
4649
  return;
4650
- (q.variant.variantCombinations || []).forEach((U) => {
4651
- const H = `${U._id}:${U.combinationKey}`, le = !L.has(H);
4650
+ (q.variant.variantCombinations || []).forEach((P) => {
4651
+ const H = `${P._id}:${P.combinationKey}`, ue = !L.has(H);
4652
4652
  x.push({
4653
- _id: U._id,
4654
- combinationKey: U.combinationKey,
4655
- orderFrom: le ? Z.F_ORDER_FROM.enum.NONE : Z.F_ORDER_FROM.enum.ALL
4653
+ _id: P._id,
4654
+ combinationKey: P.combinationKey,
4655
+ orderFrom: ue ? Z.F_ORDER_FROM.enum.NONE : Z.F_ORDER_FROM.enum.ALL
4656
4656
  });
4657
4657
  });
4658
4658
  }), x;
@@ -4665,12 +4665,12 @@ const Do = /* @__PURE__ */ he({
4665
4665
  items: L.map((J) => {
4666
4666
  const q = x.items.find((ce) => ce._id == J._id && ce.combinationKey == J.combinationKey);
4667
4667
  J.orderFrom && q && (q.orderFrom = J.orderFrom);
4668
- const re = B.value[J._id];
4668
+ const se = B.value[J._id];
4669
4669
  return q || {
4670
4670
  ...J,
4671
4671
  name: null,
4672
4672
  // By default for linking products, setting null making the item name be determined by fallback name, which is the original item/variant name, and user can still edit the name if needed.
4673
- price: J.combinationKey ? re.variants[J.combinationKey || ""].price : re.price,
4673
+ price: J.combinationKey ? se.variants[J.combinationKey || ""].price : se.price,
4674
4674
  orderFrom: J.orderFrom ?? Z.F_ORDER_FROM.enum.ALL
4675
4675
  };
4676
4676
  })
@@ -4685,7 +4685,7 @@ const Do = /* @__PURE__ */ he({
4685
4685
  }
4686
4686
  const ie = Jn(), de = R(() => ie.breakpoints.value.xs);
4687
4687
  return (z, x) => {
4688
- const L = P("fm-button"), J = P("fm-table");
4688
+ const L = U("fm-button"), J = U("fm-table");
4689
4689
  return S(), W(be, null, [h($e, {
4690
4690
  title: p(M)("menu.group.option.title"),
4691
4691
  "sub-title": z.config.link() && d.value ? p(M)("menu.group.option.subtitle") : ""
@@ -4705,8 +4705,8 @@ const Do = /* @__PURE__ */ he({
4705
4705
  default: I(({
4706
4706
  trigger: q
4707
4707
  }) => [h(L, {
4708
- "text-color": p(He).ColorPrimary,
4709
- "border-color": p(He).ColorPrimary,
4708
+ "text-color": p(Ye).ColorPrimary,
4709
+ "border-color": p(Ye).ColorPrimary,
4710
4710
  variant: "secondary",
4711
4711
  label: p(M)("menu.group.option.link_products"),
4712
4712
  "prepend-icon": "link",
@@ -4714,8 +4714,8 @@ const Do = /* @__PURE__ */ he({
4714
4714
  }, null, 8, ["text-color", "border-color", "label", "onClick"])]),
4715
4715
  _: 1
4716
4716
  }, 8, ["categorized-items", "initial-value", "show-variant", "title"])])) : (S(), W("div", bs, [h(L, {
4717
- "text-color": p(He).ColorPrimary,
4718
- "border-color": p(He).ColorPrimary,
4717
+ "text-color": p(Ye).ColorPrimary,
4718
+ "border-color": p(Ye).ColorPrimary,
4719
4719
  variant: "secondary",
4720
4720
  label: p(M)("menu.group.option.add_option"),
4721
4721
  "prepend-icon": "add",
@@ -4822,7 +4822,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
4822
4822
  setup(e, { expose: n, emit: t }) {
4823
4823
  var z;
4824
4824
  let o = e;
4825
- const a = t, i = Fe(), r = xt(), l = Ke(), s = je(), u = Je(Qe(s)), { countDefaultItems: d, validateGroupItems: c, minMaxValidationRules: m } = ks(
4825
+ const a = t, i = Fe(), r = xt(), l = Ke(), s = je(), u = Qe(Ze(s)), { countDefaultItems: d, validateGroupItems: c, minMaxValidationRules: m } = ks(
4826
4826
  () => o.group
4827
4827
  ), f = j(!1), v = j(!1), F = j(!1), b = (x) => {
4828
4828
  _t.isBoolean(x) ? v.value = x : v.value = !v.value;
@@ -4913,7 +4913,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
4913
4913
  ...o.group,
4914
4914
  name: k.value,
4915
4915
  ...o.group.name_locale && { name_locale: o.group.name_locale }
4916
- }, { group: J, linkItems: q } = so(L), re = {
4916
+ }, { group: J, linkItems: q } = so(L), se = {
4917
4917
  module: Z.F_MENU_MODULE_V4_KEY.enum.group,
4918
4918
  operation: Oe.F_OPERATION_TYPE.create,
4919
4919
  data: J,
@@ -4925,7 +4925,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
4925
4925
  }
4926
4926
  ]
4927
4927
  };
4928
- await u.updateMenu(re, J.name), a("submit:group", L);
4928
+ await u.updateMenu(se, J.name), a("submit:group", L);
4929
4929
  } else if (o.action === "update") {
4930
4930
  for (const J of Object.values(((x = o.group) == null ? void 0 : x.items) ?? {}))
4931
4931
  if (si(i.state.menu, o.group._id, J._id)) {
@@ -4960,8 +4960,8 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
4960
4960
  const x = {};
4961
4961
  return i.state.menu.modules.group.forEach((L) => {
4962
4962
  var J;
4963
- for (const [q, re] of Object.entries(L.customAttributes || {}))
4964
- typeof re == "string" && re && !((J = x[q]) != null && J.includes(re)) && (x[q] = [...x[q] || [], re]);
4963
+ for (const [q, se] of Object.entries(L.customAttributes || {}))
4964
+ typeof se == "string" && se && !((J = x[q]) != null && J.includes(se)) && (x[q] = [...x[q] || [], se]);
4965
4965
  }), x;
4966
4966
  }), V = (x) => {
4967
4967
  o.group && $({
@@ -4984,18 +4984,18 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
4984
4984
  return o.group.name && !q && x.push({
4985
4985
  locale: J,
4986
4986
  name: o.group.name,
4987
- localeDisplay: rt(J)
4988
- }), L && Object.entries(L).filter(([re, ce]) => ce).sort(([re], [ce]) => re.localeCompare(ce)).forEach(([re, ce]) => {
4987
+ localeDisplay: at(J)
4988
+ }), L && Object.entries(L).filter(([se, ce]) => ce).sort(([se], [ce]) => se.localeCompare(ce)).forEach(([se, ce]) => {
4989
4989
  x.push({
4990
- locale: re,
4990
+ locale: se,
4991
4991
  name: ce,
4992
- localeDisplay: rt(re)
4992
+ localeDisplay: at(se)
4993
4993
  });
4994
4994
  }), x;
4995
4995
  });
4996
4996
  return (x, L) => {
4997
4997
  var Ae;
4998
- const J = P("fm-button"), q = P("FmTooltip"), re = P("fm-text-field"), ce = P("fm-stepper-field"), U = P("FmFormGroup"), H = P("fm-radio"), le = P("fm-radio-group"), Re = P("fm-switch"), Ce = P("fm-side-sheet");
4998
+ const J = U("fm-button"), q = U("FmTooltip"), se = U("fm-text-field"), ce = U("fm-stepper-field"), P = U("FmFormGroup"), H = U("fm-radio"), ue = U("fm-radio-group"), Re = U("fm-switch"), Ce = U("fm-side-sheet");
4999
4999
  return S(), W(be, null, [
5000
5000
  xe(x.$slots, "default", { trigger: b }),
5001
5001
  h(Ce, {
@@ -5011,7 +5011,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5011
5011
  "onOn:clickedAway": p(w)
5012
5012
  }, {
5013
5013
  "side-sheet-header": I(() => [
5014
- D("p", Cs, se(x.title), 1)
5014
+ D("p", Cs, le(x.title), 1)
5015
5015
  ]),
5016
5016
  "side-sheet-footer": I(() => [
5017
5017
  D("div", Fs, [
@@ -5037,7 +5037,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5037
5037
  default: I(() => {
5038
5038
  var _e;
5039
5039
  return [
5040
- h(re, {
5040
+ h(se, {
5041
5041
  modelValue: k.value,
5042
5042
  "onUpdate:modelValue": L[1] || (L[1] = (me) => k.value = me),
5043
5043
  placeholder: (_e = _.value) == null ? void 0 : _e.name,
@@ -5056,7 +5056,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5056
5056
  D("div", xs, [
5057
5057
  (S(!0), W(be, null, Ee(de.value, (me) => (S(), W("div", {
5058
5058
  key: me.locale
5059
- }, se(me.name) + " (" + se(me.localeDisplay) + ") ", 1))), 128))
5059
+ }, le(me.name) + " (" + le(me.localeDisplay) + ") ", 1))), 128))
5060
5060
  ])
5061
5061
  ]),
5062
5062
  default: I(() => [
@@ -5072,7 +5072,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5072
5072
  ]),
5073
5073
  _: 1
5074
5074
  }, 8, ["modelValue", "placeholder", "disabled", "rules", "label"]),
5075
- h(U, {
5075
+ h(P, {
5076
5076
  "model-value": x.group.min + " " + x.group.max,
5077
5077
  rules: p(m)
5078
5078
  }, {
@@ -5101,12 +5101,12 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5101
5101
  ]),
5102
5102
  _: 1
5103
5103
  }, 8, ["model-value", "rules"]),
5104
- y.value.type ? (S(), Y(it, {
5104
+ y.value.type ? (S(), Y(ot, {
5105
5105
  key: 0,
5106
5106
  label: p(ie)("menu.common.labels.group_type")
5107
5107
  }, {
5108
5108
  default: I(() => [
5109
- h(le, {
5109
+ h(ue, {
5110
5110
  disabled: C("type"),
5111
5111
  "model-value": x.group.type,
5112
5112
  "onUpdate:modelValue": L[4] || (L[4] = (me) => E(me))
@@ -5123,7 +5123,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5123
5123
  ]),
5124
5124
  _: 1
5125
5125
  }, 8, ["label"])) : ne("", !0),
5126
- h(it, {
5126
+ h(ot, {
5127
5127
  label: p(ie)("menu.common.labels.configuration")
5128
5128
  }, {
5129
5129
  default: I(() => [
@@ -5157,7 +5157,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5157
5157
  }),
5158
5158
  _: 1
5159
5159
  }),
5160
- h(U, {
5160
+ h(P, {
5161
5161
  tag: "div",
5162
5162
  modelValue: x.group,
5163
5163
  rules: [p(c)],
@@ -5205,7 +5205,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5205
5205
  emits: ["update:combinations"],
5206
5206
  setup(e, { expose: n, emit: t }) {
5207
5207
  var N, $;
5208
- const o = e, a = t, i = Fe(), r = Ke(), l = Je(Qe(je())), s = j([]), u = j(o.combinations[0].combinationKey || ""), d = R(
5208
+ const o = e, a = t, i = Fe(), r = Ke(), l = Qe(Ze(je())), s = j([]), u = j(o.combinations[0].combinationKey || ""), d = R(
5209
5209
  () => s.value.findIndex((M) => M.combinationKey == u.value)
5210
5210
  ), c = R(
5211
5211
  () => o.combinations.map((M) => ({
@@ -5297,7 +5297,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5297
5297
  });
5298
5298
  const { t: C } = ye();
5299
5299
  return (M, k) => {
5300
- const T = P("fm-select"), E = P("fm-button"), A = P("fm-card");
5300
+ const T = U("fm-select"), E = U("fm-button"), A = U("fm-card");
5301
5301
  return S(), Y(Vo, {
5302
5302
  ref_key: "baseFormRef",
5303
5303
  ref: g,
@@ -5321,7 +5321,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5321
5321
  variant: "outlined"
5322
5322
  }, {
5323
5323
  default: I(() => [
5324
- D("p", Os, se(p(C)("menu.group.option.variant")), 1),
5324
+ D("p", Os, le(p(C)("menu.group.option.variant")), 1),
5325
5325
  D("div", Rs, [
5326
5326
  h(T, {
5327
5327
  modelValue: u.value,
@@ -5331,13 +5331,13 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5331
5331
  }, null, 8, ["modelValue", "items"]),
5332
5332
  D("div", As, [
5333
5333
  h(E, {
5334
- variant: p(Ze).Tertiary,
5334
+ variant: p(Xe).Tertiary,
5335
5335
  "prepend-icon": "keyboard_arrow_left",
5336
5336
  size: "lg",
5337
5337
  onClick: k[1] || (k[1] = (_) => v("left"))
5338
5338
  }, null, 8, ["variant"]),
5339
5339
  h(E, {
5340
- variant: p(Ze).Tertiary,
5340
+ variant: p(Xe).Tertiary,
5341
5341
  "prepend-icon": "keyboard_arrow_right",
5342
5342
  size: "lg",
5343
5343
  onClick: k[2] || (k[2] = (_) => v("right"))
@@ -5409,7 +5409,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5409
5409
  o(m.value), a("primary"), t.close();
5410
5410
  };
5411
5411
  return (b, y) => {
5412
- const g = P("FmSearch"), C = P("FmCheckbox"), N = P("FmButton");
5412
+ const g = U("FmSearch"), C = U("FmCheckbox"), N = U("FmButton");
5413
5413
  return d.value.length > 0 ? (S(), W("div", Ts, [
5414
5414
  D("div", null, [
5415
5415
  h(g, {
@@ -5464,8 +5464,8 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5464
5464
  ])
5465
5465
  ])) : (S(), W("div", Ps, [
5466
5466
  D("div", Us, [
5467
- D("p", $s, se(p(v)("menu.common.empty.no_group.title")), 1),
5468
- D("p", Ns, se(p(v)("menu.common.empty.no_group.subtitle")), 1)
5467
+ D("p", $s, le(p(v)("menu.common.empty.no_group.title")), 1),
5468
+ D("p", Ns, le(p(v)("menu.common.empty.no_group.subtitle")), 1)
5469
5469
  ]),
5470
5470
  h(p(Wn), null, {
5471
5471
  default: I(({ trigger: $ }) => [
@@ -5717,7 +5717,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5717
5717
  }) : s("update:form", "groups", w[0].groups || []);
5718
5718
  };
5719
5719
  return (w, O) => {
5720
- const B = P("FmButton"), te = P("FmTable");
5720
+ const B = U("FmButton"), te = U("FmTable");
5721
5721
  return S(), Y($e, {
5722
5722
  title: p(l)("menu.product.form.group.title"),
5723
5723
  "sub-title": p(l)("menu.product.form.group.subtitle")
@@ -5863,10 +5863,10 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5863
5863
  }, {
5864
5864
  default: ({
5865
5865
  trigger: $
5866
- }) => h(P("fm-button"), {
5867
- variant: Ze.Tertiary,
5866
+ }) => h(U("fm-button"), {
5867
+ variant: Xe.Tertiary,
5868
5868
  prependIcon: "edit",
5869
- textColor: He.NeutralGray400,
5869
+ textColor: Ye.NeutralGray400,
5870
5870
  onClick: $
5871
5871
  }, null)
5872
5872
  })]) : null;
@@ -5883,7 +5883,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
5883
5883
  return ft(() => {
5884
5884
  g.readInventory();
5885
5885
  }), (C, N) => {
5886
- const $ = P("FmStepperField");
5886
+ const $ = U("FmStepperField");
5887
5887
  return S(), W(be, null, [h($e, {
5888
5888
  title: p(t)("menu.inventory.title"),
5889
5889
  subTitle: p(t)("menu.inventory.subtitle")
@@ -6006,7 +6006,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6006
6006
  return ((g = a.currentCatalog) == null ? void 0 : g.priceTierRules) ?? ((C = a.currentCatalog) == null ? void 0 : C.usePriceTiers) ?? [];
6007
6007
  });
6008
6008
  return (g, C) => {
6009
- const N = P("fm-select"), $ = P("FmButton"), M = P("fm-checkbox"), k = P("fm-text-field"), T = qn("tooltip");
6009
+ const N = U("fm-select"), $ = U("FmButton"), M = U("fm-checkbox"), k = U("fm-text-field"), T = qn("tooltip");
6010
6010
  return S(), Y($e, {
6011
6011
  title: p(r)("menu.product.form.price.title")
6012
6012
  }, {
@@ -6051,7 +6051,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6051
6051
  "onUpdate:modelValue": C[1] || (C[1] = (A) => l("update:form", "taxes", [p(Qt).decodeTax(A)]))
6052
6052
  }, null, 8, ["disabled", "items", "label", "model-value"])
6053
6053
  ]),
6054
- !g.isOverride && p(a).isV4 ? (S(), Y(it, {
6054
+ !g.isOverride && p(a).isV4 ? (S(), Y(ot, {
6055
6055
  key: 0,
6056
6056
  label: p(r)("menu.price_tier.price_group"),
6057
6057
  description: p(r)("menu.price_tier.description")
@@ -6078,7 +6078,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6078
6078
  }),
6079
6079
  _: 1
6080
6080
  }, 8, ["label", "description"])) : ne("", !0),
6081
- h(it, {
6081
+ h(ot, {
6082
6082
  label: p(r)("menu.product.form.price.settings.title")
6083
6083
  }, {
6084
6084
  default: I(() => {
@@ -6103,7 +6103,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6103
6103
  "onUpdate:modelValue": d
6104
6104
  }, null, 8, ["disabled", "model-value", "value", "label", "sublabel"]),
6105
6105
  u.value ? (S(), W("div", qs, [
6106
- D("p", Xs, se(p(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
6106
+ D("p", Xs, le(p(r)("menu.product.form.price.settings.sell_by_unit.per_unit.label")), 1),
6107
6107
  D("div", Zs, [
6108
6108
  h(k, {
6109
6109
  disabled: !s.value.unit,
@@ -6192,7 +6192,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6192
6192
  applyProduct: { type: Boolean }
6193
6193
  },
6194
6194
  setup(e) {
6195
- const { t: n } = ye(), t = e, o = Je(Qe(je())), a = R(
6195
+ const { t: n } = ye(), t = e, o = Qe(Ze(je())), a = R(
6196
6196
  () => t.initialValue ? n("menu.print_dept.update") : n("menu.print_dept.add")
6197
6197
  ), i = R(
6198
6198
  () => t.initialValue ? n("menu.common.actions.update") : n("menu.common.actions.add")
@@ -6233,7 +6233,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6233
6233
  c && (r.value = t.initialValue ? we(t.initialValue) : { ...Ge.generator.initMenuV4PrintDepartment(), usedBy: [] });
6234
6234
  }
6235
6235
  ), (c, m) => {
6236
- const f = P("fm-text-field"), v = P("fm-button"), F = P("fm-side-sheet");
6236
+ const f = U("fm-text-field"), v = U("fm-button"), F = U("fm-side-sheet");
6237
6237
  return S(), W(be, null, [
6238
6238
  xe(c.$slots, "default", { trigger: u }),
6239
6239
  h(F, {
@@ -6249,7 +6249,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6249
6249
  "dismiss-away": ""
6250
6250
  }, {
6251
6251
  "side-sheet-header": I(() => [
6252
- D("p", rl, se(a.value), 1)
6252
+ D("p", rl, le(a.value), 1)
6253
6253
  ]),
6254
6254
  "side-sheet-footer": I(() => [
6255
6255
  D("div", ll, [
@@ -6374,14 +6374,14 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6374
6374
  () => s.value.length,
6375
6375
  () => F(s.value[s.value.length - 1]._id, !0)
6376
6376
  ), (y, g) => {
6377
- const C = P("fm-switch"), N = P("fm-radio"), $ = P("fm-radio-group"), M = P("fm-button"), k = P("fm-checkbox");
6377
+ const C = U("fm-switch"), N = U("fm-radio"), $ = U("fm-radio-group"), M = U("fm-button"), k = U("fm-checkbox");
6378
6378
  return S(), Y($e, {
6379
6379
  title: p(a)("menu.product.form.print.title")
6380
6380
  }, {
6381
6381
  default: I(() => {
6382
6382
  var T;
6383
6383
  return [
6384
- l.value.printConfig ? (S(), Y(it, {
6384
+ l.value.printConfig ? (S(), Y(ot, {
6385
6385
  key: 0,
6386
6386
  label: p(a)("menu.product.form.print.config.label")
6387
6387
  }, {
@@ -6416,7 +6416,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6416
6416
  ]),
6417
6417
  _: 1
6418
6418
  }, 8, ["label", "model-value"]),
6419
- h(it, {
6419
+ h(ot, {
6420
6420
  label: p(a)("menu.product.form.print.routes.label")
6421
6421
  }, {
6422
6422
  default: I(() => [
@@ -6461,7 +6461,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6461
6461
  default: I(({ trigger: E }) => [
6462
6462
  D("div", fl, [
6463
6463
  h(M, {
6464
- variant: p(Ze).Secondary,
6464
+ variant: p(Xe).Secondary,
6465
6465
  label: p(a)("menu.product.form.print.routes.add"),
6466
6466
  "prepend-icon": "add",
6467
6467
  onClick: E
@@ -6502,7 +6502,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6502
6502
  c.length > 0 && (r.value = [.../* @__PURE__ */ new Set([...r.value, ...c])]);
6503
6503
  }
6504
6504
  ), (s, u) => {
6505
- const d = P("FmSearch"), c = P("FmCheckbox");
6505
+ const d = U("FmSearch"), c = U("FmCheckbox");
6506
6506
  return S(), W("div", vl, [
6507
6507
  h(d, {
6508
6508
  modelValue: o.value,
@@ -6533,7 +6533,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6533
6533
  }) {
6534
6534
  const {
6535
6535
  t
6536
- } = ye(), o = e, a = n, i = Ke(), r = je(), l = Qe(r), s = Je(l), u = Fe(), d = _i({
6536
+ } = ye(), o = e, a = n, i = Ke(), r = je(), l = Ze(r), s = Qe(l), u = Fe(), d = _i({
6537
6537
  dialog: i,
6538
6538
  menuLoader: s
6539
6539
  }), c = R(() => o.timePresets.map((b) => {
@@ -6591,7 +6591,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6591
6591
  },
6592
6592
  tertiaryActions: {
6593
6593
  text: t("menu.product.form.order_pacing.time_presets.add_preset"),
6594
- variant: Ze.Plain,
6594
+ variant: Xe.Plain,
6595
6595
  close: !1
6596
6596
  }
6597
6597
  }).onPrimary((b) => {
@@ -6602,7 +6602,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6602
6602
  });
6603
6603
  }
6604
6604
  return (b, y) => {
6605
- const g = P("FmButton"), C = P("FmTable");
6605
+ const g = U("FmButton"), C = U("FmTable");
6606
6606
  return S(), W(be, null, [h($e, {
6607
6607
  title: p(t)("menu.product.form.order_pacing.time_presets.title"),
6608
6608
  "sub-title": p(t)("menu.product.form.order_pacing.time_presets.subtitle")
@@ -6646,7 +6646,7 @@ const Cs = { class: "fm-typo-en-title-md-600" }, Ss = {
6646
6646
  });
6647
6647
  const r = j(((l = i.value) == null ? void 0 : l.enabled) ?? !1);
6648
6648
  return (s, u) => {
6649
- const d = P("FmSwitch");
6649
+ const d = U("FmSwitch");
6650
6650
  return S(), Y($e, {
6651
6651
  title: p(t)("menu.product.form.order_pacing.title")
6652
6652
  }, {
@@ -6745,7 +6745,7 @@ const Cl = {
6745
6745
  setup(e, {
6746
6746
  emit: n
6747
6747
  }) {
6748
- const t = e, o = Fe(), a = R(() => o.rules.item), i = Je(Qe(je())), {
6748
+ const t = e, o = Fe(), a = R(() => o.rules.item), i = Qe(Ze(je())), {
6749
6749
  t: r
6750
6750
  } = ye(), l = n, {
6751
6751
  hasVariant: s,
@@ -6838,7 +6838,7 @@ const Cl = {
6838
6838
  set: f("app")
6839
6839
  });
6840
6840
  return (b, y) => {
6841
- const g = P("FmCheckbox"), C = P("fm-table");
6841
+ const g = U("FmCheckbox"), C = U("fm-table");
6842
6842
  return S(), Y($e, {
6843
6843
  title: p(r)("menu.product.form.takeaway.title"),
6844
6844
  "sub-title": p(r)("menu.product.form.takeaway.subtitle")
@@ -6887,7 +6887,7 @@ const Cl = {
6887
6887
  t(s.value), o("primary"), n.close();
6888
6888
  };
6889
6889
  return (c, m) => {
6890
- const f = P("FmSearch"), v = P("FmCheckbox"), F = P("FmButton");
6890
+ const f = U("FmSearch"), v = U("FmCheckbox"), F = U("FmButton");
6891
6891
  return l.value.length > 0 ? (S(), W("div", xl, [
6892
6892
  D("div", null, [
6893
6893
  h(f, {
@@ -6943,8 +6943,8 @@ const Cl = {
6943
6943
  ])
6944
6944
  ])) : (S(), W("div", Al, [
6945
6945
  D("div", Ml, [
6946
- D("p", El, se(p(i)("menu.common.empty.no_variant.title")), 1),
6947
- D("p", Dl, se(p(i)("menu.common.empty.no_variant.subtitle")), 1)
6946
+ D("p", El, le(p(i)("menu.common.empty.no_variant.title")), 1),
6947
+ D("p", Dl, le(p(i)("menu.common.empty.no_variant.subtitle")), 1)
6948
6948
  ]),
6949
6949
  h(p(Tn), null, {
6950
6950
  default: I(({ trigger: b }) => [
@@ -7213,7 +7213,7 @@ const Cl = {
7213
7213
  }) : !0;
7214
7214
  }
7215
7215
  return (_, w) => {
7216
- const O = P("fm-button"), B = P("fm-icon"), te = P("FmFormGroup"), Q = P("fm-table");
7216
+ const O = U("fm-button"), B = U("fm-icon"), te = U("FmFormGroup"), Q = U("fm-table");
7217
7217
  return S(), Y($e, {
7218
7218
  title: p(l)("menu.product.form.variant.title"),
7219
7219
  "sub-title": p(l)("menu.product.form.variant.subtitle")
@@ -7246,10 +7246,10 @@ const Cl = {
7246
7246
  }) => {
7247
7247
  var ie;
7248
7248
  return [D("div", Il, [h(O, {
7249
- variant: p(Ze).Tertiary,
7249
+ variant: p(Xe).Tertiary,
7250
7250
  class: "handle",
7251
7251
  "prepend-icon": "drag_handle"
7252
- }, null, 8, ["variant"]), D("div", zl, [D("p", Pl, se((ie = m.value[ee]) == null ? void 0 : ie.name), 1), h(B, {
7252
+ }, null, 8, ["variant"]), D("div", zl, [D("p", Pl, le((ie = m.value[ee]) == null ? void 0 : ie.name), 1), h(B, {
7253
7253
  class: "cursor-pointer",
7254
7254
  name: "close",
7255
7255
  onClick: St((de) => {
@@ -7403,7 +7403,7 @@ const Cl = {
7403
7403
  g.value = null, f.value.thumbnail = null;
7404
7404
  }
7405
7405
  const A = R(() => {
7406
- var K, G, pe, fe, oe, ue, Ye, Rn, An;
7406
+ var K, G, pe, fe, oe, rt, re, Rn, An;
7407
7407
  return {
7408
7408
  title: r("menu.product.form.summary.title"),
7409
7409
  items: [
@@ -7433,7 +7433,7 @@ const Cl = {
7433
7433
  },
7434
7434
  {
7435
7435
  name: r("menu.product.form.summary.fields.inventory"),
7436
- value: (ue = f.value.inventoryBindings) != null && ue.length ? String(f.value.inventoryBindings.length) : (Rn = (Ye = m.value) == null ? void 0 : Ye.inventoryBindings) != null && Rn.length ? String(m.value.inventoryBindings.length) : "-"
7436
+ value: (rt = f.value.inventoryBindings) != null && rt.length ? String(f.value.inventoryBindings.length) : (Rn = (re = m.value) == null ? void 0 : re.inventoryBindings) != null && Rn.length ? String(m.value.inventoryBindings.length) : "-"
7437
7437
  },
7438
7438
  {
7439
7439
  name: r("menu.product.form.summary.fields.takeaway"),
@@ -7555,7 +7555,7 @@ const Cl = {
7555
7555
  function q(K) {
7556
7556
  f.value.serveDelay || (f.value.serveDelay = { enabled: K, overriders: [] }), f.value.serveDelay.enabled = K;
7557
7557
  }
7558
- function re(K) {
7558
+ function se(K) {
7559
7559
  f.value.serveDelay || (f.value.serveDelay = { enabled: !1, overriders: [] });
7560
7560
  const G = f.value.serveDelay.overriders || [];
7561
7561
  K.isDefault && G.forEach((fe) => {
@@ -7569,12 +7569,12 @@ const Cl = {
7569
7569
  }
7570
7570
  function ce(K) {
7571
7571
  f.value.serveDelay || (f.value.serveDelay = { enabled: !1, overriders: [] });
7572
- const pe = (f.value.serveDelay.overriders || []).filter((Ye) => K.includes(Ye.id)), fe = new Set(pe.map((Ye) => Ye.id)), ue = K.filter((Ye) => !fe.has(Ye)).map(
7573
- (Ye) => ({
7574
- id: Ye
7572
+ const pe = (f.value.serveDelay.overriders || []).filter((re) => K.includes(re.id)), fe = new Set(pe.map((re) => re.id)), rt = K.filter((re) => !fe.has(re)).map(
7573
+ (re) => ({
7574
+ id: re
7575
7575
  })
7576
7576
  );
7577
- f.value.serveDelay.overriders = [...pe, ...ue];
7577
+ f.value.serveDelay.overriders = [...pe, ...rt];
7578
7578
  }
7579
7579
  ke(
7580
7580
  () => {
@@ -7613,14 +7613,14 @@ const Cl = {
7613
7613
  console.log(K);
7614
7614
  }
7615
7615
  });
7616
- const U = Li();
7616
+ const P = Li();
7617
7617
  ft(() => {
7618
- U.isUpdatingItem || (U.isUpdatingItem = !0, U.storedCatalogId = a.state.currentCatalogId, U.storedSchedulerId = a.state.currentSchedulerId);
7618
+ P.isUpdatingItem || (P.isUpdatingItem = !0, P.storedCatalogId = a.state.currentCatalogId, P.storedSchedulerId = a.state.currentSchedulerId);
7619
7619
  });
7620
7620
  function H() {
7621
- U.isUpdatingItem = !1, a.selectCatalog(U.storedCatalogId), a.selectScheduler(U.storedSchedulerId);
7621
+ P.isUpdatingItem = !1, a.selectCatalog(P.storedCatalogId), a.selectScheduler(P.storedSchedulerId);
7622
7622
  }
7623
- function le() {
7623
+ function ue() {
7624
7624
  $.value && [
7625
7625
  [_.value, w],
7626
7626
  [B.value, te]
@@ -7652,7 +7652,7 @@ const Cl = {
7652
7652
  click: Re
7653
7653
  }
7654
7654
  ],
7655
- onOnPrimary: le,
7655
+ onOnPrimary: ue,
7656
7656
  onOnCancel: Re
7657
7657
  }, {
7658
7658
  "append-title": I(() => [
@@ -7881,7 +7881,7 @@ const Cl = {
7881
7881
  key: 14,
7882
7882
  form: f.value,
7883
7883
  "onUpdate:linkedOrderPacing": G[21] || (G[21] = (oe) => ce(oe)),
7884
- "onUpdate:defaultPreset": G[22] || (G[22] = (oe) => re(oe)),
7884
+ "onUpdate:defaultPreset": G[22] || (G[22] = (oe) => se(oe)),
7885
7885
  "onUpdate:enabled": G[23] || (G[23] = (oe) => q(oe))
7886
7886
  }, null, 8, ["form"])) : ne("", !0)
7887
7887
  ], 512),
@@ -7992,7 +7992,7 @@ function Ql(e, n) {
7992
7992
  };
7993
7993
  }
7994
7994
  const Xt = Yn("item-manager", () => {
7995
- const e = Fe(), n = je(), t = Ke(), o = Qe(n), a = Je(o), i = yn(), { t: r } = ye(), l = (k) => {
7995
+ const e = Fe(), n = je(), t = Ke(), o = Ze(n), a = Qe(o), i = yn(), { t: r } = ye(), l = (k) => {
7996
7996
  if (!i) throw new Error("No current instance found");
7997
7997
  const { container: T } = eo(ql, i, {
7998
7998
  ...k,
@@ -8037,7 +8037,7 @@ const Xt = Yn("item-manager", () => {
8037
8037
  const B = O.modules.catalog.find(
8038
8038
  (te) => te._id === T._id
8039
8039
  );
8040
- await new nt(B, e, a.updateMenu, t).update();
8040
+ await new tt(B, e, a.updateMenu, t).update();
8041
8041
  });
8042
8042
  }
8043
8043
  async function c(k) {
@@ -8046,7 +8046,7 @@ const Xt = Yn("item-manager", () => {
8046
8046
  const A = E.modules.catalog.find(
8047
8047
  (_) => _._id === T._id
8048
8048
  );
8049
- await new nt(A, e, a.updateMenu, t).update();
8049
+ await new tt(A, e, a.updateMenu, t).update();
8050
8050
  });
8051
8051
  }
8052
8052
  async function m(k) {
@@ -8074,7 +8074,7 @@ const Xt = Yn("item-manager", () => {
8074
8074
  _id: T,
8075
8075
  items: A
8076
8076
  }
8077
- }, await new nt(E, e, a.updateMenu, t).update();
8077
+ }, await new tt(E, e, a.updateMenu, t).update();
8078
8078
  }
8079
8079
  async function v(k) {
8080
8080
  var _;
@@ -8097,7 +8097,7 @@ const Xt = Yn("item-manager", () => {
8097
8097
  },
8098
8098
  {}
8099
8099
  ), { updateMenu: A } = a;
8100
- await new nt(
8100
+ await new tt(
8101
8101
  {
8102
8102
  ...T,
8103
8103
  override: {
@@ -8179,7 +8179,7 @@ const Xt = Yn("item-manager", () => {
8179
8179
  primaryActions: {
8180
8180
  text: r("menu.common.actions.remove"),
8181
8181
  close: !0,
8182
- variant: Ze.Destructive
8182
+ variant: Xe.Destructive
8183
8183
  },
8184
8184
  secondaryActions: {
8185
8185
  text: r("menu.common.actions.cancel"),
@@ -8209,7 +8209,7 @@ const Xt = Yn("item-manager", () => {
8209
8209
  e,
8210
8210
  a.updateMenu,
8211
8211
  t
8212
- ).unlinkProduct(k.map((T) => T._id)) : e.currentCatalog ? await new nt(
8212
+ ).unlinkProduct(k.map((T) => T._id)) : e.currentCatalog ? await new tt(
8213
8213
  e.currentCatalog,
8214
8214
  e,
8215
8215
  a.updateMenu,