@feedmepos/mf-menu 0.32.55-dev → 0.32.55-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/{App-CIgIsEM9.js → App-CUxpN61P.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DmEIlfYP.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Cnb9i7hd.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-BbC3lOOV.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-C2F7HXQL.js} +2 -2
  4. package/dist/{Catalog-9ib95UId.js → Catalog-C6PTas37.js} +6 -6
  5. package/dist/{Category-BYu100IJ.js → Category-BNP9UuQs.js} +4 -4
  6. package/dist/{Category-Bl7SYTgm.js → Category-CbVKsY9x.js} +4 -4
  7. package/dist/{CookingGuide-D-cUq1Ol.js → CookingGuide-CrhTTXaK.js} +4 -4
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BPy_R1gJ.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BnjQt4mF.js} +1 -1
  9. package/dist/{Group-micF-DFs.js → Group-Cs8zwohX.js} +3 -3
  10. package/dist/{Group-CQliZiFG.js → Group-D-bkPYRH.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-DjOSKedT.js → Group.vue_vue_type_script_setup_true_lang-FW7kAQKd.js} +7 -7
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bn0-7ZV5.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BUIjOdVJ.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-D1BTnmYq.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C5yY5Dkx.js} +212 -212
  14. package/dist/{Ingredient-MOpWS1c4.js → Ingredient-BOQ6oSge.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B5zF8O3I.js → InventoryBinding.vue_vue_type_script_setup_true_lang-D7CTjrQX.js} +2 -2
  16. package/dist/{LinkProductSideSheet-BvEaDUll.js → LinkProductSideSheet-qCLknU3I.js} +3 -3
  17. package/dist/{MenuSetting-CCAQiJEV.js → MenuSetting-Bk1IjwAf.js} +6 -6
  18. package/dist/{OrderPacing-Nr7kci_s.js → OrderPacing-nrhOzwqC.js} +5 -5
  19. package/dist/{PrintRoute-BFLrZZD9.js → PrintRoute-BM1lD7vb.js} +4 -4
  20. package/dist/{Product-C8qaWDkl.js → Product-Bkr0EUvR.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-Bn0VVijn.js → Product.vue_vue_type_script_setup_true_lang-AzTv_E2s.js} +12 -12
  22. package/dist/{ProductInternalTools-B2mzlBZM.js → ProductInternalTools-vFBqmIwi.js} +5 -5
  23. package/dist/{Products-ZLqxuf4C.js → Products-BngkeA_d.js} +57 -57
  24. package/dist/{Publish-CAT-NC6s.js → Publish-BDR0p0C7.js} +3 -3
  25. package/dist/{Recipe-wKIa_jHj.js → Recipe-BU6DqVBj.js} +4 -4
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BCqZUUqp.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BOobVOwv.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DVxhfBXq.js → RuleView.vue_vue_type_script_setup_true_lang-CFpe4Iir.js} +207 -207
  28. package/dist/{Scheduler-Br1FOJt_.js → Scheduler-BdrdzqH-.js} +3 -3
  29. package/dist/{ServingSequence-DAUy_tYS.js → ServingSequence-BBUhxb1a.js} +3 -3
  30. package/dist/{Setting-BeR46X9Q.js → Setting-4WA4XJ3E.js} +5 -5
  31. package/dist/{Subcategory-lvNu6y02.js → Subcategory-WET--Di_.js} +5 -5
  32. package/dist/{Takeaway-C3V6m7Re.js → Takeaway-BN8uzwh3.js} +4 -4
  33. package/dist/{Takeaway-BdsE7Mz4.js → Takeaway-CTqJRcps.js} +1 -1
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cw389Ag5.js → Takeaway.vue_vue_type_script_setup_true_lang-BvAXnVNf.js} +5 -5
  35. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-D3IsLPEJ.js → Thumbnail.vue_vue_type_script_setup_true_lang-CvfB2iZM.js} +4 -4
  36. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BHxvkbIp.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-DtLnmZ8B.js} +1 -1
  37. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-1ArcDuET.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CPd-Zjws.js} +2 -2
  38. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ClDIRf6q.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CXJT2-tC.js} +13 -13
  39. package/dist/{Unit-DmZVN6Yw.js → Unit-BuuxETQO.js} +2 -2
  40. package/dist/{Variant-hdGTER6L.js → Variant-BxxvGlMT.js} +3 -3
  41. package/dist/{_id_-CvgEr6jN.js → _id_-AZAVb9x_.js} +9 -9
  42. package/dist/{app-DN7ekh5C.js → app-BdJnGBwv.js} +32 -32
  43. package/dist/{app-CYewE37N.js → app-BrbwUqdU.js} +1 -1
  44. package/dist/app.js +1 -1
  45. package/dist/assets/{linked-status-D5nQiLUb.js → linked-status-B-Rl1diH.js} +2 -2
  46. package/dist/assets/{menu-export-Ize1yB7x.js → menu-export-Dd4iJoCx.js} +2 -2
  47. package/dist/assets/{override-menu-C0fDYDhe.js → override-menu-DdjEA-4p.js} +2 -2
  48. package/dist/assets/{validate-menu-BbSXAJqf.js → validate-menu-D3A5C308.js} +2 -2
  49. package/dist/{catalog-DHONNzCf.js → catalog-3xncYAFx.js} +1 -1
  50. package/dist/{catalogSetting-BUuDLox3.js → catalogSetting-DwgGp-Q4.js} +1 -1
  51. package/dist/{currency-DIJaJQl4.js → currency-CzUDPPUv.js} +1 -1
  52. package/dist/{dayjs.min-CPdSdRMO.js → dayjs.min-Bdj5ZtP1.js} +2 -2
  53. package/dist/{index-DSpPcqqG.js → index-C2JiJ3sF.js} +4 -4
  54. package/dist/{index-DDmBlrVX.js → index-CvWzypxM.js} +5 -5
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-BK6N1N8S.js → index.vue_vue_type_script_setup_true_lang-lnHttflC.js} +287 -287
  56. package/dist/{item-CfLgj9r6.js → item-DGe5pdOK.js} +220 -220
  57. package/dist/{jszip.min-DOv1a5aI.js → jszip.min-BkjnmqkP.js} +3 -3
  58. package/dist/{memberPricing-BEWayGJA.js → memberPricing-8Rn67mUQ.js} +1 -1
  59. package/dist/{menu-D1qDAKyx.js → menu-CPMmBzMw.js} +1 -1
  60. package/dist/{menuV2-lmrkMCMz.js → menuV2-BAWKdUqF.js} +19 -19
  61. package/dist/mf-menu.css +1 -1
  62. package/dist/{order_pacing-CBCsrQbk.js → order_pacing-Bf1bv6x3.js} +5 -5
  63. package/dist/{priceTier-B18WkSDB.js → priceTier-Er6JH5X4.js} +1 -1
  64. package/dist/{rules-Mf98YSaj.js → rules-DwvGpoGj.js} +3 -3
  65. package/dist/{scheduler-Dqh2rR00.js → scheduler-B3PokqlS.js} +4 -4
  66. package/dist/{toExcel-Bm8l24mb.js → toExcel-BlwgaARe.js} +2 -2
  67. package/dist/{unit-Dw-sx8I6.js → unit-DNF8MsPj.js} +2 -2
  68. package/package.json +1 -1
@@ -1,39 +1,39 @@
1
1
  import { defineStore as ai } from "pinia";
2
- import { defineComponent as pe, resolveComponent as L, createElementBlock as Y, createBlock as X, openBlock as k, createElementVNode as F, createVNode as h, toDisplayString as ae, Fragment as ve, renderList as Re, h as Me, ref as H, computed as T, watch as xe, unref as m, renderSlot as Ve, withCtx as P, createCommentVNode as ne, Transition as Gi, normalizeClass as Ne, resolveDynamicComponent as jt, withDirectives as ut, vShow as Jt, mergeProps as ri, withModifiers as It, onMounted as wt, onUnmounted as Ki, createTextVNode as Ft, getCurrentInstance as zn, render as Gt, resolveDirective as Kt, markRaw as Wi, mergeModels as Bn, useModel as Hi, nextTick as si, normalizeProps as Yi, guardReactiveProps as qi, normalizeStyle as Xi } from "vue";
3
- import { J as Ie, K as Pe, U as Te, as as Zi, au as Qi, a0 as li, G as _e, A as Ye, R as Se, z as Le, X as Ji, u as Fe, H as ze, B as nt, P as it, a2 as eo, y as pt, av as to, M as Wt, N as yn, O as jn, Q as no, T as io, V as oo, W as mn, am as ao, Y as ro } from "./index.vue_vue_type_script_setup_true_lang-BK6N1N8S.js";
2
+ import { defineComponent as pe, resolveComponent as U, createElementBlock as Y, createBlock as X, openBlock as k, createElementVNode as F, createVNode as h, toDisplayString as ae, Fragment as ve, renderList as Re, h as Me, ref as H, computed as T, watch as xe, unref as m, renderSlot as Ve, withCtx as P, createCommentVNode as ne, Transition as Gi, normalizeClass as Ne, resolveDynamicComponent as Bt, withDirectives as ut, vShow as Jt, mergeProps as ri, withModifiers as zt, onMounted as wt, onUnmounted as Ki, createTextVNode as jt, getCurrentInstance as zn, render as Gt, resolveDirective as Kt, markRaw as Wi, mergeModels as Bn, useModel as Hi, nextTick as si, normalizeProps as Yi, guardReactiveProps as qi, normalizeStyle as Xi } from "vue";
3
+ import { J as Ie, K as Pe, U as Te, as as Zi, au as Qi, a0 as li, G as _e, A as Ye, R as Se, z as Le, X as Ji, u as Fe, H as ze, B as nt, P as it, a2 as eo, y as pt, av as to, M as Wt, N as yn, O as jn, Q as no, T as io, V as oo, W as mn, am as ao, Y as ro } from "./index.vue_vue_type_script_setup_true_lang-lnHttflC.js";
4
4
  import { useI18n as fe, useCoreStore as xt, CustomAttributesForm as ui } from "@feedmepos/mf-common";
5
5
  import { useDialog as Ze, useSnackbar as qe, components as Ae, useDialogChild as en, FmButtonVariant as je, FmButtonColorThemeVariant as Je, useBreakpoints as ci } from "@feedmepos/ui-library";
6
- import { C as rt } from "./catalog-DHONNzCf.js";
6
+ import { C as rt } from "./catalog-3xncYAFx.js";
7
7
  import { c as di } from "./createComponentProgrammatically-Bt2rn1IQ.js";
8
- import { a as Gn, _ as Mt } from "./tooltip-B5BiPMx9.js";
9
- import { H as so, L as lo } from "./LinkProductSideSheet-BvEaDUll.js";
10
- import { u as uo, _ as Be, a as co } from "./RuleView.vue_vue_type_script_setup_true_lang-DVxhfBXq.js";
8
+ import { a as Gn, _ as Ft } from "./tooltip-B5BiPMx9.js";
9
+ import { H as so, L as lo } from "./LinkProductSideSheet-qCLknU3I.js";
10
+ import { u as uo, _ as Be, a as co } from "./RuleView.vue_vue_type_script_setup_true_lang-CFpe4Iir.js";
11
11
  import { s as _n, F as mo, _ as po } from "./index-CisutoS9.js";
12
- import { e as fo } from "./app-DN7ekh5C.js";
12
+ import { e as fo } from "./app-BdJnGBwv.js";
13
13
  import { _ as bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- import { g as mi, b as ho, c as vo, a as go, m as bo } from "./menuV2-lmrkMCMz.js";
14
+ import { g as mi, b as ho, c as vo, a as go, m as bo } from "./menuV2-BAWKdUqF.js";
15
15
  import { useAppStore as tn, RemyButton as Ht } from "@feedmepos/mf-remy-panel";
16
16
  import { _ as ct } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
17
- import { u as yo, r as _o } from "./rules-Mf98YSaj.js";
17
+ import { u as yo, r as _o } from "./rules-DwvGpoGj.js";
18
18
  import { u as At } from "./discardConfirm-BHni0LNu.js";
19
- import { _ as pi, a as Yt, b as qt, c as Xt } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-BHxvkbIp.js";
19
+ import { _ as pi, a as Yt, b as qt, c as Xt } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-DtLnmZ8B.js";
20
20
  import { a as wn, g as mt } from "./translation-fNx6yEpy.js";
21
21
  import { c as Zt } from "./object-DVUNCr7w.js";
22
- import { _ as In } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-1ArcDuET.js";
23
- import { u as wo } from "./menu-D1qDAKyx.js";
22
+ import { _ as In } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CPd-Zjws.js";
23
+ import { u as wo } from "./menu-CPMmBzMw.js";
24
24
  import { c as yt } from "./check-C9mY6LiX.js";
25
- import { _ as lt, l as kn, T as ko } from "./index-DDmBlrVX.js";
25
+ import { _ as lt, l as kn, T as ko } from "./index-CvWzypxM.js";
26
26
  import { useInventoryStore as fi, InventoryBindingForm as Co, InventoryBindingSummary as So } from "@feedmepos/mf-inventory-portal";
27
- import { f as Xe } from "./currency-DIJaJQl4.js";
28
- import { u as nn } from "./memberPricing-BEWayGJA.js";
29
- import { u as hi } from "./priceTier-B18WkSDB.js";
27
+ import { f as Xe } from "./currency-CzUDPPUv.js";
28
+ import { u as nn } from "./memberPricing-8Rn67mUQ.js";
29
+ import { u as hi } from "./priceTier-Er6JH5X4.js";
30
30
  import { u as xo } from "./search-BAPEUu1R.js";
31
31
  import { c as Ao } from "./string-DpfFixWH.js";
32
32
  import { d as vi } from "./vuedraggable-CK8z7qA8.js";
33
- import { _ as Vo } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DmEIlfYP.js";
34
- import { u as To, a as Fo } from "./order_pacing-CBCsrQbk.js";
35
- import { V as Kn } from "./index-DSpPcqqG.js";
36
- class Nt {
33
+ import { _ as Vo } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Cnb9i7hd.js";
34
+ import { u as To, a as Fo } from "./order_pacing-Bf1bv6x3.js";
35
+ import { V as Kn } from "./index-C2JiJ3sF.js";
36
+ class Lt {
37
37
  constructor(n, t, i, a) {
38
38
  this.scheduler = n, this.menuStore = t, this.updateMenu = i, this.dialog = a;
39
39
  }
@@ -334,7 +334,7 @@ class bi {
334
334
  this.menuStore = n, this.updateMenu = t, this.dialog = i;
335
335
  }
336
336
  getFallbackPrices(n) {
337
- const t = this.menuStore.currentCatalog, i = this.menuStore.currentScheduler, a = new rt(t, this.menuStore, this.updateMenu, this.dialog), o = new Nt(
337
+ const t = this.menuStore.currentCatalog, i = this.menuStore.currentScheduler, a = new rt(t, this.menuStore, this.updateMenu, this.dialog), o = new Lt(
338
338
  i,
339
339
  this.menuStore,
340
340
  this.updateMenu,
@@ -561,7 +561,7 @@ const Po = {
561
561
  });
562
562
  }
563
563
  return (a, o) => {
564
- const r = L("FmButton");
564
+ const r = U("FmButton");
565
565
  return n.variant === "full" ? (k(), Y("div", Po, [
566
566
  F("div", Ro, ae(a.title), 1),
567
567
  h(so),
@@ -628,7 +628,7 @@ const Po = {
628
628
  c();
629
629
  }
630
630
  ), (p, f) => {
631
- const v = L("FmSelect");
631
+ const v = U("FmSelect");
632
632
  return k(), Y("div", Oo, [
633
633
  F("div", $o, [
634
634
  F("div", Do, ae(m(a)("menu.catalog_scheduler.title")), 1),
@@ -670,7 +670,7 @@ const Po = {
670
670
  setup(e, { emit: n }) {
671
671
  const t = n;
672
672
  return (i, a) => {
673
- const o = L("fm-switch"), r = L("fm-card");
673
+ const o = U("fm-switch"), r = U("fm-card");
674
674
  return i.disabled ? Ve(i.$slots, "default", { key: 0 }, void 0, !0) : (k(), X(r, {
675
675
  key: 1,
676
676
  class: "p-16 space-y-24",
@@ -831,7 +831,7 @@ const ta = /* @__PURE__ */ bt(Qo, [["render", ea]]), na = { class: "flex flex-co
831
831
  return n({
832
832
  hideMenu: u
833
833
  }), (v, S) => {
834
- const g = L("FmIcon"), b = L("FmField"), A = L("FmMenuItem"), V = L("FmMenu"), B = L("FmFormGroup"), x = L("FmChipGroup");
834
+ const g = U("FmIcon"), b = U("FmField"), A = U("FmMenuItem"), V = U("FmMenu"), B = U("FmFormGroup"), x = U("FmChipGroup");
835
835
  return k(), Y("div", na, [
836
836
  h(B, {
837
837
  "model-value": v.modelValue,
@@ -962,7 +962,7 @@ function pn(e, n) {
962
962
  for (var t = 0, i = new Array(n); t < n; t++) i[t] = e[t];
963
963
  return i;
964
964
  }
965
- var Yn, la, $t, Oe = (Yn = function(e) {
965
+ var Yn, la, Ot, Oe = (Yn = function(e) {
966
966
  /*!
967
967
  Copyright (c) 2018 Jed Watson.
968
968
  Licensed under the MIT License (MIT), see
@@ -989,11 +989,11 @@ var Yn, la, $t, Oe = (Yn = function(e) {
989
989
  }
990
990
  e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
991
991
  })();
992
- }, Yn($t = { path: la, exports: {}, require: function(e, n) {
992
+ }, Yn(Ot = { path: la, exports: {}, require: function(e, n) {
993
993
  return function() {
994
994
  throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
995
- }(n == null && $t.path);
996
- } }, $t.exports), $t.exports), Qe = function(e) {
995
+ }(n == null && Ot.path);
996
+ } }, Ot.exports), Ot.exports), Qe = function(e) {
997
997
  return function(n, t) {
998
998
  if (!n) return e;
999
999
  var i;
@@ -1062,16 +1062,16 @@ function _t(e) {
1062
1062
  function De(e) {
1063
1063
  return e === void 0;
1064
1064
  }
1065
- function Bt(e) {
1065
+ function Nt(e) {
1066
1066
  return typeof e == "object" && e !== null;
1067
1067
  }
1068
1068
  function xn(e, n, t) {
1069
1069
  var i = {};
1070
- return Bt(e) ? (Object.keys(n).forEach(function(a) {
1071
- De(e[a]) ? i[a] = n[a] : Bt(n[a]) ? Bt(e[a]) ? i[a] = xn(e[a], n[a], t[a]) : i[a] = e[a] ? n[a] : t[a] : n[a] === !0 || n[a] === !1 ? i[a] = !!e[a] : i[a] = e[a];
1070
+ return Nt(e) ? (Object.keys(n).forEach(function(a) {
1071
+ De(e[a]) ? i[a] = n[a] : Nt(n[a]) ? Nt(e[a]) ? i[a] = xn(e[a], n[a], t[a]) : i[a] = e[a] ? n[a] : t[a] : n[a] === !0 || n[a] === !1 ? i[a] = !!e[a] : i[a] = e[a];
1072
1072
  }), i) : e ? n : t;
1073
1073
  }
1074
- function Dt(e) {
1074
+ function $t(e) {
1075
1075
  var n = Number(e);
1076
1076
  return Number.isNaN(n) ? e : n;
1077
1077
  }
@@ -1167,7 +1167,7 @@ var fn = Qe("vue-handler-wrapper"), xi = { name: "HandlerWrapper", components: {
1167
1167
  return { root: e, draggable: fn("draggable") };
1168
1168
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
1169
1169
  xi.render = function(e, n, t, i, a, o) {
1170
- var r = L("DraggableElement");
1170
+ var r = U("DraggableElement");
1171
1171
  return k(), X("div", { class: o.classes.root }, [h(r, { class: o.classes.draggable, onDrag: n[1] || (n[1] = function(l) {
1172
1172
  return e.$emit("drag", l);
1173
1173
  }), onDragEnd: n[2] || (n[2] = function(l) {
@@ -1185,7 +1185,7 @@ var da = Qe("vue-line-wrapper"), Ai = { name: "LineWrapper", components: { Dragg
1185
1185
  return da((We(e = {}, this.position, !0), We(e, "disabled", this.disabled), e));
1186
1186
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
1187
1187
  Ai.render = function(e, n, t, i, a, o) {
1188
- var r = L("DraggableElement");
1188
+ var r = U("DraggableElement");
1189
1189
  return k(), X(r, { class: o.classname, onDrag: n[1] || (n[1] = function(l) {
1190
1190
  return e.$emit("drag", l);
1191
1191
  }), onDragEnd: n[2] || (n[2] = function(l) {
@@ -1213,7 +1213,7 @@ function kt(e, n) {
1213
1213
  function Ee(e) {
1214
1214
  return { left: e.left + e.width / 2, top: e.top + e.height / 2 };
1215
1215
  }
1216
- function zt(e, n) {
1216
+ function Mt(e, n) {
1217
1217
  var t = { left: 0, top: 0, right: 0, bottom: 0 };
1218
1218
  return tt.forEach(function(i) {
1219
1219
  var a = n[i], o = ot(e)[i];
@@ -1246,7 +1246,7 @@ function Ct(e, n) {
1246
1246
  return Math.min(n.right !== void 0 && n.left !== void 0 ? (n.right - n.left) / e.width : 1 / 0, n.bottom !== void 0 && n.top !== void 0 ? (n.bottom - n.top) / e.height : 1 / 0);
1247
1247
  }
1248
1248
  function St(e, n) {
1249
- var t = { left: 0, top: 0 }, i = zt(e, n);
1249
+ var t = { left: 0, top: 0 }, i = Mt(e, n);
1250
1250
  return i.left && i.left > 0 ? t.left = i.left : i.right && i.right > 0 && (t.left = -i.right), i.top && i.top > 0 ? t.top = i.top : i.bottom && i.bottom > 0 && (t.top = -i.bottom), t;
1251
1251
  }
1252
1252
  function hn(e, n) {
@@ -1266,7 +1266,7 @@ function dt(e, n) {
1266
1266
  return { left: e.left * Math.cos(t) - e.top * Math.sin(t), top: e.left * Math.sin(t) + e.top * Math.cos(t) };
1267
1267
  }
1268
1268
  function rn(e, n) {
1269
- var t = zt(Ue(e, n), n);
1269
+ var t = Mt(Ue(e, n), n);
1270
1270
  return t.left + t.right + t.top + t.bottom ? t.left + t.right > t.top + t.bottom ? Math.min((e.width + t.left + t.right) / e.width, Ct(e, n)) : Math.min((e.height + t.top + t.bottom) / e.height, Ct(e, n)) : 1;
1271
1271
  }
1272
1272
  function Ue(e, n, t) {
@@ -1376,13 +1376,13 @@ function Ca(e) {
1376
1376
  function Sa(e) {
1377
1377
  var n = e.getAreaRestrictions, t = e.coordinates, i = e.imageSize, a = be(e.boundaries);
1378
1378
  if (t) {
1379
- var o = { height: Math.max(t.height, i.height), width: Math.max(t.width, i.width) }, r = Vi({ width: be(o) > a ? o.width : o.height * a, height: be(o) > a ? o.width / a : o.height }, An(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 = zt(t, ot(re({ left: 0, top: 0 }, i))), u = {};
1379
+ var o = { height: Math.max(t.height, i.height), width: Math.max(t.width, i.width) }, r = Vi({ width: be(o) > a ? o.width : o.height * a, height: be(o) > a ? o.width / a : o.height }, An(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 = Mt(t, ot(re({ left: 0, top: 0 }, i))), u = {};
1380
1380
  return !s.left && !s.right && l.width <= i.width && (u.left = 0, u.right = i.width), !s.top && !s.bottom && l.height <= i.height && (u.top = 0, u.bottom = i.height), Ue(l, u);
1381
1381
  }
1382
1382
  var d = be(i);
1383
1383
  return r = { height: d > a ? i.height : i.width / a, width: d > a ? i.height * a : i.width }, { left: i.width / 2 - r.width / 2, top: i.height / 2 - r.height / 2, width: r.width, height: r.height };
1384
1384
  }
1385
- function Et(e, n) {
1385
+ function Dt(e, n) {
1386
1386
  return Fi(e, ot(n));
1387
1387
  }
1388
1388
  function xa(e) {
@@ -1408,8 +1408,8 @@ function Va(e) {
1408
1408
  function ti(e) {
1409
1409
  var n = e.directions, t = e.coordinates, i = e.positionRestrictions, a = i === void 0 ? {} : i, o = e.sizeRestrictions, r = e.preserveRatio, l = e.compensate, s = re({}, n), u = et(t, s).width, d = et(t, s).height;
1410
1410
  u < 0 && (s.left < 0 && s.right < 0 ? (s.left = -(t.width - o.minWidth) / (s.left / s.right), s.right = -(t.width - o.minWidth) / (s.right / s.left)) : s.left < 0 ? s.left = -(t.width - o.minWidth) : s.right < 0 && (s.right = -(t.width - o.minWidth))), d < 0 && (s.top < 0 && s.bottom < 0 ? (s.top = -(t.height - o.minHeight) / (s.top / s.bottom), s.bottom = -(t.height - o.minHeight) / (s.bottom / s.top)) : s.top < 0 ? s.top = -(t.height - o.minHeight) : s.bottom < 0 && (s.bottom = -(t.height - o.minHeight)));
1411
- var c = zt(et(t, s), a);
1412
- 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 = zt(et(t, s), a));
1411
+ var c = Mt(et(t, s), a);
1412
+ 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 = Mt(et(t, s), a));
1413
1413
  var p = { width: 1 / 0, height: 1 / 0, left: 1 / 0, right: 1 / 0, top: 1 / 0, bottom: 1 / 0 };
1414
1414
  if (tt.forEach(function(S) {
1415
1415
  var g = c[S];
@@ -1436,7 +1436,7 @@ function ti(e) {
1436
1436
  });
1437
1437
  return s;
1438
1438
  }
1439
- function Ut(e, n, t) {
1439
+ function Et(e, n, t) {
1440
1440
  return n == 0 && t == 0 ? e / 2 : n == 0 ? 0 : t == 0 ? e : e * Math.abs(n / (n + t));
1441
1441
  }
1442
1442
  var Ta = Qe("vue-simple-handler"), Fa = Qe("vue-simple-handler-wrapper"), On = { name: "SimpleHandler", components: { HandlerWrapper: xi }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
@@ -1454,7 +1454,7 @@ var Ta = Qe("vue-simple-handler"), Fa = Qe("vue-simple-handler-wrapper"), On = {
1454
1454
  this.$emit("drag-end");
1455
1455
  } }, emits: ["drag", "drag-end"] };
1456
1456
  On.render = function(e, n, t, i, a, o) {
1457
- var r = L("HandlerWrapper");
1457
+ var r = U("HandlerWrapper");
1458
1458
  return k(), X(r, { class: o.classes.wrapper, "vertical-position": t.verticalPosition, "horizontal-position": t.horizontalPosition, disabled: t.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: P(function() {
1459
1459
  return [h("div", { class: o.classes.default }, null, 2)];
1460
1460
  }), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
@@ -1473,7 +1473,7 @@ var Ma = Qe("vue-simple-line"), za = Qe("vue-simple-line-wrapper"), $n = { name:
1473
1473
  this.$emit("drag-end");
1474
1474
  } }, emits: ["drag", "drag-end"] };
1475
1475
  $n.render = function(e, n, t, i, a, o) {
1476
- var r = L("LineWrapper");
1476
+ var r = U("LineWrapper");
1477
1477
  return k(), X(r, { class: o.classes.wrapper, position: t.position, disabled: t.disabled, onDrag: o.onDrag, onDragEnd: o.onDragEnd, onEnter: o.onEnter, onLeave: o.onLeave }, { default: P(function() {
1478
1478
  return [h("div", { class: o.classes.root }, null, 2)];
1479
1479
  }), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
@@ -1541,13 +1541,13 @@ var vn = Qe("vue-bounding-box"), Ia = ["east", "west", null], Pa = ["south", "no
1541
1541
  } }, emits: ["resize", "resize-end"] };
1542
1542
  Mi.render = function(e, n, t, i, a, o) {
1543
1543
  return k(), X("div", { ref: "box", class: o.classes.root, style: o.style }, [Ve(e.$slots, "default"), h("div", null, [(k(!0), X(ve, null, Re(o.lineNodes, function(r) {
1544
- return k(), X(jt(r.component), { key: r.name, "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, position: r.name, disabled: r.disabled, onDrag: function(l) {
1544
+ return k(), X(Bt(r.component), { key: r.name, "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, position: r.name, disabled: r.disabled, onDrag: function(l) {
1545
1545
  return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
1546
1546
  }, onDragEnd: n[1] || (n[1] = function(l) {
1547
1547
  return o.onEnd();
1548
1548
  }) }, null, 8, ["default-class", "hover-class", "wrapper-class", "position", "disabled", "onDrag"]);
1549
1549
  }), 128))]), (k(!0), X(ve, null, Re(o.handlerNodes, function(r) {
1550
- return k(), X("div", { key: r.name, style: r.wrapperStyle, class: r.wrapperClass }, [(k(), X(jt(r.component), { "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, "horizontal-position": r.horizontalDirection, "vertical-position": r.verticalDirection, disabled: r.disabled, onDrag: function(l) {
1550
+ return k(), X("div", { key: r.name, style: r.wrapperStyle, class: r.wrapperClass }, [(k(), X(Bt(r.component), { "default-class": r.class, "hover-class": r.hoverClass, "wrapper-class": r.wrapperClass, "horizontal-position": r.horizontalDirection, "vertical-position": r.verticalDirection, disabled: r.disabled, onDrag: function(l) {
1551
1551
  return o.onHandlerDrag(l, r.horizontalDirection, r.verticalDirection);
1552
1552
  }, onDragEnd: n[2] || (n[2] = function(l) {
1553
1553
  return o.onEnd();
@@ -1747,7 +1747,7 @@ Pi.render = function(e, n, t, i, a, o) {
1747
1747
  };
1748
1748
  var Tn = { components: { TransformableImage: Pi }, props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 } }, emits: ["resize", "move"] };
1749
1749
  Tn.render = function(e, n, t, i, a, o) {
1750
- var r = L("transformable-image");
1750
+ var r = U("transformable-image");
1751
1751
  return k(), X(r, { "touch-move": t.touchMove, "touch-resize": t.touchResize, "mouse-move": t.mouseMove, "wheel-resize": t.wheelResize, onMove: n[1] || (n[1] = function(l) {
1752
1752
  return e.$emit("move", l);
1753
1753
  }), onResize: n[2] || (n[2] = function(l) {
@@ -1756,12 +1756,12 @@ Tn.render = function(e, n, t, i, a, o) {
1756
1756
  return [Ve(e.$slots, "default")];
1757
1757
  }), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
1758
1758
  };
1759
- var Lt = Qe("vue-preview"), Ri = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
1759
+ var Ut = Qe("vue-preview"), Ri = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
1760
1760
  return {};
1761
1761
  } }, imageClass: { type: String }, width: { type: Number }, height: { type: Number }, fill: { type: Boolean } }, data: function() {
1762
1762
  return { calculatedImageSize: { width: 0, height: 0 }, calculatedSize: { width: 0, height: 0 } };
1763
1763
  }, computed: { classes: function() {
1764
- return { root: Lt({ fill: this.fill }), wrapper: Lt("wrapper"), imageWrapper: Lt("image-wrapper"), image: Oe(Lt("image"), this.imageClass) };
1764
+ return { root: Ut({ fill: this.fill }), wrapper: Ut("wrapper"), imageWrapper: Ut("image-wrapper"), image: Oe(Ut("image"), this.imageClass) };
1765
1765
  }, style: function() {
1766
1766
  if (this.fill) return {};
1767
1767
  var e = {};
@@ -1804,7 +1804,7 @@ Ri.render = function(e, n, t, i, a, o) {
1804
1804
  };
1805
1805
  var Oi = { components: { Preview: Ri }, inheritAttrs: !1 };
1806
1806
  Oi.render = function(e, n, t, i, a, o) {
1807
- var r = L("preview");
1807
+ var r = U("preview");
1808
1808
  return k(), X(r, ri(e.$attrs, { fill: !0 }), null, 16);
1809
1809
  };
1810
1810
  var bn = Qe("vue-rectangle-stencil"), $i = { name: "RectangleStencil", components: { StencilPreview: Oi, BoundingBox: Mi, DraggableArea: zi }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
@@ -1838,7 +1838,7 @@ var bn = Qe("vue-rectangle-stencil"), $i = { name: "RectangleStencil", component
1838
1838
  return { minimum: this.aspectRatio || this.minAspectRatio, maximum: this.aspectRatio || this.maxAspectRatio };
1839
1839
  } }, emits: ["resize", "resize-end", "move", "move-end"] };
1840
1840
  $i.render = function(e, n, t, i, a, o) {
1841
- var r = L("stencil-preview"), l = L("draggable-area"), s = L("bounding-box");
1841
+ var r = U("stencil-preview"), l = U("draggable-area"), s = U("bounding-box");
1842
1842
  return k(), X("div", { class: o.classes.stencil, style: o.style }, [h(s, { width: t.stencilCoordinates.width, height: t.stencilCoordinates.height, transitions: t.transitions, class: o.classes.boundingBox, handlers: t.handlers, "handlers-component": t.handlersComponent, "handlers-classes": t.handlersClasses, "handlers-wrappers-classes": t.handlersWrappersClasses, lines: t.lines, "lines-component": t.linesComponent, "lines-classes": t.linesClasses, "lines-wrappers-classes": t.linesWrappersClasses, resizable: t.resizable, onResize: o.onResize, onResizeEnd: o.onResizeEnd }, { default: P(function() {
1843
1843
  return [h(l, { movable: t.movable, onMove: o.onMove, onMoveEnd: o.onMoveEnd }, { default: P(function() {
1844
1844
  return [h(r, { image: t.image, coordinates: t.coordinates, width: t.stencilCoordinates.width, height: t.stencilCoordinates.height, class: o.classes.preview, transitions: t.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
@@ -1867,13 +1867,13 @@ var Da = ["transitions"], at = Qe("vue-advanced-cropper"), Di = { name: "Cropper
1867
1867
  var v = d / p - r.height;
1868
1868
  if (u.top && u.bottom) {
1869
1869
  var S = s.top, g = s.bottom;
1870
- s.bottom = Ut(v, g, S), s.top = Ut(v, S, g);
1870
+ s.bottom = Et(v, g, S), s.top = Et(v, S, g);
1871
1871
  } else u.bottom ? s.bottom = v : u.top ? s.top = v : u.right ? s.right = 0 : u.left && (s.left = 0);
1872
1872
  } else if (f === "height") {
1873
1873
  var b = r.width - c * p;
1874
1874
  if (u.left && u.right) {
1875
1875
  var A = s.left, V = s.right;
1876
- s.left = -Ut(b, A, V), s.right = -Ut(b, V, A);
1876
+ s.left = -Et(b, A, V), s.right = -Et(b, V, A);
1877
1877
  } else u.left ? s.left = -b : u.right ? s.right = -b : u.top ? s.top = 0 : u.bottom && (s.bottom = 0);
1878
1878
  }
1879
1879
  s = ti({ directions: s, coordinates: r, sizeRestrictions: o, positionRestrictions: a, preserveRatio: !0, compensate: l.compensate });
@@ -1924,7 +1924,7 @@ var Da = ["transitions"], at = Qe("vue-advanced-cropper"), Di = { name: "Cropper
1924
1924
  return { enabled: this.transitionsActive, timingFunction: "ease-in-out", time: 350 };
1925
1925
  }, sizeRestrictions: function() {
1926
1926
  if (this.boundaries.width && this.boundaries.height && this.imageSize.width && this.imageSize.height) {
1927
- var e = this.sizeRestrictionsAlgorithm({ imageSize: this.imageSize, minWidth: De(this.minWidth) ? 0 : Dt(this.minWidth), minHeight: De(this.minHeight) ? 0 : Dt(this.minHeight), maxWidth: De(this.maxWidth) ? 1 / 0 : Dt(this.maxWidth), maxHeight: De(this.maxHeight) ? 1 / 0 : Dt(this.maxHeight) });
1927
+ var e = this.sizeRestrictionsAlgorithm({ imageSize: this.imageSize, minWidth: De(this.minWidth) ? 0 : $t(this.minWidth), minHeight: De(this.minHeight) ? 0 : $t(this.minHeight), maxWidth: De(this.maxWidth) ? 1 / 0 : $t(this.maxWidth), maxHeight: De(this.maxHeight) ? 1 / 0 : $t(this.maxHeight) });
1928
1928
  if (e = function(i) {
1929
1929
  var a = i.areaRestrictions, o = i.sizeRestrictions, r = i.boundaries, l = i.positionRestrictions, s = re(re({}, o), { minWidth: o.minWidth !== void 0 ? o.minWidth : 0, minHeight: o.minHeight !== void 0 ? o.minHeight : 0, maxWidth: o.maxWidth !== void 0 ? o.maxWidth : 1 / 0, maxHeight: o.maxHeight !== void 0 ? o.maxHeight : 1 / 0 });
1930
1930
  l.left !== void 0 && l.right !== void 0 && (s.maxWidth = Math.min(s.maxWidth, l.right - l.left)), l.bottom !== void 0 && l.top !== void 0 && (s.maxHeight = Math.min(s.maxHeight, l.bottom - l.top));
@@ -2021,7 +2021,7 @@ var Da = ["transitions"], at = Qe("vue-advanced-cropper"), Di = { name: "Cropper
2021
2021
  return this.roundResult ? function(n) {
2022
2022
  var t = n.coordinates, i = n.sizeRestrictions, a = n.positionRestrictions, o = { width: Math.round(t.width), height: Math.round(t.height), left: Math.round(t.left), top: Math.round(t.top) };
2023
2023
  return o.width > i.maxWidth ? o.width = Math.floor(t.width) : o.width < i.minWidth && (o.width = Math.ceil(t.width)), o.height > i.maxHeight ? o.height = Math.floor(t.height) : o.height < i.minHeight && (o.height = Math.ceil(t.height)), Ue(o, a);
2024
- }(ge(ge({}, this.getPublicProperties()), {}, { positionRestrictions: Et(this.positionRestrictions, this.visibleArea), coordinates: e })) : e;
2024
+ }(ge(ge({}, this.getPublicProperties()), {}, { positionRestrictions: Dt(this.positionRestrictions, this.visibleArea), coordinates: e })) : e;
2025
2025
  }, processAutoZoom: function(e, n, t, i) {
2026
2026
  var a = this.autoZoomAlgorithm;
2027
2027
  a || (a = this.stencilSize ? ba : this.autoZoom ? ya : _a);
@@ -2076,7 +2076,7 @@ var Da = ["transitions"], at = Qe("vue-advanced-cropper"), Di = { name: "Cropper
2076
2076
  }, update: function() {
2077
2077
  this.$emit("change", this.getResult());
2078
2078
  }, applyTransform: function(e) {
2079
- var n = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], t = this.visibleArea && n ? va(this.sizeRestrictions, this.visibleArea) : this.sizeRestrictions, i = this.visibleArea && n ? Et(this.positionRestrictions, this.visibleArea) : this.positionRestrictions;
2079
+ var n = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], t = this.visibleArea && n ? va(this.sizeRestrictions, this.visibleArea) : this.sizeRestrictions, i = this.visibleArea && n ? Dt(this.positionRestrictions, this.visibleArea) : this.positionRestrictions;
2080
2080
  return ga({ transform: e, coordinates: this.coordinates, imageSize: this.imageSize, sizeRestrictions: t, positionRestrictions: i, aspectRatio: this.getAspectRatio(), visibleArea: this.visibleArea });
2081
2081
  }, resetCoordinates: function() {
2082
2082
  var e = this;
@@ -2177,7 +2177,7 @@ var Da = ["transitions"], at = Qe("vue-advanced-cropper"), Di = { name: "Cropper
2177
2177
  r.push(String.fromCharCode.apply(null, Array.from ? Array.from(s) : s.slice())), l = l.subarray(8192);
2178
2178
  }
2179
2179
  return "data:image/jpeg;base64," + btoa(r.join(""));
2180
- }(i) : this.imageAttributes.src = t, _t(this.defaultTransforms) ? this.appliedImageTransforms = gn(this.defaultTransforms()) : Bt(this.defaultTransforms) ? this.appliedImageTransforms = gn(this.defaultTransforms) : this.appliedImageTransforms = function(o) {
2180
+ }(i) : this.imageAttributes.src = t, _t(this.defaultTransforms) ? this.appliedImageTransforms = gn(this.defaultTransforms()) : Nt(this.defaultTransforms) ? this.appliedImageTransforms = gn(this.defaultTransforms) : this.appliedImageTransforms = function(o) {
2181
2181
  var r = gn({});
2182
2182
  if (o) switch (o) {
2183
2183
  case 2:
@@ -2215,13 +2215,13 @@ var Da = ["transitions"], at = Qe("vue-advanced-cropper"), Di = { name: "Cropper
2215
2215
  }, onMove: function(e) {
2216
2216
  var n = this;
2217
2217
  this.transitionsOptions.enabled || this.awaitRender(function() {
2218
- n.coordinates = n.moveAlgorithm(ge(ge({}, n.getPublicProperties()), {}, { positionRestrictions: Et(n.positionRestrictions, n.visibleArea), coordinates: n.coordinates, event: n.normalizeEvent(e) })), n.onChange();
2218
+ n.coordinates = n.moveAlgorithm(ge(ge({}, n.getPublicProperties()), {}, { positionRestrictions: Dt(n.positionRestrictions, n.visibleArea), coordinates: n.coordinates, event: n.normalizeEvent(e) })), n.onChange();
2219
2219
  });
2220
2220
  }, onResize: function(e) {
2221
2221
  var n = this;
2222
2222
  this.transitionsOptions.enabled || this.stencilSize && !this.autoZoom || this.awaitRender(function() {
2223
2223
  var t = n.sizeRestrictions, i = Math.min(n.coordinates.width, n.coordinates.height, 20 * n.coefficient);
2224
- n.coordinates = n.resizeAlgorithm(ge(ge({}, n.getPublicProperties()), {}, { positionRestrictions: Et(n.positionRestrictions, n.visibleArea), sizeRestrictions: { maxWidth: Math.min(t.maxWidth, n.visibleArea.width), maxHeight: Math.min(t.maxHeight, n.visibleArea.height), minWidth: Math.max(t.minWidth, i), minHeight: Math.max(t.minHeight, i) }, event: n.normalizeEvent(e) })), n.onChange(), n.ticking = !1;
2224
+ n.coordinates = n.resizeAlgorithm(ge(ge({}, n.getPublicProperties()), {}, { positionRestrictions: Dt(n.positionRestrictions, n.visibleArea), sizeRestrictions: { maxWidth: Math.min(t.maxWidth, n.visibleArea.width), maxHeight: Math.min(t.maxHeight, n.visibleArea.height), minWidth: Math.max(t.minWidth, i), minHeight: Math.max(t.minHeight, i) }, event: n.normalizeEvent(e) })), n.onChange(), n.ticking = !1;
2225
2225
  });
2226
2226
  }, onManipulateImage: function(e) {
2227
2227
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -2272,9 +2272,9 @@ var Da = ["transitions"], at = Qe("vue-advanced-cropper"), Di = { name: "Cropper
2272
2272
  }
2273
2273
  } }, emits: ["change", "error", "ready"] }, Ea = { key: 0, ref: "canvas", style: { display: "none" } }, Ua = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
2274
2274
  Di.render = function(e, n, t, i, a, o) {
2275
- return k(), X("div", { ref: "cropper", class: o.classes.cropper }, [h("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), h("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(k(), X(jt(t.backgroundWrapperComponent), { class: o.classes.cropperWrapper, "wheel-resize": o.settings.resizeImage.wheel, "touch-resize": o.settings.resizeImage.touch, "touch-move": o.settings.moveImage.touch, "mouse-move": o.settings.moveImage.mouse, onMove: o.onManipulateImage, onResize: o.onManipulateImage }, { default: P(function() {
2276
- return [h("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), h("div", { class: o.classes.imageWrapper }, [h("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: n[1] || (n[1] = It(function() {
2277
- }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), h("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), ut((k(), X(jt(t.stencilComponent), ri({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, t.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[Jt, a.imageLoaded]]), t.canvas ? (k(), X("canvas", Ea, null, 512)) : ne("", !0), t.canvas ? (k(), X("canvas", Ua, null, 512)) : ne("", !0)];
2275
+ return k(), X("div", { ref: "cropper", class: o.classes.cropper }, [h("div", { ref: "stretcher", class: o.classes.stretcher }, null, 2), h("div", { class: o.classes.boundaries, style: o.boundariesStyle }, [(k(), X(Bt(t.backgroundWrapperComponent), { class: o.classes.cropperWrapper, "wheel-resize": o.settings.resizeImage.wheel, "touch-resize": o.settings.resizeImage.touch, "touch-move": o.settings.moveImage.touch, "mouse-move": o.settings.moveImage.mouse, onMove: o.onManipulateImage, onResize: o.onManipulateImage }, { default: P(function() {
2276
+ return [h("div", { class: o.classes.background, style: o.boundariesStyle }, null, 6), h("div", { class: o.classes.imageWrapper }, [h("img", { ref: "image", crossorigin: a.imageAttributes.crossOrigin, src: a.imageAttributes.src, class: o.classes.image, style: o.imageStyle, onMousedown: n[1] || (n[1] = zt(function() {
2277
+ }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), h("div", { class: o.classes.foreground, style: o.boundariesStyle }, null, 6), ut((k(), X(Bt(t.stencilComponent), ri({ ref: "stencil", image: o.image, coordinates: a.coordinates, "stencil-coordinates": o.stencilCoordinates, transitions: o.transitionsOptions }, t.stencilProps, { onResize: o.onResize, onResizeEnd: o.onResizeEnd, onMove: o.onMove, onMoveEnd: o.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[Jt, a.imageLoaded]]), t.canvas ? (k(), X("canvas", Ea, null, 512)) : ne("", !0), t.canvas ? (k(), X("canvas", Ua, null, 512)) : ne("", !0)];
2278
2278
  }), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
2279
2279
  };
2280
2280
  function Dn(e, n) {
@@ -2367,10 +2367,10 @@ const Ba = {
2367
2367
  });
2368
2368
  }
2369
2369
  return (g, b) => {
2370
- const A = L("fm-icon"), V = L("fm-drop-field");
2370
+ const A = U("fm-icon"), V = U("fm-drop-field");
2371
2371
  return r.value || o.value ? (k(), Y("div", Ba, [
2372
2372
  F("p", ja, [
2373
- Ft(ae(g.title) + " ", 1),
2373
+ jt(ae(g.title) + " ", 1),
2374
2374
  F("span", Ga, ae(m(i)("menu.common.labels.optional")), 1)
2375
2375
  ]),
2376
2376
  F("div", Ka, [
@@ -2426,7 +2426,7 @@ const Ba = {
2426
2426
  }, {
2427
2427
  label: P(() => [
2428
2428
  F("p", qa, [
2429
- Ft(ae(g.title) + " ", 1),
2429
+ jt(ae(g.title) + " ", 1),
2430
2430
  F("span", Xa, ae(m(i)("menu.common.labels.optional")), 1)
2431
2431
  ])
2432
2432
  ]),
@@ -2514,7 +2514,7 @@ const Ba = {
2514
2514
  return c ? l(c) : null;
2515
2515
  });
2516
2516
  return (u, d) => {
2517
- const c = L("fm-select");
2517
+ const c = U("fm-select");
2518
2518
  return k(), Y("div", null, [
2519
2519
  h(c, {
2520
2520
  disabled: e.disable,
@@ -2575,7 +2575,7 @@ const Ba = {
2575
2575
  },
2576
2576
  { immediate: !0 }
2577
2577
  ), (A, V) => {
2578
- const B = L("FmIcon"), x = L("FmField"), C = L("FmMenuItem"), _ = L("FmMenu"), R = L("FmFormGroup"), I = L("FmChipGroup");
2578
+ const B = U("FmIcon"), x = U("FmField"), C = U("FmMenuItem"), _ = U("FmMenu"), R = U("FmFormGroup"), I = U("FmChipGroup");
2579
2579
  return k(), Y("div", Qa, [
2580
2580
  h(R, {
2581
2581
  "model-value": A.modelValue,
@@ -2744,7 +2744,7 @@ const Ba = {
2744
2744
  p.value = !p.value;
2745
2745
  }
2746
2746
  return (_, R) => {
2747
- const I = L("FmIcon"), D = L("fm-button"), O = L("fm-dialog");
2747
+ const I = U("FmIcon"), D = U("fm-button"), O = U("fm-dialog");
2748
2748
  return k(), X(O, {
2749
2749
  modelValue: B.value,
2750
2750
  "onUpdate:modelValue": R[2] || (R[2] = (y) => B.value = y),
@@ -2818,7 +2818,7 @@ const Ba = {
2818
2818
  name: p.value ? "keyboard_arrow_down" : "keyboard_arrow_right"
2819
2819
  }, null, 8, ["name"]),
2820
2820
  F("p", dr, [
2821
- Ft(ae(m(a)("menu.product.translation.description")) + " ", 1),
2821
+ jt(ae(m(a)("menu.product.translation.description")) + " ", 1),
2822
2822
  F("span", mr, ae(m(a)("menu.product.translation.optional")), 1)
2823
2823
  ])
2824
2824
  ]),
@@ -2920,7 +2920,7 @@ const gr = {
2920
2920
  outline: !0,
2921
2921
  variant: "tertiary",
2922
2922
  textColor: "neutral-gray-400",
2923
- onClick: It(async () => {
2923
+ onClick: zt(async () => {
2924
2924
  await _(N);
2925
2925
  }, ["stop", "prevent"])
2926
2926
  })]);
@@ -3022,7 +3022,7 @@ const gr = {
3022
3022
  trigger: S,
3023
3023
  show: c
3024
3024
  }), (E, N) => {
3025
- const ee = L("fm-button"), Z = L("FmTooltip"), de = L("FmTextField"), se = L("FmButton"), w = L("FmSearch"), z = L("FmTable"), G = L("fm-side-sheet");
3025
+ const ee = U("fm-button"), Z = U("FmTooltip"), de = U("FmTextField"), se = U("FmButton"), w = U("FmSearch"), z = U("FmTable"), G = U("fm-side-sheet");
3026
3026
  return k(), Y(ve, null, [Ve(E.$slots, "default", {
3027
3027
  trigger: S
3028
3028
  }), h(G, {
@@ -3181,7 +3181,7 @@ const gr = {
3181
3181
  p(), l("primary");
3182
3182
  }
3183
3183
  return (v, S) => {
3184
- const g = L("fm-button"), b = L("fm-text-field"), A = L("FmForm");
3184
+ const g = U("fm-button"), b = U("fm-text-field"), A = U("FmForm");
3185
3185
  return k(), Y(ve, null, [
3186
3186
  h(A, { onValidationSuccess: f }, {
3187
3187
  default: P(() => [
@@ -3384,17 +3384,17 @@ const Kr = /* @__PURE__ */ pe({
3384
3384
  }), {
3385
3385
  checkMenuIsLoading: d
3386
3386
  } = it(nt(qe())), c = n, p = T(() => i.rules.item), f = T(() => i.categorizedItems), v = T(() => {
3387
- const U = f.value.map((K) => ({
3387
+ const L = f.value.map((K) => ({
3388
3388
  label: K.name,
3389
3389
  value: K.id
3390
3390
  }));
3391
- return t.isAddon ? U : U.filter((K) => !!K.value);
3392
- }), S = T(() => p.value.addon), g = T(() => !v.value.find((U) => !!U.value)), b = T(() => no(t.form.category ? t.form : t.fallback) || []), A = T(() => b.value.reduce((U, K) => (U[K._id] = K, U), {})), V = T({
3391
+ return t.isAddon ? L : L.filter((K) => !!K.value);
3392
+ }), S = T(() => p.value.addon), g = T(() => !v.value.find((L) => !!L.value)), b = T(() => no(t.form.category ? t.form : t.fallback) || []), A = T(() => b.value.reduce((L, K) => (L[K._id] = K, L), {})), V = T({
3393
3393
  get() {
3394
- return b.value.map((U) => U._id);
3394
+ return b.value.map((L) => L._id);
3395
3395
  },
3396
- set(U = []) {
3397
- const [K, ...oe] = U.map((ke) => {
3396
+ set(L = []) {
3397
+ const [K, ...oe] = L.map((ke) => {
3398
3398
  const Ce = A.value[ke];
3399
3399
  return Ce || {
3400
3400
  _id: ke,
@@ -3408,7 +3408,7 @@ const Kr = /* @__PURE__ */ pe({
3408
3408
  c("update:form", "category", K._id), c("update:form", "additionalCategories", oe);
3409
3409
  }
3410
3410
  }), B = H(), x = ({
3411
- multiple: U = !0
3411
+ multiple: L = !0
3412
3412
  } = {}) => t.isAddon ? null : h(ra, {
3413
3413
  ref: B,
3414
3414
  disabled: !p.value.category || t.isAddon || d(),
@@ -3416,7 +3416,7 @@ const Kr = /* @__PURE__ */ pe({
3416
3416
  modelValue: V.value,
3417
3417
  "onUpdate:model-value": (K) => V.value = K,
3418
3418
  placeholder: N("menu.product.form.detail.category.placeholder"),
3419
- multiple: U
3419
+ multiple: L
3420
3420
  }, {
3421
3421
  "append-menu": () => h("button", {
3422
3422
  class: "flex items-center py-8 px-16 space-x-8",
@@ -3438,38 +3438,38 @@ const Kr = /* @__PURE__ */ pe({
3438
3438
  });
3439
3439
  const C = T(() => {
3440
3440
  var K;
3441
- const U = t.form.name || ((K = t.fallback) == null ? void 0 : K.name);
3442
- return U ? i.items.filter((oe) => !!oe.category && oe._id !== t.form._id && oe.name === U).length : 0;
3441
+ const L = t.form.name || ((K = t.fallback) == null ? void 0 : K.name);
3442
+ return L ? i.items.filter((oe) => !!oe.category && oe._id !== t.form._id && oe.name === L).length : 0;
3443
3443
  }), _ = T(() => {
3444
3444
  var K;
3445
- const U = t.form.name2 || ((K = t.fallback) == null ? void 0 : K.name2);
3446
- return U ? i.items.filter((oe) => !!oe.category && oe._id !== t.form._id && oe.name2 === U).length : 0;
3445
+ const L = t.form.name2 || ((K = t.fallback) == null ? void 0 : K.name2);
3446
+ return L ? i.items.filter((oe) => !!oe.category && oe._id !== t.form._id && oe.name2 === L).length : 0;
3447
3447
  }), R = T(() => {
3448
3448
  var ke, Ce, we;
3449
3449
  if (!i.state.featureFlags.uniqueProductCode) return 0;
3450
- const U = t.form.code || ((ke = t.fallback) == null ? void 0 : ke.code);
3451
- if (!U) return 0;
3452
- let K = i.itemCodeMap.get(U) || 0;
3450
+ const L = t.form.code || ((ke = t.fallback) == null ? void 0 : ke.code);
3451
+ if (!L) return 0;
3452
+ let K = i.itemCodeMap.get(L) || 0;
3453
3453
  const oe = i.items.find((me) => me._id === t.form._id);
3454
- return (oe == null ? void 0 : oe.code) === U && (K -= 1), (we = (Ce = oe == null ? void 0 : oe.variant) == null ? void 0 : Ce.variantCombinations) == null || we.forEach((me) => {
3455
- me.code === U && (K -= 1);
3454
+ return (oe == null ? void 0 : oe.code) === L && (K -= 1), (we = (Ce = oe == null ? void 0 : oe.variant) == null ? void 0 : Ce.variantCombinations) == null || we.forEach((me) => {
3455
+ me.code === L && (K -= 1);
3456
3456
  }), K;
3457
3457
  }), I = T(() => t.isAddon ? vt.ADD_ON : vt.PRODUCT);
3458
- function D(U) {
3458
+ function D(L) {
3459
3459
  var oe, ke, Ce;
3460
- if (I.value === U) return;
3461
- const K = U == vt.ADD_ON;
3460
+ if (I.value === L) return;
3461
+ const K = L == vt.ADD_ON;
3462
3462
  c("update:form", "category", t.isOverride ? K ? "" : ((oe = t.fallback) == null ? void 0 : oe.category) ?? ((ke = v.value.find((we) => !!we.value)) == null ? void 0 : ke.value) : K ? null : (Ce = v.value.find((we) => !!we.value)) == null ? void 0 : Ce.value), K && (c("update:form", "additionalCategories", []), c("update:form", "subCategories", []));
3463
3463
  }
3464
3464
  const O = tn();
3465
- Dn("apply-description", (U) => {
3466
- c("update:form", "description", U || "");
3465
+ Dn("apply-description", (L) => {
3466
+ c("update:form", "description", L || "");
3467
3467
  });
3468
3468
  async function y() {
3469
3469
  if (!t.form.name) {
3470
- const U = document.getElementById("product-name");
3471
- if (U) {
3472
- U.focus();
3470
+ const L = document.getElementById("product-name");
3471
+ if (L) {
3472
+ L.focus();
3473
3473
  return;
3474
3474
  } else
3475
3475
  return;
@@ -3481,50 +3481,50 @@ const Kr = /* @__PURE__ */ pe({
3481
3481
  command: "suggestDescription"
3482
3482
  });
3483
3483
  }
3484
- const M = T(() => i.subcategories), $ = T(() => M.value.map((U) => ({
3485
- label: U.name,
3486
- value: U._id
3484
+ const M = T(() => i.subcategories), $ = T(() => M.value.map((L) => ({
3485
+ label: L.name,
3486
+ value: L._id
3487
3487
  }))), j = T({
3488
3488
  get() {
3489
3489
  return t.form.subCategories || [];
3490
3490
  },
3491
- set(U) {
3492
- c("update:form", "subCategories", U);
3491
+ set(L) {
3492
+ c("update:form", "subCategories", L);
3493
3493
  }
3494
3494
  }), Q = T(() => t.isOverride ? t.form.minimumOrderQuantity ?? null : t.form.minimumOrderQuantity ?? 0);
3495
- function E(U) {
3496
- c("update:form", "minimumOrderQuantity", t.isOverride ? U : U ?? 0);
3495
+ function E(L) {
3496
+ c("update:form", "minimumOrderQuantity", t.isOverride ? L : L ?? 0);
3497
3497
  }
3498
3498
  const {
3499
3499
  t: N
3500
3500
  } = fe(), ee = H(!1), Z = H("name"), de = T(() => {
3501
3501
  var Ce, we;
3502
- const U = [], K = "en-US", oe = t.form.name_locale, ke = oe == null ? void 0 : oe[K];
3503
- return (t.form.name || (Ce = t.fallback) != null && Ce.name) && !ke && U.push({
3502
+ const L = [], K = "en-US", oe = t.form.name_locale, ke = oe == null ? void 0 : oe[K];
3503
+ return (t.form.name || (Ce = t.fallback) != null && Ce.name) && !ke && L.push({
3504
3504
  locale: K,
3505
3505
  name: t.form.name || ((we = t.fallback) == null ? void 0 : we.name) || "",
3506
3506
  localeDisplay: mt(K)
3507
3507
  }), oe && Object.entries(oe).filter(([me, $e]) => $e && $e.trim()).sort(([me], [$e]) => me.localeCompare($e)).forEach(([me, $e]) => {
3508
- U.push({
3508
+ L.push({
3509
3509
  locale: me,
3510
3510
  name: $e,
3511
3511
  localeDisplay: mt(me)
3512
3512
  });
3513
- }), U;
3513
+ }), L;
3514
3514
  }), se = T(() => {
3515
3515
  var Ce, we;
3516
- const U = [], K = "en-US", oe = t.form.description_locale, ke = oe == null ? void 0 : oe[K];
3517
- return (t.form.description || (Ce = t.fallback) != null && Ce.description) && !ke && U.push({
3516
+ const L = [], K = "en-US", oe = t.form.description_locale, ke = oe == null ? void 0 : oe[K];
3517
+ return (t.form.description || (Ce = t.fallback) != null && Ce.description) && !ke && L.push({
3518
3518
  locale: K,
3519
3519
  name: t.form.description || ((we = t.fallback) == null ? void 0 : we.description) || "",
3520
3520
  localeDisplay: mt(K)
3521
3521
  }), oe && Object.entries(oe).filter(([me, $e]) => $e && $e.trim()).sort(([me], [$e]) => me.localeCompare($e)).forEach(([me, $e]) => {
3522
- U.push({
3522
+ L.push({
3523
3523
  locale: me,
3524
3524
  name: $e,
3525
3525
  localeDisplay: mt(me)
3526
3526
  });
3527
- }), U;
3527
+ }), L;
3528
3528
  });
3529
3529
  function w() {
3530
3530
  Z.value = "name", ee.value = !0;
@@ -3532,46 +3532,46 @@ const Kr = /* @__PURE__ */ pe({
3532
3532
  function z() {
3533
3533
  Z.value = "description", ee.value = !0;
3534
3534
  }
3535
- function G(U) {
3536
- c("update:form", "name", U);
3535
+ function G(L) {
3536
+ c("update:form", "name", L);
3537
3537
  }
3538
- function J(U) {
3539
- c("update:form", "description", U);
3538
+ function J(L) {
3539
+ c("update:form", "description", L);
3540
3540
  }
3541
- function te(U) {
3542
- c("update:form", "name_locale", U);
3541
+ function te(L) {
3542
+ c("update:form", "name_locale", L);
3543
3543
  }
3544
- function ce(U) {
3545
- c("update:form", "description_locale", U);
3544
+ function ce(L) {
3545
+ c("update:form", "description_locale", L);
3546
3546
  }
3547
3547
  const ue = T(() => {
3548
- var U;
3549
- return !!t.form.name || !!((U = t.fallback) != null && U.name);
3548
+ var L;
3549
+ return !!t.form.name || !!((L = t.fallback) != null && L.name);
3550
3550
  });
3551
- return (U, K) => {
3551
+ return (L, K) => {
3552
3552
  var he, ye;
3553
- const oe = L("fm-text-field"), ke = L("fm-button"), Ce = L("FmTooltip"), we = L("fm-textarea"), me = L("fm-radio"), $e = L("FmSnackbar"), Pt = L("FmButton"), Rt = L("fm-radio-group"), Ot = L("FmFormGroup"), q = L("FmStepperField"), W = Kt("tooltip");
3553
+ const oe = U("fm-text-field"), ke = U("fm-button"), Ce = U("FmTooltip"), we = U("fm-textarea"), me = U("fm-radio"), $e = U("FmSnackbar"), It = U("FmButton"), Pt = U("fm-radio-group"), Rt = U("FmFormGroup"), q = U("FmStepperField"), W = Kt("tooltip");
3554
3554
  return k(), Y(ve, null, [h(Be, {
3555
3555
  title: m(N)("menu.product.form.detail.title")
3556
3556
  }, {
3557
3557
  default: P(() => {
3558
3558
  var ie, ft, Ke, Vt;
3559
3559
  return [F("div", Fr, [F("div", Mr, [F("div", zr, [F("div", Ir, [h(oe, {
3560
- "model-value": U.form.code,
3561
- placeholder: ((ie = U.fallback) == null ? void 0 : ie.code) || m(N)("menu.product.form.detail.fields.code.placeholder"),
3560
+ "model-value": L.form.code,
3561
+ placeholder: ((ie = L.fallback) == null ? void 0 : ie.code) || m(N)("menu.product.form.detail.fields.code.placeholder"),
3562
3562
  label: m(N)("menu.product.form.detail.fields.code.label"),
3563
3563
  rules: [(le) => R.value === 0 || m(N)("menu.product.form.detail.fields.code.duplicate_warning", {
3564
3564
  count: R.value
3565
3565
  })],
3566
- "onUpdate:modelValue": K[0] || (K[0] = (le) => c("update:form", "code", m(Fn)(le, U.isOverride)))
3566
+ "onUpdate:modelValue": K[0] || (K[0] = (le) => c("update:form", "code", m(Fn)(le, L.isOverride)))
3567
3567
  }, null, 8, ["model-value", "placeholder", "label", "rules"])]), F("div", Pr, [h(oe, {
3568
3568
  id: "product-name",
3569
3569
  disabled: !p.value.name,
3570
3570
  "helper-text": C.value > 0 ? m(N)("menu.product.form.detail.fields.name.duplicate_warning", {
3571
3571
  count: C.value
3572
3572
  }) : void 0,
3573
- "model-value": U.form.name,
3574
- placeholder: (ft = U.fallback) == null ? void 0 : ft.name,
3573
+ "model-value": L.form.name,
3574
+ placeholder: (ft = L.fallback) == null ? void 0 : ft.name,
3575
3575
  rules: p.value.name ? [(le) => !!le || m(N)("menu.product.form.detail.fields.name.required")] : void 0,
3576
3576
  "label-mark": "required",
3577
3577
  autofocus: "",
@@ -3595,24 +3595,24 @@ const Kr = /* @__PURE__ */ pe({
3595
3595
  _: 1
3596
3596
  })]),
3597
3597
  _: 1
3598
- }, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), Ft(" " + ae(U.isOverride) + " ", 1), h(oe, {
3598
+ }, 8, ["disabled", "helper-text", "model-value", "placeholder", "rules", "label"])])]), h(oe, {
3599
3599
  id: "product-internal-name",
3600
3600
  disabled: !p.value.name,
3601
3601
  "helper-text": _.value > 0 ? m(N)("menu.product.form.detail.fields.name2.duplicate_warning", {
3602
3602
  count: _.value
3603
3603
  }) : void 0,
3604
- "model-value": U.form.name2,
3605
- placeholder: ((Ke = U.fallback) == null ? void 0 : Ke.name2) || m(N)("menu.product.form.detail.fields.name2.placeholder"),
3604
+ "model-value": L.form.name2,
3605
+ placeholder: ((Ke = L.fallback) == null ? void 0 : Ke.name2) || m(N)("menu.product.form.detail.fields.name2.placeholder"),
3606
3606
  label: m(N)("menu.product.form.detail.fields.name2.label"),
3607
- "onUpdate:modelValue": K[2] || (K[2] = (le) => c("update:form", "name2", m(Fn)(le, U.isOverride)))
3607
+ "onUpdate:modelValue": K[2] || (K[2] = (le) => c("update:form", "name2", m(Fn)(le, L.isOverride)))
3608
3608
  }, null, 8, ["disabled", "helper-text", "model-value", "placeholder", "label"]), F("div", Or, [h(we, {
3609
3609
  disabled: !p.value.description,
3610
- "model-value": U.form.description || void 0,
3611
- placeholder: ((Vt = U.fallback) == null ? void 0 : Vt.description) || m(N)("menu.product.form.detail.fields.description.placeholder"),
3610
+ "model-value": L.form.description || void 0,
3611
+ placeholder: ((Vt = L.fallback) == null ? void 0 : Vt.description) || m(N)("menu.product.form.detail.fields.description.placeholder"),
3612
3612
  "onUpdate:modelValue": K[3] || (K[3] = (le) => c("update:form", "description", le.trim())),
3613
3613
  class: "description"
3614
3614
  }, {
3615
- label: P(() => [F("p", $r, [Ft(ae(m(N)("menu.product.form.detail.fields.description.label")) + " ", 1), F("span", Dr, ae(m(N)("menu.product.form.detail.fields.description.optional")), 1)])]),
3615
+ label: P(() => [F("p", $r, [jt(ae(m(N)("menu.product.form.detail.fields.description.label")) + " ", 1), F("span", Dr, ae(m(N)("menu.product.form.detail.fields.description.optional")), 1)])]),
3616
3616
  _: 1
3617
3617
  }, 8, ["disabled", "model-value", "placeholder"]), F("div", Er, [h(Ce, {
3618
3618
  variant: "plain",
@@ -3628,25 +3628,25 @@ const Kr = /* @__PURE__ */ pe({
3628
3628
  variant: "tertiary",
3629
3629
  icon: "g_translate",
3630
3630
  class: "cursor-pointer",
3631
- disabled: !(U.form.description || (le = U.fallback) != null && le.description) || !p.value.description,
3631
+ disabled: !(L.form.description || (le = L.fallback) != null && le.description) || !p.value.description,
3632
3632
  onClick: z
3633
- }, null, 8, ["disabled"]), [[W, m(Mt)("Translate description")]])];
3633
+ }, null, 8, ["disabled"]), [[W, m(Ft)("Translate description")]])];
3634
3634
  }),
3635
3635
  _: 1
3636
3636
  }), ut(h(m(Ht), {
3637
3637
  class: "cursor-pointer",
3638
3638
  onClick: y
3639
- }, null, 512), [[W, m(Mt)("Suggest description")]])])])]), h(Ei, {
3639
+ }, null, 512), [[W, m(Ft)("Suggest description")]])])])]), h(Ei, {
3640
3640
  disabled: !p.value.thumbnail,
3641
3641
  title: m(N)("menu.common.labels.product_image"),
3642
- "model-value": U.thumbnail,
3642
+ "model-value": L.thumbnail,
3643
3643
  "onUpdate:modelValue": K[4] || (K[4] = (le) => c("update:thumbnail", le)),
3644
3644
  "onReset:modelValue": K[5] || (K[5] = (le) => c("reset:thumbnail")),
3645
3645
  "onUpdate:trackingId": K[6] || (K[6] = (le) => c("update:form", "_thumbnailTrackingId", le))
3646
3646
  }, null, 8, ["disabled", "title", "model-value"])]), h(ct, {
3647
3647
  label: m(i).isV4 ? m(N)("menu.product.form.detail.category.label") : m(N)("menu.product.form.detail.category.label_singular")
3648
3648
  }, {
3649
- default: P(() => [S.value ? (k(), X(Rt, {
3649
+ default: P(() => [S.value ? (k(), X(Pt, {
3650
3650
  key: 0,
3651
3651
  disabled: !p.value.category,
3652
3652
  "model-value": I.value,
@@ -3665,7 +3665,7 @@ const Kr = /* @__PURE__ */ pe({
3665
3665
  })]), g.value ? (k(), Y("div", Br, [h($e, {
3666
3666
  title: m(N)("menu.product.form.detail.category.add_first"),
3667
3667
  variant: "info"
3668
- }, null, 8, ["title"]), h(Pt, {
3668
+ }, null, 8, ["title"]), h(It, {
3669
3669
  label: m(N)("menu.common.actions.add"),
3670
3670
  "prepend-icon": "add",
3671
3671
  variant: "secondary",
@@ -3676,10 +3676,10 @@ const Kr = /* @__PURE__ */ pe({
3676
3676
  sublabel: m(N)("menu.product.form.detail.category.options.addon.sublabel")
3677
3677
  }, null, 8, ["value", "label", "sublabel"])])]),
3678
3678
  _: 1
3679
- }, 8, ["disabled", "model-value"])) : ne("", !0), m(i).isV4 ? ne("", !0) : (k(), X(Ot, {
3679
+ }, 8, ["disabled", "model-value"])) : ne("", !0), m(i).isV4 ? ne("", !0) : (k(), X(Rt, {
3680
3680
  key: 1,
3681
- "model-value": U.form.category,
3682
- rules: [(le) => !le && !U.isOverride ? "Category is required" : !0],
3681
+ "model-value": L.form.category,
3682
+ rules: [(le) => !le && !L.isOverride ? "Category is required" : !0],
3683
3683
  "onUpdate:modelValue": K[8] || (K[8] = (le) => c("update:form", "category", le))
3684
3684
  }, {
3685
3685
  default: P(() => [h(x, {
@@ -3688,7 +3688,7 @@ const Kr = /* @__PURE__ */ pe({
3688
3688
  _: 1
3689
3689
  }, 8, ["model-value", "rules"]))]),
3690
3690
  _: 1
3691
- }, 8, ["label"]), m(i).isV4 && !U.isAddon ? (k(), X(ct, {
3691
+ }, 8, ["label"]), m(i).isV4 && !L.isAddon ? (k(), X(ct, {
3692
3692
  key: 0,
3693
3693
  label: m(N)("menu.product.form.detail.path.label")
3694
3694
  }, {
@@ -3703,7 +3703,7 @@ const Kr = /* @__PURE__ */ pe({
3703
3703
  _: 1
3704
3704
  }, 8, ["label"])) : ne("", !0), m(i).isV4 ? (k(), Y("div", Gr, [h(q, {
3705
3705
  label: "Shelf Life (mins)",
3706
- "model-value": U.form.shelfLife ?? null,
3706
+ "model-value": L.form.shelfLife ?? null,
3707
3707
  rules: [(le) => le == null || le > 0 || m(N)("menu.common.validation.min_value", {
3708
3708
  value: 1
3709
3709
  })],
@@ -3718,7 +3718,7 @@ const Kr = /* @__PURE__ */ pe({
3718
3718
  "onUpdate:modelValue": E
3719
3719
  }, null, 8, ["label", "model-value"])])) : ne("", !0), h(En, {
3720
3720
  disabled: !p.value.orderFrom,
3721
- "model-value": U.form.orderFrom,
3721
+ "model-value": L.form.orderFrom,
3722
3722
  "order-from-none": p.value.orderFromNone,
3723
3723
  required: p.value.orderFrom,
3724
3724
  "default-label": m(N)("menu.product.form.detail.order_from.default"),
@@ -3730,10 +3730,10 @@ const Kr = /* @__PURE__ */ pe({
3730
3730
  }, 8, ["title"]), h(vr, {
3731
3731
  modelValue: ee.value,
3732
3732
  "onUpdate:modelValue": K[12] || (K[12] = (ie) => ee.value = ie),
3733
- "product-name": U.form.name || ((he = U.fallback) == null ? void 0 : he.name) || "",
3734
- "product-name-locale": U.form.name_locale,
3735
- "product-description": U.form.description || ((ye = U.fallback) == null ? void 0 : ye.description),
3736
- "product-description-locale": U.form.description_locale,
3733
+ "product-name": L.form.name || ((he = L.fallback) == null ? void 0 : he.name) || "",
3734
+ "product-name-locale": L.form.name_locale,
3735
+ "product-description": L.form.description || ((ye = L.fallback) == null ? void 0 : ye.description),
3736
+ "product-description-locale": L.form.description_locale,
3737
3737
  "initial-section": Z.value,
3738
3738
  "onUpdate:name": G,
3739
3739
  "onUpdate:description": J,
@@ -3742,7 +3742,7 @@ const Kr = /* @__PURE__ */ pe({
3742
3742
  }, null, 8, ["modelValue", "product-name", "product-name-locale", "product-description", "product-description-locale", "initial-section"])], 64);
3743
3743
  };
3744
3744
  }
3745
- }), Wr = /* @__PURE__ */ bt(Kr, [["__scopeId", "data-v-846cd8bf"]]), Hr = {}, Yr = { class: "overflow-x-auto" }, qr = { class: "xs:w-[600px]" };
3745
+ }), Wr = /* @__PURE__ */ bt(Kr, [["__scopeId", "data-v-8526016a"]]), Hr = {}, Yr = { class: "overflow-x-auto" }, qr = { class: "xs:w-[600px]" };
3746
3746
  function Xr(e, n) {
3747
3747
  return k(), Y("div", Yr, [
3748
3748
  F("div", qr, [
@@ -3892,7 +3892,7 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
3892
3892
  set: (C) => i("update:modelValue", C)
3893
3893
  });
3894
3894
  return (C, _) => {
3895
- const R = L("FmIcon"), I = L("fm-button"), D = L("fm-side-sheet");
3895
+ const R = U("FmIcon"), I = U("fm-button"), D = U("fm-side-sheet");
3896
3896
  return k(), X(D, {
3897
3897
  modelValue: x.value,
3898
3898
  "onUpdate:modelValue": _[2] || (_[2] = (O) => x.value = O),
@@ -4036,7 +4036,7 @@ const ts = /* @__PURE__ */ bt(Qr, [["render", es]]), ns = { class: "fm-typo-en-t
4036
4036
  ), n({ getKey: () => i.bindingKey, trigger: o });
4037
4037
  const { t: c } = fe(), p = fi();
4038
4038
  return (f, v) => {
4039
- const S = L("fm-text-field"), g = L("fm-card"), b = L("fm-button"), A = L("fm-side-sheet");
4039
+ const S = U("fm-text-field"), g = U("fm-card"), b = U("fm-button"), A = U("fm-side-sheet");
4040
4040
  return k(), Y(ve, null, [
4041
4041
  Ve(f.$slots, "default", { trigger: o }),
4042
4042
  h(A, {
@@ -4232,7 +4232,7 @@ const ws = {
4232
4232
  "pure-styling": !0,
4233
4233
  class: "shrink-0 scale-75",
4234
4234
  onClick: c
4235
- }, null), [[Kt("tooltip"), Mt("Suggest pricing")]]) : null
4235
+ }, null), [[Kt("tooltip"), Ft("Suggest pricing")]]) : null
4236
4236
  }),
4237
4237
  enableSorting: !1
4238
4238
  }], v = T(() => Object.entries(s.value).map(([g, b]) => ({
@@ -4246,7 +4246,7 @@ const ws = {
4246
4246
  }), r.value = !1;
4247
4247
  }
4248
4248
  return (g, b) => {
4249
- const A = L("FmTable"), V = L("FmButton"), B = L("FmSideSheet"), x = Kt("tooltip");
4249
+ const A = U("FmTable"), V = U("FmButton"), B = U("FmSideSheet"), x = Kt("tooltip");
4250
4250
  return k(), Y(ve, null, [Ve(g.$slots, "default", {
4251
4251
  trigger: u
4252
4252
  }), h(B, {
@@ -4288,7 +4288,7 @@ const ws = {
4288
4288
  "pure-styling": "",
4289
4289
  class: "shrink-0 scale-75",
4290
4290
  onClick: c
4291
- }, null, 512)), [[x, m(Mt)("Suggest pricing")]]) : ne("", !0)]),
4291
+ }, null, 512)), [[x, m(Ft)("Suggest pricing")]]) : ne("", !0)]),
4292
4292
  _: 1
4293
4293
  }, 8, ["modelValue", "placeholder", "label", "rules"])]), F("div", Fs, [F("div", Ms, [F("p", zs, ae(m(o)("menu.product.form.member_price.configure.member_selling_price.label")), 1), F("p", Is, ae(m(o)("menu.product.form.member_price.configure.member_selling_price.sublabel")), 1)]), h(A, {
4294
4294
  "column-defs": f,
@@ -4319,7 +4319,7 @@ const ws = {
4319
4319
  return `${o}: ${Xe(r)}`;
4320
4320
  }).filter((o) => o !== void 0));
4321
4321
  return (o, r) => {
4322
- const l = L("FmIcon"), s = L("FmTooltip");
4322
+ const l = U("FmIcon"), s = U("FmTooltip");
4323
4323
  return k(), X(s, {
4324
4324
  variant: "plain",
4325
4325
  placement: t.placement || "right",
@@ -4436,7 +4436,7 @@ const ws = {
4436
4436
  enableSorting: !1
4437
4437
  }];
4438
4438
  return (d, c) => {
4439
- const p = L("FmTable");
4439
+ const p = U("FmTable");
4440
4440
  return k(), Y("div", null, [h(p, {
4441
4441
  "column-defs": u,
4442
4442
  "row-data": d.priceTiers,
@@ -4473,7 +4473,7 @@ const ws = {
4473
4473
  i("submit", v), o();
4474
4474
  }
4475
4475
  return (v, S) => {
4476
- const g = L("FmButton"), b = L("fm-button"), A = L("FmSideSheet");
4476
+ const g = U("FmButton"), b = U("fm-button"), A = U("FmSideSheet");
4477
4477
  return k(), X(A, {
4478
4478
  id: "business-form",
4479
4479
  modelValue: a.value,
@@ -4570,7 +4570,7 @@ const ws = {
4570
4570
  }
4571
4571
  const { t: l } = fe();
4572
4572
  return (s, u) => {
4573
- const d = L("FmButton"), c = L("FmTooltip");
4573
+ const d = U("FmButton"), c = U("FmTooltip");
4574
4574
  return s.$slots.default ? Ve(s.$slots, "default", { key: 0 }) : (k(), X(c, {
4575
4575
  key: 1,
4576
4576
  content: m(l)("menu.price_tier.price_tier_config"),
@@ -4669,14 +4669,14 @@ const Ns = {
4669
4669
  value: "default",
4670
4670
  modelValue: te,
4671
4671
  disabled: J,
4672
- "onUpdate:modelValue": (U) => {
4672
+ "onUpdate:modelValue": (L) => {
4673
4673
  var K;
4674
4674
  if (z) {
4675
4675
  const oe = (K = w.row.getParentRow()) == null ? void 0 : K.original;
4676
4676
  if (!oe) return;
4677
- y(oe._id, G.combinationKey ?? "", "isDefault", U);
4677
+ y(oe._id, G.combinationKey ?? "", "isDefault", L);
4678
4678
  } else
4679
- O(G._id, "isDefault", U);
4679
+ O(G._id, "isDefault", L);
4680
4680
  }
4681
4681
  }, null);
4682
4682
  }
@@ -4718,21 +4718,21 @@ const Ns = {
4718
4718
  modelValue: z,
4719
4719
  placeholder: ce ?? "",
4720
4720
  disabled: J,
4721
- rules: ce ? void 0 : [(U) => ((U == null ? void 0 : U.length) ?? 0) > 0 || C("menu.group.option.product_title_required")],
4722
- "onUpdate:modelValue": (U) => {
4721
+ rules: ce ? void 0 : [(L) => ((L == null ? void 0 : L.length) ?? 0) > 0 || C("menu.group.option.product_title_required")],
4722
+ "onUpdate:modelValue": (L) => {
4723
4723
  var K;
4724
4724
  if (te) {
4725
4725
  const oe = (K = w.row.getParentRow()) == null ? void 0 : K.original;
4726
4726
  if (!oe) return;
4727
- y(oe._id, G.combinationKey ?? "", "name", U || null);
4727
+ y(oe._id, G.combinationKey ?? "", "name", L || null);
4728
4728
  } else
4729
- O(G._id, "name", U || null);
4729
+ O(G._id, "name", L || null);
4730
4730
  },
4731
4731
  class: "min-w-[300px]"
4732
4732
  }, {
4733
4733
  append: () => {
4734
- var U, K;
4735
- return (K = (U = w.row.original) == null ? void 0 : U.items) != null && K.length ? Me(Ae.FmIcon, {
4734
+ var L, K;
4735
+ return (K = (L = w.row.original) == null ? void 0 : L.items) != null && K.length ? Me(Ae.FmIcon, {
4736
4736
  name: "keyboard_arrow_up",
4737
4737
  onClick: w.row.getToggleExpandedHandler(),
4738
4738
  class: ["cursor-pointer", "transition-transform", w.row.getIsExpanded() ? "transform rotate-180" : ""],
@@ -4752,7 +4752,7 @@ const Ns = {
4752
4752
  },
4753
4753
  size: 400,
4754
4754
  cell: (w) => {
4755
- const z = w.getValue(), G = w.row.original, J = !g(null).priceEdit || G.orderFrom === Te.enum.NONE, te = G.fallbackPrice, ce = w.row.depth > 0, ue = _.getMemberPricingPriceVariant(G.price_variant), U = Object.values(ue).every((K) => K === null);
4755
+ const z = w.getValue(), G = w.row.original, J = !g(null).priceEdit || G.orderFrom === Te.enum.NONE, te = G.fallbackPrice, ce = w.row.depth > 0, ue = _.getMemberPricingPriceVariant(G.price_variant), L = Object.values(ue).every((K) => K === null);
4756
4756
  return h("div", {
4757
4757
  class: "flex items-center gap-8"
4758
4758
  }, [h(lt, {
@@ -4811,7 +4811,7 @@ const Ns = {
4811
4811
  }, {
4812
4812
  default: () => h("span", {
4813
4813
  class: "underline line-clamp-2 break-all"
4814
- }, [U ? C("menu.product.form.member_price.configure.title") : C("menu.product.form.member_price.configure.title_with_tier", {
4814
+ }, [L ? C("menu.product.form.member_price.configure.title") : C("menu.product.form.member_price.configure.title_with_tier", {
4815
4815
  num: Object.values(ue).filter((oe) => oe !== null).length
4816
4816
  })])
4817
4817
  })
@@ -4836,10 +4836,10 @@ const Ns = {
4836
4836
  "onUpdate:modelValue": (ce) => {
4837
4837
  var ue;
4838
4838
  if (te) {
4839
- const U = (ue = w.row.getParentRow()) == null ? void 0 : ue.original;
4840
- if (!U) return;
4839
+ const L = (ue = w.row.getParentRow()) == null ? void 0 : ue.original;
4840
+ if (!L) return;
4841
4841
  y(
4842
- U._id,
4842
+ L._id,
4843
4843
  G.combinationKey ?? "",
4844
4844
  // @ts-ignore
4845
4845
  "orderFrom",
@@ -4875,9 +4875,9 @@ const Ns = {
4875
4875
  priceTiers_variant: Un(te.priceTiersVariant)
4876
4876
  };
4877
4877
  if (J) {
4878
- const U = (ue = w.row.getParentRow()) == null ? void 0 : ue.original;
4879
- if (!U) return;
4880
- y(U._id, z.combinationKey ?? "", ce);
4878
+ const L = (ue = w.row.getParentRow()) == null ? void 0 : ue.original;
4879
+ if (!L) return;
4880
+ y(L._id, z.combinationKey ?? "", ce);
4881
4881
  } else
4882
4882
  O(z._id, ce);
4883
4883
  }
@@ -4904,13 +4904,13 @@ const Ns = {
4904
4904
  }, {
4905
4905
  default: ({
4906
4906
  trigger: te
4907
- }) => h(L("fm-tooltip"), {
4907
+ }) => h(U("fm-tooltip"), {
4908
4908
  content: "Inventory",
4909
4909
  zIndex: 110
4910
4910
  }, {
4911
4911
  default: () => {
4912
4912
  var ce;
4913
- return [h(L("fm-button"), {
4913
+ return [h(U("fm-button"), {
4914
4914
  variant: je.Tertiary,
4915
4915
  disabled: G,
4916
4916
  prependIcon: "inventory_2",
@@ -4920,7 +4920,7 @@ const Ns = {
4920
4920
  }, null)];
4921
4921
  }
4922
4922
  })
4923
- }), g(z.combinationKey).link && h(L("fm-button"), {
4923
+ }), g(z.combinationKey).link && h(U("fm-button"), {
4924
4924
  variant: je.Tertiary,
4925
4925
  prependIcon: "delete",
4926
4926
  textColor: Je.NeutralGray400,
@@ -4976,8 +4976,8 @@ const Ns = {
4976
4976
  });
4977
4977
  }
4978
4978
  function y(w, z, G, J) {
4979
- var U, K;
4980
- const te = _e(t.group), ce = (U = te.items[w].items) == null ? void 0 : U.findIndex((oe) => oe.combinationKey === z);
4979
+ var L, K;
4980
+ const te = _e(t.group), ce = (L = te.items[w].items) == null ? void 0 : L.findIndex((oe) => oe.combinationKey === z);
4981
4981
  if (!yt.isSet(ce)) return;
4982
4982
  let ue = (K = te.items[w].items) == null ? void 0 : K[ce];
4983
4983
  ue && (typeof G == "object" && G !== null ? ue = {
@@ -5012,11 +5012,11 @@ const Ns = {
5012
5012
  const te = Q.value[J._id];
5013
5013
  if (!te || !te.variant || ((ue = te.variant.variantCombinations) == null ? void 0 : ue.length) === 0)
5014
5014
  return;
5015
- (te.variant.variantCombinations || []).forEach((U) => {
5016
- const K = `${U._id}:${U.combinationKey}`, oe = !G.has(K);
5015
+ (te.variant.variantCombinations || []).forEach((L) => {
5016
+ const K = `${L._id}:${L.combinationKey}`, oe = !G.has(K);
5017
5017
  z.push({
5018
- _id: U._id,
5019
- combinationKey: U.combinationKey,
5018
+ _id: L._id,
5019
+ combinationKey: L.combinationKey,
5020
5020
  orderFrom: oe ? Te.enum.NONE : Te.enum.ALL
5021
5021
  });
5022
5022
  });
@@ -5050,7 +5050,7 @@ const Ns = {
5050
5050
  }
5051
5051
  const de = ci(), se = T(() => de.breakpoints.value.xs);
5052
5052
  return (w, z) => {
5053
- const G = L("fm-button"), J = L("fm-table");
5053
+ const G = U("fm-button"), J = U("fm-table");
5054
5054
  return k(), Y(ve, null, [h(Be, {
5055
5055
  title: m(C)("menu.group.option.title"),
5056
5056
  "sub-title": w.config.link() && d.value ? m(C)("menu.group.option.subtitle") : ""
@@ -5360,7 +5360,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5360
5360
  });
5361
5361
  return (w, z) => {
5362
5362
  var Ce;
5363
- const G = L("fm-button"), J = L("FmTooltip"), te = L("fm-text-field"), ce = L("fm-stepper-field"), ue = L("FmFormGroup"), U = L("fm-radio"), K = L("fm-radio-group"), oe = L("fm-switch"), ke = L("fm-side-sheet");
5363
+ const G = U("fm-button"), J = U("FmTooltip"), te = U("fm-text-field"), ce = U("fm-stepper-field"), ue = U("FmFormGroup"), L = U("fm-radio"), K = U("fm-radio-group"), oe = U("fm-switch"), ke = U("fm-side-sheet");
5364
5364
  return k(), Y(ve, null, [
5365
5365
  Ve(w.$slots, "default", { trigger: g }),
5366
5366
  h(ke, {
@@ -5477,7 +5477,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5477
5477
  "onUpdate:modelValue": z[4] || (z[4] = (me) => I(me))
5478
5478
  }, {
5479
5479
  default: P(() => [
5480
- (k(!0), Y(ve, null, Re(B.value, (me) => (k(), X(U, {
5480
+ (k(!0), Y(ve, null, Re(B.value, (me) => (k(), X(L, {
5481
5481
  key: me.value,
5482
5482
  label: m(Z)(`menu.group.types.${me.label.toLowerCase()}`),
5483
5483
  value: me.value
@@ -5667,7 +5667,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5667
5667
  });
5668
5668
  const { t: V } = fe();
5669
5669
  return (C, _) => {
5670
- const R = L("fm-select"), I = L("fm-button"), D = L("fm-card");
5670
+ const R = U("fm-select"), I = U("fm-button"), D = U("fm-card");
5671
5671
  return k(), X(Bi, {
5672
5672
  ref_key: "baseFormRef",
5673
5673
  ref: A,
@@ -5779,7 +5779,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5779
5779
  i(p.value), a("primary"), t.close();
5780
5780
  };
5781
5781
  return (g, b) => {
5782
- const A = L("FmSearch"), V = L("FmCheckbox"), B = L("FmButton");
5782
+ const A = U("FmSearch"), V = U("FmCheckbox"), B = U("FmButton");
5783
5783
  return d.value.length > 0 ? (k(), Y("div", il, [
5784
5784
  F("div", null, [
5785
5785
  h(A, {
@@ -5973,7 +5973,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
5973
5973
  icon: "delete",
5974
5974
  variant: "tertiary",
5975
5975
  textColor: "neutral-gray-400",
5976
- onClick: It(async () => {
5976
+ onClick: zt(async () => {
5977
5977
  C(M);
5978
5978
  }, ["stop", "prevent"])
5979
5979
  }), Me(nl, {
@@ -6087,7 +6087,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6087
6087
  }) : s("update:form", "groups", y[0].groups || []);
6088
6088
  };
6089
6089
  return (y, M) => {
6090
- const $ = L("FmButton"), j = L("FmTable");
6090
+ const $ = U("FmButton"), j = U("FmTable");
6091
6091
  return k(), X(Be, {
6092
6092
  title: m(l)("menu.product.form.group.title"),
6093
6093
  "sub-title": m(l)("menu.product.form.group.subtitle")
@@ -6233,7 +6233,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6233
6233
  }, {
6234
6234
  default: ({
6235
6235
  trigger: x
6236
- }) => h(L("fm-button"), {
6236
+ }) => h(U("fm-button"), {
6237
6237
  variant: je.Tertiary,
6238
6238
  prependIcon: "edit",
6239
6239
  textColor: Je.NeutralGray400,
@@ -6253,7 +6253,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6253
6253
  return wt(() => {
6254
6254
  A.readInventory();
6255
6255
  }), (V, B) => {
6256
- const x = L("FmStepperField");
6256
+ const x = U("FmStepperField");
6257
6257
  return k(), Y(ve, null, [h(Be, {
6258
6258
  title: m(t)("menu.inventory.title"),
6259
6259
  subTitle: m(t)("menu.inventory.subtitle")
@@ -6382,7 +6382,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6382
6382
  C ? l("update:form", "priceTiers_variant", Un(x)) : l("update:form", "price_variant", Ln(x));
6383
6383
  }
6384
6384
  return (x, C) => {
6385
- const _ = L("fm-select"), R = L("FmButton"), I = L("fm-checkbox"), D = L("fm-text-field"), O = Kt("tooltip");
6385
+ const _ = U("fm-select"), R = U("FmButton"), I = U("fm-checkbox"), D = U("fm-text-field"), O = Kt("tooltip");
6386
6386
  return k(), X(Be, {
6387
6387
  title: m(r)("menu.product.form.price.title")
6388
6388
  }, {
@@ -6409,7 +6409,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6409
6409
  class: "shrink-0 scale-75",
6410
6410
  onClick: g
6411
6411
  }, null, 512), [
6412
- [O, m(Mt)("Suggest pricing")]
6412
+ [O, m(Ft)("Suggest pricing")]
6413
6413
  ])
6414
6414
  ]),
6415
6415
  _: 1
@@ -6640,7 +6640,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6640
6640
  c && (r.value = t.initialValue ? _e(t.initialValue) : { ...Ye.generator.initMenuV4PrintDepartment(), usedBy: [], applyToItems: [] });
6641
6641
  }
6642
6642
  ), (c, p) => {
6643
- const f = L("fm-text-field"), v = L("fm-button"), S = L("fm-side-sheet");
6643
+ const f = U("fm-text-field"), v = U("fm-button"), S = U("fm-side-sheet");
6644
6644
  return k(), Y(ve, null, [
6645
6645
  Ve(c.$slots, "default", { trigger: u }),
6646
6646
  h(S, {
@@ -6781,7 +6781,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6781
6781
  () => s.value.length,
6782
6782
  () => S(s.value[s.value.length - 1]._id, !0)
6783
6783
  ), (b, A) => {
6784
- const V = L("fm-switch"), B = L("fm-radio"), x = L("fm-radio-group"), C = L("fm-button"), _ = L("fm-checkbox");
6784
+ const V = U("fm-switch"), B = U("fm-radio"), x = U("fm-radio-group"), C = U("fm-button"), _ = U("fm-checkbox");
6785
6785
  return k(), X(Be, {
6786
6786
  title: m(a)("menu.product.form.print.title")
6787
6787
  }, {
@@ -6846,7 +6846,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6846
6846
  class: "handle",
6847
6847
  "prepend-icon": "drag_handle",
6848
6848
  variant: "tertiary",
6849
- onClick: A[2] || (A[2] = It(() => {
6849
+ onClick: A[2] || (A[2] = zt(() => {
6850
6850
  }, ["stop"]))
6851
6851
  }, null, 8, ["disabled"])) : ne("", !0)
6852
6852
  ]),
@@ -6909,7 +6909,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
6909
6909
  c.length > 0 && (r.value = [.../* @__PURE__ */ new Set([...r.value, ...c])]);
6910
6910
  }
6911
6911
  ), (s, u) => {
6912
- const d = L("FmSearch"), c = L("FmCheckbox");
6912
+ const d = U("FmSearch"), c = U("FmCheckbox");
6913
6913
  return k(), Y("div", Kl, [
6914
6914
  h(d, {
6915
6915
  modelValue: i.value,
@@ -7009,7 +7009,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
7009
7009
  });
7010
7010
  }
7011
7011
  return (g, b) => {
7012
- const A = L("FmButton"), V = L("FmTable");
7012
+ const A = U("FmButton"), V = U("FmTable");
7013
7013
  return k(), Y(ve, null, [h(Be, {
7014
7014
  title: m(t)("menu.product.form.order_pacing.time_presets.title"),
7015
7015
  "sub-title": m(t)("menu.product.form.order_pacing.time_presets.subtitle")
@@ -7053,7 +7053,7 @@ const Hs = { class: "fm-typo-en-title-md-600" }, Ys = {
7053
7053
  });
7054
7054
  const r = H(((l = o.value) == null ? void 0 : l.enabled) ?? !1);
7055
7055
  return (s, u) => {
7056
- const d = L("FmSwitch");
7056
+ const d = U("FmSwitch");
7057
7057
  return k(), X(Be, {
7058
7058
  title: m(t)("menu.product.form.order_pacing.title")
7059
7059
  }, {
@@ -7245,7 +7245,7 @@ const Ql = {
7245
7245
  set: f("app")
7246
7246
  });
7247
7247
  return (g, b) => {
7248
- const A = L("FmCheckbox"), V = L("fm-table");
7248
+ const A = U("FmCheckbox"), V = U("fm-table");
7249
7249
  return k(), X(Be, {
7250
7250
  title: m(r)("menu.product.form.takeaway.title"),
7251
7251
  "sub-title": m(r)("menu.product.form.takeaway.subtitle")
@@ -7294,7 +7294,7 @@ const Ql = {
7294
7294
  t(s.value), i("primary"), n.close();
7295
7295
  };
7296
7296
  return (c, p) => {
7297
- const f = L("FmSearch"), v = L("FmCheckbox"), S = L("FmButton");
7297
+ const f = U("FmSearch"), v = U("FmCheckbox"), S = U("FmButton");
7298
7298
  return l.value.length > 0 ? (k(), Y("div", eu, [
7299
7299
  F("div", null, [
7300
7300
  h(f, {
@@ -7654,7 +7654,7 @@ const Ql = {
7654
7654
  }) : !0;
7655
7655
  }
7656
7656
  return (y, M) => {
7657
- const $ = L("fm-button"), j = L("fm-icon"), Q = L("FmFormGroup"), E = L("fm-table");
7657
+ const $ = U("fm-button"), j = U("fm-icon"), Q = U("FmFormGroup"), E = U("fm-table");
7658
7658
  return k(), X(Be, {
7659
7659
  title: m(l)("menu.product.form.variant.title"),
7660
7660
  "sub-title": m(l)("menu.product.form.variant.subtitle")
@@ -7693,7 +7693,7 @@ const Ql = {
7693
7693
  }, null, 8, ["variant"]), F("div", du, [F("p", mu, ae((de = p.value[Z]) == null ? void 0 : de.name), 1), h(j, {
7694
7694
  class: "cursor-pointer",
7695
7695
  name: "close",
7696
- onClick: It((se) => {
7696
+ onClick: zt((se) => {
7697
7697
  var w;
7698
7698
  return B(((w = y.form.variant) == null ? void 0 : w.variantGroupIds.filter((z) => z !== Z)) ?? []);
7699
7699
  }, ["stop"])
@@ -7757,7 +7757,7 @@ const Ql = {
7757
7757
  },
7758
7758
  emits: ["update:show", "submit:form"],
7759
7759
  setup(e, { emit: n }) {
7760
- var me, $e, Pt, Rt, Ot;
7760
+ var me, $e, It, Pt, Rt;
7761
7761
  const t = e, i = n, a = Fe(), o = xt(), { t: r } = fe(), l = T(() => t.action === "add" ? r("menu.product.form.title.add") : r("menu.product.form.title.update")), s = T(() => a.rules.item), u = (q) => new Promise((W) => setTimeout(W, q));
7762
7762
  wt(async () => {
7763
7763
  t.autoShow && (await u(100), c());
@@ -7953,7 +7953,7 @@ const Ql = {
7953
7953
  });
7954
7954
  }
7955
7955
  const Z = H(
7956
- f.value.takeawayUsed != null || (((Pt = f.value.variant) == null ? void 0 : Pt.variantCombinations) || []).some((q) => q.takeawayUsed != null) || !1
7956
+ f.value.takeawayUsed != null || (((It = f.value.variant) == null ? void 0 : It.variantCombinations) || []).some((q) => q.takeawayUsed != null) || !1
7957
7957
  );
7958
7958
  function de(q) {
7959
7959
  var W, he;
@@ -7974,7 +7974,7 @@ const Ql = {
7974
7974
  q || (f.value = { ...f.value, print: void 0 });
7975
7975
  }
7976
7976
  const z = H(
7977
- !!((Rt = f.value.groups) != null && Rt.length) != null || (((Ot = f.value.variant) == null ? void 0 : Ot.variantCombinations) || []).some((q) => {
7977
+ !!((Pt = f.value.groups) != null && Pt.length) != null || (((Rt = f.value.variant) == null ? void 0 : Rt.variantCombinations) || []).some((q) => {
7978
7978
  var W;
7979
7979
  return !!((W = q.groups) != null && W.length);
7980
7980
  }) || !1
@@ -8058,7 +8058,7 @@ const Ql = {
8058
8058
  wt(() => {
8059
8059
  ue.isUpdatingItem || (ue.isUpdatingItem = !0, ue.storedCatalogId = a.state.currentCatalogId, ue.storedSchedulerId = a.state.currentSchedulerId);
8060
8060
  });
8061
- function U() {
8061
+ function L() {
8062
8062
  ue.isUpdatingItem = !1, a.selectCatalog(ue.storedCatalogId), a.selectScheduler(ue.storedSchedulerId);
8063
8063
  }
8064
8064
  function K() {
@@ -8071,10 +8071,10 @@ const Ql = {
8071
8071
  "submit:form",
8072
8072
  ro(_e(f.value), x.value),
8073
8073
  A.value
8074
- ), c(), U();
8074
+ ), c(), L();
8075
8075
  }
8076
8076
  function oe() {
8077
- c(), U();
8077
+ c(), L();
8078
8078
  }
8079
8079
  const { isAtMost: ke } = ci(), Ce = H(null), we = fo(Ce);
8080
8080
  return (q, W) => (k(), Y(ve, null, [
@@ -8498,7 +8498,7 @@ const cn = ai("item-manager", () => {
8498
8498
  const O = D.modules.scheduler.find(
8499
8499
  (y) => y._id === R._id
8500
8500
  );
8501
- await new Nt(O, e, a.updateMenu, t).update();
8501
+ await new Lt(O, e, a.updateMenu, t).update();
8502
8502
  });
8503
8503
  }
8504
8504
  async function f(_) {
@@ -8557,7 +8557,7 @@ const cn = ai("item-manager", () => {
8557
8557
  const y = _.find((M) => M._id === O._id);
8558
8558
  return y ? [...D, { ...O, price: y.price }] : [...D, O];
8559
8559
  }, []);
8560
- await new Nt(
8560
+ await new Lt(
8561
8561
  {
8562
8562
  ...R,
8563
8563
  items: I
@@ -8646,7 +8646,7 @@ const cn = ai("item-manager", () => {
8646
8646
  });
8647
8647
  }
8648
8648
  async function x(_) {
8649
- e.currentScheduler ? await new Nt(
8649
+ e.currentScheduler ? await new Lt(
8650
8650
  e.currentScheduler,
8651
8651
  e,
8652
8652
  a.updateMenu,
@@ -8689,7 +8689,7 @@ export {
8689
8689
  Tr as H,
8690
8690
  ta as I,
8691
8691
  oi as J,
8692
- Nt as K,
8692
+ Lt as K,
8693
8693
  Bi as L,
8694
8694
  bi as M,
8695
8695
  Ul as P,