@feedmepos/mf-menu 0.32.51-dev → 0.32.52-dev

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.
Files changed (76) hide show
  1. package/dist/{App-DJ_boY0P.js → App-COGal-TD.js} +497 -506
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BVafiq6l.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DzisSpvQ.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-CruH5AF9.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-eqJDqaPZ.js} +2 -2
  4. package/dist/{Catalog-C_7GyzOz.js → Catalog-BJ8-NdAC.js} +7 -7
  5. package/dist/{Category-B8c8AO0C.js → Category-BkU2y10v.js} +5 -5
  6. package/dist/{Category-CJRttg5g.js → Category-CFaPOouQ.js} +4 -4
  7. package/dist/{CookingGuide-B-oXAful.js → CookingGuide-BDDCmfeL.js} +5 -5
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DwwMOoQx.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BcJYQo_p.js} +1 -1
  9. package/dist/{Group-iHKwYfVS.js → Group-DBrJ4Rin.js} +1 -1
  10. package/dist/{Group-DZrcYfeC.js → Group-Sk7Qd6G3.js} +4 -4
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-UrT9_Dv_.js → Group.vue_vue_type_script_setup_true_lang-BWpIG76a.js} +7 -7
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BljvPVAz.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DzeAE7Oj.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Cu2_U6gg.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DWScWkMg.js} +10 -10
  14. package/dist/{Ingredient-EEsIgWLG.js → Ingredient-CA0qoRc1.js} +4 -4
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B_ItCbTf.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BzLcfi4f.js} +2 -2
  16. package/dist/{LinkProductSideSheet-DwVODI1U.js → LinkProductSideSheet-TTj7qiWm.js} +3 -3
  17. package/dist/{MenuSetting-CP7Vx_cV.js → MenuSetting-DwfE7v0B.js} +9 -9
  18. package/dist/{OrderPacing-Dej0Cp3E.js → OrderPacing-cT1Vs3OD.js} +6 -6
  19. package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-BFxSjqqP.js → PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js} +2 -2
  20. package/dist/{PrintRoute-DOJJ82mH.js → PrintRoute-D8pc6M31.js} +5 -5
  21. package/dist/{Product-BpH2gXii.js → Product-CW1oQzS-.js} +1 -1
  22. package/dist/{Product.vue_vue_type_script_setup_true_lang-BhOdWTlM.js → Product.vue_vue_type_script_setup_true_lang-lqXctN9S.js} +12 -12
  23. package/dist/{ProductInternalTools-CjoC9z79.js → ProductInternalTools-DAIu8IhO.js} +6 -6
  24. package/dist/Products-nVL6Qsuw.js +312 -0
  25. package/dist/{Publish-D-xjezFx.js → Publish-DHEzIG_J.js} +533 -528
  26. package/dist/{Recipe-Dv38pLls.js → Recipe-BLcLaekI.js} +5 -5
  27. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CJwwJ87D.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BCHurASV.js} +1 -1
  28. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-a6W_3fVO.js → RuleView.vue_vue_type_script_setup_true_lang-Dwi3pOl9.js} +2 -2
  29. package/dist/{Scheduler-DEgUjACU.js → Scheduler-C4e5hO7Z.js} +4 -4
  30. package/dist/{ServingSequence-C-XRskmz.js → ServingSequence-C12Ny_nR.js} +4 -4
  31. package/dist/{Setting-C4zIGhS4.js → Setting-BscTehhJ.js} +5 -5
  32. package/dist/{Subcategory-0e7ZQXZl.js → Subcategory-C5FGoPot.js} +6 -6
  33. package/dist/{Takeaway-BR6Jm6tq.js → Takeaway-CDSKNUhc.js} +1 -1
  34. package/dist/{Takeaway-Bk9u-h1u.js → Takeaway-Dr6WQVE1.js} +5 -5
  35. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DXCVV-UI.js → Takeaway.vue_vue_type_script_setup_true_lang-C6eREsQp.js} +5 -5
  36. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-BZRHb8G7.js → Thumbnail.vue_vue_type_script_setup_true_lang-CkETUziX.js} +4 -4
  37. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BrhjUvFq.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CcD-TGhd.js} +1 -1
  38. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-BKD-EAO3.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DccUYmCx.js} +2 -2
  39. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ch5KY_XM.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D1ov0odP.js} +937 -940
  40. package/dist/{Unit-BdV3zkYP.js → Unit-U3pz6pPm.js} +3 -3
  41. package/dist/{Variant-CtcqyPKe.js → Variant-D-nC4Dy6.js} +26 -30
  42. package/dist/{_id_-Fo7FbggZ.js → _id_-DHI7NeZ5.js} +10 -10
  43. package/dist/{app-BirB2oNz.js → app-Brq8nN4D.js} +1 -1
  44. package/dist/{app-DtMGo-8a.js → app-dIGG83GF.js} +185 -185
  45. package/dist/app.js +1 -1
  46. package/dist/apps/mf-menu/src/app.d.ts +7 -0
  47. package/dist/apps/mf-menu/src/components/member_price/MemberPriceToolTip.vue.d.ts +2 -0
  48. package/dist/apps/mf-menu/src/manager/menu/memberPricing.d.ts +4 -1
  49. package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -1
  50. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  51. package/dist/assets/{linked-status-B6SJq-v-.js → linked-status-C-sgTOx9.js} +2 -2
  52. package/dist/assets/{menu-export-CwiCpw67.js → menu-export-Nt98HUsd.js} +4 -4
  53. package/dist/assets/{override-menu-Fx3w0bSY.js → override-menu-Ako9Ghu_.js} +2 -2
  54. package/dist/assets/{validate-menu-BGTp-oO7.js → validate-menu-CVJ4sdGa.js} +2 -2
  55. package/dist/{catalog-DtioUeQr.js → catalog-BDfp-HKs.js} +1 -1
  56. package/dist/{catalogSetting-BRAVGHiH.js → catalogSetting-BjZWlJux.js} +1 -1
  57. package/dist/{currency-Dntgj8R7.js → currency-BMM0v_C-.js} +1 -1
  58. package/dist/{dayjs.min-CwKTySXQ.js → dayjs.min-qRo56ggi.js} +2 -2
  59. package/dist/{index-vHMVgpgg.js → index-Dnr_KMtS.js} +25 -25
  60. package/dist/{index-b5UraR94.js → index-DwsAtSPy.js} +4 -4
  61. package/dist/{index.vue_vue_type_script_setup_true_lang-CbJ4htzZ.js → index.vue_vue_type_script_setup_true_lang-BLHrxcy_.js} +4638 -4642
  62. package/dist/{item-CAdH9ZRb.js → item-hYgXuH-R.js} +1178 -1177
  63. package/dist/{jszip.min-q5-4AKN4.js → jszip.min-BqsNpcIL.js} +3 -3
  64. package/dist/memberPricing-CXI5GqbJ.js +107 -0
  65. package/dist/{menu-CSDflKWK.js → menu-Okh_Q4gK.js} +1 -1
  66. package/dist/{menuV2-Cf_zeTsx.js → menuV2-DbTc7yw0.js} +36 -36
  67. package/dist/mf-menu.css +1 -1
  68. package/dist/{order_pacing-gM1ob6dp.js → order_pacing-CBkQIrp3.js} +5 -5
  69. package/dist/{priceTier-qp7ZHYG1.js → priceTier-BxWXhfDh.js} +1 -1
  70. package/dist/{rules-Bvgey7qo.js → rules-CsoPQCO5.js} +3 -3
  71. package/dist/{scheduler-CLvNHt4g.js → scheduler-BfvHQAuo.js} +4 -4
  72. package/dist/{toExcel-CDs_GgCA.js → toExcel-DZMykkCy.js} +2 -2
  73. package/dist/{unit-CR4GvsD0.js → unit-ro6UkV3c.js} +2 -2
  74. package/package.json +1 -1
  75. package/dist/Products-BaH1UUlM.js +0 -309
  76. package/dist/memberPricing-BK7Y-pUK.js +0 -89
@@ -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 O, createBlock as oe, withCtx as R } from "vue";
2
- import { J as A, F as ne } from "./jszip.min-q5-4AKN4.js";
3
- import { B as le, u as ie, H as D, a3 as re, M as ce, N as de, O as me } from "./index.vue_vue_type_script_setup_true_lang-CbJ4htzZ.js";
2
+ import { J as A, F as ne } from "./jszip.min-BqsNpcIL.js";
3
+ import { B as le, u as ie, H as D, a3 as re, M as ce, N as de, O as me } from "./index.vue_vue_type_script_setup_true_lang-BLHrxcy_.js";
4
4
  import { useI18n as ue } from "@feedmepos/mf-common";
5
5
  import { FmButtonVariant as z, useSnackbar as V, useDialog as ge, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
6
- import { _ as pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-BFxSjqqP.js";
7
- import { u as fe, a as he } from "./menu-CSDflKWK.js";
8
- import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-BhOdWTlM.js";
9
- import { D as be, E as ve, G as _e } from "./item-CAdH9ZRb.js";
6
+ import { _ as pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
7
+ import { u as fe, a as he } from "./menu-Okh_Q4gK.js";
8
+ import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-lqXctN9S.js";
9
+ import { D as be, E as ve, G as _e } from "./item-hYgXuH-R.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"
@@ -0,0 +1,312 @@
1
+ import { defineComponent as D, computed as _, ref as W, resolveComponent as w, createBlock as m, openBlock as l, unref as e, withCtx as p, createElementVNode as d, toDisplayString as Z, createVNode as u, createCommentVNode as C, createElementBlock as P, Fragment as H } from "vue";
2
+ import { D as E } from "./dayjs.min-qRo56ggi.js";
3
+ import { J as re, F as ie } from "./jszip.min-BqsNpcIL.js";
4
+ import { u as K, B as Q, z as L, D as j, y as X, A as le, G as ue, H as R, I as ce } from "./index.vue_vue_type_script_setup_true_lang-BLHrxcy_.js";
5
+ import { w as me } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DWScWkMg.js";
6
+ import { h as $, A as q } from "./app-dIGG83GF.js";
7
+ import { useCoreStore as ee, useI18n as de } from "@feedmepos/mf-common";
8
+ import { useDialog as te, useDialogChild as pe, useSnackbar as ne, useBreakpoints as _e, FmButtonVariant as T, FmButtonColorThemeVariant as h } from "@feedmepos/ui-library";
9
+ import { _ as I } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
10
+ import { _ as fe, a as G } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
11
+ import { _ as ge } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
12
+ import { u as ve, a as be } from "./menu-Okh_Q4gK.js";
13
+ import { u as ye } from "./item-hYgXuH-R.js";
14
+ import { _ as O, a as ke } from "./Product.vue_vue_type_script_setup_true_lang-lqXctN9S.js";
15
+ import { L as J } from "./LinkProductSideSheet-TTj7qiWm.js";
16
+ import { _ as xe } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D1ov0odP.js";
17
+ import { u as Se } from "./Thumbnail.vue_vue_type_script_setup_true_lang-CkETUziX.js";
18
+ import { m as he } from "./toExcel-DZMykkCy.js";
19
+ const Me = { class: "space-y-24 mb-24" }, Ce = ["innerHTML"], we = { class: "flex justify-end gap-8" }, Fe = /* @__PURE__ */ D({
20
+ __name: "ConfirmActionDialog",
21
+ props: {
22
+ description: {},
23
+ value: {},
24
+ message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
25
+ },
26
+ setup(V) {
27
+ const n = V, f = _(() => n.message.replace("[[value]]", n.value)), y = W(""), o = te(), { emitAction: k } = pe();
28
+ return (g, i) => {
29
+ const x = w("FmTextField"), S = w("FmButton"), v = w("FmForm");
30
+ return l(), m(v, {
31
+ "on-validation-success": () => e(k)("primary"),
32
+ "blame-form-child-on-validation-failed": ""
33
+ }, {
34
+ default: p(() => [
35
+ d("div", Me, [
36
+ d("div", null, Z(g.description), 1),
37
+ d("div", { innerHTML: f.value }, null, 8, Ce),
38
+ d("div", null, [
39
+ u(x, {
40
+ modelValue: y.value,
41
+ "onUpdate:modelValue": [
42
+ i[0] || (i[0] = (c) => y.value = c),
43
+ i[1] || (i[1] = () => {
44
+ })
45
+ ],
46
+ placeholder: g.value,
47
+ rules: [(c) => c === g.value || "Value does not match"]
48
+ }, null, 8, ["modelValue", "placeholder", "rules"])
49
+ ]),
50
+ d("div", we, [
51
+ u(S, {
52
+ label: "Cancel",
53
+ variant: "secondary",
54
+ onClick: i[2] || (i[2] = (c) => e(o).close())
55
+ }),
56
+ u(S, {
57
+ label: "Confirm",
58
+ type: "submit"
59
+ })
60
+ ])
61
+ ])
62
+ ]),
63
+ _: 1
64
+ }, 8, ["on-validation-success"]);
65
+ };
66
+ }
67
+ }), $e = /* @__PURE__ */ D({
68
+ __name: "Migrate",
69
+ setup(V) {
70
+ const n = K(), f = ee(), y = ne(), { minor: o } = Q(y), k = W(!1), g = te();
71
+ async function i() {
72
+ x.value || k.value || g.open({
73
+ title: "Migrate to new version",
74
+ contentComponent: Fe,
75
+ contentComponentProps: {
76
+ value: "MIGRATE",
77
+ description: "Do you want to migrate to new version? Once migrate it will unable to revert to the older version."
78
+ }
79
+ }).onPrimary(async () => {
80
+ g.close(), await o(
81
+ async () => {
82
+ await n.migrate(), setTimeout(() => {
83
+ window.location.reload();
84
+ }, 2e3);
85
+ },
86
+ {
87
+ isLoading: k,
88
+ customId: n.state.menu._id,
89
+ message: "Migrating menu",
90
+ successMessage: "Migration completed"
91
+ }
92
+ );
93
+ });
94
+ }
95
+ const x = _(() => {
96
+ var M;
97
+ if (((M = f.sessionUser.value) == null ? void 0 : M.role.isAdmin) === !0)
98
+ return null;
99
+ const v = f.restaurants.value;
100
+ if (!v.length) return "Required at least one restaurant to migrate";
101
+ const c = v.filter((b) => !b.posVersion || !L.Pos.canUse({ feature: j.F_FEATURE.enum.menuV4, posVersion: b.posVersion }));
102
+ return c.length ? `Upgrade POS to V${L.Pos.minVersionToUse(j.F_FEATURE.enum.menuV4)} to use new menu: ${c.map((b) => b.profile.name).join(", ")}` : null;
103
+ });
104
+ return (S, v) => {
105
+ const c = w("FmSnackbar");
106
+ return !x.value && e(n).version !== e(X).enum.v4 ? (l(), m(c, {
107
+ key: 0,
108
+ class: "!max-w-full",
109
+ title: "New version of menu is out now!",
110
+ 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.",
111
+ variant: "info",
112
+ action: "Migrate",
113
+ "z-index": 0,
114
+ onOnAction: i
115
+ })) : C("", !0);
116
+ };
117
+ }
118
+ }), Ve = "/assets/menu-export-Nt98HUsd.js", Ae = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ee = { class: "flex items-center" }, Te = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ie = { class: "fm-typo-en-body-md-600 font-semibold" }, De = { class: "flex gap-8" }, Xe = /* @__PURE__ */ D({
119
+ __name: "Products",
120
+ setup(V) {
121
+ const { t: n } = de(), f = ee(), y = Q(ne()), o = K(), k = _(() => o.rules.item), g = ye(), i = _(() => !o.state.currentSchedulerId), { selectedCategories: x } = ve(), S = _(() => ({
122
+ ...le.menuV4ToV3(ue(o.state.menu)),
123
+ _id: o.state.menu._id,
124
+ _rev: o.state.menu._rev
125
+ })), v = _(() => {
126
+ const r = R.flatten(x.value.map((t) => t.items));
127
+ return R.uniqBy(r, (t) => t._id).length;
128
+ });
129
+ async function c(r, t) {
130
+ const a = new re();
131
+ for (let F = 0; F < r.length; F++)
132
+ a.file(`${t[F]}.xlsx`, r[F]);
133
+ const s = await a.generateAsync({ type: "blob" });
134
+ ie.saveAs(s, `books_${E().format("DD-MM-YYYY_HH-mm")}.zip`);
135
+ }
136
+ async function A() {
137
+ await y.minor(
138
+ async () => {
139
+ if (await o.readMenu(), o.version === X.enum.v4) {
140
+ const r = o.state.menu, t = E().format("DD-MM-YYYY_HH-mm"), a = [
141
+ `menu_${t}`,
142
+ `addonGroup_${t}`,
143
+ `itemLinkedAddon_${t}`,
144
+ `translationLocalization_${t}`
145
+ ], s = await ce(
146
+ Ve,
147
+ JSON.stringify({
148
+ menu: r,
149
+ attributeSettings: f.itemAttributeSettings.value,
150
+ localizationKeys: o.state.featureFlags.supportedLocales
151
+ })
152
+ );
153
+ await c(s, a);
154
+ } else {
155
+ const r = he(S.value), t = `menu_${E().format("DD-MM-YYYY_HH-mm")}`;
156
+ await me(r, `${t}.xlsx`, {
157
+ bookType: "xlsx",
158
+ bookSST: !0,
159
+ type: "array",
160
+ compression: !0
161
+ });
162
+ }
163
+ },
164
+ { successMessage: "Menu exported", customId: o.state.menu._id }
165
+ );
166
+ }
167
+ const {
168
+ menuItems: M,
169
+ categories: b,
170
+ linkItemRules: B,
171
+ handleSubmit: N,
172
+ catalogManager: Y,
173
+ schedulerManager: U
174
+ } = Se(!1), oe = _e(), ae = _(() => oe.breakpoints.value.xs), se = _(() => {
175
+ var a;
176
+ const r = ((a = f.sessionUser.value) == null ? void 0 : a.permissions) ?? [], t = {
177
+ action: $.Action.manage,
178
+ subject: $.Subject.Business.menu_menuManagement
179
+ };
180
+ return q([t], r).granted;
181
+ }), z = _(() => {
182
+ var a;
183
+ const r = ((a = f.sessionUser.value) == null ? void 0 : a.permissions) ?? [], t = {
184
+ action: $.Action.manage,
185
+ subject: $.Subject.Business.menu_importExport
186
+ };
187
+ return q([t], r).granted;
188
+ });
189
+ return be().resetOnMount(), (r, t) => {
190
+ const a = w("fm-button");
191
+ return l(), m(ge, {
192
+ heading: e(n)("menu.products.title")
193
+ }, {
194
+ default: p(() => [
195
+ u($e),
196
+ u(ke)
197
+ ]),
198
+ "append-heading": p(() => [
199
+ d("div", Ae, [
200
+ d("div", Ee, [
201
+ d("div", Te, [
202
+ d("p", Ie, Z(v.value), 1)
203
+ ])
204
+ ]),
205
+ d("div", De, [
206
+ ae.value ? (l(), m(O, { key: 1 }, {
207
+ default: p(({ trigger: s }) => [
208
+ u(fe, null, {
209
+ default: p(() => [
210
+ u(G, {
211
+ label: e(n)("menu.products.actions.export"),
212
+ onClick: A
213
+ }, null, 8, ["label"]),
214
+ u(G, {
215
+ label: e(n)("menu.products.actions.import"),
216
+ onClick: s
217
+ }, null, 8, ["label", "onClick"])
218
+ ]),
219
+ _: 2
220
+ }, 1024)
221
+ ]),
222
+ _: 1
223
+ })) : (l(), P(H, { key: 0 }, [
224
+ se.value ? (l(), m(xe, { key: 0 }, {
225
+ default: p(({ trigger: s }) => [
226
+ u(a, {
227
+ label: e(n)("menu.tree_editor.title"),
228
+ "bg-color": e(h).NeutralGray100,
229
+ "text-color": e(h).TypoSecondary,
230
+ variant: e(T).Primary,
231
+ onClick: s
232
+ }, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
233
+ ]),
234
+ _: 1
235
+ })) : C("", !0),
236
+ z.value ? (l(), m(a, {
237
+ key: 1,
238
+ "bg-color": e(h).NeutralGray100,
239
+ "text-color": e(h).TypoSecondary,
240
+ variant: e(T).Primary,
241
+ label: e(n)("menu.products.actions.export"),
242
+ onClick: A
243
+ }, null, 8, ["bg-color", "text-color", "variant", "label"])) : C("", !0),
244
+ z.value ? (l(), m(O, { key: 2 }, {
245
+ default: p(({ trigger: s }) => [
246
+ u(a, {
247
+ "bg-color": e(h).NeutralGray100,
248
+ "text-color": e(h).TypoSecondary,
249
+ variant: e(T).Primary,
250
+ label: e(n)("menu.products.actions.import"),
251
+ onClick: s
252
+ }, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
253
+ ]),
254
+ _: 1
255
+ })) : C("", !0)
256
+ ], 64)),
257
+ v.value > 0 ? (l(), P(H, { key: 2 }, [
258
+ k.value.create ? (l(), m(I, {
259
+ key: 0,
260
+ label: e(n)("menu.products.actions.add"),
261
+ "prepend-icon": "add",
262
+ onClick: t[0] || (t[0] = (s) => e(g).create(null))
263
+ }, null, 8, ["label"])) : i.value ? (l(), m(J, {
264
+ key: 1,
265
+ "categorized-items": e(Y).linkableItems.value,
266
+ "initial-value": e(Y).currentItems.value,
267
+ "show-variant": !1,
268
+ "menu-items": e(M),
269
+ categories: e(b),
270
+ "link-item-rules": e(B),
271
+ "no-scheduler": i.value,
272
+ onSubmit: e(N)
273
+ }, {
274
+ default: p(({ trigger: s }) => [
275
+ u(I, {
276
+ label: e(n)("menu.products.actions.link"),
277
+ "prepend-icon": "link",
278
+ onClick: s
279
+ }, null, 8, ["label", "onClick"])
280
+ ]),
281
+ _: 1
282
+ }, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), m(J, {
283
+ key: 2,
284
+ "categorized-items": e(U).linkableItems.value,
285
+ "initial-value": e(U).currentItems.value,
286
+ "show-variant": !1,
287
+ "menu-items": e(M),
288
+ categories: e(b),
289
+ "link-item-rules": e(B),
290
+ "no-scheduler": i.value,
291
+ onSubmit: e(N)
292
+ }, {
293
+ default: p(({ trigger: s }) => [
294
+ u(I, {
295
+ label: e(n)("menu.products.actions.apply_scheduler"),
296
+ onClick: s
297
+ }, null, 8, ["label", "onClick"])
298
+ ]),
299
+ _: 1
300
+ }, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"]))
301
+ ], 64)) : C("", !0)
302
+ ])
303
+ ])
304
+ ]),
305
+ _: 1
306
+ }, 8, ["heading"]);
307
+ };
308
+ }
309
+ });
310
+ export {
311
+ Xe as default
312
+ };