@feedmepos/mf-menu 0.32.64 → 0.32.65
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-W8bH6kiT.js → App-rjcnTQzq.js} +8 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DvHmwIP2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BlX-ygeo.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-2nFIpZv4.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DTEZouRz.js} +3 -3
- package/dist/{Catalog-pywklogh.js → Catalog-nWzKN1u3.js} +6 -6
- package/dist/{Category-UMDcymDA.js → Category-DoUtDyuB.js} +14 -14
- package/dist/{Category-CLs58F_F.js → Category-Q42BO86t.js} +8 -8
- package/dist/{CookingGuide-Cefv83hr.js → CookingGuide-DGVhn_Yb.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-C9CvjWEO.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Dc_Ec9Pf.js} +1 -1
- package/dist/{Group-Ujeo9noG.js → Group-B9vMDg2m.js} +3 -3
- package/dist/{Group-CfxNpgp7.js → Group-D8st1q0o.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-C-eZ5PGS.js → Group.vue_vue_type_script_setup_true_lang-CV_w5c7T.js} +48 -48
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-qTEz4XWJ.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-36kp3qi8.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Kf10i_T2.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-ZbhwNALE.js} +6282 -6280
- package/dist/{Ingredient-CsHbFizZ.js → Ingredient-DWN4vTKf.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-NKoRT-LI.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DJrz0wWm.js} +2 -2
- package/dist/{LinkProductSideSheet-B-Trz4a6.js → LinkProductSideSheet-DXmxJs-1.js} +4 -4
- package/dist/{MenuSetting-BNWjJAp4.js → MenuSetting-BSlQXo8m.js} +7 -7
- package/dist/{OrderPacing-DhKmymC7.js → OrderPacing-B8pgEMjf.js} +5 -5
- package/dist/{PrintRoute-DaIY94Ts.js → PrintRoute-agfebph4.js} +5 -5
- package/dist/{Product-SBeMVZBU.js → Product-CaA1CdTN.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CDoJwAFZ.js → Product.vue_vue_type_script_setup_true_lang-Bsx6JceZ.js} +108 -108
- package/dist/{ProductInternalTools-BAHMukHo.js → ProductInternalTools-DHQz_Z8o.js} +25 -25
- package/dist/{Products-CvUK4ngP.js → Products-CeVnRRFO.js} +63 -63
- package/dist/{Publish-BqI8LP_Y.js → Publish-rN34cEkS.js} +4 -4
- package/dist/{Recipe--LCvPofA.js → Recipe-C_qTZ_E1.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DaqG3ZEC.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-C6lkwlc5.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DsCNLIVd.js → RuleView.vue_vue_type_script_setup_true_lang-LbagGtcn.js} +595 -595
- package/dist/{Scheduler-BkXNha9_.js → Scheduler-DeixLUzk.js} +3 -3
- package/dist/{ServingSequence-DvF8yZTp.js → ServingSequence-CAmQBzaK.js} +3 -3
- package/dist/{Setting-dfdQhacG.js → Setting-C_Dl4MiB.js} +5 -5
- package/dist/{Subcategory-DoiEnCY-.js → Subcategory-C8DHzzkd.js} +6 -6
- package/dist/{Takeaway-CfTKoZgq.js → Takeaway-CIRpXPFx.js} +1 -1
- package/dist/{Takeaway-Pyol2JIm.js → Takeaway-CxYihXC0.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-A2Uz3Vx5.js → Takeaway.vue_vue_type_script_setup_true_lang-CcSjxPY4.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BAMLQtFW.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-D-ojP61R.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-Bx6Dfb9q.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BztGh7n9.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Bex1NCnU.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Cv4iVhML.js} +341 -340
- package/dist/{Unit-ODy76xeS.js → Unit-Cd0y2m5k.js} +2 -2
- package/dist/{Variant-BFUqQyub.js → Variant-B2CKhSOl.js} +3 -3
- package/dist/{_id_-DQO6Zi8b.js → _id_-DZiXY0H3.js} +10 -10
- package/dist/{app-BNF3d7ks.js → app-T7VNSy7v.js} +1 -1
- package/dist/{app-BNqI06Lw.js → app-T8AXgSEa.js} +32 -32
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +18 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{override-menu-BCrsilnp.js → linked-status-CCYZRm4Q.js} +3 -3
- package/dist/assets/{menu-export-oSHHIKfH.js → menu-export-CAHQqTea.js} +34 -34
- package/dist/assets/{linked-status-OJYsf1K1.js → override-menu-CHSXJZzL.js} +3 -3
- package/dist/assets/{validate-menu-CoDW8e4r.js → validate-menu-B4fZvuxj.js} +2 -2
- package/dist/{catalog-BiUOGVhu.js → catalog-JKO0yOoK.js} +1 -1
- package/dist/{catalogSetting-Dt03eB79.js → catalogSetting-88ecNK3c.js} +1 -1
- package/dist/{currency-I2Plgz6g.js → currency-FtZ1Kndg.js} +1 -1
- package/dist/{dayjs.min-CVgq1MI5.js → dayjs.min-4vLGgFCE.js} +2 -2
- package/dist/{discardConfirm-CU5H7XLz.js → discardConfirm-CM6g-V_v.js} +1 -1
- package/dist/{index-OUaL4kl7.js → index-BRKz6YXB.js} +5 -5
- package/dist/{index-D79td5bo.js → index-DJLvriHh.js} +6 -6
- package/dist/index-wiJWDZ8Q.js +310 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-BJ5dPd5h.js → index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js} +895 -895
- package/dist/{item-BPryyFAB.js → item-DZ7QwbXg.js} +1262 -1338
- package/dist/{jszip.min-D3CS7h7J.js → jszip.min-CMMOVzck.js} +167 -167
- package/dist/{linkProducts-ClCfYWFx.js → linkProducts-H4GRfufL.js} +4 -4
- package/dist/{memberPricing-CLr-Y_7e.js → memberPricing-DHWy5fqz.js} +1 -1
- package/dist/{menu-gBc-za7C.js → menu-CIm-Royr.js} +1 -1
- package/dist/{menuV2-D7O1K9Ej.js → menuV2-BAdmIxrF.js} +52 -52
- package/dist/{order_pacing-DVn2Kb9a.js → order_pacing-D58D3fak.js} +5 -5
- package/dist/{priceTier-33L1xIZW.js → priceTier-BQ8NefKy.js} +1 -1
- package/dist/{rules-C7ujXDzl.js → rules-CCMx9A-T.js} +3 -3
- package/dist/{scheduler-Dzj2Ed1a.js → scheduler-CV0r5tCc.js} +5 -5
- package/dist/{toExcel-CGOr53pl.js → toExcel-D4fh3tgH.js} +2 -2
- package/dist/{unit-CfREeFuX.js → unit-p_16wmg2.js} +3 -3
- package/package.json +1 -1
- package/dist/index-CD_omf3p.js +0 -222
|
@@ -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-qm3HbXBN.js";
|
|
6
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, r as routers, R as RouteName, u as useMenuNavigatorStatus } from "./app-T8AXgSEa.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-Cv4iVhML.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-DZ7QwbXg.js";
|
|
13
|
+
import { u as useAppStore } from "./app-T7VNSy7v.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) {
|
|
@@ -13455,7 +13455,7 @@ registerAuth(
|
|
|
13455
13455
|
"Browser"
|
|
13456
13456
|
/* ClientPlatform.BROWSER */
|
|
13457
13457
|
);
|
|
13458
|
-
var define_appEndpoint_default = { firebase: { apiKey: "
|
|
13458
|
+
var define_appEndpoint_default = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "image.feedmedev.cc", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
|
|
13459
13459
|
async function initFirebase() {
|
|
13460
13460
|
if (getApps().length) {
|
|
13461
13461
|
console.warn("mf-menu:firebase already initialized by another app");
|
|
@@ -13488,7 +13488,7 @@ const _hoisted_1 = {
|
|
|
13488
13488
|
async function m(I) {
|
|
13489
13489
|
try {
|
|
13490
13490
|
if (!S.value) {
|
|
13491
|
-
const T = "
|
|
13491
|
+
const T = "MaGoXrEWuEJNpWgKTqseee";
|
|
13492
13492
|
console.log(`Initialize feature flag with key *${T.slice(T.length - 4)}`), await p({ apiKey: T });
|
|
13493
13493
|
}
|
|
13494
13494
|
await f(I);
|
|
@@ -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-CAmQBzaK.js")
|
|
13547
13547
|
});
|
|
13548
13548
|
}
|
|
13549
13549
|
), watch(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as j, computed as i, h as u, ref as K, resolveComponent as b, createElementBlock as p, openBlock as d, createVNode as f, withCtx as g, createElementVNode as V, createCommentVNode as C, toDisplayString as U, 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-LbagGtcn.js";
|
|
5
|
+
import { L as $ } from "./LinkProductSideSheet-DXmxJs-1.js";
|
|
6
6
|
import { u as q } from "./search-BAPEUu1R.js";
|
|
7
|
-
import { u as J, aj as Q } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { u as J, aj as Q } from "./index.vue_vue_type_script_setup_true_lang-qm3HbXBN.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-CM6g-V_v.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-BlX-ygeo.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-qm3HbXBN.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
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, O as ie, _ as Se } from "./index.vue_vue_type_script_setup_true_lang-
|
|
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-qm3HbXBN.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-T8AXgSEa.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-LbagGtcn.js";
|
|
10
|
+
import { _ as me, a as Ne } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-36kp3qi8.js";
|
|
11
11
|
import { c as $e } from "./check-C9mY6LiX.js";
|
|
12
|
-
import { C as P, a as R } from "./catalogSetting-
|
|
12
|
+
import { C as P, a as R } from "./catalogSetting-88ecNK3c.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-JKO0yOoK.js";
|
|
15
15
|
const Ie = /* @__PURE__ */ se({
|
|
16
16
|
__name: "CatalogUsageTable",
|
|
17
17
|
props: {
|
|
@@ -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-qm3HbXBN.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-T8AXgSEa.js";
|
|
8
8
|
import { c as le } from "./createForm-BoUQeZTd.js";
|
|
9
|
-
import { A as se,
|
|
9
|
+
import { A as se, aj as R } from "./item-DZ7QwbXg.js";
|
|
10
10
|
import { _ as re } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-DiK3fi9J.js";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as j, a as ce } from "./menu-CIm-Royr.js";
|
|
12
12
|
const ie = se, me = {
|
|
13
13
|
key: 0
|
|
14
14
|
}, ue = {
|
|
@@ -30,13 +30,13 @@ const ie = se, me = {
|
|
|
30
30
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
31
31
|
}, be = /* @__PURE__ */ L({
|
|
32
32
|
__name: "CategoryTable",
|
|
33
|
-
setup(
|
|
33
|
+
setup(z) {
|
|
34
34
|
const d = S(), p = T(), h = N(p), _ = D(h), v = R({
|
|
35
35
|
dialog: d,
|
|
36
36
|
menuLoader: _
|
|
37
37
|
}), {
|
|
38
38
|
categories: i
|
|
39
|
-
} =
|
|
39
|
+
} = j(), n = $(""), g = C(() => i.value.filter((e) => e.name.toLowerCase().includes(n.value.toLowerCase()))), {
|
|
40
40
|
t: l
|
|
41
41
|
} = E(), V = $([{
|
|
42
42
|
accessorKey: "name",
|
|
@@ -120,20 +120,20 @@ const ie = se, me = {
|
|
|
120
120
|
}, e.name, !0);
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
async function
|
|
123
|
+
async function A(e) {
|
|
124
124
|
const t = e.map((r) => r.id).filter((r) => !!r);
|
|
125
125
|
await v.rearrange(t);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const I = G();
|
|
128
128
|
async function F(e) {
|
|
129
|
-
le(
|
|
129
|
+
le(I, ie, {
|
|
130
130
|
initialValue: e
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const O = W(), U = C(() => O.breakpoints.value.xs);
|
|
134
134
|
return (e, t) => {
|
|
135
135
|
const r = x("FmSearch"), K = x("FmTable"), P = x("FmButton");
|
|
136
|
-
return
|
|
136
|
+
return U.value ? (c(), f("div", pe, [s("div", _e, [u(r, {
|
|
137
137
|
autofocus: "",
|
|
138
138
|
modelValue: n.value,
|
|
139
139
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => n.value = a),
|
|
@@ -171,7 +171,7 @@ const ie = se, me = {
|
|
|
171
171
|
"shrink-at": !1,
|
|
172
172
|
"hide-footer": "",
|
|
173
173
|
"pin-header-row": "",
|
|
174
|
-
onDndChanged:
|
|
174
|
+
onDndChanged: A,
|
|
175
175
|
onRowClick: t[1] || (t[1] = (a) => F(a.original))
|
|
176
176
|
}, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
|
|
177
177
|
_: 1
|
|
@@ -180,8 +180,8 @@ const ie = se, me = {
|
|
|
180
180
|
}
|
|
181
181
|
}), xe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ce = { class: "flex items-center" }, ke = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, we = { class: "fm-typo-en-body-md-600 font-semibold" }, Re = /* @__PURE__ */ L({
|
|
182
182
|
__name: "Category",
|
|
183
|
-
setup(
|
|
184
|
-
const d = S(), p = T(), h = N(p), _ = D(h), v = R({ dialog: d, menuLoader: _ }), { categories: i } =
|
|
183
|
+
setup(z) {
|
|
184
|
+
const d = S(), p = T(), h = N(p), _ = D(h), v = R({ dialog: d, menuLoader: _ }), { categories: i } = j(), { t: n } = E();
|
|
185
185
|
function g() {
|
|
186
186
|
v.create();
|
|
187
187
|
}
|
|
@@ -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
|
-
import { useSnackbar as M, useBreakpoints as $, useDialog as
|
|
4
|
-
import { b as F, i as T, u as
|
|
5
|
-
import { _ as G } from "./app-
|
|
6
|
-
import { u as B } from "./menu-
|
|
7
|
-
import {
|
|
3
|
+
import { useSnackbar as M, useBreakpoints as $, useDialog as j } from "@feedmepos/ui-library";
|
|
4
|
+
import { b as F, i as T, u as I, s as Y, g as q, h as A, _ as R } from "./index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js";
|
|
5
|
+
import { _ as G } from "./app-T8AXgSEa.js";
|
|
6
|
+
import { u as B } from "./menu-CIm-Royr.js";
|
|
7
|
+
import { aj as H } from "./item-DZ7QwbXg.js";
|
|
8
8
|
const J = {
|
|
9
9
|
key: 0
|
|
10
10
|
}, Q = {
|
|
@@ -27,7 +27,7 @@ const J = {
|
|
|
27
27
|
}, ne = /* @__PURE__ */ E({
|
|
28
28
|
__name: "CategoryTable",
|
|
29
29
|
setup(D) {
|
|
30
|
-
const f = M(), y = F(f), h = T(y), d =
|
|
30
|
+
const f = M(), y = F(f), h = T(y), d = I(), {
|
|
31
31
|
categories: v
|
|
32
32
|
} = B(), b = k(() => {
|
|
33
33
|
var r, t;
|
|
@@ -39,7 +39,7 @@ const J = {
|
|
|
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([{
|
|
@@ -129,7 +129,7 @@ const J = {
|
|
|
129
129
|
}), me = /* @__PURE__ */ E({
|
|
130
130
|
__name: "Category",
|
|
131
131
|
setup(D) {
|
|
132
|
-
const f =
|
|
132
|
+
const f = j(), y = M(), h = F(y), d = T(h), v = H({ dialog: f, menuLoader: d }), { categories: b } = B(), { t: n } = L();
|
|
133
133
|
function m() {
|
|
134
134
|
v.create();
|
|
135
135
|
}
|
|
@@ -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 { 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-
|
|
7
|
-
import { u as pe, l as ge } from "./discardConfirm-
|
|
5
|
+
import { _ as Ce } from "./app-T8AXgSEa.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-qm3HbXBN.js";
|
|
7
|
+
import { u as pe, l as ge } from "./discardConfirm-CM6g-V_v.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-LbagGtcn.js";
|
|
10
|
+
import { L as Ie } from "./LinkProductSideSheet-DXmxJs-1.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" }, 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",
|
|
@@ -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-qm3HbXBN.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-CV_w5c7T.js";
|
|
6
|
+
import { ak as b } from "./item-DZ7QwbXg.js";
|
|
7
|
+
import { a as h } from "./menu-CIm-Royr.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
|
-
import { defineComponent as oe, computed as f, resolveComponent as F, createBlock as
|
|
2
|
-
import { l as ee } from "./discardConfirm-
|
|
1
|
+
import { defineComponent as oe, computed as f, resolveComponent as F, createBlock as $, 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 O, unref as u, ref as P, watch as De, h as Y, mergeProps as Re, createSlots as Te, withModifiers as Pe, isRef as Q, nextTick as de } from "vue";
|
|
2
|
+
import { l as ee } from "./discardConfirm-CM6g-V_v.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-qm3HbXBN.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-Dc_Ec9Pf.js";
|
|
9
|
+
import { _ as tt } from "./app-T8AXgSEa.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 {
|
|
12
|
+
import { _ as rt } from "./ApplyProductDialog.vue_vue_type_script_setup_true_lang-DTEZouRz.js";
|
|
13
|
+
import { N as ge, ao as at, ap as ut, ak as st, O as it, a5 as ct, a1 as mt, Q as pt } from "./item-DZ7QwbXg.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-JKO0yOoK.js";
|
|
17
17
|
const gt = /* @__PURE__ */ oe({
|
|
18
18
|
__name: "ResponsiveContextMenu",
|
|
19
19
|
props: {
|
|
@@ -21,11 +21,11 @@ const gt = /* @__PURE__ */ oe({
|
|
|
21
21
|
},
|
|
22
22
|
setup(W) {
|
|
23
23
|
const L = be(), a = f(() => L.breakpoints.value.xs);
|
|
24
|
-
return (I,
|
|
24
|
+
return (I, N) => {
|
|
25
25
|
const b = F("FmButton"), k = F("FmMenuItem"), v = F("FmMenu");
|
|
26
|
-
return a.value ? (m(),
|
|
26
|
+
return a.value ? (m(), $(nt, { key: 0 }, {
|
|
27
27
|
default: x(() => [
|
|
28
|
-
(m(!0), y(E, null, ne(I.items, ({ icon: V, label: G, disabled: h, itemClass: U, onClick: S }) => (m(),
|
|
28
|
+
(m(!0), y(E, null, ne(I.items, ({ icon: V, label: G, disabled: h, itemClass: U, onClick: S }) => (m(), $(ot, {
|
|
29
29
|
key: G,
|
|
30
30
|
icon: V,
|
|
31
31
|
label: G,
|
|
@@ -37,7 +37,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
37
37
|
}, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
|
|
38
38
|
]),
|
|
39
39
|
_: 1
|
|
40
|
-
})) : (m(),
|
|
40
|
+
})) : (m(), $(v, {
|
|
41
41
|
key: 1,
|
|
42
42
|
"stop-click-propagation": "",
|
|
43
43
|
shift: !0
|
|
@@ -52,7 +52,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
52
52
|
})
|
|
53
53
|
]),
|
|
54
54
|
default: x(() => [
|
|
55
|
-
(m(!0), y(E, null, ne(I.items, ({ icon: V, label: G, disabled: h, itemClass: U, onClick: S }) => (m(),
|
|
55
|
+
(m(!0), y(E, null, ne(I.items, ({ icon: V, label: G, disabled: h, itemClass: U, onClick: S }) => (m(), $(k, {
|
|
56
56
|
key: G,
|
|
57
57
|
disabled: h,
|
|
58
58
|
onClick: () => {
|
|
@@ -81,21 +81,21 @@ const gt = /* @__PURE__ */ oe({
|
|
|
81
81
|
group: {}
|
|
82
82
|
},
|
|
83
83
|
setup(W) {
|
|
84
|
-
const L = W, { t: a } = _e(), I = ye(),
|
|
84
|
+
const L = W, { t: a } = _e(), I = ye(), N = f(() => L.group.itemsLinked.map((b) => {
|
|
85
85
|
const k = I.state.menu.modules.item.find((v) => v._id === b);
|
|
86
86
|
return (k == null ? void 0 : k.name) || b;
|
|
87
87
|
}).filter(Boolean));
|
|
88
88
|
return (b, k) => (m(), y("div", null, [
|
|
89
89
|
d("div", null, A(u(a)("menu.group.dialogs.delete.message", { name: b.group.name })), 1),
|
|
90
|
-
|
|
91
|
-
d("div", _t, A(u(a)("menu.group.dialogs.delete.unlink_warning", { count:
|
|
90
|
+
N.value.length > 0 ? (m(), y("div", yt, [
|
|
91
|
+
d("div", _t, A(u(a)("menu.group.dialogs.delete.unlink_warning", { count: N.value.length })), 1),
|
|
92
92
|
d("ul", bt, [
|
|
93
|
-
(m(!0), y(E, null, ne(
|
|
93
|
+
(m(!0), y(E, null, ne(N.value, (v) => (m(), y("li", {
|
|
94
94
|
key: v,
|
|
95
95
|
class: "text-sm"
|
|
96
96
|
}, A(v), 1))), 128))
|
|
97
97
|
])
|
|
98
|
-
])) :
|
|
98
|
+
])) : O("", !0)
|
|
99
99
|
]));
|
|
100
100
|
}
|
|
101
101
|
}), ht = {
|
|
@@ -123,10 +123,10 @@ const gt = /* @__PURE__ */ oe({
|
|
|
123
123
|
class: "flex-1 space-y-4"
|
|
124
124
|
}, It = {
|
|
125
125
|
class: "fm-typo-en-body-lg-600"
|
|
126
|
-
},
|
|
126
|
+
}, Nt = {
|
|
127
127
|
key: 0,
|
|
128
128
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
129
|
-
},
|
|
129
|
+
}, Ot = {
|
|
130
130
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
131
131
|
}, Wt = /* @__PURE__ */ oe({
|
|
132
132
|
__name: "Group",
|
|
@@ -134,12 +134,12 @@ const gt = /* @__PURE__ */ oe({
|
|
|
134
134
|
setup(W, {
|
|
135
135
|
emit: L
|
|
136
136
|
}) {
|
|
137
|
-
const a = ye(), I = He(),
|
|
137
|
+
const a = ye(), I = He(), N = qe(), b = Le(Ue(N)), k = We(), v = f(() => a.rules.group), V = f(() => new ge(a, b.updateMenu, k)), G = f(() => V.value.mapGroups(a.groups, !1)), {
|
|
138
138
|
searchKey: h,
|
|
139
139
|
filter: U
|
|
140
140
|
} = ft(), S = P(!1), _ = P(null), {
|
|
141
141
|
attributes: le,
|
|
142
|
-
filterRule:
|
|
142
|
+
filterRule: D,
|
|
143
143
|
mongoQuery: re
|
|
144
144
|
} = Qe({
|
|
145
145
|
valueSource: G,
|
|
@@ -148,7 +148,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
148
148
|
const t = (r) => U([r.name, ...Object.values(r.items).flatMap((o) => `${o.code} ${o.name ?? o.fallbackName} ${Be.Dinero.fromFdoDinero(o.price).toFormat()}`), r.type]), e = (r) => !r.customAttributes && !re.value ? !0 : Ye(r.customAttributes ?? {}, re.value);
|
|
149
149
|
return G.value.filter((r) => t(r) && e(r)).filter((r) => !_.value || r.type === _.value);
|
|
150
150
|
}), ke = L;
|
|
151
|
-
|
|
151
|
+
De(() => j.value.length, () => {
|
|
152
152
|
ke("update:count", j.value.length);
|
|
153
153
|
}, {
|
|
154
154
|
immediate: !0
|
|
@@ -282,7 +282,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
282
282
|
for (const s of r)
|
|
283
283
|
if (ct(a.state.menu, t._id, s._id)) {
|
|
284
284
|
const C = (o = a.state.menu.modules.item.find((p) => p._id === s._id)) == null ? void 0 : o.name;
|
|
285
|
-
|
|
285
|
+
N.open({
|
|
286
286
|
type: "error",
|
|
287
287
|
message: l("menu.product.form.group.circularError", {
|
|
288
288
|
groupName: t.name,
|
|
@@ -437,27 +437,27 @@ const gt = /* @__PURE__ */ oe({
|
|
|
437
437
|
};
|
|
438
438
|
await b.updateMenu(s, o.name);
|
|
439
439
|
}
|
|
440
|
-
},
|
|
440
|
+
}, R = P(null), Fe = f(() => xe(R.value)), ce = P(null), me = async (t) => {
|
|
441
441
|
var e;
|
|
442
|
-
|
|
442
|
+
R.value = lt(t), await de(), (e = ce.value) == null || e.trigger(!0);
|
|
443
443
|
};
|
|
444
444
|
function Ve(t) {
|
|
445
445
|
me(t.original);
|
|
446
446
|
}
|
|
447
|
-
const Ie = be(),
|
|
447
|
+
const Ie = be(), Ne = f(() => Ie.breakpoints.value.xs), {
|
|
448
448
|
t: l
|
|
449
|
-
} = _e(),
|
|
449
|
+
} = _e(), Oe = f(() => {
|
|
450
450
|
var t;
|
|
451
451
|
return ((t = I.groupAttributeSettings) == null ? void 0 : t.value.length) > 0;
|
|
452
452
|
}), K = P(!1), H = P(null);
|
|
453
|
-
async function
|
|
453
|
+
async function $e() {
|
|
454
454
|
K.value = !K.value, K.value && (await de(), H.value && H.value.toggleProperty(!0));
|
|
455
455
|
}
|
|
456
456
|
const pe = () => v.value.multiScheduler ? i(et, null, {
|
|
457
|
-
append: () =>
|
|
457
|
+
append: () => Oe.value ? i("div", {
|
|
458
458
|
class: "pl-8 flex items-center justify-center border-l border-fm-color-neutral-gray-200",
|
|
459
459
|
onClick: (t) => {
|
|
460
|
-
t.stopPropagation(),
|
|
460
|
+
t.stopPropagation(), $e();
|
|
461
461
|
}
|
|
462
462
|
}, [i(Je.FmIcon, {
|
|
463
463
|
name: "filter_alt",
|
|
@@ -468,17 +468,17 @@ const gt = /* @__PURE__ */ oe({
|
|
|
468
468
|
}) : null;
|
|
469
469
|
return (t, e) => {
|
|
470
470
|
const r = F("fm-button"), o = F("fm-chip"), s = F("fm-menu-item"), C = F("fm-menu"), p = F("fm-search"), M = F("fm-table"), T = F("fm-bottom-sheet");
|
|
471
|
-
return m(), y(E, null, [
|
|
471
|
+
return m(), y(E, null, [R.value ? (m(), $(ut, Re({
|
|
472
472
|
ref_key: "groupManagerFormRef",
|
|
473
473
|
ref: ce,
|
|
474
|
-
key:
|
|
474
|
+
key: R.value._id
|
|
475
475
|
}, Fe.value, {
|
|
476
476
|
action: "update",
|
|
477
477
|
title: u(l)("menu.group.dialogs.update.title"),
|
|
478
|
-
group:
|
|
479
|
-
"onUpdate:group": e[0] || (e[0] = (n) =>
|
|
478
|
+
group: R.value,
|
|
479
|
+
"onUpdate:group": e[0] || (e[0] = (n) => R.value = n),
|
|
480
480
|
"onSubmit:group": e[1] || (e[1] = (n) => Se(n))
|
|
481
|
-
}), null, 16, ["title", "group"])) :
|
|
481
|
+
}), null, 16, ["title", "group"])) : O("", !0), G.value.length === 0 ? (m(), y("div", ht, [i(ze, {
|
|
482
482
|
subtitle: u(l)("menu.group.empty.subtitle"),
|
|
483
483
|
title: u(l)("menu.group.empty.title")
|
|
484
484
|
}, Te({
|
|
@@ -498,7 +498,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
498
498
|
key: "0"
|
|
499
499
|
} : void 0]), 1032, ["subtitle", "title"])])) : (m(), y(E, {
|
|
500
500
|
key: 2
|
|
501
|
-
}, [
|
|
501
|
+
}, [Ne.value ? (m(), y(E, {
|
|
502
502
|
key: 1
|
|
503
503
|
}, [d("div", At, [i(p, {
|
|
504
504
|
autofocus: "",
|
|
@@ -507,7 +507,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
507
507
|
placeholder: u(l)("menu.group.search.placeholder")
|
|
508
508
|
}, null, 8, ["modelValue", "placeholder"])]), e[17] || (e[17] = d("div", {
|
|
509
509
|
class: "bg-fm-color-neutral-gray-100 w-full h-px rounded-md"
|
|
510
|
-
}, null, -1)), d("div", Gt, [i(pe), J.value ? (m(),
|
|
510
|
+
}, null, -1)), d("div", Gt, [i(pe), J.value ? (m(), $(T, {
|
|
511
511
|
key: 0,
|
|
512
512
|
modelValue: S.value,
|
|
513
513
|
"onUpdate:modelValue": e[14] || (e[14] = (n) => S.value = n)
|
|
@@ -533,13 +533,13 @@ const gt = /* @__PURE__ */ oe({
|
|
|
533
533
|
onClick: e[13] || (e[13] = (n) => _.value = "DYNAMIC")
|
|
534
534
|
}, A(u(l)("menu.group.type.dynamic")), 1)])]),
|
|
535
535
|
_: 1
|
|
536
|
-
}, 8, ["modelValue"])) :
|
|
536
|
+
}, 8, ["modelValue"])) : O("", !0)]), K.value ? (m(), y("div", St, [i(u(ve), {
|
|
537
537
|
ref_key: "attributeFilterRef",
|
|
538
538
|
ref: H,
|
|
539
539
|
attributes: u(le),
|
|
540
|
-
modelValue: u(
|
|
541
|
-
"onUpdate:modelValue": e[15] || (e[15] = (n) => Q(
|
|
542
|
-
}, null, 8, ["attributes", "modelValue"])])) :
|
|
540
|
+
modelValue: u(D),
|
|
541
|
+
"onUpdate:modelValue": e[15] || (e[15] = (n) => Q(D) ? D.value = n : null)
|
|
542
|
+
}, null, 8, ["attributes", "modelValue"])])) : O("", !0), i(u(Ee), {
|
|
543
543
|
class: q(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"]),
|
|
544
544
|
"model-value": j.value,
|
|
545
545
|
group: "categories",
|
|
@@ -552,13 +552,13 @@ const gt = /* @__PURE__ */ oe({
|
|
|
552
552
|
}) => [(m(), y("div", {
|
|
553
553
|
key: n._id,
|
|
554
554
|
class: q(["py-12 px-16", "flex space-x-16", "items-center"])
|
|
555
|
-
}, [d("div", Ft, [d("div", Vt, [d("p", It, A(n.name), 1), d("div", null, [J.value ? (m(), y("p",
|
|
555
|
+
}, [d("div", Ft, [d("div", Vt, [d("p", It, A(n.name), 1), d("div", null, [J.value ? (m(), y("p", Nt, A(u(ee.capitalize)(n.type)) + " type ", 1)) : O("", !0), d("p", Ot, A(u(l)("menu.group.list.products_linked", {
|
|
556
556
|
count: n.itemsLinked.length
|
|
557
557
|
})), 1)])]), i(ie, {
|
|
558
558
|
group: n
|
|
559
559
|
}, null, 8, ["group"])])]))]),
|
|
560
560
|
_: 1
|
|
561
|
-
}, 8, ["model-value"])], 64)) : (m(), y("div", wt, [d("div", Ct, [i(pe), J.value ? (m(),
|
|
561
|
+
}, 8, ["model-value"])], 64)) : (m(), y("div", wt, [d("div", Ct, [i(pe), J.value ? (m(), $(C, {
|
|
562
562
|
key: 0
|
|
563
563
|
}, {
|
|
564
564
|
"menu-button": x(() => [i(o, {
|
|
@@ -586,7 +586,7 @@ const gt = /* @__PURE__ */ oe({
|
|
|
586
586
|
onClick: e[5] || (e[5] = (n) => _.value = "DYNAMIC")
|
|
587
587
|
}, null, 8, ["label"])])]),
|
|
588
588
|
_: 1
|
|
589
|
-
})) :
|
|
589
|
+
})) : O("", !0), d("div", xt, [i(p, {
|
|
590
590
|
autofocus: "",
|
|
591
591
|
modelValue: u(h),
|
|
592
592
|
"onUpdate:modelValue": e[6] || (e[6] = (n) => Q(h) ? h.value = n : null),
|
|
@@ -595,9 +595,9 @@ const gt = /* @__PURE__ */ oe({
|
|
|
595
595
|
ref_key: "attributeFilterRef",
|
|
596
596
|
ref: H,
|
|
597
597
|
attributes: u(le),
|
|
598
|
-
modelValue: u(
|
|
599
|
-
"onUpdate:modelValue": e[7] || (e[7] = (n) => Q(
|
|
600
|
-
}, null, 8, ["attributes", "modelValue"])])) :
|
|
598
|
+
modelValue: u(D),
|
|
599
|
+
"onUpdate:modelValue": e[7] || (e[7] = (n) => Q(D) ? D.value = n : null)
|
|
600
|
+
}, null, 8, ["attributes", "modelValue"])])) : O("", !0), i(tt, null, {
|
|
601
601
|
default: x(() => [i(M, {
|
|
602
602
|
"column-defs": Ae.value,
|
|
603
603
|
"column-visibility": Ge.value,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
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-BQ8NefKy.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 X, e as se, _ as me } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { L as R } from "./catalogSetting-
|
|
9
|
-
import { L as de } from "./LinkProductSideSheet-
|
|
7
|
+
import { m as G, f as X, e as se, _ as me } from "./RuleView.vue_vue_type_script_setup_true_lang-LbagGtcn.js";
|
|
8
|
+
import { L as R } from "./catalogSetting-88ecNK3c.js";
|
|
9
|
+
import { L as de } from "./LinkProductSideSheet-DXmxJs-1.js";
|
|
10
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-
|
|
11
|
+
import { u as pe, d as H, X as ce } from "./index.vue_vue_type_script_setup_true_lang-qm3HbXBN.js";
|
|
12
12
|
import { c as ve } from "./string-DpfFixWH.js";
|
|
13
13
|
const _e = /* @__PURE__ */ N({
|
|
14
14
|
__name: "LinkPriceTier",
|