@feedmepos/mf-menu-portal 1.0.3-dev.1 → 1.0.4-dev.1

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 (61) hide show
  1. package/dist/{App-CjhvMPAF.js → App-BZKKZoxc.js} +3 -3
  2. package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-DQ1EupOa.js → BindingTable.vue_vue_type_script_setup_true_lang-CKMp3GaN.js} +1 -1
  3. package/dist/{Catalog-Ce6UZKfF.js → Catalog-CAHbtV4H.js} +4 -4
  4. package/dist/{CatalogBinding-OvF89AdH.js → CatalogBinding-Bhf_B-HW.js} +3 -3
  5. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-QFb_vf3e.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CFqyk2fz.js} +3 -3
  6. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-DbBBicau.js → CatalogEditor.vue_vue_type_script_setup_true_lang-DbSQyj5E.js} +166 -129
  7. package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-BtDLJPur.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CYMrCMo1.js} +3 -3
  8. package/dist/{Category-CO7a2jIA.js → Category-BiIE6JWS.js} +5 -5
  9. package/dist/{Category-9sP0Ic10.js → Category-n3cAs8IF.js} +2 -2
  10. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-DQBrqCNS.js → CategoryList.vue_vue_type_script_setup_true_lang-BaecheDk.js} +4 -4
  11. package/dist/{CookingGuide-BJVP9ld_.js → CookingGuide-DHi4QqBd.js} +4 -4
  12. package/dist/{Group-DFuUzZMI.js → Group-D5-wyI4V.js} +2 -2
  13. package/dist/{Group-CHmDRljy.js → Group-DkKUYhoT.js} +5 -5
  14. package/dist/{GroupList.vue_vue_type_script_setup_true_lang-CFB3Tiwn.js → GroupList.vue_vue_type_script_setup_true_lang-C4MhLA7R.js} +5 -5
  15. package/dist/{Ingredient-IVtCH1fp.js → Ingredient-CbJSvV6r.js} +3 -3
  16. package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C1bNcf0n.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C2pNO1hF.js} +1 -1
  17. package/dist/{MenuSetting-y_npXdfo.js → MenuSetting-DaQPBU74.js} +250 -244
  18. package/dist/{OrderPacing-duaZ1n23.js → OrderPacing-CSJ-ohx3.js} +4 -4
  19. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-CglwAqpb.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-DDr0P_hg.js} +1 -1
  20. package/dist/{Preview-CPrLqotQ.js → Preview-D7WS3ftB.js} +1 -1
  21. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-CkktQHSu.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-CH099Ogz.js} +1 -1
  22. package/dist/{PrintRoute-B-cpn4KD.js → PrintRoute-Ci5nFh5U.js} +3 -3
  23. package/dist/{Product-Dsb4xp2V.js → Product-Cnai3PSK.js} +4 -4
  24. package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-DyRRzdMv.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-CgG9Ooj-.js} +2 -2
  25. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D7NiGNBX.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-UeIB15M8.js} +411 -400
  26. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CXtIwqAA.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-BYrFs09n.js} +1 -1
  27. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BqqgTJcT.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BHaNygs1.js} +10 -10
  28. package/dist/{ProductInternalTools-Cv6g8J4E.js → ProductInternalTools-BDM2wNdr.js} +2 -2
  29. package/dist/{ProductInventoryDialog-CN01RWpm.js → ProductInventoryDialog-CQzpqhFQ.js} +1 -1
  30. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-DfQFUFCM.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-B12JBNSL.js} +1 -1
  31. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-DN8Qpqk3.js → ProductList.vue_vue_type_script_setup_true_lang-bFpRJqAM.js} +8 -8
  32. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BaL3tTXC.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-Chv4V2ps.js} +1 -1
  33. package/dist/{Products-C7nVEa3o.js → Products-BSRl9QqW.js} +3 -3
  34. package/dist/{Publish-vSeZ4RoR.js → Publish-B0YeaFMZ.js} +3 -3
  35. package/dist/{Recipe-COvS5O5W.js → Recipe-CUFm5Gvj.js} +3 -3
  36. package/dist/{Scheduler-fHE48xDN.js → Scheduler-D5ZSBFVY.js} +3 -3
  37. package/dist/{ServingSequence-C_bPALqb.js → ServingSequence-DaNyijEL.js} +2 -2
  38. package/dist/{Setting-CNhyGVqf.js → Setting-DbO5vVZf.js} +61 -55
  39. package/dist/SubItemTaxSwitch.vue_vue_type_script_setup_true_lang-DIFXPxna.js +37 -0
  40. package/dist/SubItemTaxWarning.vue_vue_type_script_setup_true_lang-BUyK6Jaa.js +27 -0
  41. package/dist/{Subcategory-CmbeggrE.js → Subcategory-HrK6lsAH.js} +2 -2
  42. package/dist/{Takeaway-Mu-5Rsqq.js → Takeaway-DZ2pXpc4.js} +5 -5
  43. package/dist/{Takeaway-CAJdKpFQ.js → Takeaway-HmId8Qqp.js} +2 -2
  44. package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-Cu_Fa8H1.js → TakeawayList.vue_vue_type_script_setup_true_lang-BBWdi9Em.js} +3 -3
  45. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-R8ZElN_F.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DeAN-dVm.js} +6 -6
  46. package/dist/{Unit-BFvFeLlF.js → Unit-oze9Bah6.js} +2 -2
  47. package/dist/{Variant-tXGlwIkZ.js → Variant-B9j4riC-.js} +3 -3
  48. package/dist/{_id_-D7l6sNVO.js → _id_-Bp2gkxXp.js} +3 -3
  49. package/dist/{app-D72i6dx4.js → app-A5dqYWsU.js} +39 -39
  50. package/dist/app.js +1 -1
  51. package/dist/apps/mf-menu/src/app.d.ts +105 -0
  52. package/dist/apps/mf-menu/src/components/MenuSetting/SubItemTaxSwitch.vue.d.ts +9 -0
  53. package/dist/apps/mf-menu/src/components/MenuSetting/SubItemTaxWarning.vue.d.ts +2 -0
  54. package/dist/apps/mf-menu/src/components/Product/ProductMoneyField.vue.d.ts +3 -3
  55. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  56. package/dist/assets/{menu-compute-DuJqTkh0.js → menu-compute-BXVeOLK2.js} +132 -132
  57. package/dist/assets/validate-menu-rN3yrHun.js +130 -0
  58. package/dist/{provide-CT-DoyGO.js → provide-Qt5LApQe.js} +80309 -73907
  59. package/dist/{useActionFeedback-DwVnl3ys.js → useActionFeedback-CtMJLWBu.js} +1 -1
  60. package/package.json +1 -1
  61. package/dist/assets/validate-menu-DretrNgu.js +0 -130
@@ -1,31 +1,32 @@
1
- import { defineComponent as E, onUnmounted as we, computed as V, resolveComponent as C, openBlock as i, createElementBlock as h, createVNode as u, unref as t, withCtx as v, createElementVNode as o, Fragment as O, renderList as W, createBlock as S, createCommentVNode as U, ref as P, watch as Qe, h as N, withModifiers as M, toDisplayString as w, shallowRef as ke, mergeProps as Xe, withDirectives as Ye } from "vue";
1
+ import { defineComponent as E, onUnmounted as we, computed as V, resolveComponent as C, openBlock as i, createElementBlock as h, createVNode as u, unref as t, withCtx as g, createElementVNode as o, Fragment as z, renderList as W, createBlock as F, createCommentVNode as M, ref as P, watch as Qe, h as N, withModifiers as U, toDisplayString as w, shallowRef as ke, mergeProps as Xe, withDirectives as Ye } from "vue";
2
2
  import { useI18n as q } from "@feedmepos/mf-common";
3
3
  import { _ as Ze } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
4
4
  import { _ as ae, d as et } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
5
- import { u as ne } from "./useActionFeedback-DwVnl3ys.js";
6
- import { b as Ce, u as H, r as re, a as tt } from "./provide-CT-DoyGO.js";
7
- import { useDialogChild as lt, useDialog as ce, components as oe, useBreakpoints as at } from "@feedmepos/ui-library";
5
+ import { _ as tt } from "./SubItemTaxSwitch.vue_vue_type_script_setup_true_lang-DIFXPxna.js";
6
+ import { u as ne } from "./useActionFeedback-CtMJLWBu.js";
7
+ import { b as Ce, u as H, r as re, a as lt } from "./provide-Qt5LApQe.js";
8
+ import { useDialogChild as at, useDialog as ce, components as oe, useBreakpoints as ot } from "@feedmepos/ui-library";
8
9
  import { _ as Fe } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
9
- import { _ as Se } from "./app-D72i6dx4.js";
10
+ import { _ as Se } from "./app-A5dqYWsU.js";
10
11
  import { _ as $e } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
11
- import { _ as ot } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
12
+ import { _ as nt } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
12
13
  import { u as he } from "./useEditorValidation-Ctef5Bxt.js";
13
- import { r as nt, a as xe } from "./ruleValueKey-BF52PuHb.js";
14
- const st = {
14
+ import { r as st, a as xe } from "./ruleValueKey-BF52PuHb.js";
15
+ const ut = {
15
16
  key: 0,
16
17
  class: "space-y-32 max-w-[750px] xs:p-16"
17
- }, ut = {
18
+ }, it = {
18
19
  key: 0,
19
20
  class: "pl-32 space-x-8"
20
- }, it = { class: "space-y-16" }, rt = /* @__PURE__ */ E({
21
+ }, rt = { class: "space-y-16" }, ct = /* @__PURE__ */ E({
21
22
  __name: "ConfigurationTab",
22
23
  props: {
23
24
  sdk: {}
24
25
  },
25
- setup(L) {
26
- const p = L, { t: e } = q(), f = Ce(), { run: F } = ne(), g = p.sdk.menuSetting.configuration();
27
- we(() => g.dispose());
28
- const d = H(g), m = V(
26
+ setup(I) {
27
+ const p = I, { t: e } = q(), f = Ce(), { run: S } = ne(), _ = p.sdk.menuSetting.configuration();
28
+ we(() => _.dispose());
29
+ const d = H(_), m = V(
29
30
  () => d.value.status === "ready" ? d.value.value : null
30
31
  ), A = V(() => {
31
32
  var $;
@@ -34,8 +35,8 @@ const st = {
34
35
  const r = Number(x);
35
36
  return Number.isNaN(r) ? null : r;
36
37
  });
37
- async function B() {
38
- await F(() => g.submit(), {
38
+ async function L() {
39
+ await S(() => _.submit(), {
39
40
  successMessage: e("menu.menu_setting.fields.low_stock.updated"),
40
41
  // A non-integer threshold is decided locally and never reaches the wire,
41
42
  // so a loading toast here would show an indicator legacy never had.
@@ -46,18 +47,18 @@ const st = {
46
47
  });
47
48
  }
48
49
  return (x, r) => {
49
- const $ = C("FmRadio"), b = C("FmRadioGroup"), c = C("FmCheckbox"), D = C("FmSwitch"), J = C("FmStepperField"), Q = C("FmButton");
50
- return m.value ? (i(), h("div", st, [
50
+ const $ = C("FmRadio"), b = C("FmRadioGroup"), c = C("FmCheckbox"), O = C("FmSwitch"), J = C("FmStepperField"), Q = C("FmButton");
51
+ return m.value ? (i(), h("div", ut, [
51
52
  u(ae, {
52
53
  title: t(e)("menu.tax_setting.title")
53
54
  }, {
54
- default: v(() => [
55
+ default: g(() => [
55
56
  o("div", null, [
56
57
  u(b, {
57
58
  "model-value": m.value.taxMode,
58
- "onUpdate:modelValue": r[0] || (r[0] = (y) => t(g).setTaxMode(y))
59
+ "onUpdate:modelValue": r[0] || (r[0] = (y) => t(_).setTaxMode(y))
59
60
  }, {
60
- default: v(() => [
61
+ default: g(() => [
61
62
  u($, {
62
63
  value: "automatic",
63
64
  label: t(e)("menu.setting.tax.modes.auto.label"),
@@ -71,23 +72,28 @@ const st = {
71
72
  ]),
72
73
  _: 1
73
74
  }, 8, ["model-value"]),
74
- m.value.taxMode === "manual" ? (i(), h("div", ut, [
75
- (i(!0), h(O, null, W(m.value.taxSystems, (y) => (i(), S(c, {
75
+ m.value.taxMode === "manual" ? (i(), h("div", it, [
76
+ (i(!0), h(z, null, W(m.value.taxSystems, (y) => (i(), F(c, {
76
77
  key: y.systemCode,
77
78
  "model-value": y.inclusive,
78
79
  value: !0,
79
80
  label: t(e)("menu.setting.tax.inclusive", { code: y.systemCode }),
80
- "onUpdate:modelValue": (j) => t(g).setTaxInclusive(y.systemCode, !!j)
81
+ "onUpdate:modelValue": (j) => t(_).setTaxInclusive(y.systemCode, !!j)
81
82
  }, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))
82
- ])) : U("", !0)
83
+ ])) : M("", !0)
83
84
  ]),
84
- m.value.statutoryChargeWaivers.length > 0 ? (i(), S(Ze, {
85
+ m.value.subItemOwnTax !== null ? (i(), F(tt, {
85
86
  key: 0,
87
+ "model-value": m.value.subItemOwnTax,
88
+ "onUpdate:modelValue": t(_).setSubItemOwnTax
89
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : M("", !0),
90
+ m.value.statutoryChargeWaivers.length > 0 ? (i(), F(Ze, {
91
+ key: 1,
86
92
  label: t(e)("menu.catalog.form.statutory_charges.title")
87
93
  }, {
88
- default: v(() => [
89
- o("div", it, [
90
- (i(!0), h(O, null, W(m.value.statutoryChargeWaivers, (y) => (i(), S(D, {
94
+ default: g(() => [
95
+ o("div", rt, [
96
+ (i(!0), h(z, null, W(m.value.statutoryChargeWaivers, (y) => (i(), F(O, {
91
97
  key: y.code,
92
98
  "model-value": y.waived,
93
99
  label: t(e)("menu.catalog.form.statutory_charges.waive", {
@@ -95,12 +101,12 @@ const st = {
95
101
  }),
96
102
  sublabel: t(e)("menu.menu_setting.statutory_charges.sublabel"),
97
103
  "label-placement": "right",
98
- "onUpdate:modelValue": (j) => t(g).setStatutoryChargeWaived(y.code, j)
104
+ "onUpdate:modelValue": (j) => t(_).setStatutoryChargeWaived(y.code, j)
99
105
  }, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]))), 128))
100
106
  ])
101
107
  ]),
102
108
  _: 1
103
- }, 8, ["label"])) : U("", !0)
109
+ }, 8, ["label"])) : M("", !0)
104
110
  ]),
105
111
  _: 1
106
112
  }, 8, ["title"]),
@@ -108,7 +114,7 @@ const st = {
108
114
  title: t(e)("menu.menu_setting.fields.low_stock.title"),
109
115
  "sub-title": t(e)("menu.menu_setting.fields.low_stock.subtitle")
110
116
  }, {
111
- default: v(() => [
117
+ default: g(() => [
112
118
  u(J, {
113
119
  "model-value": A.value,
114
120
  min: 0,
@@ -117,7 +123,7 @@ const st = {
117
123
  placeholder: t(e)("menu.menu_setting.fields.low_stock.not_set"),
118
124
  "error-messages": m.value.lowStockIssue ? [t(f)(m.value.lowStockIssue)] : [],
119
125
  "helper-text": t(e)("menu.menu_setting.fields.low_stock.helper_text"),
120
- "onUpdate:modelValue": r[1] || (r[1] = (y) => t(g).setLowStockThreshold(
126
+ "onUpdate:modelValue": r[1] || (r[1] = (y) => t(_).setLowStockThreshold(
121
127
  y == null ? "" : String(y)
122
128
  ))
123
129
  }, null, 8, ["model-value", "placeholder", "error-messages", "helper-text"])
@@ -128,32 +134,32 @@ const st = {
128
134
  label: t(e)("menu.common.actions.save"),
129
135
  disabled: m.value.submit.state !== "allowed",
130
136
  loading: m.value.status === "submitting",
131
- onClick: B
137
+ onClick: L
132
138
  }, null, 8, ["label", "disabled", "loading"])
133
- ])) : U("", !0);
139
+ ])) : M("", !0);
134
140
  };
135
141
  }
136
- }), ct = /* @__PURE__ */ E({
142
+ }), dt = /* @__PURE__ */ E({
137
143
  __name: "AddMemberTierDialog",
138
- setup(L) {
139
- const { t: p } = q(), { emitData: e } = lt(), f = P("");
140
- return Qe(f, (F) => e(F)), (F, g) => {
144
+ setup(I) {
145
+ const { t: p } = q(), { emitData: e } = at(), f = P("");
146
+ return Qe(f, (S) => e(S)), (S, _) => {
141
147
  const d = C("FmTextField");
142
- return i(), S(d, {
148
+ return i(), F(d, {
143
149
  modelValue: f.value,
144
- "onUpdate:modelValue": g[0] || (g[0] = (m) => f.value = m),
150
+ "onUpdate:modelValue": _[0] || (_[0] = (m) => f.value = m),
145
151
  label: t(p)("menu.member_pricing.name_title")
146
152
  }, null, 8, ["modelValue", "label"]);
147
153
  };
148
154
  }
149
- }), dt = /* @__PURE__ */ E({
155
+ }), mt = /* @__PURE__ */ E({
150
156
  __name: "MemberPricingTab",
151
157
  props: {
152
158
  sdk: {}
153
159
  },
154
- setup(L) {
155
- const p = L, { t: e } = q(), f = ce(), { run: F } = ne(), g = H(p.sdk.memberPricing.list), d = V(
156
- () => g.value.status === "ready" ? g.value.value : null
160
+ setup(I) {
161
+ const p = I, { t: e } = q(), f = ce(), { run: S } = ne(), _ = H(p.sdk.memberPricing.list), d = V(
162
+ () => _.value.status === "ready" ? _.value.value : null
157
163
  ), m = V(() => {
158
164
  var r;
159
165
  return [...((r = d.value) == null ? void 0 : r.rows) ?? []];
@@ -164,7 +170,7 @@ const st = {
164
170
  // The dialog wears the TAB's title, not an "Add…" phrasing — unlike
165
171
  // the Price group tab beside it (`member-pricing/create/dialog-open`).
166
172
  title: e("menu.member_pricing.title"),
167
- contentComponent: ct,
173
+ contentComponent: dt,
168
174
  primaryActions: {
169
175
  text: e("menu.category.manager.dialog.add.action"),
170
176
  close: !1
@@ -174,7 +180,7 @@ const st = {
174
180
  close: !0
175
181
  }
176
182
  }).onPrimary(async ($) => {
177
- (await F(
183
+ (await S(
178
184
  // An untouched field never emits, so it arrives as `undefined`. It is
179
185
  // forwarded as the empty string rather than defended against here:
180
186
  // whether an empty name is submittable is the SDK's rule.
@@ -210,7 +216,7 @@ const st = {
210
216
  )).kind === "success" && f.close();
211
217
  });
212
218
  }
213
- function B(r) {
219
+ function L(r) {
214
220
  r.remove.state === "allowed" && f.open({
215
221
  title: e("menu.member_pricing.delete_dialog.title"),
216
222
  // Names the tier and says nothing about which products are priced
@@ -228,7 +234,7 @@ const st = {
228
234
  close: !0
229
235
  }
230
236
  }).onPrimary(async () => {
231
- (await F(
237
+ (await S(
232
238
  () => p.sdk.memberPricing.remove(r.key),
233
239
  {
234
240
  // Generic, where create interpolates. That inconsistency is
@@ -260,8 +266,8 @@ const st = {
260
266
  textColor: "neutral-gray-400",
261
267
  "aria-label": e("menu.member_pricing.table.actions.delete"),
262
268
  disabled: r.row.original.remove.state !== "allowed",
263
- onClick: M(
264
- () => B(r.row.original),
269
+ onClick: U(
270
+ () => L(r.row.original),
265
271
  ["stop", "prevent"]
266
272
  )
267
273
  })
@@ -270,22 +276,22 @@ const st = {
270
276
  ]);
271
277
  return (r, $) => {
272
278
  const b = C("FmButton"), c = C("FmTable");
273
- return d.value ? (i(), S($e, {
279
+ return d.value ? (i(), F($e, {
274
280
  key: 0,
275
281
  heading: t(e)("menu.member_pricing.title"),
276
282
  subheading: t(e)("menu.member_pricing.description")
277
283
  }, {
278
- "append-heading": v(() => [
279
- d.value.rows.length > 0 ? (i(), S(b, {
284
+ "append-heading": g(() => [
285
+ d.value.rows.length > 0 ? (i(), F(b, {
280
286
  key: 0,
281
287
  label: t(e)("menu.member_pricing.add_member_tier"),
282
288
  disabled: d.value.create.state !== "allowed",
283
289
  "prepend-icon": "add",
284
290
  onClick: A
285
- }, null, 8, ["label", "disabled"])) : U("", !0)
291
+ }, null, 8, ["label", "disabled"])) : M("", !0)
286
292
  ]),
287
- default: v(() => [
288
- d.value.rows.length === 0 ? (i(), S(t(Fe), {
293
+ default: g(() => [
294
+ d.value.rows.length === 0 ? (i(), F(t(Fe), {
289
295
  key: 0,
290
296
  action: {
291
297
  text: t(e)("menu.member_pricing.add_member_tier"),
@@ -293,8 +299,8 @@ const st = {
293
299
  },
294
300
  subtitle: t(e)("menu.member_pricing.empty.subtitle"),
295
301
  title: t(e)("menu.member_pricing.empty.title")
296
- }, null, 8, ["action", "subtitle", "title"])) : (i(), S(Se, { key: 1 }, {
297
- default: v(() => [
302
+ }, null, 8, ["action", "subtitle", "title"])) : (i(), F(Se, { key: 1 }, {
303
+ default: g(() => [
298
304
  u(c, {
299
305
  "column-defs": x.value,
300
306
  "page-size": d.value.rows.length,
@@ -308,20 +314,20 @@ const st = {
308
314
  }))
309
315
  ]),
310
316
  _: 1
311
- }, 8, ["heading", "subheading"])) : U("", !0);
317
+ }, 8, ["heading", "subheading"])) : M("", !0);
312
318
  };
313
319
  }
314
- }), mt = {
320
+ }), pt = {
315
321
  key: 0,
316
322
  class: "flex flex-col gap-16"
317
- }, pt = { class: "flex items-center justify-between gap-16" }, _t = { class: "fm-typo-en-title-md-600" }, vt = { class: "text-fm-color-typo-secondary" }, gt = /* @__PURE__ */ E({
323
+ }, _t = { class: "flex items-center justify-between gap-16" }, vt = { class: "fm-typo-en-title-md-600" }, gt = { class: "text-fm-color-typo-secondary" }, bt = /* @__PURE__ */ E({
318
324
  __name: "PriceGroupTab",
319
325
  props: {
320
326
  sdk: {}
321
327
  },
322
- setup(L) {
323
- const p = L, { t: e } = q(), f = ce(), { run: F } = ne(), g = H(p.sdk.priceTier.list), d = V(
324
- () => g.value.status === "ready" ? g.value.value : null
328
+ setup(I) {
329
+ const p = I, { t: e } = q(), f = ce(), { run: S } = ne(), _ = H(p.sdk.priceTier.list), d = V(
330
+ () => _.value.status === "ready" ? _.value.value : null
325
331
  ), m = V(() => {
326
332
  var r;
327
333
  return [...((r = d.value) == null ? void 0 : r.rows) ?? []];
@@ -330,7 +336,7 @@ const st = {
330
336
  var r;
331
337
  ((r = d.value) == null ? void 0 : r.create.state) === "allowed" && f.open({
332
338
  title: e("menu.price_tier.add_price_group"),
333
- contentComponent: ot,
339
+ contentComponent: nt,
334
340
  primaryActions: {
335
341
  text: e("menu.category.manager.dialog.add.action"),
336
342
  close: !1
@@ -340,7 +346,7 @@ const st = {
340
346
  close: !0
341
347
  }
342
348
  }).onPrimary(async ($) => {
343
- (await F(
349
+ (await S(
344
350
  // An untouched field never emits, so it arrives as `undefined`. It is
345
351
  // forwarded as the empty string rather than defended against here:
346
352
  // whether an empty title is submittable is the SDK's rule.
@@ -369,7 +375,7 @@ const st = {
369
375
  )).kind === "success" && f.close();
370
376
  });
371
377
  }
372
- function B(r) {
378
+ function L(r) {
373
379
  r.remove.state === "allowed" && f.open({
374
380
  title: e("menu.price_tier.delete_dialog.title"),
375
381
  message: e("menu.price_tier.delete_dialog.message", { name: r.key }),
@@ -382,7 +388,7 @@ const st = {
382
388
  close: !0
383
389
  }
384
390
  }).onPrimary(async () => {
385
- (await F(
391
+ (await S(
386
392
  () => p.sdk.priceTier.remove(r.key),
387
393
  { successMessage: e("menu.price_tier.delete_dialog.success") }
388
394
  )).kind === "success" && f.close();
@@ -408,8 +414,8 @@ const st = {
408
414
  textColor: "neutral-gray-400",
409
415
  "aria-label": e("menu.price_tier.settings_table.actions.delete"),
410
416
  disabled: r.row.original.remove.state !== "allowed",
411
- onClick: M(
412
- () => B(r.row.original),
417
+ onClick: U(
418
+ () => L(r.row.original),
413
419
  ["stop", "prevent"]
414
420
  )
415
421
  })
@@ -418,11 +424,11 @@ const st = {
418
424
  ]);
419
425
  return (r, $) => {
420
426
  const b = C("FmButton"), c = C("FmTable");
421
- return d.value ? (i(), h("div", mt, [
422
- o("div", pt, [
427
+ return d.value ? (i(), h("div", pt, [
428
+ o("div", _t, [
423
429
  o("div", null, [
424
- o("h1", _t, w(t(e)("menu.price_tier.price_group")), 1),
425
- o("p", vt, w(t(e)("menu.price_tier.description")), 1)
430
+ o("h1", vt, w(t(e)("menu.price_tier.price_group")), 1),
431
+ o("p", gt, w(t(e)("menu.price_tier.description")), 1)
426
432
  ]),
427
433
  u(b, {
428
434
  label: t(e)("menu.price_tier.add_price_group"),
@@ -439,31 +445,31 @@ const st = {
439
445
  "hide-footer": "",
440
446
  "pin-header-row": ""
441
447
  }, null, 8, ["column-defs", "page-size", "row-data"])
442
- ])) : U("", !0);
448
+ ])) : M("", !0);
443
449
  };
444
450
  }
445
- }), bt = { key: 0 }, ft = {
451
+ }), ft = { key: 0 }, yt = {
446
452
  key: 0,
447
453
  class: "space-y-8"
448
- }, yt = { class: "flex items-center justify-between" }, kt = { class: "fm-typo-en-title-md-600" }, ht = { class: "text-fm-color-typo-secondary" }, xt = { class: "flex justify-end items-center" }, wt = { class: "w-[320px]" }, Ct = {
454
+ }, kt = { class: "flex items-center justify-between" }, ht = { class: "fm-typo-en-title-md-600" }, xt = { class: "text-fm-color-typo-secondary" }, wt = { class: "flex justify-end items-center" }, Ct = { class: "w-[320px]" }, Ft = {
449
455
  key: 1,
450
456
  class: "flex-1 flex flex-col min-h-0"
451
- }, Ft = { class: "flex items-center justify-between p-8" }, St = { class: "flex-1 mr-8" }, $t = { class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64" }, Vt = ["onClick"], Rt = { class: "flex-1 space-y-4" }, Tt = { class: "fm-typo-en-body-lg-600" }, Mt = {
457
+ }, St = { class: "flex items-center justify-between p-8" }, $t = { class: "flex-1 mr-8" }, Vt = { class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64" }, Rt = ["onClick"], Tt = { class: "flex-1 space-y-4" }, Ut = { class: "fm-typo-en-body-lg-600" }, Mt = {
452
458
  key: 0,
453
459
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
454
- }, Ut = { class: "fm-typo-en-title-md-600 mr-auto" }, At = { class: "py-8 px-8 overflow-y-auto space-y-24" }, Lt = { class: "space-y-16" }, Bt = { class: "rule-item" }, It = { class: "flex items-center space-x-16" }, Pt = { class: "flex flex-col min-w-0 w-full" }, jt = { class: "flex-1 relative border border-fm-color-neutral-gray-200 rounded-md p-16" }, Gt = { class: "flex items-center justify-between pb-8" }, Dt = { class: "text-fm-color-neutral-gray-300" }, zt = { class: "flex gap-8" }, Ot = { class: "flex flex-col space-y-8" }, Nt = { class: "fm-typo-en-body-lg-600" }, Et = { class: "w-24" }, qt = { class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden" }, Kt = { class: "whitespace-nowrap" }, Wt = { class: "fm-typo-en-body-lg-600 whitespace-nowrap" }, Ht = ["onClick"], Jt = {
460
+ }, At = { class: "fm-typo-en-title-md-600 mr-auto" }, It = { class: "py-8 px-8 overflow-y-auto space-y-24" }, Lt = { class: "space-y-16" }, Bt = { class: "rule-item" }, Pt = { class: "flex items-center space-x-16" }, jt = { class: "flex flex-col min-w-0 w-full" }, Gt = { class: "flex-1 relative border border-fm-color-neutral-gray-200 rounded-md p-16" }, Ot = { class: "flex items-center justify-between pb-8" }, Dt = { class: "text-fm-color-neutral-gray-300" }, zt = { class: "flex gap-8" }, Nt = { class: "flex flex-col space-y-8" }, Et = { class: "fm-typo-en-body-lg-600" }, qt = { class: "w-24" }, Kt = { class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden" }, Wt = { class: "whitespace-nowrap" }, Ht = { class: "fm-typo-en-body-lg-600 whitespace-nowrap" }, Jt = ["onClick"], Qt = {
455
461
  key: 0,
456
462
  class: "flex items-center select-none ml-16"
457
- }, Qt = { class: "fm-typo-en-body-lg-400 text-fm-color-neutral-gray-300" }, Xt = { class: "flex gap-8 items-center justify-start" }, Yt = { class: "flex items-center gap-24" }, Zt = { class: "fm-typo-en-headline-lg-600" }, el = { class: "p-16 flex flex-col gap-16" }, tl = { class: "fm-typo-en-body-lg-600" }, ll = { class: "flex flex-col gap-16" }, al = { class: "flex w-full justify-between gap-16" }, ol = {
463
+ }, Xt = { class: "fm-typo-en-body-lg-400 text-fm-color-neutral-gray-300" }, Yt = { class: "flex gap-8 items-center justify-start" }, Zt = { class: "flex items-center gap-24" }, el = { class: "fm-typo-en-headline-lg-600" }, tl = { class: "p-16 flex flex-col gap-16" }, ll = { class: "fm-typo-en-body-lg-600" }, al = { class: "flex flex-col gap-16" }, ol = { class: "flex w-full justify-between gap-16" }, nl = {
458
464
  key: 0,
459
465
  class: "flex w-full [&>*]:w-full"
460
- }, nl = { class: "break-all fm-typo-en-body-lg-400 line-clamp-1" }, sl = { class: "flex gap-16 items-center" }, ul = /* @__PURE__ */ E({
466
+ }, sl = { class: "break-all fm-typo-en-body-lg-400 line-clamp-1" }, ul = { class: "flex gap-16 items-center" }, il = /* @__PURE__ */ E({
461
467
  __name: "RuleGroupsTab",
462
468
  props: {
463
469
  sdk: {}
464
470
  },
465
- setup(L) {
466
- const p = L, { t: e } = q(), f = {
471
+ setup(I) {
472
+ const p = I, { t: e } = q(), f = {
467
473
  mounted: (l, a) => {
468
474
  var n;
469
475
  (n = l.querySelector("input")) == null || n.setAttribute("aria-label", a.value);
@@ -472,21 +478,21 @@ const st = {
472
478
  var n;
473
479
  (n = l.querySelector("input")) == null || n.setAttribute("aria-label", a.value);
474
480
  }
475
- }, F = Ce(), g = ce(), { run: d } = ne(), { breakpoints: m } = at(), A = V(() => m.value.xs), B = H(
481
+ }, S = Ce(), _ = ce(), { run: d } = ne(), { breakpoints: m } = ot(), A = V(() => m.value.xs), L = H(
476
482
  p.sdk.menuSetting.ruleGroupList
477
483
  ), x = V(
478
- () => B.value.status === "ready" ? B.value.value : null
484
+ () => L.value.status === "ready" ? L.value.value : null
479
485
  ), r = V(() => {
480
486
  var l;
481
487
  return [...((l = x.value) == null ? void 0 : l.rows) ?? []];
482
- }), $ = P(!1), b = ke(null), c = ke(null), D = he(() => b.value), J = V(
483
- () => c.value ? D.issue(c.value.fieldIssues, "name") ?? c.value.nameIssue : null
488
+ }), $ = P(!1), b = ke(null), c = ke(null), O = he(() => b.value), J = V(
489
+ () => c.value ? O.issue(c.value.fieldIssues, "name") ?? c.value.nameIssue : null
484
490
  ), Q = V(
485
- () => c.value ? D.issue(c.value.fieldIssues, "rules") ?? c.value.rulesIssue : null
491
+ () => c.value ? O.issue(c.value.fieldIssues, "rules") ?? c.value.rulesIssue : null
486
492
  );
487
493
  let y = null;
488
494
  function j(l) {
489
- z();
495
+ D();
490
496
  const a = p.sdk.menuSetting.ruleGroupEditor(l);
491
497
  b.value = a, y = a.subscribe(
492
498
  (n) => {
@@ -494,18 +500,18 @@ const st = {
494
500
  }
495
501
  ), $.value = !0;
496
502
  }
497
- function z() {
503
+ function D() {
498
504
  var l;
499
- I.value = !1, y == null || y(), y = null, (l = b.value) == null || l.dispose(), b.value = null, c.value = null, $.value = !1;
505
+ B.value = !1, y == null || y(), y = null, (l = b.value) == null || l.dispose(), b.value = null, c.value = null, $.value = !1;
500
506
  }
501
- we(() => z());
507
+ we(() => D());
502
508
  function Ve() {
503
509
  var l;
504
510
  if (!((l = c.value) != null && l.dirty)) {
505
- z();
511
+ D();
506
512
  return;
507
513
  }
508
- g.open({
514
+ _.open({
509
515
  title: e("menu.common.dialog.dismiss.title"),
510
516
  message: e("menu.common.dialog.dismiss.message"),
511
517
  primaryActions: {
@@ -516,10 +522,10 @@ const st = {
516
522
  text: e("menu.common.actions.cancel"),
517
523
  close: !0
518
524
  }
519
- }).onPrimary(() => z());
525
+ }).onPrimary(() => D());
520
526
  }
521
- const I = P(!1), X = P(null), de = P(!1), G = P([]), me = he(
522
- () => I.value ? X.value ?? "new" : null
527
+ const B = P(!1), X = P(null), de = P(!1), G = P([]), me = he(
528
+ () => B.value ? X.value ?? "new" : null
523
529
  ), Y = P(""), Z = P("");
524
530
  let pe = 0;
525
531
  function ee() {
@@ -554,7 +560,7 @@ const st = {
554
560
  (n) => n.key === l
555
561
  ) ?? null;
556
562
  }
557
- function Me(l) {
563
+ function Ue(l) {
558
564
  var k;
559
565
  const a = G.value.filter((R) => R.key !== l.key).map((R) => R.attribute), n = Y.value.trim().toLowerCase();
560
566
  return (((k = c.value) == null ? void 0 : k.attributeOptions) ?? []).filter((R) => !a.includes(R.key)).map((R) => ({
@@ -562,7 +568,7 @@ const st = {
562
568
  value: R.key
563
569
  })).filter((R) => !n || R.label.toLowerCase().includes(n));
564
570
  }
565
- function Ue(l) {
571
+ function Me(l) {
566
572
  var n;
567
573
  const a = Z.value.trim().toLowerCase();
568
574
  return (((n = ve(l.attribute)) == null ? void 0 : n.values) ?? []).map((k) => ({
@@ -592,7 +598,7 @@ const st = {
592
598
  values: [...l.values]
593
599
  }));
594
600
  }
595
- const Le = V(
601
+ const Ie = V(
596
602
  () => {
597
603
  var l;
598
604
  return ((l = b.value) == null ? void 0 : l.conditionFieldIssues(ge())) ?? {};
@@ -600,7 +606,7 @@ const st = {
600
606
  );
601
607
  function K(l, a) {
602
608
  return me.issue(
603
- Le.value,
609
+ Ie.value,
604
610
  `conditions.${l}.${a}`
605
611
  );
606
612
  }
@@ -610,12 +616,12 @@ const st = {
610
616
  attribute: a.attribute,
611
617
  operator: a.operator,
612
618
  values: [...a.values]
613
- })) : [ee()], Y.value = "", Z.value = "", I.value = !0;
619
+ })) : [ee()], Y.value = "", Z.value = "", B.value = !0;
614
620
  }
615
- function Be() {
621
+ function Le() {
616
622
  G.value = [...G.value, ee()];
617
623
  }
618
- function Ie(l) {
624
+ function Be(l) {
619
625
  const a = G.value.filter((n) => n.key !== l);
620
626
  G.value = a.length > 0 ? a : [ee()];
621
627
  }
@@ -629,7 +635,7 @@ const st = {
629
635
  const n = re(l.operator);
630
636
  l.operator = a, re(l.operator) !== n && (l.values = []);
631
637
  }
632
- function De() {
638
+ function Oe() {
633
639
  if (!b.value) return;
634
640
  const l = ge(), a = X.value ? b.value.updateRule(X.value, l) : b.value.addRule(l);
635
641
  if (a.kind === "rejected") {
@@ -638,9 +644,9 @@ const st = {
638
644
  );
639
645
  return;
640
646
  }
641
- I.value = !1;
647
+ B.value = !1;
642
648
  }
643
- function ze(l) {
649
+ function De(l) {
644
650
  return `${e("menu.rule_groups.condition_view.rule")} ${l + 1}`;
645
651
  }
646
652
  const le = V(
@@ -649,7 +655,7 @@ const st = {
649
655
  return (((l = c.value) == null ? void 0 : l.rules) ?? []).map((a) => ({ id: a.id, rule: a }));
650
656
  }
651
657
  );
652
- function Oe(l) {
658
+ function ze(l) {
653
659
  var a;
654
660
  (a = b.value) == null || a.reorderRules(l.map((n) => n.id));
655
661
  }
@@ -659,13 +665,13 @@ const st = {
659
665
  }
660
666
  function Ee(l) {
661
667
  var a;
662
- (a = b.value) == null || a.removeRule(l), D.touch("rules");
668
+ (a = b.value) == null || a.removeRule(l), O.touch("rules");
663
669
  }
664
670
  async function qe() {
665
671
  const l = b.value;
666
672
  if (!l) return;
667
673
  (await d(
668
- () => D.submit(() => l.submit()),
674
+ () => O.submit(() => l.submit()),
669
675
  {
670
676
  successMessage: e("menu.rule_groups.saved_successfully"),
671
677
  showLoading: () => {
@@ -673,7 +679,7 @@ const st = {
673
679
  return ((n = c.value) == null ? void 0 : n.status) === "submitting";
674
680
  }
675
681
  }
676
- )).kind === "success" && z();
682
+ )).kind === "success" && D();
677
683
  }
678
684
  async function Ke(l) {
679
685
  await d(() => p.sdk.menuSetting.copyRuleGroup(l.id), {
@@ -681,7 +687,7 @@ const st = {
681
687
  });
682
688
  }
683
689
  function be(l) {
684
- g.open({
690
+ _.open({
685
691
  title: e("menu.rule_groups.delete_dialog.title"),
686
692
  message: e("menu.rule_groups.delete_dialog.message", {
687
693
  name: l.name
@@ -699,7 +705,7 @@ const st = {
699
705
  }).onPrimary(async () => {
700
706
  await d(() => p.sdk.menuSetting.removeRuleGroup(l.id), {
701
707
  successMessage: e("menu.rule_groups.saved_successfully")
702
- }), g.close();
708
+ }), _.close();
703
709
  });
704
710
  }
705
711
  const We = V(() => [
@@ -728,7 +734,7 @@ const st = {
728
734
  textColor: "neutral-gray-400",
729
735
  "aria-label": e("menu.menu_setting.rule_groups.copy_action"),
730
736
  disabled: l.row.original.copy.state !== "allowed",
731
- onClick: M(
737
+ onClick: U(
732
738
  () => Ke(l.row.original),
733
739
  ["stop", "prevent"]
734
740
  )
@@ -739,7 +745,7 @@ const st = {
739
745
  textColor: "neutral-gray-400",
740
746
  "aria-label": e("menu.menu_setting.rule_groups.delete_action"),
741
747
  disabled: l.row.original.remove.state !== "allowed",
742
- onClick: M(
748
+ onClick: U(
743
749
  () => be(l.row.original),
744
750
  ["stop", "prevent"]
745
751
  )
@@ -749,10 +755,10 @@ const st = {
749
755
  ]);
750
756
  return (l, a) => {
751
757
  const n = C("FmButton"), k = C("FmSearch"), R = C("FmTable"), se = C("FmTextField"), He = C("FmMenu"), Je = C("FmHelperText"), fe = C("FmSideSheet"), ue = C("FmSelect");
752
- return x.value ? (i(), h("div", bt, [
753
- A.value ? (i(), h("div", Ct, [
754
- o("div", Ft, [
755
- o("div", St, [
758
+ return x.value ? (i(), h("div", ft, [
759
+ A.value ? (i(), h("div", Ft, [
760
+ o("div", St, [
761
+ o("div", $t, [
756
762
  u(k, {
757
763
  "model-value": x.value.query,
758
764
  autofocus: "",
@@ -769,15 +775,15 @@ const st = {
769
775
  onClick: a[4] || (a[4] = (s) => j())
770
776
  }, null, 8, ["aria-label", "disabled"])
771
777
  ]),
772
- o("div", $t, [
773
- (i(!0), h(O, null, W(x.value.rows, (s) => (i(), h("div", {
778
+ o("div", Vt, [
779
+ (i(!0), h(z, null, W(x.value.rows, (s) => (i(), h("div", {
774
780
  key: s.id,
775
781
  class: "flex flex-row py-12 px-16 cursor-pointer",
776
782
  onClick: (T) => j(s.id)
777
783
  }, [
778
- o("div", Rt, [
779
- o("p", Tt, w(s.name), 1),
780
- s.description ? (i(), h("p", Mt, w(s.description), 1)) : U("", !0)
784
+ o("div", Tt, [
785
+ o("p", Ut, w(s.name), 1),
786
+ s.description ? (i(), h("p", Mt, w(s.description), 1)) : M("", !0)
781
787
  ]),
782
788
  u(n, {
783
789
  "text-color": "neutral-gray-400",
@@ -785,15 +791,15 @@ const st = {
785
791
  icon: "delete",
786
792
  "aria-label": t(e)("menu.menu_setting.rule_groups.delete_action"),
787
793
  disabled: s.remove.state !== "allowed",
788
- onClick: M((T) => be(s), ["stop"])
794
+ onClick: U((T) => be(s), ["stop"])
789
795
  }, null, 8, ["aria-label", "disabled", "onClick"])
790
- ], 8, Vt))), 128))
796
+ ], 8, Rt))), 128))
791
797
  ])
792
- ])) : (i(), h("div", ft, [
793
- o("div", yt, [
798
+ ])) : (i(), h("div", yt, [
799
+ o("div", kt, [
794
800
  o("div", null, [
795
- o("h1", kt, w(t(e)("menu.rule_groups.title")), 1),
796
- o("p", ht, w(t(e)("menu.rule_groups.description")), 1)
801
+ o("h1", ht, w(t(e)("menu.rule_groups.title")), 1),
802
+ o("p", xt, w(t(e)("menu.rule_groups.description")), 1)
797
803
  ]),
798
804
  u(n, {
799
805
  label: t(e)("menu.rule_groups.create_group"),
@@ -802,8 +808,8 @@ const st = {
802
808
  onClick: a[0] || (a[0] = (s) => j())
803
809
  }, null, 8, ["label", "disabled"])
804
810
  ]),
805
- o("div", xt, [
806
- o("div", wt, [
811
+ o("div", wt, [
812
+ o("div", Ct, [
807
813
  u(k, {
808
814
  "model-value": x.value.query,
809
815
  autofocus: "",
@@ -814,7 +820,7 @@ const st = {
814
820
  ])
815
821
  ]),
816
822
  u(Se, null, {
817
- default: v(() => [
823
+ default: g(() => [
818
824
  u(R, {
819
825
  "column-defs": We.value,
820
826
  "row-data": r.value,
@@ -826,24 +832,24 @@ const st = {
826
832
  _: 1
827
833
  })
828
834
  ])),
829
- $.value && c.value ? (i(), S(fe, {
835
+ $.value && c.value ? (i(), F(fe, {
830
836
  key: 2,
831
837
  "model-value": $.value,
832
838
  "max-width": 760,
833
839
  "onOn:clickedAway": Ve
834
840
  }, {
835
- "side-sheet-header": v(() => [
841
+ "side-sheet-header": g(() => [
836
842
  u(n, {
837
843
  variant: "tertiary",
838
844
  class: "cursor-pointer mr-4",
839
845
  "prepend-icon": "arrow_back",
840
846
  "aria-label": t(e)("menu.common.actions.back"),
841
- onClick: z
847
+ onClick: D
842
848
  }, null, 8, ["aria-label"]),
843
- o("p", Ut, w(c.value.mode === "create" ? t(e)("menu.rule_groups.create_group") : t(e)("menu.rule_groups.edit_group")), 1)
849
+ o("p", At, w(c.value.mode === "create" ? t(e)("menu.rule_groups.create_group") : t(e)("menu.rule_groups.edit_group")), 1)
844
850
  ]),
845
- "side-sheet-footer": v(() => [
846
- o("div", Xt, [
851
+ "side-sheet-footer": g(() => [
852
+ o("div", Yt, [
847
853
  u(n, {
848
854
  label: t(e)("menu.common.actions.save"),
849
855
  size: "lg",
@@ -856,16 +862,16 @@ const st = {
856
862
  label: t(e)("menu.common.actions.cancel"),
857
863
  size: "lg",
858
864
  variant: "tertiary",
859
- onClick: z
865
+ onClick: D
860
866
  }, null, 8, ["label"])
861
867
  ])
862
868
  ]),
863
- default: v(() => [
864
- o("div", At, [
869
+ default: g(() => [
870
+ o("div", It, [
865
871
  u(ae, {
866
872
  title: t(e)("menu.rule_groups.form.basic_info")
867
873
  }, {
868
- default: v(() => [
874
+ default: g(() => [
869
875
  o("div", Lt, [
870
876
  u(se, Xe(
871
877
  {
@@ -873,9 +879,9 @@ const st = {
873
879
  label: t(e)("menu.rule_groups.form.name"),
874
880
  "label-mark": "required",
875
881
  placeholder: t(e)("menu.rule_groups.form.name_placeholder"),
876
- "error-messages": J.value ? [t(F)(J.value)] : []
882
+ "error-messages": J.value ? [t(S)(J.value)] : []
877
883
  },
878
- t(D).field(
884
+ t(O).field(
879
885
  "name",
880
886
  (s) => {
881
887
  var T;
@@ -901,27 +907,27 @@ const st = {
901
907
  title: t(e)("menu.rule_groups.form.rules"),
902
908
  "sub-title": t(e)("menu.rule_groups.form.rules_description")
903
909
  }, {
904
- default: v(() => [
905
- le.value.length > 0 ? (i(), h(O, { key: 0 }, [
910
+ default: g(() => [
911
+ le.value.length > 0 ? (i(), h(z, { key: 0 }, [
906
912
  u(t(et), {
907
913
  "model-value": le.value,
908
914
  "item-key": "id",
909
915
  handle: ".rule-drag-handle",
910
- "onUpdate:modelValue": Oe
916
+ "onUpdate:modelValue": ze
911
917
  }, {
912
- item: v(({ element: s, index: T }) => [
918
+ item: g(({ element: s, index: T }) => [
913
919
  o("div", Bt, [
914
- o("div", It, [
920
+ o("div", Pt, [
915
921
  u(n, {
916
922
  class: "rule-drag-handle cursor-grab",
917
923
  variant: "tertiary",
918
924
  "prepend-icon": "drag_indicator",
919
925
  "aria-label": t(e)("menu.menu_setting.rule_groups.reorder_rule")
920
926
  }, null, 8, ["aria-label"]),
921
- o("div", Pt, [
922
- o("div", jt, [
923
- o("div", Gt, [
924
- o("p", Dt, w(ze(T)), 1),
927
+ o("div", jt, [
928
+ o("div", Gt, [
929
+ o("div", Ot, [
930
+ o("p", Dt, w(De(T)), 1),
925
931
  o("div", zt, [
926
932
  u(n, {
927
933
  variant: "tertiary",
@@ -929,7 +935,7 @@ const st = {
929
935
  "prepend-icon": "edit",
930
936
  "text-color": "primary",
931
937
  "aria-label": t(e)("menu.link_product.rules.edit_rule"),
932
- onClick: M((_) => te(s.rule), ["stop"])
938
+ onClick: U((v) => te(s.rule), ["stop"])
933
939
  }, null, 8, ["aria-label", "onClick"]),
934
940
  u(n, {
935
941
  variant: "tertiary",
@@ -937,7 +943,7 @@ const st = {
937
943
  "prepend-icon": "file_copy",
938
944
  "text-color": "primary",
939
945
  "aria-label": t(e)("menu.menu_setting.rule_groups.copy_rule"),
940
- onClick: M((_) => Ne(s.id), ["stop"])
946
+ onClick: U((v) => Ne(s.id), ["stop"])
941
947
  }, null, 8, ["aria-label", "onClick"]),
942
948
  u(n, {
943
949
  variant: "tertiary",
@@ -945,35 +951,35 @@ const st = {
945
951
  "prepend-icon": "delete",
946
952
  "text-color": "typo-error",
947
953
  "aria-label": t(e)("menu.menu_setting.rule_groups.remove_rule"),
948
- onClick: M((_) => Ee(s.id), ["stop"])
954
+ onClick: U((v) => Ee(s.id), ["stop"])
949
955
  }, null, 8, ["aria-label", "onClick"])
950
956
  ])
951
957
  ]),
952
- o("div", Ot, [
953
- o("p", Nt, w(t(e)("menu.rule_groups.condition_view.when")), 1),
954
- (i(!0), h(O, null, W(s.rule.conditions, (_, ye) => (i(), h("div", {
958
+ o("div", Nt, [
959
+ o("p", Et, w(t(e)("menu.rule_groups.condition_view.when")), 1),
960
+ (i(!0), h(z, null, W(s.rule.conditions, (v, ye) => (i(), h("div", {
955
961
  key: ye,
956
962
  class: "flex w-full items-center space-x-8"
957
963
  }, [
958
- o("p", Et, w(ye + 1) + ".", 1),
959
- o("div", qt, [
960
- o("p", Kt, w(t(e)(
961
- _.attributeLabel,
962
- _.attributeLabelParams ?? {}
964
+ o("p", qt, w(ye + 1) + ".", 1),
965
+ o("div", Kt, [
966
+ o("p", Wt, w(t(e)(
967
+ v.attributeLabel,
968
+ v.attributeLabelParams ?? {}
963
969
  )), 1),
964
- o("p", Wt, w(Te(_.operator)), 1),
970
+ o("p", Ht, w(Te(v.operator)), 1),
965
971
  u(He, {
966
972
  trigger: "hover",
967
973
  "close-on-mouse-leave": ""
968
974
  }, {
969
- "menu-button": v(() => [
975
+ "menu-button": g(() => [
970
976
  o("p", {
971
977
  class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate",
972
- onClick: M((ie) => te(s.rule), ["stop"])
973
- }, w(_.valueLabels.join(", ")), 9, Ht)
978
+ onClick: U((ie) => te(s.rule), ["stop"])
979
+ }, w(v.valueLabels.join(", ")), 9, Jt)
974
980
  ]),
975
- default: v(() => [
976
- (i(!0), h(O, null, W(_.valueLabels, (ie) => (i(), h("div", {
981
+ default: g(() => [
982
+ (i(!0), h(z, null, W(v.valueLabels, (ie) => (i(), h("div", {
977
983
  key: ie,
978
984
  class: "flex flex-col px-8 space-y-8"
979
985
  }, [
@@ -988,9 +994,9 @@ const st = {
988
994
  ])
989
995
  ])
990
996
  ]),
991
- le.value.length > 1 && T < le.value.length - 1 ? (i(), h("div", Jt, [
992
- o("span", Qt, w(t(e)("menu.rule_groups.condition_view.or")), 1)
993
- ])) : U("", !0)
997
+ le.value.length > 1 && T < le.value.length - 1 ? (i(), h("div", Qt, [
998
+ o("span", Xt, w(t(e)("menu.rule_groups.condition_view.or")), 1)
999
+ ])) : M("", !0)
994
1000
  ])
995
1001
  ]),
996
1002
  _: 1
@@ -1000,10 +1006,10 @@ const st = {
1000
1006
  variant: "primary",
1001
1007
  label: t(e)("menu.link_product.rules.add_rule"),
1002
1008
  "prepend-icon": "add",
1003
- onClick: a[6] || (a[6] = M((s) => te(), ["stop"]))
1009
+ onClick: a[6] || (a[6] = U((s) => te(), ["stop"]))
1004
1010
  }, null, 8, ["label"])
1005
1011
  ])
1006
- ], 64)) : (i(), S(t(Fe), {
1012
+ ], 64)) : (i(), F(t(Fe), {
1007
1013
  key: 1,
1008
1014
  title: "",
1009
1015
  subtitle: t(e)("menu.rule_groups.condition_view.empty_data.no_rule_available"),
@@ -1012,75 +1018,75 @@ const st = {
1012
1018
  callback: () => te()
1013
1019
  }
1014
1020
  }, null, 8, ["subtitle", "action"])),
1015
- Q.value ? (i(), S(Je, {
1021
+ Q.value ? (i(), F(Je, {
1016
1022
  key: 2,
1017
1023
  state: "error",
1018
- text: t(F)(Q.value)
1019
- }, null, 8, ["text"])) : U("", !0)
1024
+ text: t(S)(Q.value)
1025
+ }, null, 8, ["text"])) : M("", !0)
1020
1026
  ]),
1021
1027
  _: 1
1022
1028
  }, 8, ["title", "sub-title"])
1023
1029
  ])
1024
1030
  ]),
1025
1031
  _: 1
1026
- }, 8, ["model-value"])) : U("", !0),
1027
- I.value ? (i(), S(fe, {
1032
+ }, 8, ["model-value"])) : M("", !0),
1033
+ B.value ? (i(), F(fe, {
1028
1034
  key: 3,
1029
- "model-value": I.value,
1035
+ "model-value": B.value,
1030
1036
  "max-width": 760,
1031
1037
  "close-button": !1,
1032
- "onOn:clickedAway": a[14] || (a[14] = (s) => I.value = !1)
1038
+ "onOn:clickedAway": a[14] || (a[14] = (s) => B.value = !1)
1033
1039
  }, {
1034
- "side-sheet-header": v(() => [
1035
- o("div", Yt, [
1040
+ "side-sheet-header": g(() => [
1041
+ o("div", Zt, [
1036
1042
  u(n, {
1037
1043
  variant: "tertiary",
1038
1044
  "prepend-icon": "arrow_back",
1039
1045
  "aria-label": t(e)("menu.common.actions.back"),
1040
- onClick: a[7] || (a[7] = M((s) => I.value = !1, ["stop"]))
1046
+ onClick: a[7] || (a[7] = U((s) => B.value = !1, ["stop"]))
1041
1047
  }, null, 8, ["aria-label"]),
1042
- o("div", Zt, w(de.value ? t(e)("menu.rule_groups.condition_view.edit_condition") : t(e)("menu.rule_groups.condition_view.add_condition")), 1)
1048
+ o("div", el, w(de.value ? t(e)("menu.rule_groups.condition_view.edit_condition") : t(e)("menu.rule_groups.condition_view.add_condition")), 1)
1043
1049
  ])
1044
1050
  ]),
1045
- "side-sheet-footer": v(() => [
1046
- o("div", sl, [
1051
+ "side-sheet-footer": g(() => [
1052
+ o("div", ul, [
1047
1053
  u(n, {
1048
1054
  variant: "primary",
1049
1055
  label: t(e)("menu.common.actions.save"),
1050
- onClick: De
1056
+ onClick: Oe
1051
1057
  }, null, 8, ["label"]),
1052
1058
  u(n, {
1053
1059
  variant: "secondary",
1054
1060
  label: t(e)("menu.common.actions.cancel"),
1055
- onClick: a[13] || (a[13] = M((s) => I.value = !1, ["stop"]))
1061
+ onClick: a[13] || (a[13] = U((s) => B.value = !1, ["stop"]))
1056
1062
  }, null, 8, ["label"])
1057
1063
  ])
1058
1064
  ]),
1059
- default: v(() => [
1060
- o("div", el, [
1061
- o("p", tl, w(t(e)("menu.rule_groups.condition_view.condition")), 1),
1062
- o("div", ll, [
1063
- (i(!0), h(O, null, W(G.value, (s, T) => (i(), h("div", {
1065
+ default: g(() => [
1066
+ o("div", tl, [
1067
+ o("p", ll, w(t(e)("menu.rule_groups.condition_view.condition")), 1),
1068
+ o("div", al, [
1069
+ (i(!0), h(z, null, W(G.value, (s, T) => (i(), h("div", {
1064
1070
  key: s.key,
1065
1071
  class: "flex justify-between gap-8"
1066
1072
  }, [
1067
- o("div", al, [
1073
+ o("div", ol, [
1068
1074
  u(ue, {
1069
1075
  class: "flex w-full",
1070
1076
  "model-value": s.attribute,
1071
- items: Me(s),
1077
+ items: Ue(s),
1072
1078
  placeholder: t(e)("menu.rule_groups.condition_view.select_item"),
1073
1079
  "aria-label": t(e)("menu.menu_setting.rule_groups.condition.attribute"),
1074
- "onUpdate:modelValue": (_) => Pe(s, _)
1080
+ "onUpdate:modelValue": (v) => Pe(s, v)
1075
1081
  }, {
1076
- "prepend-menu": v(() => [
1082
+ "prepend-menu": g(() => [
1077
1083
  o("div", {
1078
- onClick: a[9] || (a[9] = M(() => {
1084
+ onClick: a[9] || (a[9] = U(() => {
1079
1085
  }, ["stop"]))
1080
1086
  }, [
1081
1087
  u(k, {
1082
1088
  modelValue: Y.value,
1083
- "onUpdate:modelValue": a[8] || (a[8] = (_) => Y.value = _),
1089
+ "onUpdate:modelValue": a[8] || (a[8] = (v) => Y.value = v),
1084
1090
  class: "px-8",
1085
1091
  placeholder: t(e)("menu.menu_setting.rule_groups.filter_options")
1086
1092
  }, null, 8, ["modelValue", "placeholder"])
@@ -1094,45 +1100,45 @@ const st = {
1094
1100
  items: Re.value,
1095
1101
  placeholder: t(e)("menu.rule_groups.condition_view.select_item"),
1096
1102
  "aria-label": t(e)("menu.menu_setting.rule_groups.condition.operator"),
1097
- "error-messages": K(T, "operator") ? [t(F)(K(T, "operator"))] : [],
1098
- "onUpdate:modelValue": (_) => Ge(s, _)
1103
+ "error-messages": K(T, "operator") ? [t(S)(K(T, "operator"))] : [],
1104
+ "onUpdate:modelValue": (v) => Ge(s, v)
1099
1105
  }, null, 8, ["model-value", "items", "placeholder", "aria-label", "error-messages", "onUpdate:modelValue"]),
1100
- je(s) ? Ye((i(), h("div", ol, [
1106
+ je(s) ? Ye((i(), h("div", nl, [
1101
1107
  u(se, {
1102
1108
  "model-value": String(s.values[0] ?? ""),
1103
1109
  placeholder: t(e)("menu.menu_setting.rule_groups.condition.value"),
1104
- "error-messages": K(T, "values") ? [t(F)(K(T, "values"))] : [],
1105
- "onUpdate:modelValue": (_) => s.values = _ === "" || _ == null ? [] : [String(_)]
1110
+ "error-messages": K(T, "values") ? [t(S)(K(T, "values"))] : [],
1111
+ "onUpdate:modelValue": (v) => s.values = v === "" || v == null ? [] : [String(v)]
1106
1112
  }, null, 8, ["model-value", "placeholder", "error-messages", "onUpdate:modelValue"])
1107
1113
  ])), [
1108
1114
  [
1109
1115
  f,
1110
1116
  t(e)("menu.menu_setting.rule_groups.condition.value")
1111
1117
  ]
1112
- ]) : (i(), S(ue, {
1118
+ ]) : (i(), F(ue, {
1113
1119
  key: 1,
1114
1120
  class: "flex w-full",
1115
1121
  "model-value": s.values.map(t(xe)),
1116
- items: Ue(s),
1122
+ items: Me(s),
1117
1123
  multiselect: "",
1118
1124
  "hide-chips": "",
1119
1125
  placeholder: t(e)("menu.rule_groups.condition_view.select_item"),
1120
1126
  "aria-label": t(e)("menu.menu_setting.rule_groups.condition.value"),
1121
- "error-messages": K(T, "values") ? [t(F)(K(T, "values"))] : [],
1122
- "onUpdate:modelValue": (_) => s.values = _.map(t(nt))
1127
+ "error-messages": K(T, "values") ? [t(S)(K(T, "values"))] : [],
1128
+ "onUpdate:modelValue": (v) => s.values = v.map(t(st))
1123
1129
  }, {
1124
- default: v(() => [
1125
- o("div", nl, w(Ae(s)), 1)
1130
+ default: g(() => [
1131
+ o("div", sl, w(Ae(s)), 1)
1126
1132
  ]),
1127
- "prepend-menu": v(() => [
1133
+ "prepend-menu": g(() => [
1128
1134
  o("div", {
1129
1135
  class: "flex",
1130
- onClick: a[11] || (a[11] = M(() => {
1136
+ onClick: a[11] || (a[11] = U(() => {
1131
1137
  }, ["stop"]))
1132
1138
  }, [
1133
1139
  u(k, {
1134
1140
  modelValue: Z.value,
1135
- "onUpdate:modelValue": a[10] || (a[10] = (_) => Z.value = _),
1141
+ "onUpdate:modelValue": a[10] || (a[10] = (v) => Z.value = v),
1136
1142
  class: "px-8",
1137
1143
  placeholder: t(e)("menu.menu_setting.rule_groups.filter_options")
1138
1144
  }, null, 8, ["modelValue", "placeholder"])
@@ -1145,76 +1151,76 @@ const st = {
1145
1151
  variant: "tertiary",
1146
1152
  "prepend-icon": "close",
1147
1153
  "aria-label": t(e)("menu.menu_setting.rule_groups.remove_condition"),
1148
- onClick: M((_) => Ie(s.key), ["stop"])
1154
+ onClick: U((v) => Be(s.key), ["stop"])
1149
1155
  }, null, 8, ["aria-label", "onClick"])
1150
1156
  ]))), 128)),
1151
1157
  u(n, {
1152
1158
  variant: "plain",
1153
1159
  "prepend-icon": "add",
1154
1160
  label: t(e)("menu.rule_groups.condition_view.add_condition"),
1155
- onClick: a[12] || (a[12] = M((s) => Be(), ["stop"]))
1161
+ onClick: a[12] || (a[12] = U((s) => Le(), ["stop"]))
1156
1162
  }, null, 8, ["label"])
1157
1163
  ])
1158
1164
  ])
1159
1165
  ]),
1160
1166
  _: 1
1161
- }, 8, ["model-value"])) : U("", !0)
1162
- ])) : U("", !0);
1167
+ }, 8, ["model-value"])) : M("", !0)
1168
+ ])) : M("", !0);
1163
1169
  };
1164
1170
  }
1165
- }), il = { class: "flex h-full min-h-[240px] flex-col items-center justify-center gap-8 p-24 text-center" }, rl = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, cl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, dl = /* @__PURE__ */ E({
1171
+ }), rl = { class: "flex h-full min-h-[240px] flex-col items-center justify-center gap-8 p-24 text-center" }, cl = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, dl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ml = /* @__PURE__ */ E({
1166
1172
  __name: "PlaceholderView",
1167
1173
  props: {
1168
1174
  module: {}
1169
1175
  },
1170
- setup(L) {
1176
+ setup(I) {
1171
1177
  const { t: p } = q();
1172
- return (e, f) => (i(), h("div", il, [
1173
- o("p", rl, w(e.module), 1),
1174
- o("p", cl, w(t(p)("menu.common.placeholder.not_migrated")), 1)
1178
+ return (e, f) => (i(), h("div", rl, [
1179
+ o("p", cl, w(e.module), 1),
1180
+ o("p", dl, w(t(p)("menu.common.placeholder.not_migrated")), 1)
1175
1181
  ]));
1176
1182
  }
1177
- }), ml = { class: "py-16" }, Sl = /* @__PURE__ */ E({
1183
+ }), pl = { class: "py-16" }, Vl = /* @__PURE__ */ E({
1178
1184
  __name: "MenuSetting",
1179
- setup(L) {
1180
- const p = tt(), { t: e } = q(), f = H(p.menuSetting.tabs), F = {
1185
+ setup(I) {
1186
+ const p = lt(), { t: e } = q(), f = H(p.menuSetting.tabs), S = {
1181
1187
  configuration: "menu.menu_setting.tabs.menu_configuration",
1182
1188
  priceGroup: "menu.menu_setting.tabs.price_group",
1183
1189
  memberPricing: "menu.menu_setting.tabs.member_pricing",
1184
1190
  ruleGroups: "menu.menu_setting.tabs.link_product_rule_groups"
1185
- }, g = V(
1191
+ }, _ = V(
1186
1192
  () => (f.value.status === "ready" ? f.value.value.tabs : []).filter((m) => m.capability.state !== "hidden").map((m) => ({
1187
- label: e(F[m.key]),
1193
+ label: e(S[m.key]),
1188
1194
  value: m.key
1189
1195
  }))
1190
1196
  ), d = P("configuration");
1191
1197
  return (m, A) => {
1192
- const B = C("FmTabs");
1193
- return i(), S($e, {
1198
+ const L = C("FmTabs");
1199
+ return i(), F($e, {
1194
1200
  heading: t(e)("menu.menu_setting.title")
1195
1201
  }, {
1196
- default: v(() => [
1197
- u(B, {
1202
+ default: g(() => [
1203
+ u(L, {
1198
1204
  "model-value": d.value,
1199
- items: g.value,
1205
+ items: _.value,
1200
1206
  "onUpdate:modelValue": A[0] || (A[0] = (x) => d.value = x)
1201
1207
  }, null, 8, ["model-value", "items"]),
1202
- o("div", ml, [
1203
- d.value === "configuration" ? (i(), S(rt, {
1208
+ o("div", pl, [
1209
+ d.value === "configuration" ? (i(), F(ct, {
1204
1210
  key: 0,
1205
1211
  sdk: t(p)
1206
- }, null, 8, ["sdk"])) : d.value === "priceGroup" ? (i(), S(gt, {
1212
+ }, null, 8, ["sdk"])) : d.value === "priceGroup" ? (i(), F(bt, {
1207
1213
  key: 1,
1208
1214
  sdk: t(p)
1209
- }, null, 8, ["sdk"])) : d.value === "memberPricing" ? (i(), S(dt, {
1215
+ }, null, 8, ["sdk"])) : d.value === "memberPricing" ? (i(), F(mt, {
1210
1216
  key: 2,
1211
1217
  sdk: t(p)
1212
- }, null, 8, ["sdk"])) : d.value === "ruleGroups" ? (i(), S(ul, {
1218
+ }, null, 8, ["sdk"])) : d.value === "ruleGroups" ? (i(), F(il, {
1213
1219
  key: 3,
1214
1220
  sdk: t(p)
1215
- }, null, 8, ["sdk"])) : (i(), S(dl, {
1221
+ }, null, 8, ["sdk"])) : (i(), F(ml, {
1216
1222
  key: 4,
1217
- module: t(e)(F[d.value])
1223
+ module: t(e)(S[d.value])
1218
1224
  }, null, 8, ["module"]))
1219
1225
  ])
1220
1226
  ]),
@@ -1224,5 +1230,5 @@ const st = {
1224
1230
  }
1225
1231
  });
1226
1232
  export {
1227
- Sl as default
1233
+ Vl as default
1228
1234
  };