@feedmepos/mf-menu 0.32.80-alpha.1 → 0.32.80-alpha.2
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-B_3q-jGV.js → App-BPZg4pLc.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-EzaxIWYe.js → ApplyProduct.vue_vue_type_script_setup_true_lang-B7ScMyxd.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-BofETSvD.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DVDns9wB.js} +3 -3
- package/dist/{Catalog-Cdt9ih1h.js → Catalog-B2AZFUkz.js} +43 -41
- package/dist/{CatalogBinding-BSF_MBL4.js → CatalogBinding-1JkR29_G.js} +3 -3
- package/dist/{Category-DyerLCh0.js → Category-B5ZvYX7Z.js} +4 -4
- package/dist/{Category-CfVPbRcF.js → Category-U6oCFl13.js} +4 -4
- package/dist/{CookingGuide-CDaqQrbu.js → CookingGuide-BWeO-2BE.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BohTZA1b.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DhDGAjuD.js} +1 -1
- package/dist/{Group-CNlxhmKi.js → Group-DEqF-2Ec.js} +3 -3
- package/dist/{Group-DXuLmwp7.js → Group-DYCaOa1j.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CUeNDucZ.js → Group.vue_vue_type_script_setup_true_lang-Cz_OgBw3.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DTXGNwei.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CZRL6oLu.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-D2wipPlD.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C4-035Ok.js} +217 -213
- package/dist/{Ingredient-ClEU9d77.js → Ingredient-UJvy8okw.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B9y36l7Y.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DbnGp6QN.js} +2 -2
- package/dist/{LinkProductSideSheet-DIgFv7G8.js → LinkProductSideSheet-CyfNHiCW.js} +4 -4
- package/dist/{MenuSetting-B4uEdB84.js → MenuSetting-CcpTsmtI.js} +161 -159
- package/dist/{OrderPacing-Ckq0cn6U.js → OrderPacing-DVeA5Ys_.js} +5 -5
- package/dist/{PrintRoute-h4nV5d7l.js → PrintRoute-siBlcAE2.js} +5 -5
- package/dist/{Product-9Yniz1GD.js → Product-qiwLUX8u.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Cy28bZo-.js → Product.vue_vue_type_script_setup_true_lang-BSt5cRw3.js} +14 -14
- package/dist/{ProductInternalTools-CGD4s7yB.js → ProductInternalTools-D1faZsDQ.js} +6 -6
- package/dist/{Products-J5WF8m00.js → Products-Bh_LcJAk.js} +40 -40
- package/dist/{Publish-oDvTFTqc.js → Publish-_SOH6j46.js} +4 -4
- package/dist/{Recipe-ZwC2_bE7.js → Recipe-Db6euS5p.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DEloDluj.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-Q8g6Chsx.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CaueZdW6.js → RuleView.vue_vue_type_script_setup_true_lang-D_yLnxKQ.js} +211 -211
- package/dist/{Scheduler-BlJFlQ0V.js → Scheduler-EyZm0fJM.js} +3 -3
- package/dist/{ServingSequence-CRMsO0FH.js → ServingSequence-C2ENIvYn.js} +3 -3
- package/dist/{Setting-BvzmMD4U.js → Setting-EskhQnob.js} +89 -87
- package/dist/{Subcategory-5yQK2PNE.js → Subcategory-CPQgIkuh.js} +6 -6
- package/dist/{Takeaway-SdnEo_31.js → Takeaway-BWWBwve9.js} +1 -1
- package/dist/{Takeaway-C5PTXMIC.js → Takeaway-BqAt5Bba.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Dz-pq1E9.js → Takeaway.vue_vue_type_script_setup_true_lang-iUVhkaxh.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CwlUzo8B.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CbovAr2w.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DGPLhhqq.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DE9zBQfA.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ByaA26hm.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B6XUvI7o.js} +16 -16
- package/dist/{Unit-DRcJ41tY.js → Unit-ItHUxnF0.js} +2 -2
- package/dist/{Variant-CAq9W_f6.js → Variant-Xl4HcjYa.js} +3 -3
- package/dist/{_id_-i1n5B-gX.js → _id_-BETifIkG.js} +10 -10
- package/dist/{app-Qr9iwBkJ.js → app-CCnyILTK.js} +1 -1
- package/dist/{app-BlT8oUHl.js → app-Cj0pR2T4.js} +33 -33
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status--OiV7O46.js → linked-status-yKfTOgyX.js} +3 -3
- package/dist/assets/{menu-export-DQYly0C_.js → menu-export-CVG-AbK2.js} +3 -3
- package/dist/assets/{override-menu-DgGkfRxw.js → override-menu-B3OvgK_l.js} +3 -3
- package/dist/assets/{validate-menu-F4qdvd9o.js → validate-menu-CALVTmyh.js} +2 -2
- package/dist/{catalog-Cad8inAT.js → catalog-_745fqJH.js} +1 -1
- package/dist/{catalogSetting-B_5ExaFJ.js → catalogSetting-DqkosGOo.js} +1 -1
- package/dist/{currency-fqDiv99h.js → currency-BjlwJz4O.js} +1 -1
- package/dist/{dayjs.min-BlPKU-gB.js → dayjs.min-B_7TJNn-.js} +2 -2
- package/dist/{discardConfirm-DE1ldA28.js → discardConfirm-CNbn-98W.js} +1 -1
- package/dist/{index-C8lGawTH.js → index-CT_V152O.js} +1 -1
- package/dist/{index-BTUj9IUq.js → index-D7eteYCJ.js} +6 -6
- package/dist/{index-CjcE1rZ3.js → index-D_7F5hbU.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-XXTier47.js → index.vue_vue_type_script_setup_true_lang-CTVmj2s2.js} +6 -6
- package/dist/{item-MMgj5alr.js → item-D7VvCAQD.js} +19 -19
- package/dist/{jszip.min-D8q6HCPG.js → jszip.min-B89bGJ8y.js} +3 -3
- package/dist/{linkProducts-5dv9mRyr.js → linkProducts-spdYc2yf.js} +4 -4
- package/dist/{memberPricing-DZKM5Nl6.js → memberPricing-CIokC3Z_.js} +1 -1
- package/dist/{menu-BqWVpw6-.js → menu-B-kiQo1d.js} +1 -1
- package/dist/{menuV2-DFMrgNS9.js → menuV2-C798b4XY.js} +59 -59
- package/dist/{order_pacing-CsGy0Zk1.js → order_pacing-Bk74xJkO.js} +5 -5
- package/dist/{priceTier-CBqD2V2j.js → priceTier-vPn2WO6f.js} +1 -1
- package/dist/{rules-UVdf2gqd.js → rules-BDmHbNiR.js} +3 -3
- package/dist/{scheduler-ZXmJ1ioG.js → scheduler-zfuywFUG.js} +5 -5
- package/dist/{toExcel-Bp1Wb0dt.js → toExcel-DKRoeuWL.js} +2 -2
- package/dist/{unit-BjNF91RV.js → unit-DZ4-dxHz.js} +3 -3
- package/package.json +1 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as A, computed as G, watch as
|
|
2
|
-
import { u as oe, _ as ie, b as
|
|
3
|
-
import { useI18n as ee, useCoreStore as
|
|
4
|
-
import { components as
|
|
1
|
+
import { defineComponent as Z, ref as A, computed as G, watch as K, resolveComponent as f, createBlock as T, openBlock as c, unref as t, withCtx as v, createElementVNode as r, createVNode as u, createElementBlock as h, createCommentVNode as F, toDisplayString as B, withModifiers as re, Fragment as le, renderList as ne } from "vue";
|
|
2
|
+
import { u as oe, _ as ie, b as ce, d as _e, a as ve, f as ae } from "./index.vue_vue_type_script_setup_true_lang-CTVmj2s2.js";
|
|
3
|
+
import { useI18n as ee, useCoreStore as ge } from "@feedmepos/mf-common";
|
|
4
|
+
import { components as Q, FmButtonVariant as $, useDialog as fe, useSnackbar as me, useBreakpoints as be, FmButtonColorThemeVariant as q } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as se } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
|
-
import { b as
|
|
7
|
-
import { _ as ue } from "./app-
|
|
8
|
-
import { l as j, u as
|
|
9
|
-
import { d as
|
|
10
|
-
import { _ as
|
|
6
|
+
import { b as ye, m as J, _ as Y, c as he, d as xe, f as X } from "./RuleView.vue_vue_type_script_setup_true_lang-D_yLnxKQ.js";
|
|
7
|
+
import { _ as ue } from "./app-Cj0pR2T4.js";
|
|
8
|
+
import { l as j, u as ke } from "./discardConfirm-CNbn-98W.js";
|
|
9
|
+
import { d as we } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
10
|
+
import { _ as Se } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
11
11
|
import { _ as de } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
12
|
-
import { u as
|
|
13
|
-
import { C as
|
|
14
|
-
import { u as
|
|
15
|
-
const
|
|
12
|
+
import { u as Ce } from "./memberPricing-CIokC3Z_.js";
|
|
13
|
+
import { C as E, a as I } from "./catalogSetting-DqkosGOo.js";
|
|
14
|
+
import { u as Te } from "./priceTier-vPn2WO6f.js";
|
|
15
|
+
const Re = {
|
|
16
16
|
class: "fm-typo-en-title-md-600 mr-auto"
|
|
17
|
-
}, Re = {
|
|
18
|
-
class: "py-8 px-8 overflow-y-auto space-y-24"
|
|
19
17
|
}, Ve = {
|
|
20
|
-
class: "space-y-
|
|
18
|
+
class: "py-8 px-8 overflow-y-auto space-y-24"
|
|
21
19
|
}, Fe = {
|
|
22
|
-
class: "
|
|
20
|
+
class: "space-y-16"
|
|
23
21
|
}, $e = {
|
|
24
|
-
class: "flex
|
|
22
|
+
class: "flex items-center space-x-16"
|
|
25
23
|
}, Ae = {
|
|
26
|
-
class: "flex-
|
|
24
|
+
class: "flex flex-col min-w-0 w-full"
|
|
27
25
|
}, Ge = {
|
|
26
|
+
class: "flex-1 relative border border-fm-color-neutral-gray-200 rounded-md p-16"
|
|
27
|
+
}, Me = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "flex items-center select-none ml-16"
|
|
30
|
-
}, Me = {
|
|
31
|
-
class: "fm-typo-en-body-lg-400 text-fm-color-neutral-gray-300"
|
|
32
30
|
}, Ue = {
|
|
31
|
+
class: "fm-typo-en-body-lg-400 text-fm-color-neutral-gray-300"
|
|
32
|
+
}, Be = {
|
|
33
33
|
class: "flex gap-8 items-center justify-start"
|
|
34
|
-
},
|
|
34
|
+
}, Pe = /* @__PURE__ */ Z({
|
|
35
35
|
__name: "RuleGroupSideSheet",
|
|
36
36
|
props: {
|
|
37
37
|
modelValue: {
|
|
@@ -40,11 +40,11 @@ const Te = {
|
|
|
40
40
|
editingGroup: {}
|
|
41
41
|
},
|
|
42
42
|
emits: ["update:modelValue", "submit"],
|
|
43
|
-
setup(
|
|
43
|
+
setup(W, {
|
|
44
44
|
emit: o
|
|
45
45
|
}) {
|
|
46
|
-
const p =
|
|
47
|
-
t:
|
|
46
|
+
const p = W, x = o, {
|
|
47
|
+
t: m
|
|
48
48
|
} = ee(), w = oe(), n = A({
|
|
49
49
|
name: "",
|
|
50
50
|
description: "",
|
|
@@ -52,14 +52,14 @@ const Te = {
|
|
|
52
52
|
}), {
|
|
53
53
|
convertCategoryIdToName: b,
|
|
54
54
|
convertCategoryNameToId: R
|
|
55
|
-
} =
|
|
55
|
+
} = ye({
|
|
56
56
|
menuItems: G(() => w.state.menu.modules.item || []),
|
|
57
57
|
categories: G(() => w.categories || [])
|
|
58
58
|
}), _ = G({
|
|
59
59
|
get: () => p.modelValue,
|
|
60
60
|
set: (s) => x("update:modelValue", s)
|
|
61
61
|
}), S = A(null);
|
|
62
|
-
|
|
62
|
+
K(() => p.editingGroup, (s) => {
|
|
63
63
|
s ? n.value = {
|
|
64
64
|
name: s.name,
|
|
65
65
|
description: s.description,
|
|
@@ -81,7 +81,7 @@ const Te = {
|
|
|
81
81
|
}, S.value = j.cloneDeep(n.value);
|
|
82
82
|
}, {
|
|
83
83
|
immediate: !0
|
|
84
|
-
}),
|
|
84
|
+
}), K(() => p.modelValue, (s) => {
|
|
85
85
|
s || (n.value = {
|
|
86
86
|
name: "",
|
|
87
87
|
description: "",
|
|
@@ -91,7 +91,7 @@ const Te = {
|
|
|
91
91
|
function k(s) {
|
|
92
92
|
return `${s}_${(/* @__PURE__ */ new Date()).toISOString()}`;
|
|
93
93
|
}
|
|
94
|
-
async function
|
|
94
|
+
async function P() {
|
|
95
95
|
var e;
|
|
96
96
|
const s = {
|
|
97
97
|
_id: ((e = p.editingGroup) == null ? void 0 : e._id) ?? k("group"),
|
|
@@ -122,7 +122,7 @@ const Te = {
|
|
|
122
122
|
itemCustomAttributes: null
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
|
-
function
|
|
125
|
+
function D(s) {
|
|
126
126
|
n.value.rules = n.value.rules.filter((e) => e._id !== s);
|
|
127
127
|
}
|
|
128
128
|
function N(s) {
|
|
@@ -134,7 +134,7 @@ const Te = {
|
|
|
134
134
|
function z() {
|
|
135
135
|
_.value = !1;
|
|
136
136
|
}
|
|
137
|
-
const V =
|
|
137
|
+
const V = ke(() => !j.isEqual(S.value, n.value), () => {
|
|
138
138
|
_.value = !1;
|
|
139
139
|
});
|
|
140
140
|
function O(s) {
|
|
@@ -144,13 +144,13 @@ const Te = {
|
|
|
144
144
|
}
|
|
145
145
|
const M = A();
|
|
146
146
|
return (s, e) => {
|
|
147
|
-
const l =
|
|
148
|
-
return
|
|
147
|
+
const l = f("fm-button"), a = f("FmTextField"), d = f("FmButton"), C = f("FmFormGroup"), y = f("fm-side-sheet");
|
|
148
|
+
return c(), T(y, {
|
|
149
149
|
modelValue: _.value,
|
|
150
150
|
"onUpdate:modelValue": e[8] || (e[8] = (i) => _.value = i),
|
|
151
|
-
"is-container": t(
|
|
151
|
+
"is-container": t(Q).FmForm,
|
|
152
152
|
"is-container-props": {
|
|
153
|
-
onValidationSuccess:
|
|
153
|
+
onValidationSuccess: P,
|
|
154
154
|
blameFormChildOnValidationFailed: !0
|
|
155
155
|
},
|
|
156
156
|
"max-width": 760,
|
|
@@ -161,35 +161,35 @@ const Te = {
|
|
|
161
161
|
class: "cursor-pointer mr-4",
|
|
162
162
|
"prepend-icon": "arrow_back",
|
|
163
163
|
onClick: e[0] || (e[0] = () => _.value = !1)
|
|
164
|
-
}, null, 8, ["variant"]), r("p",
|
|
165
|
-
"side-sheet-footer": v(() => [r("div",
|
|
166
|
-
label: t(
|
|
164
|
+
}, null, 8, ["variant"]), r("p", Re, B(s.editingGroup ? t(m)("menu.rule_groups.edit_group") : t(m)("menu.rule_groups.create_group")), 1)]),
|
|
165
|
+
"side-sheet-footer": v(() => [r("div", Be, [u(l, {
|
|
166
|
+
label: t(m)("common.save"),
|
|
167
167
|
size: "lg",
|
|
168
168
|
type: "submit",
|
|
169
169
|
variant: "primary"
|
|
170
170
|
}, null, 8, ["label"]), u(l, {
|
|
171
|
-
label: t(
|
|
171
|
+
label: t(m)("common.cancel"),
|
|
172
172
|
size: "lg",
|
|
173
173
|
variant: "tertiary",
|
|
174
174
|
onClick: z
|
|
175
175
|
}, null, 8, ["label"])])]),
|
|
176
|
-
default: v(() => [r("div",
|
|
177
|
-
title: t(
|
|
176
|
+
default: v(() => [r("div", Ve, [u(Y, {
|
|
177
|
+
title: t(m)("menu.rule_groups.form.basic_info")
|
|
178
178
|
}, {
|
|
179
|
-
default: v(() => [r("div",
|
|
180
|
-
label: t(
|
|
179
|
+
default: v(() => [r("div", Fe, [u(a, {
|
|
180
|
+
label: t(m)("menu.rule_groups.form.name"),
|
|
181
181
|
"label-mark": "required",
|
|
182
182
|
modelValue: n.value.name,
|
|
183
183
|
"onUpdate:modelValue": e[1] || (e[1] = (i) => n.value.name = i),
|
|
184
|
-
placeholder: t(
|
|
184
|
+
placeholder: t(m)("menu.rule_groups.form.name_placeholder"),
|
|
185
185
|
required: "",
|
|
186
|
-
rules: [(i) => !!(i != null && i.trim()) || t(
|
|
186
|
+
rules: [(i) => !!(i != null && i.trim()) || t(m)("menu.rule_groups.validation.name_required")]
|
|
187
187
|
}, null, 8, ["label", "modelValue", "placeholder", "rules"]), u(a, {
|
|
188
|
-
label: t(
|
|
188
|
+
label: t(m)("menu.rule_groups.form.description"),
|
|
189
189
|
"label-mark": "optional",
|
|
190
190
|
modelValue: n.value.description,
|
|
191
191
|
"onUpdate:modelValue": e[2] || (e[2] = (i) => n.value.description = i),
|
|
192
|
-
placeholder: t(
|
|
192
|
+
placeholder: t(m)("menu.rule_groups.form.description_placeholder"),
|
|
193
193
|
multiline: "",
|
|
194
194
|
rows: 3
|
|
195
195
|
}, null, 8, ["label", "modelValue", "placeholder"])])]),
|
|
@@ -197,13 +197,13 @@ const Te = {
|
|
|
197
197
|
}, 8, ["title"]), u(C, {
|
|
198
198
|
tag: "div",
|
|
199
199
|
"model-value": n.value.rules,
|
|
200
|
-
rules: [(i) => i.length > 0 || t(
|
|
200
|
+
rules: [(i) => i.length > 0 || t(m)("menu.rule_groups.validation.at_least_one_rule_required")]
|
|
201
201
|
}, {
|
|
202
202
|
default: v(() => [u(Y, {
|
|
203
|
-
title: t(
|
|
204
|
-
"sub-title": t(
|
|
203
|
+
title: t(m)("menu.rule_groups.form.rules"),
|
|
204
|
+
"sub-title": t(m)("menu.rule_groups.form.rules_description")
|
|
205
205
|
}, {
|
|
206
|
-
default: v(() => [n.value.rules.length > 0 ? (
|
|
206
|
+
default: v(() => [n.value.rules.length > 0 ? (c(), T(t(we), {
|
|
207
207
|
key: 0,
|
|
208
208
|
modelValue: n.value.rules,
|
|
209
209
|
"onUpdate:modelValue": e[6] || (e[6] = (i) => n.value.rules = i),
|
|
@@ -212,31 +212,31 @@ const Te = {
|
|
|
212
212
|
}, {
|
|
213
213
|
item: v(({
|
|
214
214
|
element: i,
|
|
215
|
-
index:
|
|
216
|
-
}) => [r("div", null, [r("div",
|
|
215
|
+
index: H
|
|
216
|
+
}) => [r("div", null, [r("div", $e, [u(d, {
|
|
217
217
|
class: "rule-drag-handle cursor-grab",
|
|
218
218
|
variant: t($).Tertiary,
|
|
219
219
|
"prepend-icon": "drag_indicator"
|
|
220
|
-
}, null, 8, ["variant"]), r("div",
|
|
220
|
+
}, null, 8, ["variant"]), r("div", Ae, [r("div", Ge, [u(he, {
|
|
221
221
|
"model-value": i,
|
|
222
|
-
title: `${t(
|
|
223
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
224
|
-
onDeleteRule: e[4] || (e[4] = (
|
|
225
|
-
onCopyRule: e[5] || (e[5] = (
|
|
226
|
-
}, null, 8, ["model-value", "title"])])])]), n.value.rules.length > 1 &&
|
|
222
|
+
title: `${t(m)("menu.rule_groups.condition_view.rule")} ${H + 1}`,
|
|
223
|
+
"onUpdate:modelValue": e[3] || (e[3] = (U) => O(U)),
|
|
224
|
+
onDeleteRule: e[4] || (e[4] = (U) => D(U)),
|
|
225
|
+
onCopyRule: e[5] || (e[5] = (U) => N(U))
|
|
226
|
+
}, null, 8, ["model-value", "title"])])])]), n.value.rules.length > 1 && H < n.value.rules.length - 1 ? (c(), h("div", Me, [r("span", Ue, B(t(m)("menu.rule_groups.condition_view.or")), 1)])) : F("", !0)])]),
|
|
227
227
|
_: 1
|
|
228
|
-
}, 8, ["modelValue"])) : (
|
|
228
|
+
}, 8, ["modelValue"])) : (c(), T(ie, {
|
|
229
229
|
key: 1,
|
|
230
230
|
title: "",
|
|
231
|
-
subtitle: t(
|
|
231
|
+
subtitle: t(m)("menu.rule_groups.condition_view.empty_data.no_rule_available"),
|
|
232
232
|
action: {
|
|
233
|
-
text: t(
|
|
233
|
+
text: t(m)("menu.link_product.rules.add_rule"),
|
|
234
234
|
callback: () => {
|
|
235
235
|
var i;
|
|
236
236
|
(i = M.value) == null || i.trigger();
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
}, null, 8, ["subtitle", "action"])), r("div", null, [u(
|
|
239
|
+
}, null, 8, ["subtitle", "action"])), r("div", null, [u(xe, {
|
|
240
240
|
ref_key: "ruleFormRef",
|
|
241
241
|
ref: M,
|
|
242
242
|
"is-edit-mode": !0,
|
|
@@ -245,10 +245,10 @@ const Te = {
|
|
|
245
245
|
}, {
|
|
246
246
|
default: v(({
|
|
247
247
|
trigger: i
|
|
248
|
-
}) => [n.value.rules.length > 0 ? (
|
|
248
|
+
}) => [n.value.rules.length > 0 ? (c(), T(d, {
|
|
249
249
|
key: 0,
|
|
250
250
|
variant: t($).Primary,
|
|
251
|
-
label: t(
|
|
251
|
+
label: t(m)("menu.link_product.rules.add_rule"),
|
|
252
252
|
"prepend-icon": "add",
|
|
253
253
|
onClick: re(i, ["stop"])
|
|
254
254
|
}, null, 8, ["variant", "label", "onClick"])) : F("", !0)]),
|
|
@@ -262,51 +262,51 @@ const Te = {
|
|
|
262
262
|
}, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]);
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
|
-
}),
|
|
265
|
+
}), De = {
|
|
266
266
|
key: 0,
|
|
267
267
|
class: "space-y-8"
|
|
268
|
-
}, De = {
|
|
269
|
-
class: "flex items-center justify-between"
|
|
270
268
|
}, Ie = {
|
|
271
|
-
class: "
|
|
269
|
+
class: "flex items-center justify-between"
|
|
272
270
|
}, Ne = {
|
|
273
|
-
class: "
|
|
271
|
+
class: "fm-typo-en-title-md-600"
|
|
274
272
|
}, ze = {
|
|
275
|
-
class: "
|
|
273
|
+
class: "text-fm-color-typo-secondary"
|
|
276
274
|
}, Oe = {
|
|
277
|
-
class: "
|
|
275
|
+
class: "flex justify-end items-center"
|
|
278
276
|
}, je = {
|
|
277
|
+
class: "w-[320px]"
|
|
278
|
+
}, Le = {
|
|
279
279
|
key: 1,
|
|
280
280
|
class: "flex-1 flex flex-col min-h-0"
|
|
281
|
-
}, Le = {
|
|
282
|
-
class: "flex items-center justify-between p-8"
|
|
283
281
|
}, Ee = {
|
|
284
|
-
class: "flex-
|
|
282
|
+
class: "flex items-center justify-between p-8"
|
|
285
283
|
}, qe = {
|
|
284
|
+
class: "flex-1 mr-8"
|
|
285
|
+
}, Ke = {
|
|
286
286
|
class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
|
|
287
|
-
},
|
|
287
|
+
}, Qe = ["onClick"], We = {
|
|
288
288
|
class: "flex-1 space-y-4"
|
|
289
|
-
}, We = {
|
|
290
|
-
class: "fm-typo-en-body-lg-600"
|
|
291
289
|
}, He = {
|
|
290
|
+
class: "fm-typo-en-body-lg-600"
|
|
291
|
+
}, Je = {
|
|
292
292
|
key: 0,
|
|
293
293
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
294
|
-
},
|
|
294
|
+
}, Xe = /* @__PURE__ */ Z({
|
|
295
295
|
__name: "LinkProductRuleGroups",
|
|
296
|
-
setup(
|
|
296
|
+
setup(W) {
|
|
297
297
|
const {
|
|
298
298
|
t: o
|
|
299
|
-
} = ee(), p =
|
|
299
|
+
} = ee(), p = fe(), x = me(), m = ce(x), w = oe(), n = A(w.state.menu.ruleGroupSettings || {
|
|
300
300
|
groups: []
|
|
301
301
|
});
|
|
302
|
-
|
|
302
|
+
K(() => w.state.menu.ruleGroupSettings, (e) => {
|
|
303
303
|
n.value = e || {
|
|
304
304
|
groups: []
|
|
305
305
|
};
|
|
306
306
|
}, {
|
|
307
307
|
deep: !0
|
|
308
308
|
});
|
|
309
|
-
const b = A(!1), R = A(null), _ =
|
|
309
|
+
const b = A(!1), R = A(null), _ = be(), S = G(() => _.breakpoints.value.xs), k = A(""), P = G(() => n.value.groups.filter((e) => e.name.toLowerCase().includes(k.value.toLowerCase()))), L = [{
|
|
310
310
|
header: o("menu.rule_groups.table.columns.name"),
|
|
311
311
|
accessorKey: "name",
|
|
312
312
|
enableSorting: !0
|
|
@@ -319,23 +319,23 @@ const Te = {
|
|
|
319
319
|
size: 100,
|
|
320
320
|
cell: (e) => u("div", {
|
|
321
321
|
class: "px-4 flex justify-end"
|
|
322
|
-
}, [u(
|
|
322
|
+
}, [u(Q.FmButton, {
|
|
323
323
|
icon: "file_copy",
|
|
324
|
-
"text-color":
|
|
324
|
+
"text-color": q.NeutralGray400,
|
|
325
325
|
variant: $.Tertiary,
|
|
326
326
|
onClick: (l) => {
|
|
327
327
|
l.stopPropagation(), O(e.row.original);
|
|
328
328
|
}
|
|
329
|
-
}, null), u(
|
|
329
|
+
}, null), u(Q.FmButton, {
|
|
330
330
|
icon: "delete",
|
|
331
|
-
"text-color":
|
|
331
|
+
"text-color": q.NeutralGray400,
|
|
332
332
|
variant: $.Tertiary,
|
|
333
333
|
onClick: (l) => {
|
|
334
334
|
l.stopPropagation(), V(e.row.original._id);
|
|
335
335
|
}
|
|
336
336
|
}, null)])
|
|
337
337
|
}];
|
|
338
|
-
function
|
|
338
|
+
function D(e) {
|
|
339
339
|
z(e.original);
|
|
340
340
|
}
|
|
341
341
|
function N() {
|
|
@@ -374,7 +374,7 @@ const Te = {
|
|
|
374
374
|
a.groups.push(l), await M(a);
|
|
375
375
|
}
|
|
376
376
|
async function M(e) {
|
|
377
|
-
await
|
|
377
|
+
await m.minor(async () => {
|
|
378
378
|
await w.updateMenuSetting({
|
|
379
379
|
ruleGroupSettings: e
|
|
380
380
|
});
|
|
@@ -387,13 +387,13 @@ const Te = {
|
|
|
387
387
|
const l = (d = n.value.groups) == null ? void 0 : d.findIndex((C) => C._id === e._id), a = j.cloneDeep(n.value);
|
|
388
388
|
l >= 0 ? a.groups[l] = e : a.groups.push(e), await M(a), b.value = !1;
|
|
389
389
|
}
|
|
390
|
-
return
|
|
390
|
+
return K(() => b.value, (e) => {
|
|
391
391
|
e || (R.value = null);
|
|
392
392
|
}), (e, l) => {
|
|
393
|
-
const a =
|
|
394
|
-
return
|
|
393
|
+
const a = f("FmButton"), d = f("FmSearch"), C = f("FmTable");
|
|
394
|
+
return c(), h("div", null, [S.value ? (c(), h("div", Le, [r("div", Ee, [r("div", qe, [u(d, {
|
|
395
395
|
modelValue: k.value,
|
|
396
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
396
|
+
"onUpdate:modelValue": l[1] || (l[1] = (y) => k.value = y),
|
|
397
397
|
autofocus: "",
|
|
398
398
|
class: "w-full",
|
|
399
399
|
placeholder: t(o)("menu.rule_groups.search_placeholder")
|
|
@@ -401,50 +401,50 @@ const Te = {
|
|
|
401
401
|
icon: "add",
|
|
402
402
|
variant: t($).Secondary,
|
|
403
403
|
onClick: N
|
|
404
|
-
}, null, 8, ["variant"])]), r("div",
|
|
405
|
-
key:
|
|
404
|
+
}, null, 8, ["variant"])]), r("div", Ke, [(c(!0), h(le, null, ne(P.value, (y) => (c(), h("div", {
|
|
405
|
+
key: y._id,
|
|
406
406
|
class: "flex flex-row py-12 px-16 cursor-pointer",
|
|
407
|
-
onClick: (i) => z(
|
|
408
|
-
}, [r("div",
|
|
409
|
-
"text-color": t(
|
|
407
|
+
onClick: (i) => z(y)
|
|
408
|
+
}, [r("div", We, [r("p", He, B(y.name), 1), y.description ? (c(), h("p", Je, B(y.description), 1)) : F("", !0)]), u(a, {
|
|
409
|
+
"text-color": t(q).NeutralGray400,
|
|
410
410
|
variant: t($).Tertiary,
|
|
411
411
|
icon: "delete",
|
|
412
|
-
onClick: re((i) => V(
|
|
413
|
-
}, null, 8, ["text-color", "variant", "onClick"])], 8,
|
|
412
|
+
onClick: re((i) => V(y._id), ["stop"])
|
|
413
|
+
}, null, 8, ["text-color", "variant", "onClick"])], 8, Qe))), 128))])])) : (c(), h("div", De, [r("div", Ie, [r("div", null, [r("h1", Ne, B(t(o)("menu.rule_groups.title")), 1), r("p", ze, B(t(o)("menu.rule_groups.description")), 1)]), u(a, {
|
|
414
414
|
label: t(o)("menu.rule_groups.create_group"),
|
|
415
415
|
icon: "add",
|
|
416
416
|
onClick: N
|
|
417
|
-
}, null, 8, ["label"])]), r("div",
|
|
417
|
+
}, null, 8, ["label"])]), r("div", Oe, [r("div", je, [u(d, {
|
|
418
418
|
modelValue: k.value,
|
|
419
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
419
|
+
"onUpdate:modelValue": l[0] || (l[0] = (y) => k.value = y),
|
|
420
420
|
autofocus: "",
|
|
421
421
|
class: "mb-8",
|
|
422
422
|
placeholder: t(o)("menu.rule_groups.search_placeholder")
|
|
423
423
|
}, null, 8, ["modelValue", "placeholder"])])]), u(ue, null, {
|
|
424
424
|
default: v(() => [u(C, {
|
|
425
425
|
"column-defs": L,
|
|
426
|
-
"row-data":
|
|
427
|
-
"page-size":
|
|
426
|
+
"row-data": P.value,
|
|
427
|
+
"page-size": P.value.length,
|
|
428
428
|
"hide-footer": !0,
|
|
429
|
-
onRowClick:
|
|
429
|
+
onRowClick: D
|
|
430
430
|
}, null, 8, ["row-data", "page-size"])]),
|
|
431
431
|
_: 1
|
|
432
|
-
})])), u(
|
|
432
|
+
})])), u(Pe, {
|
|
433
433
|
modelValue: b.value,
|
|
434
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
434
|
+
"onUpdate:modelValue": l[2] || (l[2] = (y) => b.value = y),
|
|
435
435
|
"editing-group": R.value,
|
|
436
436
|
onSubmit: s
|
|
437
437
|
}, null, 8, ["modelValue", "editing-group"])]);
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
}),
|
|
440
|
+
}), Ye = {
|
|
441
441
|
key: 0
|
|
442
|
-
},
|
|
442
|
+
}, Ze = /* @__PURE__ */ Z({
|
|
443
443
|
__name: "MemberPricing",
|
|
444
|
-
setup(
|
|
444
|
+
setup(W) {
|
|
445
445
|
const {
|
|
446
446
|
t: o
|
|
447
|
-
} = ee(), p =
|
|
447
|
+
} = ee(), p = Ce(), x = G(() => p.memberPricings.value.length), m = [{
|
|
448
448
|
header: o("menu.member_pricing.table.columns.name"),
|
|
449
449
|
accessorKey: "key",
|
|
450
450
|
enableSorting: !1
|
|
@@ -453,9 +453,9 @@ const Te = {
|
|
|
453
453
|
size: 50,
|
|
454
454
|
cell: (n) => u("div", {
|
|
455
455
|
class: "px-4 flex justify-end"
|
|
456
|
-
}, [u(
|
|
456
|
+
}, [u(Q.FmButton, {
|
|
457
457
|
icon: "delete",
|
|
458
|
-
"text-color":
|
|
458
|
+
"text-color": q.NeutralGray400,
|
|
459
459
|
variant: $.Tertiary,
|
|
460
460
|
onClick: () => p.deleteMemberPricings(n.row.original.key)
|
|
461
461
|
}, null)])
|
|
@@ -464,20 +464,20 @@ const Te = {
|
|
|
464
464
|
p.create();
|
|
465
465
|
}
|
|
466
466
|
return (n, b) => {
|
|
467
|
-
const R =
|
|
468
|
-
return
|
|
467
|
+
const R = f("FmTable");
|
|
468
|
+
return c(), T(de, {
|
|
469
469
|
heading: t(o)("menu.member_pricing.title"),
|
|
470
470
|
subheading: t(o)("menu.member_pricing.description")
|
|
471
471
|
}, {
|
|
472
|
-
default: v(() => [x.value > 0 ? (
|
|
472
|
+
default: v(() => [x.value > 0 ? (c(), h("div", Ye, [u(ue, null, {
|
|
473
473
|
default: v(() => [u(R, {
|
|
474
|
-
"column-defs":
|
|
474
|
+
"column-defs": m,
|
|
475
475
|
"row-data": t(p).memberPricings.value,
|
|
476
476
|
"page-size": t(p).memberPricings.value.length,
|
|
477
477
|
"hide-footer": !0
|
|
478
478
|
}, null, 8, ["row-data", "page-size"])]),
|
|
479
479
|
_: 1
|
|
480
|
-
})])) : (
|
|
480
|
+
})])) : (c(), T(t(ie), {
|
|
481
481
|
key: 1,
|
|
482
482
|
action: {
|
|
483
483
|
text: t(o)("menu.member_pricing.add_member_tier"),
|
|
@@ -486,7 +486,7 @@ const Te = {
|
|
|
486
486
|
subtitle: t(o)("menu.member_pricing.empty.subtitle"),
|
|
487
487
|
title: t(o)("menu.member_pricing.empty.title")
|
|
488
488
|
}, null, 8, ["action", "subtitle", "title"]))]),
|
|
489
|
-
"append-heading": v(() => [x.value > 0 ? (
|
|
489
|
+
"append-heading": v(() => [x.value > 0 ? (c(), T(Se, {
|
|
490
490
|
key: 0,
|
|
491
491
|
label: t(o)("menu.member_pricing.add_member_tier"),
|
|
492
492
|
"prepend-icon": "add",
|
|
@@ -496,35 +496,37 @@ const Te = {
|
|
|
496
496
|
}, 8, ["heading", "subheading"]);
|
|
497
497
|
};
|
|
498
498
|
}
|
|
499
|
-
}),
|
|
499
|
+
}), et = {
|
|
500
500
|
class: "py-16"
|
|
501
|
-
},
|
|
501
|
+
}, tt = {
|
|
502
502
|
key: 0,
|
|
503
503
|
class: "space-y-32 max-w-[750px] xs:p-16"
|
|
504
|
-
},
|
|
504
|
+
}, lt = {
|
|
505
505
|
key: 0,
|
|
506
506
|
class: "pl-32 space-x-8"
|
|
507
|
-
}, lt = {
|
|
508
|
-
key: 1
|
|
509
507
|
}, nt = {
|
|
510
|
-
class: "space-y-
|
|
508
|
+
class: "space-y-16"
|
|
511
509
|
}, ot = {
|
|
512
|
-
|
|
510
|
+
key: 1
|
|
513
511
|
}, ut = {
|
|
514
|
-
class: "
|
|
512
|
+
class: "space-y-8"
|
|
515
513
|
}, at = {
|
|
516
|
-
class: "
|
|
514
|
+
class: "flex items-center justify-between"
|
|
517
515
|
}, st = {
|
|
518
|
-
|
|
516
|
+
class: "fm-typo-en-title-md-600"
|
|
519
517
|
}, rt = {
|
|
518
|
+
class: "text-fm-color-typo-secondary"
|
|
519
|
+
}, it = {
|
|
520
|
+
key: 2
|
|
521
|
+
}, ct = {
|
|
520
522
|
key: 3
|
|
521
|
-
},
|
|
523
|
+
}, Ct = /* @__PURE__ */ Z({
|
|
522
524
|
__name: "MenuSetting",
|
|
523
|
-
setup(
|
|
525
|
+
setup(W) {
|
|
524
526
|
var M, s;
|
|
525
527
|
const {
|
|
526
528
|
t: o
|
|
527
|
-
} = ee(), p = oe(), x =
|
|
529
|
+
} = ee(), p = oe(), x = ge(), m = me(), w = ce(m), n = G(() => ({
|
|
528
530
|
lowStock: p.state.menu.lowStockThreshold,
|
|
529
531
|
taxSetting: p.state.menu.masterCatalogSetting,
|
|
530
532
|
priceTierSettings: p.state.menu.priceTierSettings
|
|
@@ -540,23 +542,23 @@ const Te = {
|
|
|
540
542
|
}] : [], {
|
|
541
543
|
label: o("menu.menu_setting.tabs.link_product_rule_groups"),
|
|
542
544
|
value: "link-product-rule-groups"
|
|
543
|
-
}] : []]), _ = A(
|
|
544
|
-
|
|
545
|
+
}] : []]), _ = A(E.transformTax((M = n.value.taxSetting) == null ? void 0 : M.inclusiveTaxes)), S = A(((s = n.value.taxSetting) == null ? void 0 : s.waivedStatutoryCharges) ?? []);
|
|
546
|
+
K(() => n.value, (e) => {
|
|
545
547
|
var l, a;
|
|
546
|
-
_.value =
|
|
548
|
+
_.value = E.transformTax((l = e.taxSetting) == null ? void 0 : l.inclusiveTaxes), S.value = ((a = e.taxSetting) == null ? void 0 : a.waivedStatutoryCharges) ?? [];
|
|
547
549
|
});
|
|
548
|
-
const k = G(() => x.currentCountry.value ?
|
|
549
|
-
function
|
|
550
|
+
const k = G(() => x.currentCountry.value ? _e(x.currentCountry.value) : []);
|
|
551
|
+
function P(e) {
|
|
550
552
|
return S.value.includes(e);
|
|
551
553
|
}
|
|
552
554
|
function L(e, l) {
|
|
553
555
|
const a = S.value.filter((d) => d !== e);
|
|
554
556
|
S.value = l ? [...a, e] : a;
|
|
555
557
|
}
|
|
556
|
-
const
|
|
558
|
+
const D = G(() => {
|
|
557
559
|
if (!x.currentCountry.value) return [];
|
|
558
560
|
const e = _.value.mode === I.MANUAL ? _.value.inclusive ?? [] : [];
|
|
559
|
-
return
|
|
561
|
+
return ve.Country.getCountry(x.currentCountry.value).taxSystems.map((a) => {
|
|
560
562
|
const d = e.find((C) => C.systemCode === a.code);
|
|
561
563
|
return {
|
|
562
564
|
inclusive: (d == null ? void 0 : d.inclusive) || !1,
|
|
@@ -565,7 +567,7 @@ const Te = {
|
|
|
565
567
|
});
|
|
566
568
|
});
|
|
567
569
|
function N(e) {
|
|
568
|
-
const l = _.value, a = l.mode === I.AUTO ?
|
|
570
|
+
const l = _.value, a = l.mode === I.AUTO ? E.manualTax(D.value) : ae(l);
|
|
569
571
|
a.inclusive ?? (a.inclusive = []);
|
|
570
572
|
const d = a.inclusive.findIndex((C) => C.systemCode === e.systemCode);
|
|
571
573
|
d < 0 ? a.inclusive.push(e) : a.inclusive.splice(d, 1, e), _.value = a;
|
|
@@ -588,7 +590,7 @@ const Te = {
|
|
|
588
590
|
successMessage: o("menu.menu_setting.fields.low_stock.updated")
|
|
589
591
|
});
|
|
590
592
|
}
|
|
591
|
-
const V =
|
|
593
|
+
const V = Te(), O = [{
|
|
592
594
|
header: o("menu.price_tier.settings_table.columns.name"),
|
|
593
595
|
accessorKey: "key",
|
|
594
596
|
enableSorting: !1
|
|
@@ -597,23 +599,23 @@ const Te = {
|
|
|
597
599
|
size: 50,
|
|
598
600
|
cell: (e) => u("div", {
|
|
599
601
|
class: "px-4 flex justify-end"
|
|
600
|
-
}, [u(
|
|
602
|
+
}, [u(Q.FmButton, {
|
|
601
603
|
icon: "delete",
|
|
602
|
-
"text-color":
|
|
604
|
+
"text-color": q.NeutralGray400,
|
|
603
605
|
variant: $.Tertiary,
|
|
604
606
|
onClick: () => V.deletePriceTier(e.row.original.key)
|
|
605
607
|
}, null)])
|
|
606
608
|
}];
|
|
607
609
|
return (e, l) => {
|
|
608
|
-
const a =
|
|
609
|
-
return
|
|
610
|
+
const a = f("FmTabs"), d = f("fm-radio"), C = f("fm-radio-group"), y = f("fm-checkbox"), i = f("fm-switch"), H = f("FmStepperField"), U = f("FmButton"), pe = f("FmTable");
|
|
611
|
+
return c(), T(de, {
|
|
610
612
|
heading: t(o)("menu.menu_setting.title")
|
|
611
613
|
}, {
|
|
612
614
|
default: v(() => [u(a, {
|
|
613
615
|
items: R.value,
|
|
614
616
|
modelValue: b.value,
|
|
615
617
|
"onUpdate:modelValue": l[0] || (l[0] = (g) => b.value = g)
|
|
616
|
-
}, null, 8, ["items", "modelValue"]), r("div",
|
|
618
|
+
}, null, 8, ["items", "modelValue"]), r("div", et, [b.value === "conf" ? (c(), h("div", tt, [u(Y, {
|
|
617
619
|
title: t(o)("menu.tax_setting.title")
|
|
618
620
|
}, {
|
|
619
621
|
default: v(() => [u(se, {
|
|
@@ -622,7 +624,7 @@ const Te = {
|
|
|
622
624
|
default: v(() => [u(C, {
|
|
623
625
|
"model-value": _.value.mode,
|
|
624
626
|
"onUpdate:modelValue": l[1] || (l[1] = (g) => {
|
|
625
|
-
g === t(I).AUTO ? _.value = t(
|
|
627
|
+
g === t(I).AUTO ? _.value = t(E).autoTax() : _.value = t(E).manualTax(D.value);
|
|
626
628
|
})
|
|
627
629
|
}, {
|
|
628
630
|
default: v(() => [u(d, {
|
|
@@ -635,7 +637,7 @@ const Te = {
|
|
|
635
637
|
sublabel: t(o)("menu.setting.tax.modes.manual.sublabel")
|
|
636
638
|
}, null, 8, ["value", "label", "sublabel"])]),
|
|
637
639
|
_: 1
|
|
638
|
-
}, 8, ["model-value"]), _.value.mode === t(I).MANUAL ? (
|
|
640
|
+
}, 8, ["model-value"]), _.value.mode === t(I).MANUAL ? (c(), h("div", lt, [(c(!0), h(le, null, ne(D.value, (g) => (c(), T(y, {
|
|
639
641
|
key: g.systemCode,
|
|
640
642
|
"model-value": g.inclusive,
|
|
641
643
|
value: !0,
|
|
@@ -650,20 +652,20 @@ const Te = {
|
|
|
650
652
|
}
|
|
651
653
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))])) : F("", !0)]),
|
|
652
654
|
_: 1
|
|
653
|
-
}, 8, ["label"]), t(p).isV4 && k.value.length > 0 ? (
|
|
655
|
+
}, 8, ["label"]), t(p).isV4 && k.value.length > 0 ? (c(), T(se, {
|
|
654
656
|
key: 0,
|
|
655
657
|
label: t(o)("menu.catalog.form.statutory_charges.title")
|
|
656
658
|
}, {
|
|
657
|
-
default: v(() => [(
|
|
659
|
+
default: v(() => [r("div", nt, [(c(!0), h(le, null, ne(k.value, (g) => (c(), T(i, {
|
|
658
660
|
key: g.code,
|
|
659
|
-
"model-value":
|
|
660
|
-
value: !0,
|
|
661
|
+
"model-value": P(g.code),
|
|
661
662
|
label: t(o)("menu.catalog.form.statutory_charges.waive", {
|
|
662
663
|
name: g.name
|
|
663
664
|
}),
|
|
665
|
+
"label-placement": "right",
|
|
664
666
|
sublabel: t(o)("menu.menu_setting.statutory_charges.sublabel"),
|
|
665
667
|
"onUpdate:modelValue": (te) => L(g.code, te)
|
|
666
|
-
}, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]))), 128))]),
|
|
668
|
+
}, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]))), 128))])]),
|
|
667
669
|
_: 1
|
|
668
670
|
}, 8, ["label"])) : F("", !0)]),
|
|
669
671
|
_: 1
|
|
@@ -671,7 +673,7 @@ const Te = {
|
|
|
671
673
|
title: t(o)("menu.menu_setting.fields.low_stock.title"),
|
|
672
674
|
"sub-title": t(o)("menu.menu_setting.fields.low_stock.subtitle")
|
|
673
675
|
}, {
|
|
674
|
-
default: v(() => [u(
|
|
676
|
+
default: v(() => [u(H, {
|
|
675
677
|
"model-value": n.value.lowStock || null,
|
|
676
678
|
min: 0,
|
|
677
679
|
max: 1e3,
|
|
@@ -684,27 +686,27 @@ const Te = {
|
|
|
684
686
|
"helper-text": t(o)("menu.menu_setting.fields.low_stock.helper_text")
|
|
685
687
|
}, null, 8, ["model-value", "placeholder", "rules", "helper-text"])]),
|
|
686
688
|
_: 1
|
|
687
|
-
}, 8, ["title", "sub-title"]), u(
|
|
689
|
+
}, 8, ["title", "sub-title"]), u(U, {
|
|
688
690
|
onClick: z,
|
|
689
691
|
label: t(o)("common.save")
|
|
690
|
-
}, null, 8, ["label"])])) : F("", !0), b.value === "price-group" ? (
|
|
692
|
+
}, null, 8, ["label"])])) : F("", !0), b.value === "price-group" ? (c(), h("div", ot, [r("div", ut, [r("div", at, [r("div", null, [r("h1", st, B(t(o)("menu.price_tier.price_group")), 1), r("p", rt, B(t(o)("menu.price_tier.description")), 1)]), u(U, {
|
|
691
693
|
label: t(o)("menu.price_tier.add_price_group"),
|
|
692
694
|
icon: "add",
|
|
693
695
|
onClick: t(V).create
|
|
694
696
|
}, null, 8, ["label", "onClick"])]), u(ue, null, {
|
|
695
|
-
default: v(() => [u(
|
|
697
|
+
default: v(() => [u(pe, {
|
|
696
698
|
"column-defs": O,
|
|
697
699
|
"row-data": t(V).priceTiers.value,
|
|
698
700
|
"page-size": t(V).priceTiers.value.length,
|
|
699
701
|
"hide-footer": !0
|
|
700
702
|
}, null, 8, ["row-data", "page-size"])]),
|
|
701
703
|
_: 1
|
|
702
|
-
})])])) : F("", !0), b.value === "member-pricing" ? (
|
|
704
|
+
})])])) : F("", !0), b.value === "member-pricing" ? (c(), h("div", it, [u(Ze)])) : F("", !0), b.value === "link-product-rule-groups" ? (c(), h("div", ct, [u(Xe)])) : F("", !0)])]),
|
|
703
705
|
_: 1
|
|
704
706
|
}, 8, ["heading"]);
|
|
705
707
|
};
|
|
706
708
|
}
|
|
707
709
|
});
|
|
708
710
|
export {
|
|
709
|
-
|
|
711
|
+
Ct as default
|
|
710
712
|
};
|