@feedmepos/mf-menu 0.31.74 → 0.31.75-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-B6Hn5Wwr.js → App-Cw2D3IXT.js} +528 -585
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-CFtcqy58.js +161 -0
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js +74 -0
- package/dist/{Catalog-D-2hDU2I.js → Catalog-B5kAKdVW.js} +9 -9
- package/dist/{Category-hSOIgBkH.js → Category-CAd9BTRX.js} +8 -8
- package/dist/{Category-DjTbuAvE.js → Category-DKjU47aW.js} +5 -5
- package/dist/{CookingGuide-D7ruB7eP.js → CookingGuide-BN739JkB.js} +7 -7
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-mxVSGXAz.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-gii2CTYD.js} +3 -3
- package/dist/{Group-evJZbgZn.js → Group-DmII5Nwf.js} +4 -4
- package/dist/{Group-CjlhbhDV.js → Group-DnpVxZkN.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DiKraPiw.js → Group.vue_vue_type_script_setup_true_lang-BEeCwmKt.js} +163 -163
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BYku8MAc.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DB5B3PLx.js} +90 -90
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DScxctPb.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BEISm7uc.js} +3046 -3046
- package/dist/{Ingredient-jNDx1pUw.js → Ingredient-CpuyDF4n.js} +30 -30
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CuM_k-C3.js → InventoryBinding.vue_vue_type_script_setup_true_lang-GHiwD8VV.js} +1112 -1112
- package/dist/{LinkProductSideSheet-CAPIdf6P.js → LinkProductSideSheet-DrSKOBLg.js} +129 -129
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js +69 -0
- package/dist/{MenuSetting-C2MDgy57.js → MenuSetting-BNuIUnjz.js} +138 -138
- package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js → PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js} +8 -8
- package/dist/{PrintRoute-SmWbKr9Y.js → PrintRoute-Dl0oWYju.js} +6 -6
- package/dist/{Product-BCm49V9T.js → Product-IQBP1vvY.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CTOjLqbF.js → Product.vue_vue_type_script_setup_true_lang-Bdss6VRj.js} +607 -607
- package/dist/{ProductInternalTools-DGsvvnIs.js → ProductInternalTools-Dkhbg1WE.js} +11 -11
- package/dist/{Products-D4qeSEfO.js → Products-Dcafs3Lk.js} +59 -59
- package/dist/{Publish-3A3EEQ9x.js → Publish-BTuO4AlR.js} +6 -6
- package/dist/{Recipe-CS7TZGA6.js → Recipe-Dx2ZkHsk.js} +6 -6
- package/dist/{Scheduler-BIwTUJMJ.js → Scheduler-Dh_0J2g9.js} +5 -5
- package/dist/{ServingSequence-C0N8wJfr.js → ServingSequence-DXhx9dcu.js} +5 -5
- package/dist/{Setting-fA6tvQK2.js → Setting-4x_w46t_.js} +5 -5
- package/dist/{Subcategory-BAFAmflQ.js → Subcategory-vztBpQnB.js} +6 -6
- package/dist/{Takeaway-D4aO8zzN.js → Takeaway-CDgIyUrN.js} +5 -5
- package/dist/{Takeaway-CLZouw1j.js → Takeaway-Dz5PxJk_.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-1oN-i9bo.js → Takeaway.vue_vue_type_script_setup_true_lang-BMMXiDFL.js} +6 -6
- package/dist/{TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js → TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Dwol_Lkd.js → Thumbnail.vue_vue_type_script_setup_true_lang-DJ8JMV28.js} +74 -74
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-cTzWxjM4.js +5996 -0
- package/dist/{Unit-ByqUb4Po.js → Unit-z7OVmlSq.js} +4 -4
- package/dist/{Variant-BmqrUfen.js → Variant-CFRgvlXf.js} +5 -5
- package/dist/{_id_-RUWzOB0B.js → _id_-B9q3j4_m.js} +11 -11
- package/dist/{app-B1N2F0j8.js → app-CdsS_tMb.js} +1 -1
- package/dist/app-CkCBPor3.js +363 -0
- package/dist/{app-5fxKLAzS.js → app-CzXxFrl1.js} +447 -447
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +0 -1
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/SubcategoryManager/SubcategorySelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-B8qYyYR6.js +13 -0
- package/dist/assets/override-menu-nmSTTTn7.js +13 -0
- package/dist/assets/validate-menu-CF1XZECU.js +13 -0
- package/dist/{catalog-CarmtheV.js → catalog-DBBEUpMo.js} +1 -1
- package/dist/{catalogSetting-BqrTpBP8.js → catalogSetting-DKvBjleU.js} +1 -1
- package/dist/{category-5R83ypNS.js → category-DILExwHL.js} +1 -1
- package/dist/{currency-CUl4r9rT.js → currency-B7Xm1xZJ.js} +1 -1
- package/dist/customAttributes-DrA0YC82.js +180 -0
- package/dist/{index-Ttqt4iFV.js → index-2lrKSO_O.js} +20 -20
- package/dist/{index-DlwLw-BQ.js → index-BoVEGKz7.js} +91 -91
- package/dist/{index-DAWSNP3G.js → index-Bu5LuO1j.js} +4 -4
- package/dist/{index-DUfYYdZ-.js → index-SNNvjtFa.js} +56 -56
- package/dist/{index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js → index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js} +16 -16
- package/dist/{item-B0UPYxsB.js → item-BnOnvN8x.js} +3091 -3174
- package/dist/{iteration-CfmAZiOO.js → iteration-Csz_aSxy.js} +3 -3
- package/dist/{jszip.min-zROpry0S.js → jszip.min-B0T3I-lE.js} +329 -329
- package/dist/{menu-DAac726D.js → menu-3XEn1C9F.js} +6402 -6332
- package/dist/{menu-DpYo8dYR.js → menu-DzbYSPGP.js} +1 -1
- package/dist/{menuV2-DZj_FPqR.js → menuV2-cXg54GYW.js} +93 -93
- package/dist/mf-menu.css +1 -1
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
- package/dist/{priceTier-BvDLl8v2.js → priceTier-DVd27LFd.js} +1 -1
- package/dist/{scheduler-pNUXG6En.js → scheduler-D8IgBrUX.js} +6 -6
- package/dist/{subcategory-DCDCQnAX.js → subcategory-BOpm3s8K.js} +2 -2
- package/dist/{toExcel-DqMa1Hn8.js → toExcel-BJM3fOB2.js} +2 -2
- package/dist/{unit-CuCXoWPG.js → unit-DF9d3piP.js} +151 -151
- package/dist/{vuedraggable-CK8z7qA8.js → vuedraggable-DnBIRDMr.js} +2 -2
- package/package.json +5 -5
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-CqGU3bJQ.js +0 -161
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +0 -74
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +0 -69
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CabQS55D.js +0 -6012
- package/dist/app-CHpw_EM1.js +0 -2101
- package/dist/apps/mf-menu/src/components/feature/RemyButton.vue.d.ts +0 -15
- package/dist/apps/mf-menu/src/components/feature/RemyDialog.vue.d.ts +0 -15
- package/dist/apps/mf-menu/src/helper/remy.d.ts +0 -5
- package/dist/assets/linked-status-CFdi7K3K.js +0 -13
- package/dist/assets/override-menu-CXOY8i3w.js +0 -13
- package/dist/assets/validate-menu-DLlrsx2f.js +0 -13
- package/dist/customAttributes-BkqKM_KW.js +0 -180
|
@@ -1,13 +1,13 @@
|
|
|
1
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-
|
|
3
|
-
import { D as le, u as ie, I as D, $ as re, K as ce, M as de, N as me } from "./menu-
|
|
2
|
+
import { J as O, F as ne } from "./jszip.min-B0T3I-lE.js";
|
|
3
|
+
import { D as le, u as ie, I as D, $ as re, K as ce, M as de, N as me } from "./menu-3XEn1C9F.js";
|
|
4
4
|
import { useI18n as ue } from "@feedmepos/mf-common";
|
|
5
5
|
import { FmButtonVariant as z, useSnackbar as V, useDialog as pe, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
|
|
6
|
-
import { _ as ge } from "./PageLayout.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as fe, a as he } from "./menu-
|
|
8
|
-
import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as ge } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
|
|
7
|
+
import { u as fe, a as he } from "./menu-DzbYSPGP.js";
|
|
8
|
+
import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-Bdss6VRj.js";
|
|
9
9
|
import { p as be } from "./tooltip-CQW9YRO5.js";
|
|
10
|
-
import {
|
|
10
|
+
import { s as ve, t as _e } from "./item-BnOnvN8x.js";
|
|
11
11
|
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 = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "h-full flex flex-col"
|
|
@@ -84,9 +84,9 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
84
84
|
]),
|
|
85
85
|
s("div", Ue, [
|
|
86
86
|
y.value === "matched" ? (r(), c("div", je, [
|
|
87
|
-
b.value === 0 ? (r(), c("div", Fe, l[3] || (l[3] = [
|
|
87
|
+
b.value === 0 ? (r(), c("div", Fe, [...l[3] || (l[3] = [
|
|
88
88
|
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)
|
|
89
|
-
]))) : (r(), c("div", Me, [
|
|
89
|
+
])])) : (r(), c("div", Me, [
|
|
90
90
|
l[4] || (l[4] = s("div", { class: "grid grid-cols-3 gap-16 pb-12 border-b border-gray-200 mb-16" }, [
|
|
91
91
|
s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Product Name"),
|
|
92
92
|
s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Current Image"),
|
|
@@ -121,9 +121,9 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
121
121
|
])
|
|
122
122
|
]))
|
|
123
123
|
])) : y.value === "unmatched" ? (r(), c("div", Re, [
|
|
124
|
-
k.value === 0 ? (r(), c("div", Ae, l[5] || (l[5] = [
|
|
124
|
+
k.value === 0 ? (r(), c("div", Ae, [...l[5] || (l[5] = [
|
|
125
125
|
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)
|
|
126
|
-
]))) : (r(), c("div", Oe, [
|
|
126
|
+
])])) : (r(), c("div", Oe, [
|
|
127
127
|
l[6] || (l[6] = s("div", { class: "grid grid-cols-2 gap-16 pb-12 border-b border-gray-200 mb-16" }, [
|
|
128
128
|
s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Filename"),
|
|
129
129
|
s("div", { class: "fm-typo-en-body-sm-600 font-semibold text-gray-700" }, "Image")
|
|
@@ -152,7 +152,7 @@ const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center j
|
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
|
-
var Je = { firebase: { storageBucket: "image.
|
|
155
|
+
var Je = { firebase: { storageBucket: "image.feedme.cc" } };
|
|
156
156
|
const He = {
|
|
157
157
|
key: 0,
|
|
158
158
|
class: "h-screen"
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
var le = Object.defineProperty;
|
|
2
|
-
var ue = (
|
|
3
|
-
var K = (
|
|
2
|
+
var ue = (k, e, i) => e in k ? le(k, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : k[e] = i;
|
|
3
|
+
var K = (k, e, i) => ue(k, typeof e != "symbol" ? e + "" : e, i);
|
|
4
4
|
import { defineComponent as W, computed as S, ref as te, resolveComponent as V, createBlock as D, openBlock as E, unref as l, withCtx as I, createElementVNode as M, toDisplayString as oe, createVNode as _, createCommentVNode as ae, createElementBlock as j, Fragment as B } from "vue";
|
|
5
|
-
import { D as G } from "./iteration-
|
|
6
|
-
import { m as R, A as P, f as h, a as H, b as L, e as A, n as O, w as de } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { J as pe, F as fe } from "./jszip.min-
|
|
8
|
-
import { u as re, D as ne, A as J, G as z, z as ie, B as be, H as q, I as X } from "./menu-
|
|
5
|
+
import { D as G } from "./iteration-Csz_aSxy.js";
|
|
6
|
+
import { m as R, A as P, f as h, a as H, b as L, e as A, n as O, w as de } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BEISm7uc.js";
|
|
7
|
+
import { J as pe, F as fe } from "./jszip.min-B0T3I-lE.js";
|
|
8
|
+
import { u as re, D as ne, A as J, G as z, z as ie, B as be, H as q, I as X } from "./menu-3XEn1C9F.js";
|
|
9
9
|
import { useCoreStore as ge, useI18n as he } from "@feedmepos/mf-common";
|
|
10
10
|
import { useDialog as se, useDialogChild as ye, useSnackbar as ce, useBreakpoints as _e, FmButtonVariant as U, FmButtonColorThemeVariant as N } from "@feedmepos/ui-library";
|
|
11
11
|
import { _ as Y } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
12
|
-
import { _ as ke, a as Z } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { u as we, a as xe } from "./menu-
|
|
15
|
-
import { u as Ce } from "./item-
|
|
16
|
-
import { _ as Q, a as Fe } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { L as ee } from "./LinkProductSideSheet-
|
|
18
|
-
import { _ as Me } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { u as Ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import { m as Ee } from "./toExcel-
|
|
12
|
+
import { _ as ke, a as Z } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js";
|
|
13
|
+
import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
|
|
14
|
+
import { u as we, a as xe } from "./menu-DzbYSPGP.js";
|
|
15
|
+
import { u as Ce } from "./item-BnOnvN8x.js";
|
|
16
|
+
import { _ as Q, a as Fe } from "./Product.vue_vue_type_script_setup_true_lang-Bdss6VRj.js";
|
|
17
|
+
import { L as ee } from "./LinkProductSideSheet-DrSKOBLg.js";
|
|
18
|
+
import { _ as Me } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-cTzWxjM4.js";
|
|
19
|
+
import { u as Ie } from "./Thumbnail.vue_vue_type_script_setup_true_lang-DJ8JMV28.js";
|
|
20
|
+
import { m as Ee } from "./toExcel-BJM3fOB2.js";
|
|
21
21
|
const Te = { class: "space-y-24 mb-24" }, Se = ["innerHTML"], De = { class: "flex justify-end gap-8" }, Ne = /* @__PURE__ */ W({
|
|
22
22
|
__name: "ConfirmActionDialog",
|
|
23
23
|
props: {
|
|
@@ -25,8 +25,8 @@ const Te = { class: "space-y-24 mb-24" }, Se = ["innerHTML"], De = { class: "fle
|
|
|
25
25
|
value: {},
|
|
26
26
|
message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
|
|
27
27
|
},
|
|
28
|
-
setup(
|
|
29
|
-
const e =
|
|
28
|
+
setup(k) {
|
|
29
|
+
const e = k, i = S(() => e.message.replace("[[value]]", e.value)), a = te(""), t = se(), { emitAction: r } = ye();
|
|
30
30
|
return (n, o) => {
|
|
31
31
|
const m = V("FmTextField"), s = V("FmButton"), d = V("FmForm");
|
|
32
32
|
return E(), D(d, {
|
|
@@ -35,7 +35,7 @@ const Te = { class: "space-y-24 mb-24" }, Se = ["innerHTML"], De = { class: "fle
|
|
|
35
35
|
}, {
|
|
36
36
|
default: I(() => [
|
|
37
37
|
M("div", Te, [
|
|
38
|
-
M("div", null, oe(
|
|
38
|
+
M("div", null, oe(k.description), 1),
|
|
39
39
|
M("div", { innerHTML: i.value }, null, 8, Se),
|
|
40
40
|
M("div", null, [
|
|
41
41
|
_(m, {
|
|
@@ -45,8 +45,8 @@ const Te = { class: "space-y-24 mb-24" }, Se = ["innerHTML"], De = { class: "fle
|
|
|
45
45
|
o[1] || (o[1] = () => {
|
|
46
46
|
})
|
|
47
47
|
],
|
|
48
|
-
placeholder:
|
|
49
|
-
rules: [(c) => c ===
|
|
48
|
+
placeholder: k.value,
|
|
49
|
+
rules: [(c) => c === k.value || "Value does not match"]
|
|
50
50
|
}, null, 8, ["modelValue", "placeholder", "rules"])
|
|
51
51
|
]),
|
|
52
52
|
M("div", De, [
|
|
@@ -68,7 +68,7 @@ const Te = { class: "space-y-24 mb-24" }, Se = ["innerHTML"], De = { class: "fle
|
|
|
68
68
|
}
|
|
69
69
|
}), Ke = /* @__PURE__ */ W({
|
|
70
70
|
__name: "Migrate",
|
|
71
|
-
setup(
|
|
71
|
+
setup(k) {
|
|
72
72
|
const e = re(), i = ge(), a = ce(), { minor: t } = ne(a), r = te(!1), n = se();
|
|
73
73
|
async function o() {
|
|
74
74
|
m.value || r.value || n.open({
|
|
@@ -162,18 +162,18 @@ class Ge {
|
|
|
162
162
|
(p) => p.combinationKey
|
|
163
163
|
), d = r[o._id] || [], c = s.filter((p) => !d.includes(p)), u = [];
|
|
164
164
|
if (c.forEach((p) => {
|
|
165
|
-
const
|
|
165
|
+
const v = m.variant.variantCombinations.find(
|
|
166
166
|
(g) => g.combinationKey === p
|
|
167
167
|
);
|
|
168
|
-
|
|
168
|
+
v && (u.push({
|
|
169
169
|
_id: o._id,
|
|
170
170
|
combinationKey: p,
|
|
171
|
-
price:
|
|
172
|
-
orderFrom:
|
|
171
|
+
price: v.price,
|
|
172
|
+
orderFrom: v.orderFrom
|
|
173
173
|
}), r[o._id].push(p));
|
|
174
174
|
}), u.length > 0) {
|
|
175
|
-
const p = e.findIndex((g) => g._id === o._id && !g.combinationKey),
|
|
176
|
-
e.splice(
|
|
175
|
+
const p = e.findIndex((g) => g._id === o._id && !g.combinationKey), v = p >= 0 ? p + 1 : n + 1;
|
|
176
|
+
e.splice(v, 0, ...u), n += u.length;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
}
|
|
@@ -293,7 +293,7 @@ class Ge {
|
|
|
293
293
|
throw new Error("Invalid addon group id");
|
|
294
294
|
const n = {};
|
|
295
295
|
return r.items.map((o, m) => {
|
|
296
|
-
var g,
|
|
296
|
+
var g, x, C;
|
|
297
297
|
const s = this.menu.modules.item.find((y) => y._id === o._id);
|
|
298
298
|
if (!s)
|
|
299
299
|
throw new Error("Invalid item id");
|
|
@@ -301,12 +301,12 @@ class Ge {
|
|
|
301
301
|
o.combinationKey && (d = (g = s.variant) == null ? void 0 : g.variantCombinations.find(
|
|
302
302
|
(y) => y.combinationKey === o.combinationKey
|
|
303
303
|
));
|
|
304
|
-
const c = (
|
|
304
|
+
const c = (x = t.items) == null ? void 0 : x.find(
|
|
305
305
|
(y) => y._id === o._id && y.combinationKey === o.combinationKey
|
|
306
306
|
), u = s.name, p = R(
|
|
307
307
|
this.menu,
|
|
308
308
|
((C = s.variant) == null ? void 0 : C.variantGroupIds) ?? []
|
|
309
|
-
),
|
|
309
|
+
), v = (c == null ? void 0 : c.price) ?? o.price ?? (d == null ? void 0 : d.price) ?? s.price;
|
|
310
310
|
return o.name && !o.combinationKey && (n[o._id] = o.name), {
|
|
311
311
|
id: t._id,
|
|
312
312
|
name: r.name,
|
|
@@ -319,7 +319,7 @@ class Ge {
|
|
|
319
319
|
itemNameOverrider: n[o._id] || "",
|
|
320
320
|
combinationKey: o.combinationKey ?? "",
|
|
321
321
|
combinationName: o.combinationKey ? p[o.combinationKey] : "",
|
|
322
|
-
price: parseFloat(h(
|
|
322
|
+
price: parseFloat(h(v)),
|
|
323
323
|
priceTier: o.priceTiers || {},
|
|
324
324
|
orderFrom: (c == null ? void 0 : c.orderFrom) ?? o.orderFrom ?? s.orderFrom ?? "ALL",
|
|
325
325
|
isDefault: o.isDefault === !0 ? "T" : "",
|
|
@@ -383,10 +383,10 @@ class Ge {
|
|
|
383
383
|
}), e;
|
|
384
384
|
}
|
|
385
385
|
exportToExcel() {
|
|
386
|
-
var
|
|
386
|
+
var v;
|
|
387
387
|
const e = [], { rows: i, metaData: a } = this.transformData();
|
|
388
|
-
a.priceTiers = ((
|
|
389
|
-
const t = i.map(({ priceTier: g, tag:
|
|
388
|
+
a.priceTiers = ((v = this.menu.priceTierSettings) == null ? void 0 : v.map((g) => g.key)) || [];
|
|
389
|
+
const t = i.map(({ priceTier: g, tag: x, ...C }) => {
|
|
390
390
|
const y = Object.entries(C), F = y.findIndex(([b]) => b === "price");
|
|
391
391
|
return [
|
|
392
392
|
...y.slice(0, F + 1).map(([, b]) => b),
|
|
@@ -394,7 +394,7 @@ class Ge {
|
|
|
394
394
|
(b) => parseFloat(h(g[b])) || ""
|
|
395
395
|
),
|
|
396
396
|
...y.slice(F + 1).map(([, b]) => b),
|
|
397
|
-
...a.tags.map((b) =>
|
|
397
|
+
...a.tags.map((b) => x[b] || "")
|
|
398
398
|
];
|
|
399
399
|
}), r = this.createWorkbookExcelJS(
|
|
400
400
|
t,
|
|
@@ -402,8 +402,8 @@ class Ge {
|
|
|
402
402
|
this.exportCatalogToExcelExcelJS()
|
|
403
403
|
), n = r.worksheets[0];
|
|
404
404
|
H(n, a.tags, a.priceTiers), this.formatWorkbookCell(r);
|
|
405
|
-
const m = this.transformAddonGroup().map(({ priceTier: g, ...
|
|
406
|
-
const { index: C, ...y } =
|
|
405
|
+
const m = this.transformAddonGroup().map(({ priceTier: g, ...x }) => {
|
|
406
|
+
const { index: C, ...y } = x, F = Object.entries(y), b = F.findIndex(([f]) => f === "price");
|
|
407
407
|
return [
|
|
408
408
|
...F.slice(0, b + 1).map(([, f]) => f),
|
|
409
409
|
...a.priceTiers.map(
|
|
@@ -419,10 +419,10 @@ class Ge {
|
|
|
419
419
|
L(d, a.priceTiers), this.formatWorkbookCell(s);
|
|
420
420
|
const c = this.transformItemsLinkWithGroup(), u = Object.keys(c), p = new A.Workbook();
|
|
421
421
|
if (u.length > 0)
|
|
422
|
-
u.forEach((g,
|
|
422
|
+
u.forEach((g, x) => {
|
|
423
423
|
const C = Object.values(c[g]), y = this.menu.modules.group.find((f) => f._id === g);
|
|
424
424
|
if (!y) throw new Error(`Group not found for id: ${g}`);
|
|
425
|
-
const F = O(`${
|
|
425
|
+
const F = O(`${x + 1}. ${y.name}`), b = p.addWorksheet(F);
|
|
426
426
|
b.columns = [
|
|
427
427
|
{ header: "Group ID", key: "groupId" },
|
|
428
428
|
{ header: "Item ID", key: "itemId" },
|
|
@@ -516,7 +516,7 @@ class Ge {
|
|
|
516
516
|
}
|
|
517
517
|
const Ve = { class: "flex-1 flex justify-between gap-8 pl-8" }, $e = { class: "flex items-center" }, Re = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ae = { class: "fm-typo-en-body-md-600 font-semibold" }, Pe = { class: "flex gap-8" }, rt = /* @__PURE__ */ W({
|
|
518
518
|
__name: "Products",
|
|
519
|
-
setup(
|
|
519
|
+
setup(k) {
|
|
520
520
|
const { t: e } = he(), i = ne(ce()), a = re(), t = S(() => a.rules.item), r = Ce(), n = S(() => !a.state.currentSchedulerId), { selectedCategories: o } = we(), m = S(() => ({
|
|
521
521
|
...be.menuV4ToV3(q(a.state.menu)),
|
|
522
522
|
_id: a.state.menu._id,
|
|
@@ -531,8 +531,8 @@ const Ve = { class: "flex-1 flex justify-between gap-8 pl-8" }, $e = { class: "f
|
|
|
531
531
|
const me = await b[$].xlsx.writeBuffer();
|
|
532
532
|
T.file(`${f[$]}.xlsx`, me);
|
|
533
533
|
}
|
|
534
|
-
const
|
|
535
|
-
fe.saveAs(
|
|
534
|
+
const w = await T.generateAsync({ type: "blob" });
|
|
535
|
+
fe.saveAs(w, `books_${G().format("DD-MM-YYYY_HH-mm")}.zip`);
|
|
536
536
|
}
|
|
537
537
|
async function c() {
|
|
538
538
|
await i.minor(
|
|
@@ -559,9 +559,9 @@ const Ve = { class: "flex-1 flex justify-between gap-8 pl-8" }, $e = { class: "f
|
|
|
559
559
|
const {
|
|
560
560
|
menuItems: u,
|
|
561
561
|
categories: p,
|
|
562
|
-
linkItemRules:
|
|
562
|
+
linkItemRules: v,
|
|
563
563
|
handleSubmit: g,
|
|
564
|
-
catalogManager:
|
|
564
|
+
catalogManager: x,
|
|
565
565
|
schedulerManager: C
|
|
566
566
|
} = Ie(!1), y = _e(), F = S(() => y.breakpoints.value.xs);
|
|
567
567
|
return xe().resetOnMount(), (b, f) => {
|
|
@@ -582,7 +582,7 @@ const Ve = { class: "flex-1 flex justify-between gap-8 pl-8" }, $e = { class: "f
|
|
|
582
582
|
]),
|
|
583
583
|
M("div", Pe, [
|
|
584
584
|
F.value ? (E(), D(Q, { key: 1 }, {
|
|
585
|
-
default: I(({ trigger:
|
|
585
|
+
default: I(({ trigger: w }) => [
|
|
586
586
|
_(ke, null, {
|
|
587
587
|
default: I(() => [
|
|
588
588
|
_(Z, {
|
|
@@ -591,7 +591,7 @@ const Ve = { class: "flex-1 flex justify-between gap-8 pl-8" }, $e = { class: "f
|
|
|
591
591
|
}, null, 8, ["label"]),
|
|
592
592
|
_(Z, {
|
|
593
593
|
label: l(e)("menu.products.actions.import"),
|
|
594
|
-
onClick:
|
|
594
|
+
onClick: w
|
|
595
595
|
}, null, 8, ["label", "onClick"])
|
|
596
596
|
]),
|
|
597
597
|
_: 2
|
|
@@ -600,13 +600,13 @@ const Ve = { class: "flex-1 flex justify-between gap-8 pl-8" }, $e = { class: "f
|
|
|
600
600
|
_: 1
|
|
601
601
|
})) : (E(), j(B, { key: 0 }, [
|
|
602
602
|
_(Me, null, {
|
|
603
|
-
default: I(({ trigger:
|
|
603
|
+
default: I(({ trigger: w }) => [
|
|
604
604
|
_(T, {
|
|
605
605
|
label: l(e)("menu.tree_editor.title"),
|
|
606
606
|
"bg-color": l(N).NeutralGray100,
|
|
607
607
|
"text-color": l(N).TypoSecondary,
|
|
608
608
|
variant: l(U).Primary,
|
|
609
|
-
onClick:
|
|
609
|
+
onClick: w
|
|
610
610
|
}, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
|
|
611
611
|
]),
|
|
612
612
|
_: 1
|
|
@@ -619,13 +619,13 @@ const Ve = { class: "flex-1 flex justify-between gap-8 pl-8" }, $e = { class: "f
|
|
|
619
619
|
onClick: c
|
|
620
620
|
}, null, 8, ["bg-color", "text-color", "variant", "label"]),
|
|
621
621
|
_(Q, null, {
|
|
622
|
-
default: I(({ trigger:
|
|
622
|
+
default: I(({ trigger: w }) => [
|
|
623
623
|
_(T, {
|
|
624
624
|
"bg-color": l(N).NeutralGray100,
|
|
625
625
|
"text-color": l(N).TypoSecondary,
|
|
626
626
|
variant: l(U).Primary,
|
|
627
627
|
label: l(e)("menu.products.actions.import"),
|
|
628
|
-
onClick:
|
|
628
|
+
onClick: w
|
|
629
629
|
}, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
|
|
630
630
|
]),
|
|
631
631
|
_: 1
|
|
@@ -636,23 +636,23 @@ const Ve = { class: "flex-1 flex justify-between gap-8 pl-8" }, $e = { class: "f
|
|
|
636
636
|
key: 0,
|
|
637
637
|
label: l(e)("menu.products.actions.add"),
|
|
638
638
|
"prepend-icon": "add",
|
|
639
|
-
onClick: f[0] || (f[0] = (
|
|
639
|
+
onClick: f[0] || (f[0] = (w) => l(r).create(null))
|
|
640
640
|
}, null, 8, ["label"])) : n.value ? (E(), D(ee, {
|
|
641
641
|
key: 1,
|
|
642
|
-
"categorized-items": l(
|
|
643
|
-
"initial-value": l(
|
|
642
|
+
"categorized-items": l(x).linkableItems.value,
|
|
643
|
+
"initial-value": l(x).currentItems.value,
|
|
644
644
|
"show-variant": !1,
|
|
645
645
|
"menu-items": l(u),
|
|
646
646
|
categories: l(p),
|
|
647
|
-
"link-item-rules": l(
|
|
647
|
+
"link-item-rules": l(v),
|
|
648
648
|
"no-scheduler": n.value,
|
|
649
649
|
onSubmit: l(g)
|
|
650
650
|
}, {
|
|
651
|
-
default: I(({ trigger:
|
|
651
|
+
default: I(({ trigger: w }) => [
|
|
652
652
|
_(Y, {
|
|
653
653
|
label: l(e)("menu.products.actions.link"),
|
|
654
654
|
"prepend-icon": "link",
|
|
655
|
-
onClick:
|
|
655
|
+
onClick: w
|
|
656
656
|
}, null, 8, ["label", "onClick"])
|
|
657
657
|
]),
|
|
658
658
|
_: 1
|
|
@@ -663,14 +663,14 @@ const Ve = { class: "flex-1 flex justify-between gap-8 pl-8" }, $e = { class: "f
|
|
|
663
663
|
"show-variant": !1,
|
|
664
664
|
"menu-items": l(u),
|
|
665
665
|
categories: l(p),
|
|
666
|
-
"link-item-rules": l(
|
|
666
|
+
"link-item-rules": l(v),
|
|
667
667
|
"no-scheduler": n.value,
|
|
668
668
|
onSubmit: l(g)
|
|
669
669
|
}, {
|
|
670
|
-
default: I(({ trigger:
|
|
670
|
+
default: I(({ trigger: w }) => [
|
|
671
671
|
_(Y, {
|
|
672
672
|
label: l(e)("menu.products.actions.apply_scheduler"),
|
|
673
|
-
onClick:
|
|
673
|
+
onClick: w
|
|
674
674
|
}, null, 8, ["label", "onClick"])
|
|
675
675
|
]),
|
|
676
676
|
_: 1
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as G, ref as V, computed as R, onMounted as re, resolveComponent as w, createElementBlock as U, openBlock as y, createVNode as i, createElementVNode as o, toDisplayString as A, unref as r, Fragment as O, renderList as W, createBlock as T, withCtx as L, createCommentVNode as ce, withModifiers as N, h as Y } from "vue";
|
|
2
|
-
import { D as ae, c as de } from "./iteration-
|
|
2
|
+
import { D as ae, c as de } from "./iteration-Csz_aSxy.js";
|
|
3
3
|
import { useRouter as me } from "vue-router";
|
|
4
|
-
import { O as pe, b as ge } from "./app-
|
|
5
|
-
import { A as be, G as ve, D as te,
|
|
4
|
+
import { O as pe, b as ge } from "./app-CzXxFrl1.js";
|
|
5
|
+
import { A as be, G as ve, D as te, aa as fe, H as Z, I as _e, u as he, z as ye } from "./menu-3XEn1C9F.js";
|
|
6
6
|
import { useI18n as J, useCoreStore as Ce, RestaurantSelector as ke } from "@feedmepos/mf-common";
|
|
7
7
|
import { useSnackbar as le, useDialogChild as we, useDialog as xe, components as ee } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as Ve } from "./TextChip.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as Se } from "./app-
|
|
8
|
+
import { _ as Ve } from "./TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js";
|
|
9
|
+
import { _ as Se } from "./app-CkCBPor3.js";
|
|
10
10
|
import { a as Fe, w as Ie, p as Ae } from "./tooltip-CQW9YRO5.js";
|
|
11
11
|
import { u as Me } from "./discardConfirm-BHni0LNu.js";
|
|
12
|
-
import { _ as $e } from "./index.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { _ as $e } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
|
|
13
13
|
function se(S) {
|
|
14
14
|
return S ? ae(S).format("DD/MM/YY HH:mm") : "-";
|
|
15
15
|
}
|
|
@@ -2,15 +2,15 @@ import { defineComponent as z, computed as h, ref as w, reactive as Q, watch as
|
|
|
2
2
|
import { useI18n as U } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as $, components as j, useDialog as ne, FmButtonVariant as G, useBreakpoints as oe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as le } from "./app-
|
|
6
|
-
import { O as q, D as A, H as ie, B as P, I as se, G as B, J as I, z as T, u as H } from "./menu-
|
|
7
|
-
import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le } from "./app-CkCBPor3.js";
|
|
6
|
+
import { O as q, D as A, H as ie, B as P, I as se, G as B, J as I, z as T, u as H } from "./menu-3XEn1C9F.js";
|
|
7
|
+
import { _ as re } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
|
|
8
|
+
import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
|
|
9
9
|
import { defineStore as ue } from "pinia";
|
|
10
|
-
import { _ as Y, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as Y, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-GHiwD8VV.js";
|
|
11
11
|
import { u as de } from "./discardConfirm-BHni0LNu.js";
|
|
12
12
|
import { c as pe } from "./check-C9mY6LiX.js";
|
|
13
|
-
import "./unit-
|
|
13
|
+
import "./unit-DF9d3piP.js";
|
|
14
14
|
import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
15
15
|
const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ z({
|
|
16
16
|
__name: "Form",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as N, computed as y, h as c, withModifiers as U, ref as V, resolveComponent as _, createBlock as k, openBlock as d, unref as m, withCtx as h, createElementBlock as D, createVNode as f, Fragment as z, createElementVNode as l, renderList as T, toDisplayString as S, createCommentVNode as H } from "vue";
|
|
2
|
-
import { z as i, O as W, u as Q, D as G } from "./menu-
|
|
2
|
+
import { z as i, O as W, u as Q, D as G } from "./menu-3XEn1C9F.js";
|
|
3
3
|
import { useI18n as J } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as X, useDialog as Z, useSnackbar as ee } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as te } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
|
-
import { _ as ne } from "./app-
|
|
7
|
-
import { d as ae, _ as oe, u as se, c as le } from "./scheduler-
|
|
8
|
-
import { _ as re } from "./index.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as ne } from "./app-CkCBPor3.js";
|
|
7
|
+
import { d as ae, _ as oe, u as se, c as le } from "./scheduler-D8IgBrUX.js";
|
|
8
|
+
import { _ as re } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
|
|
9
|
+
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
|
|
10
10
|
const ce = {
|
|
11
11
|
class: "flex flex-1 justify-end"
|
|
12
12
|
}, ie = {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as J, ref as L, computed as O, resolveComponent as h, createElementBlock as g, openBlock as d, Fragment as x, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as y, toDisplayString as A, onBeforeMount as oe, watch as F, watchEffect as se, h as $, getCurrentInstance as le, onMounted as re, createBlock as j, createCommentVNode as G, isRef as ie, normalizeClass as Q, renderList as ue } from "vue";
|
|
2
2
|
import { useRouter as ce } from "vue-router";
|
|
3
|
-
import { H, u as W, D as X, O as Z, J as I, z as S } from "./menu-
|
|
3
|
+
import { H, u as W, D as X, O as Z, J as I, z as S } from "./menu-3XEn1C9F.js";
|
|
4
4
|
import { useI18n as ee, ItemSelector as de, useCoreStore as me } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as ne, components as Y, useDialog as pe, FmButtonVariant as z, useBreakpoints as _e } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as fe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
7
|
-
import { _ as ge, R as ve } from "./app-
|
|
8
|
-
import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as ge, R as ve } from "./app-CkCBPor3.js";
|
|
8
|
+
import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
|
|
9
9
|
import { c as ye } from "./check-C9mY6LiX.js";
|
|
10
|
-
import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
|
|
11
11
|
import { u as ke } from "./search-BAPEUu1R.js";
|
|
12
|
-
import { u as xe } from "./app-
|
|
12
|
+
import { u as xe } from "./app-CdsS_tMb.js";
|
|
13
13
|
import { c as Se } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
14
14
|
const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex flex-col h-full" }, Ee = { class: "flex gap-8 items-center justify-start" }, Ve = /* @__PURE__ */ J({
|
|
15
15
|
__name: "Form",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as oe, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as V, openBlock as r, normalizeClass as H, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as k, unref as e, Fragment as L, renderList as B, createTextVNode as re, toDisplayString as N } from "vue";
|
|
2
|
-
import { u as me, D as ce, z as f, O as de, A as pe, H as w } from "./menu-
|
|
2
|
+
import { u as me, D as ce, z as f, O as de, A as pe, H as w } from "./menu-3XEn1C9F.js";
|
|
3
3
|
import { useCoreStore as ve, useI18n as ge } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as fe, useDialog as _e, FmButtonVariant as $, FmButtonColorThemeVariant as P, components as be } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ye, a as E } from "./customAttributes-
|
|
6
|
-
import { _ as z, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { C as _, a as x } from "./catalogSetting-
|
|
8
|
-
import { C as xe } from "./catalog-
|
|
5
|
+
import { _ as ye, a as E } from "./customAttributes-DrA0YC82.js";
|
|
6
|
+
import { _ as z, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DB5B3PLx.js";
|
|
7
|
+
import { C as _, a as x } from "./catalogSetting-DKvBjleU.js";
|
|
8
|
+
import { C as xe } from "./catalog-DBBEUpMo.js";
|
|
9
9
|
const Ce = {
|
|
10
10
|
class: /* @__PURE__ */ H(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16", "pt-16"])
|
|
11
11
|
}, Oe = {
|
|
@@ -2,17 +2,17 @@ import { defineComponent as L, ref as w, watch as W, resolveComponent as y, crea
|
|
|
2
2
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as B, components as j, useDialog as Y, FmButtonVariant as R, useBreakpoints as ae, FmButtonColorThemeVariant as oe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { D, u as N, O as U, J as K, z as q } from "./menu-
|
|
6
|
-
import { _ as le } from "./PageLayout.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as se } from "./app-
|
|
5
|
+
import { D, u as N, O as U, J as K, z as q } from "./menu-3XEn1C9F.js";
|
|
6
|
+
import { _ as le } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
|
|
7
|
+
import { _ as se } from "./app-CkCBPor3.js";
|
|
8
8
|
import { c as re } from "./createForm-BoUQeZTd.js";
|
|
9
9
|
import { u as ie } from "./discardConfirm-BHni0LNu.js";
|
|
10
10
|
import { c as I } from "./object-DVUNCr7w.js";
|
|
11
11
|
import { r as ce } from "./rules-CIWTZQfh.js";
|
|
12
12
|
import { c as ue } from "./check-C9mY6LiX.js";
|
|
13
|
-
import { u as G } from "./subcategory-
|
|
14
|
-
import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { a as me } from "./menu-
|
|
13
|
+
import { u as G } from "./subcategory-BOpm3s8K.js";
|
|
14
|
+
import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
|
|
15
|
+
import { a as me } from "./menu-DzbYSPGP.js";
|
|
16
16
|
const pe = {
|
|
17
17
|
class: "fm-typo-en-title-md-600"
|
|
18
18
|
}, _e = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as f, computed as y, ref as k, createBlock as i, openBlock as d, unref as a, withCtx as s, createElementVNode as t, toDisplayString as b, createCommentVNode as g, createVNode as m } from "vue";
|
|
2
|
-
import { D as x, u as v, O as w, J as E, z as M } from "./menu-
|
|
2
|
+
import { D as x, u as v, O as w, J as E, z as M } from "./menu-3XEn1C9F.js";
|
|
3
3
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as V } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as h } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
|
-
import { _ as C } from "./PageLayout.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { T as O, l as S } from "./index-
|
|
9
|
-
import { a as L } from "./menu-
|
|
6
|
+
import { _ as C } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
|
|
7
|
+
import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-BMMXiDFL.js";
|
|
8
|
+
import { T as O, l as S } from "./index-BoVEGKz7.js";
|
|
9
|
+
import { a as L } from "./menu-DzbYSPGP.js";
|
|
10
10
|
const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "flex items-center" }, D = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, F = { class: "fm-typo-en-body-md-600 font-semibold" }, G = /* @__PURE__ */ f({
|
|
11
11
|
__name: "Takeaway",
|
|
12
12
|
setup(I) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { getCurrentInstance as te, defineComponent as oe, computed as h, watch as ne, h as R, resolveComponent as S, createElementBlock as C, openBlock as _, Fragment as O, normalizeClass as D, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, createBlock as $, createCommentVNode as G, toDisplayString as I, withModifiers as H } from "vue";
|
|
2
|
-
import { D as q, u as Q, O as W, J as z, z as N, H as L, A as se, am as J } from "./menu-
|
|
2
|
+
import { D as q, u as Q, O as W, J as z, z as N, H as L, A as se, am as J } from "./menu-3XEn1C9F.js";
|
|
3
3
|
import { useI18n as X, useCoreStore as re } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as le, useSnackbar as Z, FmButtonVariant as A, components as ce, useBreakpoints as de } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ue } from "./app-
|
|
6
|
-
import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { a as ye, l as ee, T as pe } from "./index-
|
|
5
|
+
import { _ as ue } from "./app-CkCBPor3.js";
|
|
6
|
+
import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
|
|
7
|
+
import { a as ye, l as ee, T as pe } from "./index-BoVEGKz7.js";
|
|
8
8
|
import { u as fe } from "./search-BAPEUu1R.js";
|
|
9
|
-
import { f as F } from "./currency-
|
|
9
|
+
import { f as F } from "./currency-B7Xm1xZJ.js";
|
|
10
10
|
import { defineStore as _e } from "pinia";
|
|
11
|
-
import { C as ke } from "./catalog-
|
|
11
|
+
import { C as ke } from "./catalog-DBBEUpMo.js";
|
|
12
12
|
import { c as ve } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
function we(T, U, l, m) {
|
|
14
14
|
var y, v, w, g;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const f = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as l, computed as r, createElementBlock as i, openBlock as m, normalizeClass as s, toDisplayString as p } from "vue";
|
|
2
|
+
const f = /* @__PURE__ */ l({
|
|
3
3
|
__name: "TextChip",
|
|
4
4
|
props: {
|
|
5
5
|
label: {},
|
|
@@ -10,9 +10,9 @@ const f = /* @__PURE__ */ i({
|
|
|
10
10
|
},
|
|
11
11
|
setup(o) {
|
|
12
12
|
const e = o, n = r(() => e.variant === "warning" ? "primary" : "typo-" + e.variant), t = r(() => e.variant === "neutral" ? "neutral-gray-100" : "system-" + e.variant + "-100"), a = r(() => e.size === "xs" ? "text-[8px] tracking-wide leading-[10px] no-underline" : e.size === "sm" ? e.bold ? "fm-typo-en-body-sm-600" : "fm-typo-en-body-sm-400" : e.bold ? "fm-typo-en-body-md-600" : "fm-typo-en-body-md-400");
|
|
13
|
-
return (
|
|
14
|
-
class:
|
|
15
|
-
},
|
|
13
|
+
return (d, u) => (m(), i("span", {
|
|
14
|
+
class: s(`inline-block fm-corner-radius-md px-4 py-[2px] ${a.value} text-fm-color-${n.value} bg-fm-color-${t.value} text-nowrap max-w-full ${e.border ? "border border-fm-color-neutral-gray-400" : ""}`)
|
|
15
|
+
}, p(o.label), 3));
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
export {
|