@feedmepos/mf-menu 0.31.40-prod → 0.31.41-prod

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/{App-aWEH-ZEk.js → App-5Lzy8zHZ.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BnKXsQH-.js} +3 -3
  3. package/dist/{Catalog-BoFfFdn8.js → Catalog-s5b8V8nw.js} +8 -9
  4. package/dist/{Category-CWYbb3Jn.js → Category-BJzScJEY.js} +4 -4
  5. package/dist/{Category-DZ45uikR.js → Category-DZ-xqIMI.js} +6 -6
  6. package/dist/{CookingGuide-BU0PRWIQ.js → CookingGuide-Bkd6GPww.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Z5xsKDIE.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B8tIjKOW.js} +1 -1
  8. package/dist/{Group-BMQDeqiS.js → Group-0b2Qiov3.js} +1 -1
  9. package/dist/{Group-C0T_uknK.js → Group-BOaCcKiI.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DyfmY6F1.js → Group.vue_vue_type_script_setup_true_lang-DUlUfMAs.js} +8 -8
  11. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CouimeC4.js +399 -0
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DOvQmbrZ.js} +13 -14
  13. package/dist/{Ingredient-3lwDUQx_.js → Ingredient-ChcYUvOg.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DE1HkipX.js} +2 -2
  15. package/dist/LinkProductSideSheet-BdzBGYxG.js +361 -0
  16. package/dist/MenuSetting-zAAttaoA.js +618 -0
  17. package/dist/{PrintRoute-DfJ-vUAb.js → PrintRoute-T-vuO5N8.js} +4 -4
  18. package/dist/{Product-F4PoLm9v.js → Product-B5q291VF.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js → Product.vue_vue_type_script_setup_true_lang-DLRlT10W.js} +468 -465
  20. package/dist/{ProductInternalTools-DSGU-OqU.js → ProductInternalTools-BOlc0VUR.js} +5 -5
  21. package/dist/{Products-COzW2Z4g.js → Products-Cd4Mqhm3.js} +88 -85
  22. package/dist/{Publish-CDXVWCk2.js → Publish-SuRzt-_D.js} +3 -3
  23. package/dist/{Recipe-BZx4wrcP.js → Recipe-BKrjNs5g.js} +4 -4
  24. package/dist/{Scheduler-wHCWSeU2.js → Scheduler-DnDgImLC.js} +3 -3
  25. package/dist/{ServingSequence-BbYEhDYh.js → ServingSequence-D602bVnm.js} +3 -3
  26. package/dist/{Setting-C9Tlw1Iy.js → Setting-FMT4oBYH.js} +44 -45
  27. package/dist/{Subcategory-C8AwfrKb.js → Subcategory-CpYmjAvA.js} +4 -4
  28. package/dist/{Takeaway-t1053wg2.js → Takeaway-BXh3iuME.js} +1 -1
  29. package/dist/{Takeaway-DaEUn-yM.js → Takeaway-D4hjN5z5.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-7XycP5fU.js → Takeaway.vue_vue_type_script_setup_true_lang-By1f-FCO.js} +5 -5
  31. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-CZUwa5C_.js +440 -0
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DfjtfcCh.js} +604 -600
  33. package/dist/{Unit-CnqptGCz.js → Unit-CsjHkV-h.js} +2 -2
  34. package/dist/{Variant-DiOYOwJs.js → Variant-Djra14ZX.js} +3 -3
  35. package/dist/{_id_-BSfU16VO.js → _id_-BXkqoCzB.js} +78 -75
  36. package/dist/{app-Ddb81PNo.js → app-CVqWWV4x.js} +278 -278
  37. package/dist/{LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js → app-CiBqmBzO.js} +2120 -2084
  38. package/dist/{app-Cou6qPF2.js → app-PhBJNss_.js} +1 -1
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/api/menu.d.ts +2 -1
  41. package/dist/apps/mf-menu/src/app.d.ts +144 -0
  42. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +36 -0
  43. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +9 -3
  44. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +294 -4
  45. package/dist/apps/mf-menu/src/composable/attributes.d.ts +26 -0
  46. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +40 -0
  47. package/dist/apps/mf-menu/src/helper/import-export.d.ts +285 -0
  48. package/dist/apps/mf-menu/src/helper/menu.d.ts +285 -0
  49. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +285 -0
  50. package/dist/apps/mf-menu/src/stores/menu.d.ts +293 -3
  51. package/dist/apps/mf-menu/src/utils/array.d.ts +1 -0
  52. package/dist/apps/mf-menu/src/utils/customAttributes.d.ts +12 -0
  53. package/dist/apps/mf-menu/src/views/MenuSetting/LinkProductRuleGroups.vue.d.ts +2 -0
  54. package/dist/apps/mf-menu/src/views/MenuSetting/RuleGroupSideSheet.vue.d.ts +176 -0
  55. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +166 -0
  56. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  57. package/dist/assets/linked-status-WlVAcpRn.js +13 -0
  58. package/dist/assets/override-menu-__h4D7ac.js +13 -0
  59. package/dist/assets/validate-menu-DyPuzLRg.js +13 -0
  60. package/dist/{catalog-DSuJhsUb.js → catalog-C_TuQLxq.js} +1 -1
  61. package/dist/{catalogSetting-C3gEw9ov.js → catalogSetting-BUlJu6hG.js} +1 -1
  62. package/dist/{category-CwWq3KCE.js → category-CmVw1Kj-.js} +1 -1
  63. package/dist/{currency-g45Sh-t6.js → currency-OhOTnAqk.js} +1 -1
  64. package/dist/customAttributes-fpOfmGnw.js +180 -0
  65. package/dist/{dayjs.min-g3eN5z-V.js → dayjs.min-CDhP-7L5.js} +1 -1
  66. package/dist/{index-QsLFbxyG.js → index-BJZEWB5C.js} +4 -4
  67. package/dist/{index-BLQCYEc6.js → index-DHAYGEPp.js} +7 -8
  68. package/dist/{index-0yRUi7LL.js → index-DtwHmS38.js} +1 -1
  69. package/dist/index-N3cGc8ex.js +245 -0
  70. package/dist/{item-BvvQ9urP.js → item-BELLphR0.js} +16 -16
  71. package/dist/{jszip.min-DzdUiaR4.js → jszip.min-CZtcGb7A.js} +353 -353
  72. package/dist/{menu-QrVg2Ph7.js → menu-Csyr6W9A.js} +7 -7
  73. package/dist/{menu-DFNvhoNQ.js → menu-DS_ERmBf.js} +23355 -23206
  74. package/dist/{menuV2-Ezf_jW40.js → menuV2-DKzAZ4Ss.js} +151 -146
  75. package/dist/mf-menu.css +1 -1
  76. package/dist/{priceTier-zENsn3P_.js → priceTier-CYWS5lDS.js} +1 -1
  77. package/dist/{scheduler-BuwGSv6A.js → scheduler-DI5dXC7Y.js} +8 -8
  78. package/dist/{subcategory-O3L_zCJA.js → subcategory-D_ao-IV9.js} +2 -2
  79. package/dist/{toExcel-CpRy_4nG.js → toExcel-Cml-rkJQ.js} +2 -2
  80. package/dist/{unit-Ct_7Hfa2.js → unit-BWDp2LkV.js} +42 -41
  81. package/package.json +3 -3
  82. package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +0 -50
  83. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js +0 -367
  84. package/dist/LinkProductSideSheet-LDZjKX95.js +0 -297
  85. package/dist/MenuSetting-AhutsCVy.js +0 -185
  86. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js +0 -431
  87. package/dist/assets/linked-status-B_crHhZH.js +0 -24
  88. package/dist/assets/override-menu-BmlCEpHH.js +0 -24
  89. package/dist/assets/validate-menu-CF-psoB-.js +0 -24
  90. package/dist/index-0Q5T9VZV.js +0 -214
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as Z, ref as v, computed as $, resolveComponent as G, createElementBlock as c, openBlock as r, createElementVNode as s, createVNode as I, unref as h, createCommentVNode as T, normalizeClass as E, toDisplayString as U, createStaticVNode as B, Fragment as P, renderList as R, createBlock as oe, withCtx as A } from "vue";
2
- import { J as O, F as ne } from "./jszip.min-DzdUiaR4.js";
3
- import { G as le, u as ie, I as D, a0 as re, $ as ce, K as de, M as me, N as ue } from "./menu-DFNvhoNQ.js";
2
+ import { J as O, F as ne } from "./jszip.min-CZtcGb7A.js";
3
+ import { G as le, u as ie, I as D, a0 as re, $ as ce, K as de, M as me, N as ue } from "./menu-DS_ERmBf.js";
4
4
  import { useI18n as ge } from "@feedmepos/mf-common";
5
5
  import { FmButtonVariant as z, useSnackbar as V, useDialog as pe, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
6
6
  import { _ as fe } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { u as he, a as ye } from "./menu-QrVg2Ph7.js";
8
- import { a as be } from "./Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js";
9
- import { v as ve, w as _e } from "./item-BvvQ9urP.js";
7
+ import { u as he, a as ye } from "./menu-Csyr6W9A.js";
8
+ import { a as be } from "./Product.vue_vue_type_script_setup_true_lang-DLRlT10W.js";
9
+ import { v as ve, w as _e } from "./item-BELLphR0.js";
10
10
  const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center justify-between p-16 border-b border-gray-200" }, Ie = { class: "flex gap-8" }, ke = { class: "border-b border-gray-200" }, Ce = { class: "flex" }, Ue = { class: "flex-1 overflow-hidden" }, je = {
11
11
  key: 0,
12
12
  class: "h-full flex flex-col"
@@ -1,21 +1,21 @@
1
- import { defineComponent as Y, computed as v, ref as q, resolveComponent as w, createBlock as y, openBlock as p, unref as e, withCtx as d, createElementVNode as u, toDisplayString as G, createVNode as o, createCommentVNode as O, createElementBlock as H, Fragment as N } from "vue";
2
- import { D as S } from "./dayjs.min-g3eN5z-V.js";
3
- import { M as te, w as oe } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js";
4
- import { J as ne, F as ae } from "./jszip.min-DzdUiaR4.js";
5
- import { u as j, G as J, B, e as P, A as Z, D as re, H as A, I as R } from "./menu-DFNvhoNQ.js";
6
- import { useCoreStore as se, useI18n as ie } from "@feedmepos/mf-common";
7
- import { useDialog as K, useDialogChild as le, useSnackbar as Q, useBreakpoints as ue, FmButtonVariant as $, FmButtonColorThemeVariant as x } from "@feedmepos/ui-library";
1
+ import { defineComponent as Y, computed as v, ref as G, resolveComponent as w, createBlock as y, openBlock as p, unref as e, withCtx as d, createElementVNode as u, toDisplayString as O, createVNode as o, createCommentVNode as j, createElementBlock as N, Fragment as B } from "vue";
2
+ import { D as S } from "./dayjs.min-CDhP-7L5.js";
3
+ import { M as oe, w as ne } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DOvQmbrZ.js";
4
+ import { J as ae, F as re } from "./jszip.min-CZtcGb7A.js";
5
+ import { u as J, G as Z, B as P, e as A, A as K, D as se, H as R, I as z } from "./menu-DS_ERmBf.js";
6
+ import { useCoreStore as ie, useI18n as le } from "@feedmepos/mf-common";
7
+ import { useDialog as Q, useDialogChild as ue, useSnackbar as W, useBreakpoints as ce, FmButtonVariant as $, FmButtonColorThemeVariant as x } from "@feedmepos/ui-library";
8
8
  import { _ as V } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
9
- import { _ as me, a as z } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
10
- import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
11
- import { u as de, a as pe } from "./menu-QrVg2Ph7.js";
12
- import { u as fe } from "./item-BvvQ9urP.js";
13
- import { _ as L, a as _e } from "./Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js";
14
- import { L as U } from "./LinkProductSideSheet-LDZjKX95.js";
15
- import { _ as ve } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js";
16
- import { u as ge } from "./Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js";
17
- import { m as be } from "./toExcel-CpRy_4nG.js";
18
- const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "flex justify-end gap-8" }, Me = /* @__PURE__ */ Y({
9
+ import { _ as me, a as L } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
10
+ import { _ as de } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
11
+ import { u as pe, a as fe } from "./menu-Csyr6W9A.js";
12
+ import { u as _e } from "./item-BELLphR0.js";
13
+ import { _ as U, a as ve } from "./Product.vue_vue_type_script_setup_true_lang-DLRlT10W.js";
14
+ import { L as q } from "./LinkProductSideSheet-BdzBGYxG.js";
15
+ import { _ as ge } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DfjtfcCh.js";
16
+ import { u as be } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CZUwa5C_.js";
17
+ import { m as ye } from "./toExcel-Cml-rkJQ.js";
18
+ const ke = { class: "space-y-24 mb-24" }, xe = ["innerHTML"], Me = { class: "flex justify-end gap-8" }, he = /* @__PURE__ */ Y({
19
19
  __name: "ConfirmActionDialog",
20
20
  props: {
21
21
  description: {},
@@ -23,17 +23,17 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
23
23
  message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
24
24
  },
25
25
  setup(F) {
26
- const t = F, M = v(() => t.message.replace("[[value]]", t.value)), n = q(""), h = K(), { emitAction: k } = le();
26
+ const t = F, M = v(() => t.message.replace("[[value]]", t.value)), n = G(""), h = Q(), { emitAction: k } = ue();
27
27
  return (s, i) => {
28
- const f = w("FmTextField"), m = w("FmButton"), g = w("FmForm");
28
+ const f = w("FmTextField"), c = w("FmButton"), g = w("FmForm");
29
29
  return p(), y(g, {
30
30
  "on-validation-success": () => e(k)("primary"),
31
31
  "blame-form-child-on-validation-failed": ""
32
32
  }, {
33
33
  default: d(() => [
34
- u("div", ye, [
35
- u("div", null, G(s.description), 1),
36
- u("div", { innerHTML: M.value }, null, 8, ke),
34
+ u("div", ke, [
35
+ u("div", null, O(s.description), 1),
36
+ u("div", { innerHTML: M.value }, null, 8, xe),
37
37
  u("div", null, [
38
38
  o(f, {
39
39
  modelValue: n.value,
@@ -46,13 +46,13 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
46
46
  rules: [(l) => l === s.value || "Value does not match"]
47
47
  }, null, 8, ["modelValue", "placeholder", "rules"])
48
48
  ]),
49
- u("div", xe, [
50
- o(m, {
49
+ u("div", Me, [
50
+ o(c, {
51
51
  label: "Cancel",
52
52
  variant: "secondary",
53
53
  onClick: i[2] || (i[2] = (l) => e(h).close())
54
54
  }),
55
- o(m, {
55
+ o(c, {
56
56
  label: "Confirm",
57
57
  type: "submit"
58
58
  })
@@ -63,14 +63,14 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
63
63
  }, 8, ["on-validation-success"]);
64
64
  };
65
65
  }
66
- }), he = /* @__PURE__ */ Y({
66
+ }), Se = /* @__PURE__ */ Y({
67
67
  __name: "Migrate",
68
68
  setup(F) {
69
- const t = j(), M = se(), n = Q(), { minor: h } = J(n), k = q(!1), s = K();
69
+ const t = J(), M = ie(), n = W(), { minor: h } = Z(n), k = G(!1), s = Q();
70
70
  async function i() {
71
71
  f.value || k.value || s.open({
72
72
  title: "Migrate to new version",
73
- contentComponent: Me,
73
+ contentComponent: he,
74
74
  contentComponentProps: {
75
75
  value: "MIGRATE",
76
76
  description: "Do you want to migrate to new version? Once migrate it will unable to revert to the older version."
@@ -92,14 +92,14 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
92
92
  });
93
93
  }
94
94
  const f = v(() => {
95
- const m = M.restaurants.value;
96
- if (!m.length) return "Required at least one restaurant to migrate";
97
- const g = m.filter((b) => !b.posVersion || !B.Pos.canUse({ feature: P.F_FEATURE.enum.menuV4, posVersion: b.posVersion }));
98
- return g.length ? `Upgrade POS to V${B.Pos.minVersionToUse(P.F_FEATURE.enum.menuV4)} to use new menu: ${g.map((b) => b.profile.name).join(", ")}` : null;
95
+ const c = M.restaurants.value;
96
+ if (!c.length) return "Required at least one restaurant to migrate";
97
+ const g = c.filter((b) => !b.posVersion || !P.Pos.canUse({ feature: A.F_FEATURE.enum.menuV4, posVersion: b.posVersion }));
98
+ return g.length ? `Upgrade POS to V${P.Pos.minVersionToUse(A.F_FEATURE.enum.menuV4)} to use new menu: ${g.map((b) => b.profile.name).join(", ")}` : null;
99
99
  });
100
- return v(() => f.value ? f.value : "Migrate your menu to new version to enjoy more features. Content of new menu will remain the same as current."), (m, g) => {
100
+ return v(() => f.value ? f.value : "Migrate your menu to new version to enjoy more features. Content of new menu will remain the same as current."), (c, g) => {
101
101
  const l = w("FmSnackbar");
102
- return !f.value && e(t).version !== e(Z.F_MENU_VERSION).enum.v4 ? (p(), y(l, {
102
+ return !f.value && e(t).version !== e(K.F_MENU_VERSION).enum.v4 ? (p(), y(l, {
103
103
  key: 0,
104
104
  class: "!max-w-full",
105
105
  title: "New version of menu is out now!",
@@ -108,42 +108,42 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
108
108
  action: "Migrate",
109
109
  "z-index": 0,
110
110
  onOnAction: i
111
- })) : O("", !0);
111
+ })) : j("", !0);
112
112
  };
113
113
  }
114
- }), Se = { class: "flex-1 flex justify-between gap-8 pl-8" }, we = { class: "flex items-center" }, Ce = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Fe = { class: "fm-typo-en-body-md-600 font-semibold" }, $e = { class: "flex gap-8" }, Oe = /* @__PURE__ */ Y({
114
+ }), we = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ce = { class: "flex items-center" }, Fe = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, $e = { class: "fm-typo-en-body-md-600 font-semibold" }, Ve = { class: "flex gap-8" }, je = /* @__PURE__ */ Y({
115
115
  __name: "Products",
116
116
  setup(F) {
117
- const { t } = ie(), M = J(Q()), n = j(), h = v(() => n.rules.item), k = fe(), s = v(() => !n.state.currentSchedulerId), { selectedCategories: i } = de(), f = v(() => ({
118
- ...re.menuV4ToV3(A(n.state.menu)),
117
+ const { t } = le(), M = Z(W()), n = J(), h = v(() => n.rules.item), k = _e(), s = v(() => !n.state.currentSchedulerId), { selectedCategories: i } = pe(), f = v(() => ({
118
+ ...se.menuV4ToV3(R(n.state.menu)),
119
119
  _id: n.state.menu._id,
120
120
  _rev: n.state.menu._rev
121
- })), m = v(() => {
122
- const c = R.flatten(i.value.map((a) => a.items));
123
- return R.uniqBy(c, (a) => a._id).length;
121
+ })), c = v(() => {
122
+ const m = z.flatten(i.value.map((a) => a.items));
123
+ return z.uniqBy(m, (a) => a._id).length;
124
124
  });
125
- async function g(c, a) {
126
- const _ = new ne();
127
- for (let C = 0; C < c.length; C++) {
128
- const ee = await c[C].xlsx.writeBuffer();
129
- _.file(`${a[C]}.xlsx`, ee);
125
+ async function g(m, a) {
126
+ const _ = new ae();
127
+ for (let C = 0; C < m.length; C++) {
128
+ const te = await m[C].xlsx.writeBuffer();
129
+ _.file(`${a[C]}.xlsx`, te);
130
130
  }
131
131
  const r = await _.generateAsync({ type: "blob" });
132
- ae.saveAs(r, `books_${S().format("DD-MM-YYYY_HH-mm")}.zip`);
132
+ re.saveAs(r, `books_${S().format("DD-MM-YYYY_HH-mm")}.zip`);
133
133
  }
134
134
  async function l() {
135
135
  await M.minor(
136
136
  async () => {
137
- if (await n.readMenu(), n.version === Z.F_MENU_VERSION.enum.v4) {
138
- const c = A(n.state.menu), a = new te(c).exportToExcel(), _ = [
137
+ if (await n.readMenu(), n.version === K.F_MENU_VERSION.enum.v4) {
138
+ const m = R(n.state.menu), a = new oe(m).exportToExcel(), _ = [
139
139
  `menu_${S().format("DD-MM-YYYY_HH-mm")}`,
140
140
  `addonGroup_${S().format("DD-MM-YYYY_HH-mm")}`,
141
141
  `itemLinkedAddon${S().format("DD-MM-YYYY_HH-mm")}`
142
142
  ];
143
143
  g(a, _);
144
144
  } else {
145
- const c = be(f.value), a = `menu_${S().format("DD-MM-YYYY_HH-mm")}`;
146
- await oe(c, `${a}.xlsx`, {
145
+ const m = ye(f.value), a = `menu_${S().format("DD-MM-YYYY_HH-mm")}`;
146
+ await ne(m, `${a}.xlsx`, {
147
147
  bookType: "xlsx",
148
148
  bookSST: !1,
149
149
  type: "array"
@@ -155,37 +155,38 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
155
155
  }
156
156
  const {
157
157
  menuItems: b,
158
- linkItemRules: E,
159
- handleSubmit: D,
160
- catalogManager: T,
161
- schedulerManager: I
162
- } = ge(!1), W = ue(), X = v(() => W.breakpoints.value.xs);
163
- return pe().resetOnMount(), (c, a) => {
158
+ categories: E,
159
+ linkItemRules: D,
160
+ handleSubmit: T,
161
+ catalogManager: I,
162
+ schedulerManager: H
163
+ } = be(!1), X = ce(), ee = v(() => X.breakpoints.value.xs);
164
+ return fe().resetOnMount(), (m, a) => {
164
165
  const _ = w("fm-button");
165
- return p(), y(ce, {
166
+ return p(), y(de, {
166
167
  heading: e(t)("menu.products.title")
167
168
  }, {
168
169
  default: d(() => [
169
- o(he),
170
- o(_e)
170
+ o(Se),
171
+ o(ve)
171
172
  ]),
172
173
  "append-heading": d(() => [
173
- u("div", Se, [
174
- u("div", we, [
175
- u("div", Ce, [
176
- u("p", Fe, G(m.value), 1)
174
+ u("div", we, [
175
+ u("div", Ce, [
176
+ u("div", Fe, [
177
+ u("p", $e, O(c.value), 1)
177
178
  ])
178
179
  ]),
179
- u("div", $e, [
180
- X.value ? (p(), y(L, { key: 1 }, {
180
+ u("div", Ve, [
181
+ ee.value ? (p(), y(U, { key: 1 }, {
181
182
  default: d(({ trigger: r }) => [
182
183
  o(me, null, {
183
184
  default: d(() => [
184
- o(z, {
185
+ o(L, {
185
186
  label: e(t)("menu.products.actions.export"),
186
187
  onClick: l
187
188
  }, null, 8, ["label"]),
188
- o(z, {
189
+ o(L, {
189
190
  label: e(t)("menu.products.actions.import"),
190
191
  onClick: r
191
192
  }, null, 8, ["label", "onClick"])
@@ -194,8 +195,8 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
194
195
  }, 1024)
195
196
  ]),
196
197
  _: 1
197
- })) : (p(), H(N, { key: 0 }, [
198
- o(ve, null, {
198
+ })) : (p(), N(B, { key: 0 }, [
199
+ o(ge, null, {
199
200
  default: d(({ trigger: r }) => [
200
201
  o(_, {
201
202
  label: e(t)("menu.tree_editor.title"),
@@ -214,7 +215,7 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
214
215
  label: e(t)("menu.products.actions.export"),
215
216
  onClick: l
216
217
  }, null, 8, ["bg-color", "text-color", "variant", "label"]),
217
- o(L, null, {
218
+ o(U, null, {
218
219
  default: d(({ trigger: r }) => [
219
220
  o(_, {
220
221
  "bg-color": e(x).NeutralGray100,
@@ -227,21 +228,22 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
227
228
  _: 1
228
229
  })
229
230
  ], 64)),
230
- m.value > 0 ? (p(), H(N, { key: 2 }, [
231
+ c.value > 0 ? (p(), N(B, { key: 2 }, [
231
232
  h.value.create ? (p(), y(V, {
232
233
  key: 0,
233
234
  label: e(t)("menu.products.actions.add"),
234
235
  "prepend-icon": "add",
235
236
  onClick: a[0] || (a[0] = (r) => e(k).create(null))
236
- }, null, 8, ["label"])) : s.value ? (p(), y(U, {
237
+ }, null, 8, ["label"])) : s.value ? (p(), y(q, {
237
238
  key: 1,
238
- "categorized-items": e(T).linkableItems.value,
239
- "initial-value": e(T).currentItems.value,
239
+ "categorized-items": e(I).linkableItems.value,
240
+ "initial-value": e(I).currentItems.value,
240
241
  "show-variant": !1,
241
242
  "menu-items": e(b),
242
- "link-item-rules": e(E),
243
+ categories: e(E),
244
+ "link-item-rules": e(D),
243
245
  "no-scheduler": s.value,
244
- onSubmit: e(D)
246
+ onSubmit: e(T)
245
247
  }, {
246
248
  default: d(({ trigger: r }) => [
247
249
  o(V, {
@@ -251,15 +253,16 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
251
253
  }, null, 8, ["label", "onClick"])
252
254
  ]),
253
255
  _: 1
254
- }, 8, ["categorized-items", "initial-value", "menu-items", "link-item-rules", "no-scheduler", "onSubmit"])) : (p(), y(U, {
256
+ }, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (p(), y(q, {
255
257
  key: 2,
256
- "categorized-items": e(I).linkableItems.value,
257
- "initial-value": e(I).currentItems.value,
258
+ "categorized-items": e(H).linkableItems.value,
259
+ "initial-value": e(H).currentItems.value,
258
260
  "show-variant": !1,
259
261
  "menu-items": e(b),
260
- "link-item-rules": e(E),
262
+ categories: e(E),
263
+ "link-item-rules": e(D),
261
264
  "no-scheduler": s.value,
262
- onSubmit: e(D)
265
+ onSubmit: e(T)
263
266
  }, {
264
267
  default: d(({ trigger: r }) => [
265
268
  o(V, {
@@ -268,8 +271,8 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
268
271
  }, null, 8, ["label", "onClick"])
269
272
  ]),
270
273
  _: 1
271
- }, 8, ["categorized-items", "initial-value", "menu-items", "link-item-rules", "no-scheduler", "onSubmit"]))
272
- ], 64)) : O("", !0)
274
+ }, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"]))
275
+ ], 64)) : j("", !0)
273
276
  ])
274
277
  ])
275
278
  ]),
@@ -279,5 +282,5 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
279
282
  }
280
283
  });
281
284
  export {
282
- Oe as default
285
+ je as default
283
286
  };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as K, ref as I, computed as S, onMounted as ne, resolveComponent as C, createElementBlock as R, openBlock as h, createVNode as n, createElementVNode as o, toDisplayString as F, unref as i, Fragment as E, renderList as j, createBlock as O, withCtx as L, createCommentVNode as ue, withModifiers as z, h as H } from "vue";
2
- import { D as X } from "./dayjs.min-g3eN5z-V.js";
2
+ import { D as X } from "./dayjs.min-CDhP-7L5.js";
3
3
  import { useRouter as ie } from "vue-router";
4
- import { B as re, e as ce, G as Z, a8 as de, H as J, I as me, u as pe, A as ge, a0 as ve } from "./menu-DFNvhoNQ.js";
4
+ import { B as re, e as ce, G as Z, a8 as de, H as J, I as me, u as pe, A as ge, a0 as ve } from "./menu-DS_ERmBf.js";
5
5
  import { useI18n as Y, useCoreStore as be, RestaurantSelector as fe } from "@feedmepos/mf-common";
6
6
  import { useSnackbar as ee, useDialogChild as _e, useDialog as he, components as Q } from "@feedmepos/ui-library";
7
7
  import { _ as ye } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
8
- import { _ as Ce } from "./app-Ddb81PNo.js";
8
+ import { _ as Ce } from "./app-CVqWWV4x.js";
9
9
  import { a as ke, w as we } from "./tooltip-B5BiPMx9.js";
10
10
  import { u as xe } from "./discardConfirm-BHni0LNu.js";
11
11
  import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
@@ -2,15 +2,15 @@ import { defineComponent as z, computed as h, ref as w, reactive as Q, watch as
2
2
  import { useI18n as U } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as A, components as j, useDialog as ne, FmButtonVariant as G, useBreakpoints as oe } from "@feedmepos/ui-library";
4
4
  import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as le } from "./app-Ddb81PNo.js";
6
- import { O as q, G as $, H as ie, D as P, I as se, e as Y, J as I, A as T, u as H } from "./menu-DFNvhoNQ.js";
5
+ import { _ as le } from "./app-CVqWWV4x.js";
6
+ import { O as q, G as $, H as ie, D as P, I as se, e as Y, J as I, A as T, u as H } from "./menu-DS_ERmBf.js";
7
7
  import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
8
8
  import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
9
9
  import { defineStore as ue } from "pinia";
10
- import { _ as B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js";
10
+ import { _ as B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-DE1HkipX.js";
11
11
  import { u as de } from "./discardConfirm-BHni0LNu.js";
12
12
  import { c as pe } from "./check-C9mY6LiX.js";
13
- import "./unit-Ct_7Hfa2.js";
13
+ import "./unit-BWDp2LkV.js";
14
14
  import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
15
15
  const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ z({
16
16
  __name: "Form",
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as N, computed as y, h as c, withModifiers as U, ref as V, resolveComponent as _, createBlock as k, openBlock as d, unref as m, withCtx as h, createElementBlock as D, createVNode as f, Fragment as H, createElementVNode as l, renderList as T, toDisplayString as S, createCommentVNode as I } from "vue";
2
- import { A as i, O as W, u as G, G as Q } from "./menu-DFNvhoNQ.js";
2
+ import { A as i, O as W, u as G, G as Q } from "./menu-DS_ERmBf.js";
3
3
  import { useI18n as J } from "@feedmepos/mf-common";
4
4
  import { components as X, useDialog as Z, useSnackbar as ee } from "@feedmepos/ui-library";
5
5
  import { _ as te } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
6
- import { _ as ne } from "./app-Ddb81PNo.js";
7
- import { d as ae, _ as oe, u as se, c as le } from "./scheduler-BuwGSv6A.js";
6
+ import { _ as ne } from "./app-CVqWWV4x.js";
7
+ import { d as ae, _ as oe, u as se, c as le } from "./scheduler-DI5dXC7Y.js";
8
8
  import { _ as re } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
9
9
  import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
10
10
  const ce = {
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as J, ref as L, computed as O, resolveComponent as h, createElementBlock as g, openBlock as d, Fragment as x, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as y, toDisplayString as z, onBeforeMount as oe, watch as F, watchEffect as se, h as $, getCurrentInstance as le, onMounted as re, createBlock as j, createCommentVNode as G, isRef as ie, normalizeClass as Q, renderList as ue } from "vue";
2
2
  import { useRouter as ce } from "vue-router";
3
- import { H, u as W, G as X, O as Z, J as I, A as S } from "./menu-DFNvhoNQ.js";
3
+ import { H, u as W, G as X, O as Z, J as I, A as S } from "./menu-DS_ERmBf.js";
4
4
  import { useI18n as ee, ItemSelector as de, useCoreStore as me } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as ne, components as Y, useDialog as pe, FmButtonVariant as A, useBreakpoints as _e } from "@feedmepos/ui-library";
6
6
  import { _ as fe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
7
- import { _ as ge, R as ve } from "./app-Ddb81PNo.js";
7
+ import { _ as ge, R as ve } from "./app-CVqWWV4x.js";
8
8
  import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
9
9
  import { c as ye } from "./check-C9mY6LiX.js";
10
10
  import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
11
11
  import { u as ke } from "./search-BAPEUu1R.js";
12
- import { u as xe } from "./app-Cou6qPF2.js";
12
+ import { u as xe } from "./app-PhBJNss_.js";
13
13
  import { c as Se } from "./createComponentProgrammatically-Bt2rn1IQ.js";
14
14
  const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex flex-col h-full" }, Ee = { class: "flex gap-8 items-center justify-start" }, Ve = /* @__PURE__ */ J({
15
15
  __name: "Form",
@@ -1,12 +1,11 @@
1
- import { defineComponent as ne, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as V, openBlock as r, normalizeClass as z, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as k, unref as e, Fragment as D, renderList as B, createTextVNode as re, toDisplayString as N } from "vue";
2
- import { u as me, G as ce, A as f, O as de, B as pe, H as w } from "./menu-DFNvhoNQ.js";
1
+ import { defineComponent as oe, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as V, openBlock as r, normalizeClass as z, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as k, unref as e, Fragment as D, renderList as B, createTextVNode as re, toDisplayString as N } from "vue";
2
+ import { u as me, G as ce, A as f, O as de, B as pe, H as w } from "./menu-DS_ERmBf.js";
3
3
  import { useCoreStore as ve, useI18n as ge } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as fe, useDialog as _e, FmButtonVariant as $, FmButtonColorThemeVariant as P, components as be } from "@feedmepos/ui-library";
5
- import { a as E } from "./LinkProductSideSheet-LDZjKX95.js";
6
- import { _ as ye } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
7
- import { _ as H, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js";
8
- import { C as _, a as x } from "./catalogSetting-C3gEw9ov.js";
9
- import { C as xe } from "./catalog-DSuJhsUb.js";
5
+ import { _ as ye, a as E } from "./customAttributes-fpOfmGnw.js";
6
+ import { _ as H, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CouimeC4.js";
7
+ import { C as _, a as x } from "./catalogSetting-BUlJu6hG.js";
8
+ import { C as xe } from "./catalog-C_TuQLxq.js";
10
9
  const Ce = {
11
10
  class: /* @__PURE__ */ z(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16", "pt-16"])
12
11
  }, Oe = {
@@ -26,16 +25,16 @@ const Ce = {
26
25
  class: "fm-typo-en-body-md-400"
27
26
  }, he = {
28
27
  class: "flex justify-end"
29
- }, He = /* @__PURE__ */ ne({
28
+ }, Pe = /* @__PURE__ */ oe({
30
29
  __name: "Setting",
31
30
  setup(Ne) {
32
31
  const F = ve(), u = me(), j = fe(), A = ce(j), {
33
32
  minor: q
34
33
  } = A, G = _e(), {
35
- t: n
34
+ t: o
36
35
  } = ge(), O = p(() => u.currentCatalog), b = p(() => !O.value), S = p(() => u.version === f.F_MENU_VERSION.enum.v4), {
37
36
  updateMenu: J
38
- } = de(A), l = se(_.initCatalogSetting()), W = p(() => u.catalogs.filter((t) => t._id !== u.state.currentCatalogId).map((t) => t.name)), Y = p(() => u.state.restaurants.filter((t) => [...t.additionalCatalogs, t.inHouseDelivery, ...t.linkedDeliveryCatalogs.map((o) => o.catalog), t.pickupCatalog, t.takeawayCatalog, t.catalogId].includes(u.state.currentCatalogId)).map((t) => t.name));
37
+ } = de(A), l = se(_.initCatalogSetting()), W = p(() => u.catalogs.filter((t) => t._id !== u.state.currentCatalogId).map((t) => t.name)), Y = p(() => u.state.restaurants.filter((t) => [...t.additionalCatalogs, t.inHouseDelivery, ...t.linkedDeliveryCatalogs.map((n) => n.catalog), t.pickupCatalog, t.takeawayCatalog, t.catalogId].includes(u.state.currentCatalogId)).map((t) => t.name));
39
38
  function T() {
40
39
  return Y.value.length > 0 ? s("div", {
41
40
  class: ["flex items-center", "bg-fm-color-system-warning-100", "rounded-lg", "py-16 px-24 space-x-8"]
@@ -44,7 +43,7 @@ const Ce = {
44
43
  name: "warning"
45
44
  }, null), s("p", {
46
45
  class: "fm-typo-en-body-lg-400"
47
- }, [n("menu.setting.catalog.warnings.delivery")])]) : null;
46
+ }, [o("menu.setting.catalog.warnings.delivery")])]) : null;
48
47
  }
49
48
  function I() {
50
49
  const t = O.value;
@@ -63,7 +62,7 @@ const Ce = {
63
62
  });
64
63
  });
65
64
  function K(t) {
66
- const o = l.value.taxSetting, i = o.mode === x.AUTO ? _.manualTax(R.value) : w(o);
65
+ const n = l.value.taxSetting, i = n.mode === x.AUTO ? _.manualTax(R.value) : w(n);
67
66
  i.inclusive ?? (i.inclusive = []);
68
67
  const d = i.inclusive.findIndex((C) => C.systemCode === t.systemCode);
69
68
  d < 0 ? i.inclusive.push(t) : i.inclusive.splice(d, 1, t), U.value = i;
@@ -90,49 +89,49 @@ const Ce = {
90
89
  customId: u.state.menu._id
91
90
  });
92
91
  };
93
- function X(t, o) {
92
+ function X(t, n) {
94
93
  const i = w(l.value);
95
- i.markupOptions && (i.markupOptions[t] = o, l.value = i);
94
+ i.markupOptions && (i.markupOptions[t] = n, l.value = i);
96
95
  }
97
96
  function Z(t) {
98
- const o = w(l.value);
99
- o.markupOptions && (o.markupOptions.splice(t, 1), l.value = o);
97
+ const n = w(l.value);
98
+ n.markupOptions && (n.markupOptions.splice(t, 1), l.value = n);
100
99
  }
101
- return (t, o) => {
102
- const i = m("fm-text-field"), d = m("fm-radio"), C = m("fm-radio-group"), ee = m("fm-checkbox"), L = m("fm-switch"), te = m("fm-select"), h = m("fm-button"), ae = m("fm-chip"), le = m("fm-card"), oe = m("fm-form");
103
- return r(), V("div", Ce, [s(oe, {
100
+ return (t, n) => {
101
+ const i = m("fm-text-field"), d = m("fm-radio"), C = m("fm-radio-group"), ee = m("fm-checkbox"), L = m("fm-switch"), te = m("fm-select"), h = m("fm-button"), ae = m("fm-chip"), le = m("fm-card"), ne = m("fm-form");
102
+ return r(), V("div", Ce, [s(ne, {
104
103
  class: z(["space-y-40 max-w-[751px]", "h-fit"]),
105
104
  "blame-form-child-on-validation-failed": "",
106
105
  onValidationSuccess: Q
107
106
  }, {
108
107
  default: c(() => [v("div", Oe, [b.value ? k("", !0) : (r(), g(ye, {
109
108
  key: 0,
110
- title: e(n)("menu.setting.catalog.title")
109
+ title: e(o)("menu.setting.catalog.title")
111
110
  }, {
112
111
  default: c(() => [s(i, {
113
112
  modelValue: l.value.name,
114
- "onUpdate:modelValue": o[0] || (o[0] = (a) => l.value.name = a),
115
- rules: [(a) => !W.value.includes(a.trim()) || e(n)("menu.setting.catalog.fields.name.used"), (a) => !!a.trim() || e(n)("menu.setting.catalog.fields.name.required")],
116
- label: e(n)("menu.setting.catalog.fields.name.label")
113
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => l.value.name = a),
114
+ rules: [(a) => !W.value.includes(a.trim()) || e(o)("menu.setting.catalog.fields.name.used"), (a) => !!a.trim() || e(o)("menu.setting.catalog.fields.name.required")],
115
+ label: e(o)("menu.setting.catalog.fields.name.label")
117
116
  }, null, 8, ["modelValue", "rules", "label"]), s(T)]),
118
117
  _: 1
119
118
  }, 8, ["title"])), s(E, {
120
- label: e(n)("menu.setting.tax.title")
119
+ label: e(o)("menu.setting.tax.title")
121
120
  }, {
122
121
  default: c(() => [s(C, {
123
122
  "model-value": l.value.taxSetting.mode,
124
- "onUpdate:modelValue": o[1] || (o[1] = (a) => {
123
+ "onUpdate:modelValue": n[1] || (n[1] = (a) => {
125
124
  a === e(x).AUTO ? U.value = e(_).autoTax() : U.value = e(_).manualTax(R.value);
126
125
  })
127
126
  }, {
128
127
  default: c(() => [s(d, {
129
128
  value: e(x).AUTO,
130
- label: e(n)("menu.setting.tax.modes.auto.label"),
131
- sublabel: e(n)("menu.setting.tax.modes.auto.sublabel")
129
+ label: e(o)("menu.setting.tax.modes.auto.label"),
130
+ sublabel: e(o)("menu.setting.tax.modes.auto.sublabel")
132
131
  }, null, 8, ["value", "label", "sublabel"]), s(d, {
133
132
  value: e(x).MANUAL,
134
- label: e(n)("menu.setting.tax.modes.manual.label"),
135
- sublabel: e(n)("menu.setting.tax.modes.manual.sublabel")
133
+ label: e(o)("menu.setting.tax.modes.manual.label"),
134
+ sublabel: e(o)("menu.setting.tax.modes.manual.sublabel")
136
135
  }, null, 8, ["value", "label", "sublabel"])]),
137
136
  _: 1
138
137
  }, 8, ["model-value"]), l.value.taxSetting.mode === e(x).MANUAL ? (r(), V("div", Se, [(r(!0), V(D, null, B(R.value, (a) => (r(), g(ee, {
@@ -150,14 +149,14 @@ const Ce = {
150
149
  _: 1
151
150
  }, 8, ["label"]), !b.value && S.value ? (r(), g(E, {
152
151
  key: 1,
153
- label: e(n)("menu.setting.link.title")
152
+ label: e(o)("menu.setting.link.title")
154
153
  }, {
155
154
  default: c(() => [s(L, {
156
155
  "model-value": l.value.orderFrom && l.value.orderFrom !== e(f.F_ORDER_FROM).enum.NONE,
157
- label: e(n)("menu.setting.link.auto_link.label"),
156
+ label: e(o)("menu.setting.link.auto_link.label"),
158
157
  "label-placement": "right",
159
- sublabel: e(n)("menu.setting.link.auto_link.sublabel"),
160
- "onUpdate:modelValue": o[2] || (o[2] = (a) => l.value.orderFrom = a ? e(f.F_ORDER_FROM).enum.ALL : e(f.F_ORDER_FROM).enum.NONE)
158
+ sublabel: e(o)("menu.setting.link.auto_link.sublabel"),
159
+ "onUpdate:modelValue": n[2] || (n[2] = (a) => l.value.orderFrom = a ? e(f.F_ORDER_FROM).enum.ALL : e(f.F_ORDER_FROM).enum.NONE)
161
160
  }, null, 8, ["model-value", "label", "sublabel"]), l.value.orderFrom !== e(f.F_ORDER_FROM).enum.NONE ? (r(), g(te, {
162
161
  key: 0,
163
162
  class: "ml-[60px]",
@@ -169,24 +168,24 @@ const Ce = {
169
168
  value: e(f.F_ORDER_FROM).enum.POS_ONLY
170
169
  }],
171
170
  "model-value": l.value.orderFrom,
172
- "onUpdate:modelValue": o[3] || (o[3] = (a) => l.value.orderFrom = a)
171
+ "onUpdate:modelValue": n[3] || (n[3] = (a) => l.value.orderFrom = a)
173
172
  }, null, 8, ["items", "model-value"])) : k("", !0)]),
174
173
  _: 1
175
174
  }, 8, ["label"])) : k("", !0), !b.value && S.value ? (r(), g(E, {
176
175
  key: 2,
177
- label: e(n)("menu.setting.markup.title")
176
+ label: e(o)("menu.setting.markup.title")
178
177
  }, {
179
178
  default: c(() => [s(L, {
180
179
  "model-value": !!l.value.markupOptions,
181
- label: e(n)("menu.setting.markup.auto_markup.label"),
180
+ label: e(o)("menu.setting.markup.auto_markup.label"),
182
181
  "label-placement": "right",
183
- sublabel: e(n)("menu.setting.markup.auto_markup.sublabel"),
184
- "onUpdate:modelValue": o[4] || (o[4] = (a) => l.value.markupOptions = a ? [] : null)
182
+ sublabel: e(o)("menu.setting.markup.auto_markup.sublabel"),
183
+ "onUpdate:modelValue": n[4] || (n[4] = (a) => l.value.markupOptions = a ? [] : null)
185
184
  }, null, 8, ["model-value", "label", "sublabel"]), v("div", Me, [s(H, {
186
185
  categories: e(u).categories,
187
186
  items: e(u).items,
188
187
  action: "add",
189
- "onUpdate:modelValue": o[5] || (o[5] = (a) => {
188
+ "onUpdate:modelValue": n[5] || (n[5] = (a) => {
190
189
  a && (l.value.markupOptions = [...l.value.markupOptions ?? [], a]);
191
190
  })
192
191
  }, {
@@ -224,11 +223,11 @@ const Ce = {
224
223
  }, {
225
224
  default: c(() => [re(" Markup percentage: " + N(a.percentage) + "% ", 1)]),
226
225
  _: 2
227
- }, 1024), v("p", Re, N(e(n)("menu.setting.markup.config", {
226
+ }, 1024), v("p", Re, N(e(o)("menu.setting.markup.config", {
228
227
  number: y + 1
229
- })), 1), v("p", Ue, N(a.includeItems ? e(n)("menu.setting.markup.products.linked", {
228
+ })), 1), v("p", Ue, N(a.includeItems ? e(o)("menu.setting.markup.products.linked", {
230
229
  count: a.includeItems.length
231
- }) : e(n)("menu.setting.markup.products.all")), 1)]), s(h, {
230
+ }) : e(o)("menu.setting.markup.products.all")), 1)]), s(h, {
232
231
  variant: e($).Tertiary,
233
232
  "prepend-icon": "delete",
234
233
  onClick: (we) => Z(y)
@@ -240,13 +239,13 @@ const Ce = {
240
239
  _: 1
241
240
  }, 8, ["label"])) : k("", !0), s(ke, {
242
241
  modelValue: l.value,
243
- "onUpdate:modelValue": o[6] || (o[6] = (a) => l.value = a),
242
+ "onUpdate:modelValue": n[6] || (n[6] = (a) => l.value = a),
244
243
  "is-main-catalog": b.value,
245
244
  "is-v4": S.value
246
245
  }, null, 8, ["modelValue", "is-main-catalog", "is-v4"]), b.value ? (r(), g(T, {
247
246
  key: 3
248
247
  })) : k("", !0)]), v("div", he, [s(h, {
249
- label: e(n)("common.save"),
248
+ label: e(o)("common.save"),
250
249
  type: "submit"
251
250
  }, null, 8, ["label"])])]),
252
251
  _: 1
@@ -255,5 +254,5 @@ const Ce = {
255
254
  }
256
255
  });
257
256
  export {
258
- He as default
257
+ Pe as default
259
258
  };