@feedmepos/mf-menu 0.32.7-beta.2 → 0.32.7-dev

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 (87) hide show
  1. package/dist/{App-BIQ0CTci.js → App-DCkQc7e4.js} +98 -98
  2. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js +161 -0
  3. package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +74 -0
  4. package/dist/{Catalog-D2wc24o8.js → Catalog-CUPoRid3.js} +9 -9
  5. package/dist/{Category-DA5-55d2.js → Category-BkvhZ57Y.js} +7 -7
  6. package/dist/{Category-BPufryqK.js → Category-Cdw0ikhP.js} +4 -4
  7. package/dist/{CookingGuide-DKvou40e.js → CookingGuide-BZ-4oULM.js} +6 -6
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DHoAYdGI.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js} +3 -3
  9. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +26 -0
  10. package/dist/{Group-D60oAvmM.js → Group-C1FaXdUb.js} +1 -1
  11. package/dist/{Group-Bgpc6qE1.js → Group-Cec83DWm.js} +4 -4
  12. package/dist/{Group.vue_vue_type_script_setup_true_lang-BXn3--BL.js → Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js} +128 -128
  13. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BD9IZkwW.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js} +91 -91
  14. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BE3LdBYY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js} +3225 -3225
  15. package/dist/{Ingredient-Brv4hml-.js → Ingredient-DulL8h2B.js} +29 -29
  16. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIOX-pq1.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js} +104 -104
  17. package/dist/{LinkProductSideSheet-BDMbKJ8o.js → LinkProductSideSheet-Br2eE8pC.js} +251 -251
  18. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +69 -0
  19. package/dist/{MenuSetting-DvCu23my.js → MenuSetting-DxW4LCW4.js} +77 -77
  20. package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js → PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js} +8 -8
  21. package/dist/{PrintRoute-DwgLKDUV.js → PrintRoute-Da6Zkx-0.js} +5 -5
  22. package/dist/{Product-EmoWM778.js → Product-Cs76t18_.js} +1 -1
  23. package/dist/{Product.vue_vue_type_script_setup_true_lang-5HyO_RYw.js → Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js} +606 -606
  24. package/dist/{ProductInternalTools-PqzouaF2.js → ProductInternalTools-DPbeRvTM.js} +10 -10
  25. package/dist/{Products-ZgfTT9dI.js → Products--7dGfuuT.js} +52 -52
  26. package/dist/{Publish-CUdRwmN1.js → Publish-COmZtiyX.js} +5 -5
  27. package/dist/{Recipe-BRUxyire.js → Recipe-BaN_1zrP.js} +5 -5
  28. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CPFGkaTr.js → RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js} +451 -448
  29. package/dist/{Scheduler-BXdZh-xC.js → Scheduler-BSUpIAaK.js} +4 -4
  30. package/dist/{ServingSequence-EAZHOHiy.js → ServingSequence-dXBb7e5d.js} +4 -4
  31. package/dist/{Setting-BRut_Xj0.js → Setting-CalEQW0n.js} +6 -6
  32. package/dist/{Subcategory-D6Yrs-vO.js → Subcategory-zPHtX7Vc.js} +5 -5
  33. package/dist/{Takeaway-Bi8JfDWa.js → Takeaway-CRDj2Bpe.js} +5 -5
  34. package/dist/{Takeaway-CRdlNTu7.js → Takeaway-CcnmeTmu.js} +1 -1
  35. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DKQZ9J8Z.js → Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js} +5 -5
  36. package/dist/{TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js → TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js} +5 -5
  37. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DDWk-WUW.js → Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js} +74 -74
  38. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +6038 -0
  39. package/dist/{Unit-Ccs_k5IS.js → Unit-C7-Oj5S3.js} +3 -3
  40. package/dist/{Variant-BHmgMXq7.js → Variant-CYiMkE0q.js} +4 -4
  41. package/dist/{_id_-DSSoi4Gy.js → _id_-D75ZcNlf.js} +11 -11
  42. package/dist/{app-CzXxFrl1.js → app-5fxKLAzS.js} +447 -447
  43. package/dist/{app-C8Dm2-h4.js → app-BhLVpUSl.js} +35 -35
  44. package/dist/{app-B9seAt5l.js → app-DzVMOviz.js} +1 -1
  45. package/dist/app.js +1 -1
  46. package/dist/apps/mf-menu/src/app.d.ts +20 -0
  47. package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
  48. package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +1 -1
  49. package/dist/apps/mf-menu/src/components/feature/SubcategoryManager/SubcategorySelector.vue.d.ts +1 -1
  50. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +2 -1
  51. package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
  52. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  53. package/dist/assets/linked-status-BoIPm5hC.js +13 -0
  54. package/dist/assets/override-menu-DfTrwWpR.js +13 -0
  55. package/dist/assets/validate-menu-BhWvQ3T9.js +13 -0
  56. package/dist/{catalog-CD-fdGdY.js → catalog-CudNSsIP.js} +1 -1
  57. package/dist/{catalogSetting-Ci85lXor.js → catalogSetting-BVHO9tK3.js} +1 -1
  58. package/dist/{category-6NAH0dUF.js → category-BQpgz1lk.js} +1 -1
  59. package/dist/{currency-BP_z7R5d.js → currency-BfS7H2KE.js} +1 -1
  60. package/dist/{index-BLMijxTj.js → index-BHdPJta4.js} +91 -91
  61. package/dist/{index-C1XCbqC-.js → index-DmGJvREM.js} +56 -56
  62. package/dist/{index-Cftm4-G_.js → index-DuLXS699.js} +5 -5
  63. package/dist/{index-DgDQzkPR.js → index-aaoziUNI.js} +30 -30
  64. package/dist/{index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js → index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js} +40026 -40153
  65. package/dist/item-BtKW0wdj.js +7685 -0
  66. package/dist/{iteration-ZG64Re91.js → iteration-CaliNodx.js} +1 -1
  67. package/dist/{jszip.min-BETdv0rh.js → jszip.min-DXbkmgRD.js} +102 -102
  68. package/dist/{menu-COMXycAe.js → menu-D-lUEuvX.js} +1 -1
  69. package/dist/{menuV2-CeRS0Jw3.js → menuV2-D-6O36DO.js} +357 -348
  70. package/dist/mf-menu.css +1 -1
  71. package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
  72. package/dist/{priceTier-t2T3Q87F.js → priceTier-DKnYaOA9.js} +1 -1
  73. package/dist/{scheduler-BbJUVuiK.js → scheduler-DEwfbYPL.js} +7 -7
  74. package/dist/{subcategory-61kOQh4g.js → subcategory-CQKklgcd.js} +2 -2
  75. package/dist/{toExcel-DIYaK18-.js → toExcel-CRwL-QqF.js} +2 -2
  76. package/dist/{unit-B6StucsI.js → unit-BzM1rmN7.js} +151 -151
  77. package/dist/{vuedraggable-DnBIRDMr.js → vuedraggable-CK8z7qA8.js} +2 -2
  78. package/package.json +3 -2
  79. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-BpEjqhAC.js +0 -161
  80. package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js +0 -74
  81. package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +0 -26
  82. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js +0 -69
  83. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-JdHaBpaX.js +0 -5997
  84. package/dist/assets/linked-status-Cuf8X8_g.js +0 -13
  85. package/dist/assets/override-menu-yxQLf82k.js +0 -13
  86. package/dist/assets/validate-menu-BwbenBs6.js +0 -13
  87. package/dist/item-ByEPWjef.js +0 -6819
@@ -1,41 +1,41 @@
1
- import { defineComponent as x, useModel as K, computed as B, resolveComponent as m, createBlock as U, openBlock as b, ref as L, watch as W, withCtx as _, createElementBlock as F, createElementVNode as P, Fragment as w, renderList as X, createVNode as u, unref as e, createCommentVNode as $, withModifiers as Q, onMounted as te, renderSlot as le, toDisplayString as h, createTextVNode as ae } from "vue";
2
- import { useI18n as N, useCustomAttributes as ue, useCoreStore as re, isEmptyRule as oe, EMPTY_RULE as E } from "@feedmepos/mf-common";
3
- import { _ as q } from "./FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js";
4
- import { u as D } from "./priceTier-t2T3Q87F.js";
5
- import { b as O } from "./app-CzXxFrl1.js";
1
+ import { defineComponent as N, useModel as K, computed as B, resolveComponent as d, createBlock as U, openBlock as b, ref as L, watch as W, withCtx as _, createElementBlock as F, createElementVNode as P, Fragment as q, renderList as X, createVNode as u, unref as e, createCommentVNode as $, withModifiers as Q, onMounted as te, renderSlot as le, toDisplayString as h, createTextVNode as ae } from "vue";
2
+ import { useI18n as z, useCustomAttributes as ue, useCoreStore as re, isEmptyRule as oe, EMPTY_RULE as w } from "@feedmepos/mf-common";
3
+ import { _ as x } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
4
+ import { u as D } from "./priceTier-DKnYaOA9.js";
5
+ import { b as O } from "./app-5fxKLAzS.js";
6
6
  import { FmButtonVariant as Z, useDialog as ne, components as ie, FmButtonColorThemeVariant as j } from "@feedmepos/ui-library";
7
- import { m as G, f as H, d as se, _ as me } from "./RuleView.vue_vue_type_script_setup_true_lang-CPFGkaTr.js";
8
- import { L as R } from "./catalogSetting-Ci85lXor.js";
9
- import { L as de } from "./LinkProductSideSheet-BDMbKJ8o.js";
7
+ import { m as G, f as H, d as se, _ as me } from "./RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js";
8
+ import { L as R } from "./catalogSetting-BVHO9tK3.js";
9
+ import { L as de } from "./LinkProductSideSheet-Br2eE8pC.js";
10
10
  import { c as Y } from "./check-C9mY6LiX.js";
11
- import { u as ce, H as J, am as pe } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
11
+ import { u as pe, H as J, am as ce } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
12
12
  import { c as ve } from "./string-DpfFixWH.js";
13
- const fe = /* @__PURE__ */ x({
13
+ const fe = /* @__PURE__ */ N({
14
14
  __name: "LinkPriceTier",
15
15
  props: {
16
16
  modelValue: { required: !0 },
17
17
  modelModifiers: {}
18
18
  },
19
19
  emits: ["update:modelValue"],
20
- setup(d) {
21
- const { t: T } = N(), r = K(d, "modelValue"), o = D(), a = B(() => o.priceTiers.value.map((y) => ({
22
- label: y.key,
23
- value: y.key
20
+ setup(T) {
21
+ const { t: y } = z(), r = K(T, "modelValue"), o = D(), a = B(() => o.priceTiers.value.map((V) => ({
22
+ label: V.key,
23
+ value: V.key
24
24
  })));
25
- return (y, g) => {
26
- const i = m("FmSelect");
25
+ return (V, g) => {
26
+ const i = d("FmSelect");
27
27
  return b(), U(i, {
28
28
  items: a.value,
29
29
  "model-value": r.value ?? [],
30
30
  multiselect: !0,
31
31
  keepSelectionOrder: !0,
32
- "onUpdate:modelValue": g[0] || (g[0] = (k) => r.value = k)
32
+ "onUpdate:modelValue": g[0] || (g[0] = (s) => r.value = s)
33
33
  }, null, 8, ["items", "model-value"]);
34
34
  };
35
35
  }
36
36
  }), _e = {
37
37
  class: "flex justify-end"
38
- }, be = /* @__PURE__ */ x({
38
+ }, be = /* @__PURE__ */ N({
39
39
  __name: "PriceTierRuleEditor",
40
40
  props: {
41
41
  modelValue: {
@@ -44,28 +44,28 @@ const fe = /* @__PURE__ */ x({
44
44
  modelModifiers: {}
45
45
  },
46
46
  emits: ["update:modelValue"],
47
- setup(d) {
48
- var V;
47
+ setup(T) {
48
+ var k;
49
49
  const {
50
- t: T
51
- } = N(), r = K(d, "modelValue"), o = L((V = r.value) == null ? void 0 : V.map((l) => {
52
- var c, p;
50
+ t: y
51
+ } = z(), r = K(T, "modelValue"), o = L((k = r.value) == null ? void 0 : k.map((l) => {
52
+ var p, c;
53
53
  return {
54
54
  ...l,
55
55
  restaurantRule: {
56
- restaurantAttributes: G((c = l.restaurantRule) == null ? void 0 : c.restaurantAttributes),
57
- restaurantCustomAttributes: G((p = l.restaurantRule) == null ? void 0 : p.restaurantCustomAttributes)
56
+ restaurantAttributes: G((p = l.restaurantRule) == null ? void 0 : p.restaurantAttributes),
57
+ restaurantCustomAttributes: G((c = l.restaurantRule) == null ? void 0 : c.restaurantCustomAttributes)
58
58
  }
59
59
  };
60
60
  }));
61
61
  W(o, (l) => {
62
- r.value = l == null ? void 0 : l.map((c) => {
63
- var p, n;
62
+ r.value = l == null ? void 0 : l.map((p) => {
63
+ var c, n;
64
64
  return {
65
- priceTier: c.priceTier,
65
+ priceTier: p.priceTier,
66
66
  restaurantRule: {
67
- restaurantAttributes: H((p = c.restaurantRule) == null ? void 0 : p.restaurantAttributes),
68
- restaurantCustomAttributes: H((n = c.restaurantRule) == null ? void 0 : n.restaurantCustomAttributes)
67
+ restaurantAttributes: H((c = p.restaurantRule) == null ? void 0 : c.restaurantAttributes),
68
+ restaurantCustomAttributes: H((n = p.restaurantRule) == null ? void 0 : n.restaurantCustomAttributes)
69
69
  }
70
70
  };
71
71
  });
@@ -73,17 +73,17 @@ const fe = /* @__PURE__ */ x({
73
73
  deep: !0
74
74
  });
75
75
  const a = D(), {
76
- attributes: y
76
+ attributes: V
77
77
  } = ue({
78
78
  valueSource: re().restaurants,
79
79
  entity: "restaurant"
80
80
  }), {
81
81
  restaurantAttributes: g
82
82
  } = se();
83
- function i(l, c, p) {
84
- o.value && o.value[l] && (oe(c) ? o.value[l].restaurantRule[p] = E : o.value[l].restaurantRule[p] = c);
83
+ function i(l, p, c) {
84
+ o.value && o.value[l] && (oe(p) ? o.value[l].restaurantRule[c] = w : o.value[l].restaurantRule[c] = p);
85
85
  }
86
- const k = B(() => a.priceTiers.value.map((l) => ({
86
+ const s = B(() => a.priceTiers.value.map((l) => ({
87
87
  value: l.key,
88
88
  label: l.key
89
89
  })));
@@ -91,31 +91,31 @@ const fe = /* @__PURE__ */ x({
91
91
  o.value = [...o.value || [], {
92
92
  priceTier: "",
93
93
  restaurantRule: {
94
- restaurantAttributes: E,
95
- restaurantCustomAttributes: E
94
+ restaurantAttributes: w,
95
+ restaurantCustomAttributes: w
96
96
  }
97
97
  }];
98
98
  }
99
99
  function A(l) {
100
100
  o.value && o.value.splice(l, 1);
101
101
  }
102
- return (l, c) => {
103
- const p = m("FmSelect"), n = m("fm-button"), v = m("FmCard"), z = m("FmButton");
102
+ return (l, p) => {
103
+ const c = d("FmSelect"), n = d("fm-button"), v = d("FmCard"), E = d("FmButton");
104
104
  return b(), U(me, null, {
105
- default: _(() => [(b(!0), F(w, null, X(o.value, (M, S) => (b(), U(v, {
105
+ default: _(() => [(b(!0), F(q, null, X(o.value, (M, S) => (b(), U(v, {
106
106
  key: S,
107
107
  class: "p-16 space-y-16",
108
108
  variant: "outlined"
109
109
  }, {
110
- default: _(() => [P("div", null, [u(p, {
110
+ default: _(() => [P("div", null, [u(c, {
111
111
  label: "Price groups",
112
112
  "label-mark": "required",
113
- items: k.value,
113
+ items: s.value,
114
114
  "model-value": M.priceTier,
115
- rules: [(f) => !!f || e(T)("menu.common.validation.required_field")],
115
+ rules: [(f) => !!f || e(y)("menu.common.validation.required_field")],
116
116
  "onUpdate:modelValue": (f) => M.priceTier = f
117
- }, null, 8, ["items", "model-value", "rules", "onUpdate:modelValue"])]), u(q, {
118
- label: e(T)("menu.link_product.rules.restaurant_filter")
117
+ }, null, 8, ["items", "model-value", "rules", "onUpdate:modelValue"])]), u(x, {
118
+ label: e(y)("menu.link_product.rules.restaurant_filter")
119
119
  }, {
120
120
  default: _(() => {
121
121
  var f;
@@ -126,13 +126,13 @@ const fe = /* @__PURE__ */ x({
126
126
  }, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])];
127
127
  }),
128
128
  _: 2
129
- }, 1032, ["label"]), u(q, {
130
- label: e(T)("menu.link_product.rules.restaurant_custom_attributes_filter")
129
+ }, 1032, ["label"]), u(x, {
130
+ label: e(y)("menu.link_product.rules.restaurant_custom_attributes_filter")
131
131
  }, {
132
132
  default: _(() => {
133
133
  var f;
134
134
  return [u(e(O), {
135
- attributes: e(y),
135
+ attributes: e(V),
136
136
  "model-value": (f = M.restaurantRule) == null ? void 0 : f.restaurantCustomAttributes,
137
137
  "onUpdate:modelValue": (C) => i(S, C, "restaurantCustomAttributes")
138
138
  }, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])];
@@ -144,7 +144,7 @@ const fe = /* @__PURE__ */ x({
144
144
  onClick: (f) => A(S)
145
145
  }, null, 8, ["variant", "onClick"])])]),
146
146
  _: 2
147
- }, 1024))), 128)), P("div", null, [u(z, {
147
+ }, 1024))), 128)), P("div", null, [u(E, {
148
148
  label: "Add rule",
149
149
  onClick: t
150
150
  })])]),
@@ -152,7 +152,7 @@ const fe = /* @__PURE__ */ x({
152
152
  });
153
153
  };
154
154
  }
155
- }), Le = /* @__PURE__ */ x({
155
+ }), Le = /* @__PURE__ */ N({
156
156
  __name: "LinkPriceTierSection",
157
157
  props: {
158
158
  modelValue: {},
@@ -164,25 +164,25 @@ const fe = /* @__PURE__ */ x({
164
164
  }
165
165
  },
166
166
  emits: ["update:modelValue"],
167
- setup(d, {
168
- emit: T
167
+ setup(T, {
168
+ emit: y
169
169
  }) {
170
- const r = d, o = T, {
170
+ const r = T, o = y, {
171
171
  t: a
172
- } = N(), y = D(), g = L(r.modelValue.priceTierRules && r.modelValue.priceTierRules.length > 0 ? R.Rules : R.Normal);
173
- function i(k) {
172
+ } = z(), V = D(), g = L(r.modelValue.priceTierRules && r.modelValue.priceTierRules.length > 0 ? R.Rules : R.Normal);
173
+ function i(s) {
174
174
  o("update:modelValue", {
175
175
  ...r.modelValue,
176
- ...k
176
+ ...s
177
177
  });
178
178
  }
179
- return (k, t) => {
180
- const A = m("fm-radio"), V = m("fm-radio-group");
181
- return !d.isMainCatalog && d.isV4 && e(y).priceTiers.value.length > 0 ? (b(), U(q, {
179
+ return (s, t) => {
180
+ const A = d("fm-radio"), k = d("fm-radio-group");
181
+ return !s.isMainCatalog && s.isV4 && e(V).priceTiers.value.length > 0 ? (b(), U(x, {
182
182
  key: 0,
183
183
  label: e(a)("menu.price_tier.link_price_tier")
184
184
  }, {
185
- default: _(() => [u(V, {
185
+ default: _(() => [u(k, {
186
186
  "model-value": g.value,
187
187
  "onUpdate:modelValue": t[4] || (t[4] = (l) => {
188
188
  g.value = l, l === e(R).Normal && i({
@@ -200,7 +200,7 @@ const fe = /* @__PURE__ */ x({
200
200
  }, ["prevent"])),
201
201
  class: "pl-32"
202
202
  }, [u(fe, {
203
- "model-value": d.modelValue.usePriceTiers,
203
+ "model-value": s.modelValue.usePriceTiers,
204
204
  "onUpdate:modelValue": t[0] || (t[0] = (l) => i({
205
205
  usePriceTiers: l
206
206
  }))
@@ -214,7 +214,7 @@ const fe = /* @__PURE__ */ x({
214
214
  }, ["prevent"])),
215
215
  class: "pl-32"
216
216
  }, [u(be, {
217
- "model-value": d.modelValue.priceTierRules,
217
+ "model-value": s.modelValue.priceTierRules,
218
218
  "onUpdate:modelValue": t[2] || (t[2] = (l) => i({
219
219
  priceTierRules: l
220
220
  }))
@@ -228,7 +228,7 @@ const fe = /* @__PURE__ */ x({
228
228
  }), ge = { class: "space-y-16" }, ke = { class: "ml-32 mt-16 space-y-8" }, Ve = {
229
229
  key: 0,
230
230
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
231
- }, $e = /* @__PURE__ */ x({
231
+ }, $e = /* @__PURE__ */ N({
232
232
  __name: "GroupMarkupPriceDialog",
233
233
  props: {
234
234
  modelValue: {},
@@ -237,10 +237,10 @@ const fe = /* @__PURE__ */ x({
237
237
  action: {}
238
238
  },
239
239
  emits: ["update:model-value"],
240
- setup(d, { emit: T }) {
241
- const r = d, o = ce();
240
+ setup(T, { emit: y }) {
241
+ const r = T, o = pe();
242
242
  ne();
243
- const { t: a } = N(), y = T, g = B(() => r.action === "add" ? a("menu.markup.dialog.title.add") : a("menu.markup.dialog.title.update")), i = L(!1), k = (n) => {
243
+ const { t: a } = z(), V = y, g = B(() => r.action === "add" ? a("menu.markup.dialog.title.add") : a("menu.markup.dialog.title.update")), i = L(!1), s = (n) => {
244
244
  Y.isBoolean(n) ? i.value = n : i.value = !i.value;
245
245
  }, t = L(
246
246
  r.modelValue ? J(r.modelValue) : {
@@ -257,7 +257,7 @@ const fe = /* @__PURE__ */ x({
257
257
  });
258
258
  }
259
259
  ), B(
260
- () => pe(o.variants, r.categories, r.items)
260
+ () => ce(o.variants, r.categories, r.items)
261
261
  );
262
262
  function A(n) {
263
263
  t.value = {
@@ -265,17 +265,17 @@ const fe = /* @__PURE__ */ x({
265
265
  includeItems: n
266
266
  };
267
267
  }
268
- const V = L(
268
+ const k = L(
269
269
  0
270
270
  /* ALL */
271
271
  );
272
272
  function l(n) {
273
- V.value = n, t.value = {
273
+ k.value = n, t.value = {
274
274
  ...t.value,
275
275
  includeItems: n === 0 ? null : []
276
276
  };
277
277
  }
278
- const c = B(() => [
278
+ const p = B(() => [
279
279
  {
280
280
  label: a("menu.markup.dialog.options.all"),
281
281
  value: 0
@@ -287,21 +287,21 @@ const fe = /* @__PURE__ */ x({
287
287
  /* CUSTOM */
288
288
  }
289
289
  ]);
290
- async function p() {
291
- y("update:model-value", t.value), k(!1);
290
+ async function c() {
291
+ V("update:model-value", t.value), s(!1);
292
292
  }
293
293
  return te(() => {
294
- V.value = t.value && t.value.includeItems === null ? 0 : 1;
294
+ k.value = t.value && t.value.includeItems === null ? 0 : 1;
295
295
  }), (n, v) => {
296
- const z = m("fm-icon"), M = m("fm-stepper-field"), S = m("fm-radio"), f = m("fm-radio-group"), C = m("fm-button"), ee = m("fm-dialog");
297
- return b(), F(w, null, [
298
- le(n.$slots, "default", { trigger: k }),
296
+ const E = d("fm-icon"), M = d("fm-stepper-field"), S = d("fm-radio"), f = d("fm-radio-group"), C = d("fm-button"), ee = d("fm-dialog");
297
+ return b(), F(q, null, [
298
+ le(n.$slots, "default", { trigger: s }),
299
299
  u(ee, {
300
300
  modelValue: i.value,
301
301
  "onUpdate:modelValue": v[4] || (v[4] = (I) => i.value = I),
302
302
  "is-component": e(ie).FmForm,
303
303
  "is-component-props": {
304
- onValidationSuccess: p
304
+ onValidationSuccess: c
305
305
  }
306
306
  }, {
307
307
  "dialog-header": _(() => [
@@ -312,10 +312,10 @@ const fe = /* @__PURE__ */ x({
312
312
  class: "sm:w-full xs:w-full ml-auto",
313
313
  label: "Cancel",
314
314
  variant: "tertiary",
315
- onClick: v[3] || (v[3] = (I) => k(!1))
315
+ onClick: v[3] || (v[3] = (I) => s(!1))
316
316
  }),
317
317
  u(C, {
318
- label: e(ve)(d.action),
318
+ label: e(ve)(n.action),
319
319
  class: "sm:w-full xs:w-full",
320
320
  size: "md",
321
321
  type: "submit",
@@ -328,35 +328,35 @@ const fe = /* @__PURE__ */ x({
328
328
  P("div", ge, [
329
329
  u(M, {
330
330
  modelValue: t.value.percentage,
331
- "onUpdate:modelValue": v[0] || (v[0] = (s) => t.value.percentage = s),
331
+ "onUpdate:modelValue": v[0] || (v[0] = (m) => t.value.percentage = m),
332
332
  decimal: 0,
333
333
  max: 100,
334
334
  min: 0,
335
335
  rules: [
336
- (s) => e(Y).isSet(s) && s >= 0 || e(a)("menu.markup.dialog.fields.percentage.required")
336
+ (m) => e(Y).isSet(m) && m >= 0 || e(a)("menu.markup.dialog.fields.percentage.required")
337
337
  ],
338
338
  label: e(a)("menu.markup.dialog.fields.percentage.label"),
339
339
  placeholder: e(a)("menu.markup.dialog.fields.percentage.placeholder")
340
340
  }, {
341
341
  prepend: _(() => [
342
- u(z, { name: "percent" })
342
+ u(E, { name: "percent" })
343
343
  ]),
344
344
  _: 1
345
345
  }, 8, ["modelValue", "rules", "label", "placeholder"]),
346
346
  P("div", null, [
347
347
  u(f, {
348
- modelValue: V.value,
348
+ modelValue: k.value,
349
349
  "onUpdate:modelValue": [
350
- v[1] || (v[1] = (s) => V.value = s),
350
+ v[1] || (v[1] = (m) => k.value = m),
351
351
  l
352
352
  ],
353
353
  class: "space-y-8"
354
354
  }, {
355
355
  default: _(() => [
356
- (b(!0), F(w, null, X(c.value, (s) => (b(), U(S, {
357
- key: s.value,
358
- label: s.label,
359
- value: s.value
356
+ (b(!0), F(q, null, X(p.value, (m) => (b(), U(S, {
357
+ key: m.value,
358
+ label: m.label,
359
+ value: m.value
360
360
  }, null, 8, ["label", "value"]))), 128))
361
361
  ]),
362
362
  _: 1
@@ -367,17 +367,17 @@ const fe = /* @__PURE__ */ x({
367
367
  "categorized-items": e(o).categorizedItems,
368
368
  "initial-value": t.value.includeItems || [],
369
369
  "show-variant": !1,
370
- onSubmit: v[2] || (v[2] = ({ items: s }) => A(s))
370
+ onSubmit: v[2] || (v[2] = ({ items: m }) => A(m))
371
371
  }, {
372
- default: _(({ trigger: s }) => [
373
- V.value === 1 ? (b(), U(C, {
372
+ default: _(({ trigger: m }) => [
373
+ k.value === 1 ? (b(), U(C, {
374
374
  key: 0,
375
375
  "text-color": e(j).ColorPrimary,
376
376
  "border-color": e(j).ColorPrimary,
377
377
  variant: e(Z).Secondary,
378
378
  label: e(a)("menu.markup.dialog.products.link"),
379
379
  "prepend-icon": "link",
380
- onClick: s
380
+ onClick: m
381
381
  }, null, 8, ["text-color", "border-color", "variant", "label", "onClick"])) : $("", !0)
382
382
  ]),
383
383
  _: 1