@feedmepos/mf-menu 0.32.56 → 0.32.57-dev.2
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-BUePFRjb.js → App-CE5s0l9A.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-oPq3AcV2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DZ5sZWpU.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-r2W9cuVe.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-B0POr6JV.js} +2 -2
- package/dist/{Catalog-uo0vO8uy.js → Catalog-CY6RvjyS.js} +6 -6
- package/dist/{Category-CHN6aSPS.js → Category-BoVnd_-a.js} +10 -10
- package/dist/{Category-BvetZzck.js → Category-DIpJlX_N.js} +13 -13
- package/dist/{CookingGuide-DU8D0T0w.js → CookingGuide-CHzasZA9.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DIxKLpe8.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DIhsGYRl.js} +1 -1
- package/dist/{Group-Cd1OoALN.js → Group-CwBojMky.js} +1 -1
- package/dist/{Group-BFGFyGhC.js → Group-SUmVQxSU.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-Dyb9On55.js → Group.vue_vue_type_script_setup_true_lang-BBqXiV3r.js} +57 -58
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-XcNt0ZBv.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CcQdvzMy.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dw3IXPUL.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C8VMeXoW.js} +193 -190
- package/dist/{Ingredient-CXU04qIu.js → Ingredient-DmsJNTi3.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-q9DVgfMD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CZ3Ti5o-.js} +2 -2
- package/dist/{LinkProductSideSheet-CaFKMMSd.js → LinkProductSideSheet-D8Dvdhk0.js} +3 -3
- package/dist/{MenuSetting-EeJdFNfx.js → MenuSetting-CmFx4CKw.js} +6 -6
- package/dist/{OrderPacing-Db4P-2ea.js → OrderPacing-CFuteZjm.js} +5 -5
- package/dist/{PrintRoute-CSScKjFa.js → PrintRoute-CeHNsLcv.js} +4 -4
- package/dist/{Product-tvbYvK5u.js → Product-bJfbi1yz.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BQ_PgMDP.js → Product.vue_vue_type_script_setup_true_lang-kvqrUjei.js} +66 -66
- package/dist/{ProductInternalTools-D2rmgEby.js → ProductInternalTools-BkKbXFdG.js} +16 -16
- package/dist/{Products-WPvLY_wr.js → Products-Bv9gINb8.js} +24 -24
- package/dist/{Publish-BJ9rz75C.js → Publish-CSMkGRiV.js} +3 -3
- package/dist/{Recipe-BMRTd58L.js → Recipe-CDK1f07t.js} +4 -4
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BefgcG34.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-hYs_2e94.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DlzIboPc.js → RuleView.vue_vue_type_script_setup_true_lang-DdSe-i8f.js} +187 -187
- package/dist/{Scheduler-CHQ5YcBq.js → Scheduler-Ce6qK5xo.js} +3 -3
- package/dist/{ServingSequence-BtXSEzfn.js → ServingSequence-BSX_g50j.js} +3 -3
- package/dist/{Setting-BnXj1uTa.js → Setting-BNS9ggtX.js} +5 -5
- package/dist/{Subcategory-miGPIoku.js → Subcategory-62g1JEwl.js} +5 -5
- package/dist/{Takeaway-DtVvfRQy.js → Takeaway-DR0Ax44B.js} +1 -1
- package/dist/{Takeaway-zaChLDgt.js → Takeaway-f4VO0ZJ-.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BFnbiGsG.js → Takeaway.vue_vue_type_script_setup_true_lang-B3UE1p7X.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CNYxe969.js → Thumbnail.vue_vue_type_script_setup_true_lang-CTw2lKns.js} +4 -4
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-D4fWF46n.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-hd6JGri0.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DLqeQRkH.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BRXHWG5s.js} +2 -2
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ClDRf-88.js +5986 -0
- package/dist/{Unit-BaLVANd9.js → Unit-DnrLxe1V.js} +2 -2
- package/dist/{Variant-Bnb4SllS.js → Variant-DM2r3Of9.js} +3 -3
- package/dist/{_id_-btH88hnV.js → _id_-BhFeSJIu.js} +9 -9
- package/dist/{app-D1a9CqKF.js → app-CO3nuOc3.js} +1 -1
- package/dist/{app-BO16t-ps.js → app-DH7q5VuL.js} +32 -32
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +2 -0
- package/dist/apps/mf-menu/src/manager/menu/circularLink.d.ts +3 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +1 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-zxrRiX3x.js → linked-status-BR-paOgW.js} +2 -2
- package/dist/assets/{menu-export-DXB8Py6r.js → menu-export-Dwpl4c_S.js} +4 -4
- package/dist/assets/{override-menu-CEIJGR_x.js → override-menu-BS1DhRTo.js} +2 -2
- package/dist/assets/{validate-menu-DN3P-OR7.js → validate-menu-B-YCNUDR.js} +2 -2
- package/dist/{catalog-COu1SO_p.js → catalog-DN1unMjl.js} +1 -1
- package/dist/{catalogSetting-D34fLwdB.js → catalogSetting-CI8dXYw5.js} +1 -1
- package/dist/{currency-DlfcFoj5.js → currency-BFqLFFOP.js} +1 -1
- package/dist/{dayjs.min-xM9KAjrx.js → dayjs.min-BXDB3ec6.js} +2 -2
- package/dist/{index-B5d_uvVc.js → index-CCKQLhW1.js} +4 -4
- package/dist/{index-ByEp1JD0.js → index-CYexEfd8.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-DAJSG8i1.js → index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js} +5 -5
- package/dist/{item-CtfWra_w.js → item-eua4dBDT.js} +516 -488
- package/dist/{jszip.min-CNLaYb3p.js → jszip.min-C10zcIsO.js} +3 -3
- package/dist/{memberPricing-DSqwOAgM.js → memberPricing-BlITNLhE.js} +1 -1
- package/dist/{menu-DUsES-YM.js → menu-C4vsCvFL.js} +1 -1
- package/dist/menuV2-DB-VttRA.js +1023 -0
- package/dist/{order_pacing-B5a8Fch-.js → order_pacing-CDQ6wUL_.js} +5 -5
- package/dist/{priceTier-bxvu4c84.js → priceTier-pJMZysfK.js} +1 -1
- package/dist/{rules-CTd3QZhN.js → rules-BScEYhiY.js} +3 -3
- package/dist/{scheduler-DIl9SPsA.js → scheduler-BTiyl-EY.js} +4 -4
- package/dist/{toExcel-CUAEPhEv.js → toExcel-CSdnEWqk.js} +2 -2
- package/dist/{unit-DThoovpF.js → unit-BcPS3VM3.js} +2 -2
- package/package.json +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DUxEgL0r.js +0 -5974
- package/dist/menuV2-BaY8Z_1c.js +0 -1055
|
@@ -2,12 +2,12 @@ var tt = Object.defineProperty;
|
|
|
2
2
|
var At = (t, e, A) => e in t ? tt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: A }) : t[e] = A;
|
|
3
3
|
var Te = (t, e, A) => At(t, typeof e != "symbol" ? e + "" : e, A);
|
|
4
4
|
import { readonly, ref, defineComponent, watchEffect, computed, watch, createElementBlock, openBlock, normalizeStyle, onBeforeUnmount, createBlock, unref, onUnmounted, resolveComponent, onMounted, Fragment, createVNode, createCommentVNode, createElementVNode, normalizeClass } from "vue";
|
|
5
|
-
import { u as useMenuStore, c as coreDartExports, r as registerVersion, g as getApp, _ as _getProvider, a as getExperimentalSetting, b as getDefaultEmulatorHost, d as _isFirebaseServerApp, e as deepEqual, f as getModularInstance, h as getUA, E as ErrorFactory, i as isIE, j as isEmpty, S as SDK_VERSION, q as querystring, F as FirebaseError, k as isMobileCordova, l as isReactNative, m as base64Decode, L as Logger, n as LogLevel, o as isBrowserExtension, p as isCloudflareWorker, s as _registerComponent, C as Component, t as createSubscribe, v as getApps, w as initializeApp, x as getStorage, y as F_MENU_VERSION, z as coreExports, A as menuExports } from "./index.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs, r as routers, u as useMenuNavigatorStatus } from "./app-
|
|
5
|
+
import { u as useMenuStore, c as coreDartExports, r as registerVersion, g as getApp, _ as _getProvider, a as getExperimentalSetting, b as getDefaultEmulatorHost, d as _isFirebaseServerApp, e as deepEqual, f as getModularInstance, h as getUA, E as ErrorFactory, i as isIE, j as isEmpty, S as SDK_VERSION, q as querystring, F as FirebaseError, k as isMobileCordova, l as isReactNative, m as base64Decode, L as Logger, n as LogLevel, o as isBrowserExtension, p as isCloudflareWorker, s as _registerComponent, C as Component, t as createSubscribe, v as getApps, w as initializeApp, x as getStorage, y as F_MENU_VERSION, z as coreExports, A as menuExports } from "./index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js";
|
|
6
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, r as routers, u as useMenuNavigatorStatus } from "./app-DH7q5VuL.js";
|
|
7
7
|
import { installBusinessQueryStatePlugin, useI18n, FeedMeAuth, useCoreStore, useLocale } from "@feedmepos/mf-common";
|
|
8
8
|
import { createRouter, createWebHistory, useRouter } from "vue-router";
|
|
9
|
-
import { _ as _sfc_main$5 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as useAppStore } from "./app-
|
|
9
|
+
import { _ as _sfc_main$5 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ClDRf-88.js";
|
|
10
|
+
import { u as useAppStore } from "./app-CO3nuOc3.js";
|
|
11
11
|
var flagsmith$1 = { exports: {} }, flagsmith = flagsmith$1.exports, hasRequiredFlagsmith;
|
|
12
12
|
function requireFlagsmith() {
|
|
13
13
|
return hasRequiredFlagsmith || (hasRequiredFlagsmith = 1, function(t, e) {
|
|
@@ -13447,7 +13447,7 @@ const _hoisted_1 = {
|
|
|
13447
13447
|
S && S === F_MENU_VERSION.enum.v4 && router.addRoute({
|
|
13448
13448
|
path: "/serving-sequence",
|
|
13449
13449
|
name: "serving-sequence",
|
|
13450
|
-
component: () => import("./ServingSequence-
|
|
13450
|
+
component: () => import("./ServingSequence-BSX_g50j.js")
|
|
13451
13451
|
});
|
|
13452
13452
|
}
|
|
13453
13453
|
), watch(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as K, computed as i, h as u, ref as U, resolveComponent as b, createElementBlock as p, openBlock as d, createVNode as f, withCtx as g, createElementVNode as V, createCommentVNode as C, toDisplayString as j, unref as n, isRef as A, createBlock as D, Fragment as G, renderList as H } from "vue";
|
|
2
2
|
import { useI18n as M } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as B, FmButtonColorThemeVariant as h, FmButtonVariant as I } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as O } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { L as $ } from "./LinkProductSideSheet-
|
|
4
|
+
import { _ as O } from "./RuleView.vue_vue_type_script_setup_true_lang-DdSe-i8f.js";
|
|
5
|
+
import { L as $ } from "./LinkProductSideSheet-D8Dvdhk0.js";
|
|
6
6
|
import { u as q } from "./search-BAPEUu1R.js";
|
|
7
|
-
import { u as J, aw as Q } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { u as J, aw as Q } from "./index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js";
|
|
8
8
|
const W = { class: "space-y-16" }, X = { class: "flex items-center space-x-24" }, Y = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as C, ref as d, resolveComponent as f, createElementBlock as w, openBlock as z, Fragment as F, renderSlot as S, createVNode as l, unref as i, withCtx as r, createElementVNode as v, toDisplayString as B } from "vue";
|
|
2
|
-
import { H as _, u as D } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { H as _, u as D } from "./index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js";
|
|
3
3
|
import { useI18n as E } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as x } from "@feedmepos/ui-library";
|
|
5
5
|
import { u as A } from "./discardConfirm-BHni0LNu.js";
|
|
6
|
-
import { _ as O } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as O } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DZ5sZWpU.js";
|
|
7
7
|
import { c as I } from "./check-C9mY6LiX.js";
|
|
8
8
|
const N = { class: "fm-typo-en-title-md-600" }, P = { class: "flex gap-8 items-center justify-start" }, J = /* @__PURE__ */ C({
|
|
9
9
|
__name: "ApplyProductDialog",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as se, computed as x, resolveComponent as _, createBlock as V, openBlock as p, createVNode as o, ref as j, createElementBlock as F, Fragment as G, renderSlot as xe, unref as e, withCtx as g, createElementVNode as v, createCommentVNode as R, renderList as X, createTextVNode as Ce, toDisplayString as $, markRaw as ke, toRaw as he, h as q, withModifiers as Q, normalizeClass as Fe } from "vue";
|
|
2
2
|
import { useRouter as Oe } from "vue-router";
|
|
3
|
-
import { u as pe, y as Ve, P as fe, B as ge, A as re, z as Me, U as N, G as le, J as ve, K as _e, aj as ie, a5 as Se } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as pe, y as Ve, P as fe, B as ge, A as re, z as Me, U as N, G as le, J as ve, K as _e, aj as ie, a5 as Se } from "./index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js";
|
|
4
4
|
import { useI18n as ue, useCoreStore as ye } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as be, components as ne, FmButtonVariant as J, FmButtonColorThemeVariant as Z, useDialog as Te, useBreakpoints as we } from "@feedmepos/ui-library";
|
|
6
|
-
import { _ as Ue, R as ce } from "./app-
|
|
6
|
+
import { _ as Ue, R as ce } from "./app-DH7q5VuL.js";
|
|
7
7
|
import { _ as Ae } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
8
8
|
import { _ as te } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
9
|
-
import { _ as De } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as me, a as Ne } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as De } from "./RuleView.vue_vue_type_script_setup_true_lang-DdSe-i8f.js";
|
|
10
|
+
import { _ as me, a as Ne } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CcQdvzMy.js";
|
|
11
11
|
import { c as $e } from "./check-C9mY6LiX.js";
|
|
12
|
-
import { C as P, a as z } from "./catalogSetting-
|
|
12
|
+
import { C as P, a as z } from "./catalogSetting-CI8dXYw5.js";
|
|
13
13
|
import { _ as Le } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
14
|
-
import { C as Ee } from "./catalog-
|
|
14
|
+
import { C as Ee } from "./catalog-DN1unMjl.js";
|
|
15
15
|
const Ie = /* @__PURE__ */ se({
|
|
16
16
|
__name: "CatalogUsageTable",
|
|
17
17
|
props: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as L, ref as $, computed as C, h as m, withModifiers as M, getCurrentInstance as
|
|
1
|
+
import { defineComponent as L, ref as $, computed as C, h as m, withModifiers as M, getCurrentInstance as Y, resolveComponent as x, createElementBlock as f, openBlock as c, createElementVNode as s, createVNode as u, unref as o, withCtx as k, Fragment as G, renderList as q, toDisplayString as w, createBlock as y, createCommentVNode as H } from "vue";
|
|
2
2
|
import { useI18n as E } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as S, useSnackbar as T, components as Q, FmButtonVariant as B, useBreakpoints as W, FmButtonColorThemeVariant as X } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as Z } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { B as N, P as D, J as ee, K as te, a5 as oe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { B as N, P as D, J as ee, K as te, a5 as oe } from "./index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js";
|
|
6
6
|
import { _ as ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
7
|
-
import { _ as ne } from "./app-
|
|
7
|
+
import { _ as ne } from "./app-DH7q5VuL.js";
|
|
8
8
|
import { c as le } from "./createForm-BoUQeZTd.js";
|
|
9
|
-
import { a as se,
|
|
9
|
+
import { a as se, J as R } from "./item-eua4dBDT.js";
|
|
10
10
|
import { _ as re } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-DiK3fi9J.js";
|
|
11
|
-
import { u as z, a as ce } from "./menu-
|
|
11
|
+
import { u as z, a as ce } from "./menu-C4vsCvFL.js";
|
|
12
12
|
const ie = se, me = {
|
|
13
13
|
key: 0
|
|
14
14
|
}, ue = {
|
|
@@ -124,7 +124,7 @@ const ie = se, me = {
|
|
|
124
124
|
const t = e.map((r) => r.id).filter((r) => !!r);
|
|
125
125
|
await v.rearrange(t);
|
|
126
126
|
}
|
|
127
|
-
const O =
|
|
127
|
+
const O = Y();
|
|
128
128
|
async function F(e) {
|
|
129
129
|
le(O, ie, {
|
|
130
130
|
initialValue: e
|
|
@@ -141,10 +141,10 @@ const ie = se, me = {
|
|
|
141
141
|
placeholder: o(l)("menu.common.labels.search_placeholder", {
|
|
142
142
|
type: "categories"
|
|
143
143
|
})
|
|
144
|
-
}, null, 8, ["modelValue", "placeholder"])]), s("div", ge, [(c(!0), f(
|
|
144
|
+
}, null, 8, ["modelValue", "placeholder"])]), s("div", ge, [(c(!0), f(G, null, q(g.value, (a) => (c(), f("div", {
|
|
145
145
|
key: a.id || "",
|
|
146
146
|
class: "flex flex-row py-12 px-16",
|
|
147
|
-
onClick: (
|
|
147
|
+
onClick: (J) => F(a)
|
|
148
148
|
}, [s("div", ye, [s("p", he, w(a.name), 1), s("p", ve, w(o(l)(a.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
|
|
149
149
|
count: a.items.length
|
|
150
150
|
})), 1)]), u(A, {
|
|
@@ -152,7 +152,7 @@ const ie = se, me = {
|
|
|
152
152
|
variant: o(B).Tertiary,
|
|
153
153
|
"prepend-icon": "delete",
|
|
154
154
|
disabled: !a.id,
|
|
155
|
-
onClick: M((
|
|
155
|
+
onClick: M((J) => b(a), ["stop"])
|
|
156
156
|
}, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, fe))), 128))])])) : (c(), f("div", me, [s("div", ue, [s("div", de, [u(r, {
|
|
157
157
|
modelValue: n.value,
|
|
158
158
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => n.value = a),
|
|
@@ -212,7 +212,7 @@ const ie = se, me = {
|
|
|
212
212
|
label: o(n)("menu.category.add"),
|
|
213
213
|
"prepend-icon": "add",
|
|
214
214
|
onClick: g
|
|
215
|
-
}, null, 8, ["label"])) :
|
|
215
|
+
}, null, 8, ["label"])) : H("", !0)
|
|
216
216
|
])
|
|
217
217
|
]),
|
|
218
218
|
_: 1
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as E, computed as k, ref as C, resolveComponent as w, createElementBlock as g, openBlock as u, createElementVNode as i, createVNode as _, unref as a, withCtx as P, Fragment as z, renderList as U, toDisplayString as S, createBlock as V } from "vue";
|
|
2
2
|
import { useI18n as L } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as M, useBreakpoints as $, useDialog as I } from "@feedmepos/ui-library";
|
|
4
|
-
import { B as F, u as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as T } from "./menu-
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
4
|
+
import { B as F, u as J, a0 as Y, P as B, J as j, K as q, a5 as A } from "./index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js";
|
|
5
|
+
import { _ as R } from "./app-DH7q5VuL.js";
|
|
6
|
+
import { u as T } from "./menu-C4vsCvFL.js";
|
|
7
|
+
import { J as G } from "./item-eua4dBDT.js";
|
|
8
|
+
const H = {
|
|
9
9
|
key: 0
|
|
10
10
|
}, Q = {
|
|
11
11
|
class: "flex justify-end items-center"
|
|
@@ -27,7 +27,7 @@ const G = {
|
|
|
27
27
|
}, ne = /* @__PURE__ */ E({
|
|
28
28
|
__name: "CategoryTable",
|
|
29
29
|
setup(D) {
|
|
30
|
-
const f = M(), y = F(f), h = B(y), d =
|
|
30
|
+
const f = M(), y = F(f), h = B(y), d = J(), {
|
|
31
31
|
categories: v
|
|
32
32
|
} = T(), b = k(() => {
|
|
33
33
|
var r, t;
|
|
@@ -39,7 +39,7 @@ const G = {
|
|
|
39
39
|
position: e.id ? ((p = l[e.id]) == null ? void 0 : p.position) ?? c + 1 : null
|
|
40
40
|
};
|
|
41
41
|
});
|
|
42
|
-
return
|
|
42
|
+
return Y(o, (e) => e.name);
|
|
43
43
|
}), n = C(""), m = k(() => b.value.filter((l) => l.name.toLowerCase().includes(n.value.toLowerCase()))), {
|
|
44
44
|
t: s
|
|
45
45
|
} = L(), x = C([{
|
|
@@ -75,8 +75,8 @@ const G = {
|
|
|
75
75
|
_id: c.id
|
|
76
76
|
});
|
|
77
77
|
}), await r({
|
|
78
|
-
module:
|
|
79
|
-
operation:
|
|
78
|
+
module: q.enum.catalog,
|
|
79
|
+
operation: j.F_OPERATION_TYPE.update,
|
|
80
80
|
data: {
|
|
81
81
|
...o,
|
|
82
82
|
override: {
|
|
@@ -102,7 +102,7 @@ const G = {
|
|
|
102
102
|
class: "flex flex-row py-12 px-16"
|
|
103
103
|
}, [i("div", oe, [i("p", te, S(e.name), 1), i("p", ae, S(a(s)(e.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
|
|
104
104
|
count: e.items.length
|
|
105
|
-
})), 1)])]))), 128))])])) : (u(), g("div",
|
|
105
|
+
})), 1)])]))), 128))])])) : (u(), g("div", H, [i("div", Q, [i("div", W, [_(r, {
|
|
106
106
|
modelValue: n.value,
|
|
107
107
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => n.value = e),
|
|
108
108
|
autofocus: "",
|
|
@@ -110,7 +110,7 @@ const G = {
|
|
|
110
110
|
placeholder: a(s)("menu.common.labels.search_placeholder", {
|
|
111
111
|
type: a(s)("menu.category.title")
|
|
112
112
|
})
|
|
113
|
-
}, null, 8, ["modelValue", "placeholder"])])]), _(
|
|
113
|
+
}, null, 8, ["modelValue", "placeholder"])])]), _(R, null, {
|
|
114
114
|
default: P(() => [_(t, {
|
|
115
115
|
"column-defs": x.value,
|
|
116
116
|
draggable: a(d).rules.category.overrideSequence,
|
|
@@ -129,14 +129,14 @@ const G = {
|
|
|
129
129
|
}), me = /* @__PURE__ */ E({
|
|
130
130
|
__name: "Category",
|
|
131
131
|
setup(D) {
|
|
132
|
-
const f = I(), y = M(), h = F(y), d = B(h), v =
|
|
132
|
+
const f = I(), y = M(), h = F(y), d = B(h), v = G({ dialog: f, menuLoader: d }), { categories: b } = T(), { t: n } = L();
|
|
133
133
|
function m() {
|
|
134
134
|
v.create();
|
|
135
135
|
}
|
|
136
136
|
return (s, x) => a(b).length > 0 ? (u(), V(ne, {
|
|
137
137
|
key: 0,
|
|
138
138
|
class: "pt-16"
|
|
139
|
-
})) : (u(), V(a(
|
|
139
|
+
})) : (u(), V(a(A), {
|
|
140
140
|
key: 1,
|
|
141
141
|
class: "pt-16",
|
|
142
142
|
action: {
|
|
@@ -2,12 +2,12 @@ import { defineComponent as ae, ref as F, computed as V, resolveComponent as x,
|
|
|
2
2
|
import { useI18n as le } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as ue, useBreakpoints as ye, useSnackbar as ke, useDialog as he } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as xe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as Ce } from "./app-
|
|
6
|
-
import { G as ee, H as me, J as de, K as re, ac as pe, u as we, P as Ve, B as Fe, a5 as Se } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as Ce } from "./app-DH7q5VuL.js";
|
|
6
|
+
import { G as ee, H as me, J as de, K as re, ac as pe, u as we, P as Ve, B as Fe, a5 as Se } from "./index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js";
|
|
7
7
|
import { d as $e } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
8
|
-
import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-DdSe-i8f.js";
|
|
9
9
|
import { u as ge } from "./discardConfirm-BHni0LNu.js";
|
|
10
|
-
import { L as Ie } from "./LinkProductSideSheet-
|
|
10
|
+
import { L as Ie } from "./LinkProductSideSheet-D8Dvdhk0.js";
|
|
11
11
|
import { _ as Oe } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
12
12
|
const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = { class: "space-y-32" }, Ne = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, De = { class: "px-16 py-8 w-[40%]" }, Ge = { class: "px-16 py-8 grow" }, Te = { class: "px-16 py-8 w-[40%]" }, ze = { class: "px-16 py-8 grow" }, Ee = { class: "space-y-16" }, Ue = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Me = { class: "flex gap-8 items-center justify-start" }, Re = /* @__PURE__ */ ae({
|
|
13
13
|
__name: "CookingGuideStepDialog",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as S, computed as o, createBlock as v, openBlock as t, unref as c, withCtx as g, renderSlot as B, ref as A, resolveComponent as I, createElementBlock as a, createElementVNode as m, createCommentVNode as b, Fragment as f, renderList as C, toDisplayString as d, withModifiers as F } from "vue";
|
|
2
2
|
import { useI18n as V } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as M } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
|
|
4
|
-
import { u as D } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as D } from "./index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js";
|
|
5
5
|
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as y } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
7
7
|
const X = /* @__PURE__ */ S({
|
|
@@ -2,9 +2,9 @@ import { defineComponent as m, ref as p, createBlock as i, openBlock as d, unref
|
|
|
2
2
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as f } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
4
4
|
import { _ as g } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
5
|
-
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import {
|
|
7
|
-
import { a as h } from "./menu-
|
|
5
|
+
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-BBqXiV3r.js";
|
|
6
|
+
import { K as b } from "./item-eua4dBDT.js";
|
|
7
|
+
import { a as h } from "./menu-C4vsCvFL.js";
|
|
8
8
|
const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "flex items-center" }, k = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, C = { class: "fm-typo-en-body-md-600 font-semibold" }, A = /* @__PURE__ */ m({
|
|
9
9
|
__name: "Group",
|
|
10
10
|
setup(N) {
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { defineComponent as oe, computed as f, resolveComponent as V, createBlock as R, openBlock as m, withCtx as
|
|
2
|
-
import { u as ye, P as Ee, B as Le, y as ee, R as w, A as Ue, a5 as Ke, H as te, z as ze, K as fe, J as Be } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as oe, computed as f, resolveComponent as V, createBlock as R, openBlock as m, withCtx as C, createElementBlock as y, Fragment as E, renderList as ne, createElementVNode as p, normalizeClass as J, toDisplayString as A, createVNode as i, createCommentVNode as O, unref as u, ref as T, watch as $e, h as Y, mergeProps as De, createSlots as Pe, withModifiers as Te, isRef as q, nextTick as pe } from "vue";
|
|
2
|
+
import { u as ye, P as Ee, B as Le, y as ee, R as w, A as Ue, a5 as Ke, H as te, z as ze, K as fe, J as Be } from "./index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js";
|
|
3
3
|
import { d as je } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
4
4
|
import { b as ve, H as Ye } from "./app-5fxKLAzS.js";
|
|
5
|
-
import { useI18n as _e, useCoreStore as He, useCustomAttributes as
|
|
6
|
-
import { useBreakpoints as be, useSnackbar as
|
|
7
|
-
import { _ as Ze, a as et } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as tt } from "./app-
|
|
5
|
+
import { useI18n as _e, useCoreStore as He, useCustomAttributes as qe } from "@feedmepos/mf-common";
|
|
6
|
+
import { useBreakpoints as be, useSnackbar as Je, useDialog as Qe, components as We, FmButtonVariant as Xe } from "@feedmepos/ui-library";
|
|
7
|
+
import { _ as Ze, a as et } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-DIhsGYRl.js";
|
|
8
|
+
import { _ as tt } from "./app-DH7q5VuL.js";
|
|
9
9
|
import { _ as nt, a as ot } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
10
10
|
import { c as lt } from "./object-DVUNCr7w.js";
|
|
11
|
-
import { _ as rt } from "./ApplyProductDialog.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { M as ge,
|
|
13
|
-
import { _ as
|
|
14
|
-
import { u as
|
|
15
|
-
import { C as
|
|
16
|
-
import { c as vt } from "./menuV2-BaY8Z_1c.js";
|
|
11
|
+
import { _ as rt } from "./ApplyProductDialog.vue_vue_type_script_setup_true_lang-B0POr6JV.js";
|
|
12
|
+
import { M as ge, L as at, N as ut, K as st, m as it, x as ct, r as mt, s as dt } from "./item-eua4dBDT.js";
|
|
13
|
+
import { _ as pt } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-DiK3fi9J.js";
|
|
14
|
+
import { u as ft } from "./search-BAPEUu1R.js";
|
|
15
|
+
import { C as vt } from "./catalog-DN1unMjl.js";
|
|
17
16
|
const gt = /* @__PURE__ */ oe({
|
|
18
17
|
__name: "ResponsiveContextMenu",
|
|
19
18
|
props: {
|
|
@@ -24,7 +23,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
24
23
|
return (I, N) => {
|
|
25
24
|
const b = V("FmButton"), k = V("FmMenuItem"), v = V("FmMenu");
|
|
26
25
|
return a.value ? (m(), R(nt, { key: 0 }, {
|
|
27
|
-
default:
|
|
26
|
+
default: C(() => [
|
|
28
27
|
(m(!0), y(E, null, ne(I.items, ({ icon: F, label: G, disabled: h, itemClass: U, onClick: S }) => (m(), R(ot, {
|
|
29
28
|
key: G,
|
|
30
29
|
icon: F,
|
|
@@ -42,7 +41,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
42
41
|
"stop-click-propagation": "",
|
|
43
42
|
shift: !0
|
|
44
43
|
}, {
|
|
45
|
-
"menu-button":
|
|
44
|
+
"menu-button": C(() => [
|
|
46
45
|
i(b, {
|
|
47
46
|
type: "button",
|
|
48
47
|
variant: "tertiary",
|
|
@@ -51,7 +50,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
51
50
|
size: "md"
|
|
52
51
|
})
|
|
53
52
|
]),
|
|
54
|
-
default:
|
|
53
|
+
default: C(() => [
|
|
55
54
|
(m(!0), y(E, null, ne(I.items, ({ icon: F, label: G, disabled: h, itemClass: U, onClick: S }) => (m(), R(k, {
|
|
56
55
|
key: G,
|
|
57
56
|
disabled: h,
|
|
@@ -60,9 +59,9 @@ const gt = /* @__PURE__ */ oe({
|
|
|
60
59
|
},
|
|
61
60
|
label: G
|
|
62
61
|
}, {
|
|
63
|
-
label:
|
|
62
|
+
label: C(() => [
|
|
64
63
|
p("span", {
|
|
65
|
-
class:
|
|
64
|
+
class: J(h ? "text-fm-color-typo-disabled" : U)
|
|
66
65
|
}, A(G), 3)
|
|
67
66
|
]),
|
|
68
67
|
_: 2
|
|
@@ -103,10 +102,10 @@ const gt = /* @__PURE__ */ oe({
|
|
|
103
102
|
class: "xs:pt-24"
|
|
104
103
|
}, wt = {
|
|
105
104
|
key: 0,
|
|
106
|
-
class: /* @__PURE__ */
|
|
107
|
-
}, Ct = {
|
|
108
|
-
class: "flex justify-between items-center space-x-8"
|
|
105
|
+
class: /* @__PURE__ */ J(["flex-1 overflow-hidden", "space-y-8", "flex flex-col", "overflow-hidden", "pt-16"])
|
|
109
106
|
}, xt = {
|
|
107
|
+
class: "flex justify-between items-center space-x-8"
|
|
108
|
+
}, Ct = {
|
|
110
109
|
class: "w-[320px]"
|
|
111
110
|
}, Mt = {
|
|
112
111
|
key: 0
|
|
@@ -128,20 +127,20 @@ const gt = /* @__PURE__ */ oe({
|
|
|
128
127
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
129
128
|
}, Ot = {
|
|
130
129
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
131
|
-
},
|
|
130
|
+
}, Jt = /* @__PURE__ */ oe({
|
|
132
131
|
__name: "Group",
|
|
133
132
|
emits: ["update:count"],
|
|
134
133
|
setup(Q, {
|
|
135
134
|
emit: L
|
|
136
135
|
}) {
|
|
137
|
-
const a = ye(), I = He(), N =
|
|
136
|
+
const a = ye(), I = He(), N = Je(), b = Ee(Le(N)), k = Qe(), v = f(() => a.rules.group), F = f(() => new ge(a, b.updateMenu, k)), G = f(() => F.value.mapGroups(a.groups, !1)), {
|
|
138
137
|
searchKey: h,
|
|
139
138
|
filter: U
|
|
140
|
-
} =
|
|
139
|
+
} = ft(), S = T(!1), _ = T(null), {
|
|
141
140
|
attributes: le,
|
|
142
141
|
filterRule: $,
|
|
143
142
|
mongoQuery: re
|
|
144
|
-
} =
|
|
143
|
+
} = qe({
|
|
145
144
|
valueSource: G,
|
|
146
145
|
entity: "group"
|
|
147
146
|
}), K = f(() => {
|
|
@@ -156,17 +155,17 @@ const gt = /* @__PURE__ */ oe({
|
|
|
156
155
|
const c = f(() => !!a.state.currentCatalogId || !!a.state.currentSchedulerId);
|
|
157
156
|
function ae(t) {
|
|
158
157
|
var P, n;
|
|
159
|
-
const e = !a.state.currentCatalogId, r = !a.state.currentSchedulerId, o = ((P = a.currentCatalog) == null ? void 0 : P.priceTierRules) ?? ((n = a.currentCatalog) == null ? void 0 : n.usePriceTiers), s = a.rules.item.bindToVariant,
|
|
158
|
+
const e = !a.state.currentCatalogId, r = !a.state.currentSchedulerId, o = ((P = a.currentCatalog) == null ? void 0 : P.priceTierRules) ?? ((n = a.currentCatalog) == null ? void 0 : n.usePriceTiers), s = a.rules.item.bindToVariant, x = a.rules.group.type, d = a.version === ee.enum.v3, M = a.rules.item.orderFromActiveOnly;
|
|
160
159
|
return {
|
|
161
160
|
link: (g) => !c.value && (!g || s),
|
|
162
161
|
name: (g) => !c.value && !g,
|
|
163
162
|
isDefault: (g) => !c.value,
|
|
164
|
-
type:
|
|
163
|
+
type: x && !t._id && !c.value,
|
|
165
164
|
price: !d || t.type !== w.enum.DYNAMIC,
|
|
166
165
|
priceEdit: !(o && o.length > 0 && !d && r),
|
|
167
166
|
priceTier: !d && r && e,
|
|
168
167
|
inventory: r ? d ? !c.value && t.type === w.enum.NORMAL : !c.value : !1,
|
|
169
|
-
orderFrom: (g) => r ? d ? t.type === w.enum.DYNAMIC ? !a.state.currentSchedulerId :
|
|
168
|
+
orderFrom: (g) => r ? d ? t.type === w.enum.DYNAMIC ? !a.state.currentSchedulerId : !!a.state.currentSchedulerId == !g : !a.state.currentSchedulerId : !1,
|
|
170
169
|
orderFromActiveOnly: M,
|
|
171
170
|
showOrderFrom: r ? d ? c.value ? !0 : t.type === w.enum.PRODUCT : !0 : !1,
|
|
172
171
|
bindToVariant: s,
|
|
@@ -206,7 +205,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
206
205
|
function ue(t) {
|
|
207
206
|
F.value.sortGroups(t);
|
|
208
207
|
}
|
|
209
|
-
function
|
|
208
|
+
function xe(t) {
|
|
210
209
|
k.open({
|
|
211
210
|
title: l("menu.group.actions.duplicate.title"),
|
|
212
211
|
message: l("menu.group.actions.duplicate.message", {
|
|
@@ -222,10 +221,10 @@ const gt = /* @__PURE__ */ oe({
|
|
|
222
221
|
}
|
|
223
222
|
}).onPrimary(() => F.value.duplicateGroup(t));
|
|
224
223
|
}
|
|
225
|
-
const X = f(() => a.currentCatalog), z = f(() => a.currentScheduler), B = f(() => new
|
|
224
|
+
const X = f(() => a.currentCatalog), z = f(() => a.currentScheduler), B = f(() => new vt(X.value, a, b.updateMenu, k)), Z = f(() => new at(z.value, a, b.updateMenu, k)), Ce = (t) => {
|
|
226
225
|
let e = t;
|
|
227
226
|
function r(o) {
|
|
228
|
-
const
|
|
227
|
+
const x = a.state.menu.modules.group.find((n) => n._id === o._id), d = (o.items ?? []).reduce((n, g) => (n[g._id] = [...n[g._id] || [], g.combinationKey || ""], n), {}), P = (x.items ?? []).filter((n) => {
|
|
229
228
|
var g;
|
|
230
229
|
return !((g = d[n._id]) != null && g.includes(n.combinationKey || ""));
|
|
231
230
|
}).map((n) => ({
|
|
@@ -234,7 +233,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
234
233
|
selection: n.selection
|
|
235
234
|
})).filter((n) => !!a.mergedMenu.modules.item.find((g) => g._id === n._id));
|
|
236
235
|
return {
|
|
237
|
-
...
|
|
236
|
+
...x,
|
|
238
237
|
...Object.fromEntries(Object.entries(o).filter(([, n]) => !!n)),
|
|
239
238
|
items: [...o.items ?? [], ...P]
|
|
240
239
|
};
|
|
@@ -280,13 +279,13 @@ const gt = /* @__PURE__ */ oe({
|
|
|
280
279
|
"onApply:product": async (r) => {
|
|
281
280
|
var o;
|
|
282
281
|
for (const s of r)
|
|
283
|
-
if (
|
|
284
|
-
const
|
|
282
|
+
if (ct(a.state.menu, t._id, s._id)) {
|
|
283
|
+
const x = (o = a.state.menu.modules.item.find((d) => d._id === s._id)) == null ? void 0 : o.name;
|
|
285
284
|
N.open({
|
|
286
285
|
type: "error",
|
|
287
286
|
message: l("menu.product.form.group.circularError", {
|
|
288
287
|
groupName: t.name,
|
|
289
|
-
productName:
|
|
288
|
+
productName: x
|
|
290
289
|
})
|
|
291
290
|
});
|
|
292
291
|
return;
|
|
@@ -312,7 +311,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
312
311
|
}, {
|
|
313
312
|
label: l("menu.group.actions.duplicate_action"),
|
|
314
313
|
disabled: !v.value.create,
|
|
315
|
-
onClick: () =>
|
|
314
|
+
onClick: () => xe(e)
|
|
316
315
|
}, {
|
|
317
316
|
label: l("menu.common.actions.delete"),
|
|
318
317
|
itemClass: "text-fm-color-typo-error",
|
|
@@ -334,7 +333,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
334
333
|
class: "flex items-center gap-8"
|
|
335
334
|
}, [Y("span", {
|
|
336
335
|
class: "break-all"
|
|
337
|
-
}, r), e.name_locale ? Y(
|
|
336
|
+
}, r), e.name_locale ? Y(pt, {
|
|
338
337
|
nameLocale: e.name_locale ?? {}
|
|
339
338
|
}) : null]);
|
|
340
339
|
}
|
|
@@ -344,10 +343,10 @@ const gt = /* @__PURE__ */ oe({
|
|
|
344
343
|
enableSorting: !1,
|
|
345
344
|
cell: (t) => {
|
|
346
345
|
const e = t.getValue(), r = Object.values(e).map((o) => {
|
|
347
|
-
var
|
|
346
|
+
var x;
|
|
348
347
|
const s = [(o == null ? void 0 : o.code) || "", o.name || o.fallbackName].join(" ").trim();
|
|
349
348
|
return (o.items || []).length > 1 ? `${s} (${l("menu.group.list.variants", {
|
|
350
|
-
count: (
|
|
349
|
+
count: (x = o.items) == null ? void 0 : x.length
|
|
351
350
|
})})` : s;
|
|
352
351
|
});
|
|
353
352
|
return r.length > 5 ? `${r.slice(0, 5).join(", ")} ${l("menu.group.list.more_items", {
|
|
@@ -421,7 +420,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
421
420
|
tagging: ((t = I.groupAttributeSettings) == null ? void 0 : t.value.length) > 0
|
|
422
421
|
};
|
|
423
422
|
}), Se = async (t) => {
|
|
424
|
-
const e =
|
|
423
|
+
const e = mt(t), r = e.group, o = dt(r, ae(t));
|
|
425
424
|
if (c.value)
|
|
426
425
|
X.value ? (z.value ? B.value.overrideCatalogSchedulerGroups([o], z.value._id) : B.value.overrideCatalogGroups([o]), await B.value.update()) : (Z.value.overrideSchedulerGroups([o]), await Z.value.update());
|
|
427
426
|
else {
|
|
@@ -437,7 +436,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
437
436
|
};
|
|
438
437
|
await b.updateMenu(s, o.name);
|
|
439
438
|
}
|
|
440
|
-
}, D = T(null), Ve = f(() =>
|
|
439
|
+
}, D = T(null), Ve = f(() => Ce(D.value)), ce = T(null), me = async (t) => {
|
|
441
440
|
var e;
|
|
442
441
|
D.value = lt(t), await pe(), (e = ce.value) == null || e.trigger(!0);
|
|
443
442
|
};
|
|
@@ -467,7 +466,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
467
466
|
}, null)]) : null
|
|
468
467
|
}) : null;
|
|
469
468
|
return (t, e) => {
|
|
470
|
-
const r = V("fm-button"), o = V("fm-chip"), s = V("fm-menu-item"),
|
|
469
|
+
const r = V("fm-button"), o = V("fm-chip"), s = V("fm-menu-item"), x = V("fm-menu"), d = V("fm-search"), M = V("fm-table"), P = V("fm-bottom-sheet");
|
|
471
470
|
return m(), y(E, null, [D.value ? (m(), R(ut, De({
|
|
472
471
|
ref_key: "groupManagerFormRef",
|
|
473
472
|
ref: ce,
|
|
@@ -485,8 +484,8 @@ const gt = /* @__PURE__ */ oe({
|
|
|
485
484
|
_: 2
|
|
486
485
|
}, [v.value.create ? {
|
|
487
486
|
name: "action",
|
|
488
|
-
fn:
|
|
489
|
-
default:
|
|
487
|
+
fn: C(() => [i(u(st), null, {
|
|
488
|
+
default: C(({
|
|
490
489
|
trigger: n
|
|
491
490
|
}) => [i(r, {
|
|
492
491
|
"prepend-icon": "add",
|
|
@@ -503,7 +502,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
503
502
|
}, [p("div", At, [i(d, {
|
|
504
503
|
autofocus: "",
|
|
505
504
|
modelValue: u(h),
|
|
506
|
-
"onUpdate:modelValue": e[9] || (e[9] = (n) =>
|
|
505
|
+
"onUpdate:modelValue": e[9] || (e[9] = (n) => q(h) ? h.value = n : null),
|
|
507
506
|
placeholder: u(l)("menu.group.search.placeholder")
|
|
508
507
|
}, null, 8, ["modelValue", "placeholder"])]), e[17] || (e[17] = p("div", {
|
|
509
508
|
class: "bg-fm-color-neutral-gray-100 w-full h-px rounded-md"
|
|
@@ -512,14 +511,14 @@ const gt = /* @__PURE__ */ oe({
|
|
|
512
511
|
modelValue: S.value,
|
|
513
512
|
"onUpdate:modelValue": e[14] || (e[14] = (n) => S.value = n)
|
|
514
513
|
}, {
|
|
515
|
-
"bottom-sheet-button":
|
|
514
|
+
"bottom-sheet-button": C(() => [i(o, {
|
|
516
515
|
label: u(l)("menu.group.type.title", {
|
|
517
516
|
type: _.value ? u(te.capitalize)(_.value) : u(l)("menu.common.labels.all")
|
|
518
517
|
}),
|
|
519
518
|
class: "text-fm-color-typo-secondary",
|
|
520
519
|
"right-icon": "keyboard_arrow_down"
|
|
521
520
|
}, null, 8, ["label"])]),
|
|
522
|
-
default:
|
|
521
|
+
default: C(() => [p("div", null, [p("div", {
|
|
523
522
|
class: "px-16 py-8",
|
|
524
523
|
onClick: e[10] || (e[10] = (n) => _.value = null)
|
|
525
524
|
}, A(u(l)("menu.group.type.all")), 1), p("div", {
|
|
@@ -538,37 +537,37 @@ const gt = /* @__PURE__ */ oe({
|
|
|
538
537
|
ref: H,
|
|
539
538
|
attributes: u(le),
|
|
540
539
|
modelValue: u($),
|
|
541
|
-
"onUpdate:modelValue": e[15] || (e[15] = (n) =>
|
|
540
|
+
"onUpdate:modelValue": e[15] || (e[15] = (n) => q($) ? $.value = n : null)
|
|
542
541
|
}, null, 8, ["attributes", "modelValue"])])) : O("", !0), i(u(je), {
|
|
543
|
-
class:
|
|
542
|
+
class: J(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"]),
|
|
544
543
|
"model-value": K.value,
|
|
545
544
|
group: "categories",
|
|
546
545
|
handle: ".handle",
|
|
547
546
|
"item-key": "_id",
|
|
548
547
|
"onUpdate:modelValue": e[16] || (e[16] = (n) => ue(n))
|
|
549
548
|
}, {
|
|
550
|
-
item:
|
|
549
|
+
item: C(({
|
|
551
550
|
element: n
|
|
552
551
|
}) => [(m(), y("div", {
|
|
553
552
|
key: n._id,
|
|
554
|
-
class:
|
|
553
|
+
class: J(["py-12 px-16", "flex space-x-16", "items-center"])
|
|
555
554
|
}, [p("div", Vt, [p("div", Ft, [p("p", It, A(n.name), 1), p("div", null, [W.value ? (m(), y("p", Nt, A(u(te.capitalize)(n.type)) + " type ", 1)) : O("", !0), p("p", Ot, A(u(l)("menu.group.list.products_linked", {
|
|
556
555
|
count: n.itemsLinked.length
|
|
557
556
|
})), 1)])]), i(ie, {
|
|
558
557
|
group: n
|
|
559
558
|
}, null, 8, ["group"])])]))]),
|
|
560
559
|
_: 1
|
|
561
|
-
}, 8, ["model-value"])], 64)) : (m(), y("div", wt, [p("div",
|
|
560
|
+
}, 8, ["model-value"])], 64)) : (m(), y("div", wt, [p("div", xt, [i(de), W.value ? (m(), R(x, {
|
|
562
561
|
key: 0
|
|
563
562
|
}, {
|
|
564
|
-
"menu-button":
|
|
563
|
+
"menu-button": C(() => [i(o, {
|
|
565
564
|
label: u(l)("menu.group.type.title", {
|
|
566
565
|
type: _.value ? u(te.capitalize)(_.value) : u(l)("menu.common.labels.all")
|
|
567
566
|
}),
|
|
568
567
|
class: "text-fm-color-typo-secondary",
|
|
569
568
|
"right-icon": "keyboard_arrow_down"
|
|
570
569
|
}, null, 8, ["label"])]),
|
|
571
|
-
default:
|
|
570
|
+
default: C(() => [p("div", null, [i(s, {
|
|
572
571
|
class: "px-16 py-8",
|
|
573
572
|
label: u(l)("menu.group.type.all"),
|
|
574
573
|
onClick: e[2] || (e[2] = (n) => _.value = null)
|
|
@@ -586,19 +585,19 @@ const gt = /* @__PURE__ */ oe({
|
|
|
586
585
|
onClick: e[5] || (e[5] = (n) => _.value = "DYNAMIC")
|
|
587
586
|
}, null, 8, ["label"])])]),
|
|
588
587
|
_: 1
|
|
589
|
-
})) : O("", !0), p("div",
|
|
588
|
+
})) : O("", !0), p("div", Ct, [i(d, {
|
|
590
589
|
autofocus: "",
|
|
591
590
|
modelValue: u(h),
|
|
592
|
-
"onUpdate:modelValue": e[6] || (e[6] = (n) =>
|
|
591
|
+
"onUpdate:modelValue": e[6] || (e[6] = (n) => q(h) ? h.value = n : null),
|
|
593
592
|
placeholder: u(l)("menu.group.search.placeholder")
|
|
594
593
|
}, null, 8, ["modelValue", "placeholder"])])]), j.value ? (m(), y("div", Mt, [i(u(ve), {
|
|
595
594
|
ref_key: "attributeFilterRef",
|
|
596
595
|
ref: H,
|
|
597
596
|
attributes: u(le),
|
|
598
597
|
modelValue: u($),
|
|
599
|
-
"onUpdate:modelValue": e[7] || (e[7] = (n) =>
|
|
598
|
+
"onUpdate:modelValue": e[7] || (e[7] = (n) => q($) ? $.value = n : null)
|
|
600
599
|
}, null, 8, ["attributes", "modelValue"])])) : O("", !0), i(tt, null, {
|
|
601
|
-
default:
|
|
600
|
+
default: C(() => [i(M, {
|
|
602
601
|
"column-defs": Ae.value,
|
|
603
602
|
"column-visibility": Ge.value,
|
|
604
603
|
loading: u(b).checkMenuIsLoading(),
|
|
@@ -618,5 +617,5 @@ const gt = /* @__PURE__ */ oe({
|
|
|
618
617
|
}
|
|
619
618
|
});
|
|
620
619
|
export {
|
|
621
|
-
|
|
620
|
+
Jt as _
|
|
622
621
|
};
|