@feedmepos/mf-menu 0.32.41 → 0.32.42-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-Bt5lFavE.js → App-DyZQZRjQ.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DpyJ5gr2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Dmc7Gawc.js} +3 -3
- package/dist/{Catalog-DJyGxDRP.js → Catalog-DJK-TFnH.js} +44 -44
- package/dist/{Category-BlIUSUxn.js → Category-BuI4C-2a.js} +24 -24
- package/dist/{Category-CNTOOIJE.js → Category-CPzzDgEf.js} +24 -24
- package/dist/{CookingGuide-CpZfKE5H.js → CookingGuide-DUhJyB8k.js} +105 -105
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-QzZR2W1U.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CNFPeZwz.js} +1 -1
- package/dist/{Group-Bhnov3p8.js → Group-B3FUEieg.js} +3 -3
- package/dist/{Group-B88fbCOf.js → Group-BOzJII7-.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CRAX3mIt.js → Group.vue_vue_type_script_setup_true_lang-DnkI2_Oa.js} +18 -18
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bqh6a0oO.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-KRANAiR_.js} +30 -30
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DPAxkce6.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dossu1rN.js} +1652 -1651
- package/dist/{Ingredient-BORYH8yl.js → Ingredient-D2ikFdFk.js} +20 -20
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Ci-CaBED.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C_8s8d6S.js} +2 -2
- package/dist/{LinkProductSideSheet-DQN59t0a.js → LinkProductSideSheet-D4rj-g7A.js} +45 -45
- package/dist/{MenuSetting-cI0j1omE.js → MenuSetting-DoLdFE5R.js} +47 -47
- package/dist/{PrintRoute-CXSuomGR.js → PrintRoute-CCmnaHAm.js} +39 -39
- package/dist/{Product-DgbQeeKt.js → Product-BN6HXtCO.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-D0cnQC3i.js → Product.vue_vue_type_script_setup_true_lang-C0G-qKY-.js} +128 -128
- package/dist/{ProductInternalTools-B1zpNBze.js → ProductInternalTools-C0z1uq-O.js} +66 -66
- package/dist/Products-TpbvQRuF.js +334 -0
- package/dist/{Publish-Cqdk3SjG.js → Publish-CH1SAEmF.js} +29 -29
- package/dist/{Recipe-anT6QBZT.js → Recipe-Bv7Xvvig.js} +24 -24
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-Cc_k57qi.js → RuleView.vue_vue_type_script_setup_true_lang-yK04zs8F.js} +366 -366
- package/dist/{Scheduler-Z64VCw-y.js → Scheduler-34IfrdGd.js} +11 -11
- package/dist/{ServingSequence-B7ZbvY1v.js → ServingSequence-BZV2R5sJ.js} +44 -44
- package/dist/{Setting-DnVCq2hY.js → Setting-C2tFfdTn.js} +17 -17
- package/dist/{Subcategory-dpz-Um56.js → Subcategory-867aDkMq.js} +51 -51
- package/dist/{Takeaway-mwLXbT9q.js → Takeaway-DA67zMKW.js} +1 -1
- package/dist/{Takeaway-DiyOBq1g.js → Takeaway-DG6W-5rb.js} +13 -13
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-tg3AJE3_.js → Takeaway.vue_vue_type_script_setup_true_lang-oTjvIuW5.js} +28 -28
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-FRH0zCh6.js → Thumbnail.vue_vue_type_script_setup_true_lang-XOx8U70f.js} +27 -27
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-nGzNSAX9.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CaWVsB5J.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BzwlZ9jW.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-EvzBnFBA.js} +13 -13
- package/dist/{Unit-CmF2olR8.js → Unit-BrnUnuKe.js} +8 -8
- package/dist/{Variant-C9-_-SLX.js → Variant-DNqNIjGo.js} +24 -24
- package/dist/{_id_-C4Zpr6wS.js → _id_-C3f3DoB2.js} +28 -28
- package/dist/{app-CrcPPLl1.js → app-B-QXUPPG.js} +1 -1
- package/dist/app-C6mqBuy7.js +1643 -0
- package/dist/app.js +2 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-68qGGp41.js → linked-status-dZQn0E-t.js} +5 -5
- package/dist/assets/{menu-export-CRtF4W1I.js → menu-export-DjmfmMlF.js} +2 -2
- package/dist/assets/{override-menu-DB0DJf_x.js → override-menu-VI40pTYL.js} +5 -5
- package/dist/assets/{validate-menu-oi_J1ue-.js → validate-menu-Bx6Q4XmI.js} +2 -2
- package/dist/{catalog-Cp4kVRAL.js → catalog-lpCtSLwi.js} +1 -1
- package/dist/{catalogSetting-Cr0DX5kw.js → catalogSetting-CjkTvvES.js} +1 -1
- package/dist/{currency-C_IuOt0j.js → currency-CvxKEiUE.js} +1 -1
- package/dist/dayjs.min-CIOb7sxL.js +7 -0
- package/dist/{index-vqNnqeRW.js → index-ByYyYErE.js} +1 -1
- package/dist/{index-CXzIkkUH.js → index-D2CiC7yd.js} +31 -31
- package/dist/{index-DzLNqNMt.js → index-vQOhdIJK.js} +43 -43
- package/dist/{index.vue_vue_type_script_setup_true_lang-DyiwvQnC.js → index.vue_vue_type_script_setup_true_lang-DJ_7qEQX.js} +244 -269
- package/dist/{item-C3_GKsNy.js → item-BpsW9Dh2.js} +15 -15
- package/dist/{jszip.min-BiRK-xY3.js → jszip.min-Cu3w0lqa.js} +388 -387
- package/dist/{menu-CYrjppCV.js → menu-BDPvT1K5.js} +1 -1
- package/dist/{menuV2-DWQ093x3.js → menuV2-D_qXpcQq.js} +93 -93
- package/dist/{priceTier-CD3j-Ccs.js → priceTier-BfGUaC4W.js} +1 -1
- package/dist/{rules-BTZh0AjD.js → rules-Dyypmwof.js} +11 -11
- package/dist/{scheduler-PVlNN-pB.js → scheduler-4eaMAOaq.js} +29 -29
- package/dist/{toExcel-lSyQhZQ9.js → toExcel-BBKjTeeK.js} +2 -2
- package/dist/{unit-1MnbZYm8.js → unit-gujLoxgg.js} +35 -35
- package/package.json +2 -1
- package/dist/Products-JodXj4IG.js +0 -291
- package/dist/app-BC-PDZ1J.js +0 -363
- package/dist/dayjs.min-fN9Ef6y1.js +0 -6
|
@@ -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 {
|
|
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 entityExports, z as coreExports, A as menuExports } from "./index.vue_vue_type_script_setup_true_lang-DJ_7qEQX.js";
|
|
6
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, r as routers, u as useMenuNavigatorStatus } from "./app-C6mqBuy7.js";
|
|
6
7
|
import { installBusinessQueryStatePlugin, useI18n, FeedMeAuth, useCoreStore } from "@feedmepos/mf-common";
|
|
7
8
|
import { createRouter, createWebHistory, useRouter } from "vue-router";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { u as useAppStore } from "./app-CrcPPLl1.js";
|
|
9
|
+
import { _ as _sfc_main$5 } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-EvzBnFBA.js";
|
|
10
|
+
import { u as useAppStore } from "./app-B-QXUPPG.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) {
|
|
@@ -13376,7 +13376,7 @@ registerAuth(
|
|
|
13376
13376
|
"Browser"
|
|
13377
13377
|
/* ClientPlatform.BROWSER */
|
|
13378
13378
|
);
|
|
13379
|
-
var define_appEndpoint_default = { firebase: { apiKey: "
|
|
13379
|
+
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" } };
|
|
13380
13380
|
async function initFirebase() {
|
|
13381
13381
|
if (getApps().length) {
|
|
13382
13382
|
console.warn("mf-menu:firebase already initialized by another app");
|
|
@@ -13396,7 +13396,7 @@ const _hoisted_1 = {
|
|
|
13396
13396
|
async function l(f) {
|
|
13397
13397
|
try {
|
|
13398
13398
|
if (!a.value) {
|
|
13399
|
-
const y = "
|
|
13399
|
+
const y = "MaGoXrEWuEJNpWgKTqseee";
|
|
13400
13400
|
console.log(`Initialize feature flag with key *${y.slice(y.length - 4)}`), await s({ apiKey: y });
|
|
13401
13401
|
}
|
|
13402
13402
|
const S = await n(
|
|
@@ -13443,7 +13443,7 @@ const _hoisted_1 = {
|
|
|
13443
13443
|
f && f === entityExports.F_MENU_VERSION.enum.v4 && router.addRoute({
|
|
13444
13444
|
path: "/serving-sequence",
|
|
13445
13445
|
name: "serving-sequence",
|
|
13446
|
-
component: () => import("./ServingSequence-
|
|
13446
|
+
component: () => import("./ServingSequence-BZV2R5sJ.js")
|
|
13447
13447
|
});
|
|
13448
13448
|
}
|
|
13449
13449
|
), 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-yK04zs8F.js";
|
|
5
|
+
import { L as $ } from "./LinkProductSideSheet-D4rj-g7A.js";
|
|
6
6
|
import { u as q } from "./search-BAPEUu1R.js";
|
|
7
|
-
import { u as J,
|
|
7
|
+
import { u as J, am as Q } from "./index.vue_vue_type_script_setup_true_lang-DJ_7qEQX.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,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as se, computed as x, resolveComponent as _, createBlock as V, openBlock as p, createVNode as o, ref as G, createElementBlock as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { u as pe,
|
|
1
|
+
import { defineComponent as se, computed as x, resolveComponent as _, createBlock as V, openBlock as p, createVNode as o, ref as G, createElementBlock as O, Fragment as K, renderSlot as be, unref as e, withCtx as g, createElementVNode as v, createCommentVNode as z, renderList as X, createTextVNode as xe, toDisplayString as N, markRaw as Ce, toRaw as ke, h as q, withModifiers as Q, normalizeClass as he } from "vue";
|
|
2
|
+
import { useRouter as Oe } from "vue-router";
|
|
3
|
+
import { u as pe, y as M, O as fe, B as ge, A as re, z as Fe, G as le, J as ve, ab as ie, a2 as Me } from "./index.vue_vue_type_script_setup_true_lang-DJ_7qEQX.js";
|
|
4
4
|
import { useI18n as ue, useCoreStore as _e } from "@feedmepos/mf-common";
|
|
5
|
-
import { useSnackbar as ye, components as ne, FmButtonVariant as
|
|
6
|
-
import { _ as Se, R as ce } from "./app-
|
|
5
|
+
import { useSnackbar as ye, components as ne, FmButtonVariant as J, FmButtonColorThemeVariant as Z, useDialog as Ve, useBreakpoints as De } from "@feedmepos/ui-library";
|
|
6
|
+
import { _ as Se, R as ce } from "./app-C6mqBuy7.js";
|
|
7
7
|
import { _ as Te } 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 Ue } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as me, a as we } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as Ue } from "./RuleView.vue_vue_type_script_setup_true_lang-yK04zs8F.js";
|
|
10
|
+
import { _ as me, a as we } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-KRANAiR_.js";
|
|
11
11
|
import { c as Ee } from "./check-C9mY6LiX.js";
|
|
12
|
-
import { C as B, a as P } from "./catalogSetting-
|
|
12
|
+
import { C as B, a as P } from "./catalogSetting-CjkTvvES.js";
|
|
13
13
|
import { _ as Ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
14
|
-
import { C as Ne } from "./catalog-
|
|
14
|
+
import { C as Ne } from "./catalog-lpCtSLwi.js";
|
|
15
15
|
const Re = /* @__PURE__ */ se({
|
|
16
16
|
__name: "CatalogUsageTable",
|
|
17
17
|
props: {
|
|
@@ -99,7 +99,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
99
99
|
var f, k;
|
|
100
100
|
if (!E.currentCountry.value) return [];
|
|
101
101
|
const c = ((f = r.value.taxSetting) == null ? void 0 : f.mode) === P.MANUAL ? ((k = r.value.taxSetting) == null ? void 0 : k.inclusive) ?? [] : [];
|
|
102
|
-
return
|
|
102
|
+
return Fe.Country.getCountry(E.currentCountry.value).taxSystems.map((w) => {
|
|
103
103
|
const A = c.find(($) => $.systemCode === w.code);
|
|
104
104
|
return {
|
|
105
105
|
inclusive: (A == null ? void 0 : A.inclusive) || !1,
|
|
@@ -117,7 +117,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
117
117
|
const f = le(r.value);
|
|
118
118
|
f.markupOptions && (f.markupOptions[c] = u, r.value = f);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function W(c) {
|
|
121
121
|
const u = le(r.value);
|
|
122
122
|
u.markupOptions && (u.markupOptions.splice(c, 1), r.value = u);
|
|
123
123
|
}
|
|
@@ -142,8 +142,8 @@ const Re = /* @__PURE__ */ se({
|
|
|
142
142
|
}
|
|
143
143
|
const { t: i } = ue();
|
|
144
144
|
return D({ trigger: R }), (c, u) => {
|
|
145
|
-
const f = _("fm-text-field"), k = _("fm-radio"), w = _("fm-radio-group"), A = _("fm-checkbox"), $ = _("fm-switch"), s = _("fm-select"), a = _("fm-button"), l = _("fm-chip"),
|
|
146
|
-
return p(),
|
|
145
|
+
const f = _("fm-text-field"), k = _("fm-radio"), w = _("fm-radio-group"), A = _("fm-checkbox"), $ = _("fm-switch"), s = _("fm-select"), a = _("fm-button"), l = _("fm-chip"), F = _("fm-card"), I = _("fm-side-sheet");
|
|
146
|
+
return p(), O(K, null, [
|
|
147
147
|
be(c.$slots, "default", { trigger: R }),
|
|
148
148
|
o(I, {
|
|
149
149
|
modelValue: d.value,
|
|
@@ -214,8 +214,8 @@ const Re = /* @__PURE__ */ se({
|
|
|
214
214
|
]),
|
|
215
215
|
_: 1
|
|
216
216
|
}, 8, ["model-value"]),
|
|
217
|
-
((b = r.value.taxSetting) == null ? void 0 : b.mode) === e(P).MANUAL ? (p(),
|
|
218
|
-
(p(!0),
|
|
217
|
+
((b = r.value.taxSetting) == null ? void 0 : b.mode) === e(P).MANUAL ? (p(), O("div", $e, [
|
|
218
|
+
(p(!0), O(K, null, X(Y.value, (n) => (p(), V(A, {
|
|
219
219
|
key: n.systemCode,
|
|
220
220
|
"model-value": n.inclusive,
|
|
221
221
|
value: !0,
|
|
@@ -289,7 +289,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
289
289
|
o(a, {
|
|
290
290
|
"text-color": e(Z).ColorPrimary,
|
|
291
291
|
"border-color": e(Z).ColorPrimary,
|
|
292
|
-
variant: e(
|
|
292
|
+
variant: e(J).Secondary,
|
|
293
293
|
label: e(i)("menu.catalog.form.markup.add"),
|
|
294
294
|
"prepend-icon": "add",
|
|
295
295
|
onClick: t
|
|
@@ -297,7 +297,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
297
297
|
]),
|
|
298
298
|
_: 1
|
|
299
299
|
}, 8, ["categories", "items"]),
|
|
300
|
-
(p(!0),
|
|
300
|
+
(p(!0), O(K, null, X(r.value.markupOptions, (t, b) => (p(), V(me, {
|
|
301
301
|
key: b,
|
|
302
302
|
categories: e(C).categories,
|
|
303
303
|
items: e(C).items,
|
|
@@ -306,7 +306,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
306
306
|
"onUpdate:modelValue": (n) => n && U(b, n)
|
|
307
307
|
}, {
|
|
308
308
|
default: g(({ trigger: n }) => [
|
|
309
|
-
o(
|
|
309
|
+
o(F, {
|
|
310
310
|
id: JSON.stringify(t),
|
|
311
311
|
class: "py-12 px-16 cursor-pointer",
|
|
312
312
|
variant: "outlined",
|
|
@@ -327,9 +327,9 @@ const Re = /* @__PURE__ */ se({
|
|
|
327
327
|
}) : e(i)("menu.catalog.form.markup.all_items")), 1)
|
|
328
328
|
]),
|
|
329
329
|
o(a, {
|
|
330
|
-
variant: e(
|
|
330
|
+
variant: e(J).Tertiary,
|
|
331
331
|
"prepend-icon": "delete",
|
|
332
|
-
onClick: (h) =>
|
|
332
|
+
onClick: (h) => W(b)
|
|
333
333
|
}, null, 8, ["variant", "onClick"])
|
|
334
334
|
])
|
|
335
335
|
]),
|
|
@@ -359,12 +359,12 @@ const Re = /* @__PURE__ */ se({
|
|
|
359
359
|
key: 0
|
|
360
360
|
}, He = {
|
|
361
361
|
class: "flex justify-end items-center"
|
|
362
|
-
},
|
|
362
|
+
}, Je = {
|
|
363
363
|
class: "w-[320px]"
|
|
364
|
-
},
|
|
364
|
+
}, We = {
|
|
365
365
|
key: 1,
|
|
366
366
|
class: "flex-1 flex flex-col min-h-0"
|
|
367
|
-
},
|
|
367
|
+
}, qe = {
|
|
368
368
|
class: "p-8"
|
|
369
369
|
}, Qe = {
|
|
370
370
|
class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
|
|
@@ -386,7 +386,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
386
386
|
}, oe = "main", xa = /* @__PURE__ */ se({
|
|
387
387
|
__name: "Catalog",
|
|
388
388
|
setup(ee) {
|
|
389
|
-
const D = _e(), d = pe(), S = ye(), R = ge(S), y = Ve(), C = fe(R), E =
|
|
389
|
+
const D = _e(), d = pe(), S = ye(), R = ge(S), y = Ve(), C = fe(R), E = Oe(), {
|
|
390
390
|
t: m
|
|
391
391
|
} = ue(), r = x(() => {
|
|
392
392
|
const s = {};
|
|
@@ -396,7 +396,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
396
396
|
}), ae = x(() => new Map(d.state.menu.modules.item.map((s) => [s._id, s])));
|
|
397
397
|
function j(s, a) {
|
|
398
398
|
var t, b, n, h;
|
|
399
|
-
const l = r.value[a._id],
|
|
399
|
+
const l = r.value[a._id], F = [...a.linkedDeliveryCatalogs.map((T) => ({
|
|
400
400
|
label: `Delivery (${T.name})`,
|
|
401
401
|
selector: T.catalog
|
|
402
402
|
})), {
|
|
@@ -427,7 +427,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
427
427
|
}, {
|
|
428
428
|
label: "Delivery (Feedme express)",
|
|
429
429
|
selector: (h = l == null ? void 0 : l.feedmeDelivery) == null ? void 0 : h.catalogId
|
|
430
|
-
}, ...ie(
|
|
430
|
+
}, ...ie(F, {
|
|
431
431
|
selector: "label"
|
|
432
432
|
})].filter((T) => s ? Array.isArray(T.selector) ? T.selector.includes(s) : T.selector === s : T.selector === null).map((T) => T.label);
|
|
433
433
|
}
|
|
@@ -438,7 +438,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
438
438
|
usage: j(s, a)
|
|
439
439
|
})).filter((a) => a.usage.length > 0);
|
|
440
440
|
}
|
|
441
|
-
const L = G(!1), U = G(""),
|
|
441
|
+
const L = G(!1), U = G(""), W = x(() => {
|
|
442
442
|
var a;
|
|
443
443
|
return [{
|
|
444
444
|
id: oe,
|
|
@@ -460,19 +460,19 @@ const Re = /* @__PURE__ */ se({
|
|
|
460
460
|
defaultOrderFrom: l.defaultOrderFrom
|
|
461
461
|
}))].map((l) => {
|
|
462
462
|
var t;
|
|
463
|
-
const
|
|
463
|
+
const F = Y(((t = l.doc) == null ? void 0 : t._id) || null), I = l.doc ? Ne.getSellingItem(l.doc, ae.value) : d.state.menu.modules.item;
|
|
464
464
|
return {
|
|
465
465
|
...l,
|
|
466
466
|
taxMode: l.taxes ? "Manual" : "Automatic",
|
|
467
467
|
autoLink: l.defaultOrderFrom !== M.F_ORDER_FROM.enum.NONE ? "Activated" : "Deactivated",
|
|
468
|
-
restaurants: ie(
|
|
468
|
+
restaurants: ie(F, {
|
|
469
469
|
selector: "name"
|
|
470
470
|
}),
|
|
471
471
|
totalProducts: I.length,
|
|
472
472
|
disableDelete: l.disableDelete
|
|
473
473
|
};
|
|
474
474
|
});
|
|
475
|
-
}), H = x(() =>
|
|
475
|
+
}), H = x(() => W.value.filter((s) => s.id !== oe)), i = x(() => H.value.filter((s) => s.name.toLowerCase().includes(U.value.toLowerCase()))), c = (s) => {
|
|
476
476
|
d.selectCatalog(s === oe ? null : s), E.push({
|
|
477
477
|
name: ce.EDIT_CATALOG_PRODUCT,
|
|
478
478
|
params: {
|
|
@@ -488,7 +488,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
490
|
async function k(s) {
|
|
491
|
-
const a = d.state.restaurants.filter((l) => [...l.additionalCatalogs, l.inHouseDelivery, ...l.linkedDeliveryCatalogs.map((
|
|
491
|
+
const a = d.state.restaurants.filter((l) => [...l.additionalCatalogs, l.inHouseDelivery, ...l.linkedDeliveryCatalogs.map((F) => F.catalog), l.pickupCatalog, l.takeawayCatalog, l.catalogId].includes(s.id)).map((l) => l.name);
|
|
492
492
|
a.length > 0 ? S.open({
|
|
493
493
|
type: "error",
|
|
494
494
|
message: m("menu.catalog.dialogs.remove.error", {
|
|
@@ -502,7 +502,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
502
502
|
primaryActions: {
|
|
503
503
|
text: m("menu.common.actions.remove"),
|
|
504
504
|
close: !0,
|
|
505
|
-
variant:
|
|
505
|
+
variant: J.Destructive
|
|
506
506
|
},
|
|
507
507
|
secondaryActions: {
|
|
508
508
|
text: m("menu.common.actions.cancel"),
|
|
@@ -532,7 +532,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
532
532
|
enableSorting: !1,
|
|
533
533
|
cell: (s) => {
|
|
534
534
|
const a = s.row.original;
|
|
535
|
-
return
|
|
535
|
+
return q("div", {
|
|
536
536
|
class: "flex justify-between"
|
|
537
537
|
}, [a.autoLink]);
|
|
538
538
|
}
|
|
@@ -546,9 +546,9 @@ const Re = /* @__PURE__ */ se({
|
|
|
546
546
|
header: "",
|
|
547
547
|
cell: (s) => {
|
|
548
548
|
const a = s.row.original;
|
|
549
|
-
return
|
|
549
|
+
return q("div", {
|
|
550
550
|
class: "flex justify-end"
|
|
551
|
-
}, [
|
|
551
|
+
}, [q(ne.FmButton, {
|
|
552
552
|
icon: "file_copy",
|
|
553
553
|
disabled: !a.id,
|
|
554
554
|
variant: "tertiary",
|
|
@@ -556,7 +556,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
556
556
|
onClick: Q(async () => {
|
|
557
557
|
await f(a);
|
|
558
558
|
}, ["stop", "prevent"])
|
|
559
|
-
}),
|
|
559
|
+
}), q(ne.FmButton, {
|
|
560
560
|
icon: "delete",
|
|
561
561
|
disabled: !a.id,
|
|
562
562
|
variant: "tertiary",
|
|
@@ -568,7 +568,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
568
568
|
}
|
|
569
569
|
}]), A = De(), $ = x(() => A.breakpoints.value.xs);
|
|
570
570
|
return (s, a) => {
|
|
571
|
-
const l = _("fm-button"),
|
|
571
|
+
const l = _("fm-button"), F = _("FmSearch"), I = _("FmTable"), t = _("FmButton"), b = _("fm-side-sheet");
|
|
572
572
|
return p(), V(Ae, {
|
|
573
573
|
heading: e(m)("menu.catalog.title")
|
|
574
574
|
}, {
|
|
@@ -608,9 +608,9 @@ const Re = /* @__PURE__ */ se({
|
|
|
608
608
|
_: 1
|
|
609
609
|
})]),
|
|
610
610
|
_: 1
|
|
611
|
-
}, 8, ["subtitle", "title"])) : (p(),
|
|
611
|
+
}, 8, ["subtitle", "title"])) : (p(), O(K, {
|
|
612
612
|
key: 1
|
|
613
|
-
}, [$.value ? (p(),
|
|
613
|
+
}, [$.value ? (p(), O("div", We, [v("div", qe, [o(F, {
|
|
614
614
|
autofocus: "",
|
|
615
615
|
modelValue: U.value,
|
|
616
616
|
"onUpdate:modelValue": a[3] || (a[3] = (n) => U.value = n),
|
|
@@ -618,21 +618,21 @@ const Re = /* @__PURE__ */ se({
|
|
|
618
618
|
placeholder: e(m)("menu.common.labels.search_placeholder", {
|
|
619
619
|
type: e(m)("menu.catalog.title")
|
|
620
620
|
})
|
|
621
|
-
}, null, 8, ["modelValue", "placeholder"])]), v("div", Qe, [(p(!0),
|
|
621
|
+
}, null, 8, ["modelValue", "placeholder"])]), v("div", Qe, [(p(!0), O(K, null, X(i.value, (n) => (p(), O("div", {
|
|
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
625
|
}, [v("div", Ze, [v("p", ea, " Tax calculation: " + N(n.taxMode), 1), v("p", aa, " Auto link product: " + N(n.autoLink), 1), v("p", la, N(n.name), 1)]), v("div", ta, [o(t, {
|
|
626
626
|
"text-color": e(Z).NeutralGray400,
|
|
627
|
-
variant: e(
|
|
627
|
+
variant: e(J).Tertiary,
|
|
628
628
|
"prepend-icon": "file_copy",
|
|
629
629
|
onClick: Q((h) => f(n), ["stop"])
|
|
630
630
|
}, null, 8, ["text-color", "variant", "onClick"]), o(t, {
|
|
631
631
|
"text-color": e(Z).NeutralGray400,
|
|
632
|
-
variant: e(
|
|
632
|
+
variant: e(J).Tertiary,
|
|
633
633
|
"prepend-icon": "delete",
|
|
634
634
|
onClick: Q((h) => k(n), ["stop"])
|
|
635
|
-
}, null, 8, ["text-color", "variant", "onClick"])])], 8, Xe))), 128))])])) : (p(),
|
|
635
|
+
}, null, 8, ["text-color", "variant", "onClick"])])], 8, Xe))), 128))])])) : (p(), O("div", Ye, [v("div", He, [v("div", Je, [o(F, {
|
|
636
636
|
modelValue: U.value,
|
|
637
637
|
"onUpdate:modelValue": a[1] || (a[1] = (n) => U.value = n),
|
|
638
638
|
autofocus: "",
|
|
@@ -659,7 +659,7 @@ const Re = /* @__PURE__ */ se({
|
|
|
659
659
|
"dismiss-away": ""
|
|
660
660
|
}, {
|
|
661
661
|
"side-sheet-header": g(() => [v("p", oa, N(e(m)("menu.catalog.usage.title")), 1)]),
|
|
662
|
-
default: g(() => [L.value ? (p(),
|
|
662
|
+
default: g(() => [L.value ? (p(), O("div", na, [(p(!0), O(K, null, X(W.value, (n, h) => (p(), V(Re, {
|
|
663
663
|
key: h,
|
|
664
664
|
catalog: n
|
|
665
665
|
}, null, 8, ["catalog"]))), 128))])) : z("", !0)]),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as V, 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
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
7
|
-
import { A as
|
|
1
|
+
import { defineComponent as V, 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 E, createBlock as S } from "vue";
|
|
2
|
+
import { useI18n as L } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as M, useBreakpoints as Y, useDialog as $ } from "@feedmepos/ui-library";
|
|
4
|
+
import { B as F, u as A, Y as I, O as B, J as j, y as q, a2 as J } from "./index.vue_vue_type_script_setup_true_lang-DJ_7qEQX.js";
|
|
5
|
+
import { _ as R } from "./app-C6mqBuy7.js";
|
|
6
|
+
import { u as O } from "./menu-BDPvT1K5.js";
|
|
7
|
+
import { A as G } from "./item-BpsW9Dh2.js";
|
|
8
8
|
const H = {
|
|
9
9
|
key: 0
|
|
10
|
-
},
|
|
10
|
+
}, Q = {
|
|
11
11
|
class: "flex justify-end items-center"
|
|
12
12
|
}, W = {
|
|
13
13
|
class: "w-[320px]"
|
|
@@ -26,10 +26,10 @@ const H = {
|
|
|
26
26
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
27
27
|
}, ne = /* @__PURE__ */ V({
|
|
28
28
|
__name: "CategoryTable",
|
|
29
|
-
setup(
|
|
30
|
-
const f =
|
|
29
|
+
setup(T) {
|
|
30
|
+
const f = M(), y = F(f), h = B(y), d = A(), {
|
|
31
31
|
categories: v
|
|
32
|
-
} =
|
|
32
|
+
} = O(), b = k(() => {
|
|
33
33
|
var r, t;
|
|
34
34
|
const l = ((t = (r = d.currentCatalog) == null ? void 0 : r.override) == null ? void 0 : t.category) ?? {}, o = v.value.map((e, c) => {
|
|
35
35
|
var p;
|
|
@@ -39,10 +39,10 @@ const H = {
|
|
|
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 I(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([{
|
|
46
46
|
accessorKey: "name",
|
|
47
47
|
header: () => s("menu.category.columns.title"),
|
|
48
48
|
enableSorting: !1,
|
|
@@ -61,7 +61,7 @@ const H = {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
}]);
|
|
64
|
-
async function
|
|
64
|
+
async function D(l) {
|
|
65
65
|
var e;
|
|
66
66
|
const o = d.currentCatalog;
|
|
67
67
|
if (!o)
|
|
@@ -86,10 +86,10 @@ const H = {
|
|
|
86
86
|
}
|
|
87
87
|
}, "Category");
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const N = Y(), z = k(() => N.breakpoints.value.xs);
|
|
90
90
|
return (l, o) => {
|
|
91
91
|
const r = w("FmSearch"), t = w("FmTable");
|
|
92
|
-
return
|
|
92
|
+
return z.value ? (u(), g("div", X, [i("div", Z, [_(r, {
|
|
93
93
|
autofocus: "",
|
|
94
94
|
modelValue: n.value,
|
|
95
95
|
"onUpdate:modelValue": o[1] || (o[1] = (e) => n.value = e),
|
|
@@ -97,12 +97,12 @@ const H = {
|
|
|
97
97
|
placeholder: a(s)("menu.common.labels.search_placeholder", {
|
|
98
98
|
type: a(s)("menu.category.title")
|
|
99
99
|
})
|
|
100
|
-
}, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), g(
|
|
100
|
+
}, null, 8, ["modelValue", "placeholder"])]), i("div", ee, [(u(!0), g(P, null, U(m.value, (e) => (u(), g("div", {
|
|
101
101
|
key: e.id || "",
|
|
102
102
|
class: "flex flex-row py-12 px-16"
|
|
103
103
|
}, [i("div", oe, [i("p", te, E(e.name), 1), i("p", ae, E(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", H, [i("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,8 +110,8 @@ const H = {
|
|
|
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"])])]), _(
|
|
114
|
-
default:
|
|
113
|
+
}, null, 8, ["modelValue", "placeholder"])])]), _(R, null, {
|
|
114
|
+
default: K(() => [_(t, {
|
|
115
115
|
"column-defs": x.value,
|
|
116
116
|
draggable: a(d).rules.category.overrideSequence,
|
|
117
117
|
"page-size": m.value.length,
|
|
@@ -120,7 +120,7 @@ const H = {
|
|
|
120
120
|
"shrink-at": !1,
|
|
121
121
|
"hide-footer": "",
|
|
122
122
|
"pin-header-row": "",
|
|
123
|
-
onDndChanged:
|
|
123
|
+
onDndChanged: D
|
|
124
124
|
}, null, 8, ["column-defs", "draggable", "page-size", "row-data", "search-value"])]),
|
|
125
125
|
_: 1
|
|
126
126
|
})]));
|
|
@@ -128,15 +128,15 @@ const H = {
|
|
|
128
128
|
}
|
|
129
129
|
}), me = /* @__PURE__ */ V({
|
|
130
130
|
__name: "Category",
|
|
131
|
-
setup(
|
|
132
|
-
const f =
|
|
131
|
+
setup(T) {
|
|
132
|
+
const f = $(), y = M(), h = F(y), d = B(h), v = G({ dialog: f, menuLoader: d }), { categories: b } = O(), { t: n } = L();
|
|
133
133
|
function m() {
|
|
134
134
|
v.create();
|
|
135
135
|
}
|
|
136
136
|
return (s, x) => a(b).length > 0 ? (u(), S(ne, {
|
|
137
137
|
key: 0,
|
|
138
138
|
class: "pt-16"
|
|
139
|
-
})) : (u(), S(a(
|
|
139
|
+
})) : (u(), S(a(J), {
|
|
140
140
|
key: 1,
|
|
141
141
|
class: "pt-16",
|
|
142
142
|
action: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as S, ref as B, computed as C, h as m, withModifiers as E, getCurrentInstance as
|
|
1
|
+
import { defineComponent as S, ref as B, computed as C, h as m, withModifiers as E, getCurrentInstance as G, resolveComponent as k, createElementBlock as f, openBlock as c, createElementVNode as s, createVNode as d, unref as a, withCtx as w, Fragment as J, renderList as q, toDisplayString as V, createBlock as y, createCommentVNode as H } from "vue";
|
|
2
2
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
3
|
-
import { useDialog as N, useSnackbar as
|
|
3
|
+
import { useDialog as N, useSnackbar as O, components as Q, FmButtonVariant as L, 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 {
|
|
5
|
+
import { B as j, O as D, J as ee, y as te, a2 as oe } from "./index.vue_vue_type_script_setup_true_lang-DJ_7qEQX.js";
|
|
6
6
|
import { _ as ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { _ as ne } from "./app-
|
|
7
|
+
import { _ as ne } from "./app-C6mqBuy7.js";
|
|
8
8
|
import { c as le } from "./createForm-BoUQeZTd.js";
|
|
9
|
-
import { a as se, A as I } from "./item-
|
|
10
|
-
import { u as
|
|
9
|
+
import { a as se, A as I } from "./item-BpsW9Dh2.js";
|
|
10
|
+
import { u as R, a as re } from "./menu-BDPvT1K5.js";
|
|
11
11
|
import { g as ce } from "./translation-Cdap0IVg.js";
|
|
12
12
|
const ie = se, me = {
|
|
13
13
|
key: 0
|
|
@@ -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__ */ S({
|
|
32
32
|
__name: "CategoryTable",
|
|
33
|
-
setup(
|
|
34
|
-
const u = N(), p =
|
|
33
|
+
setup(z) {
|
|
34
|
+
const u = N(), p = O(), h = j(p), _ = D(h), v = I({
|
|
35
35
|
dialog: u,
|
|
36
36
|
menuLoader: _
|
|
37
37
|
}), {
|
|
38
38
|
categories: i
|
|
39
|
-
} =
|
|
39
|
+
} = R(), n = B(""), g = C(() => i.value.filter((e) => e.name.toLowerCase().includes(n.value.toLowerCase()))), {
|
|
40
40
|
t: l
|
|
41
41
|
} = T(), F = B([{
|
|
42
42
|
accessorKey: "name",
|
|
@@ -78,7 +78,7 @@ const ie = se, me = {
|
|
|
78
78
|
const o = e.row.original;
|
|
79
79
|
return m("div", {
|
|
80
80
|
class: "flex justify-end"
|
|
81
|
-
}, [m(
|
|
81
|
+
}, [m(Q.FmButton, {
|
|
82
82
|
icon: "delete",
|
|
83
83
|
disabled: !o.id,
|
|
84
84
|
variant: "tertiary",
|
|
@@ -120,19 +120,19 @@ const ie = se, me = {
|
|
|
120
120
|
}, e.name, !0);
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
async function
|
|
123
|
+
async function A(e) {
|
|
124
124
|
const o = e.map((r) => r.id).filter((r) => !!r);
|
|
125
125
|
await v.rearrange(o);
|
|
126
126
|
}
|
|
127
|
-
const U =
|
|
128
|
-
async function
|
|
127
|
+
const U = G();
|
|
128
|
+
async function $(e) {
|
|
129
129
|
le(U, ie, {
|
|
130
130
|
initialValue: e
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
const K = W(), P = C(() => K.breakpoints.value.xs);
|
|
134
134
|
return (e, o) => {
|
|
135
|
-
const r = k("FmSearch"),
|
|
135
|
+
const r = k("FmSearch"), M = k("FmTable"), x = k("FmButton");
|
|
136
136
|
return P.value ? (c(), f("div", pe, [s("div", _e, [d(r, {
|
|
137
137
|
autofocus: "",
|
|
138
138
|
modelValue: n.value,
|
|
@@ -141,10 +141,10 @@ const ie = se, me = {
|
|
|
141
141
|
placeholder: a(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(J, null, q(g.value, (t) => (c(), f("div", {
|
|
145
145
|
key: t.id || "",
|
|
146
146
|
class: "flex flex-row py-12 px-16",
|
|
147
|
-
onClick: (
|
|
147
|
+
onClick: (Y) => $(t)
|
|
148
148
|
}, [s("div", ye, [s("p", he, V(t.name), 1), s("p", ve, V(a(l)(t.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
|
|
149
149
|
count: t.items.length
|
|
150
150
|
})), 1)]), d(x, {
|
|
@@ -152,7 +152,7 @@ const ie = se, me = {
|
|
|
152
152
|
variant: a(L).Tertiary,
|
|
153
153
|
"prepend-icon": "delete",
|
|
154
154
|
disabled: !t.id,
|
|
155
|
-
onClick: E((
|
|
155
|
+
onClick: E((Y) => b(t), ["stop"])
|
|
156
156
|
}, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, fe))), 128))])])) : (c(), f("div", me, [s("div", de, [s("div", ue, [d(r, {
|
|
157
157
|
modelValue: n.value,
|
|
158
158
|
"onUpdate:modelValue": o[0] || (o[0] = (t) => n.value = t),
|
|
@@ -162,7 +162,7 @@ const ie = se, me = {
|
|
|
162
162
|
type: a(l)("menu.category.title")
|
|
163
163
|
})
|
|
164
164
|
}, null, 8, ["modelValue", "placeholder"])])]), d(ne, null, {
|
|
165
|
-
default: w(() => [d(
|
|
165
|
+
default: w(() => [d(M, {
|
|
166
166
|
"column-defs": F.value,
|
|
167
167
|
draggable: !0,
|
|
168
168
|
"page-size": a(i).length,
|
|
@@ -171,17 +171,17 @@ const ie = se, me = {
|
|
|
171
171
|
"shrink-at": !1,
|
|
172
172
|
"hide-footer": "",
|
|
173
173
|
"pin-header-row": "",
|
|
174
|
-
onDndChanged:
|
|
175
|
-
onRowClick: o[1] || (o[1] = (t) =>
|
|
174
|
+
onDndChanged: A,
|
|
175
|
+
onRowClick: o[1] || (o[1] = (t) => $(t.original))
|
|
176
176
|
}, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
|
|
177
177
|
_: 1
|
|
178
178
|
})]));
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
}), xe = { class: "flex-1 flex justify-between gap-8 pl-8" }, ke = { class: "flex items-center" }, Ce = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, we = { class: "fm-typo-en-body-md-600 font-semibold" },
|
|
181
|
+
}), xe = { class: "flex-1 flex justify-between gap-8 pl-8" }, ke = { class: "flex items-center" }, Ce = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, we = { class: "fm-typo-en-body-md-600 font-semibold" }, je = /* @__PURE__ */ S({
|
|
182
182
|
__name: "Category",
|
|
183
|
-
setup(
|
|
184
|
-
const u = N(), p =
|
|
183
|
+
setup(z) {
|
|
184
|
+
const u = N(), p = O(), h = j(p), _ = D(h), v = I({ dialog: u, menuLoader: _ }), { categories: i } = R(), { t: n } = T();
|
|
185
185
|
function g() {
|
|
186
186
|
v.create();
|
|
187
187
|
}
|
|
@@ -220,5 +220,5 @@ const ie = se, me = {
|
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
222
|
export {
|
|
223
|
-
|
|
223
|
+
je as default
|
|
224
224
|
};
|