@feedmepos/mf-menu 0.31.31-beta.1 → 0.31.31-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-1TX8v7ZA.js → App-Cvgz2kQV.js} +22 -24
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Bq84uuiq.js} +22 -22
- package/dist/{Catalog-DWClc58s.js → Catalog-Ye-KpQ31.js} +74 -75
- package/dist/{Category-BqKFvFam.js → Category-BPChBqVR.js} +60 -60
- package/dist/{Category-IYMtMoT-.js → Category-CHcxix2b.js} +28 -28
- package/dist/{CookingGuide-BayJ6zj4.js → CookingGuide-DgygBSoB.js} +101 -103
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-ClV6LD2-.js} +1 -1
- package/dist/{Group-LqSX7ue6.js → Group-223G1Edd.js} +1 -1
- package/dist/{Group-RujTPTns.js → Group-B7EU1xmY.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-Dj9ZmkYe.js → Group.vue_vue_type_script_setup_true_lang-CAZuyOPy.js} +137 -138
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CdjRWC9z.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C4IrA3es.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BRQm-UTk.js} +5067 -5049
- package/dist/{Ingredient-_tc8llr1.js → Ingredient-Dl1Z5Qt2.js} +64 -65
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CxuQTH0k.js} +1061 -1063
- package/dist/{LinkProductSideSheet-C6rF-G1v.js → LinkProductSideSheet-Y-Z9_9Kp.js} +12 -14
- package/dist/{MenuSetting-xDHeeROY.js → MenuSetting-Be44fmVj.js} +26 -27
- package/dist/{PrintRoute-B_TFMn5e.js → PrintRoute-BURAEZ6X.js} +15 -17
- package/dist/{Product-DdEEqrtc.js → Product-DSlVHbgr.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-zcistmwh.js → Product.vue_vue_type_script_setup_true_lang-DtYarO0L.js} +256 -257
- package/dist/{ProductInternalTools-BcC7BF6W.js → ProductInternalTools-gW57aUAO.js} +45 -45
- package/dist/{Products-Cu0cJshV.js → Products-Czr-70M8.js} +72 -74
- package/dist/{Publish-Bm3Xiks1.js → Publish-XCowNW_z.js} +32 -34
- package/dist/{Recipe-DWK-luIZ.js → Recipe-6oNz21AB.js} +63 -65
- package/dist/{Scheduler-Cb1TeBhW.js → Scheduler-UYFuFk5E.js} +19 -19
- package/dist/{ServingSequence-evSIET_8.js → ServingSequence-w66ujU4D.js} +34 -34
- package/dist/{Setting-Cn3kwC9F.js → Setting-Dgn3lOx7.js} +53 -54
- package/dist/{Subcategory-q4m4qHsU.js → Subcategory-lnzuxCCH.js} +34 -34
- package/dist/{Takeaway-ClepHYGu.js → Takeaway-C5Up5Odr.js} +14 -14
- package/dist/{Takeaway-D-rdUZuh.js → Takeaway-DP1GJUPF.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-y9Yxstu2.js → Takeaway.vue_vue_type_script_setup_true_lang-B45keXn7.js} +40 -41
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BSeLfoOA.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-yEIxG4F2.js} +1108 -1109
- package/dist/{Unit-IM8Naj82.js → Unit-Bt8aRidX.js} +12 -12
- package/dist/{Variant-fzGvwaMo.js → Variant-DXoOAa9M.js} +16 -16
- package/dist/{_id_-BsKNG9Qv.js → _id_-D9tvinax.js} +22 -22
- package/dist/{app-BzQRUMTK.js → app-Cnlv4rmj.js} +3 -3
- package/dist/{app-CoVUUCa_.js → app-DiizQWjo.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +88 -16
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +44 -8
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +360 -184
- package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +80 -28
- package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +44 -8
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +216 -148
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +216 -148
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/category.d.ts +4 -4
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +218 -150
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +142 -82
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +108 -74
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +80 -28
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +44 -8
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +176 -32
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +324 -222
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +108 -74
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1374 -1040
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +216 -148
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +1374 -1040
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +108 -74
- package/dist/apps/mf-menu/src/helper/menu.d.ts +1523 -1155
- package/dist/apps/mf-menu/src/manager/menu/category.d.ts +4 -4
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +1374 -1040
- package/dist/apps/mf-menu/src/manager/menu/subcategory.d.ts +4 -4
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +324 -222
- package/dist/apps/mf-menu/src/stores/manager/recipe.d.ts +12 -12
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +142 -82
- package/dist/apps/mf-menu/src/stores/manager/sku.d.ts +60 -60
- package/dist/apps/mf-menu/src/stores/manager/takeaway.d.ts +6 -6
- package/dist/apps/mf-menu/src/stores/manager/unit.d.ts +12 -12
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1375 -1041
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +216 -148
- package/dist/apps/mf-menu/src/views/CookingGuide/CookingGuideDialog.vue.d.ts +4 -4
- package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +352 -132
- package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +84 -32
- package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +84 -32
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-D7AwcSC5.js +24 -0
- package/dist/assets/override-menu-Y9T4wxEn.js +24 -0
- package/dist/assets/validate-menu-DiAW2jY1.js +24 -0
- package/dist/{catalog-CaXceaA2.js → catalog-DUSCax4J.js} +1 -1
- package/dist/{catalogSetting-BGvckFdh.js → catalogSetting-18FJ5pkA.js} +1 -1
- package/dist/{category-u5eo_Vjd.js → category-B9XvlPFy.js} +3 -5
- package/dist/currency-Sno8fZYc.js +7 -0
- package/dist/{dayjs.min-Bsr3tJCn.js → dayjs.min-BsfKOrNo.js} +1 -1
- package/dist/{index-tRQb7RN_.js → index-BDpkSKDX.js} +1 -1
- package/dist/{index-Bbx4iZ6n.js → index-Eomwf2OO.js} +27 -27
- package/dist/{index-DSAG0yWh.js → index-ltyOwsRO.js} +20 -22
- package/dist/{item-BAqzKh4O.js → item-5Kkzf_eF.js} +1069 -1071
- package/dist/{jszip.min-BKJtvCjM.js → jszip.min-CRfpGjN8.js} +545 -545
- package/dist/menu-Btcr0nsk.js +108040 -0
- package/dist/{menu-CDrsBjmr.js → menu-DYs_VNfB.js} +9 -11
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-DfbHonGe.js → priceTier-DvUjWwCM.js} +4 -4
- package/dist/{scheduler-DTWaBudB.js → scheduler-C76blUlS.js} +11 -13
- package/dist/{subcategory-D-R5r1Tr.js → subcategory-C44qN5Vk.js} +133 -135
- package/dist/{toExcel-84VTtSA7.js → toExcel--vNjpF-b.js} +2 -2
- package/dist/{unit-B4zscxzo.js → unit-C4ghZU8x.js} +23 -24
- package/package.json +5 -5
- package/dist/assets/linked-status-eQqjvOq_.js +0 -24
- package/dist/assets/override-menu-C8NTBJgN.js +0 -24
- package/dist/assets/validate-menu-Dn-OO7Ed.js +0 -24
- package/dist/currency-BPHwez-E.js +0 -7
- package/dist/menu-CsIzrBEr.js +0 -74044
|
@@ -1,50 +1,49 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { d as
|
|
4
|
-
import {
|
|
5
|
-
import { _ as Be, h as fe, a as Ke, b as Qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js";
|
|
1
|
+
import { defineComponent as H, computed as f, resolveComponent as F, createBlock as U, openBlock as m, withCtx as C, createElementBlock as w, Fragment as T, renderList as ee, createElementVNode as p, normalizeClass as W, toDisplayString as M, createVNode as i, ref as S, renderSlot as Se, unref as u, createCommentVNode as I, watch as Ee, h as pe, mergeProps as Re, createSlots as Ie, withModifiers as Ue, isRef as de, nextTick as ve } from "vue";
|
|
2
|
+
import { I as Q, u as te, O as Te, D as $e, G as g, B as Ye, A as Le, J as ze } from "./menu-Btcr0nsk.js";
|
|
3
|
+
import { d as je } from "./vuedraggable-CK8z7qA8.js";
|
|
4
|
+
import { _ as Be, h as fe, a as Ke, b as Qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-ClV6LD2-.js";
|
|
6
5
|
import { useI18n as oe, useCoreStore as qe } from "@feedmepos/mf-common";
|
|
7
|
-
import { useBreakpoints as ye, components as _e, useSnackbar as
|
|
8
|
-
import { _ as Xe } from "./app-
|
|
6
|
+
import { useBreakpoints as ye, components as _e, useSnackbar as We, useDialog as He, FmButtonVariant as Je } from "@feedmepos/ui-library";
|
|
7
|
+
import { _ as Xe } from "./app-DiizQWjo.js";
|
|
9
8
|
import { _ as Ze, a as et } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
10
9
|
import { c as tt } from "./object-DVUNCr7w.js";
|
|
11
10
|
import { u as ot } from "./discardConfirm-BHni0LNu.js";
|
|
12
|
-
import { _ as nt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as nt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Bq84uuiq.js";
|
|
13
12
|
import { c as lt } from "./check-C9mY6LiX.js";
|
|
14
|
-
import { _ as
|
|
15
|
-
import { M as ge, x as
|
|
13
|
+
import { _ as at } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
14
|
+
import { M as ge, x as rt, y as ut, A as st, e as it, j as ct, r as mt } from "./item-5Kkzf_eF.js";
|
|
16
15
|
import { u as pt } from "./search-BAPEUu1R.js";
|
|
17
|
-
import { C as dt } from "./catalog-
|
|
18
|
-
import { c as vt } from "./subcategory-
|
|
19
|
-
const ft = /* @__PURE__ */
|
|
16
|
+
import { C as dt } from "./catalog-DUSCax4J.js";
|
|
17
|
+
import { c as vt } from "./subcategory-C44qN5Vk.js";
|
|
18
|
+
const ft = /* @__PURE__ */ H({
|
|
20
19
|
__name: "ResponsiveContextMenu",
|
|
21
20
|
props: {
|
|
22
21
|
items: {}
|
|
23
22
|
},
|
|
24
23
|
setup(L) {
|
|
25
|
-
const R = ye(),
|
|
24
|
+
const R = ye(), r = f(() => R.breakpoints.value.xs);
|
|
26
25
|
return (P, V) => {
|
|
27
26
|
const h = F("FmButton"), v = F("FmMenuItem"), y = F("FmMenu");
|
|
28
|
-
return
|
|
29
|
-
default:
|
|
30
|
-
(m(!0), w(T, null, ee(P.items, ({ icon: k, label: A, disabled:
|
|
27
|
+
return r.value ? (m(), U(Ze, { key: 0 }, {
|
|
28
|
+
default: C(() => [
|
|
29
|
+
(m(!0), w(T, null, ee(P.items, ({ icon: k, label: A, disabled: O, itemClass: x, onClick: _ }) => (m(), U(et, {
|
|
31
30
|
key: A,
|
|
32
31
|
icon: k,
|
|
33
32
|
label: A,
|
|
34
|
-
disabled:
|
|
33
|
+
disabled: O,
|
|
35
34
|
itemClass: x,
|
|
36
35
|
onClick: () => {
|
|
37
|
-
!
|
|
36
|
+
!O && (_ == null || _());
|
|
38
37
|
}
|
|
39
38
|
}, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
|
|
40
39
|
]),
|
|
41
40
|
_: 1
|
|
42
|
-
})) : (m(),
|
|
41
|
+
})) : (m(), U(y, {
|
|
43
42
|
key: 1,
|
|
44
43
|
"stop-click-propagation": "",
|
|
45
44
|
shift: !0
|
|
46
45
|
}, {
|
|
47
|
-
"menu-button":
|
|
46
|
+
"menu-button": C(() => [
|
|
48
47
|
i(h, {
|
|
49
48
|
type: "button",
|
|
50
49
|
variant: "tertiary",
|
|
@@ -53,18 +52,18 @@ const ft = /* @__PURE__ */ W({
|
|
|
53
52
|
size: "md"
|
|
54
53
|
})
|
|
55
54
|
]),
|
|
56
|
-
default:
|
|
57
|
-
(m(!0), w(T, null, ee(P.items, ({ icon: k, label: A, disabled:
|
|
55
|
+
default: C(() => [
|
|
56
|
+
(m(!0), w(T, null, ee(P.items, ({ icon: k, label: A, disabled: O, itemClass: x, onClick: _ }) => (m(), U(v, {
|
|
58
57
|
key: A,
|
|
59
|
-
disabled:
|
|
58
|
+
disabled: O,
|
|
60
59
|
onClick: () => {
|
|
61
|
-
!
|
|
60
|
+
!O && (_ == null || _());
|
|
62
61
|
},
|
|
63
62
|
label: A
|
|
64
63
|
}, {
|
|
65
|
-
label:
|
|
64
|
+
label: C(() => [
|
|
66
65
|
p("span", {
|
|
67
|
-
class:
|
|
66
|
+
class: W(O ? "text-fm-color-typo-disabled" : x)
|
|
68
67
|
}, M(A), 3)
|
|
69
68
|
]),
|
|
70
69
|
_: 2
|
|
@@ -74,7 +73,7 @@ const ft = /* @__PURE__ */ W({
|
|
|
74
73
|
}));
|
|
75
74
|
};
|
|
76
75
|
}
|
|
77
|
-
}), gt = { class: "fm-typo-en-title-md-600" }, yt = { class: "flex gap-8 items-center justify-start" }, _t = /* @__PURE__ */
|
|
76
|
+
}), gt = { class: "fm-typo-en-title-md-600" }, yt = { class: "flex gap-8 items-center justify-start" }, _t = /* @__PURE__ */ H({
|
|
78
77
|
__name: "ApplyProductDialog",
|
|
79
78
|
props: {
|
|
80
79
|
title: {},
|
|
@@ -84,14 +83,14 @@ const ft = /* @__PURE__ */ W({
|
|
|
84
83
|
},
|
|
85
84
|
emits: ["apply:product"],
|
|
86
85
|
setup(L, { emit: R }) {
|
|
87
|
-
const
|
|
86
|
+
const r = L, P = R, { t: V } = oe(), h = r.initialValue.map((x) => ({ _id: x })), v = S(Q.clone(h)), y = ot(
|
|
88
87
|
() => !Q.isEqual(v.value, h),
|
|
89
88
|
() => {
|
|
90
89
|
k.value = !1;
|
|
91
90
|
}
|
|
92
91
|
), k = S(!1), A = (x) => {
|
|
93
|
-
lt.isBoolean(x) ? k.value = x : k.value = !k.value, k.value && (v.value =
|
|
94
|
-
},
|
|
92
|
+
lt.isBoolean(x) ? k.value = x : k.value = !k.value, k.value && (v.value = r.initialValue.map((_) => ({ _id: _ })));
|
|
93
|
+
}, O = te();
|
|
95
94
|
return (x, _) => {
|
|
96
95
|
const b = F("fm-button"), ne = F("fm-side-sheet");
|
|
97
96
|
return m(), w(T, null, [
|
|
@@ -110,10 +109,10 @@ const ft = /* @__PURE__ */ W({
|
|
|
110
109
|
"max-width": 560,
|
|
111
110
|
"onOn:clickedAway": u(y)
|
|
112
111
|
}, {
|
|
113
|
-
"side-sheet-header":
|
|
112
|
+
"side-sheet-header": C(() => [
|
|
114
113
|
p("p", gt, M(x.title), 1)
|
|
115
114
|
]),
|
|
116
|
-
"side-sheet-footer":
|
|
115
|
+
"side-sheet-footer": C(() => [
|
|
117
116
|
p("div", yt, [
|
|
118
117
|
i(b, {
|
|
119
118
|
label: u(V)("common.save"),
|
|
@@ -129,11 +128,11 @@ const ft = /* @__PURE__ */ W({
|
|
|
129
128
|
})
|
|
130
129
|
])
|
|
131
130
|
]),
|
|
132
|
-
default:
|
|
131
|
+
default: C(() => [
|
|
133
132
|
i(nt, {
|
|
134
133
|
overrides: v.value,
|
|
135
134
|
"onUpdate:overrides": _[0] || (_[0] = (N) => v.value = N),
|
|
136
|
-
"categorized-items": u(
|
|
135
|
+
"categorized-items": u(O).categorizedItems,
|
|
137
136
|
editable: x.editable,
|
|
138
137
|
"select-variant": !1,
|
|
139
138
|
"show-variant": !1,
|
|
@@ -149,35 +148,35 @@ const ft = /* @__PURE__ */ W({
|
|
|
149
148
|
}), bt = {
|
|
150
149
|
key: 0,
|
|
151
150
|
class: "mt-4"
|
|
152
|
-
}, ht = { class: "text-fm-color-typo-secondary mb-2" }, kt = { class: "list-disc list-inside text-fm-color-typo-secondary ml-4 space-y-1" }, wt = /* @__PURE__ */
|
|
151
|
+
}, ht = { class: "text-fm-color-typo-secondary mb-2" }, kt = { class: "list-disc list-inside text-fm-color-typo-secondary ml-4 space-y-1" }, wt = /* @__PURE__ */ H({
|
|
153
152
|
__name: "DeleteGroupDialog",
|
|
154
153
|
props: {
|
|
155
154
|
group: {}
|
|
156
155
|
},
|
|
157
156
|
setup(L) {
|
|
158
|
-
const R = L, { t:
|
|
157
|
+
const R = L, { t: r } = oe(), P = te(), V = f(() => R.group.itemsLinked.map((h) => {
|
|
159
158
|
const v = P.state.menu.modules.item.find((y) => y._id === h);
|
|
160
159
|
return (v == null ? void 0 : v.name) || h;
|
|
161
160
|
}).filter(Boolean));
|
|
162
161
|
return (h, v) => (m(), w("div", null, [
|
|
163
|
-
p("div", null, M(u(
|
|
162
|
+
p("div", null, M(u(r)("menu.group.dialogs.delete.message", { name: h.group.name })), 1),
|
|
164
163
|
V.value.length > 0 ? (m(), w("div", bt, [
|
|
165
|
-
p("div", ht, M(u(
|
|
164
|
+
p("div", ht, M(u(r)("menu.group.dialogs.delete.unlink_warning", { count: V.value.length })), 1),
|
|
166
165
|
p("ul", kt, [
|
|
167
166
|
(m(!0), w(T, null, ee(V.value, (y) => (m(), w("li", {
|
|
168
167
|
key: y,
|
|
169
168
|
class: "text-sm"
|
|
170
169
|
}, M(y), 1))), 128))
|
|
171
170
|
])
|
|
172
|
-
])) :
|
|
171
|
+
])) : I("", !0)
|
|
173
172
|
]));
|
|
174
173
|
}
|
|
175
|
-
}),
|
|
174
|
+
}), Ot = {
|
|
176
175
|
key: 1,
|
|
177
176
|
class: "xs:pt-24"
|
|
178
|
-
},
|
|
177
|
+
}, Ct = {
|
|
179
178
|
key: 0,
|
|
180
|
-
class: /* @__PURE__ */
|
|
179
|
+
class: /* @__PURE__ */ W(["flex-1 overflow-hidden", "space-y-8", "flex flex-col", "overflow-hidden"])
|
|
181
180
|
}, At = {
|
|
182
181
|
class: "flex justify-between items-center space-x-8"
|
|
183
182
|
}, xt = {
|
|
@@ -202,14 +201,14 @@ const ft = /* @__PURE__ */ W({
|
|
|
202
201
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
203
202
|
}, Et = {
|
|
204
203
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
205
|
-
},
|
|
204
|
+
}, Zt = /* @__PURE__ */ H({
|
|
206
205
|
__name: "Group",
|
|
207
206
|
emits: ["update:count"],
|
|
208
207
|
setup(L, {
|
|
209
208
|
emit: R
|
|
210
209
|
}) {
|
|
211
|
-
const
|
|
212
|
-
searchKey:
|
|
210
|
+
const r = te(), P = qe(), V = We(), h = Te($e(V)), v = He(), y = f(() => r.rules.group), k = f(() => new ge(r, h.updateMenu, v)), A = f(() => k.value.mapGroups(r.groups, !1)), {
|
|
211
|
+
searchKey: O,
|
|
213
212
|
filter: x
|
|
214
213
|
} = pt(), _ = S(!1), b = S(null), N = S({
|
|
215
214
|
logic: "AND",
|
|
@@ -232,7 +231,7 @@ const ft = /* @__PURE__ */ W({
|
|
|
232
231
|
};
|
|
233
232
|
});
|
|
234
233
|
}), z = f(() => {
|
|
235
|
-
const t = (l) => x([l.name, ...Object.values(l.items).flatMap((n) => `${n.code} ${n.name} ${
|
|
234
|
+
const t = (l) => x([l.name, ...Object.values(l.items).flatMap((n) => `${n.code} ${n.name} ${Le.Dinero.fromFdoDinero(n.price).toFormat()}`), l.type]), e = (l) => !l.customAttributes && !N.value.rules.length ? !0 : Ke(l.customAttributes ?? {}, N.value);
|
|
236
235
|
return A.value.filter((l) => t(l) && e(l)).filter((l) => !b.value || l.type === b.value);
|
|
237
236
|
}), he = R;
|
|
238
237
|
Ee(() => z.value.length, () => {
|
|
@@ -240,10 +239,10 @@ const ft = /* @__PURE__ */ W({
|
|
|
240
239
|
}, {
|
|
241
240
|
immediate: !0
|
|
242
241
|
});
|
|
243
|
-
const c = f(() => !!
|
|
244
|
-
function
|
|
242
|
+
const c = f(() => !!r.state.currentCatalogId || !!r.state.currentSchedulerId);
|
|
243
|
+
function ae(t) {
|
|
245
244
|
var Y;
|
|
246
|
-
const e = !
|
|
245
|
+
const e = !r.state.currentCatalogId, l = !r.state.currentSchedulerId, n = (Y = r.currentCatalog) == null ? void 0 : Y.usePriceTiers, s = r.rules.item.bindToVariant, D = r.rules.group.type, d = r.version === g.F_MENU_VERSION.enum.v3, G = r.rules.item.orderFromActiveOnly;
|
|
247
246
|
return {
|
|
248
247
|
link: (o) => !c.value && (!o || s),
|
|
249
248
|
name: (o) => !c.value && !o,
|
|
@@ -263,7 +262,7 @@ const ft = /* @__PURE__ */ W({
|
|
|
263
262
|
};
|
|
264
263
|
}
|
|
265
264
|
const ke = f(() => {
|
|
266
|
-
const t = !
|
|
265
|
+
const t = !r.state.currentSchedulerId, e = r.rules.group.type, l = r.version === g.F_MENU_VERSION.enum.v3, n = r.rules.item.orderFromActiveOnly, s = r.rules.item.bindToVariant;
|
|
267
266
|
return function(d) {
|
|
268
267
|
return {
|
|
269
268
|
link: (G) => !c.value && (!G || s),
|
|
@@ -272,7 +271,7 @@ const ft = /* @__PURE__ */ W({
|
|
|
272
271
|
type: e && !d._id && !c.value,
|
|
273
272
|
price: d.type !== g.F_ADDON_GROUP_TYPE.enum.DYNAMIC,
|
|
274
273
|
priceEdit: !0,
|
|
275
|
-
priceTier:
|
|
274
|
+
priceTier: r.isV4,
|
|
276
275
|
inventory: t ? l ? !c.value && d.type === g.F_ADDON_GROUP_TYPE.enum.NORMAL : !c.value : !1,
|
|
277
276
|
orderFrom: (G) => t ? l ? d.type === g.F_ADDON_GROUP_TYPE.enum.DYNAMIC ? c.value : !!c.value == !G : c.value : !1,
|
|
278
277
|
orderFromActiveOnly: n,
|
|
@@ -285,41 +284,41 @@ const ft = /* @__PURE__ */ W({
|
|
|
285
284
|
};
|
|
286
285
|
}), we = f(() => ({
|
|
287
286
|
...Ye.generator.initMenuV4Group(),
|
|
288
|
-
type:
|
|
287
|
+
type: r.version === g.F_MENU_VERSION.enum.v4 ? g.F_ADDON_GROUP_TYPE.enum.PRODUCT : g.F_ADDON_GROUP_TYPE.enum.NORMAL,
|
|
289
288
|
items: {},
|
|
290
|
-
position:
|
|
289
|
+
position: r.groups.length - 1,
|
|
291
290
|
itemsLinked: []
|
|
292
291
|
})), J = f(() => ke.value(we.value).type);
|
|
293
|
-
function
|
|
292
|
+
function re(t) {
|
|
294
293
|
k.value.sortGroups(t);
|
|
295
294
|
}
|
|
296
|
-
function
|
|
295
|
+
function Oe(t) {
|
|
297
296
|
v.open({
|
|
298
|
-
title:
|
|
299
|
-
message:
|
|
297
|
+
title: a("menu.group.actions.duplicate.title"),
|
|
298
|
+
message: a("menu.group.actions.duplicate.message", {
|
|
300
299
|
name: t.name
|
|
301
300
|
}),
|
|
302
301
|
primaryActions: {
|
|
303
|
-
text:
|
|
302
|
+
text: a("menu.common.actions.yes"),
|
|
304
303
|
close: !0
|
|
305
304
|
},
|
|
306
305
|
secondaryActions: {
|
|
307
|
-
text:
|
|
306
|
+
text: a("menu.common.actions.cancel"),
|
|
308
307
|
close: !0
|
|
309
308
|
}
|
|
310
309
|
}).onPrimary(() => k.value.duplicateGroup(t));
|
|
311
310
|
}
|
|
312
|
-
const X = f(() =>
|
|
311
|
+
const X = f(() => r.currentCatalog), j = f(() => r.currentScheduler), B = f(() => new dt(X.value, r, h.updateMenu, v)), Z = f(() => new rt(j.value, r, h.updateMenu, v)), Ce = (t) => {
|
|
313
312
|
let e = t;
|
|
314
313
|
function l(n) {
|
|
315
|
-
const D =
|
|
314
|
+
const D = r.state.menu.modules.group.find((o) => o._id === n._id), d = (n.items ?? []).reduce((o, E) => (o[E._id] = [...o[E._id] || [], E.combinationKey || ""], o), {}), Y = (D.items ?? []).filter((o) => {
|
|
316
315
|
var E;
|
|
317
316
|
return !((E = d[o._id]) != null && E.includes(o.combinationKey || ""));
|
|
318
317
|
}).map((o) => ({
|
|
319
318
|
_id: o._id,
|
|
320
319
|
combinationKey: o.combinationKey,
|
|
321
320
|
selection: o.selection
|
|
322
|
-
})).filter((o) => !!
|
|
321
|
+
})).filter((o) => !!r.mergedMenu.modules.item.find((E) => E._id === o._id));
|
|
323
322
|
return {
|
|
324
323
|
...D,
|
|
325
324
|
...Object.fromEntries(Object.entries(n).filter(([, o]) => !!o)),
|
|
@@ -330,28 +329,28 @@ const ft = /* @__PURE__ */ W({
|
|
|
330
329
|
let n;
|
|
331
330
|
X.value ? j.value ? n = B.value.getCatalogSchedulerGroup(t._id, j.value._id) : n = B.value.getCatalogGroup(t._id) : n = Z.value.getSchedulerGroup(t._id);
|
|
332
331
|
const s = l(n);
|
|
333
|
-
e = new ge(
|
|
332
|
+
e = new ge(r, h.updateMenu, v).mapGroups([s], !0)[0];
|
|
334
333
|
}
|
|
335
334
|
return {
|
|
336
335
|
group: e,
|
|
337
|
-
config:
|
|
338
|
-
categorizedItems:
|
|
336
|
+
config: ae,
|
|
337
|
+
categorizedItems: r.categorizedItems
|
|
339
338
|
};
|
|
340
339
|
};
|
|
341
340
|
function Ae(t) {
|
|
342
341
|
v.open({
|
|
343
|
-
title:
|
|
342
|
+
title: a("menu.group.dialogs.delete.title"),
|
|
344
343
|
contentComponent: wt,
|
|
345
344
|
contentComponentProps: {
|
|
346
345
|
group: t
|
|
347
346
|
},
|
|
348
347
|
primaryActions: {
|
|
349
|
-
text:
|
|
348
|
+
text: a("menu.common.actions.delete"),
|
|
350
349
|
close: !0,
|
|
351
350
|
variant: Je.Destructive
|
|
352
351
|
},
|
|
353
352
|
secondaryActions: {
|
|
354
|
-
text:
|
|
353
|
+
text: a("menu.common.actions.cancel"),
|
|
355
354
|
close: !0
|
|
356
355
|
}
|
|
357
356
|
}).onPrimary(async () => {
|
|
@@ -367,11 +366,11 @@ const ft = /* @__PURE__ */ W({
|
|
|
367
366
|
"onApply:product": async (l) => {
|
|
368
367
|
var n;
|
|
369
368
|
for (const s of l)
|
|
370
|
-
if (vt(
|
|
371
|
-
const D = (n =
|
|
369
|
+
if (vt(r.state.menu, t._id, s._id)) {
|
|
370
|
+
const D = (n = r.state.menu.modules.item.find((d) => d._id === s._id)) == null ? void 0 : n.name;
|
|
372
371
|
V.open({
|
|
373
372
|
type: "error",
|
|
374
|
-
message:
|
|
373
|
+
message: a("menu.product.form.group.circularError", {
|
|
375
374
|
groupName: t.name,
|
|
376
375
|
productName: D
|
|
377
376
|
})
|
|
@@ -390,18 +389,18 @@ const ft = /* @__PURE__ */ W({
|
|
|
390
389
|
trigger: n
|
|
391
390
|
}) => {
|
|
392
391
|
const s = [{
|
|
393
|
-
label:
|
|
392
|
+
label: a("menu.common.actions.edit"),
|
|
394
393
|
onClick: () => ce(e)
|
|
395
394
|
}, {
|
|
396
|
-
label:
|
|
395
|
+
label: a("menu.group.actions.apply_product"),
|
|
397
396
|
disable: !y.value.applyProduct,
|
|
398
397
|
onClick: n
|
|
399
398
|
}, {
|
|
400
|
-
label:
|
|
399
|
+
label: a("menu.group.actions.duplicate_action"),
|
|
401
400
|
disabled: !y.value.create,
|
|
402
|
-
onClick: () =>
|
|
401
|
+
onClick: () => Oe(e)
|
|
403
402
|
}, {
|
|
404
|
-
label:
|
|
403
|
+
label: a("menu.common.actions.delete"),
|
|
405
404
|
itemClass: "text-fm-color-typo-error",
|
|
406
405
|
disabled: !y.value.delete,
|
|
407
406
|
onClick: () => Ae(e)
|
|
@@ -413,34 +412,34 @@ const ft = /* @__PURE__ */ W({
|
|
|
413
412
|
});
|
|
414
413
|
}, xe = f(() => [{
|
|
415
414
|
accessorKey: "name",
|
|
416
|
-
header: () =>
|
|
415
|
+
header: () => a("menu.group.list.columns.name"),
|
|
417
416
|
enableSorting: !1
|
|
418
417
|
}, {
|
|
419
418
|
accessorKey: "items",
|
|
420
|
-
header: () =>
|
|
419
|
+
header: () => a("menu.group.list.columns.products"),
|
|
421
420
|
enableSorting: !1,
|
|
422
421
|
cell: (t) => {
|
|
423
422
|
const e = t.getValue(), l = Object.values(e).map((n) => {
|
|
424
423
|
var D;
|
|
425
424
|
const s = [(n == null ? void 0 : n.code) || "", n.name ?? n.fallbackName].join(" ").trim();
|
|
426
|
-
return (n.items || []).length > 1 ? `${s} (${
|
|
425
|
+
return (n.items || []).length > 1 ? `${s} (${a("menu.group.list.variants", {
|
|
427
426
|
count: (D = n.items) == null ? void 0 : D.length
|
|
428
427
|
})})` : s;
|
|
429
428
|
});
|
|
430
|
-
return l.length > 5 ? `${l.slice(0, 5).join(", ")} ${
|
|
429
|
+
return l.length > 5 ? `${l.slice(0, 5).join(", ")} ${a("menu.group.list.more_items", {
|
|
431
430
|
count: l.length - 5
|
|
432
431
|
})}` : l.join(", ");
|
|
433
432
|
}
|
|
434
433
|
}, {
|
|
435
434
|
accessorKey: "type",
|
|
436
|
-
header: () =>
|
|
435
|
+
header: () => a("menu.group.list.columns.type"),
|
|
437
436
|
enableSorting: !1,
|
|
438
437
|
cell: (t) => {
|
|
439
438
|
const e = t.row.original;
|
|
440
439
|
return {
|
|
441
|
-
[g.F_ADDON_GROUP_TYPE.enum.NORMAL]:
|
|
442
|
-
[g.F_ADDON_GROUP_TYPE.enum.PRODUCT]:
|
|
443
|
-
[g.F_ADDON_GROUP_TYPE.enum.DYNAMIC]:
|
|
440
|
+
[g.F_ADDON_GROUP_TYPE.enum.NORMAL]: a("menu.group.list.types.normal"),
|
|
441
|
+
[g.F_ADDON_GROUP_TYPE.enum.PRODUCT]: a("menu.group.list.types.product"),
|
|
442
|
+
[g.F_ADDON_GROUP_TYPE.enum.DYNAMIC]: a("menu.group.list.types.dynamic")
|
|
444
443
|
}[e.type] || "-";
|
|
445
444
|
},
|
|
446
445
|
meta: {
|
|
@@ -449,7 +448,7 @@ const ft = /* @__PURE__ */ W({
|
|
|
449
448
|
}, {
|
|
450
449
|
id: "tagging",
|
|
451
450
|
accessorKey: "tagging",
|
|
452
|
-
header: () =>
|
|
451
|
+
header: () => a("menu.product.table.columns.tagging"),
|
|
453
452
|
enableSorting: !1,
|
|
454
453
|
size: 140,
|
|
455
454
|
cell: (t) => {
|
|
@@ -462,10 +461,10 @@ const ft = /* @__PURE__ */ W({
|
|
|
462
461
|
}
|
|
463
462
|
}, {
|
|
464
463
|
accessorKey: "itemsLinked",
|
|
465
|
-
header: () =>
|
|
464
|
+
header: () => a("menu.group.list.columns.applied_products"),
|
|
466
465
|
enableSorting: !1,
|
|
467
466
|
cell: (t) => {
|
|
468
|
-
const e = t.getValue(), l =
|
|
467
|
+
const e = t.getValue(), l = a("menu.group.list.items_linked", {
|
|
469
468
|
count: e.length
|
|
470
469
|
});
|
|
471
470
|
return ue(t.row.original, ({
|
|
@@ -498,13 +497,13 @@ const ft = /* @__PURE__ */ W({
|
|
|
498
497
|
tagging: ((t = P.groupAttributeSettings) == null ? void 0 : t.value.length) > 0
|
|
499
498
|
};
|
|
500
499
|
}), Fe = async (t) => {
|
|
501
|
-
const e = ct(t), l = e.group, n = mt(l,
|
|
500
|
+
const e = ct(t), l = e.group, n = mt(l, ae(t));
|
|
502
501
|
if (c.value)
|
|
503
502
|
X.value ? (j.value ? B.value.overrideCatalogSchedulerGroups([n], j.value._id) : B.value.overrideCatalogGroups([n]), await B.value.update()) : (Z.value.overrideSchedulerGroups([n]), await Z.value.update());
|
|
504
503
|
else {
|
|
505
504
|
const s = {
|
|
506
505
|
module: g.F_MENU_MODULE_V4_KEY.enum.group,
|
|
507
|
-
operation:
|
|
506
|
+
operation: ze.F_OPERATION_TYPE.update,
|
|
508
507
|
data: n,
|
|
509
508
|
link: [{
|
|
510
509
|
module: g.F_MENU_MODULE_V4_KEY.enum.item,
|
|
@@ -522,7 +521,7 @@ const ft = /* @__PURE__ */ W({
|
|
|
522
521
|
ce(t.original);
|
|
523
522
|
}
|
|
524
523
|
const Ge = ye(), Pe = f(() => Ge.breakpoints.value.xs), {
|
|
525
|
-
t:
|
|
524
|
+
t: a
|
|
526
525
|
} = oe(), Ve = f(() => {
|
|
527
526
|
var t;
|
|
528
527
|
return ((t = P.groupAttributeSettings) == null ? void 0 : t.value.length) > 0;
|
|
@@ -545,30 +544,30 @@ const ft = /* @__PURE__ */ W({
|
|
|
545
544
|
}) : null;
|
|
546
545
|
return (t, e) => {
|
|
547
546
|
const l = F("fm-button"), n = F("fm-chip"), s = F("fm-menu-item"), D = F("fm-menu"), d = F("fm-search"), G = F("fm-table"), Y = F("fm-bottom-sheet");
|
|
548
|
-
return m(), w(T, null, [$.value ? (m(),
|
|
547
|
+
return m(), w(T, null, [$.value ? (m(), U(ut, Re({
|
|
549
548
|
ref_key: "groupManagerFormRef",
|
|
550
549
|
ref: ie,
|
|
551
550
|
key: $.value._id
|
|
552
|
-
},
|
|
551
|
+
}, Ce($.value), {
|
|
553
552
|
action: "update",
|
|
554
|
-
title: u(
|
|
553
|
+
title: u(a)("menu.group.dialogs.update.title"),
|
|
555
554
|
group: $.value,
|
|
556
555
|
"onUpdate:group": e[0] || (e[0] = (o) => $.value = o),
|
|
557
556
|
"onSubmit:group": e[1] || (e[1] = (o) => Fe(o))
|
|
558
|
-
}), null, 16, ["title", "group"])) :
|
|
559
|
-
subtitle: u(
|
|
560
|
-
title: u(
|
|
561
|
-
},
|
|
557
|
+
}), null, 16, ["title", "group"])) : I("", !0), A.value.length === 0 ? (m(), w("div", Ot, [i(at, {
|
|
558
|
+
subtitle: u(a)("menu.group.empty.subtitle"),
|
|
559
|
+
title: u(a)("menu.group.empty.title")
|
|
560
|
+
}, Ie({
|
|
562
561
|
_: 2
|
|
563
562
|
}, [y.value.create ? {
|
|
564
563
|
name: "action",
|
|
565
|
-
fn:
|
|
566
|
-
default:
|
|
564
|
+
fn: C(() => [i(u(st), null, {
|
|
565
|
+
default: C(({
|
|
567
566
|
trigger: o
|
|
568
567
|
}) => [i(l, {
|
|
569
568
|
"prepend-icon": "add",
|
|
570
|
-
label: u(
|
|
571
|
-
onClick:
|
|
569
|
+
label: u(a)("menu.group.actions.add"),
|
|
570
|
+
onClick: Ue(o, ["stop"])
|
|
572
571
|
}, null, 8, ["label", "onClick"])]),
|
|
573
572
|
_: 1
|
|
574
573
|
})]),
|
|
@@ -579,103 +578,103 @@ const ft = /* @__PURE__ */ W({
|
|
|
579
578
|
key: 1
|
|
580
579
|
}, [p("div", Ft, [i(d, {
|
|
581
580
|
autofocus: "",
|
|
582
|
-
modelValue: u(
|
|
583
|
-
"onUpdate:modelValue": e[9] || (e[9] = (o) => de(
|
|
584
|
-
placeholder: u(
|
|
581
|
+
modelValue: u(O),
|
|
582
|
+
"onUpdate:modelValue": e[9] || (e[9] = (o) => de(O) ? O.value = o : null),
|
|
583
|
+
placeholder: u(a)("menu.group.search.placeholder")
|
|
585
584
|
}, null, 8, ["modelValue", "placeholder"])]), e[17] || (e[17] = p("div", {
|
|
586
585
|
class: "bg-fm-color-neutral-gray-100 w-full h-px rounded-md"
|
|
587
|
-
}, null, -1)), p("div", Mt, [i(me), J.value ? (m(),
|
|
586
|
+
}, null, -1)), p("div", Mt, [i(me), J.value ? (m(), U(Y, {
|
|
588
587
|
key: 0,
|
|
589
588
|
modelValue: _.value,
|
|
590
589
|
"onUpdate:modelValue": e[14] || (e[14] = (o) => _.value = o)
|
|
591
590
|
}, {
|
|
592
|
-
"bottom-sheet-button":
|
|
593
|
-
label: u(
|
|
594
|
-
type: b.value ? u(Q.capitalize)(b.value) : u(
|
|
591
|
+
"bottom-sheet-button": C(() => [i(n, {
|
|
592
|
+
label: u(a)("menu.group.type.title", {
|
|
593
|
+
type: b.value ? u(Q.capitalize)(b.value) : u(a)("menu.common.labels.all")
|
|
595
594
|
}),
|
|
596
595
|
class: "text-fm-color-typo-secondary",
|
|
597
596
|
"right-icon": "keyboard_arrow_down"
|
|
598
597
|
}, null, 8, ["label"])]),
|
|
599
|
-
default:
|
|
598
|
+
default: C(() => [p("div", null, [p("div", {
|
|
600
599
|
class: "px-16 py-8",
|
|
601
600
|
onClick: e[10] || (e[10] = (o) => b.value = null)
|
|
602
|
-
}, M(u(
|
|
601
|
+
}, M(u(a)("menu.group.type.all")), 1), p("div", {
|
|
603
602
|
class: "px-16 py-8",
|
|
604
603
|
onClick: e[11] || (e[11] = (o) => b.value = "NORMAL")
|
|
605
|
-
}, M(u(
|
|
604
|
+
}, M(u(a)("menu.group.type.normal")), 1), p("div", {
|
|
606
605
|
class: "px-16 py-8",
|
|
607
606
|
onClick: e[12] || (e[12] = (o) => b.value = "PRODUCT")
|
|
608
|
-
}, M(u(
|
|
607
|
+
}, M(u(a)("menu.group.type.product")), 1), p("div", {
|
|
609
608
|
class: "px-16 py-8",
|
|
610
609
|
onClick: e[13] || (e[13] = (o) => b.value = "DYNAMIC")
|
|
611
|
-
}, M(u(
|
|
610
|
+
}, M(u(a)("menu.group.type.dynamic")), 1)])]),
|
|
612
611
|
_: 1
|
|
613
|
-
}, 8, ["modelValue"])) :
|
|
612
|
+
}, 8, ["modelValue"])) : I("", !0)]), K.value ? (m(), w("div", Gt, [i(u(fe), {
|
|
614
613
|
ref_key: "attributeFilterRef",
|
|
615
614
|
ref: q,
|
|
616
615
|
attributes: le.value,
|
|
617
616
|
modelValue: N.value,
|
|
618
617
|
"onUpdate:modelValue": e[15] || (e[15] = (o) => N.value = o)
|
|
619
|
-
}, null, 8, ["attributes", "modelValue"])])) :
|
|
620
|
-
class:
|
|
618
|
+
}, null, 8, ["attributes", "modelValue"])])) : I("", !0), i(u(je), {
|
|
619
|
+
class: W(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"]),
|
|
621
620
|
"model-value": z.value,
|
|
622
621
|
group: "categories",
|
|
623
622
|
handle: ".handle",
|
|
624
623
|
"item-key": "_id",
|
|
625
|
-
"onUpdate:modelValue": e[16] || (e[16] = (o) =>
|
|
624
|
+
"onUpdate:modelValue": e[16] || (e[16] = (o) => re(o))
|
|
626
625
|
}, {
|
|
627
|
-
item:
|
|
626
|
+
item: C(({
|
|
628
627
|
element: o
|
|
629
628
|
}) => [(m(), w("div", {
|
|
630
629
|
key: o._id,
|
|
631
|
-
class:
|
|
632
|
-
}, [p("div", Pt, [p("div", Vt, [p("p", Nt, M(o.name), 1), p("div", null, [J.value ? (m(), w("p", St, M(u(Q.capitalize)(o.type)) + " type ", 1)) :
|
|
630
|
+
class: W(["py-12 px-16", "flex space-x-16", "items-center"])
|
|
631
|
+
}, [p("div", Pt, [p("div", Vt, [p("p", Nt, M(o.name), 1), p("div", null, [J.value ? (m(), w("p", St, M(u(Q.capitalize)(o.type)) + " type ", 1)) : I("", !0), p("p", Et, M(u(a)("menu.group.list.products_linked", {
|
|
633
632
|
count: o.itemsLinked.length
|
|
634
633
|
})), 1)])]), i(se, {
|
|
635
634
|
group: o
|
|
636
635
|
}, null, 8, ["group"])])]))]),
|
|
637
636
|
_: 1
|
|
638
|
-
}, 8, ["model-value"])], 64)) : (m(), w("div",
|
|
637
|
+
}, 8, ["model-value"])], 64)) : (m(), w("div", Ct, [p("div", At, [i(me), J.value ? (m(), U(D, {
|
|
639
638
|
key: 0
|
|
640
639
|
}, {
|
|
641
|
-
"menu-button":
|
|
642
|
-
label: u(
|
|
643
|
-
type: b.value ? u(Q.capitalize)(b.value) : u(
|
|
640
|
+
"menu-button": C(() => [i(n, {
|
|
641
|
+
label: u(a)("menu.group.type.title", {
|
|
642
|
+
type: b.value ? u(Q.capitalize)(b.value) : u(a)("menu.common.labels.all")
|
|
644
643
|
}),
|
|
645
644
|
class: "text-fm-color-typo-secondary",
|
|
646
645
|
"right-icon": "keyboard_arrow_down"
|
|
647
646
|
}, null, 8, ["label"])]),
|
|
648
|
-
default:
|
|
647
|
+
default: C(() => [p("div", null, [i(s, {
|
|
649
648
|
class: "px-16 py-8",
|
|
650
|
-
label: u(
|
|
649
|
+
label: u(a)("menu.group.type.all"),
|
|
651
650
|
onClick: e[2] || (e[2] = (o) => b.value = null)
|
|
652
651
|
}, null, 8, ["label"]), i(s, {
|
|
653
652
|
class: "px-16 py-8",
|
|
654
|
-
label: u(
|
|
653
|
+
label: u(a)("menu.group.type.normal"),
|
|
655
654
|
onClick: e[3] || (e[3] = (o) => b.value = "NORMAL")
|
|
656
655
|
}, null, 8, ["label"]), i(s, {
|
|
657
656
|
class: "px-16 py-8",
|
|
658
|
-
label: u(
|
|
657
|
+
label: u(a)("menu.group.type.product"),
|
|
659
658
|
onClick: e[4] || (e[4] = (o) => b.value = "PRODUCT")
|
|
660
659
|
}, null, 8, ["label"]), i(s, {
|
|
661
660
|
class: "px-16 py-8",
|
|
662
|
-
label: u(
|
|
661
|
+
label: u(a)("menu.group.type.dynamic"),
|
|
663
662
|
onClick: e[5] || (e[5] = (o) => b.value = "DYNAMIC")
|
|
664
663
|
}, null, 8, ["label"])])]),
|
|
665
664
|
_: 1
|
|
666
|
-
})) :
|
|
665
|
+
})) : I("", !0), p("div", xt, [i(d, {
|
|
667
666
|
autofocus: "",
|
|
668
|
-
modelValue: u(
|
|
669
|
-
"onUpdate:modelValue": e[6] || (e[6] = (o) => de(
|
|
670
|
-
placeholder: u(
|
|
667
|
+
modelValue: u(O),
|
|
668
|
+
"onUpdate:modelValue": e[6] || (e[6] = (o) => de(O) ? O.value = o : null),
|
|
669
|
+
placeholder: u(a)("menu.group.search.placeholder")
|
|
671
670
|
}, null, 8, ["modelValue", "placeholder"])])]), K.value ? (m(), w("div", Dt, [i(u(fe), {
|
|
672
671
|
ref_key: "attributeFilterRef",
|
|
673
672
|
ref: q,
|
|
674
673
|
attributes: le.value,
|
|
675
674
|
modelValue: N.value,
|
|
676
675
|
"onUpdate:modelValue": e[7] || (e[7] = (o) => N.value = o)
|
|
677
|
-
}, null, 8, ["attributes", "modelValue"])])) :
|
|
678
|
-
default:
|
|
676
|
+
}, null, 8, ["attributes", "modelValue"])])) : I("", !0), i(Xe, null, {
|
|
677
|
+
default: C(() => [i(G, {
|
|
679
678
|
"column-defs": xe.value,
|
|
680
679
|
"column-visibility": De.value,
|
|
681
680
|
loading: u(h).checkMenuIsLoading(),
|
|
@@ -687,7 +686,7 @@ const ft = /* @__PURE__ */ W({
|
|
|
687
686
|
"hide-footer": "",
|
|
688
687
|
"pin-header-row": "",
|
|
689
688
|
onRowClick: Me,
|
|
690
|
-
onDndChanged: e[8] || (e[8] = (o) =>
|
|
689
|
+
onDndChanged: e[8] || (e[8] = (o) => re(o))
|
|
691
690
|
}, null, 8, ["column-defs", "column-visibility", "loading", "page-size", "row-data"])]),
|
|
692
691
|
_: 1
|
|
693
692
|
})]))], 64))], 64);
|
|
@@ -695,5 +694,5 @@ const ft = /* @__PURE__ */ W({
|
|
|
695
694
|
}
|
|
696
695
|
});
|
|
697
696
|
export {
|
|
698
|
-
|
|
697
|
+
Zt as _
|
|
699
698
|
};
|