@feedmepos/mf-menu-portal 1.0.3 → 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.
- package/dist/{App-J3RVoKQ5.js → App-BZKKZoxc.js} +3 -3
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-DCAnIih4.js → BindingTable.vue_vue_type_script_setup_true_lang-CKMp3GaN.js} +1 -1
- package/dist/{Catalog-BejlUEvv.js → Catalog-CAHbtV4H.js} +4 -4
- package/dist/{CatalogBinding-ToZwXCle.js → CatalogBinding-Bhf_B-HW.js} +3 -3
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-sh6KJ-EY.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CFqyk2fz.js} +3 -3
- package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BPtM4nXy.js → CatalogEditor.vue_vue_type_script_setup_true_lang-DbSQyj5E.js} +166 -129
- package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-9fPdVZUD.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CYMrCMo1.js} +3 -3
- package/dist/{Category-DADvqueJ.js → Category-BiIE6JWS.js} +5 -5
- package/dist/{Category-BCAQCVoM.js → Category-n3cAs8IF.js} +2 -2
- package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-DBeo7DOG.js → CategoryList.vue_vue_type_script_setup_true_lang-BaecheDk.js} +4 -4
- package/dist/{CookingGuide-W7VGoWSH.js → CookingGuide-DHi4QqBd.js} +4 -4
- package/dist/{Group-BejasRr9.js → Group-D5-wyI4V.js} +2 -2
- package/dist/{Group-ICYE7rPa.js → Group-DkKUYhoT.js} +5 -5
- package/dist/{GroupList.vue_vue_type_script_setup_true_lang-1akgthxd.js → GroupList.vue_vue_type_script_setup_true_lang-C4MhLA7R.js} +5 -5
- package/dist/{Ingredient-LwvminU_.js → Ingredient-CbJSvV6r.js} +3 -3
- package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-DsfztmtZ.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C2pNO1hF.js} +1 -1
- package/dist/{MenuSetting-3Dtgy65g.js → MenuSetting-DaQPBU74.js} +250 -244
- package/dist/{OrderPacing-BK_leUo8.js → OrderPacing-CSJ-ohx3.js} +4 -4
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-gX_Qlohh.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-DDr0P_hg.js} +1 -1
- package/dist/{Preview-CyAyGgjc.js → Preview-D7WS3ftB.js} +1 -1
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-V_sRz-H2.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-CH099Ogz.js} +1 -1
- package/dist/{PrintRoute-D78I2kvG.js → PrintRoute-Ci5nFh5U.js} +3 -3
- package/dist/{Product-BytLdnJk.js → Product-Cnai3PSK.js} +4 -4
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-C55TBdoM.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-CgG9Ooj-.js} +2 -2
- package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CP6pVd3b.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-UeIB15M8.js} +411 -400
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-DPr_ggGs.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-BYrFs09n.js} +1 -1
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-DytFH22m.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BHaNygs1.js} +10 -10
- package/dist/{ProductInternalTools-D8q06kTk.js → ProductInternalTools-BDM2wNdr.js} +2 -2
- package/dist/{ProductInventoryDialog-CnlW8RYu.js → ProductInventoryDialog-CQzpqhFQ.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-DUOZ92Tr.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-B12JBNSL.js} +1 -1
- package/dist/{ProductList.vue_vue_type_script_setup_true_lang-C0aUtXqT.js → ProductList.vue_vue_type_script_setup_true_lang-bFpRJqAM.js} +8 -8
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-zAkoecAN.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-Chv4V2ps.js} +1 -1
- package/dist/{Products-BCabgmkJ.js → Products-BSRl9QqW.js} +3 -3
- package/dist/{Publish-UO6YBcFb.js → Publish-B0YeaFMZ.js} +3 -3
- package/dist/{Recipe-JH7iwsdI.js → Recipe-CUFm5Gvj.js} +3 -3
- package/dist/{Scheduler-CA1OhexS.js → Scheduler-D5ZSBFVY.js} +3 -3
- package/dist/{ServingSequence-21gF9ntN.js → ServingSequence-DaNyijEL.js} +2 -2
- package/dist/{Setting-BX0qJlzw.js → Setting-DbO5vVZf.js} +61 -55
- package/dist/SubItemTaxSwitch.vue_vue_type_script_setup_true_lang-DIFXPxna.js +37 -0
- package/dist/SubItemTaxWarning.vue_vue_type_script_setup_true_lang-BUyK6Jaa.js +27 -0
- package/dist/{Subcategory-BZ00Mb8G.js → Subcategory-HrK6lsAH.js} +2 -2
- package/dist/{Takeaway-gJuu6vRa.js → Takeaway-DZ2pXpc4.js} +5 -5
- package/dist/{Takeaway-DNGqyyqw.js → Takeaway-HmId8Qqp.js} +2 -2
- package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-B4yiJaSZ.js → TakeawayList.vue_vue_type_script_setup_true_lang-BBWdi9Em.js} +3 -3
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BbzBa74b.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DeAN-dVm.js} +6 -6
- package/dist/{Unit-DXvxR4og.js → Unit-oze9Bah6.js} +2 -2
- package/dist/{Variant-DkQdWFVU.js → Variant-B9j4riC-.js} +3 -3
- package/dist/{_id_-B7VR3tAc.js → _id_-Bp2gkxXp.js} +3 -3
- package/dist/{app-DFQPls7s.js → app-A5dqYWsU.js} +39 -39
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +105 -0
- package/dist/apps/mf-menu/src/components/MenuSetting/SubItemTaxSwitch.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/MenuSetting/SubItemTaxWarning.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/Product/ProductMoneyField.vue.d.ts +3 -3
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/menu-compute-BXVeOLK2.js +260 -0
- package/dist/assets/validate-menu-rN3yrHun.js +130 -0
- package/dist/{provide-B20ds2De.js → provide-Qt5LApQe.js} +80310 -73908
- package/dist/{useActionFeedback-DVUPq042.js → useActionFeedback-CtMJLWBu.js} +1 -1
- package/package.json +1 -1
- package/dist/assets/menu-compute-B1cG-Eze.js +0 -260
- package/dist/assets/validate-menu-CpczXG8D.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
|
|
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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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-
|
|
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
|
|
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
|
|
14
|
-
const
|
|
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
|
-
},
|
|
18
|
+
}, it = {
|
|
18
19
|
key: 0,
|
|
19
20
|
class: "pl-32 space-x-8"
|
|
20
|
-
},
|
|
21
|
+
}, rt = { class: "space-y-16" }, ct = /* @__PURE__ */ E({
|
|
21
22
|
__name: "ConfigurationTab",
|
|
22
23
|
props: {
|
|
23
24
|
sdk: {}
|
|
24
25
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const p =
|
|
27
|
-
we(() =>
|
|
28
|
-
const d = H(
|
|
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
|
|
38
|
-
await
|
|
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"),
|
|
50
|
-
return m.value ? (i(), h("div",
|
|
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:
|
|
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(
|
|
59
|
+
"onUpdate:modelValue": r[0] || (r[0] = (y) => t(_).setTaxMode(y))
|
|
59
60
|
}, {
|
|
60
|
-
default:
|
|
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",
|
|
75
|
-
(i(!0), h(
|
|
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(
|
|
81
|
+
"onUpdate:modelValue": (j) => t(_).setTaxInclusive(y.systemCode, !!j)
|
|
81
82
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))
|
|
82
|
-
])) :
|
|
83
|
+
])) : M("", !0)
|
|
83
84
|
]),
|
|
84
|
-
m.value.
|
|
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:
|
|
89
|
-
o("div",
|
|
90
|
-
(i(!0), h(
|
|
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(
|
|
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"])) :
|
|
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:
|
|
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(
|
|
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:
|
|
137
|
+
onClick: L
|
|
132
138
|
}, null, 8, ["label", "disabled", "loading"])
|
|
133
|
-
])) :
|
|
139
|
+
])) : M("", !0);
|
|
134
140
|
};
|
|
135
141
|
}
|
|
136
|
-
}),
|
|
142
|
+
}), dt = /* @__PURE__ */ E({
|
|
137
143
|
__name: "AddMemberTierDialog",
|
|
138
|
-
setup(
|
|
139
|
-
const { t: p } = q(), { emitData: e } =
|
|
140
|
-
return Qe(f, (
|
|
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(),
|
|
148
|
+
return i(), F(d, {
|
|
143
149
|
modelValue: f.value,
|
|
144
|
-
"onUpdate:modelValue":
|
|
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
|
-
}),
|
|
155
|
+
}), mt = /* @__PURE__ */ E({
|
|
150
156
|
__name: "MemberPricingTab",
|
|
151
157
|
props: {
|
|
152
158
|
sdk: {}
|
|
153
159
|
},
|
|
154
|
-
setup(
|
|
155
|
-
const p =
|
|
156
|
-
() =>
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
264
|
-
() =>
|
|
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(),
|
|
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":
|
|
279
|
-
d.value.rows.length > 0 ? (i(),
|
|
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"])) :
|
|
291
|
+
}, null, 8, ["label", "disabled"])) : M("", !0)
|
|
286
292
|
]),
|
|
287
|
-
default:
|
|
288
|
-
d.value.rows.length === 0 ? (i(),
|
|
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(),
|
|
297
|
-
default:
|
|
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"])) :
|
|
317
|
+
}, 8, ["heading", "subheading"])) : M("", !0);
|
|
312
318
|
};
|
|
313
319
|
}
|
|
314
|
-
}),
|
|
320
|
+
}), pt = {
|
|
315
321
|
key: 0,
|
|
316
322
|
class: "flex flex-col gap-16"
|
|
317
|
-
},
|
|
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(
|
|
323
|
-
const p =
|
|
324
|
-
() =>
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
412
|
-
() =>
|
|
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",
|
|
422
|
-
o("div",
|
|
427
|
+
return d.value ? (i(), h("div", pt, [
|
|
428
|
+
o("div", _t, [
|
|
423
429
|
o("div", null, [
|
|
424
|
-
o("h1",
|
|
425
|
-
o("p",
|
|
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
|
-
])) :
|
|
448
|
+
])) : M("", !0);
|
|
443
449
|
};
|
|
444
450
|
}
|
|
445
|
-
}),
|
|
451
|
+
}), ft = { key: 0 }, yt = {
|
|
446
452
|
key: 0,
|
|
447
453
|
class: "space-y-8"
|
|
448
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
466
|
-
const p =
|
|
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
|
-
},
|
|
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
|
-
() =>
|
|
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),
|
|
483
|
-
() => c.value ?
|
|
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 ?
|
|
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
|
-
|
|
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
|
|
503
|
+
function D() {
|
|
498
504
|
var l;
|
|
499
|
-
|
|
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(() =>
|
|
507
|
+
we(() => D());
|
|
502
508
|
function Ve() {
|
|
503
509
|
var l;
|
|
504
510
|
if (!((l = c.value) != null && l.dirty)) {
|
|
505
|
-
|
|
511
|
+
D();
|
|
506
512
|
return;
|
|
507
513
|
}
|
|
508
|
-
|
|
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(() =>
|
|
525
|
+
}).onPrimary(() => D());
|
|
520
526
|
}
|
|
521
|
-
const
|
|
522
|
-
() =>
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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 = "",
|
|
619
|
+
})) : [ee()], Y.value = "", Z.value = "", B.value = !0;
|
|
614
620
|
}
|
|
615
|
-
function
|
|
621
|
+
function Le() {
|
|
616
622
|
G.value = [...G.value, ee()];
|
|
617
623
|
}
|
|
618
|
-
function
|
|
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
|
|
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
|
-
|
|
647
|
+
B.value = !1;
|
|
642
648
|
}
|
|
643
|
-
function
|
|
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
|
|
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),
|
|
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
|
-
() =>
|
|
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" &&
|
|
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
|
-
|
|
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
|
-
}),
|
|
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:
|
|
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:
|
|
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",
|
|
753
|
-
A.value ? (i(), h("div",
|
|
754
|
-
o("div",
|
|
755
|
-
o("div",
|
|
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",
|
|
773
|
-
(i(!0), h(
|
|
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",
|
|
779
|
-
o("p",
|
|
780
|
-
s.description ? (i(), h("p", Mt, w(s.description), 1)) :
|
|
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:
|
|
794
|
+
onClick: U((T) => be(s), ["stop"])
|
|
789
795
|
}, null, 8, ["aria-label", "disabled", "onClick"])
|
|
790
|
-
], 8,
|
|
796
|
+
], 8, Rt))), 128))
|
|
791
797
|
])
|
|
792
|
-
])) : (i(), h("div",
|
|
793
|
-
o("div",
|
|
798
|
+
])) : (i(), h("div", yt, [
|
|
799
|
+
o("div", kt, [
|
|
794
800
|
o("div", null, [
|
|
795
|
-
o("h1",
|
|
796
|
-
o("p",
|
|
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",
|
|
806
|
-
o("div",
|
|
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:
|
|
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(),
|
|
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":
|
|
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:
|
|
847
|
+
onClick: D
|
|
842
848
|
}, null, 8, ["aria-label"]),
|
|
843
|
-
o("p",
|
|
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":
|
|
846
|
-
o("div",
|
|
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:
|
|
865
|
+
onClick: D
|
|
860
866
|
}, null, 8, ["label"])
|
|
861
867
|
])
|
|
862
868
|
]),
|
|
863
|
-
default:
|
|
864
|
-
o("div",
|
|
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:
|
|
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(
|
|
882
|
+
"error-messages": J.value ? [t(S)(J.value)] : []
|
|
877
883
|
},
|
|
878
|
-
t(
|
|
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:
|
|
905
|
-
le.value.length > 0 ? (i(), h(
|
|
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":
|
|
916
|
+
"onUpdate:modelValue": ze
|
|
911
917
|
}, {
|
|
912
|
-
item:
|
|
918
|
+
item: g(({ element: s, index: T }) => [
|
|
913
919
|
o("div", Bt, [
|
|
914
|
-
o("div",
|
|
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",
|
|
922
|
-
o("div",
|
|
923
|
-
o("div",
|
|
924
|
-
o("p", Dt, w(
|
|
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:
|
|
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:
|
|
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:
|
|
954
|
+
onClick: U((v) => Ee(s.id), ["stop"])
|
|
949
955
|
}, null, 8, ["aria-label", "onClick"])
|
|
950
956
|
])
|
|
951
957
|
]),
|
|
952
|
-
o("div",
|
|
953
|
-
o("p",
|
|
954
|
-
(i(!0), h(
|
|
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",
|
|
959
|
-
o("div",
|
|
960
|
-
o("p",
|
|
961
|
-
|
|
962
|
-
|
|
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",
|
|
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":
|
|
975
|
+
"menu-button": g(() => [
|
|
970
976
|
o("p", {
|
|
971
977
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate",
|
|
972
|
-
onClick:
|
|
973
|
-
}, w(
|
|
978
|
+
onClick: U((ie) => te(s.rule), ["stop"])
|
|
979
|
+
}, w(v.valueLabels.join(", ")), 9, Jt)
|
|
974
980
|
]),
|
|
975
|
-
default:
|
|
976
|
-
(i(!0), h(
|
|
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",
|
|
992
|
-
o("span",
|
|
993
|
-
])) :
|
|
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] =
|
|
1009
|
+
onClick: a[6] || (a[6] = U((s) => te(), ["stop"]))
|
|
1004
1010
|
}, null, 8, ["label"])
|
|
1005
1011
|
])
|
|
1006
|
-
], 64)) : (i(),
|
|
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(),
|
|
1021
|
+
Q.value ? (i(), F(Je, {
|
|
1016
1022
|
key: 2,
|
|
1017
1023
|
state: "error",
|
|
1018
|
-
text: t(
|
|
1019
|
-
}, null, 8, ["text"])) :
|
|
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"])) :
|
|
1027
|
-
|
|
1032
|
+
}, 8, ["model-value"])) : M("", !0),
|
|
1033
|
+
B.value ? (i(), F(fe, {
|
|
1028
1034
|
key: 3,
|
|
1029
|
-
"model-value":
|
|
1035
|
+
"model-value": B.value,
|
|
1030
1036
|
"max-width": 760,
|
|
1031
1037
|
"close-button": !1,
|
|
1032
|
-
"onOn:clickedAway": a[14] || (a[14] = (s) =>
|
|
1038
|
+
"onOn:clickedAway": a[14] || (a[14] = (s) => B.value = !1)
|
|
1033
1039
|
}, {
|
|
1034
|
-
"side-sheet-header":
|
|
1035
|
-
o("div",
|
|
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] =
|
|
1046
|
+
onClick: a[7] || (a[7] = U((s) => B.value = !1, ["stop"]))
|
|
1041
1047
|
}, null, 8, ["aria-label"]),
|
|
1042
|
-
o("div",
|
|
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":
|
|
1046
|
-
o("div",
|
|
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:
|
|
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] =
|
|
1061
|
+
onClick: a[13] || (a[13] = U((s) => B.value = !1, ["stop"]))
|
|
1056
1062
|
}, null, 8, ["label"])
|
|
1057
1063
|
])
|
|
1058
1064
|
]),
|
|
1059
|
-
default:
|
|
1060
|
-
o("div",
|
|
1061
|
-
o("p",
|
|
1062
|
-
o("div",
|
|
1063
|
-
(i(!0), h(
|
|
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",
|
|
1073
|
+
o("div", ol, [
|
|
1068
1074
|
u(ue, {
|
|
1069
1075
|
class: "flex w-full",
|
|
1070
1076
|
"model-value": s.attribute,
|
|
1071
|
-
items:
|
|
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": (
|
|
1080
|
+
"onUpdate:modelValue": (v) => Pe(s, v)
|
|
1075
1081
|
}, {
|
|
1076
|
-
"prepend-menu":
|
|
1082
|
+
"prepend-menu": g(() => [
|
|
1077
1083
|
o("div", {
|
|
1078
|
-
onClick: a[9] || (a[9] =
|
|
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] = (
|
|
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(
|
|
1098
|
-
"onUpdate:modelValue": (
|
|
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",
|
|
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(
|
|
1105
|
-
"onUpdate:modelValue": (
|
|
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(),
|
|
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:
|
|
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(
|
|
1122
|
-
"onUpdate:modelValue": (
|
|
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:
|
|
1125
|
-
o("div",
|
|
1130
|
+
default: g(() => [
|
|
1131
|
+
o("div", sl, w(Ae(s)), 1)
|
|
1126
1132
|
]),
|
|
1127
|
-
"prepend-menu":
|
|
1133
|
+
"prepend-menu": g(() => [
|
|
1128
1134
|
o("div", {
|
|
1129
1135
|
class: "flex",
|
|
1130
|
-
onClick: a[11] || (a[11] =
|
|
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] = (
|
|
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:
|
|
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] =
|
|
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"])) :
|
|
1162
|
-
])) :
|
|
1167
|
+
}, 8, ["model-value"])) : M("", !0)
|
|
1168
|
+
])) : M("", !0);
|
|
1163
1169
|
};
|
|
1164
1170
|
}
|
|
1165
|
-
}),
|
|
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(
|
|
1176
|
+
setup(I) {
|
|
1171
1177
|
const { t: p } = q();
|
|
1172
|
-
return (e, f) => (i(), h("div",
|
|
1173
|
-
o("p",
|
|
1174
|
-
o("p",
|
|
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
|
-
}),
|
|
1183
|
+
}), pl = { class: "py-16" }, Vl = /* @__PURE__ */ E({
|
|
1178
1184
|
__name: "MenuSetting",
|
|
1179
|
-
setup(
|
|
1180
|
-
const p =
|
|
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
|
-
},
|
|
1191
|
+
}, _ = V(
|
|
1186
1192
|
() => (f.value.status === "ready" ? f.value.value.tabs : []).filter((m) => m.capability.state !== "hidden").map((m) => ({
|
|
1187
|
-
label: e(
|
|
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
|
|
1193
|
-
return i(),
|
|
1198
|
+
const L = C("FmTabs");
|
|
1199
|
+
return i(), F($e, {
|
|
1194
1200
|
heading: t(e)("menu.menu_setting.title")
|
|
1195
1201
|
}, {
|
|
1196
|
-
default:
|
|
1197
|
-
u(
|
|
1202
|
+
default: g(() => [
|
|
1203
|
+
u(L, {
|
|
1198
1204
|
"model-value": d.value,
|
|
1199
|
-
items:
|
|
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",
|
|
1203
|
-
d.value === "configuration" ? (i(),
|
|
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(),
|
|
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(),
|
|
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(),
|
|
1218
|
+
}, null, 8, ["sdk"])) : d.value === "ruleGroups" ? (i(), F(il, {
|
|
1213
1219
|
key: 3,
|
|
1214
1220
|
sdk: t(p)
|
|
1215
|
-
}, null, 8, ["sdk"])) : (i(),
|
|
1221
|
+
}, null, 8, ["sdk"])) : (i(), F(ml, {
|
|
1216
1222
|
key: 4,
|
|
1217
|
-
module: t(e)(
|
|
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
|
-
|
|
1233
|
+
Vl as default
|
|
1228
1234
|
};
|