@feedmepos/mf-menu 0.31.40-prod → 0.31.41-prod
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-aWEH-ZEk.js → App-5Lzy8zHZ.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-jJyinQZl.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BnKXsQH-.js} +3 -3
- package/dist/{Catalog-BoFfFdn8.js → Catalog-s5b8V8nw.js} +8 -9
- package/dist/{Category-CWYbb3Jn.js → Category-BJzScJEY.js} +4 -4
- package/dist/{Category-DZ45uikR.js → Category-DZ-xqIMI.js} +6 -6
- package/dist/{CookingGuide-BU0PRWIQ.js → CookingGuide-Bkd6GPww.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Z5xsKDIE.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B8tIjKOW.js} +1 -1
- package/dist/{Group-BMQDeqiS.js → Group-0b2Qiov3.js} +1 -1
- package/dist/{Group-C0T_uknK.js → Group-BOaCcKiI.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DyfmY6F1.js → Group.vue_vue_type_script_setup_true_lang-DUlUfMAs.js} +8 -8
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CouimeC4.js +399 -0
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dl-Wvt3D.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DOvQmbrZ.js} +13 -14
- package/dist/{Ingredient-3lwDUQx_.js → Ingredient-ChcYUvOg.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-VLrrTkSC.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DE1HkipX.js} +2 -2
- package/dist/LinkProductSideSheet-BdzBGYxG.js +361 -0
- package/dist/MenuSetting-zAAttaoA.js +618 -0
- package/dist/{PrintRoute-DfJ-vUAb.js → PrintRoute-T-vuO5N8.js} +4 -4
- package/dist/{Product-F4PoLm9v.js → Product-B5q291VF.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DT5gffpA.js → Product.vue_vue_type_script_setup_true_lang-DLRlT10W.js} +468 -465
- package/dist/{ProductInternalTools-DSGU-OqU.js → ProductInternalTools-BOlc0VUR.js} +5 -5
- package/dist/{Products-COzW2Z4g.js → Products-Cd4Mqhm3.js} +88 -85
- package/dist/{Publish-CDXVWCk2.js → Publish-SuRzt-_D.js} +3 -3
- package/dist/{Recipe-BZx4wrcP.js → Recipe-BKrjNs5g.js} +4 -4
- package/dist/{Scheduler-wHCWSeU2.js → Scheduler-DnDgImLC.js} +3 -3
- package/dist/{ServingSequence-BbYEhDYh.js → ServingSequence-D602bVnm.js} +3 -3
- package/dist/{Setting-C9Tlw1Iy.js → Setting-FMT4oBYH.js} +44 -45
- package/dist/{Subcategory-C8AwfrKb.js → Subcategory-CpYmjAvA.js} +4 -4
- package/dist/{Takeaway-t1053wg2.js → Takeaway-BXh3iuME.js} +1 -1
- package/dist/{Takeaway-DaEUn-yM.js → Takeaway-D4hjN5z5.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-7XycP5fU.js → Takeaway.vue_vue_type_script_setup_true_lang-By1f-FCO.js} +5 -5
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-CZUwa5C_.js +440 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ci6iqOry.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DfjtfcCh.js} +604 -600
- package/dist/{Unit-CnqptGCz.js → Unit-CsjHkV-h.js} +2 -2
- package/dist/{Variant-DiOYOwJs.js → Variant-Djra14ZX.js} +3 -3
- package/dist/{_id_-BSfU16VO.js → _id_-BXkqoCzB.js} +78 -75
- package/dist/{app-Ddb81PNo.js → app-CVqWWV4x.js} +278 -278
- package/dist/{LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js → app-CiBqmBzO.js} +2120 -2084
- package/dist/{app-Cou6qPF2.js → app-PhBJNss_.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +2 -1
- package/dist/apps/mf-menu/src/app.d.ts +144 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +9 -3
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +294 -4
- package/dist/apps/mf-menu/src/composable/attributes.d.ts +26 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +40 -0
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +285 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +285 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +285 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +293 -3
- package/dist/apps/mf-menu/src/utils/array.d.ts +1 -0
- package/dist/apps/mf-menu/src/utils/customAttributes.d.ts +12 -0
- package/dist/apps/mf-menu/src/views/MenuSetting/LinkProductRuleGroups.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/MenuSetting/RuleGroupSideSheet.vue.d.ts +176 -0
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +166 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-WlVAcpRn.js +13 -0
- package/dist/assets/override-menu-__h4D7ac.js +13 -0
- package/dist/assets/validate-menu-DyPuzLRg.js +13 -0
- package/dist/{catalog-DSuJhsUb.js → catalog-C_TuQLxq.js} +1 -1
- package/dist/{catalogSetting-C3gEw9ov.js → catalogSetting-BUlJu6hG.js} +1 -1
- package/dist/{category-CwWq3KCE.js → category-CmVw1Kj-.js} +1 -1
- package/dist/{currency-g45Sh-t6.js → currency-OhOTnAqk.js} +1 -1
- package/dist/customAttributes-fpOfmGnw.js +180 -0
- package/dist/{dayjs.min-g3eN5z-V.js → dayjs.min-CDhP-7L5.js} +1 -1
- package/dist/{index-QsLFbxyG.js → index-BJZEWB5C.js} +4 -4
- package/dist/{index-BLQCYEc6.js → index-DHAYGEPp.js} +7 -8
- package/dist/{index-0yRUi7LL.js → index-DtwHmS38.js} +1 -1
- package/dist/index-N3cGc8ex.js +245 -0
- package/dist/{item-BvvQ9urP.js → item-BELLphR0.js} +16 -16
- package/dist/{jszip.min-DzdUiaR4.js → jszip.min-CZtcGb7A.js} +353 -353
- package/dist/{menu-QrVg2Ph7.js → menu-Csyr6W9A.js} +7 -7
- package/dist/{menu-DFNvhoNQ.js → menu-DS_ERmBf.js} +23355 -23206
- package/dist/{menuV2-Ezf_jW40.js → menuV2-DKzAZ4Ss.js} +151 -146
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-zENsn3P_.js → priceTier-CYWS5lDS.js} +1 -1
- package/dist/{scheduler-BuwGSv6A.js → scheduler-DI5dXC7Y.js} +8 -8
- package/dist/{subcategory-O3L_zCJA.js → subcategory-D_ao-IV9.js} +2 -2
- package/dist/{toExcel-CpRy_4nG.js → toExcel-Cml-rkJQ.js} +2 -2
- package/dist/{unit-Ct_7Hfa2.js → unit-BWDp2LkV.js} +42 -41
- package/package.json +3 -3
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js +0 -50
- package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D6qro5w_.js +0 -367
- package/dist/LinkProductSideSheet-LDZjKX95.js +0 -297
- package/dist/MenuSetting-AhutsCVy.js +0 -185
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-B7oLH9cP.js +0 -431
- package/dist/assets/linked-status-B_crHhZH.js +0 -24
- package/dist/assets/override-menu-BmlCEpHH.js +0 -24
- package/dist/assets/validate-menu-CF-psoB-.js +0 -24
- package/dist/index-0Q5T9VZV.js +0 -214
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as v, computed as $, resolveComponent as G, createElementBlock as c, openBlock as r, createElementVNode as s, createVNode as I, unref as h, createCommentVNode as T, normalizeClass as E, toDisplayString as U, createStaticVNode as B, Fragment as P, renderList as R, createBlock as oe, withCtx as A } from "vue";
|
|
2
|
-
import { J as O, F as ne } from "./jszip.min-
|
|
3
|
-
import { G as le, u as ie, I as D, a0 as re, $ as ce, K as de, M as me, N as ue } from "./menu-
|
|
2
|
+
import { J as O, F as ne } from "./jszip.min-CZtcGb7A.js";
|
|
3
|
+
import { G as le, u as ie, I as D, a0 as re, $ as ce, K as de, M as me, N as ue } from "./menu-DS_ERmBf.js";
|
|
4
4
|
import { useI18n as ge } from "@feedmepos/mf-common";
|
|
5
5
|
import { FmButtonVariant as z, useSnackbar as V, useDialog as pe, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as fe } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { u as he, a as ye } from "./menu-
|
|
8
|
-
import { a as be } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { v as ve, w as _e } from "./item-
|
|
7
|
+
import { u as he, a as ye } from "./menu-Csyr6W9A.js";
|
|
8
|
+
import { a as be } from "./Product.vue_vue_type_script_setup_true_lang-DLRlT10W.js";
|
|
9
|
+
import { v as ve, w as _e } from "./item-BELLphR0.js";
|
|
10
10
|
const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center justify-between p-16 border-b border-gray-200" }, Ie = { class: "flex gap-8" }, ke = { class: "border-b border-gray-200" }, Ce = { class: "flex" }, Ue = { class: "flex-1 overflow-hidden" }, je = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "h-full flex flex-col"
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as Y, computed as v, ref as
|
|
2
|
-
import { D as S } from "./dayjs.min-
|
|
3
|
-
import { M as
|
|
4
|
-
import { J as
|
|
5
|
-
import { u as
|
|
6
|
-
import { useCoreStore as
|
|
7
|
-
import { useDialog as
|
|
1
|
+
import { defineComponent as Y, computed as v, ref as G, resolveComponent as w, createBlock as y, openBlock as p, unref as e, withCtx as d, createElementVNode as u, toDisplayString as O, createVNode as o, createCommentVNode as j, createElementBlock as N, Fragment as B } from "vue";
|
|
2
|
+
import { D as S } from "./dayjs.min-CDhP-7L5.js";
|
|
3
|
+
import { M as oe, w as ne } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DOvQmbrZ.js";
|
|
4
|
+
import { J as ae, F as re } from "./jszip.min-CZtcGb7A.js";
|
|
5
|
+
import { u as J, G as Z, B as P, e as A, A as K, D as se, H as R, I as z } from "./menu-DS_ERmBf.js";
|
|
6
|
+
import { useCoreStore as ie, useI18n as le } from "@feedmepos/mf-common";
|
|
7
|
+
import { useDialog as Q, useDialogChild as ue, useSnackbar as W, useBreakpoints as ce, FmButtonVariant as $, FmButtonColorThemeVariant as x } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as V } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
9
|
-
import { _ as me, a as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { L as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { u as
|
|
17
|
-
import { m as
|
|
18
|
-
const
|
|
9
|
+
import { _ as me, a as L } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
10
|
+
import { _ as de } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
11
|
+
import { u as pe, a as fe } from "./menu-Csyr6W9A.js";
|
|
12
|
+
import { u as _e } from "./item-BELLphR0.js";
|
|
13
|
+
import { _ as U, a as ve } from "./Product.vue_vue_type_script_setup_true_lang-DLRlT10W.js";
|
|
14
|
+
import { L as q } from "./LinkProductSideSheet-BdzBGYxG.js";
|
|
15
|
+
import { _ as ge } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DfjtfcCh.js";
|
|
16
|
+
import { u as be } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CZUwa5C_.js";
|
|
17
|
+
import { m as ye } from "./toExcel-Cml-rkJQ.js";
|
|
18
|
+
const ke = { class: "space-y-24 mb-24" }, xe = ["innerHTML"], Me = { class: "flex justify-end gap-8" }, he = /* @__PURE__ */ Y({
|
|
19
19
|
__name: "ConfirmActionDialog",
|
|
20
20
|
props: {
|
|
21
21
|
description: {},
|
|
@@ -23,17 +23,17 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
|
|
|
23
23
|
message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
|
|
24
24
|
},
|
|
25
25
|
setup(F) {
|
|
26
|
-
const t = F, M = v(() => t.message.replace("[[value]]", t.value)), n =
|
|
26
|
+
const t = F, M = v(() => t.message.replace("[[value]]", t.value)), n = G(""), h = Q(), { emitAction: k } = ue();
|
|
27
27
|
return (s, i) => {
|
|
28
|
-
const f = w("FmTextField"),
|
|
28
|
+
const f = w("FmTextField"), c = w("FmButton"), g = w("FmForm");
|
|
29
29
|
return p(), y(g, {
|
|
30
30
|
"on-validation-success": () => e(k)("primary"),
|
|
31
31
|
"blame-form-child-on-validation-failed": ""
|
|
32
32
|
}, {
|
|
33
33
|
default: d(() => [
|
|
34
|
-
u("div",
|
|
35
|
-
u("div", null,
|
|
36
|
-
u("div", { innerHTML: M.value }, null, 8,
|
|
34
|
+
u("div", ke, [
|
|
35
|
+
u("div", null, O(s.description), 1),
|
|
36
|
+
u("div", { innerHTML: M.value }, null, 8, xe),
|
|
37
37
|
u("div", null, [
|
|
38
38
|
o(f, {
|
|
39
39
|
modelValue: n.value,
|
|
@@ -46,13 +46,13 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
|
|
|
46
46
|
rules: [(l) => l === s.value || "Value does not match"]
|
|
47
47
|
}, null, 8, ["modelValue", "placeholder", "rules"])
|
|
48
48
|
]),
|
|
49
|
-
u("div",
|
|
50
|
-
o(
|
|
49
|
+
u("div", Me, [
|
|
50
|
+
o(c, {
|
|
51
51
|
label: "Cancel",
|
|
52
52
|
variant: "secondary",
|
|
53
53
|
onClick: i[2] || (i[2] = (l) => e(h).close())
|
|
54
54
|
}),
|
|
55
|
-
o(
|
|
55
|
+
o(c, {
|
|
56
56
|
label: "Confirm",
|
|
57
57
|
type: "submit"
|
|
58
58
|
})
|
|
@@ -63,14 +63,14 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
|
|
|
63
63
|
}, 8, ["on-validation-success"]);
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
}),
|
|
66
|
+
}), Se = /* @__PURE__ */ Y({
|
|
67
67
|
__name: "Migrate",
|
|
68
68
|
setup(F) {
|
|
69
|
-
const t =
|
|
69
|
+
const t = J(), M = ie(), n = W(), { minor: h } = Z(n), k = G(!1), s = Q();
|
|
70
70
|
async function i() {
|
|
71
71
|
f.value || k.value || s.open({
|
|
72
72
|
title: "Migrate to new version",
|
|
73
|
-
contentComponent:
|
|
73
|
+
contentComponent: he,
|
|
74
74
|
contentComponentProps: {
|
|
75
75
|
value: "MIGRATE",
|
|
76
76
|
description: "Do you want to migrate to new version? Once migrate it will unable to revert to the older version."
|
|
@@ -92,14 +92,14 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
const f = v(() => {
|
|
95
|
-
const
|
|
96
|
-
if (!
|
|
97
|
-
const g =
|
|
98
|
-
return g.length ? `Upgrade POS to V${
|
|
95
|
+
const c = M.restaurants.value;
|
|
96
|
+
if (!c.length) return "Required at least one restaurant to migrate";
|
|
97
|
+
const g = c.filter((b) => !b.posVersion || !P.Pos.canUse({ feature: A.F_FEATURE.enum.menuV4, posVersion: b.posVersion }));
|
|
98
|
+
return g.length ? `Upgrade POS to V${P.Pos.minVersionToUse(A.F_FEATURE.enum.menuV4)} to use new menu: ${g.map((b) => b.profile.name).join(", ")}` : null;
|
|
99
99
|
});
|
|
100
|
-
return v(() => f.value ? f.value : "Migrate your menu to new version to enjoy more features. Content of new menu will remain the same as current."), (
|
|
100
|
+
return v(() => f.value ? f.value : "Migrate your menu to new version to enjoy more features. Content of new menu will remain the same as current."), (c, g) => {
|
|
101
101
|
const l = w("FmSnackbar");
|
|
102
|
-
return !f.value && e(t).version !== e(
|
|
102
|
+
return !f.value && e(t).version !== e(K.F_MENU_VERSION).enum.v4 ? (p(), y(l, {
|
|
103
103
|
key: 0,
|
|
104
104
|
class: "!max-w-full",
|
|
105
105
|
title: "New version of menu is out now!",
|
|
@@ -108,42 +108,42 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
|
|
|
108
108
|
action: "Migrate",
|
|
109
109
|
"z-index": 0,
|
|
110
110
|
onOnAction: i
|
|
111
|
-
})) :
|
|
111
|
+
})) : j("", !0);
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
}),
|
|
114
|
+
}), we = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ce = { class: "flex items-center" }, Fe = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, $e = { class: "fm-typo-en-body-md-600 font-semibold" }, Ve = { class: "flex gap-8" }, je = /* @__PURE__ */ Y({
|
|
115
115
|
__name: "Products",
|
|
116
116
|
setup(F) {
|
|
117
|
-
const { t } =
|
|
118
|
-
...
|
|
117
|
+
const { t } = le(), M = Z(W()), n = J(), h = v(() => n.rules.item), k = _e(), s = v(() => !n.state.currentSchedulerId), { selectedCategories: i } = pe(), f = v(() => ({
|
|
118
|
+
...se.menuV4ToV3(R(n.state.menu)),
|
|
119
119
|
_id: n.state.menu._id,
|
|
120
120
|
_rev: n.state.menu._rev
|
|
121
|
-
})),
|
|
122
|
-
const
|
|
123
|
-
return
|
|
121
|
+
})), c = v(() => {
|
|
122
|
+
const m = z.flatten(i.value.map((a) => a.items));
|
|
123
|
+
return z.uniqBy(m, (a) => a._id).length;
|
|
124
124
|
});
|
|
125
|
-
async function g(
|
|
126
|
-
const _ = new
|
|
127
|
-
for (let C = 0; C <
|
|
128
|
-
const
|
|
129
|
-
_.file(`${a[C]}.xlsx`,
|
|
125
|
+
async function g(m, a) {
|
|
126
|
+
const _ = new ae();
|
|
127
|
+
for (let C = 0; C < m.length; C++) {
|
|
128
|
+
const te = await m[C].xlsx.writeBuffer();
|
|
129
|
+
_.file(`${a[C]}.xlsx`, te);
|
|
130
130
|
}
|
|
131
131
|
const r = await _.generateAsync({ type: "blob" });
|
|
132
|
-
|
|
132
|
+
re.saveAs(r, `books_${S().format("DD-MM-YYYY_HH-mm")}.zip`);
|
|
133
133
|
}
|
|
134
134
|
async function l() {
|
|
135
135
|
await M.minor(
|
|
136
136
|
async () => {
|
|
137
|
-
if (await n.readMenu(), n.version ===
|
|
138
|
-
const
|
|
137
|
+
if (await n.readMenu(), n.version === K.F_MENU_VERSION.enum.v4) {
|
|
138
|
+
const m = R(n.state.menu), a = new oe(m).exportToExcel(), _ = [
|
|
139
139
|
`menu_${S().format("DD-MM-YYYY_HH-mm")}`,
|
|
140
140
|
`addonGroup_${S().format("DD-MM-YYYY_HH-mm")}`,
|
|
141
141
|
`itemLinkedAddon${S().format("DD-MM-YYYY_HH-mm")}`
|
|
142
142
|
];
|
|
143
143
|
g(a, _);
|
|
144
144
|
} else {
|
|
145
|
-
const
|
|
146
|
-
await
|
|
145
|
+
const m = ye(f.value), a = `menu_${S().format("DD-MM-YYYY_HH-mm")}`;
|
|
146
|
+
await ne(m, `${a}.xlsx`, {
|
|
147
147
|
bookType: "xlsx",
|
|
148
148
|
bookSST: !1,
|
|
149
149
|
type: "array"
|
|
@@ -155,37 +155,38 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
|
|
|
155
155
|
}
|
|
156
156
|
const {
|
|
157
157
|
menuItems: b,
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
158
|
+
categories: E,
|
|
159
|
+
linkItemRules: D,
|
|
160
|
+
handleSubmit: T,
|
|
161
|
+
catalogManager: I,
|
|
162
|
+
schedulerManager: H
|
|
163
|
+
} = be(!1), X = ce(), ee = v(() => X.breakpoints.value.xs);
|
|
164
|
+
return fe().resetOnMount(), (m, a) => {
|
|
164
165
|
const _ = w("fm-button");
|
|
165
|
-
return p(), y(
|
|
166
|
+
return p(), y(de, {
|
|
166
167
|
heading: e(t)("menu.products.title")
|
|
167
168
|
}, {
|
|
168
169
|
default: d(() => [
|
|
169
|
-
o(
|
|
170
|
-
o(
|
|
170
|
+
o(Se),
|
|
171
|
+
o(ve)
|
|
171
172
|
]),
|
|
172
173
|
"append-heading": d(() => [
|
|
173
|
-
u("div",
|
|
174
|
-
u("div",
|
|
175
|
-
u("div",
|
|
176
|
-
u("p",
|
|
174
|
+
u("div", we, [
|
|
175
|
+
u("div", Ce, [
|
|
176
|
+
u("div", Fe, [
|
|
177
|
+
u("p", $e, O(c.value), 1)
|
|
177
178
|
])
|
|
178
179
|
]),
|
|
179
|
-
u("div",
|
|
180
|
-
|
|
180
|
+
u("div", Ve, [
|
|
181
|
+
ee.value ? (p(), y(U, { key: 1 }, {
|
|
181
182
|
default: d(({ trigger: r }) => [
|
|
182
183
|
o(me, null, {
|
|
183
184
|
default: d(() => [
|
|
184
|
-
o(
|
|
185
|
+
o(L, {
|
|
185
186
|
label: e(t)("menu.products.actions.export"),
|
|
186
187
|
onClick: l
|
|
187
188
|
}, null, 8, ["label"]),
|
|
188
|
-
o(
|
|
189
|
+
o(L, {
|
|
189
190
|
label: e(t)("menu.products.actions.import"),
|
|
190
191
|
onClick: r
|
|
191
192
|
}, null, 8, ["label", "onClick"])
|
|
@@ -194,8 +195,8 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
|
|
|
194
195
|
}, 1024)
|
|
195
196
|
]),
|
|
196
197
|
_: 1
|
|
197
|
-
})) : (p(),
|
|
198
|
-
o(
|
|
198
|
+
})) : (p(), N(B, { key: 0 }, [
|
|
199
|
+
o(ge, null, {
|
|
199
200
|
default: d(({ trigger: r }) => [
|
|
200
201
|
o(_, {
|
|
201
202
|
label: e(t)("menu.tree_editor.title"),
|
|
@@ -214,7 +215,7 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
|
|
|
214
215
|
label: e(t)("menu.products.actions.export"),
|
|
215
216
|
onClick: l
|
|
216
217
|
}, null, 8, ["bg-color", "text-color", "variant", "label"]),
|
|
217
|
-
o(
|
|
218
|
+
o(U, null, {
|
|
218
219
|
default: d(({ trigger: r }) => [
|
|
219
220
|
o(_, {
|
|
220
221
|
"bg-color": e(x).NeutralGray100,
|
|
@@ -227,21 +228,22 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
|
|
|
227
228
|
_: 1
|
|
228
229
|
})
|
|
229
230
|
], 64)),
|
|
230
|
-
|
|
231
|
+
c.value > 0 ? (p(), N(B, { key: 2 }, [
|
|
231
232
|
h.value.create ? (p(), y(V, {
|
|
232
233
|
key: 0,
|
|
233
234
|
label: e(t)("menu.products.actions.add"),
|
|
234
235
|
"prepend-icon": "add",
|
|
235
236
|
onClick: a[0] || (a[0] = (r) => e(k).create(null))
|
|
236
|
-
}, null, 8, ["label"])) : s.value ? (p(), y(
|
|
237
|
+
}, null, 8, ["label"])) : s.value ? (p(), y(q, {
|
|
237
238
|
key: 1,
|
|
238
|
-
"categorized-items": e(
|
|
239
|
-
"initial-value": e(
|
|
239
|
+
"categorized-items": e(I).linkableItems.value,
|
|
240
|
+
"initial-value": e(I).currentItems.value,
|
|
240
241
|
"show-variant": !1,
|
|
241
242
|
"menu-items": e(b),
|
|
242
|
-
|
|
243
|
+
categories: e(E),
|
|
244
|
+
"link-item-rules": e(D),
|
|
243
245
|
"no-scheduler": s.value,
|
|
244
|
-
onSubmit: e(
|
|
246
|
+
onSubmit: e(T)
|
|
245
247
|
}, {
|
|
246
248
|
default: d(({ trigger: r }) => [
|
|
247
249
|
o(V, {
|
|
@@ -251,15 +253,16 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
|
|
|
251
253
|
}, null, 8, ["label", "onClick"])
|
|
252
254
|
]),
|
|
253
255
|
_: 1
|
|
254
|
-
}, 8, ["categorized-items", "initial-value", "menu-items", "link-item-rules", "no-scheduler", "onSubmit"])) : (p(), y(
|
|
256
|
+
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (p(), y(q, {
|
|
255
257
|
key: 2,
|
|
256
|
-
"categorized-items": e(
|
|
257
|
-
"initial-value": e(
|
|
258
|
+
"categorized-items": e(H).linkableItems.value,
|
|
259
|
+
"initial-value": e(H).currentItems.value,
|
|
258
260
|
"show-variant": !1,
|
|
259
261
|
"menu-items": e(b),
|
|
260
|
-
|
|
262
|
+
categories: e(E),
|
|
263
|
+
"link-item-rules": e(D),
|
|
261
264
|
"no-scheduler": s.value,
|
|
262
|
-
onSubmit: e(
|
|
265
|
+
onSubmit: e(T)
|
|
263
266
|
}, {
|
|
264
267
|
default: d(({ trigger: r }) => [
|
|
265
268
|
o(V, {
|
|
@@ -268,8 +271,8 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
|
|
|
268
271
|
}, null, 8, ["label", "onClick"])
|
|
269
272
|
]),
|
|
270
273
|
_: 1
|
|
271
|
-
}, 8, ["categorized-items", "initial-value", "menu-items", "link-item-rules", "no-scheduler", "onSubmit"]))
|
|
272
|
-
], 64)) :
|
|
274
|
+
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"]))
|
|
275
|
+
], 64)) : j("", !0)
|
|
273
276
|
])
|
|
274
277
|
])
|
|
275
278
|
]),
|
|
@@ -279,5 +282,5 @@ const ye = { class: "space-y-24 mb-24" }, ke = ["innerHTML"], xe = { class: "fle
|
|
|
279
282
|
}
|
|
280
283
|
});
|
|
281
284
|
export {
|
|
282
|
-
|
|
285
|
+
je as default
|
|
283
286
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as K, ref as I, computed as S, onMounted as ne, resolveComponent as C, createElementBlock as R, openBlock as h, createVNode as n, createElementVNode as o, toDisplayString as F, unref as i, Fragment as E, renderList as j, createBlock as O, withCtx as L, createCommentVNode as ue, withModifiers as z, h as H } from "vue";
|
|
2
|
-
import { D as X } from "./dayjs.min-
|
|
2
|
+
import { D as X } from "./dayjs.min-CDhP-7L5.js";
|
|
3
3
|
import { useRouter as ie } from "vue-router";
|
|
4
|
-
import { B as re, e as ce, G as Z, a8 as de, H as J, I as me, u as pe, A as ge, a0 as ve } from "./menu-
|
|
4
|
+
import { B as re, e as ce, G as Z, a8 as de, H as J, I as me, u as pe, A as ge, a0 as ve } from "./menu-DS_ERmBf.js";
|
|
5
5
|
import { useI18n as Y, useCoreStore as be, RestaurantSelector as fe } from "@feedmepos/mf-common";
|
|
6
6
|
import { useSnackbar as ee, useDialogChild as _e, useDialog as he, components as Q } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as ye } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
8
|
-
import { _ as Ce } from "./app-
|
|
8
|
+
import { _ as Ce } from "./app-CVqWWV4x.js";
|
|
9
9
|
import { a as ke, w as we } from "./tooltip-B5BiPMx9.js";
|
|
10
10
|
import { u as xe } from "./discardConfirm-BHni0LNu.js";
|
|
11
11
|
import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
@@ -2,15 +2,15 @@ import { defineComponent as z, computed as h, ref as w, reactive as Q, watch as
|
|
|
2
2
|
import { useI18n as U } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as A, components as j, useDialog as ne, FmButtonVariant as G, useBreakpoints as oe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as le } from "./app-
|
|
6
|
-
import { O as q, G as $, H as ie, D as P, I as se, e as Y, J as I, A as T, u as H } from "./menu-
|
|
5
|
+
import { _ as le } from "./app-CVqWWV4x.js";
|
|
6
|
+
import { O as q, G as $, H as ie, D as P, I as se, e as Y, J as I, A as T, u as H } from "./menu-DS_ERmBf.js";
|
|
7
7
|
import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
8
8
|
import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
9
9
|
import { defineStore as ue } from "pinia";
|
|
10
|
-
import { _ as B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-DE1HkipX.js";
|
|
11
11
|
import { u as de } from "./discardConfirm-BHni0LNu.js";
|
|
12
12
|
import { c as pe } from "./check-C9mY6LiX.js";
|
|
13
|
-
import "./unit-
|
|
13
|
+
import "./unit-BWDp2LkV.js";
|
|
14
14
|
import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
15
15
|
const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ z({
|
|
16
16
|
__name: "Form",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as N, computed as y, h as c, withModifiers as U, ref as V, resolveComponent as _, createBlock as k, openBlock as d, unref as m, withCtx as h, createElementBlock as D, createVNode as f, Fragment as H, createElementVNode as l, renderList as T, toDisplayString as S, createCommentVNode as I } from "vue";
|
|
2
|
-
import { A as i, O as W, u as G, G as Q } from "./menu-
|
|
2
|
+
import { A as i, O as W, u as G, G as Q } from "./menu-DS_ERmBf.js";
|
|
3
3
|
import { useI18n as J } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as X, useDialog as Z, useSnackbar as ee } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as te } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
|
-
import { _ as ne } from "./app-
|
|
7
|
-
import { d as ae, _ as oe, u as se, c as le } from "./scheduler-
|
|
6
|
+
import { _ as ne } from "./app-CVqWWV4x.js";
|
|
7
|
+
import { d as ae, _ as oe, u as se, c as le } from "./scheduler-DI5dXC7Y.js";
|
|
8
8
|
import { _ as re } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
9
9
|
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
10
10
|
const ce = {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as J, ref as L, computed as O, resolveComponent as h, createElementBlock as g, openBlock as d, Fragment as x, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as y, toDisplayString as z, onBeforeMount as oe, watch as F, watchEffect as se, h as $, getCurrentInstance as le, onMounted as re, createBlock as j, createCommentVNode as G, isRef as ie, normalizeClass as Q, renderList as ue } from "vue";
|
|
2
2
|
import { useRouter as ce } from "vue-router";
|
|
3
|
-
import { H, u as W, G as X, O as Z, J as I, A as S } from "./menu-
|
|
3
|
+
import { H, u as W, G as X, O as Z, J as I, A as S } from "./menu-DS_ERmBf.js";
|
|
4
4
|
import { useI18n as ee, ItemSelector as de, useCoreStore as me } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as ne, components as Y, useDialog as pe, FmButtonVariant as A, useBreakpoints as _e } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as fe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
7
|
-
import { _ as ge, R as ve } from "./app-
|
|
7
|
+
import { _ as ge, R as ve } from "./app-CVqWWV4x.js";
|
|
8
8
|
import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
9
9
|
import { c as ye } from "./check-C9mY6LiX.js";
|
|
10
10
|
import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
11
11
|
import { u as ke } from "./search-BAPEUu1R.js";
|
|
12
|
-
import { u as xe } from "./app-
|
|
12
|
+
import { u as xe } from "./app-PhBJNss_.js";
|
|
13
13
|
import { c as Se } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
14
14
|
const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex flex-col h-full" }, Ee = { class: "flex gap-8 items-center justify-start" }, Ve = /* @__PURE__ */ J({
|
|
15
15
|
__name: "Form",
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as me, G as ce, A as f, O as de, B as pe, H as w } from "./menu-
|
|
1
|
+
import { defineComponent as oe, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as V, openBlock as r, normalizeClass as z, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as k, unref as e, Fragment as D, renderList as B, createTextVNode as re, toDisplayString as N } from "vue";
|
|
2
|
+
import { u as me, G as ce, A as f, O as de, B as pe, H as w } from "./menu-DS_ERmBf.js";
|
|
3
3
|
import { useCoreStore as ve, useI18n as ge } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as fe, useDialog as _e, FmButtonVariant as $, FmButtonColorThemeVariant as P, components as be } from "@feedmepos/ui-library";
|
|
5
|
-
import { a as E } from "./
|
|
6
|
-
import { _ as
|
|
7
|
-
import {
|
|
8
|
-
import { C as
|
|
9
|
-
import { C as xe } from "./catalog-DSuJhsUb.js";
|
|
5
|
+
import { _ as ye, a as E } from "./customAttributes-fpOfmGnw.js";
|
|
6
|
+
import { _ as H, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CouimeC4.js";
|
|
7
|
+
import { C as _, a as x } from "./catalogSetting-BUlJu6hG.js";
|
|
8
|
+
import { C as xe } from "./catalog-C_TuQLxq.js";
|
|
10
9
|
const Ce = {
|
|
11
10
|
class: /* @__PURE__ */ z(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16", "pt-16"])
|
|
12
11
|
}, Oe = {
|
|
@@ -26,16 +25,16 @@ const Ce = {
|
|
|
26
25
|
class: "fm-typo-en-body-md-400"
|
|
27
26
|
}, he = {
|
|
28
27
|
class: "flex justify-end"
|
|
29
|
-
},
|
|
28
|
+
}, Pe = /* @__PURE__ */ oe({
|
|
30
29
|
__name: "Setting",
|
|
31
30
|
setup(Ne) {
|
|
32
31
|
const F = ve(), u = me(), j = fe(), A = ce(j), {
|
|
33
32
|
minor: q
|
|
34
33
|
} = A, G = _e(), {
|
|
35
|
-
t:
|
|
34
|
+
t: o
|
|
36
35
|
} = ge(), O = p(() => u.currentCatalog), b = p(() => !O.value), S = p(() => u.version === f.F_MENU_VERSION.enum.v4), {
|
|
37
36
|
updateMenu: J
|
|
38
|
-
} = de(A), l = se(_.initCatalogSetting()), W = p(() => u.catalogs.filter((t) => t._id !== u.state.currentCatalogId).map((t) => t.name)), Y = p(() => u.state.restaurants.filter((t) => [...t.additionalCatalogs, t.inHouseDelivery, ...t.linkedDeliveryCatalogs.map((
|
|
37
|
+
} = de(A), l = se(_.initCatalogSetting()), W = p(() => u.catalogs.filter((t) => t._id !== u.state.currentCatalogId).map((t) => t.name)), Y = p(() => u.state.restaurants.filter((t) => [...t.additionalCatalogs, t.inHouseDelivery, ...t.linkedDeliveryCatalogs.map((n) => n.catalog), t.pickupCatalog, t.takeawayCatalog, t.catalogId].includes(u.state.currentCatalogId)).map((t) => t.name));
|
|
39
38
|
function T() {
|
|
40
39
|
return Y.value.length > 0 ? s("div", {
|
|
41
40
|
class: ["flex items-center", "bg-fm-color-system-warning-100", "rounded-lg", "py-16 px-24 space-x-8"]
|
|
@@ -44,7 +43,7 @@ const Ce = {
|
|
|
44
43
|
name: "warning"
|
|
45
44
|
}, null), s("p", {
|
|
46
45
|
class: "fm-typo-en-body-lg-400"
|
|
47
|
-
}, [
|
|
46
|
+
}, [o("menu.setting.catalog.warnings.delivery")])]) : null;
|
|
48
47
|
}
|
|
49
48
|
function I() {
|
|
50
49
|
const t = O.value;
|
|
@@ -63,7 +62,7 @@ const Ce = {
|
|
|
63
62
|
});
|
|
64
63
|
});
|
|
65
64
|
function K(t) {
|
|
66
|
-
const
|
|
65
|
+
const n = l.value.taxSetting, i = n.mode === x.AUTO ? _.manualTax(R.value) : w(n);
|
|
67
66
|
i.inclusive ?? (i.inclusive = []);
|
|
68
67
|
const d = i.inclusive.findIndex((C) => C.systemCode === t.systemCode);
|
|
69
68
|
d < 0 ? i.inclusive.push(t) : i.inclusive.splice(d, 1, t), U.value = i;
|
|
@@ -90,49 +89,49 @@ const Ce = {
|
|
|
90
89
|
customId: u.state.menu._id
|
|
91
90
|
});
|
|
92
91
|
};
|
|
93
|
-
function X(t,
|
|
92
|
+
function X(t, n) {
|
|
94
93
|
const i = w(l.value);
|
|
95
|
-
i.markupOptions && (i.markupOptions[t] =
|
|
94
|
+
i.markupOptions && (i.markupOptions[t] = n, l.value = i);
|
|
96
95
|
}
|
|
97
96
|
function Z(t) {
|
|
98
|
-
const
|
|
99
|
-
|
|
97
|
+
const n = w(l.value);
|
|
98
|
+
n.markupOptions && (n.markupOptions.splice(t, 1), l.value = n);
|
|
100
99
|
}
|
|
101
|
-
return (t,
|
|
102
|
-
const i = m("fm-text-field"), d = m("fm-radio"), C = m("fm-radio-group"), ee = m("fm-checkbox"), L = m("fm-switch"), te = m("fm-select"), h = m("fm-button"), ae = m("fm-chip"), le = m("fm-card"),
|
|
103
|
-
return r(), V("div", Ce, [s(
|
|
100
|
+
return (t, n) => {
|
|
101
|
+
const i = m("fm-text-field"), d = m("fm-radio"), C = m("fm-radio-group"), ee = m("fm-checkbox"), L = m("fm-switch"), te = m("fm-select"), h = m("fm-button"), ae = m("fm-chip"), le = m("fm-card"), ne = m("fm-form");
|
|
102
|
+
return r(), V("div", Ce, [s(ne, {
|
|
104
103
|
class: z(["space-y-40 max-w-[751px]", "h-fit"]),
|
|
105
104
|
"blame-form-child-on-validation-failed": "",
|
|
106
105
|
onValidationSuccess: Q
|
|
107
106
|
}, {
|
|
108
107
|
default: c(() => [v("div", Oe, [b.value ? k("", !0) : (r(), g(ye, {
|
|
109
108
|
key: 0,
|
|
110
|
-
title: e(
|
|
109
|
+
title: e(o)("menu.setting.catalog.title")
|
|
111
110
|
}, {
|
|
112
111
|
default: c(() => [s(i, {
|
|
113
112
|
modelValue: l.value.name,
|
|
114
|
-
"onUpdate:modelValue":
|
|
115
|
-
rules: [(a) => !W.value.includes(a.trim()) || e(
|
|
116
|
-
label: e(
|
|
113
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => l.value.name = a),
|
|
114
|
+
rules: [(a) => !W.value.includes(a.trim()) || e(o)("menu.setting.catalog.fields.name.used"), (a) => !!a.trim() || e(o)("menu.setting.catalog.fields.name.required")],
|
|
115
|
+
label: e(o)("menu.setting.catalog.fields.name.label")
|
|
117
116
|
}, null, 8, ["modelValue", "rules", "label"]), s(T)]),
|
|
118
117
|
_: 1
|
|
119
118
|
}, 8, ["title"])), s(E, {
|
|
120
|
-
label: e(
|
|
119
|
+
label: e(o)("menu.setting.tax.title")
|
|
121
120
|
}, {
|
|
122
121
|
default: c(() => [s(C, {
|
|
123
122
|
"model-value": l.value.taxSetting.mode,
|
|
124
|
-
"onUpdate:modelValue":
|
|
123
|
+
"onUpdate:modelValue": n[1] || (n[1] = (a) => {
|
|
125
124
|
a === e(x).AUTO ? U.value = e(_).autoTax() : U.value = e(_).manualTax(R.value);
|
|
126
125
|
})
|
|
127
126
|
}, {
|
|
128
127
|
default: c(() => [s(d, {
|
|
129
128
|
value: e(x).AUTO,
|
|
130
|
-
label: e(
|
|
131
|
-
sublabel: e(
|
|
129
|
+
label: e(o)("menu.setting.tax.modes.auto.label"),
|
|
130
|
+
sublabel: e(o)("menu.setting.tax.modes.auto.sublabel")
|
|
132
131
|
}, null, 8, ["value", "label", "sublabel"]), s(d, {
|
|
133
132
|
value: e(x).MANUAL,
|
|
134
|
-
label: e(
|
|
135
|
-
sublabel: e(
|
|
133
|
+
label: e(o)("menu.setting.tax.modes.manual.label"),
|
|
134
|
+
sublabel: e(o)("menu.setting.tax.modes.manual.sublabel")
|
|
136
135
|
}, null, 8, ["value", "label", "sublabel"])]),
|
|
137
136
|
_: 1
|
|
138
137
|
}, 8, ["model-value"]), l.value.taxSetting.mode === e(x).MANUAL ? (r(), V("div", Se, [(r(!0), V(D, null, B(R.value, (a) => (r(), g(ee, {
|
|
@@ -150,14 +149,14 @@ const Ce = {
|
|
|
150
149
|
_: 1
|
|
151
150
|
}, 8, ["label"]), !b.value && S.value ? (r(), g(E, {
|
|
152
151
|
key: 1,
|
|
153
|
-
label: e(
|
|
152
|
+
label: e(o)("menu.setting.link.title")
|
|
154
153
|
}, {
|
|
155
154
|
default: c(() => [s(L, {
|
|
156
155
|
"model-value": l.value.orderFrom && l.value.orderFrom !== e(f.F_ORDER_FROM).enum.NONE,
|
|
157
|
-
label: e(
|
|
156
|
+
label: e(o)("menu.setting.link.auto_link.label"),
|
|
158
157
|
"label-placement": "right",
|
|
159
|
-
sublabel: e(
|
|
160
|
-
"onUpdate:modelValue":
|
|
158
|
+
sublabel: e(o)("menu.setting.link.auto_link.sublabel"),
|
|
159
|
+
"onUpdate:modelValue": n[2] || (n[2] = (a) => l.value.orderFrom = a ? e(f.F_ORDER_FROM).enum.ALL : e(f.F_ORDER_FROM).enum.NONE)
|
|
161
160
|
}, null, 8, ["model-value", "label", "sublabel"]), l.value.orderFrom !== e(f.F_ORDER_FROM).enum.NONE ? (r(), g(te, {
|
|
162
161
|
key: 0,
|
|
163
162
|
class: "ml-[60px]",
|
|
@@ -169,24 +168,24 @@ const Ce = {
|
|
|
169
168
|
value: e(f.F_ORDER_FROM).enum.POS_ONLY
|
|
170
169
|
}],
|
|
171
170
|
"model-value": l.value.orderFrom,
|
|
172
|
-
"onUpdate:modelValue":
|
|
171
|
+
"onUpdate:modelValue": n[3] || (n[3] = (a) => l.value.orderFrom = a)
|
|
173
172
|
}, null, 8, ["items", "model-value"])) : k("", !0)]),
|
|
174
173
|
_: 1
|
|
175
174
|
}, 8, ["label"])) : k("", !0), !b.value && S.value ? (r(), g(E, {
|
|
176
175
|
key: 2,
|
|
177
|
-
label: e(
|
|
176
|
+
label: e(o)("menu.setting.markup.title")
|
|
178
177
|
}, {
|
|
179
178
|
default: c(() => [s(L, {
|
|
180
179
|
"model-value": !!l.value.markupOptions,
|
|
181
|
-
label: e(
|
|
180
|
+
label: e(o)("menu.setting.markup.auto_markup.label"),
|
|
182
181
|
"label-placement": "right",
|
|
183
|
-
sublabel: e(
|
|
184
|
-
"onUpdate:modelValue":
|
|
182
|
+
sublabel: e(o)("menu.setting.markup.auto_markup.sublabel"),
|
|
183
|
+
"onUpdate:modelValue": n[4] || (n[4] = (a) => l.value.markupOptions = a ? [] : null)
|
|
185
184
|
}, null, 8, ["model-value", "label", "sublabel"]), v("div", Me, [s(H, {
|
|
186
185
|
categories: e(u).categories,
|
|
187
186
|
items: e(u).items,
|
|
188
187
|
action: "add",
|
|
189
|
-
"onUpdate:modelValue":
|
|
188
|
+
"onUpdate:modelValue": n[5] || (n[5] = (a) => {
|
|
190
189
|
a && (l.value.markupOptions = [...l.value.markupOptions ?? [], a]);
|
|
191
190
|
})
|
|
192
191
|
}, {
|
|
@@ -224,11 +223,11 @@ const Ce = {
|
|
|
224
223
|
}, {
|
|
225
224
|
default: c(() => [re(" Markup percentage: " + N(a.percentage) + "% ", 1)]),
|
|
226
225
|
_: 2
|
|
227
|
-
}, 1024), v("p", Re, N(e(
|
|
226
|
+
}, 1024), v("p", Re, N(e(o)("menu.setting.markup.config", {
|
|
228
227
|
number: y + 1
|
|
229
|
-
})), 1), v("p", Ue, N(a.includeItems ? e(
|
|
228
|
+
})), 1), v("p", Ue, N(a.includeItems ? e(o)("menu.setting.markup.products.linked", {
|
|
230
229
|
count: a.includeItems.length
|
|
231
|
-
}) : e(
|
|
230
|
+
}) : e(o)("menu.setting.markup.products.all")), 1)]), s(h, {
|
|
232
231
|
variant: e($).Tertiary,
|
|
233
232
|
"prepend-icon": "delete",
|
|
234
233
|
onClick: (we) => Z(y)
|
|
@@ -240,13 +239,13 @@ const Ce = {
|
|
|
240
239
|
_: 1
|
|
241
240
|
}, 8, ["label"])) : k("", !0), s(ke, {
|
|
242
241
|
modelValue: l.value,
|
|
243
|
-
"onUpdate:modelValue":
|
|
242
|
+
"onUpdate:modelValue": n[6] || (n[6] = (a) => l.value = a),
|
|
244
243
|
"is-main-catalog": b.value,
|
|
245
244
|
"is-v4": S.value
|
|
246
245
|
}, null, 8, ["modelValue", "is-main-catalog", "is-v4"]), b.value ? (r(), g(T, {
|
|
247
246
|
key: 3
|
|
248
247
|
})) : k("", !0)]), v("div", he, [s(h, {
|
|
249
|
-
label: e(
|
|
248
|
+
label: e(o)("common.save"),
|
|
250
249
|
type: "submit"
|
|
251
250
|
}, null, 8, ["label"])])]),
|
|
252
251
|
_: 1
|
|
@@ -255,5 +254,5 @@ const Ce = {
|
|
|
255
254
|
}
|
|
256
255
|
});
|
|
257
256
|
export {
|
|
258
|
-
|
|
257
|
+
Pe as default
|
|
259
258
|
};
|