@feedmepos/mf-menu-portal 1.0.4 → 1.0.5-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 (78) hide show
  1. package/dist/{App-CgYpEYgp.js → App-B2xq1U4S.js} +699 -687
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CPh1GBw9.js} +11 -10
  3. package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-CWe5_Sm5.js → BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js} +50 -46
  4. package/dist/Catalog-BEI73S_k.js +433 -0
  5. package/dist/{CatalogBinding-BjTeOA91.js → CatalogBinding-3rhuTWDD.js} +30 -29
  6. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-doB3hsWD.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
  7. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BpBR-N_x.js → CatalogEditor.vue_vue_type_script_setup_true_lang-Dc72SNpI.js} +314 -304
  8. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js +127 -0
  9. package/dist/{Category-6-ppsSmZ.js → Category-BVCdkA5K.js} +14 -13
  10. package/dist/{Category-CdsbuUqi.js → Category-P5DYjIeF.js} +2 -2
  11. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-DlNUOgyu.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
  12. package/dist/{CookingGuide-CRyRlBeV.js → CookingGuide-Y-c1NLP5.js} +144 -140
  13. package/dist/{Group-DVrUlq4i.js → Group-D6wA3jCF.js} +2 -2
  14. package/dist/{Group-DqyBHSFx.js → Group-qqr5SUIc.js} +17 -15
  15. package/dist/GroupList.vue_vue_type_script_setup_true_lang-DNTVfY2d.js +1996 -0
  16. package/dist/{Ingredient-CGLfhbvN.js → Ingredient-CJHkJZ0y.js} +94 -93
  17. package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
  18. package/dist/{MenuSetting-Oct3vbHj.js → MenuSetting-YcEGo51l.js} +462 -446
  19. package/dist/{OrderPacing-BDkzflgE.js → OrderPacing-DwQU7c0Y.js} +207 -204
  20. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-B259anSs.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-2Cdz70u-.js} +1 -2
  21. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js +44 -0
  22. package/dist/PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js +12 -0
  23. package/dist/{Preview-V9cSpevb.js → Preview-DLeXy5V-.js} +2 -2
  24. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-k5S4mGCN.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
  25. package/dist/{PrintRoute-3UwiMoBU.js → PrintRoute-R38w0-U2.js} +151 -150
  26. package/dist/{Product-LaB-YRTQ.js → Product-sbMCaVhM.js} +8 -7
  27. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-DoHQeOHy.js +7826 -0
  28. package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D9v88xZs.js +111 -0
  29. package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-BBXGnZtc.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
  30. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BUC6qUnG.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
  31. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CjQRRqBx.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
  32. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-3yzUcogQ.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
  33. package/dist/{ProductInternalTools-DWCgC825.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
  34. package/dist/{ProductInventoryDialog-D0d5RywR.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
  35. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-CmYKO0ZX.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
  36. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-DeX8Exly.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
  37. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BFD6_Sbb.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
  38. package/dist/{Products-BLUhwFT-.js → Products-DUE10OyS.js} +51 -49
  39. package/dist/Publish-BlMxKniP.js +1300 -0
  40. package/dist/{Recipe-BGfofjHT.js → Recipe-BhjPAidT.js} +83 -82
  41. package/dist/{Scheduler-BL7t8aS7.js → Scheduler-wKG3_D1f.js} +137 -136
  42. package/dist/{ServingSequence-CDFXMCiN.js → ServingSequence-B26BETQs.js} +63 -61
  43. package/dist/Setting-DBdNl3WL.js +185 -0
  44. package/dist/{Subcategory-CnlrVwCy.js → Subcategory-B06yMcuE.js} +147 -144
  45. package/dist/{Takeaway-D8FzvC2w.js → Takeaway-CFATfy-6.js} +2 -2
  46. package/dist/{Takeaway-BWVzwWnh.js → Takeaway-DFqOtls7.js} +17 -16
  47. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CUHB-g9I.js +616 -0
  48. package/dist/TextChip.vue_vue_type_script_setup_true_lang-YkUjMTXo.js +32 -0
  49. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B8nXazx6.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
  50. package/dist/{Unit-Do7Tt8U8.js → Unit-B5wKBmIT.js} +90 -89
  51. package/dist/{Variant-D1kLupxx.js → Variant-C5ePu0za.js} +167 -174
  52. package/dist/{_id_-DomaBHrh.js → _id_-HRDqt6oD.js} +3 -3
  53. package/dist/{app-C_XNYz8_.js → app-CxJjx2ma.js} +39 -39
  54. package/dist/app.js +1 -1
  55. package/dist/apps/mf-menu/src/app.d.ts +35 -0
  56. package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +8 -0
  57. package/dist/apps/mf-menu/src/components/Product/OrderFromChip.vue.d.ts +6 -0
  58. package/dist/apps/mf-menu/src/components/Product/ProductThumbnail.vue.d.ts +6 -0
  59. package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +4 -2
  60. package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +1 -1
  61. package/dist/apps/mf-menu/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
  62. package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +7 -0
  63. package/dist/apps/mf-menu/src/components/layout/PhoneFab.vue.d.ts +9 -0
  64. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  65. package/dist/assets/{menu-compute-Did75Kp9.js → menu-compute-CQdeCEBO.js} +19 -19
  66. package/dist/assets/{validate-menu-DVMOLygB.js → validate-menu-BVo4fNWG.js} +14 -14
  67. package/dist/mf-menu-portal.css +1 -1
  68. package/dist/{provide-Bwf3KcOV.js → provide-BGLSDsuJ.js} +99817 -99565
  69. package/dist/{useActionFeedback-CXx7dOVc.js → useActionFeedback-CElXij1W.js} +1 -1
  70. package/package.json +1 -1
  71. package/dist/Catalog-BrHGEI3p.js +0 -374
  72. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-P59vHZEn.js +0 -117
  73. package/dist/GroupList.vue_vue_type_script_setup_true_lang-oGNs8e8f.js +0 -1807
  74. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +0 -41
  75. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +0 -7931
  76. package/dist/Publish-Dkjnls7p.js +0 -1337
  77. package/dist/Setting-gYZoZxQG.js +0 -179
  78. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-igS-FXq5.js +0 -554
@@ -1,112 +1,118 @@
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
- import { useI18n as q } from "@feedmepos/mf-common";
3
- import { _ as Ze } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
4
- import { _ as ae, d as et } from "./vuedraggable-CBtQLb_S.js";
5
- import { _ as tt } from "./SubItemTaxSwitch.vue_vue_type_script_setup_true_lang-DIFXPxna.js";
6
- import { u as ne } from "./useActionFeedback-CXx7dOVc.js";
7
- import { b as Ce, u as H, r as re, a as lt } from "./provide-Bwf3KcOV.js";
8
- import { useDialogChild as at, useDialog as ce, components as oe, useBreakpoints as ot } from "@feedmepos/ui-library";
9
- import { _ as Fe } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
10
- import { _ as Se } from "./app-C_XNYz8_.js";
11
- import { _ as $e } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
12
- import { _ as nt } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
13
- import { u as he } from "./useEditorValidation-Ctef5Bxt.js";
14
- import { r as st, a as xe } from "./ruleValueKey-BF52PuHb.js";
15
- const ut = {
1
+ import { defineComponent as q, onUnmounted as Ce, computed as V, resolveComponent as F, openBlock as i, createElementBlock as x, createVNode as u, unref as t, withCtx as _, Fragment as N, renderList as H, createBlock as w, createCommentVNode as A, createElementVNode as o, ref as G, watch as Ye, h as E, withModifiers as M, toDisplayString as C, shallowRef as ke, mergeProps as Ze, withDirectives as et } from "vue";
2
+ import { useI18n as K } from "@feedmepos/mf-common";
3
+ import { _ as he } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
4
+ import { _ as ae, d as tt } from "./vuedraggable-CBtQLb_S.js";
5
+ import { _ as lt } from "./SubItemTaxSwitch.vue_vue_type_script_setup_true_lang-DIFXPxna.js";
6
+ import { u as ne } from "./useActionFeedback-CElXij1W.js";
7
+ import { b as Fe, u as J, r as re, a as at } from "./provide-BGLSDsuJ.js";
8
+ import { useDialogChild as ot, useDialog as ce, useBreakpoints as Se, components as oe } from "@feedmepos/ui-library";
9
+ import { _ as $e } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
10
+ import { _ as Ve } from "./app-CxJjx2ma.js";
11
+ import { _ as Re } from "./PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js";
12
+ import { _ as nt } from "./PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js";
13
+ import { _ as st } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
14
+ import { u as xe } from "./useEditorValidation-Ctef5Bxt.js";
15
+ import { r as ut, a as we } from "./ruleValueKey-BF52PuHb.js";
16
+ const it = {
16
17
  key: 0,
17
18
  class: "space-y-32 max-w-[750px] xs:p-16"
18
- }, it = {
19
+ }, rt = {
19
20
  key: 0,
20
21
  class: "pl-32 space-x-8"
21
- }, rt = { class: "space-y-16" }, ct = /* @__PURE__ */ E({
22
+ }, ct = { class: "space-y-16" }, dt = /* @__PURE__ */ q({
22
23
  __name: "ConfigurationTab",
23
24
  props: {
24
25
  sdk: {}
25
26
  },
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(
30
- () => d.value.status === "ready" ? d.value.value : null
31
- ), A = V(() => {
32
- var $;
33
- const x = (($ = m.value) == null ? void 0 : $.lowStockThreshold) ?? "";
34
- if (x.trim() === "") return null;
35
- const r = Number(x);
36
- return Number.isNaN(r) ? null : r;
27
+ setup(B) {
28
+ const v = B, { t: e } = K(), y = Fe(), { run: S } = ne(), b = v.sdk.menuSetting.configuration();
29
+ Ce(() => b.dispose());
30
+ const m = J(b), d = V(
31
+ () => m.value.status === "ready" ? m.value.value : null
32
+ ), $ = V(() => {
33
+ var U;
34
+ const f = ((U = d.value) == null ? void 0 : U.lowStockThreshold) ?? "";
35
+ if (f.trim() === "") return null;
36
+ const p = Number(f);
37
+ return Number.isNaN(p) ? null : p;
37
38
  });
38
- async function L() {
39
- await S(() => _.submit(), {
39
+ async function P() {
40
+ await S(() => b.submit(), {
40
41
  successMessage: e("menu.menu_setting.fields.low_stock.updated"),
41
42
  // A non-integer threshold is decided locally and never reaches the wire,
42
43
  // so a loading toast here would show an indicator legacy never had.
43
44
  showLoading: () => {
44
- var x;
45
- return ((x = m.value) == null ? void 0 : x.status) === "submitting";
45
+ var f;
46
+ return ((f = d.value) == null ? void 0 : f.status) === "submitting";
46
47
  }
47
48
  });
48
49
  }
49
- return (x, r) => {
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, [
50
+ return (f, p) => {
51
+ const U = F("FmRadio"), r = F("FmRadioGroup"), c = F("FmCheckbox"), I = F("FmSwitch"), L = F("FmStepperField"), Q = F("FmButton");
52
+ return d.value ? (i(), x("div", it, [
52
53
  u(ae, {
53
54
  title: t(e)("menu.tax_setting.title")
54
55
  }, {
55
- default: g(() => [
56
- o("div", null, [
57
- u(b, {
58
- "model-value": m.value.taxMode,
59
- "onUpdate:modelValue": r[0] || (r[0] = (y) => t(_).setTaxMode(y))
60
- }, {
61
- default: g(() => [
62
- u($, {
63
- value: "automatic",
64
- label: t(e)("menu.setting.tax.modes.auto.label"),
65
- sublabel: t(e)("menu.setting.tax.modes.auto.sublabel")
66
- }, null, 8, ["label", "sublabel"]),
67
- u($, {
68
- value: "manual",
69
- label: t(e)("menu.setting.tax.modes.manual.label"),
70
- sublabel: t(e)("menu.setting.tax.modes.manual.sublabel")
71
- }, null, 8, ["label", "sublabel"])
72
- ]),
73
- _: 1
74
- }, 8, ["model-value"]),
75
- m.value.taxMode === "manual" ? (i(), h("div", it, [
76
- (i(!0), h(z, null, W(m.value.taxSystems, (y) => (i(), F(c, {
77
- key: y.systemCode,
78
- "model-value": y.inclusive,
79
- value: !0,
80
- label: t(e)("menu.setting.tax.inclusive", { code: y.systemCode }),
81
- "onUpdate:modelValue": (j) => t(_).setTaxInclusive(y.systemCode, !!j)
82
- }, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))
83
- ])) : M("", !0)
84
- ]),
85
- m.value.subItemOwnTax !== null ? (i(), F(tt, {
56
+ default: _(() => [
57
+ u(he, {
58
+ label: t(e)("menu.setting.tax.title")
59
+ }, {
60
+ default: _(() => [
61
+ u(r, {
62
+ "model-value": d.value.taxMode,
63
+ "onUpdate:modelValue": p[0] || (p[0] = (k) => t(b).setTaxMode(k))
64
+ }, {
65
+ default: _(() => [
66
+ u(U, {
67
+ value: "automatic",
68
+ label: t(e)("menu.setting.tax.modes.auto.label"),
69
+ sublabel: t(e)("menu.setting.tax.modes.auto.sublabel")
70
+ }, null, 8, ["label", "sublabel"]),
71
+ u(U, {
72
+ value: "manual",
73
+ label: t(e)("menu.setting.tax.modes.manual.label"),
74
+ sublabel: t(e)("menu.setting.tax.modes.manual.sublabel")
75
+ }, null, 8, ["label", "sublabel"])
76
+ ]),
77
+ _: 1
78
+ }, 8, ["model-value"]),
79
+ d.value.taxMode === "manual" ? (i(), x("div", rt, [
80
+ (i(!0), x(N, null, H(d.value.taxSystems, (k) => (i(), w(c, {
81
+ key: k.systemCode,
82
+ "model-value": k.inclusive,
83
+ value: !0,
84
+ label: t(e)("menu.setting.tax.inclusive", { code: k.systemCode }),
85
+ "onUpdate:modelValue": (O) => t(b).setTaxInclusive(k.systemCode, !!O)
86
+ }, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))
87
+ ])) : A("", !0)
88
+ ]),
89
+ _: 1
90
+ }, 8, ["label"]),
91
+ d.value.subItemOwnTax !== null ? (i(), w(lt, {
86
92
  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, {
93
+ "model-value": d.value.subItemOwnTax,
94
+ "onUpdate:modelValue": t(b).setSubItemOwnTax
95
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : A("", !0),
96
+ d.value.statutoryChargeWaivers.length > 0 ? (i(), w(he, {
91
97
  key: 1,
92
98
  label: t(e)("menu.catalog.form.statutory_charges.title")
93
99
  }, {
94
- default: g(() => [
95
- o("div", rt, [
96
- (i(!0), h(z, null, W(m.value.statutoryChargeWaivers, (y) => (i(), F(O, {
97
- key: y.code,
98
- "model-value": y.waived,
100
+ default: _(() => [
101
+ o("div", ct, [
102
+ (i(!0), x(N, null, H(d.value.statutoryChargeWaivers, (k) => (i(), w(I, {
103
+ key: k.code,
104
+ "model-value": k.waived,
99
105
  label: t(e)("menu.catalog.form.statutory_charges.waive", {
100
- name: y.name
106
+ name: k.name
101
107
  }),
102
108
  sublabel: t(e)("menu.menu_setting.statutory_charges.sublabel"),
103
109
  "label-placement": "right",
104
- "onUpdate:modelValue": (j) => t(_).setStatutoryChargeWaived(y.code, j)
110
+ "onUpdate:modelValue": (O) => t(b).setStatutoryChargeWaived(k.code, O)
105
111
  }, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]))), 128))
106
112
  ])
107
113
  ]),
108
114
  _: 1
109
- }, 8, ["label"])) : M("", !0)
115
+ }, 8, ["label"])) : A("", !0)
110
116
  ]),
111
117
  _: 1
112
118
  }, 8, ["title"]),
@@ -114,17 +120,17 @@ const ut = {
114
120
  title: t(e)("menu.menu_setting.fields.low_stock.title"),
115
121
  "sub-title": t(e)("menu.menu_setting.fields.low_stock.subtitle")
116
122
  }, {
117
- default: g(() => [
118
- u(J, {
119
- "model-value": A.value,
123
+ default: _(() => [
124
+ u(L, {
125
+ "model-value": $.value,
120
126
  min: 0,
121
127
  max: 1e3,
122
128
  step: 1,
123
129
  placeholder: t(e)("menu.menu_setting.fields.low_stock.not_set"),
124
- "error-messages": m.value.lowStockIssue ? [t(f)(m.value.lowStockIssue)] : [],
130
+ "error-messages": d.value.lowStockIssue ? [t(y)(d.value.lowStockIssue)] : [],
125
131
  "helper-text": t(e)("menu.menu_setting.fields.low_stock.helper_text"),
126
- "onUpdate:modelValue": r[1] || (r[1] = (y) => t(_).setLowStockThreshold(
127
- y == null ? "" : String(y)
132
+ "onUpdate:modelValue": p[1] || (p[1] = (k) => t(b).setLowStockThreshold(
133
+ k == null ? "" : String(k)
128
134
  ))
129
135
  }, null, 8, ["model-value", "placeholder", "error-messages", "helper-text"])
130
136
  ]),
@@ -132,45 +138,45 @@ const ut = {
132
138
  }, 8, ["title", "sub-title"]),
133
139
  u(Q, {
134
140
  label: t(e)("menu.common.actions.save"),
135
- disabled: m.value.submit.state !== "allowed",
136
- loading: m.value.status === "submitting",
137
- onClick: L
141
+ disabled: d.value.submit.state !== "allowed",
142
+ loading: d.value.status === "submitting",
143
+ onClick: P
138
144
  }, null, 8, ["label", "disabled", "loading"])
139
- ])) : M("", !0);
145
+ ])) : A("", !0);
140
146
  };
141
147
  }
142
- }), dt = /* @__PURE__ */ E({
148
+ }), mt = /* @__PURE__ */ q({
143
149
  __name: "AddMemberTierDialog",
144
- setup(I) {
145
- const { t: p } = q(), { emitData: e } = at(), f = P("");
146
- return Qe(f, (S) => e(S)), (S, _) => {
147
- const d = C("FmTextField");
148
- return i(), F(d, {
149
- modelValue: f.value,
150
- "onUpdate:modelValue": _[0] || (_[0] = (m) => f.value = m),
151
- label: t(p)("menu.member_pricing.name_title")
150
+ setup(B) {
151
+ const { t: v } = K(), { emitData: e } = ot(), y = G("");
152
+ return Ye(y, (S) => e(S)), (S, b) => {
153
+ const m = F("FmTextField");
154
+ return i(), w(m, {
155
+ modelValue: y.value,
156
+ "onUpdate:modelValue": b[0] || (b[0] = (d) => y.value = d),
157
+ label: t(v)("menu.member_pricing.name_title")
152
158
  }, null, 8, ["modelValue", "label"]);
153
159
  };
154
160
  }
155
- }), mt = /* @__PURE__ */ E({
161
+ }), pt = /* @__PURE__ */ q({
156
162
  __name: "MemberPricingTab",
157
163
  props: {
158
164
  sdk: {}
159
165
  },
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
163
- ), m = V(() => {
166
+ setup(B) {
167
+ const v = B, { t: e } = K(), y = ce(), { run: S } = ne(), { breakpoints: b } = Se(), m = V(() => b.value.xs), d = J(v.sdk.memberPricing.list), $ = V(
168
+ () => d.value.status === "ready" ? d.value.value : null
169
+ ), P = V(() => {
164
170
  var r;
165
- return [...((r = d.value) == null ? void 0 : r.rows) ?? []];
171
+ return [...((r = $.value) == null ? void 0 : r.rows) ?? []];
166
172
  });
167
- function A() {
173
+ function f() {
168
174
  var r;
169
- ((r = d.value) == null ? void 0 : r.create.state) === "allowed" && f.open({
175
+ ((r = $.value) == null ? void 0 : r.create.state) === "allowed" && y.open({
170
176
  // The dialog wears the TAB's title, not an "Add…" phrasing — unlike
171
177
  // the Price group tab beside it (`member-pricing/create/dialog-open`).
172
178
  title: e("menu.member_pricing.title"),
173
- contentComponent: dt,
179
+ contentComponent: mt,
174
180
  primaryActions: {
175
181
  text: e("menu.category.manager.dialog.add.action"),
176
182
  close: !1
@@ -179,19 +185,19 @@ const ut = {
179
185
  text: e("menu.common.actions.cancel"),
180
186
  close: !0
181
187
  }
182
- }).onPrimary(async ($) => {
188
+ }).onPrimary(async (c) => {
183
189
  (await S(
184
190
  // An untouched field never emits, so it arrives as `undefined`. It is
185
191
  // forwarded as the empty string rather than defended against here:
186
192
  // whether an empty name is submittable is the SDK's rule.
187
- () => p.sdk.memberPricing.create(String($ ?? "")),
193
+ () => v.sdk.memberPricing.create(String(c ?? "")),
188
194
  {
189
195
  // The success copy INTERPOLATES the tier name, unlike the Price
190
196
  // group tab's generic line. The name comes back from the outcome
191
197
  // rather than from the typed input, so the message can only ever
192
198
  // describe the tier the write actually established.
193
- successMessage: (c) => e("menu.member_pricing.add_member_tier_success", {
194
- name: c.key
199
+ successMessage: (L) => e("menu.member_pricing.add_member_tier_success", {
200
+ name: L.key
195
201
  }),
196
202
  // Two rejections settle here without a round trip and legacy shows
197
203
  // no pending pill for either: the empty name is silent altogether
@@ -209,15 +215,15 @@ const ut = {
209
215
  // SDK's own answer, and it keeps answering correctly if either
210
216
  // guard ever moves.
211
217
  showLoading: () => {
212
- var c;
213
- return ((c = d.value) == null ? void 0 : c.create.state) !== "allowed";
218
+ var L;
219
+ return ((L = $.value) == null ? void 0 : L.create.state) !== "allowed";
214
220
  }
215
221
  }
216
- )).kind === "success" && f.close();
222
+ )).kind === "success" && y.close();
217
223
  });
218
224
  }
219
- function L(r) {
220
- r.remove.state === "allowed" && f.open({
225
+ function p(r) {
226
+ r.remove.state === "allowed" && y.open({
221
227
  title: e("menu.member_pricing.delete_dialog.title"),
222
228
  // Names the tier and says nothing about which products are priced
223
229
  // against it, because legacy runs no reference check
@@ -235,16 +241,16 @@ const ut = {
235
241
  }
236
242
  }).onPrimary(async () => {
237
243
  (await S(
238
- () => p.sdk.memberPricing.remove(r.key),
244
+ () => v.sdk.memberPricing.remove(r.key),
239
245
  {
240
246
  // Generic, where create interpolates. That inconsistency is
241
247
  // internal to this unit and is reproduced, not tidied.
242
248
  successMessage: e("menu.member_pricing.delete_dialog.success")
243
249
  }
244
- )).kind === "success" && f.close();
250
+ )).kind === "success" && y.close();
245
251
  });
246
252
  }
247
- const x = V(() => [
253
+ const U = V(() => [
248
254
  {
249
255
  accessorKey: "key",
250
256
  enableSorting: !1,
@@ -259,53 +265,64 @@ const ut = {
259
265
  // addition the new app owns. It is the screen-reader name, not a
260
266
  // locator: "Remove member tier" contains no "delete", unlike the Price
261
267
  // group tab's label, and must not be renamed toward one.
262
- cell: (r) => N("div", { class: "flex justify-end px-4" }, [
263
- N(oe.FmButton, {
268
+ cell: (r) => E("div", { class: "flex justify-end px-4" }, [
269
+ E(oe.FmButton, {
264
270
  icon: "delete",
265
271
  variant: "tertiary",
266
272
  textColor: "neutral-gray-400",
267
273
  "aria-label": e("menu.member_pricing.table.actions.delete"),
268
274
  disabled: r.row.original.remove.state !== "allowed",
269
- onClick: U(
270
- () => L(r.row.original),
275
+ onClick: M(
276
+ () => p(r.row.original),
271
277
  ["stop", "prevent"]
272
278
  )
273
279
  })
274
280
  ])
275
281
  }
276
282
  ]);
277
- return (r, $) => {
278
- const b = C("FmButton"), c = C("FmTable");
279
- return d.value ? (i(), F($e, {
283
+ return (r, c) => {
284
+ const I = F("FmButton"), L = F("FmTable");
285
+ return $.value ? (i(), w(Re, {
280
286
  key: 0,
281
287
  heading: t(e)("menu.member_pricing.title"),
282
288
  subheading: t(e)("menu.member_pricing.description")
283
289
  }, {
284
- "append-heading": g(() => [
285
- d.value.rows.length > 0 ? (i(), F(b, {
290
+ "append-heading": _(() => [
291
+ $.value.rows.length > 0 && !m.value ? (i(), w(I, {
286
292
  key: 0,
287
293
  label: t(e)("menu.member_pricing.add_member_tier"),
288
- disabled: d.value.create.state !== "allowed",
294
+ disabled: $.value.create.state !== "allowed",
289
295
  "prepend-icon": "add",
290
- onClick: A
291
- }, null, 8, ["label", "disabled"])) : M("", !0)
296
+ onClick: f
297
+ }, null, 8, ["label", "disabled"])) : A("", !0),
298
+ $.value.rows.length > 0 && m.value ? (i(), w(nt, { key: 1 }, {
299
+ default: _(() => [
300
+ u(I, {
301
+ label: t(e)("menu.member_pricing.add_member_tier"),
302
+ disabled: $.value.create.state !== "allowed",
303
+ "prepend-icon": "add",
304
+ variant: "fab",
305
+ onClick: f
306
+ }, null, 8, ["label", "disabled"])
307
+ ]),
308
+ _: 1
309
+ })) : A("", !0)
292
310
  ]),
293
- default: g(() => [
294
- d.value.rows.length === 0 ? (i(), F(t(Fe), {
311
+ default: _(() => [
312
+ $.value.rows.length === 0 ? (i(), w(t($e), {
295
313
  key: 0,
296
314
  action: {
297
315
  text: t(e)("menu.member_pricing.add_member_tier"),
298
- callback: A
316
+ callback: f
299
317
  },
300
318
  subtitle: t(e)("menu.member_pricing.empty.subtitle"),
301
319
  title: t(e)("menu.member_pricing.empty.title")
302
- }, null, 8, ["action", "subtitle", "title"])) : (i(), F(Se, { key: 1 }, {
303
- default: g(() => [
304
- u(c, {
305
- "column-defs": x.value,
306
- "page-size": d.value.rows.length,
307
- "row-data": m.value,
308
- "shrink-at": !1,
320
+ }, null, 8, ["action", "subtitle", "title"])) : (i(), w(Ve, { key: 1 }, {
321
+ default: _(() => [
322
+ u(L, {
323
+ "column-defs": U.value,
324
+ "page-size": $.value.rows.length,
325
+ "row-data": P.value,
309
326
  "hide-footer": "",
310
327
  "pin-header-row": ""
311
328
  }, null, 8, ["column-defs", "page-size", "row-data"])
@@ -314,29 +331,29 @@ const ut = {
314
331
  }))
315
332
  ]),
316
333
  _: 1
317
- }, 8, ["heading", "subheading"])) : M("", !0);
334
+ }, 8, ["heading", "subheading"])) : A("", !0);
318
335
  };
319
336
  }
320
- }), pt = {
337
+ }), _t = {
321
338
  key: 0,
322
339
  class: "flex flex-col gap-16"
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({
340
+ }, vt = { class: "flex items-center justify-between gap-16" }, gt = { class: "fm-typo-en-title-md-600" }, bt = { class: "text-fm-color-typo-secondary" }, ft = /* @__PURE__ */ q({
324
341
  __name: "PriceGroupTab",
325
342
  props: {
326
343
  sdk: {}
327
344
  },
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
331
- ), m = V(() => {
332
- var r;
333
- return [...((r = d.value) == null ? void 0 : r.rows) ?? []];
345
+ setup(B) {
346
+ const v = B, { t: e } = K(), y = ce(), { run: S } = ne(), b = J(v.sdk.priceTier.list), m = V(
347
+ () => b.value.status === "ready" ? b.value.value : null
348
+ ), d = V(() => {
349
+ var p;
350
+ return [...((p = m.value) == null ? void 0 : p.rows) ?? []];
334
351
  });
335
- function A() {
336
- var r;
337
- ((r = d.value) == null ? void 0 : r.create.state) === "allowed" && f.open({
352
+ function $() {
353
+ var p;
354
+ ((p = m.value) == null ? void 0 : p.create.state) === "allowed" && y.open({
338
355
  title: e("menu.price_tier.add_price_group"),
339
- contentComponent: nt,
356
+ contentComponent: st,
340
357
  primaryActions: {
341
358
  text: e("menu.category.manager.dialog.add.action"),
342
359
  close: !1
@@ -345,12 +362,12 @@ const ut = {
345
362
  text: e("menu.common.actions.cancel"),
346
363
  close: !0
347
364
  }
348
- }).onPrimary(async ($) => {
365
+ }).onPrimary(async (U) => {
349
366
  (await S(
350
367
  // An untouched field never emits, so it arrives as `undefined`. It is
351
368
  // forwarded as the empty string rather than defended against here:
352
369
  // whether an empty title is submittable is the SDK's rule.
353
- () => p.sdk.priceTier.create(String($ ?? "")),
370
+ () => v.sdk.priceTier.create(String(U ?? "")),
354
371
  {
355
372
  successMessage: e("menu.price_tier.add_price_group_success"),
356
373
  // The empty title is refused locally with no request, and legacy
@@ -369,16 +386,16 @@ const ut = {
369
386
  // submittability rule ever moves.
370
387
  showLoading: () => {
371
388
  var c;
372
- return ((c = d.value) == null ? void 0 : c.create.state) !== "allowed";
389
+ return ((c = m.value) == null ? void 0 : c.create.state) !== "allowed";
373
390
  }
374
391
  }
375
- )).kind === "success" && f.close();
392
+ )).kind === "success" && y.close();
376
393
  });
377
394
  }
378
- function L(r) {
379
- r.remove.state === "allowed" && f.open({
395
+ function P(p) {
396
+ p.remove.state === "allowed" && y.open({
380
397
  title: e("menu.price_tier.delete_dialog.title"),
381
- message: e("menu.price_tier.delete_dialog.message", { name: r.key }),
398
+ message: e("menu.price_tier.delete_dialog.message", { name: p.key }),
382
399
  primaryActions: {
383
400
  text: e("menu.common.actions.remove"),
384
401
  close: !1
@@ -389,12 +406,12 @@ const ut = {
389
406
  }
390
407
  }).onPrimary(async () => {
391
408
  (await S(
392
- () => p.sdk.priceTier.remove(r.key),
409
+ () => v.sdk.priceTier.remove(p.key),
393
410
  { successMessage: e("menu.price_tier.delete_dialog.success") }
394
- )).kind === "success" && f.close();
411
+ )).kind === "success" && y.close();
395
412
  });
396
413
  }
397
- const x = V(() => [
414
+ const f = V(() => [
398
415
  {
399
416
  accessorKey: "key",
400
417
  enableSorting: !1,
@@ -407,69 +424,68 @@ const ut = {
407
424
  header: "",
408
425
  // Legacy's control is icon-only with NO accessible name; the name is an
409
426
  // addition the new app owns, naming the control for a screen reader.
410
- cell: (r) => N("div", { class: "flex justify-end px-4" }, [
411
- N(oe.FmButton, {
427
+ cell: (p) => E("div", { class: "flex justify-end px-4" }, [
428
+ E(oe.FmButton, {
412
429
  icon: "delete",
413
430
  variant: "tertiary",
414
431
  textColor: "neutral-gray-400",
415
432
  "aria-label": e("menu.price_tier.settings_table.actions.delete"),
416
- disabled: r.row.original.remove.state !== "allowed",
417
- onClick: U(
418
- () => L(r.row.original),
433
+ disabled: p.row.original.remove.state !== "allowed",
434
+ onClick: M(
435
+ () => P(p.row.original),
419
436
  ["stop", "prevent"]
420
437
  )
421
438
  })
422
439
  ])
423
440
  }
424
441
  ]);
425
- return (r, $) => {
426
- const b = C("FmButton"), c = C("FmTable");
427
- return d.value ? (i(), h("div", pt, [
428
- o("div", _t, [
442
+ return (p, U) => {
443
+ const r = F("FmButton"), c = F("FmTable");
444
+ return m.value ? (i(), x("div", _t, [
445
+ o("div", vt, [
429
446
  o("div", null, [
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)
447
+ o("h1", gt, C(t(e)("menu.price_tier.price_group")), 1),
448
+ o("p", bt, C(t(e)("menu.price_tier.description")), 1)
432
449
  ]),
433
- u(b, {
450
+ u(r, {
434
451
  label: t(e)("menu.price_tier.add_price_group"),
435
- disabled: d.value.create.state !== "allowed",
452
+ disabled: m.value.create.state !== "allowed",
436
453
  "prepend-icon": "add",
437
- onClick: A
454
+ onClick: $
438
455
  }, null, 8, ["label", "disabled"])
439
456
  ]),
440
457
  u(c, {
441
- "column-defs": x.value,
442
- "page-size": Math.max(d.value.rows.length, 1),
443
- "row-data": m.value,
444
- "shrink-at": !1,
458
+ "column-defs": f.value,
459
+ "page-size": Math.max(m.value.rows.length, 1),
460
+ "row-data": d.value,
445
461
  "hide-footer": "",
446
462
  "pin-header-row": ""
447
463
  }, null, 8, ["column-defs", "page-size", "row-data"])
448
- ])) : M("", !0);
464
+ ])) : A("", !0);
449
465
  };
450
466
  }
451
- }), ft = { key: 0 }, yt = {
467
+ }), yt = { key: 0 }, kt = {
452
468
  key: 0,
453
469
  class: "space-y-8"
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 = {
470
+ }, ht = { class: "flex items-center justify-between" }, xt = { class: "fm-typo-en-title-md-600" }, wt = { class: "text-fm-color-typo-secondary" }, Ct = { class: "flex justify-end items-center" }, Ft = { class: "w-[320px]" }, St = {
455
471
  key: 1,
456
472
  class: "flex-1 flex flex-col min-h-0"
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 = {
473
+ }, $t = { class: "flex items-center justify-between p-8" }, Vt = { class: "flex-1 mr-8" }, Rt = { class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64" }, Tt = ["onClick"], Ut = { class: "flex-1 space-y-4" }, Mt = { class: "fm-typo-en-body-lg-600" }, At = {
458
474
  key: 0,
459
475
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
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 = {
476
+ }, It = { class: "fm-typo-en-title-md-600 mr-auto" }, Lt = { class: "py-8 px-8 overflow-y-auto space-y-24" }, Bt = { class: "space-y-16" }, Pt = { class: "rule-item" }, jt = { class: "flex items-center space-x-16" }, Gt = { class: "flex flex-col min-w-0 w-full" }, Ot = { class: "flex-1 relative border border-fm-color-neutral-gray-200 rounded-md p-16" }, Dt = { class: "flex items-center justify-between pb-8" }, zt = { class: "text-fm-color-neutral-gray-300" }, Nt = { class: "flex gap-8" }, Et = { class: "flex flex-col space-y-8" }, qt = { class: "fm-typo-en-body-lg-600" }, Kt = { class: "w-24" }, Wt = { class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden" }, Ht = { class: "whitespace-nowrap" }, Jt = { class: "fm-typo-en-body-lg-600 whitespace-nowrap" }, Qt = ["onClick"], Xt = {
461
477
  key: 0,
462
478
  class: "flex items-center select-none ml-16"
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 = {
479
+ }, Yt = { class: "fm-typo-en-body-lg-400 text-fm-color-neutral-gray-300" }, Zt = { class: "flex gap-8 items-center justify-start" }, el = { class: "flex items-center gap-24" }, tl = { class: "fm-typo-en-headline-lg-600" }, ll = { class: "p-16 flex flex-col gap-16" }, al = { class: "fm-typo-en-body-lg-600" }, ol = { class: "flex flex-col gap-16" }, nl = { class: "flex w-full justify-between gap-16" }, sl = {
464
480
  key: 0,
465
481
  class: "flex w-full [&>*]:w-full"
466
- }, sl = { class: "break-all fm-typo-en-body-lg-400 line-clamp-1" }, ul = { class: "flex gap-16 items-center" }, il = /* @__PURE__ */ E({
482
+ }, ul = { class: "break-all fm-typo-en-body-lg-400 line-clamp-1" }, il = { class: "flex gap-16 items-center" }, rl = /* @__PURE__ */ q({
467
483
  __name: "RuleGroupsTab",
468
484
  props: {
469
485
  sdk: {}
470
486
  },
471
- setup(I) {
472
- const p = I, { t: e } = q(), f = {
487
+ setup(B) {
488
+ const v = B, { t: e } = K(), y = {
473
489
  mounted: (l, a) => {
474
490
  var n;
475
491
  (n = l.querySelector("input")) == null || n.setAttribute("aria-label", a.value);
@@ -478,40 +494,40 @@ const ut = {
478
494
  var n;
479
495
  (n = l.querySelector("input")) == null || n.setAttribute("aria-label", a.value);
480
496
  }
481
- }, S = Ce(), _ = ce(), { run: d } = ne(), { breakpoints: m } = ot(), A = V(() => m.value.xs), L = H(
482
- p.sdk.menuSetting.ruleGroupList
483
- ), x = V(
484
- () => L.value.status === "ready" ? L.value.value : null
485
- ), r = V(() => {
497
+ }, S = Fe(), b = ce(), { run: m } = ne(), { breakpoints: d } = Se(), $ = V(() => d.value.xs), P = J(
498
+ v.sdk.menuSetting.ruleGroupList
499
+ ), f = V(
500
+ () => P.value.status === "ready" ? P.value.value : null
501
+ ), p = V(() => {
486
502
  var l;
487
- return [...((l = x.value) == null ? void 0 : l.rows) ?? []];
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
503
+ return [...((l = f.value) == null ? void 0 : l.rows) ?? []];
504
+ }), U = G(!1), r = ke(null), c = ke(null), I = xe(() => r.value), L = V(
505
+ () => c.value ? I.issue(c.value.fieldIssues, "name") ?? c.value.nameIssue : null
490
506
  ), Q = V(
491
- () => c.value ? O.issue(c.value.fieldIssues, "rules") ?? c.value.rulesIssue : null
507
+ () => c.value ? I.issue(c.value.fieldIssues, "rules") ?? c.value.rulesIssue : null
492
508
  );
493
- let y = null;
494
- function j(l) {
495
- D();
496
- const a = p.sdk.menuSetting.ruleGroupEditor(l);
497
- b.value = a, y = a.subscribe(
509
+ let k = null;
510
+ function O(l) {
511
+ z();
512
+ const a = v.sdk.menuSetting.ruleGroupEditor(l);
513
+ r.value = a, k = a.subscribe(
498
514
  (n) => {
499
515
  c.value = n.status === "ready" ? n.value : null;
500
516
  }
501
- ), $.value = !0;
517
+ ), U.value = !0;
502
518
  }
503
- function D() {
519
+ function z() {
504
520
  var l;
505
- B.value = !1, y == null || y(), y = null, (l = b.value) == null || l.dispose(), b.value = null, c.value = null, $.value = !1;
521
+ j.value = !1, k == null || k(), k = null, (l = r.value) == null || l.dispose(), r.value = null, c.value = null, U.value = !1;
506
522
  }
507
- we(() => D());
508
- function Ve() {
523
+ Ce(() => z());
524
+ function Te() {
509
525
  var l;
510
526
  if (!((l = c.value) != null && l.dirty)) {
511
- D();
527
+ z();
512
528
  return;
513
529
  }
514
- _.open({
530
+ b.open({
515
531
  title: e("menu.common.dialog.dismiss.title"),
516
532
  message: e("menu.common.dialog.dismiss.message"),
517
533
  primaryActions: {
@@ -522,11 +538,11 @@ const ut = {
522
538
  text: e("menu.common.actions.cancel"),
523
539
  close: !0
524
540
  }
525
- }).onPrimary(() => D());
541
+ }).onPrimary(() => z());
526
542
  }
527
- const B = P(!1), X = P(null), de = P(!1), G = P([]), me = he(
528
- () => B.value ? X.value ?? "new" : null
529
- ), Y = P(""), Z = P("");
543
+ const j = G(!1), X = G(null), de = G(!1), D = G([]), me = xe(
544
+ () => j.value ? X.value ?? "new" : null
545
+ ), Y = G(""), Z = G("");
530
546
  let pe = 0;
531
547
  function ee() {
532
548
  return pe += 1, {
@@ -546,12 +562,12 @@ const ut = {
546
562
  value: "startsWith",
547
563
  label: "menu.rule_groups.condition_view.operator.starts_with"
548
564
  }
549
- ], Re = V(
565
+ ], Ue = V(
550
566
  () => _e.map((l) => ({ label: e(l.label), value: l.value }))
551
567
  );
552
- function Te(l) {
568
+ function Me(l) {
553
569
  var n;
554
- const a = (n = _e.find((k) => k.value === l)) == null ? void 0 : n.label;
570
+ const a = (n = _e.find((h) => h.value === l)) == null ? void 0 : n.label;
555
571
  return a ? e(a) : "";
556
572
  }
557
573
  function ve(l) {
@@ -560,93 +576,93 @@ const ut = {
560
576
  (n) => n.key === l
561
577
  ) ?? null;
562
578
  }
563
- function Ue(l) {
564
- var k;
565
- const a = G.value.filter((R) => R.key !== l.key).map((R) => R.attribute), n = Y.value.trim().toLowerCase();
566
- return (((k = c.value) == null ? void 0 : k.attributeOptions) ?? []).filter((R) => !a.includes(R.key)).map((R) => ({
579
+ function Ae(l) {
580
+ var h;
581
+ const a = D.value.filter((R) => R.key !== l.key).map((R) => R.attribute), n = Y.value.trim().toLowerCase();
582
+ return (((h = c.value) == null ? void 0 : h.attributeOptions) ?? []).filter((R) => !a.includes(R.key)).map((R) => ({
567
583
  label: e(R.label, R.labelParams ?? {}),
568
584
  value: R.key
569
585
  })).filter((R) => !n || R.label.toLowerCase().includes(n));
570
586
  }
571
- function Me(l) {
587
+ function Ie(l) {
572
588
  var n;
573
589
  const a = Z.value.trim().toLowerCase();
574
- return (((n = ve(l.attribute)) == null ? void 0 : n.values) ?? []).map((k) => ({
590
+ return (((n = ve(l.attribute)) == null ? void 0 : n.values) ?? []).map((h) => ({
575
591
  // Display text, not a code: a value is business data shown verbatim.
576
- label: k.label,
592
+ label: h.label,
577
593
  // FmSelect needs a primitive; a value travels as its key.
578
- value: xe(k.value),
579
- selected: l.values.includes(k.value)
594
+ value: we(h.value),
595
+ selected: l.values.includes(h.value)
580
596
  })).filter(
581
- (k) => !a || k.label.toLowerCase().includes(a) || // A chosen value stays listed while filtering, so FmSelect keeps it.
582
- k.selected
583
- ).map(({ label: k, value: R }) => ({ label: k, value: R }));
597
+ (h) => !a || h.label.toLowerCase().includes(a) || // A chosen value stays listed while filtering, so FmSelect keeps it.
598
+ h.selected
599
+ ).map(({ label: h, value: R }) => ({ label: h, value: R }));
584
600
  }
585
- function Ae(l) {
601
+ function Le(l) {
586
602
  const a = ve(l.attribute);
587
603
  return l.values.map(
588
604
  (n) => {
589
- var k;
590
- return ((k = a == null ? void 0 : a.values.find((R) => R.value === n)) == null ? void 0 : k.label) ?? String(n);
605
+ var h;
606
+ return ((h = a == null ? void 0 : a.values.find((R) => R.value === n)) == null ? void 0 : h.label) ?? String(n);
591
607
  }
592
608
  ).join(", ");
593
609
  }
594
610
  function ge() {
595
- return G.value.map((l) => ({
611
+ return D.value.map((l) => ({
596
612
  attribute: l.attribute,
597
613
  operator: l.operator,
598
614
  values: [...l.values]
599
615
  }));
600
616
  }
601
- const Ie = V(
617
+ const Be = V(
602
618
  () => {
603
619
  var l;
604
- return ((l = b.value) == null ? void 0 : l.conditionFieldIssues(ge())) ?? {};
620
+ return ((l = r.value) == null ? void 0 : l.conditionFieldIssues(ge())) ?? {};
605
621
  }
606
622
  );
607
- function K(l, a) {
623
+ function W(l, a) {
608
624
  return me.issue(
609
- Ie.value,
625
+ Be.value,
610
626
  `conditions.${l}.${a}`
611
627
  );
612
628
  }
613
629
  function te(l) {
614
- X.value = (l == null ? void 0 : l.id) ?? null, de.value = !!l && l.conditions.length > 0, G.value = l != null && l.conditions.length ? l.conditions.map((a) => ({
630
+ X.value = (l == null ? void 0 : l.id) ?? null, de.value = !!l && l.conditions.length > 0, D.value = l != null && l.conditions.length ? l.conditions.map((a) => ({
615
631
  ...ee(),
616
632
  attribute: a.attribute,
617
633
  operator: a.operator,
618
634
  values: [...a.values]
619
- })) : [ee()], Y.value = "", Z.value = "", B.value = !0;
635
+ })) : [ee()], Y.value = "", Z.value = "", j.value = !0;
620
636
  }
621
- function Le() {
622
- G.value = [...G.value, ee()];
637
+ function Pe() {
638
+ D.value = [...D.value, ee()];
623
639
  }
624
- function Be(l) {
625
- const a = G.value.filter((n) => n.key !== l);
626
- G.value = a.length > 0 ? a : [ee()];
640
+ function je(l) {
641
+ const a = D.value.filter((n) => n.key !== l);
642
+ D.value = a.length > 0 ? a : [ee()];
627
643
  }
628
- function Pe(l, a) {
644
+ function Ge(l, a) {
629
645
  l.attribute = a, l.values = [];
630
646
  }
631
- function je(l) {
647
+ function Oe(l) {
632
648
  return re(l.operator) === "text";
633
649
  }
634
- function Ge(l, a) {
650
+ function De(l, a) {
635
651
  const n = re(l.operator);
636
652
  l.operator = a, re(l.operator) !== n && (l.values = []);
637
653
  }
638
- function Oe() {
639
- if (!b.value) return;
640
- const l = ge(), a = X.value ? b.value.updateRule(X.value, l) : b.value.addRule(l);
654
+ function ze() {
655
+ if (!r.value) return;
656
+ const l = ge(), a = X.value ? r.value.updateRule(X.value, l) : r.value.addRule(l);
641
657
  if (a.kind === "rejected") {
642
658
  me.submit(
643
659
  async () => ({ kind: "rejected", issues: a.issues })
644
660
  );
645
661
  return;
646
662
  }
647
- B.value = !1;
663
+ j.value = !1;
648
664
  }
649
- function De(l) {
665
+ function Ne(l) {
650
666
  return `${e("menu.rule_groups.condition_view.rule")} ${l + 1}`;
651
667
  }
652
668
  const le = V(
@@ -655,23 +671,23 @@ const ut = {
655
671
  return (((l = c.value) == null ? void 0 : l.rules) ?? []).map((a) => ({ id: a.id, rule: a }));
656
672
  }
657
673
  );
658
- function ze(l) {
674
+ function Ee(l) {
659
675
  var a;
660
- (a = b.value) == null || a.reorderRules(l.map((n) => n.id));
676
+ (a = r.value) == null || a.reorderRules(l.map((n) => n.id));
661
677
  }
662
- function Ne(l) {
678
+ function qe(l) {
663
679
  var a;
664
- (a = b.value) == null || a.duplicateRule(l);
680
+ (a = r.value) == null || a.duplicateRule(l);
665
681
  }
666
- function Ee(l) {
682
+ function Ke(l) {
667
683
  var a;
668
- (a = b.value) == null || a.removeRule(l), O.touch("rules");
684
+ (a = r.value) == null || a.removeRule(l), I.touch("rules");
669
685
  }
670
- async function qe() {
671
- const l = b.value;
686
+ async function We() {
687
+ const l = r.value;
672
688
  if (!l) return;
673
- (await d(
674
- () => O.submit(() => l.submit()),
689
+ (await m(
690
+ () => I.submit(() => l.submit()),
675
691
  {
676
692
  successMessage: e("menu.rule_groups.saved_successfully"),
677
693
  showLoading: () => {
@@ -679,15 +695,15 @@ const ut = {
679
695
  return ((n = c.value) == null ? void 0 : n.status) === "submitting";
680
696
  }
681
697
  }
682
- )).kind === "success" && D();
698
+ )).kind === "success" && z();
683
699
  }
684
- async function Ke(l) {
685
- await d(() => p.sdk.menuSetting.copyRuleGroup(l.id), {
700
+ async function He(l) {
701
+ await m(() => v.sdk.menuSetting.copyRuleGroup(l.id), {
686
702
  successMessage: e("menu.rule_groups.saved_successfully")
687
703
  });
688
704
  }
689
705
  function be(l) {
690
- _.open({
706
+ b.open({
691
707
  title: e("menu.rule_groups.delete_dialog.title"),
692
708
  message: e("menu.rule_groups.delete_dialog.message", {
693
709
  name: l.name
@@ -703,12 +719,12 @@ const ut = {
703
719
  close: !0
704
720
  }
705
721
  }).onPrimary(async () => {
706
- await d(() => p.sdk.menuSetting.removeRuleGroup(l.id), {
722
+ await m(() => v.sdk.menuSetting.removeRuleGroup(l.id), {
707
723
  successMessage: e("menu.rule_groups.saved_successfully")
708
- }), _.close();
724
+ }), b.close();
709
725
  });
710
726
  }
711
- const We = V(() => [
727
+ const Je = V(() => [
712
728
  {
713
729
  accessorKey: "name",
714
730
  enableSorting: !0,
@@ -727,25 +743,25 @@ const ut = {
727
743
  // Both actions are icon-only in legacy and carry NO accessible name.
728
744
  // The new app gives them one here; without it neither a locator nor a
729
745
  // screen reader can tell them apart.
730
- cell: (l) => N("div", { class: "px-4 flex justify-end" }, [
731
- N(oe.FmButton, {
746
+ cell: (l) => E("div", { class: "px-4 flex justify-end" }, [
747
+ E(oe.FmButton, {
732
748
  icon: "file_copy",
733
749
  variant: "tertiary",
734
750
  textColor: "neutral-gray-400",
735
751
  "aria-label": e("menu.menu_setting.rule_groups.copy_action"),
736
752
  disabled: l.row.original.copy.state !== "allowed",
737
- onClick: U(
738
- () => Ke(l.row.original),
753
+ onClick: M(
754
+ () => He(l.row.original),
739
755
  ["stop", "prevent"]
740
756
  )
741
757
  }),
742
- N(oe.FmButton, {
758
+ E(oe.FmButton, {
743
759
  icon: "delete",
744
760
  variant: "tertiary",
745
761
  textColor: "neutral-gray-400",
746
762
  "aria-label": e("menu.menu_setting.rule_groups.delete_action"),
747
763
  disabled: l.row.original.remove.state !== "allowed",
748
- onClick: U(
764
+ onClick: M(
749
765
  () => be(l.row.original),
750
766
  ["stop", "prevent"]
751
767
  )
@@ -754,13 +770,13 @@ const ut = {
754
770
  }
755
771
  ]);
756
772
  return (l, a) => {
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");
758
- return x.value ? (i(), h("div", ft, [
759
- A.value ? (i(), h("div", Ft, [
760
- o("div", St, [
761
- o("div", $t, [
762
- u(k, {
763
- "model-value": x.value.query,
773
+ const n = F("FmButton"), h = F("FmSearch"), R = F("FmTable"), se = F("FmTextField"), Qe = F("FmMenu"), Xe = F("FmHelperText"), fe = F("FmSideSheet"), ue = F("FmSelect");
774
+ return f.value ? (i(), x("div", yt, [
775
+ $.value ? (i(), x("div", St, [
776
+ o("div", $t, [
777
+ o("div", Vt, [
778
+ u(h, {
779
+ "model-value": f.value.query,
764
780
  autofocus: "",
765
781
  class: "w-full",
766
782
  placeholder: t(e)("menu.rule_groups.search_placeholder"),
@@ -771,19 +787,19 @@ const ut = {
771
787
  icon: "add",
772
788
  variant: "secondary",
773
789
  "aria-label": t(e)("menu.rule_groups.create_group"),
774
- disabled: x.value.create.state !== "allowed",
775
- onClick: a[4] || (a[4] = (s) => j())
790
+ disabled: f.value.create.state !== "allowed",
791
+ onClick: a[4] || (a[4] = (s) => O())
776
792
  }, null, 8, ["aria-label", "disabled"])
777
793
  ]),
778
- o("div", Vt, [
779
- (i(!0), h(z, null, W(x.value.rows, (s) => (i(), h("div", {
794
+ o("div", Rt, [
795
+ (i(!0), x(N, null, H(f.value.rows, (s) => (i(), x("div", {
780
796
  key: s.id,
781
797
  class: "flex flex-row py-12 px-16 cursor-pointer",
782
- onClick: (T) => j(s.id)
798
+ onClick: (T) => O(s.id)
783
799
  }, [
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)
800
+ o("div", Ut, [
801
+ o("p", Mt, C(s.name), 1),
802
+ s.description ? (i(), x("p", At, C(s.description), 1)) : A("", !0)
787
803
  ]),
788
804
  u(n, {
789
805
  "text-color": "neutral-gray-400",
@@ -791,27 +807,27 @@ const ut = {
791
807
  icon: "delete",
792
808
  "aria-label": t(e)("menu.menu_setting.rule_groups.delete_action"),
793
809
  disabled: s.remove.state !== "allowed",
794
- onClick: U((T) => be(s), ["stop"])
810
+ onClick: M((T) => be(s), ["stop"])
795
811
  }, null, 8, ["aria-label", "disabled", "onClick"])
796
- ], 8, Rt))), 128))
812
+ ], 8, Tt))), 128))
797
813
  ])
798
- ])) : (i(), h("div", yt, [
799
- o("div", kt, [
814
+ ])) : (i(), x("div", kt, [
815
+ o("div", ht, [
800
816
  o("div", null, [
801
- o("h1", ht, w(t(e)("menu.rule_groups.title")), 1),
802
- o("p", xt, w(t(e)("menu.rule_groups.description")), 1)
817
+ o("h1", xt, C(t(e)("menu.rule_groups.title")), 1),
818
+ o("p", wt, C(t(e)("menu.rule_groups.description")), 1)
803
819
  ]),
804
820
  u(n, {
805
821
  label: t(e)("menu.rule_groups.create_group"),
806
822
  "prepend-icon": "add",
807
- disabled: x.value.create.state !== "allowed",
808
- onClick: a[0] || (a[0] = (s) => j())
823
+ disabled: f.value.create.state !== "allowed",
824
+ onClick: a[0] || (a[0] = (s) => O())
809
825
  }, null, 8, ["label", "disabled"])
810
826
  ]),
811
- o("div", wt, [
812
- o("div", Ct, [
813
- u(k, {
814
- "model-value": x.value.query,
827
+ o("div", Ct, [
828
+ o("div", Ft, [
829
+ u(h, {
830
+ "model-value": f.value.query,
815
831
  autofocus: "",
816
832
  class: "mb-8",
817
833
  placeholder: t(e)("menu.rule_groups.search_placeholder"),
@@ -819,73 +835,73 @@ const ut = {
819
835
  }, null, 8, ["model-value", "placeholder"])
820
836
  ])
821
837
  ]),
822
- u(Se, null, {
823
- default: g(() => [
838
+ u(Ve, null, {
839
+ default: _(() => [
824
840
  u(R, {
825
- "column-defs": We.value,
826
- "row-data": r.value,
827
- "page-size": Math.max(r.value.length, 1),
841
+ "column-defs": Je.value,
842
+ "row-data": p.value,
843
+ "page-size": Math.max(p.value.length, 1),
828
844
  "hide-footer": "",
829
- onRowClick: a[2] || (a[2] = (s) => j(s.original.id))
845
+ onRowClick: a[2] || (a[2] = (s) => O(s.original.id))
830
846
  }, null, 8, ["column-defs", "row-data", "page-size"])
831
847
  ]),
832
848
  _: 1
833
849
  })
834
850
  ])),
835
- $.value && c.value ? (i(), F(fe, {
851
+ U.value && c.value ? (i(), w(fe, {
836
852
  key: 2,
837
- "model-value": $.value,
853
+ "model-value": U.value,
838
854
  "max-width": 760,
839
- "onOn:clickedAway": Ve
855
+ "onOn:clickedAway": Te
840
856
  }, {
841
- "side-sheet-header": g(() => [
857
+ "side-sheet-header": _(() => [
842
858
  u(n, {
843
859
  variant: "tertiary",
844
860
  class: "cursor-pointer mr-4",
845
861
  "prepend-icon": "arrow_back",
846
862
  "aria-label": t(e)("menu.common.actions.back"),
847
- onClick: D
863
+ onClick: z
848
864
  }, null, 8, ["aria-label"]),
849
- o("p", At, w(c.value.mode === "create" ? t(e)("menu.rule_groups.create_group") : t(e)("menu.rule_groups.edit_group")), 1)
865
+ o("p", It, C(c.value.mode === "create" ? t(e)("menu.rule_groups.create_group") : t(e)("menu.rule_groups.edit_group")), 1)
850
866
  ]),
851
- "side-sheet-footer": g(() => [
852
- o("div", Yt, [
867
+ "side-sheet-footer": _(() => [
868
+ o("div", Zt, [
853
869
  u(n, {
854
870
  label: t(e)("menu.common.actions.save"),
855
871
  size: "lg",
856
872
  variant: "primary",
857
873
  disabled: c.value.submit.state !== "allowed",
858
874
  loading: c.value.status === "submitting",
859
- onClick: qe
875
+ onClick: We
860
876
  }, null, 8, ["label", "disabled", "loading"]),
861
877
  u(n, {
862
878
  label: t(e)("menu.common.actions.cancel"),
863
879
  size: "lg",
864
880
  variant: "tertiary",
865
- onClick: D
881
+ onClick: z
866
882
  }, null, 8, ["label"])
867
883
  ])
868
884
  ]),
869
- default: g(() => [
870
- o("div", It, [
885
+ default: _(() => [
886
+ o("div", Lt, [
871
887
  u(ae, {
872
888
  title: t(e)("menu.rule_groups.form.basic_info")
873
889
  }, {
874
- default: g(() => [
875
- o("div", Lt, [
876
- u(se, Xe(
890
+ default: _(() => [
891
+ o("div", Bt, [
892
+ u(se, Ze(
877
893
  {
878
894
  "model-value": c.value.name,
879
895
  label: t(e)("menu.rule_groups.form.name"),
880
896
  "label-mark": "required",
881
897
  placeholder: t(e)("menu.rule_groups.form.name_placeholder"),
882
- "error-messages": J.value ? [t(S)(J.value)] : []
898
+ "error-messages": L.value ? [t(S)(L.value)] : []
883
899
  },
884
- t(O).field(
900
+ t(I).field(
885
901
  "name",
886
902
  (s) => {
887
903
  var T;
888
- return (T = b.value) == null ? void 0 : T.setName(String(s ?? ""));
904
+ return (T = r.value) == null ? void 0 : T.setName(String(s ?? ""));
889
905
  }
890
906
  )
891
907
  ), null, 16, ["model-value", "label", "placeholder", "error-messages"]),
@@ -896,7 +912,7 @@ const ut = {
896
912
  placeholder: t(e)("menu.rule_groups.form.description_placeholder"),
897
913
  "onUpdate:modelValue": a[5] || (a[5] = (s) => {
898
914
  var T;
899
- return (T = b.value) == null ? void 0 : T.setDescription(String(s ?? ""));
915
+ return (T = r.value) == null ? void 0 : T.setDescription(String(s ?? ""));
900
916
  })
901
917
  }, null, 8, ["model-value", "label", "placeholder"])
902
918
  ])
@@ -907,35 +923,35 @@ const ut = {
907
923
  title: t(e)("menu.rule_groups.form.rules"),
908
924
  "sub-title": t(e)("menu.rule_groups.form.rules_description")
909
925
  }, {
910
- default: g(() => [
911
- le.value.length > 0 ? (i(), h(z, { key: 0 }, [
912
- u(t(et), {
926
+ default: _(() => [
927
+ le.value.length > 0 ? (i(), x(N, { key: 0 }, [
928
+ u(t(tt), {
913
929
  "model-value": le.value,
914
930
  "item-key": "id",
915
931
  handle: ".rule-drag-handle",
916
- "onUpdate:modelValue": ze
932
+ "onUpdate:modelValue": Ee
917
933
  }, {
918
- item: g(({ element: s, index: T }) => [
919
- o("div", Bt, [
920
- o("div", Pt, [
934
+ item: _(({ element: s, index: T }) => [
935
+ o("div", Pt, [
936
+ o("div", jt, [
921
937
  u(n, {
922
938
  class: "rule-drag-handle cursor-grab",
923
939
  variant: "tertiary",
924
940
  "prepend-icon": "drag_indicator",
925
941
  "aria-label": t(e)("menu.menu_setting.rule_groups.reorder_rule")
926
942
  }, null, 8, ["aria-label"]),
927
- o("div", jt, [
928
- o("div", Gt, [
929
- o("div", Ot, [
930
- o("p", Dt, w(De(T)), 1),
931
- o("div", zt, [
943
+ o("div", Gt, [
944
+ o("div", Ot, [
945
+ o("div", Dt, [
946
+ o("p", zt, C(Ne(T)), 1),
947
+ o("div", Nt, [
932
948
  u(n, {
933
949
  variant: "tertiary",
934
950
  class: "cursor-pointer",
935
951
  "prepend-icon": "edit",
936
952
  "text-color": "primary",
937
953
  "aria-label": t(e)("menu.link_product.rules.edit_rule"),
938
- onClick: U((v) => te(s.rule), ["stop"])
954
+ onClick: M((g) => te(s.rule), ["stop"])
939
955
  }, null, 8, ["aria-label", "onClick"]),
940
956
  u(n, {
941
957
  variant: "tertiary",
@@ -943,7 +959,7 @@ const ut = {
943
959
  "prepend-icon": "file_copy",
944
960
  "text-color": "primary",
945
961
  "aria-label": t(e)("menu.menu_setting.rule_groups.copy_rule"),
946
- onClick: U((v) => Ne(s.id), ["stop"])
962
+ onClick: M((g) => qe(s.id), ["stop"])
947
963
  }, null, 8, ["aria-label", "onClick"]),
948
964
  u(n, {
949
965
  variant: "tertiary",
@@ -951,39 +967,39 @@ const ut = {
951
967
  "prepend-icon": "delete",
952
968
  "text-color": "typo-error",
953
969
  "aria-label": t(e)("menu.menu_setting.rule_groups.remove_rule"),
954
- onClick: U((v) => Ee(s.id), ["stop"])
970
+ onClick: M((g) => Ke(s.id), ["stop"])
955
971
  }, null, 8, ["aria-label", "onClick"])
956
972
  ])
957
973
  ]),
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", {
974
+ o("div", Et, [
975
+ o("p", qt, C(t(e)("menu.rule_groups.condition_view.when")), 1),
976
+ (i(!0), x(N, null, H(s.rule.conditions, (g, ye) => (i(), x("div", {
961
977
  key: ye,
962
978
  class: "flex w-full items-center space-x-8"
963
979
  }, [
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 ?? {}
980
+ o("p", Kt, C(ye + 1) + ".", 1),
981
+ o("div", Wt, [
982
+ o("p", Ht, C(t(e)(
983
+ g.attributeLabel,
984
+ g.attributeLabelParams ?? {}
969
985
  )), 1),
970
- o("p", Ht, w(Te(v.operator)), 1),
971
- u(He, {
986
+ o("p", Jt, C(Me(g.operator)), 1),
987
+ u(Qe, {
972
988
  trigger: "hover",
973
989
  "close-on-mouse-leave": ""
974
990
  }, {
975
- "menu-button": g(() => [
991
+ "menu-button": _(() => [
976
992
  o("p", {
977
993
  class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate",
978
- onClick: U((ie) => te(s.rule), ["stop"])
979
- }, w(v.valueLabels.join(", ")), 9, Jt)
994
+ onClick: M((ie) => te(s.rule), ["stop"])
995
+ }, C(g.valueLabels.join(", ")), 9, Qt)
980
996
  ]),
981
- default: g(() => [
982
- (i(!0), h(z, null, W(v.valueLabels, (ie) => (i(), h("div", {
997
+ default: _(() => [
998
+ (i(!0), x(N, null, H(g.valueLabels, (ie) => (i(), x("div", {
983
999
  key: ie,
984
1000
  class: "flex flex-col px-8 space-y-8"
985
1001
  }, [
986
- o("p", null, w(ie), 1)
1002
+ o("p", null, C(ie), 1)
987
1003
  ]))), 128))
988
1004
  ]),
989
1005
  _: 2
@@ -994,9 +1010,9 @@ const ut = {
994
1010
  ])
995
1011
  ])
996
1012
  ]),
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)
1013
+ le.value.length > 1 && T < le.value.length - 1 ? (i(), x("div", Xt, [
1014
+ o("span", Yt, C(t(e)("menu.rule_groups.condition_view.or")), 1)
1015
+ ])) : A("", !0)
1000
1016
  ])
1001
1017
  ]),
1002
1018
  _: 1
@@ -1006,10 +1022,10 @@ const ut = {
1006
1022
  variant: "primary",
1007
1023
  label: t(e)("menu.link_product.rules.add_rule"),
1008
1024
  "prepend-icon": "add",
1009
- onClick: a[6] || (a[6] = U((s) => te(), ["stop"]))
1025
+ onClick: a[6] || (a[6] = M((s) => te(), ["stop"]))
1010
1026
  }, null, 8, ["label"])
1011
1027
  ])
1012
- ], 64)) : (i(), F(t(Fe), {
1028
+ ], 64)) : (i(), w(t($e), {
1013
1029
  key: 1,
1014
1030
  title: "",
1015
1031
  subtitle: t(e)("menu.rule_groups.condition_view.empty_data.no_rule_available"),
@@ -1018,75 +1034,75 @@ const ut = {
1018
1034
  callback: () => te()
1019
1035
  }
1020
1036
  }, null, 8, ["subtitle", "action"])),
1021
- Q.value ? (i(), F(Je, {
1037
+ Q.value ? (i(), w(Xe, {
1022
1038
  key: 2,
1023
1039
  state: "error",
1024
1040
  text: t(S)(Q.value)
1025
- }, null, 8, ["text"])) : M("", !0)
1041
+ }, null, 8, ["text"])) : A("", !0)
1026
1042
  ]),
1027
1043
  _: 1
1028
1044
  }, 8, ["title", "sub-title"])
1029
1045
  ])
1030
1046
  ]),
1031
1047
  _: 1
1032
- }, 8, ["model-value"])) : M("", !0),
1033
- B.value ? (i(), F(fe, {
1048
+ }, 8, ["model-value"])) : A("", !0),
1049
+ j.value ? (i(), w(fe, {
1034
1050
  key: 3,
1035
- "model-value": B.value,
1051
+ "model-value": j.value,
1036
1052
  "max-width": 760,
1037
1053
  "close-button": !1,
1038
- "onOn:clickedAway": a[14] || (a[14] = (s) => B.value = !1)
1054
+ "onOn:clickedAway": a[14] || (a[14] = (s) => j.value = !1)
1039
1055
  }, {
1040
- "side-sheet-header": g(() => [
1041
- o("div", Zt, [
1056
+ "side-sheet-header": _(() => [
1057
+ o("div", el, [
1042
1058
  u(n, {
1043
1059
  variant: "tertiary",
1044
1060
  "prepend-icon": "arrow_back",
1045
1061
  "aria-label": t(e)("menu.common.actions.back"),
1046
- onClick: a[7] || (a[7] = U((s) => B.value = !1, ["stop"]))
1062
+ onClick: a[7] || (a[7] = M((s) => j.value = !1, ["stop"]))
1047
1063
  }, null, 8, ["aria-label"]),
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)
1064
+ o("div", tl, C(de.value ? t(e)("menu.rule_groups.condition_view.edit_condition") : t(e)("menu.rule_groups.condition_view.add_condition")), 1)
1049
1065
  ])
1050
1066
  ]),
1051
- "side-sheet-footer": g(() => [
1052
- o("div", ul, [
1067
+ "side-sheet-footer": _(() => [
1068
+ o("div", il, [
1053
1069
  u(n, {
1054
1070
  variant: "primary",
1055
1071
  label: t(e)("menu.common.actions.save"),
1056
- onClick: Oe
1072
+ onClick: ze
1057
1073
  }, null, 8, ["label"]),
1058
1074
  u(n, {
1059
1075
  variant: "secondary",
1060
1076
  label: t(e)("menu.common.actions.cancel"),
1061
- onClick: a[13] || (a[13] = U((s) => B.value = !1, ["stop"]))
1077
+ onClick: a[13] || (a[13] = M((s) => j.value = !1, ["stop"]))
1062
1078
  }, null, 8, ["label"])
1063
1079
  ])
1064
1080
  ]),
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", {
1081
+ default: _(() => [
1082
+ o("div", ll, [
1083
+ o("p", al, C(t(e)("menu.rule_groups.condition_view.condition")), 1),
1084
+ o("div", ol, [
1085
+ (i(!0), x(N, null, H(D.value, (s, T) => (i(), x("div", {
1070
1086
  key: s.key,
1071
1087
  class: "flex justify-between gap-8"
1072
1088
  }, [
1073
- o("div", ol, [
1089
+ o("div", nl, [
1074
1090
  u(ue, {
1075
1091
  class: "flex w-full",
1076
1092
  "model-value": s.attribute,
1077
- items: Ue(s),
1093
+ items: Ae(s),
1078
1094
  placeholder: t(e)("menu.rule_groups.condition_view.select_item"),
1079
1095
  "aria-label": t(e)("menu.menu_setting.rule_groups.condition.attribute"),
1080
- "onUpdate:modelValue": (v) => Pe(s, v)
1096
+ "onUpdate:modelValue": (g) => Ge(s, g)
1081
1097
  }, {
1082
- "prepend-menu": g(() => [
1098
+ "prepend-menu": _(() => [
1083
1099
  o("div", {
1084
- onClick: a[9] || (a[9] = U(() => {
1100
+ onClick: a[9] || (a[9] = M(() => {
1085
1101
  }, ["stop"]))
1086
1102
  }, [
1087
- u(k, {
1103
+ u(h, {
1088
1104
  modelValue: Y.value,
1089
- "onUpdate:modelValue": a[8] || (a[8] = (v) => Y.value = v),
1105
+ "onUpdate:modelValue": a[8] || (a[8] = (g) => Y.value = g),
1090
1106
  class: "px-8",
1091
1107
  placeholder: t(e)("menu.menu_setting.rule_groups.filter_options")
1092
1108
  }, null, 8, ["modelValue", "placeholder"])
@@ -1097,48 +1113,48 @@ const ut = {
1097
1113
  u(ue, {
1098
1114
  class: "flex w-full",
1099
1115
  "model-value": s.operator,
1100
- items: Re.value,
1116
+ items: Ue.value,
1101
1117
  placeholder: t(e)("menu.rule_groups.condition_view.select_item"),
1102
1118
  "aria-label": t(e)("menu.menu_setting.rule_groups.condition.operator"),
1103
- "error-messages": K(T, "operator") ? [t(S)(K(T, "operator"))] : [],
1104
- "onUpdate:modelValue": (v) => Ge(s, v)
1119
+ "error-messages": W(T, "operator") ? [t(S)(W(T, "operator"))] : [],
1120
+ "onUpdate:modelValue": (g) => De(s, g)
1105
1121
  }, null, 8, ["model-value", "items", "placeholder", "aria-label", "error-messages", "onUpdate:modelValue"]),
1106
- je(s) ? Ye((i(), h("div", nl, [
1122
+ Oe(s) ? et((i(), x("div", sl, [
1107
1123
  u(se, {
1108
1124
  "model-value": String(s.values[0] ?? ""),
1109
1125
  placeholder: t(e)("menu.menu_setting.rule_groups.condition.value"),
1110
- "error-messages": K(T, "values") ? [t(S)(K(T, "values"))] : [],
1111
- "onUpdate:modelValue": (v) => s.values = v === "" || v == null ? [] : [String(v)]
1126
+ "error-messages": W(T, "values") ? [t(S)(W(T, "values"))] : [],
1127
+ "onUpdate:modelValue": (g) => s.values = g === "" || g == null ? [] : [String(g)]
1112
1128
  }, null, 8, ["model-value", "placeholder", "error-messages", "onUpdate:modelValue"])
1113
1129
  ])), [
1114
1130
  [
1115
- f,
1131
+ y,
1116
1132
  t(e)("menu.menu_setting.rule_groups.condition.value")
1117
1133
  ]
1118
- ]) : (i(), F(ue, {
1134
+ ]) : (i(), w(ue, {
1119
1135
  key: 1,
1120
1136
  class: "flex w-full",
1121
- "model-value": s.values.map(t(xe)),
1122
- items: Me(s),
1137
+ "model-value": s.values.map(t(we)),
1138
+ items: Ie(s),
1123
1139
  multiselect: "",
1124
1140
  "hide-chips": "",
1125
1141
  placeholder: t(e)("menu.rule_groups.condition_view.select_item"),
1126
1142
  "aria-label": t(e)("menu.menu_setting.rule_groups.condition.value"),
1127
- "error-messages": K(T, "values") ? [t(S)(K(T, "values"))] : [],
1128
- "onUpdate:modelValue": (v) => s.values = v.map(t(st))
1143
+ "error-messages": W(T, "values") ? [t(S)(W(T, "values"))] : [],
1144
+ "onUpdate:modelValue": (g) => s.values = g.map(t(ut))
1129
1145
  }, {
1130
- default: g(() => [
1131
- o("div", sl, w(Ae(s)), 1)
1146
+ default: _(() => [
1147
+ o("div", ul, C(Le(s)), 1)
1132
1148
  ]),
1133
- "prepend-menu": g(() => [
1149
+ "prepend-menu": _(() => [
1134
1150
  o("div", {
1135
1151
  class: "flex",
1136
- onClick: a[11] || (a[11] = U(() => {
1152
+ onClick: a[11] || (a[11] = M(() => {
1137
1153
  }, ["stop"]))
1138
1154
  }, [
1139
- u(k, {
1155
+ u(h, {
1140
1156
  modelValue: Z.value,
1141
- "onUpdate:modelValue": a[10] || (a[10] = (v) => Z.value = v),
1157
+ "onUpdate:modelValue": a[10] || (a[10] = (g) => Z.value = g),
1142
1158
  class: "px-8",
1143
1159
  placeholder: t(e)("menu.menu_setting.rule_groups.filter_options")
1144
1160
  }, null, 8, ["modelValue", "placeholder"])
@@ -1151,76 +1167,76 @@ const ut = {
1151
1167
  variant: "tertiary",
1152
1168
  "prepend-icon": "close",
1153
1169
  "aria-label": t(e)("menu.menu_setting.rule_groups.remove_condition"),
1154
- onClick: U((v) => Be(s.key), ["stop"])
1170
+ onClick: M((g) => je(s.key), ["stop"])
1155
1171
  }, null, 8, ["aria-label", "onClick"])
1156
1172
  ]))), 128)),
1157
1173
  u(n, {
1158
1174
  variant: "plain",
1159
1175
  "prepend-icon": "add",
1160
1176
  label: t(e)("menu.rule_groups.condition_view.add_condition"),
1161
- onClick: a[12] || (a[12] = U((s) => Le(), ["stop"]))
1177
+ onClick: a[12] || (a[12] = M((s) => Pe(), ["stop"]))
1162
1178
  }, null, 8, ["label"])
1163
1179
  ])
1164
1180
  ])
1165
1181
  ]),
1166
1182
  _: 1
1167
- }, 8, ["model-value"])) : M("", !0)
1168
- ])) : M("", !0);
1183
+ }, 8, ["model-value"])) : A("", !0)
1184
+ ])) : A("", !0);
1169
1185
  };
1170
1186
  }
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({
1187
+ }), cl = { class: "flex h-full min-h-[240px] flex-col items-center justify-center gap-8 p-24 text-center" }, dl = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ml = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pl = /* @__PURE__ */ q({
1172
1188
  __name: "PlaceholderView",
1173
1189
  props: {
1174
1190
  module: {}
1175
1191
  },
1176
- setup(I) {
1177
- const { t: p } = q();
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)
1192
+ setup(B) {
1193
+ const { t: v } = K();
1194
+ return (e, y) => (i(), x("div", cl, [
1195
+ o("p", dl, C(e.module), 1),
1196
+ o("p", ml, C(t(v)("menu.common.placeholder.not_migrated")), 1)
1181
1197
  ]));
1182
1198
  }
1183
- }), pl = { class: "py-16" }, Vl = /* @__PURE__ */ E({
1199
+ }), _l = { class: "py-16" }, Tl = /* @__PURE__ */ q({
1184
1200
  __name: "MenuSetting",
1185
- setup(I) {
1186
- const p = lt(), { t: e } = q(), f = H(p.menuSetting.tabs), S = {
1201
+ setup(B) {
1202
+ const v = at(), { t: e } = K(), y = J(v.menuSetting.tabs), S = {
1187
1203
  configuration: "menu.menu_setting.tabs.menu_configuration",
1188
1204
  priceGroup: "menu.menu_setting.tabs.price_group",
1189
1205
  memberPricing: "menu.menu_setting.tabs.member_pricing",
1190
1206
  ruleGroups: "menu.menu_setting.tabs.link_product_rule_groups"
1191
- }, _ = V(
1192
- () => (f.value.status === "ready" ? f.value.value.tabs : []).filter((m) => m.capability.state !== "hidden").map((m) => ({
1193
- label: e(S[m.key]),
1194
- value: m.key
1207
+ }, b = V(
1208
+ () => (y.value.status === "ready" ? y.value.value.tabs : []).filter((d) => d.capability.state !== "hidden").map((d) => ({
1209
+ label: e(S[d.key]),
1210
+ value: d.key
1195
1211
  }))
1196
- ), d = P("configuration");
1197
- return (m, A) => {
1198
- const L = C("FmTabs");
1199
- return i(), F($e, {
1212
+ ), m = G("configuration");
1213
+ return (d, $) => {
1214
+ const P = F("FmTabs");
1215
+ return i(), w(Re, {
1200
1216
  heading: t(e)("menu.menu_setting.title")
1201
1217
  }, {
1202
- default: g(() => [
1203
- u(L, {
1204
- "model-value": d.value,
1205
- items: _.value,
1206
- "onUpdate:modelValue": A[0] || (A[0] = (x) => d.value = x)
1218
+ default: _(() => [
1219
+ u(P, {
1220
+ "model-value": m.value,
1221
+ items: b.value,
1222
+ "onUpdate:modelValue": $[0] || ($[0] = (f) => m.value = f)
1207
1223
  }, null, 8, ["model-value", "items"]),
1208
- o("div", pl, [
1209
- d.value === "configuration" ? (i(), F(ct, {
1224
+ o("div", _l, [
1225
+ m.value === "configuration" ? (i(), w(dt, {
1210
1226
  key: 0,
1211
- sdk: t(p)
1212
- }, null, 8, ["sdk"])) : d.value === "priceGroup" ? (i(), F(bt, {
1227
+ sdk: t(v)
1228
+ }, null, 8, ["sdk"])) : m.value === "priceGroup" ? (i(), w(ft, {
1213
1229
  key: 1,
1214
- sdk: t(p)
1215
- }, null, 8, ["sdk"])) : d.value === "memberPricing" ? (i(), F(mt, {
1230
+ sdk: t(v)
1231
+ }, null, 8, ["sdk"])) : m.value === "memberPricing" ? (i(), w(pt, {
1216
1232
  key: 2,
1217
- sdk: t(p)
1218
- }, null, 8, ["sdk"])) : d.value === "ruleGroups" ? (i(), F(il, {
1233
+ sdk: t(v)
1234
+ }, null, 8, ["sdk"])) : m.value === "ruleGroups" ? (i(), w(rl, {
1219
1235
  key: 3,
1220
- sdk: t(p)
1221
- }, null, 8, ["sdk"])) : (i(), F(ml, {
1236
+ sdk: t(v)
1237
+ }, null, 8, ["sdk"])) : (i(), w(pl, {
1222
1238
  key: 4,
1223
- module: t(e)(S[d.value])
1239
+ module: t(e)(S[m.value])
1224
1240
  }, null, 8, ["module"]))
1225
1241
  ])
1226
1242
  ]),
@@ -1230,5 +1246,5 @@ const ut = {
1230
1246
  }
1231
1247
  });
1232
1248
  export {
1233
- Vl as default
1249
+ Tl as default
1234
1250
  };