@feedmepos/mf-menu 0.32.63-dev.1 → 0.32.63-dev.3
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-DhfTGlgM.js → App-DHxlR--3.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js → ApplyProduct.vue_vue_type_script_setup_true_lang-6noIwjis.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CMI2Nh0n.js} +3 -3
- package/dist/{Catalog-WuZJfM6l.js → Catalog-B-S0gygH.js} +22 -22
- package/dist/{Category-BeIo7XWY.js → Category-DGDddfLx.js} +4 -4
- package/dist/{Category-D-cQQCPS.js → Category-DOhNama9.js} +4 -4
- package/dist/{CookingGuide-B-yvD9ZA.js → CookingGuide-CUR57F4P.js} +29 -29
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-bIONGM6k.js} +1 -1
- package/dist/{Group-CY8lUzQG.js → Group-BsGJ0omP.js} +1 -1
- package/dist/{Group-13i5igrS.js → Group-z-0jQPCd.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js → Group.vue_vue_type_script_setup_true_lang-bBWkJ2Hx.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BbqcH4sM.js} +19 -19
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CVGilzd0.js} +4210 -4210
- package/dist/{Ingredient-vrUOW6gk.js → Ingredient-D38IVDXK.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CKmyz9CP.js} +2 -2
- package/dist/{LinkProductSideSheet-DMbJG6wf.js → LinkProductSideSheet-DsBA_o9g.js} +4 -4
- package/dist/{MenuSetting-Di2xwm00.js → MenuSetting-D-tln58o.js} +7 -7
- package/dist/{OrderPacing-CCe-IcGO.js → OrderPacing-BdCEHKD9.js} +7 -7
- package/dist/{PrintRoute-CcfObcHY.js → PrintRoute-DKFMqyeI.js} +10 -10
- package/dist/{Product-ChUVnMgG.js → Product-Dzo4ljes.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js → Product.vue_vue_type_script_setup_true_lang-BtE2aiwU.js} +58 -58
- package/dist/{ProductInternalTools-D9HXhgo5.js → ProductInternalTools-Z6XR4zko.js} +14 -14
- package/dist/{Products-Bly2ktEC.js → Products-CCo675Ee.js} +63 -63
- package/dist/{Publish-C8ubb8Qf.js → Publish-tixV8Of1.js} +107 -107
- package/dist/{Recipe-BpMRLsyO.js → Recipe-V9kzxmlf.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DBhAzVz3.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js → RuleView.vue_vue_type_script_setup_true_lang-D9DqmAVY.js} +3 -3
- package/dist/{Scheduler-CiB4b2Fn.js → Scheduler-0UpDGQKJ.js} +17 -17
- package/dist/{ServingSequence-BlcyW-dv.js → ServingSequence-CutiXht7.js} +3 -3
- package/dist/{Setting-DqkL6YYU.js → Setting-jyYmoDiq.js} +5 -5
- package/dist/{Subcategory-B4Jg_wtT.js → Subcategory-CQSKOLjU.js} +10 -10
- package/dist/{Takeaway-5G3f7jWT.js → Takeaway-CQ0m09TB.js} +1 -1
- package/dist/{Takeaway-5rFPYYNA.js → Takeaway-DeCthkOI.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js → Takeaway.vue_vue_type_script_setup_true_lang-FHE6oQ0d.js} +7 -7
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-D9Ga3fOj.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-Bz32rpvX.js} +2 -2
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DCPGAyOm.js +5858 -0
- package/dist/{Unit-CAkdmQLg.js → Unit-_XiPfauV.js} +2 -2
- package/dist/{Variant-BbLQqbAK.js → Variant-DfdMywhn.js} +6 -6
- package/dist/{_id_-Dzacr40I.js → _id_-Yj5av4B4.js} +12 -12
- package/dist/{app-4yWs09Fr.js → app-BcGgfvbE.js} +102 -102
- package/dist/{app-Deov1985.js → app-CqdVluGs.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +10 -3
- package/dist/apps/mf-menu/src/app.d.ts +60 -10
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +67 -21
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +33 -3
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +31 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +10 -0
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +22 -0
- package/dist/apps/mf-menu/src/manager/menu/itemOverrider.d.ts +17 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +0 -1
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +9 -3
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-B2WLhKkV.js → linked-status-DdDQXL8Y.js} +3 -3
- package/dist/assets/{menu-export-Dcw5a_dN.js → menu-export-CK5bJyLT.js} +4 -4
- package/dist/assets/{override-menu-cBe2aMY6.js → override-menu-CHL7Bynw.js} +3 -3
- package/dist/assets/{validate-menu-BM-5GK85.js → validate-menu-g2fslPcE.js} +2 -2
- package/dist/{catalog-DKygS2Cs.js → catalog-B_yk-l1-.js} +1 -1
- package/dist/{catalogSetting-Bn2TplvM.js → catalogSetting-Dl7uIiJm.js} +1 -1
- package/dist/{currency-DXgNHtK8.js → currency-BpjSDqef.js} +1 -1
- package/dist/dayjs.min-CVH5LqOA.js +7 -0
- package/dist/{discardConfirm-DZwzKO-Q.js → discardConfirm-fCmrAVO1.js} +1 -1
- package/dist/{index-K-MBqJJo.js → index-CD_omf3p.js} +1 -1
- package/dist/{index-B48KLyqg.js → index-Cru6sUb6.js} +5 -5
- package/dist/{index-BEocaqRK.js → index-LYc0WKDO.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-Nl505vPi.js → index.vue_vue_type_script_setup_true_lang-qgDBinUn.js} +7932 -7868
- package/dist/{item-Da3ArD-G.js → item-EPxRgVm0.js} +4904 -4654
- package/dist/{jszip.min-Cc2eR4Cq.js → jszip.min-CNgWv4I3.js} +52 -52
- package/dist/{linkProducts-GNuUxFEE.js → linkProducts-DvQ0oP1V.js} +6 -6
- package/dist/{memberPricing-T-jr7tn1.js → memberPricing-deWSH2K0.js} +1 -1
- package/dist/{menu-DSDRAil-.js → menu-DKJ7olgK.js} +1 -1
- package/dist/{menuV2-fTlJdjxi.js → menuV2-CB3eZiiP.js} +318 -313
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-Dgo1fySS.js → order_pacing-DvP19Nxa.js} +5 -5
- package/dist/{priceTier-aT_gIfrN.js → priceTier-DyxDcoSh.js} +1 -1
- package/dist/{rules-Cx2hkV20.js → rules-GmuBnHtU.js} +3 -3
- package/dist/{scheduler-Bd-q7yF8.js → scheduler-BWAzMbPl.js} +28 -28
- package/dist/{toExcel-qfjR83qT.js → toExcel-BMOGsD6n.js} +2 -2
- package/dist/{unit-n1T9grbM.js → unit-BCREKGn9.js} +24 -24
- package/package.json +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +0 -5836
- package/dist/dayjs.min-DpX65tgj.js +0 -7
|
@@ -2,15 +2,15 @@ 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, resolveComponent, normalizeClass, createSlots, withCtx, createElementVNode, createVNode, toDisplayString, createCommentVNode, onUnmounted, onMounted, Fragment } from "vue";
|
|
5
|
-
import { u as useMenuStore, c as coreDartExports, F as F_MENU_VERSION, a as coreExports, m as menuExports } from "./index.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs, r as routers, R as RouteName, u as useMenuNavigatorStatus } from "./app-
|
|
5
|
+
import { u as useMenuStore, c as coreDartExports, F as F_MENU_VERSION, a as coreExports, m as menuExports } from "./index.vue_vue_type_script_setup_true_lang-qgDBinUn.js";
|
|
6
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, r as routers, R as RouteName, u as useMenuNavigatorStatus } from "./app-BcGgfvbE.js";
|
|
7
7
|
import { installBusinessQueryStatePlugin, useCoreStore, RestaurantSelector, useI18n, FeedMeAuth, useLocale } from "@feedmepos/mf-common";
|
|
8
8
|
import { useBreakpoints } from "@feedmepos/ui-library";
|
|
9
9
|
import { createRouter, createWebHistory, useRouter } from "vue-router";
|
|
10
|
-
import { _ as _sfc_main$7 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as _sfc_main$7 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DCPGAyOm.js";
|
|
11
11
|
import { _ as _export_sfc$1 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
import { r as registerVersion, g as getApp, _ as _getProvider, a as getExperimentalSetting, b as getDefaultEmulatorHost, c as _isFirebaseServerApp, d as deepEqual, e as getModularInstance, f as getUA, E as ErrorFactory, i as isIE, h as isEmpty, S as SDK_VERSION, q as querystring, F as FirebaseError, j as isMobileCordova, k as isReactNative, l as base64Decode, L as Logger, m as LogLevel, n as isBrowserExtension, o as isCloudflareWorker, p as _registerComponent, C as Component, s as createSubscribe, t as getApps, u as initializeApp, v as getStorage } from "./item-
|
|
13
|
-
import { u as useAppStore } from "./app-
|
|
12
|
+
import { r as registerVersion, g as getApp, _ as _getProvider, a as getExperimentalSetting, b as getDefaultEmulatorHost, c as _isFirebaseServerApp, d as deepEqual, e as getModularInstance, f as getUA, E as ErrorFactory, i as isIE, h as isEmpty, S as SDK_VERSION, q as querystring, F as FirebaseError, j as isMobileCordova, k as isReactNative, l as base64Decode, L as Logger, m as LogLevel, n as isBrowserExtension, o as isCloudflareWorker, p as _registerComponent, C as Component, s as createSubscribe, t as getApps, u as initializeApp, v as getStorage } from "./item-EPxRgVm0.js";
|
|
13
|
+
import { u as useAppStore } from "./app-CqdVluGs.js";
|
|
14
14
|
var flagsmith$1 = { exports: {} }, flagsmith = flagsmith$1.exports, hasRequiredFlagsmith;
|
|
15
15
|
function requireFlagsmith() {
|
|
16
16
|
return hasRequiredFlagsmith || (hasRequiredFlagsmith = 1, function(t, e) {
|
|
@@ -13543,7 +13543,7 @@ const _hoisted_1 = {
|
|
|
13543
13543
|
I && I === F_MENU_VERSION.enum.v4 && router.addRoute({
|
|
13544
13544
|
path: "/serving-sequence",
|
|
13545
13545
|
name: "serving-sequence",
|
|
13546
|
-
component: () => import("./ServingSequence-
|
|
13546
|
+
component: () => import("./ServingSequence-CutiXht7.js")
|
|
13547
13547
|
});
|
|
13548
13548
|
}
|
|
13549
13549
|
), 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-D9DqmAVY.js";
|
|
5
|
+
import { L as $ } from "./LinkProductSideSheet-DsBA_o9g.js";
|
|
6
6
|
import { u as q } from "./search-BAPEUu1R.js";
|
|
7
|
-
import { u as J,
|
|
7
|
+
import { u as J, ai as Q } from "./index.vue_vue_type_script_setup_true_lang-qgDBinUn.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,10 +1,10 @@
|
|
|
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 { l as _, u as D } from "./discardConfirm-
|
|
2
|
+
import { l as _, u as D } from "./discardConfirm-fCmrAVO1.js";
|
|
3
3
|
import { useI18n as E } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as x } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as A } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as A } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-6noIwjis.js";
|
|
6
6
|
import { c as O } from "./check-C9mY6LiX.js";
|
|
7
|
-
import { u as I } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { u as I } from "./index.vue_vue_type_script_setup_true_lang-qgDBinUn.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",
|
|
10
10
|
props: {
|
|
@@ -1,17 +1,17 @@
|
|
|
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 z, renderList as X, createTextVNode as ke, toDisplayString as
|
|
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 z, renderList as X, createTextVNode as ke, toDisplayString as $, markRaw as Ce, toRaw as he, h as J, withModifiers as Q, normalizeClass as Fe } from "vue";
|
|
2
2
|
import { useRouter as Oe } from "vue-router";
|
|
3
|
-
import { u as pe, F as Ve, i as fe, b as ge, m as re, a as Me, k as N, d as le, g as ve, h as _e,
|
|
3
|
+
import { u as pe, F as Ve, i as fe, b as ge, m as re, a as Me, k as N, d as le, g as ve, h as _e, O as ie, _ as Se } from "./index.vue_vue_type_script_setup_true_lang-qgDBinUn.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 W, 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-BcGgfvbE.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-
|
|
11
|
-
import { c as
|
|
12
|
-
import { C as P, a as R } from "./catalogSetting-
|
|
13
|
-
import { _ as
|
|
14
|
-
import { C as Ee } from "./catalog-
|
|
9
|
+
import { _ as De } from "./RuleView.vue_vue_type_script_setup_true_lang-D9DqmAVY.js";
|
|
10
|
+
import { _ as me, a as Ne } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BbqcH4sM.js";
|
|
11
|
+
import { c as $e } from "./check-C9mY6LiX.js";
|
|
12
|
+
import { C as P, a as R } from "./catalogSetting-Dl7uIiJm.js";
|
|
13
|
+
import { _ as Le } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
14
|
+
import { C as Ee } from "./catalog-B_yk-l1-.js";
|
|
15
15
|
const Ie = /* @__PURE__ */ se({
|
|
16
16
|
__name: "CatalogUsageTable",
|
|
17
17
|
props: {
|
|
@@ -23,7 +23,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
23
23
|
} = ue(), S = x(() => M.catalog.restaurants.length === 0 ? [{
|
|
24
24
|
name: "--",
|
|
25
25
|
usage: []
|
|
26
|
-
}] : M.catalog.restaurants),
|
|
26
|
+
}] : M.catalog.restaurants), L = [{
|
|
27
27
|
accessorKey: "name",
|
|
28
28
|
header: () => o("div", {
|
|
29
29
|
class: "flex flex-col"
|
|
@@ -68,7 +68,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
68
68
|
return (y, k) => {
|
|
69
69
|
const A = _("FmTable");
|
|
70
70
|
return p(), V(A, {
|
|
71
|
-
"column-defs":
|
|
71
|
+
"column-defs": L,
|
|
72
72
|
"row-data": S.value,
|
|
73
73
|
"page-size": S.value.length,
|
|
74
74
|
virtual: !0,
|
|
@@ -83,8 +83,8 @@ const Ie = /* @__PURE__ */ se({
|
|
|
83
83
|
}, Re = { class: "pl-[60px] space-y-16" }, ze = { class: "space-x-16 flex items-center" }, je = { class: "flex-1 space-y-4" }, Ge = { class: "fm-typo-en-body-lg-400" }, Ke = { class: "fm-typo-en-body-md-400" }, Ye = { class: "flex gap-8 items-center justify-start" }, He = /* @__PURE__ */ se({
|
|
84
84
|
__name: "Form",
|
|
85
85
|
setup(ee, { expose: M }) {
|
|
86
|
-
const d = j(!1), S = j(!1),
|
|
87
|
-
|
|
86
|
+
const d = j(!1), S = j(!1), L = (c, u) => {
|
|
87
|
+
$e.isBoolean(c) ? d.value = c : d.value = !d.value, d.value && (r.value = P.fromCatalog(
|
|
88
88
|
u ?? re.generator.initMenuV4Catalog(),
|
|
89
89
|
y.value
|
|
90
90
|
));
|
|
@@ -141,10 +141,10 @@ const Ie = /* @__PURE__ */ se({
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
const { t: i } = ue();
|
|
144
|
-
return M({ trigger:
|
|
144
|
+
return M({ trigger: L }), (c, u) => {
|
|
145
145
|
const f = _("fm-text-field"), C = _("fm-radio"), U = _("fm-radio-group"), D = _("fm-checkbox"), I = _("fm-switch"), s = _("fm-select"), a = _("fm-button"), l = _("fm-chip"), O = _("fm-card"), B = _("fm-side-sheet");
|
|
146
146
|
return p(), F(G, null, [
|
|
147
|
-
xe(c.$slots, "default", { trigger:
|
|
147
|
+
xe(c.$slots, "default", { trigger: L }),
|
|
148
148
|
o(B, {
|
|
149
149
|
modelValue: d.value,
|
|
150
150
|
"onUpdate:modelValue": u[8] || (u[8] = (t) => d.value = t),
|
|
@@ -317,12 +317,12 @@ const Ie = /* @__PURE__ */ se({
|
|
|
317
317
|
v("div", je, [
|
|
318
318
|
o(l, { class: "text-fm-color-typo-info bg-fm-color-system-info-100 font-semibold" }, {
|
|
319
319
|
default: g(() => [
|
|
320
|
-
ke(
|
|
320
|
+
ke($(e(i)("menu.catalog.form.markup.percentage", { value: t.percentage })), 1)
|
|
321
321
|
]),
|
|
322
322
|
_: 2
|
|
323
323
|
}, 1024),
|
|
324
|
-
v("p", Ge,
|
|
325
|
-
v("p", Ke,
|
|
324
|
+
v("p", Ge, $(e(i)("menu.catalog.form.markup.config", { number: b + 1 })), 1),
|
|
325
|
+
v("p", Ke, $(t.includeItems ? e(i)("menu.catalog.form.markup.products", {
|
|
326
326
|
count: t.includeItems.length
|
|
327
327
|
}) : e(i)("menu.catalog.form.markup.all_items")), 1)
|
|
328
328
|
]),
|
|
@@ -386,7 +386,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
386
386
|
}, oe = "main", Ca = /* @__PURE__ */ se({
|
|
387
387
|
__name: "Catalog",
|
|
388
388
|
setup(ee) {
|
|
389
|
-
const M = ye(), d = pe(), S = be(),
|
|
389
|
+
const M = ye(), d = pe(), S = be(), L = ge(S), y = Te(), k = fe(L), A = Oe(), {
|
|
390
390
|
t: m
|
|
391
391
|
} = ue(), r = x(() => {
|
|
392
392
|
const s = {};
|
|
@@ -569,7 +569,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
569
569
|
}]), D = we(), I = x(() => D.breakpoints.value.xs);
|
|
570
570
|
return (s, a) => {
|
|
571
571
|
const l = _("fm-button"), O = _("FmSearch"), B = _("FmTable"), t = _("FmButton"), b = _("fm-side-sheet");
|
|
572
|
-
return p(), V(
|
|
572
|
+
return p(), V(Le, {
|
|
573
573
|
heading: e(m)("menu.catalog.title")
|
|
574
574
|
}, {
|
|
575
575
|
"append-heading": g(() => [H.value.length > 0 ? (p(), V(e(de), {
|
|
@@ -622,7 +622,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
622
622
|
key: n.id,
|
|
623
623
|
class: "flex flex-row py-12 px-16 items-center",
|
|
624
624
|
onClick: (h) => c(n.id)
|
|
625
|
-
}, [v("div", aa, [v("p", la, " Tax calculation: " +
|
|
625
|
+
}, [v("div", aa, [v("p", la, " Tax calculation: " + $(n.taxMode), 1), v("p", ta, " Auto link product: " + $(n.autoLink), 1), v("p", oa, $(n.name), 1)]), v("div", na, [o(t, {
|
|
626
626
|
"text-color": e(Z).NeutralGray400,
|
|
627
627
|
variant: e(W).Tertiary,
|
|
628
628
|
"prepend-icon": "file_copy",
|
|
@@ -658,7 +658,7 @@ const Ie = /* @__PURE__ */ se({
|
|
|
658
658
|
"max-width": 1e3,
|
|
659
659
|
"dismiss-away": ""
|
|
660
660
|
}, {
|
|
661
|
-
"side-sheet-header": g(() => [v("p", sa,
|
|
661
|
+
"side-sheet-header": g(() => [v("p", sa, $(e(m)("menu.catalog.usage.title")), 1)]),
|
|
662
662
|
default: g(() => [E.value ? (p(), F("div", ua, [(p(!0), F(G, null, X(q.value, (n, h) => (p(), V(Ie, {
|
|
663
663
|
key: h,
|
|
664
664
|
catalog: n
|
|
@@ -1,10 +1,10 @@
|
|
|
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 K, Fragment as P, 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,
|
|
5
|
-
import { _ as G } from "./app-
|
|
6
|
-
import { u as B } from "./menu-
|
|
7
|
-
import { ao as H } from "./item-
|
|
4
|
+
import { b as F, i as T, u as Y, s as j, g as q, h as A, _ as R } from "./index.vue_vue_type_script_setup_true_lang-qgDBinUn.js";
|
|
5
|
+
import { _ as G } from "./app-BcGgfvbE.js";
|
|
6
|
+
import { u as B } from "./menu-DKJ7olgK.js";
|
|
7
|
+
import { ao as H } from "./item-EPxRgVm0.js";
|
|
8
8
|
const J = {
|
|
9
9
|
key: 0
|
|
10
10
|
}, Q = {
|
|
@@ -2,13 +2,13 @@ import { defineComponent as L, ref as $, computed as C, h as m, withModifiers as
|
|
|
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, i as D, g as ee, h as te, _ as oe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { b as N, i as D, g as ee, h as te, _ as oe } from "./index.vue_vue_type_script_setup_true_lang-qgDBinUn.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-BcGgfvbE.js";
|
|
8
8
|
import { c as le } from "./createForm-BoUQeZTd.js";
|
|
9
|
-
import { A as se, ao as R } from "./item-
|
|
9
|
+
import { A as se, ao as R } from "./item-EPxRgVm0.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-DKJ7olgK.js";
|
|
12
12
|
const ie = se, me = {
|
|
13
13
|
key: 0
|
|
14
14
|
}, ue = {
|
|
@@ -2,17 +2,17 @@ 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 { d as ee, g as de, h as re,
|
|
7
|
-
import { u as pe, l as ge } from "./discardConfirm-
|
|
5
|
+
import { _ as Ce } from "./app-BcGgfvbE.js";
|
|
6
|
+
import { d as ee, g as de, h as re, G as me, u as we, i as Ve, b as Fe, _ as Se } from "./index.vue_vue_type_script_setup_true_lang-qgDBinUn.js";
|
|
7
|
+
import { u as pe, l as ge } from "./discardConfirm-fCmrAVO1.js";
|
|
8
8
|
import { d as $e } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
9
|
-
import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { L as Ie } from "./LinkProductSideSheet-
|
|
9
|
+
import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-D9DqmAVY.js";
|
|
10
|
+
import { L as Ie } from "./LinkProductSideSheet-DsBA_o9g.js";
|
|
11
11
|
import { _ as Oe } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
12
|
-
const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = { class: "space-y-32" }, Be = { 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%]" },
|
|
12
|
+
const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = { class: "space-y-32" }, Be = { 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",
|
|
14
14
|
emits: ["onComplete"],
|
|
15
|
-
setup(
|
|
15
|
+
setup(G, { expose: _, emit: J }) {
|
|
16
16
|
const { t: r } = le();
|
|
17
17
|
_({
|
|
18
18
|
show: s,
|
|
@@ -45,7 +45,7 @@ const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = {
|
|
|
45
45
|
function j(v) {
|
|
46
46
|
const t = document.activeElement;
|
|
47
47
|
if (t && t.tagName === "TEXTAREA") {
|
|
48
|
-
const f = t.selectionStart, N = t.selectionEnd,
|
|
48
|
+
const f = t.selectionStart, N = t.selectionEnd, T = c.value.instruction, $ = T.substring(0, f) + `{{${v}}}` + T.substring(N);
|
|
49
49
|
c.value = {
|
|
50
50
|
...c.value,
|
|
51
51
|
instruction: $
|
|
@@ -86,7 +86,7 @@ const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
return (v, t) => {
|
|
89
|
-
const f = x("FmButton"), N = x("FmTextField"),
|
|
89
|
+
const f = x("FmButton"), N = x("FmTextField"), T = x("FmChip"), $ = x("FmTextarea"), Y = x("FmSideSheet");
|
|
90
90
|
return g(), U(Y, {
|
|
91
91
|
modelValue: C.value,
|
|
92
92
|
"onUpdate:modelValue": t[1] || (t[1] = (z) => C.value = z),
|
|
@@ -147,13 +147,13 @@ const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = {
|
|
|
147
147
|
a("div", null, [
|
|
148
148
|
a("div", Be, [
|
|
149
149
|
a("div", De, S(n(r)("menu.cooking_guide.step_dialog.sections.variables.columns.key")), 1),
|
|
150
|
-
a("div",
|
|
150
|
+
a("div", Ge, S(n(r)("menu.cooking_guide.step_dialog.sections.variables.columns.value")), 1)
|
|
151
151
|
]),
|
|
152
152
|
(g(!0), K(M, null, H(w.value, (z, E) => (g(), K("div", {
|
|
153
153
|
key: E,
|
|
154
154
|
class: "flex items-center border-b border-b-fm-color-neutral-gray-100"
|
|
155
155
|
}, [
|
|
156
|
-
a("div",
|
|
156
|
+
a("div", Te, [
|
|
157
157
|
l(N, {
|
|
158
158
|
modelValue: w.value[E].key,
|
|
159
159
|
"onUpdate:modelValue": (B) => w.value[E].key = B,
|
|
@@ -192,7 +192,7 @@ const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = {
|
|
|
192
192
|
default: p(() => [
|
|
193
193
|
a("div", Ee, [
|
|
194
194
|
a("div", Ue, [
|
|
195
|
-
(g(!0), K(M, null, H(k.value, (z) => (g(), U(
|
|
195
|
+
(g(!0), K(M, null, H(k.value, (z) => (g(), U(T, {
|
|
196
196
|
key: z.label,
|
|
197
197
|
label: z.label,
|
|
198
198
|
class: "text-fm-color-primary bg-fm-color-system-warning-100",
|
|
@@ -217,7 +217,7 @@ const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = {
|
|
|
217
217
|
}), Ae = { class: "w-[700px]" }, Pe = { class: "flex bg-fm-color-neutral-gray-100" }, qe = { class: "px-16 py-8 grow" }, je = { class: "px-16 py-8 w-[200px]" }, Ye = { class: "px-16 py-8 w-[200px]" }, Xe = { class: "px-16 py-8 grow" }, He = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, Je = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, Qe = /* @__PURE__ */ ae({
|
|
218
218
|
__name: "CookingGuideStepOverrideDialog",
|
|
219
219
|
emits: ["onComplete"],
|
|
220
|
-
setup(
|
|
220
|
+
setup(G, { expose: _, emit: J }) {
|
|
221
221
|
const { t: r } = le();
|
|
222
222
|
_({
|
|
223
223
|
show: s,
|
|
@@ -304,7 +304,7 @@ const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = {
|
|
|
304
304
|
l(L, {
|
|
305
305
|
"model-value": q(t.id, N.toString()),
|
|
306
306
|
placeholder: f,
|
|
307
|
-
"onUpdate:modelValue": (
|
|
307
|
+
"onUpdate:modelValue": (T) => Q(t.id, N.toString(), T)
|
|
308
308
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
|
|
309
309
|
]))), 128))
|
|
310
310
|
])
|
|
@@ -328,8 +328,8 @@ const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = {
|
|
|
328
328
|
}
|
|
329
329
|
},
|
|
330
330
|
emits: ["onSave"],
|
|
331
|
-
setup(
|
|
332
|
-
const r =
|
|
331
|
+
setup(G, { expose: _, emit: J }) {
|
|
332
|
+
const r = G;
|
|
333
333
|
_({
|
|
334
334
|
showModal: R,
|
|
335
335
|
hideModal: I
|
|
@@ -428,7 +428,7 @@ const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = {
|
|
|
428
428
|
);
|
|
429
429
|
o >= 0 && s.value.bindings.splice(o, 1);
|
|
430
430
|
}
|
|
431
|
-
const { t } = le(), f = V(() => s.value._id ? t("menu.cooking_guide.dialog.update.title") : t("menu.cooking_guide.dialog.add.title")), N = V(() => s.value._id ? t("menu.cooking_guide.dialog.update.action") : t("menu.cooking_guide.dialog.add.action")),
|
|
431
|
+
const { t } = le(), f = V(() => s.value._id ? t("menu.cooking_guide.dialog.update.title") : t("menu.cooking_guide.dialog.add.title")), N = V(() => s.value._id ? t("menu.cooking_guide.dialog.update.action") : t("menu.cooking_guide.dialog.add.action")), T = V(() => s.value.bindings.length), $ = V(
|
|
432
432
|
() => s.value.bindings.reduce((e, o) => {
|
|
433
433
|
const b = e[o.productId] ?? [];
|
|
434
434
|
return o.combinationKey ? e[o.productId] = [...b, o.combinationKey] : e[o.productId] = [], e;
|
|
@@ -599,14 +599,14 @@ const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = {
|
|
|
599
599
|
]),
|
|
600
600
|
_: 1
|
|
601
601
|
}, 8, ["title"]),
|
|
602
|
-
|
|
602
|
+
G.canApplyItems ? (g(), U(Z, {
|
|
603
603
|
key: 0,
|
|
604
604
|
title: n(t)("menu.cooking_guide.dialog.sections.apply_product.title")
|
|
605
605
|
}, {
|
|
606
606
|
"append-title": p(() => [
|
|
607
607
|
l(oe),
|
|
608
608
|
l(Ie, {
|
|
609
|
-
"categorized-items":
|
|
609
|
+
"categorized-items": G.categorizedItems,
|
|
610
610
|
"initial-value": s.value.bindings.map((y) => ({
|
|
611
611
|
_id: y.productId,
|
|
612
612
|
combinationKey: y.combinationKey
|
|
@@ -632,7 +632,7 @@ const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = {
|
|
|
632
632
|
default: p(() => [
|
|
633
633
|
a("div", to, [
|
|
634
634
|
a("div", no, S(n(t)("menu.cooking_guide.dialog.sections.apply_product.products_linked", {
|
|
635
|
-
count:
|
|
635
|
+
count: T.value
|
|
636
636
|
})), 1),
|
|
637
637
|
a("div", io, [
|
|
638
638
|
l(te, {
|
|
@@ -688,25 +688,25 @@ const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = {
|
|
|
688
688
|
};
|
|
689
689
|
}
|
|
690
690
|
});
|
|
691
|
-
function mo(
|
|
691
|
+
function mo(G) {
|
|
692
692
|
return {
|
|
693
693
|
module: re.enum.cookingGuide,
|
|
694
694
|
operation: de.F_OPERATION_TYPE.create,
|
|
695
|
-
data: me.parse(
|
|
695
|
+
data: me.parse(G)
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
function po(
|
|
698
|
+
function po(G) {
|
|
699
699
|
return {
|
|
700
700
|
module: re.enum.cookingGuide,
|
|
701
701
|
operation: de.F_OPERATION_TYPE.update,
|
|
702
|
-
data: me.parse(
|
|
702
|
+
data: me.parse(G)
|
|
703
703
|
};
|
|
704
704
|
}
|
|
705
|
-
function go(
|
|
705
|
+
function go(G) {
|
|
706
706
|
return {
|
|
707
707
|
module: re.enum.cookingGuide,
|
|
708
708
|
operation: de.F_OPERATION_TYPE.delete,
|
|
709
|
-
data:
|
|
709
|
+
data: G._id
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
712
|
const _o = {
|
|
@@ -723,7 +723,7 @@ const _o = {
|
|
|
723
723
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
724
724
|
}, Lo = /* @__PURE__ */ ae({
|
|
725
725
|
__name: "CookingGuide",
|
|
726
|
-
setup(
|
|
726
|
+
setup(G) {
|
|
727
727
|
const {
|
|
728
728
|
t: _
|
|
729
729
|
} = le(), J = ye(), r = V(() => J.breakpoints.value.xs), P = V(() => [{
|
|
@@ -811,7 +811,7 @@ const _o = {
|
|
|
811
811
|
return i ? I.value.filter((u) => u.name.toLowerCase().includes(i)) : I.value;
|
|
812
812
|
});
|
|
813
813
|
return (i, u) => {
|
|
814
|
-
const v = x("FmSearch"), t = x("FmTable"), f = x("FmButton"), N = x("FmListItem"),
|
|
814
|
+
const v = x("FmSearch"), t = x("FmTable"), f = x("FmButton"), N = x("FmListItem"), T = x("FmList");
|
|
815
815
|
return g(), U(Oe, {
|
|
816
816
|
heading: n(_)("menu.cooking_guide.title")
|
|
817
817
|
}, {
|
|
@@ -831,7 +831,7 @@ const _o = {
|
|
|
831
831
|
autofocus: "",
|
|
832
832
|
class: "my-8 w-[320px] xs:w-full xs:px-16",
|
|
833
833
|
placeholder: n(_)("menu.cooking_guide.table.search.placeholder")
|
|
834
|
-
}, null, 8, ["modelValue", "placeholder"])]), r.value ? (g(), U(
|
|
834
|
+
}, null, 8, ["modelValue", "placeholder"])]), r.value ? (g(), U(T, {
|
|
835
835
|
key: 1,
|
|
836
836
|
class: "w-full px-16 flex-1 min-h-0 overflow-scroll pb-64",
|
|
837
837
|
separator: ""
|
|
@@ -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-qgDBinUn.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 { ap as b } from "./item-
|
|
7
|
-
import { a as h } from "./menu-
|
|
5
|
+
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-bBWkJ2Hx.js";
|
|
6
|
+
import { ap as b } from "./item-EPxRgVm0.js";
|
|
7
|
+
import { a as h } from "./menu-DKJ7olgK.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,19 @@
|
|
|
1
1
|
import { defineComponent as oe, computed as f, resolveComponent as F, createBlock as R, openBlock as m, withCtx as x, createElementBlock as y, Fragment as E, renderList as ne, createElementVNode as d, normalizeClass as q, toDisplayString as A, createVNode as i, createCommentVNode as N, unref as u, ref as P, watch as $e, h as Y, mergeProps as De, createSlots as Te, withModifiers as Pe, isRef as Q, nextTick as de } from "vue";
|
|
2
|
-
import { l as ee } from "./discardConfirm-
|
|
2
|
+
import { l as ee } from "./discardConfirm-fCmrAVO1.js";
|
|
3
3
|
import { d as Ee } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
4
|
-
import { u as ye, i as Le, b as Ue, F as te, j as w, m as je, _ as ze, a as Be, h as fe, g as Ke } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as ye, i as Le, b as Ue, F as te, j as w, m as je, _ as ze, a as Be, h as fe, g as Ke } from "./index.vue_vue_type_script_setup_true_lang-qgDBinUn.js";
|
|
5
5
|
import { b as ve, H as Ye } from "./app-5fxKLAzS.js";
|
|
6
6
|
import { useI18n as _e, useCoreStore as He, useCustomAttributes as Qe } from "@feedmepos/mf-common";
|
|
7
7
|
import { useBreakpoints as be, useSnackbar as qe, useDialog as We, components as Je, FmButtonVariant as Xe } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as Ze, a as et } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as tt } from "./app-
|
|
8
|
+
import { _ as Ze, a as et } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-bIONGM6k.js";
|
|
9
|
+
import { _ as tt } from "./app-BcGgfvbE.js";
|
|
10
10
|
import { _ as nt, a as ot } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
11
11
|
import { c as lt } from "./object-DVUNCr7w.js";
|
|
12
|
-
import { _ as rt } from "./ApplyProductDialog.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { O as ge, au as at, av as ut, ap as st, Q as it, a6 as ct, a2 as mt, R as pt } from "./item-
|
|
12
|
+
import { _ as rt } from "./ApplyProductDialog.vue_vue_type_script_setup_true_lang-CMI2Nh0n.js";
|
|
13
|
+
import { O as ge, au as at, av as ut, ap as st, Q as it, a6 as ct, a2 as mt, R as pt } from "./item-EPxRgVm0.js";
|
|
14
14
|
import { _ as dt } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-DiK3fi9J.js";
|
|
15
15
|
import { u as ft } from "./search-BAPEUu1R.js";
|
|
16
|
-
import { C as vt } from "./catalog-
|
|
16
|
+
import { C as vt } from "./catalog-B_yk-l1-.js";
|
|
17
17
|
const gt = /* @__PURE__ */ oe({
|
|
18
18
|
__name: "ResponsiveContextMenu",
|
|
19
19
|
props: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as N, useModel as
|
|
1
|
+
import { defineComponent as N, useModel as J, computed as B, resolveComponent as d, createBlock as I, openBlock as b, ref as L, watch as K, withCtx as f, createElementBlock as F, createElementVNode as U, Fragment as q, renderList as W, createVNode as u, unref as e, createCommentVNode as $, withModifiers as Q, onMounted as te, renderSlot as le, toDisplayString as h, createTextVNode as ae } from "vue";
|
|
2
2
|
import { useI18n as z, useCustomAttributes as ue, useCoreStore as re, isEmptyRule as oe, EMPTY_RULE as w } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as x } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
4
|
-
import { u as D } from "./priceTier-
|
|
4
|
+
import { u as D } from "./priceTier-DyxDcoSh.js";
|
|
5
5
|
import { b as O } from "./app-5fxKLAzS.js";
|
|
6
6
|
import { FmButtonVariant as Z, useDialog as ne, components as ie, FmButtonColorThemeVariant as j } from "@feedmepos/ui-library";
|
|
7
|
-
import { m as G, f as
|
|
8
|
-
import { L as R } from "./catalogSetting-
|
|
9
|
-
import { L as de } from "./LinkProductSideSheet-
|
|
10
|
-
import { c as
|
|
11
|
-
import { u as pe, d as
|
|
7
|
+
import { m as G, f as X, e as se, _ as me } from "./RuleView.vue_vue_type_script_setup_true_lang-D9DqmAVY.js";
|
|
8
|
+
import { L as R } from "./catalogSetting-Dl7uIiJm.js";
|
|
9
|
+
import { L as de } from "./LinkProductSideSheet-DsBA_o9g.js";
|
|
10
|
+
import { c as Y } from "./check-C9mY6LiX.js";
|
|
11
|
+
import { u as pe, d as H, X as ce } from "./index.vue_vue_type_script_setup_true_lang-qgDBinUn.js";
|
|
12
12
|
import { c as ve } from "./string-DpfFixWH.js";
|
|
13
13
|
const _e = /* @__PURE__ */ N({
|
|
14
14
|
__name: "LinkPriceTier",
|
|
@@ -18,7 +18,7 @@ const _e = /* @__PURE__ */ N({
|
|
|
18
18
|
},
|
|
19
19
|
emits: ["update:modelValue"],
|
|
20
20
|
setup(T) {
|
|
21
|
-
const { t: k } = z(), r =
|
|
21
|
+
const { t: k } = z(), r = J(T, "modelValue"), o = D(), a = B(() => o.priceTiers.value.map((y) => ({
|
|
22
22
|
label: y.key,
|
|
23
23
|
value: y.key
|
|
24
24
|
})));
|
|
@@ -48,7 +48,7 @@ const _e = /* @__PURE__ */ N({
|
|
|
48
48
|
var V;
|
|
49
49
|
const {
|
|
50
50
|
t: k
|
|
51
|
-
} = z(), r =
|
|
51
|
+
} = z(), r = J(T, "modelValue"), o = L((V = r.value) == null ? void 0 : V.map((l) => {
|
|
52
52
|
var p, c;
|
|
53
53
|
return {
|
|
54
54
|
...l,
|
|
@@ -58,14 +58,14 @@ const _e = /* @__PURE__ */ N({
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
}));
|
|
61
|
-
|
|
61
|
+
K(o, (l) => {
|
|
62
62
|
r.value = l == null ? void 0 : l.map((p) => {
|
|
63
63
|
var c, n;
|
|
64
64
|
return {
|
|
65
65
|
priceTier: p.priceTier,
|
|
66
66
|
restaurantRule: {
|
|
67
|
-
restaurantAttributes:
|
|
68
|
-
restaurantCustomAttributes:
|
|
67
|
+
restaurantAttributes: X((c = p.restaurantRule) == null ? void 0 : c.restaurantAttributes),
|
|
68
|
+
restaurantCustomAttributes: X((n = p.restaurantRule) == null ? void 0 : n.restaurantCustomAttributes)
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
});
|
|
@@ -102,7 +102,7 @@ const _e = /* @__PURE__ */ N({
|
|
|
102
102
|
return (l, p) => {
|
|
103
103
|
const c = d("FmSelect"), n = d("fm-button"), v = d("FmCard"), E = d("FmButton");
|
|
104
104
|
return b(), I(me, null, {
|
|
105
|
-
default: f(() => [(b(!0), F(q, null,
|
|
105
|
+
default: f(() => [(b(!0), F(q, null, W(o.value, (M, S) => (b(), I(v, {
|
|
106
106
|
key: S,
|
|
107
107
|
class: "p-16 space-y-16",
|
|
108
108
|
variant: "outlined"
|
|
@@ -241,17 +241,17 @@ const _e = /* @__PURE__ */ N({
|
|
|
241
241
|
const r = T, o = pe();
|
|
242
242
|
ne();
|
|
243
243
|
const { t: a } = z(), y = k, g = B(() => r.action === "add" ? a("menu.markup.dialog.title.add") : a("menu.markup.dialog.title.update")), i = L(!1), s = (n) => {
|
|
244
|
-
|
|
244
|
+
Y.isBoolean(n) ? i.value = n : i.value = !i.value;
|
|
245
245
|
}, t = L(
|
|
246
|
-
r.modelValue ?
|
|
246
|
+
r.modelValue ? H(r.modelValue) : {
|
|
247
247
|
percentage: 0,
|
|
248
248
|
includeItems: null
|
|
249
249
|
}
|
|
250
250
|
);
|
|
251
|
-
|
|
251
|
+
K(
|
|
252
252
|
() => i.value,
|
|
253
253
|
(n) => {
|
|
254
|
-
n && (t.value = r.modelValue ?
|
|
254
|
+
n && (t.value = r.modelValue ? H(r.modelValue) : {
|
|
255
255
|
percentage: 0,
|
|
256
256
|
includeItems: null
|
|
257
257
|
});
|
|
@@ -333,7 +333,7 @@ const _e = /* @__PURE__ */ N({
|
|
|
333
333
|
max: 100,
|
|
334
334
|
min: 0,
|
|
335
335
|
rules: [
|
|
336
|
-
(m) => e(
|
|
336
|
+
(m) => e(Y).isSet(m) && m >= 0 || e(a)("menu.markup.dialog.fields.percentage.required")
|
|
337
337
|
],
|
|
338
338
|
label: e(a)("menu.markup.dialog.fields.percentage.label"),
|
|
339
339
|
placeholder: e(a)("menu.markup.dialog.fields.percentage.placeholder")
|
|
@@ -353,7 +353,7 @@ const _e = /* @__PURE__ */ N({
|
|
|
353
353
|
class: "space-y-8"
|
|
354
354
|
}, {
|
|
355
355
|
default: f(() => [
|
|
356
|
-
(b(!0), F(q, null,
|
|
356
|
+
(b(!0), F(q, null, W(p.value, (m) => (b(), I(S, {
|
|
357
357
|
key: m.value,
|
|
358
358
|
label: m.label,
|
|
359
359
|
value: m.value
|