@feedmepos/mf-menu 0.32.41-dev.2 → 0.32.41
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-mCGGnjeS.js → App-Bt5lFavE.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-MWoYiClD.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DpyJ5gr2.js} +3 -3
- package/dist/{Catalog-CM2wnQ4l.js → Catalog-DJyGxDRP.js} +44 -44
- package/dist/{Category-Bp9tGWwJ.js → Category-BlIUSUxn.js} +24 -24
- package/dist/{Category-bsL9IQ5n.js → Category-CNTOOIJE.js} +24 -24
- package/dist/{CookingGuide-Cy0Kt6Ys.js → CookingGuide-CpZfKE5H.js} +105 -105
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CX4s7NYy.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-QzZR2W1U.js} +1 -1
- package/dist/{Group-0hMArGNs.js → Group-B88fbCOf.js} +1 -1
- package/dist/{Group-BKFZMvZg.js → Group-Bhnov3p8.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-st4plK2R.js → Group.vue_vue_type_script_setup_true_lang-CRAX3mIt.js} +18 -18
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-8zW2KIMn.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bqh6a0oO.js} +30 -30
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-UhuYuL-A.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DPAxkce6.js} +4109 -4110
- package/dist/{Ingredient-CvE0xujL.js → Ingredient-BORYH8yl.js} +20 -20
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-iEhZ4_5G.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Ci-CaBED.js} +2 -2
- package/dist/{LinkProductSideSheet-CbppLDSB.js → LinkProductSideSheet-DQN59t0a.js} +45 -45
- package/dist/{MenuSetting-CQ9HnQKx.js → MenuSetting-cI0j1omE.js} +47 -47
- package/dist/{PrintRoute-Cc81zV6Q.js → PrintRoute-CXSuomGR.js} +39 -39
- package/dist/{Product-kFoTn7zI.js → Product-DgbQeeKt.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BVF9SBEL.js → Product.vue_vue_type_script_setup_true_lang-D0cnQC3i.js} +128 -128
- package/dist/{ProductInternalTools-CwxPRqTy.js → ProductInternalTools-B1zpNBze.js} +66 -66
- package/dist/Products-JodXj4IG.js +291 -0
- package/dist/{Publish-BE-PPNO8.js → Publish-Cqdk3SjG.js} +29 -29
- package/dist/{Recipe-Ddts2It2.js → Recipe-anT6QBZT.js} +24 -24
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js → RuleView.vue_vue_type_script_setup_true_lang-Cc_k57qi.js} +369 -369
- package/dist/{Scheduler-CqP0Ha2K.js → Scheduler-Z64VCw-y.js} +11 -11
- package/dist/{ServingSequence-WpneAUiB.js → ServingSequence-B7ZbvY1v.js} +44 -44
- package/dist/{Setting-CNGZaUUT.js → Setting-DnVCq2hY.js} +17 -17
- package/dist/{Subcategory-BVN0OH_q.js → Subcategory-dpz-Um56.js} +51 -51
- package/dist/{Takeaway-LFslRotB.js → Takeaway-DiyOBq1g.js} +13 -13
- package/dist/{Takeaway-BtnGTcvW.js → Takeaway-mwLXbT9q.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CJZfd5JB.js → Takeaway.vue_vue_type_script_setup_true_lang-tg3AJE3_.js} +28 -28
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CI8eK98T.js → Thumbnail.vue_vue_type_script_setup_true_lang-FRH0zCh6.js} +27 -27
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CfA400oN.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-nGzNSAX9.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-SNBrW4Or.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BzwlZ9jW.js} +13 -13
- package/dist/{Unit-kL0Wjfb6.js → Unit-CmF2olR8.js} +8 -8
- package/dist/{Variant-Cj82yGYE.js → Variant-C9-_-SLX.js} +24 -24
- package/dist/{_id_-B-guZ25K.js → _id_-C4Zpr6wS.js} +28 -28
- package/dist/app-BC-PDZ1J.js +363 -0
- package/dist/{app-DiVDYcc9.js → app-CrcPPLl1.js} +1 -1
- package/dist/app.js +2 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-C4nECq-3.js → linked-status-68qGGp41.js} +5 -5
- package/dist/assets/{menu-export-PPICN1VA.js → menu-export-CRtF4W1I.js} +2 -2
- package/dist/assets/{override-menu-BaYdZfDk.js → override-menu-DB0DJf_x.js} +5 -5
- package/dist/assets/{validate-menu-DCyVSa7R.js → validate-menu-oi_J1ue-.js} +2 -2
- package/dist/{catalog-BTsgJdVe.js → catalog-Cp4kVRAL.js} +1 -1
- package/dist/{catalogSetting-BNYPChMH.js → catalogSetting-Cr0DX5kw.js} +1 -1
- package/dist/{currency-2KuoTCt5.js → currency-C_IuOt0j.js} +1 -1
- package/dist/dayjs.min-fN9Ef6y1.js +6 -0
- package/dist/{index-UthDVOpX.js → index-CXzIkkUH.js} +31 -31
- package/dist/{index-GaHNc4iH.js → index-DzLNqNMt.js} +43 -43
- package/dist/{index-fLVJt8Pt.js → index-vqNnqeRW.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js → index.vue_vue_type_script_setup_true_lang-DyiwvQnC.js} +269 -244
- package/dist/{item-DYsNPLH9.js → item-C3_GKsNy.js} +15 -15
- package/dist/{jszip.min-CLQSAAHL.js → jszip.min-BiRK-xY3.js} +387 -388
- package/dist/{menu-Btb1sPTh.js → menu-CYrjppCV.js} +1 -1
- package/dist/{menuV2-Bfj5ljzI.js → menuV2-DWQ093x3.js} +93 -93
- package/dist/{priceTier-DHp_DiBo.js → priceTier-CD3j-Ccs.js} +1 -1
- package/dist/{rules-B5QEx6OC.js → rules-BTZh0AjD.js} +11 -11
- package/dist/{scheduler-CI-LJfho.js → scheduler-PVlNN-pB.js} +29 -29
- package/dist/{toExcel-CHdQxEnw.js → toExcel-lSyQhZQ9.js} +2 -2
- package/dist/{unit-D53f5n16.js → unit-1MnbZYm8.js} +35 -35
- package/package.json +1 -2
- package/dist/Products-IBe-R8XN.js +0 -334
- package/dist/app-D4se7Sr4.js +0 -1643
- package/dist/dayjs.min-BE8PtbAQ.js +0 -7
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, computed as g, ref as W, resolveComponent as C, createBlock as _, openBlock as c, unref as e, withCtx as x, createElementVNode as b, toDisplayString as Z, createVNode as m, createCommentVNode as w, createElementBlock as Y, Fragment as U } from "vue";
|
|
2
|
-
import { D as V } from "./dayjs.min-BE8PtbAQ.js";
|
|
3
|
-
import { J as re, F as ie } from "./jszip.min-CLQSAAHL.js";
|
|
4
|
-
import { u as K, B as Q, z, D as H, y as X, A as le, G as ue, H as L, I as ce } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
|
|
5
|
-
import { w as me } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-UhuYuL-A.js";
|
|
6
|
-
import { A as de, b as pe, h as $ } from "./app-D4se7Sr4.js";
|
|
7
|
-
import { useCoreStore as ee, useI18n as fe } from "@feedmepos/mf-common";
|
|
8
|
-
import { useDialog as te, useDialogChild as ve, useSnackbar as ne, useBreakpoints as _e, FmButtonVariant as A, FmButtonColorThemeVariant as M } from "@feedmepos/ui-library";
|
|
9
|
-
import { _ as E } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
10
|
-
import { _ as ge, a as O } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
11
|
-
import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
12
|
-
import { u as ye, a as ke } from "./menu-Btb1sPTh.js";
|
|
13
|
-
import { u as xe } from "./item-DYsNPLH9.js";
|
|
14
|
-
import { _ as q, a as Se } from "./Product.vue_vue_type_script_setup_true_lang-BVF9SBEL.js";
|
|
15
|
-
import { L as G } from "./LinkProductSideSheet-CbppLDSB.js";
|
|
16
|
-
import { _ as he } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-SNBrW4Or.js";
|
|
17
|
-
import { u as Me } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CI8eK98T.js";
|
|
18
|
-
import { m as we } from "./toExcel-CHdQxEnw.js";
|
|
19
|
-
function Ce(d) {
|
|
20
|
-
return d.map((t) => ({
|
|
21
|
-
...t,
|
|
22
|
-
subject: pe(t.subject),
|
|
23
|
-
reason: t.source !== void 0 ? JSON.stringify(t.source) : t.reason
|
|
24
|
-
}));
|
|
25
|
-
}
|
|
26
|
-
function Fe(d) {
|
|
27
|
-
return new de(Ce(d));
|
|
28
|
-
}
|
|
29
|
-
function J(d, t, S) {
|
|
30
|
-
const y = Array.isArray(d) ? d : [d], o = Fe(t), p = (n) => n.subject, f = (n) => o.can(n.action, p(n), n.field) ? !0 : n.coverSubject !== void 0 ? o.can(n.action, n.coverSubject, n.field) : !1, a = y.find((n) => !f(n));
|
|
31
|
-
if (a) {
|
|
32
|
-
const n = o.relevantRuleFor(
|
|
33
|
-
a.action,
|
|
34
|
-
p(a),
|
|
35
|
-
a.field
|
|
36
|
-
);
|
|
37
|
-
return {
|
|
38
|
-
granted: !1,
|
|
39
|
-
decisivePermission: a,
|
|
40
|
-
decisiveRule: n ?? null
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
const l = y[0], v = o.relevantRuleFor(l.action, p(l), l.field);
|
|
44
|
-
return { granted: !0, decisivePermission: l, decisiveRule: v ?? null };
|
|
45
|
-
}
|
|
46
|
-
const $e = { class: "space-y-24 mb-24" }, Ve = ["innerHTML"], Ae = { class: "flex justify-end gap-8" }, Ee = /* @__PURE__ */ I({
|
|
47
|
-
__name: "ConfirmActionDialog",
|
|
48
|
-
props: {
|
|
49
|
-
description: {},
|
|
50
|
-
value: {},
|
|
51
|
-
message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
|
|
52
|
-
},
|
|
53
|
-
setup(d) {
|
|
54
|
-
const t = d, S = g(() => t.message.replace("[[value]]", t.value)), y = W(""), o = te(), { emitAction: p } = ve();
|
|
55
|
-
return (f, a) => {
|
|
56
|
-
const l = C("FmTextField"), v = C("FmButton"), n = C("FmForm");
|
|
57
|
-
return c(), _(n, {
|
|
58
|
-
"on-validation-success": () => e(p)("primary"),
|
|
59
|
-
"blame-form-child-on-validation-failed": ""
|
|
60
|
-
}, {
|
|
61
|
-
default: x(() => [
|
|
62
|
-
b("div", $e, [
|
|
63
|
-
b("div", null, Z(f.description), 1),
|
|
64
|
-
b("div", { innerHTML: S.value }, null, 8, Ve),
|
|
65
|
-
b("div", null, [
|
|
66
|
-
m(l, {
|
|
67
|
-
modelValue: y.value,
|
|
68
|
-
"onUpdate:modelValue": [
|
|
69
|
-
a[0] || (a[0] = (k) => y.value = k),
|
|
70
|
-
a[1] || (a[1] = () => {
|
|
71
|
-
})
|
|
72
|
-
],
|
|
73
|
-
placeholder: f.value,
|
|
74
|
-
rules: [(k) => k === f.value || "Value does not match"]
|
|
75
|
-
}, null, 8, ["modelValue", "placeholder", "rules"])
|
|
76
|
-
]),
|
|
77
|
-
b("div", Ae, [
|
|
78
|
-
m(v, {
|
|
79
|
-
label: "Cancel",
|
|
80
|
-
variant: "secondary",
|
|
81
|
-
onClick: a[2] || (a[2] = (k) => e(o).close())
|
|
82
|
-
}),
|
|
83
|
-
m(v, {
|
|
84
|
-
label: "Confirm",
|
|
85
|
-
type: "submit"
|
|
86
|
-
})
|
|
87
|
-
])
|
|
88
|
-
])
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
}, 8, ["on-validation-success"]);
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
}), Ie = /* @__PURE__ */ I({
|
|
95
|
-
__name: "Migrate",
|
|
96
|
-
setup(d) {
|
|
97
|
-
const t = K(), S = ee(), y = ne(), { minor: o } = Q(y), p = W(!1), f = te();
|
|
98
|
-
async function a() {
|
|
99
|
-
l.value || p.value || f.open({
|
|
100
|
-
title: "Migrate to new version",
|
|
101
|
-
contentComponent: Ee,
|
|
102
|
-
contentComponentProps: {
|
|
103
|
-
value: "MIGRATE",
|
|
104
|
-
description: "Do you want to migrate to new version? Once migrate it will unable to revert to the older version."
|
|
105
|
-
}
|
|
106
|
-
}).onPrimary(async () => {
|
|
107
|
-
f.close(), await o(
|
|
108
|
-
async () => {
|
|
109
|
-
await t.migrate(), setTimeout(() => {
|
|
110
|
-
window.location.reload();
|
|
111
|
-
}, 2e3);
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
isLoading: p,
|
|
115
|
-
customId: t.state.menu._id,
|
|
116
|
-
message: "Migrating menu",
|
|
117
|
-
successMessage: "Migration completed"
|
|
118
|
-
}
|
|
119
|
-
);
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
const l = g(() => {
|
|
123
|
-
const v = S.restaurants.value;
|
|
124
|
-
if (!v.length) return "Required at least one restaurant to migrate";
|
|
125
|
-
const n = v.filter((h) => !h.posVersion || !z.Pos.canUse({ feature: H.F_FEATURE.enum.menuV4, posVersion: h.posVersion }));
|
|
126
|
-
return n.length ? `Upgrade POS to V${z.Pos.minVersionToUse(H.F_FEATURE.enum.menuV4)} to use new menu: ${n.map((h) => h.profile.name).join(", ")}` : null;
|
|
127
|
-
});
|
|
128
|
-
return g(() => l.value ? l.value : "Migrate your menu to new version to enjoy more features. Content of new menu will remain the same as current."), (v, n) => {
|
|
129
|
-
const k = C("FmSnackbar");
|
|
130
|
-
return !l.value && e(t).version !== e(X.F_MENU_VERSION).enum.v4 ? (c(), _(k, {
|
|
131
|
-
key: 0,
|
|
132
|
-
class: "!max-w-full",
|
|
133
|
-
title: "New version of menu is out now!",
|
|
134
|
-
description: "Migrate your current menu version to the latest to enjoy more features such as product sequential dispatch, serving sequence, scheduler and more! Your content and current setting will be preserved.",
|
|
135
|
-
variant: "info",
|
|
136
|
-
action: "Migrate",
|
|
137
|
-
"z-index": 0,
|
|
138
|
-
onOnAction: a
|
|
139
|
-
})) : w("", !0);
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
}), Te = "/assets/menu-export-PPICN1VA.js", Ne = { class: "flex-1 flex justify-between gap-8 pl-8" }, je = { class: "flex items-center" }, De = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Pe = { class: "fm-typo-en-body-md-600 font-semibold" }, Be = { class: "flex gap-8" }, ot = /* @__PURE__ */ I({
|
|
143
|
-
__name: "Products",
|
|
144
|
-
setup(d) {
|
|
145
|
-
const { t } = fe(), S = ee(), y = Q(ne()), o = K(), p = g(() => o.rules.item), f = xe(), a = g(() => !o.state.currentSchedulerId), { selectedCategories: l } = ye(), v = g(() => ({
|
|
146
|
-
...le.menuV4ToV3(ue(o.state.menu)),
|
|
147
|
-
_id: o.state.menu._id,
|
|
148
|
-
_rev: o.state.menu._rev
|
|
149
|
-
})), n = g(() => {
|
|
150
|
-
const u = L.flatten(l.value.map((s) => s.items));
|
|
151
|
-
return L.uniqBy(u, (s) => s._id).length;
|
|
152
|
-
});
|
|
153
|
-
async function k(u, s) {
|
|
154
|
-
const r = new re();
|
|
155
|
-
for (let F = 0; F < u.length; F++)
|
|
156
|
-
r.file(`${s[F]}.xlsx`, u[F]);
|
|
157
|
-
const i = await r.generateAsync({ type: "blob" });
|
|
158
|
-
ie.saveAs(i, `books_${V().format("DD-MM-YYYY_HH-mm")}.zip`);
|
|
159
|
-
}
|
|
160
|
-
async function h() {
|
|
161
|
-
await y.minor(
|
|
162
|
-
async () => {
|
|
163
|
-
if (await o.readMenu(), o.version === X.F_MENU_VERSION.enum.v4) {
|
|
164
|
-
const u = o.state.menu, s = V().format("DD-MM-YYYY_HH-mm"), r = [
|
|
165
|
-
`menu_${s}`,
|
|
166
|
-
`addonGroup_${s}`,
|
|
167
|
-
`itemLinkedAddon_${s}`
|
|
168
|
-
], i = await ce(
|
|
169
|
-
Te,
|
|
170
|
-
JSON.stringify({
|
|
171
|
-
menu: u,
|
|
172
|
-
attributeSettings: S.itemAttributeSettings.value
|
|
173
|
-
})
|
|
174
|
-
);
|
|
175
|
-
await k(i, r);
|
|
176
|
-
} else {
|
|
177
|
-
const u = we(v.value), s = `menu_${V().format("DD-MM-YYYY_HH-mm")}`;
|
|
178
|
-
await me(u, `${s}.xlsx`, {
|
|
179
|
-
bookType: "xlsx",
|
|
180
|
-
bookSST: !0,
|
|
181
|
-
type: "array",
|
|
182
|
-
compression: !0
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
{ successMessage: "Menu exported", customId: o.state.menu._id }
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
const {
|
|
190
|
-
menuItems: T,
|
|
191
|
-
categories: N,
|
|
192
|
-
linkItemRules: j,
|
|
193
|
-
handleSubmit: D,
|
|
194
|
-
catalogManager: P,
|
|
195
|
-
schedulerManager: B
|
|
196
|
-
} = Me(!1), oe = _e(), ae = g(() => oe.breakpoints.value.xs), se = g(() => {
|
|
197
|
-
var r;
|
|
198
|
-
const u = ((r = S.sessionUser.value) == null ? void 0 : r.permissions) ?? [], s = {
|
|
199
|
-
action: $.Action.manage,
|
|
200
|
-
subject: $.Subject.Business.menu_menuManagement
|
|
201
|
-
};
|
|
202
|
-
return J([s], u).granted;
|
|
203
|
-
}), R = g(() => {
|
|
204
|
-
var r;
|
|
205
|
-
const u = ((r = S.sessionUser.value) == null ? void 0 : r.permissions) ?? [], s = {
|
|
206
|
-
action: $.Action.manage,
|
|
207
|
-
subject: $.Subject.Business.menu_importExport
|
|
208
|
-
};
|
|
209
|
-
return J([s], u).granted;
|
|
210
|
-
});
|
|
211
|
-
return ke().resetOnMount(), (u, s) => {
|
|
212
|
-
const r = C("fm-button");
|
|
213
|
-
return c(), _(be, {
|
|
214
|
-
heading: e(t)("menu.products.title")
|
|
215
|
-
}, {
|
|
216
|
-
default: x(() => [
|
|
217
|
-
m(Ie),
|
|
218
|
-
m(Se)
|
|
219
|
-
]),
|
|
220
|
-
"append-heading": x(() => [
|
|
221
|
-
b("div", Ne, [
|
|
222
|
-
b("div", je, [
|
|
223
|
-
b("div", De, [
|
|
224
|
-
b("p", Pe, Z(n.value), 1)
|
|
225
|
-
])
|
|
226
|
-
]),
|
|
227
|
-
b("div", Be, [
|
|
228
|
-
ae.value ? (c(), _(q, { key: 1 }, {
|
|
229
|
-
default: x(({ trigger: i }) => [
|
|
230
|
-
m(ge, null, {
|
|
231
|
-
default: x(() => [
|
|
232
|
-
m(O, {
|
|
233
|
-
label: e(t)("menu.products.actions.export"),
|
|
234
|
-
onClick: h
|
|
235
|
-
}, null, 8, ["label"]),
|
|
236
|
-
m(O, {
|
|
237
|
-
label: e(t)("menu.products.actions.import"),
|
|
238
|
-
onClick: i
|
|
239
|
-
}, null, 8, ["label", "onClick"])
|
|
240
|
-
]),
|
|
241
|
-
_: 2
|
|
242
|
-
}, 1024)
|
|
243
|
-
]),
|
|
244
|
-
_: 1
|
|
245
|
-
})) : (c(), Y(U, { key: 0 }, [
|
|
246
|
-
se.value ? (c(), _(he, { key: 0 }, {
|
|
247
|
-
default: x(({ trigger: i }) => [
|
|
248
|
-
m(r, {
|
|
249
|
-
label: e(t)("menu.tree_editor.title"),
|
|
250
|
-
"bg-color": e(M).NeutralGray100,
|
|
251
|
-
"text-color": e(M).TypoSecondary,
|
|
252
|
-
variant: e(A).Primary,
|
|
253
|
-
onClick: i
|
|
254
|
-
}, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
|
|
255
|
-
]),
|
|
256
|
-
_: 1
|
|
257
|
-
})) : w("", !0),
|
|
258
|
-
R.value ? (c(), _(r, {
|
|
259
|
-
key: 1,
|
|
260
|
-
"bg-color": e(M).NeutralGray100,
|
|
261
|
-
"text-color": e(M).TypoSecondary,
|
|
262
|
-
variant: e(A).Primary,
|
|
263
|
-
label: e(t)("menu.products.actions.export"),
|
|
264
|
-
onClick: h
|
|
265
|
-
}, null, 8, ["bg-color", "text-color", "variant", "label"])) : w("", !0),
|
|
266
|
-
R.value ? (c(), _(q, { key: 2 }, {
|
|
267
|
-
default: x(({ trigger: i }) => [
|
|
268
|
-
m(r, {
|
|
269
|
-
"bg-color": e(M).NeutralGray100,
|
|
270
|
-
"text-color": e(M).TypoSecondary,
|
|
271
|
-
variant: e(A).Primary,
|
|
272
|
-
label: e(t)("menu.products.actions.import"),
|
|
273
|
-
onClick: i
|
|
274
|
-
}, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
|
|
275
|
-
]),
|
|
276
|
-
_: 1
|
|
277
|
-
})) : w("", !0)
|
|
278
|
-
], 64)),
|
|
279
|
-
n.value > 0 ? (c(), Y(U, { key: 2 }, [
|
|
280
|
-
p.value.create ? (c(), _(E, {
|
|
281
|
-
key: 0,
|
|
282
|
-
label: e(t)("menu.products.actions.add"),
|
|
283
|
-
"prepend-icon": "add",
|
|
284
|
-
onClick: s[0] || (s[0] = (i) => e(f).create(null))
|
|
285
|
-
}, null, 8, ["label"])) : a.value ? (c(), _(G, {
|
|
286
|
-
key: 1,
|
|
287
|
-
"categorized-items": e(P).linkableItems.value,
|
|
288
|
-
"initial-value": e(P).currentItems.value,
|
|
289
|
-
"show-variant": !1,
|
|
290
|
-
"menu-items": e(T),
|
|
291
|
-
categories: e(N),
|
|
292
|
-
"link-item-rules": e(j),
|
|
293
|
-
"no-scheduler": a.value,
|
|
294
|
-
onSubmit: e(D)
|
|
295
|
-
}, {
|
|
296
|
-
default: x(({ trigger: i }) => [
|
|
297
|
-
m(E, {
|
|
298
|
-
label: e(t)("menu.products.actions.link"),
|
|
299
|
-
"prepend-icon": "link",
|
|
300
|
-
onClick: i
|
|
301
|
-
}, null, 8, ["label", "onClick"])
|
|
302
|
-
]),
|
|
303
|
-
_: 1
|
|
304
|
-
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (c(), _(G, {
|
|
305
|
-
key: 2,
|
|
306
|
-
"categorized-items": e(B).linkableItems.value,
|
|
307
|
-
"initial-value": e(B).currentItems.value,
|
|
308
|
-
"show-variant": !1,
|
|
309
|
-
"menu-items": e(T),
|
|
310
|
-
categories: e(N),
|
|
311
|
-
"link-item-rules": e(j),
|
|
312
|
-
"no-scheduler": a.value,
|
|
313
|
-
onSubmit: e(D)
|
|
314
|
-
}, {
|
|
315
|
-
default: x(({ trigger: i }) => [
|
|
316
|
-
m(E, {
|
|
317
|
-
label: e(t)("menu.products.actions.apply_scheduler"),
|
|
318
|
-
onClick: i
|
|
319
|
-
}, null, 8, ["label", "onClick"])
|
|
320
|
-
]),
|
|
321
|
-
_: 1
|
|
322
|
-
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"]))
|
|
323
|
-
], 64)) : w("", !0)
|
|
324
|
-
])
|
|
325
|
-
])
|
|
326
|
-
]),
|
|
327
|
-
_: 1
|
|
328
|
-
}, 8, ["heading"]);
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
export {
|
|
333
|
-
ot as default
|
|
334
|
-
};
|