@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,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as v, computed as
|
|
2
|
-
import { J as O, F as ne } from "./jszip.min-
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as Z, ref as v, computed as $, resolveComponent as W, 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-CRfpGjN8.js";
|
|
3
|
+
import { D as le, u as ie, I as D, a1 as re, a0 as ce, K as de, M as me, N as ue } from "./menu-Btcr0nsk.js";
|
|
4
4
|
import { useI18n as ge } from "@feedmepos/mf-common";
|
|
5
|
-
import { FmButtonVariant as z, useSnackbar as V, useDialog as pe, FmButtonColorThemeVariant as
|
|
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-DYs_VNfB.js";
|
|
8
|
+
import { a as be } from "./Product.vue_vue_type_script_setup_true_lang-DtYarO0L.js";
|
|
9
|
+
import { v as ve, w as _e } from "./item-5Kkzf_eF.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"
|
|
13
13
|
}, Fe = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "flex-1 flex items-center justify-center"
|
|
16
|
-
},
|
|
16
|
+
}, Me = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "flex-1 overflow-y-auto p-16"
|
|
19
|
-
},
|
|
19
|
+
}, Se = { class: "space-y-12" }, $e = { class: "fm-typo-en-body-sm font-medium" }, ze = { class: "flex" }, Pe = { class: "w-64 h-64 bg-gray-100 rounded-8 overflow-hidden flex items-center justify-center" }, Le = ["src", "alt"], Ne = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "text-gray-400 text-xs"
|
|
22
|
-
}, Te = { class: "flex" }, Ee = { class: "w-64 h-64 bg-gray-100 rounded-8 overflow-hidden" }, Be = ["src", "alt"],
|
|
22
|
+
}, Te = { class: "flex" }, Ee = { class: "w-64 h-64 bg-gray-100 rounded-8 overflow-hidden" }, Be = ["src", "alt"], Re = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "h-full flex flex-col"
|
|
25
|
-
},
|
|
25
|
+
}, Ae = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "flex-1 flex items-center justify-center"
|
|
28
28
|
}, Oe = {
|
|
29
29
|
key: 1,
|
|
30
30
|
class: "flex-1 overflow-y-auto p-16"
|
|
31
|
-
}, De = { class: "space-y-12" }, Ve = { class: "fm-typo-en-body-sm font-medium break-all" }, Ze = { class: "flex" },
|
|
31
|
+
}, De = { class: "space-y-12" }, Ve = { class: "fm-typo-en-body-sm font-medium break-all" }, Ze = { class: "flex" }, We = { class: "w-64 h-64 bg-gray-100 rounded-8 overflow-hidden" }, qe = ["src", "alt"], Ge = /* @__PURE__ */ Z({
|
|
32
32
|
__name: "ImageUpdatePreview",
|
|
33
33
|
props: {
|
|
34
34
|
matchedImages: {},
|
|
@@ -36,15 +36,15 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
36
36
|
},
|
|
37
37
|
emits: ["cancel", "update"],
|
|
38
38
|
setup(L, { emit: j }) {
|
|
39
|
-
const u = L, F = j, y = v("matched"), b =
|
|
39
|
+
const u = L, F = j, y = v("matched"), b = $(() => u.matchedImages.length), k = $(() => u.unmatchedImages.length);
|
|
40
40
|
function _() {
|
|
41
41
|
F("cancel");
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function M() {
|
|
44
44
|
F("update", u.matchedImages);
|
|
45
45
|
}
|
|
46
46
|
return (w, l) => {
|
|
47
|
-
const x =
|
|
47
|
+
const x = W("fm-button");
|
|
48
48
|
return r(), c("div", we, [
|
|
49
49
|
s("div", xe, [
|
|
50
50
|
l[2] || (l[2] = s("h2", { class: "fm-typo-en-headline-sm font-semibold" }, "Update Product Images", -1)),
|
|
@@ -58,7 +58,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
58
58
|
variant: h(z).Primary,
|
|
59
59
|
label: "Update",
|
|
60
60
|
disabled: b.value === 0,
|
|
61
|
-
onClick:
|
|
61
|
+
onClick: M
|
|
62
62
|
}, null, 8, ["variant", "disabled"])
|
|
63
63
|
])
|
|
64
64
|
]),
|
|
@@ -85,18 +85,18 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
85
85
|
y.value === "matched" ? (r(), c("div", je, [
|
|
86
86
|
b.value === 0 ? (r(), c("div", Fe, l[3] || (l[3] = [
|
|
87
87
|
B('<div class="text-center text-gray-500"><svg class="mx-auto h-48 w-48 text-gray-400 mb-16" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg><p class="fm-typo-en-body-lg text-gray-500">No matched images found</p><p class="fm-typo-en-body-sm text-gray-400 mt-4"> Make sure your image filenames match product names </p></div>', 1)
|
|
88
|
-
]))) : (r(), c("div",
|
|
88
|
+
]))) : (r(), c("div", Me, [
|
|
89
89
|
l[4] || (l[4] = s("div", { class: "grid grid-cols-3 gap-16 pb-12 border-b border-gray-200 mb-16" }, [
|
|
90
90
|
s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Product Name"),
|
|
91
91
|
s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Current Image"),
|
|
92
92
|
s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "New Image")
|
|
93
93
|
], -1)),
|
|
94
|
-
s("div",
|
|
95
|
-
(r(!0), c(P, null,
|
|
94
|
+
s("div", Se, [
|
|
95
|
+
(r(!0), c(P, null, R(u.matchedImages, (m, C) => (r(), c("div", {
|
|
96
96
|
key: C,
|
|
97
97
|
class: "grid grid-cols-3 gap-16 py-12 border-b border-gray-100 items-center"
|
|
98
98
|
}, [
|
|
99
|
-
s("div",
|
|
99
|
+
s("div", $e, U(m.productName), 1),
|
|
100
100
|
s("div", ze, [
|
|
101
101
|
s("div", Pe, [
|
|
102
102
|
m.originalThumbnail ? (r(), c("img", {
|
|
@@ -119,8 +119,8 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
119
119
|
]))), 128))
|
|
120
120
|
])
|
|
121
121
|
]))
|
|
122
|
-
])) : y.value === "unmatched" ? (r(), c("div",
|
|
123
|
-
k.value === 0 ? (r(), c("div",
|
|
122
|
+
])) : y.value === "unmatched" ? (r(), c("div", Re, [
|
|
123
|
+
k.value === 0 ? (r(), c("div", Ae, l[5] || (l[5] = [
|
|
124
124
|
B('<div class="text-center text-gray-500"><svg class="mx-auto h-48 w-48 text-gray-400 mb-16" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg><p class="fm-typo-en-body-lg text-gray-500">All images matched!</p><p class="fm-typo-en-body-sm text-gray-400 mt-4">No unmatched images found</p></div>', 1)
|
|
125
125
|
]))) : (r(), c("div", Oe, [
|
|
126
126
|
l[6] || (l[6] = s("div", { class: "grid grid-cols-2 gap-16 pb-12 border-b border-gray-200 mb-16" }, [
|
|
@@ -128,18 +128,18 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
128
128
|
s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Image")
|
|
129
129
|
], -1)),
|
|
130
130
|
s("div", De, [
|
|
131
|
-
(r(!0), c(P, null,
|
|
131
|
+
(r(!0), c(P, null, R(u.unmatchedImages, (m, C) => (r(), c("div", {
|
|
132
132
|
key: C,
|
|
133
133
|
class: "grid grid-cols-2 gap-16 py-12 border-b border-gray-100 items-center"
|
|
134
134
|
}, [
|
|
135
135
|
s("div", Ve, U(m.filename), 1),
|
|
136
136
|
s("div", Ze, [
|
|
137
|
-
s("div",
|
|
137
|
+
s("div", We, [
|
|
138
138
|
s("img", {
|
|
139
139
|
src: m.imageUrl,
|
|
140
140
|
alt: m.filename,
|
|
141
141
|
class: "w-full h-full object-cover"
|
|
142
|
-
}, null, 8,
|
|
142
|
+
}, null, 8, qe)
|
|
143
143
|
])
|
|
144
144
|
])
|
|
145
145
|
]))), 128))
|
|
@@ -151,24 +151,24 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
-
var
|
|
154
|
+
var Je = { firebase: { storageBucket: "image.feedme.cc" } };
|
|
155
155
|
const He = {
|
|
156
156
|
key: 0,
|
|
157
157
|
class: "h-screen"
|
|
158
158
|
}, Ke = { class: "flex-1 flex justify-between gap-8 pl-8" }, Xe = { class: "flex items-center" }, Qe = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ye = { class: "fm-typo-en-body-md-600 font-semibold" }, et = { class: "flex gap-8" }, dt = /* @__PURE__ */ Z({
|
|
159
159
|
__name: "ProductInternalTools",
|
|
160
160
|
setup(L) {
|
|
161
|
-
const { t: j } = ge(), u = le(V()), F = V(), y = pe(), b = ie(), { selectedCategories: k } = he(), _ = v(!1),
|
|
161
|
+
const { t: j } = ge(), u = le(V()), F = V(), y = pe(), b = ie(), { selectedCategories: k } = he(), _ = v(!1), M = v(), w = v([]), l = v([]), x = $(() => {
|
|
162
162
|
const e = D.flatten(k.value.map((a) => a.items));
|
|
163
163
|
return D.uniqBy(e, (a) => a._id);
|
|
164
|
-
}), m =
|
|
164
|
+
}), m = $(() => x.value.length);
|
|
165
165
|
async function C(e, a) {
|
|
166
166
|
return await _e(e, {
|
|
167
167
|
withTimestamp: !0,
|
|
168
168
|
filename: a
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
async function
|
|
171
|
+
async function q(e, a = "images.zip") {
|
|
172
172
|
const o = new O();
|
|
173
173
|
e.forEach(({ blob: d, filename: n }) => {
|
|
174
174
|
d && o.file(n, d);
|
|
@@ -176,7 +176,7 @@ const He = {
|
|
|
176
176
|
const g = await o.generateAsync({ type: "blob" });
|
|
177
177
|
ne.saveAs(g, a);
|
|
178
178
|
}
|
|
179
|
-
async function
|
|
179
|
+
async function G() {
|
|
180
180
|
const e = x.value.filter((a) => a.thumbnail);
|
|
181
181
|
if (e.length === 0) {
|
|
182
182
|
F.open({ type: "error", title: "No downloadable images found" });
|
|
@@ -215,7 +215,7 @@ const He = {
|
|
|
215
215
|
})).filter((n) => n !== null);
|
|
216
216
|
if (a.value = "Creating ZIP file...", d.length > 0) {
|
|
217
217
|
const n = `images_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.zip`;
|
|
218
|
-
await
|
|
218
|
+
await q(d, n);
|
|
219
219
|
} else
|
|
220
220
|
throw new Error("Failed to fetch any images");
|
|
221
221
|
},
|
|
@@ -227,7 +227,7 @@ const He = {
|
|
|
227
227
|
);
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
async function
|
|
230
|
+
async function J(e) {
|
|
231
231
|
const o = await new O().loadAsync(e), g = [];
|
|
232
232
|
for (const [d, n] of Object.entries(o.files)) {
|
|
233
233
|
if (n.dir || d.includes("__MACOSX/") || !N(d))
|
|
@@ -262,7 +262,7 @@ const He = {
|
|
|
262
262
|
const a = [];
|
|
263
263
|
for (const t of e)
|
|
264
264
|
if (t.type === "application/zip" || t.name.toLowerCase().endsWith(".zip")) {
|
|
265
|
-
const i = await
|
|
265
|
+
const i = await J(t);
|
|
266
266
|
a.push(...i);
|
|
267
267
|
} else N(t.name) && a.push(t);
|
|
268
268
|
const o = /* @__PURE__ */ new Map();
|
|
@@ -310,7 +310,7 @@ const He = {
|
|
|
310
310
|
const o = async (t) => {
|
|
311
311
|
const i = de(t.productId);
|
|
312
312
|
let f = "";
|
|
313
|
-
return t.newImage && (await me.update(i, t.newImage,
|
|
313
|
+
return t.newImage && (await me.update(i, t.newImage, Je.firebase.storageBucket), f = ue(i)), { productId: t.productId, newImageUrl: f };
|
|
314
314
|
};
|
|
315
315
|
a.value = `Starting upload of ${e.length} product images...`;
|
|
316
316
|
const g = await re({
|
|
@@ -343,7 +343,7 @@ const He = {
|
|
|
343
343
|
}
|
|
344
344
|
function ae() {
|
|
345
345
|
var e;
|
|
346
|
-
(e =
|
|
346
|
+
(e = M.value) == null || e.click();
|
|
347
347
|
}
|
|
348
348
|
function se(e) {
|
|
349
349
|
const a = e.target;
|
|
@@ -354,10 +354,10 @@ const He = {
|
|
|
354
354
|
a.value = "";
|
|
355
355
|
}
|
|
356
356
|
return ye().resetOnMount(), (e, a) => {
|
|
357
|
-
const o =
|
|
357
|
+
const o = W("fm-button");
|
|
358
358
|
return r(), c(P, null, [
|
|
359
359
|
_.value ? (r(), c("div", He, [
|
|
360
|
-
I(
|
|
360
|
+
I(Ge, {
|
|
361
361
|
"matched-images": w.value,
|
|
362
362
|
"unmatched-images": l.value,
|
|
363
363
|
onCancel: te,
|
|
@@ -367,10 +367,10 @@ const He = {
|
|
|
367
367
|
key: 1,
|
|
368
368
|
heading: h(j)("menu.productInternalTools.title")
|
|
369
369
|
}, {
|
|
370
|
-
default:
|
|
370
|
+
default: A(() => [
|
|
371
371
|
I(be)
|
|
372
372
|
]),
|
|
373
|
-
"append-heading":
|
|
373
|
+
"append-heading": A(() => [
|
|
374
374
|
s("div", Ke, [
|
|
375
375
|
s("div", Xe, [
|
|
376
376
|
s("div", Qe, [
|
|
@@ -379,15 +379,15 @@ const He = {
|
|
|
379
379
|
]),
|
|
380
380
|
s("div", et, [
|
|
381
381
|
I(o, {
|
|
382
|
-
"bg-color": h(
|
|
383
|
-
"text-color": h(
|
|
382
|
+
"bg-color": h(S).NeutralGray100,
|
|
383
|
+
"text-color": h(S).TypoSecondary,
|
|
384
384
|
variant: h(z).Primary,
|
|
385
385
|
label: "Download Images",
|
|
386
|
-
onClick:
|
|
386
|
+
onClick: G
|
|
387
387
|
}, null, 8, ["bg-color", "text-color", "variant"]),
|
|
388
388
|
I(o, {
|
|
389
|
-
"bg-color": h(
|
|
390
|
-
"text-color": h(
|
|
389
|
+
"bg-color": h(S).NeutralGray100,
|
|
390
|
+
"text-color": h(S).TypoSecondary,
|
|
391
391
|
variant: h(z).Primary,
|
|
392
392
|
label: "Update Images",
|
|
393
393
|
onClick: ae
|
|
@@ -399,7 +399,7 @@ const He = {
|
|
|
399
399
|
}, 8, ["heading"])),
|
|
400
400
|
s("input", {
|
|
401
401
|
ref_key: "fileInput",
|
|
402
|
-
ref:
|
|
402
|
+
ref: M,
|
|
403
403
|
type: "file",
|
|
404
404
|
multiple: "",
|
|
405
405
|
accept: "image/*,.zip",
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { defineComponent as Y, computed as g, ref as
|
|
2
|
-
import { D as C } from "./dayjs.min-
|
|
3
|
-
import { u as W, a as X, M as ee, w as te } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { J as oe, F as ne } from "./jszip.min-
|
|
5
|
-
import { u as q,
|
|
1
|
+
import { defineComponent as Y, computed as g, ref as z, resolveComponent as h, createBlock as y, openBlock as d, unref as e, withCtx as m, createElementVNode as u, toDisplayString as U, createVNode as a, createCommentVNode as L, createElementBlock as D, Fragment as T } from "vue";
|
|
2
|
+
import { D as C } from "./dayjs.min-BsfKOrNo.js";
|
|
3
|
+
import { u as W, a as X, M as ee, w as te } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BRQm-UTk.js";
|
|
4
|
+
import { J as oe, F as ne } from "./jszip.min-CRfpGjN8.js";
|
|
5
|
+
import { u as q, D as G, A as I, e as H, G as O, B as ae, H as N, I as B } from "./menu-Btcr0nsk.js";
|
|
6
6
|
import { useCoreStore as re, useI18n as se } from "@feedmepos/mf-common";
|
|
7
|
-
import { useDialog as j, useDialogChild as ie, useSnackbar as J, useBreakpoints as le, FmButtonVariant as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { _ as ue, a as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as pe } from "./item-
|
|
13
|
-
import { _ as
|
|
14
|
-
import { L as
|
|
15
|
-
import { _ as _e } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
import { m as ve } from "./toExcel-84VTtSA7.js";
|
|
19
|
-
const ge = { class: "space-y-24 mb-24" }, be = ["innerHTML"], ye = { class: "flex justify-end gap-8" }, ke = /* @__PURE__ */ Y({
|
|
7
|
+
import { useDialog as j, useDialogChild as ie, useSnackbar as J, useBreakpoints as le, FmButtonVariant as $, FmButtonColorThemeVariant as M } from "@feedmepos/ui-library";
|
|
8
|
+
import { _ as V } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
9
|
+
import { _ as ue, a as P } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
10
|
+
import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
11
|
+
import { u as me, a as de } from "./menu-DYs_VNfB.js";
|
|
12
|
+
import { u as pe } from "./item-5Kkzf_eF.js";
|
|
13
|
+
import { _ as A, a as fe } from "./Product.vue_vue_type_script_setup_true_lang-DtYarO0L.js";
|
|
14
|
+
import { L as R } from "./LinkProductSideSheet-Y-Z9_9Kp.js";
|
|
15
|
+
import { _ as _e } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-yEIxG4F2.js";
|
|
16
|
+
import { m as ve } from "./toExcel--vNjpF-b.js";
|
|
17
|
+
const ge = { class: "space-y-24 mb-24" }, be = ["innerHTML"], ye = { class: "flex justify-end gap-8" }, xe = /* @__PURE__ */ Y({
|
|
20
18
|
__name: "ConfirmActionDialog",
|
|
21
19
|
props: {
|
|
22
20
|
description: {},
|
|
@@ -24,16 +22,16 @@ const ge = { class: "space-y-24 mb-24" }, be = ["innerHTML"], ye = { class: "fle
|
|
|
24
22
|
message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
|
|
25
23
|
},
|
|
26
24
|
setup(F) {
|
|
27
|
-
const t = F, S = g(() => t.message.replace("[[value]]", t.value)), r =
|
|
25
|
+
const t = F, S = g(() => t.message.replace("[[value]]", t.value)), r = z(""), w = j(), { emitAction: x } = ie();
|
|
28
26
|
return (p, s) => {
|
|
29
27
|
const i = h("FmTextField"), f = h("FmButton"), b = h("FmForm");
|
|
30
28
|
return d(), y(b, {
|
|
31
|
-
"on-validation-success": () => e(
|
|
29
|
+
"on-validation-success": () => e(x)("primary"),
|
|
32
30
|
"blame-form-child-on-validation-failed": ""
|
|
33
31
|
}, {
|
|
34
|
-
default:
|
|
32
|
+
default: m(() => [
|
|
35
33
|
u("div", ge, [
|
|
36
|
-
u("div", null,
|
|
34
|
+
u("div", null, U(p.description), 1),
|
|
37
35
|
u("div", { innerHTML: S.value }, null, 8, be),
|
|
38
36
|
u("div", null, [
|
|
39
37
|
a(i, {
|
|
@@ -64,14 +62,14 @@ const ge = { class: "space-y-24 mb-24" }, be = ["innerHTML"], ye = { class: "fle
|
|
|
64
62
|
}, 8, ["on-validation-success"]);
|
|
65
63
|
};
|
|
66
64
|
}
|
|
67
|
-
}),
|
|
65
|
+
}), ke = /* @__PURE__ */ Y({
|
|
68
66
|
__name: "Migrate",
|
|
69
67
|
setup(F) {
|
|
70
|
-
const t = q(), S = re(), r = J(), { minor: w } = G(r),
|
|
68
|
+
const t = q(), S = re(), r = J(), { minor: w } = G(r), x = z(!1), p = j();
|
|
71
69
|
async function s() {
|
|
72
|
-
i.value ||
|
|
70
|
+
i.value || x.value || p.open({
|
|
73
71
|
title: "Migrate to new version",
|
|
74
|
-
contentComponent:
|
|
72
|
+
contentComponent: xe,
|
|
75
73
|
contentComponentProps: {
|
|
76
74
|
value: "MIGRATE",
|
|
77
75
|
description: "Do you want to migrate to new version? Once migrate it will unable to revert to the older version."
|
|
@@ -84,7 +82,7 @@ const ge = { class: "space-y-24 mb-24" }, be = ["innerHTML"], ye = { class: "fle
|
|
|
84
82
|
}, 2e3);
|
|
85
83
|
},
|
|
86
84
|
{
|
|
87
|
-
isLoading:
|
|
85
|
+
isLoading: x,
|
|
88
86
|
customId: t.state.menu._id,
|
|
89
87
|
message: "Migrating menu",
|
|
90
88
|
successMessage: "Migration completed"
|
|
@@ -95,8 +93,8 @@ const ge = { class: "space-y-24 mb-24" }, be = ["innerHTML"], ye = { class: "fle
|
|
|
95
93
|
const i = g(() => {
|
|
96
94
|
const f = S.restaurants.value;
|
|
97
95
|
if (!f.length) return "Required at least one restaurant to migrate";
|
|
98
|
-
const b = f.filter((
|
|
99
|
-
return b.length ? `Upgrade POS to V${
|
|
96
|
+
const b = f.filter((k) => !k.posVersion || !I.Pos.canUse({ feature: H.F_FEATURE.enum.menuV4, posVersion: k.posVersion }));
|
|
97
|
+
return b.length ? `Upgrade POS to V${I.Pos.minVersionToUse(H.F_FEATURE.enum.menuV4)} to use new menu: ${b.map((k) => k.profile.name).join(", ")}` : null;
|
|
100
98
|
});
|
|
101
99
|
return g(() => i.value ? i.value : "Migrate your menu to new version to enjoy more features. Content of new menu will remain the same as current."), (f, b) => {
|
|
102
100
|
const l = h("FmSnackbar");
|
|
@@ -109,42 +107,42 @@ const ge = { class: "space-y-24 mb-24" }, be = ["innerHTML"], ye = { class: "fle
|
|
|
109
107
|
action: "Migrate",
|
|
110
108
|
"z-index": 0,
|
|
111
109
|
onOnAction: s
|
|
112
|
-
})) :
|
|
110
|
+
})) : L("", !0);
|
|
113
111
|
};
|
|
114
112
|
}
|
|
115
|
-
}), Me = { class: "flex-1 flex justify-between gap-8 pl-8" }, Se = { class: "flex items-center" }, we = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ce = { class: "fm-typo-en-body-md-600 font-semibold" }, he = { class: "flex gap-8" },
|
|
113
|
+
}), Me = { class: "flex-1 flex justify-between gap-8 pl-8" }, Se = { class: "flex items-center" }, we = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ce = { class: "fm-typo-en-body-md-600 font-semibold" }, he = { class: "flex gap-8" }, Le = /* @__PURE__ */ Y({
|
|
116
114
|
__name: "Products",
|
|
117
115
|
setup(F) {
|
|
118
|
-
const { t } = se(), S = G(J()), r = q(), w = g(() => r.rules.item),
|
|
119
|
-
...ae.menuV4ToV3(
|
|
116
|
+
const { t } = se(), S = G(J()), r = q(), w = g(() => r.rules.item), x = pe(), p = g(() => !r.state.currentSchedulerId), s = W(), i = X(), { selectedCategories: f } = me(), b = g(() => ({
|
|
117
|
+
...ae.menuV4ToV3(N(r.state.menu)),
|
|
120
118
|
_id: r.state.menu._id,
|
|
121
119
|
_rev: r.state.menu._rev
|
|
122
120
|
})), l = g(() => {
|
|
123
|
-
const
|
|
124
|
-
return
|
|
121
|
+
const c = B.flatten(f.value.map((o) => o.items));
|
|
122
|
+
return B.uniqBy(c, (o) => o._id).length;
|
|
125
123
|
});
|
|
126
|
-
async function
|
|
124
|
+
async function k(c, o) {
|
|
127
125
|
const _ = new oe();
|
|
128
|
-
for (let v = 0; v <
|
|
129
|
-
const Q = await
|
|
126
|
+
for (let v = 0; v < c.length; v++) {
|
|
127
|
+
const Q = await c[v].xlsx.writeBuffer();
|
|
130
128
|
_.file(`${o[v]}.xlsx`, Q);
|
|
131
129
|
}
|
|
132
130
|
const n = await _.generateAsync({ type: "blob" });
|
|
133
131
|
ne.saveAs(n, `books_${C().format("DD-MM-YYYY_HH-mm")}.zip`);
|
|
134
132
|
}
|
|
135
|
-
async function
|
|
133
|
+
async function E() {
|
|
136
134
|
await S.minor(
|
|
137
135
|
async () => {
|
|
138
136
|
if (await r.readMenu(), r.version === O.F_MENU_VERSION.enum.v4) {
|
|
139
|
-
const
|
|
137
|
+
const c = N(r.state.menu), o = new ee(c).exportToExcel(), _ = [
|
|
140
138
|
`menu_${C().format("DD-MM-YYYY_HH-mm")}`,
|
|
141
139
|
`addonGroup_${C().format("DD-MM-YYYY_HH-mm")}`,
|
|
142
140
|
`itemLinkedAddon${C().format("DD-MM-YYYY_HH-mm")}`
|
|
143
141
|
];
|
|
144
|
-
|
|
142
|
+
k(o, _);
|
|
145
143
|
} else {
|
|
146
|
-
const
|
|
147
|
-
await te(
|
|
144
|
+
const c = ve(b.value), o = `menu_${C().format("DD-MM-YYYY_HH-mm")}`;
|
|
145
|
+
await te(c, `${o}.xlsx`, {
|
|
148
146
|
bookType: "xlsx",
|
|
149
147
|
bookSST: !1,
|
|
150
148
|
type: "array"
|
|
@@ -155,32 +153,32 @@ const ge = { class: "space-y-24 mb-24" }, be = ["innerHTML"], ye = { class: "fle
|
|
|
155
153
|
);
|
|
156
154
|
}
|
|
157
155
|
const Z = le(), K = g(() => Z.breakpoints.value.xs);
|
|
158
|
-
return de().resetOnMount(), (
|
|
156
|
+
return de().resetOnMount(), (c, o) => {
|
|
159
157
|
const _ = h("fm-button");
|
|
160
|
-
return d(), y(
|
|
158
|
+
return d(), y(ce, {
|
|
161
159
|
heading: e(t)("menu.products.title")
|
|
162
160
|
}, {
|
|
163
|
-
default:
|
|
164
|
-
a(
|
|
161
|
+
default: m(() => [
|
|
162
|
+
a(ke),
|
|
165
163
|
a(fe)
|
|
166
164
|
]),
|
|
167
|
-
"append-heading":
|
|
165
|
+
"append-heading": m(() => [
|
|
168
166
|
u("div", Me, [
|
|
169
167
|
u("div", Se, [
|
|
170
168
|
u("div", we, [
|
|
171
|
-
u("p", Ce,
|
|
169
|
+
u("p", Ce, U(l.value), 1)
|
|
172
170
|
])
|
|
173
171
|
]),
|
|
174
172
|
u("div", he, [
|
|
175
|
-
K.value ? (d(), y(
|
|
176
|
-
default:
|
|
173
|
+
K.value ? (d(), y(A, { key: 1 }, {
|
|
174
|
+
default: m(({ trigger: n }) => [
|
|
177
175
|
a(ue, null, {
|
|
178
|
-
default:
|
|
179
|
-
a(
|
|
176
|
+
default: m(() => [
|
|
177
|
+
a(P, {
|
|
180
178
|
label: e(t)("menu.products.actions.export"),
|
|
181
|
-
onClick:
|
|
179
|
+
onClick: E
|
|
182
180
|
}, null, 8, ["label"]),
|
|
183
|
-
a(
|
|
181
|
+
a(P, {
|
|
184
182
|
label: e(t)("menu.products.actions.import"),
|
|
185
183
|
onClick: n
|
|
186
184
|
}, null, 8, ["label", "onClick"])
|
|
@@ -189,14 +187,14 @@ const ge = { class: "space-y-24 mb-24" }, be = ["innerHTML"], ye = { class: "fle
|
|
|
189
187
|
}, 1024)
|
|
190
188
|
]),
|
|
191
189
|
_: 1
|
|
192
|
-
})) : (d(), T
|
|
190
|
+
})) : (d(), D(T, { key: 0 }, [
|
|
193
191
|
a(_e, null, {
|
|
194
|
-
default:
|
|
192
|
+
default: m(({ trigger: n }) => [
|
|
195
193
|
a(_, {
|
|
196
194
|
label: e(t)("menu.tree_editor.title"),
|
|
197
195
|
"bg-color": e(M).NeutralGray100,
|
|
198
196
|
"text-color": e(M).TypoSecondary,
|
|
199
|
-
variant: e(
|
|
197
|
+
variant: e($).Primary,
|
|
200
198
|
onClick: n
|
|
201
199
|
}, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
|
|
202
200
|
]),
|
|
@@ -205,16 +203,16 @@ const ge = { class: "space-y-24 mb-24" }, be = ["innerHTML"], ye = { class: "fle
|
|
|
205
203
|
a(_, {
|
|
206
204
|
"bg-color": e(M).NeutralGray100,
|
|
207
205
|
"text-color": e(M).TypoSecondary,
|
|
208
|
-
variant: e(
|
|
206
|
+
variant: e($).Primary,
|
|
209
207
|
label: e(t)("menu.products.actions.export"),
|
|
210
|
-
onClick:
|
|
208
|
+
onClick: E
|
|
211
209
|
}, null, 8, ["bg-color", "text-color", "variant", "label"]),
|
|
212
|
-
a(
|
|
213
|
-
default:
|
|
210
|
+
a(A, null, {
|
|
211
|
+
default: m(({ trigger: n }) => [
|
|
214
212
|
a(_, {
|
|
215
213
|
"bg-color": e(M).NeutralGray100,
|
|
216
214
|
"text-color": e(M).TypoSecondary,
|
|
217
|
-
variant: e(
|
|
215
|
+
variant: e($).Primary,
|
|
218
216
|
label: e(t)("menu.products.actions.import"),
|
|
219
217
|
onClick: n
|
|
220
218
|
}, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
|
|
@@ -222,43 +220,43 @@ const ge = { class: "space-y-24 mb-24" }, be = ["innerHTML"], ye = { class: "fle
|
|
|
222
220
|
_: 1
|
|
223
221
|
})
|
|
224
222
|
], 64)),
|
|
225
|
-
l.value > 0 ? (d(), T
|
|
226
|
-
w.value.create ? (d(), y(
|
|
223
|
+
l.value > 0 ? (d(), D(T, { key: 2 }, [
|
|
224
|
+
w.value.create ? (d(), y(V, {
|
|
227
225
|
key: 0,
|
|
228
226
|
label: e(t)("menu.products.actions.add"),
|
|
229
227
|
"prepend-icon": "add",
|
|
230
|
-
onClick: o[0] || (o[0] = (n) => e(
|
|
231
|
-
}, null, 8, ["label"])) : p.value ? (d(), y(
|
|
228
|
+
onClick: o[0] || (o[0] = (n) => e(x).create(null))
|
|
229
|
+
}, null, 8, ["label"])) : p.value ? (d(), y(R, {
|
|
232
230
|
key: 1,
|
|
233
231
|
"categorized-items": e(s).linkableItems.value,
|
|
234
232
|
"initial-value": e(s).currentItems.value,
|
|
235
233
|
"show-variant": !1,
|
|
236
234
|
onSubmit: o[1] || (o[1] = (n) => e(s).applyProduct(n.map((v) => v._id)))
|
|
237
235
|
}, {
|
|
238
|
-
default:
|
|
239
|
-
a(
|
|
236
|
+
default: m(({ trigger: n }) => [
|
|
237
|
+
a(V, {
|
|
240
238
|
label: e(t)("menu.products.actions.link"),
|
|
241
239
|
"prepend-icon": "link",
|
|
242
240
|
onClick: n
|
|
243
241
|
}, null, 8, ["label", "onClick"])
|
|
244
242
|
]),
|
|
245
243
|
_: 1
|
|
246
|
-
}, 8, ["categorized-items", "initial-value"])) : (d(), y(
|
|
244
|
+
}, 8, ["categorized-items", "initial-value"])) : (d(), y(R, {
|
|
247
245
|
key: 2,
|
|
248
246
|
"categorized-items": e(i).linkableItems.value,
|
|
249
247
|
"initial-value": e(i).currentItems.value,
|
|
250
248
|
"show-variant": !1,
|
|
251
249
|
onSubmit: o[2] || (o[2] = (n) => e(i).applyProduct(n.map((v) => v._id)))
|
|
252
250
|
}, {
|
|
253
|
-
default:
|
|
254
|
-
a(
|
|
251
|
+
default: m(({ trigger: n }) => [
|
|
252
|
+
a(V, {
|
|
255
253
|
label: e(t)("menu.products.actions.apply_scheduler"),
|
|
256
254
|
onClick: n
|
|
257
255
|
}, null, 8, ["label", "onClick"])
|
|
258
256
|
]),
|
|
259
257
|
_: 1
|
|
260
258
|
}, 8, ["categorized-items", "initial-value"]))
|
|
261
|
-
], 64)) :
|
|
259
|
+
], 64)) : L("", !0)
|
|
262
260
|
])
|
|
263
261
|
])
|
|
264
262
|
]),
|
|
@@ -268,5 +266,5 @@ const ge = { class: "space-y-24 mb-24" }, be = ["innerHTML"], ye = { class: "fle
|
|
|
268
266
|
}
|
|
269
267
|
});
|
|
270
268
|
export {
|
|
271
|
-
|
|
269
|
+
Le as default
|
|
272
270
|
};
|