@feedmepos/mf-menu 0.32.45-dev → 0.32.46-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-u5AOIdU4.js → App-DnmPW7GQ.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-RTdI8EVk.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BN_pomak.js} +3 -3
- package/dist/{Catalog-DDMz6wD9.js → Catalog-gxj-MZB8.js} +44 -44
- package/dist/{Category-DoIleKPb.js → Category-CqWHFR6I.js} +19 -19
- package/dist/{Category-BE0d0_de.js → Category-JHb56PfQ.js} +24 -24
- package/dist/{CookingGuide-iP5hFtlB.js → CookingGuide-DNMfIDDf.js} +105 -105
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CSaMT7Gr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BYdToHa3.js} +1 -1
- package/dist/{Group-AXDRjsKC.js → Group-DXEgfQ_e.js} +3 -3
- package/dist/{Group-xjimyqnO.js → Group-bxjyN23A.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DB_X7ws3.js → Group.vue_vue_type_script_setup_true_lang-DPhYCl15.js} +19 -19
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D_IUSYDa.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DAsxXqGu.js} +30 -30
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Suib7m8i.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BuD8TeFi.js} +1991 -1990
- package/dist/{Ingredient-yr2DWIMw.js → Ingredient-BAnjcaO0.js} +20 -20
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BpiU1gRP.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CppjxcTA.js} +2 -2
- package/dist/{LinkProductSideSheet-2MbaATTn.js → LinkProductSideSheet-CvWcioxX.js} +45 -45
- package/dist/{MenuSetting-BhkjzPiN.js → MenuSetting-DCQM7rh6.js} +47 -47
- package/dist/{PrintRoute-ChqpbVo4.js → PrintRoute-Be0WG4oQ.js} +39 -39
- package/dist/{Product-BpnGnMzm.js → Product-DfYmo4vJ.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-COkk299w.js → Product.vue_vue_type_script_setup_true_lang-BsRZ0VVW.js} +93 -93
- package/dist/{ProductInternalTools-BEwLYcEn.js → ProductInternalTools-D2QTAjE7.js} +66 -66
- package/dist/{Products-lONe7x_i.js → Products-BhY4Cwaz.js} +42 -42
- package/dist/{Publish-CXRgBz-S.js → Publish-BfEtLeeh.js} +29 -29
- package/dist/{Recipe-Bbt3hG6N.js → Recipe-ssNUNy2j.js} +24 -24
- package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DHnuxBck.js +144 -0
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DXisBADc.js → RuleView.vue_vue_type_script_setup_true_lang-CkpwtUSB.js} +2 -2
- package/dist/{Scheduler-DJsgP_Hi.js → Scheduler-CAUHWrZs.js} +11 -11
- package/dist/{ServingSequence-DALjVV2I.js → ServingSequence-D12rqxa8.js} +44 -44
- package/dist/{Setting-B23o5SoS.js → Setting-pJ06C7wS.js} +17 -17
- package/dist/{Subcategory-CS4MEgtM.js → Subcategory-Dfd-qx6m.js} +54 -54
- package/dist/{Takeaway-CI2Y-_LF.js → Takeaway-Bnat0taD.js} +13 -13
- package/dist/{Takeaway-D27iA6M6.js → Takeaway-Cv-kA3M_.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Ca3qK9zO.js → Takeaway.vue_vue_type_script_setup_true_lang-9aZi7wvY.js} +33 -33
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Da2jQE45.js → Thumbnail.vue_vue_type_script_setup_true_lang-C3Sk0LVd.js} +27 -27
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DUScE-82.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-5RV7_0Wc.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-E3-hgVdd.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BBXAoJje.js} +5 -5
- package/dist/{TranslationViewChip.vue_vue_type_script_setup_true_lang-BlACWsDs.js → TranslationViewChip.vue_vue_type_script_setup_true_lang-CIGgeuKb.js} +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D9EEpjV6.js +5767 -0
- package/dist/{Unit-5pv3oxSc.js → Unit-DeegDDRz.js} +8 -8
- package/dist/{Variant-CTAI6p6r.js → Variant-D8WwGu3E.js} +14 -14
- package/dist/{_id_-D09xegPQ.js → _id_-BfOGbmqs.js} +28 -28
- package/dist/app-BmAr9vNI.js +2283 -0
- package/dist/{app-8-JCz9b5.js → app-DhZxk0zL.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/index.d.ts +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +14 -5
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-dENy3aw3.js → linked-status-CxpcEFX9.js} +2 -2
- package/dist/assets/{menu-export-E9V7bg-T.js → menu-export-C09ZbTRq.js} +2 -2
- package/dist/assets/{override-menu-HaI7O9Fu.js → override-menu-0rFjySh6.js} +2 -2
- package/dist/assets/{validate-menu-C8LhbVSM.js → validate-menu-cO19zy8y.js} +2 -2
- package/dist/{catalog-DhXoYsFF.js → catalog-tNpB0Dhn.js} +1 -1
- package/dist/{catalogSetting-DyRqWzdW.js → catalogSetting-BRnA4v49.js} +1 -1
- package/dist/{currency-BkmIftYM.js → currency-CyKauaRc.js} +1 -1
- package/dist/dayjs.min-ipgoM27T.js +7 -0
- package/dist/{index-BQ95VVc6.js → index-BGm2uHNk.js} +31 -31
- package/dist/{index-BXWquw9Z.js → index-CXquA22H.js} +30 -30
- package/dist/{index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js → index.vue_vue_type_script_setup_true_lang-D6HyeIid.js} +6917 -6860
- package/dist/{item-DmTvGVsp.js → item-Cik-YX-L.js} +15 -15
- package/dist/{jszip.min-8Z5To_Pk.js → jszip.min-D22BefT1.js} +388 -387
- package/dist/{menu-Csu9X1_I.js → menu-ag-37Ofg.js} +1 -1
- package/dist/{menuV2-CC-vGiv5.js → menuV2-DZDWxmas.js} +135 -135
- package/dist/{priceTier-Bj9Y6SSr.js → priceTier-BmDl3J-3.js} +1 -1
- package/dist/{rules-Dod2cBHH.js → rules-pJdF9REd.js} +12 -12
- package/dist/{scheduler-B3M-715v.js → scheduler-DRHXK6kX.js} +29 -29
- package/dist/{toExcel-67ufpOxx.js → toExcel-5kDfvPVG.js} +2 -2
- package/dist/{unit-BQrnccs6.js → unit-CIlgFZ50.js} +35 -35
- package/package.json +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DnuNFxC7.js +0 -6130
- package/dist/app-Bk0DN7oZ.js +0 -363
- package/dist/dayjs.min-nQqVHQcC.js +0 -6
- package/dist/index-28XF3UnN.js +0 -246
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as G, ref as M, computed as R, onMounted as ie, resolveComponent as $, createElementBlock as V, openBlock as y, createVNode as h, createElementVNode as f, toDisplayString as L, unref as p, Fragment as j, renderList as Q, createBlock as Y, watch as de, withCtx as E, h as T, normalizeClass as re, createCommentVNode as X, createTextVNode as me, mergeProps as $e, normalizeStyle as Ae, renderSlot as Ue, withModifiers as te, onUnmounted as Be } from "vue";
|
|
2
|
-
import { D as z } from "./dayjs.min-
|
|
2
|
+
import { D as z } from "./dayjs.min-ipgoM27T.js";
|
|
3
3
|
import { useRouter as De } from "vue-router";
|
|
4
4
|
import { O as Oe, b as Te } from "./app-5fxKLAzS.js";
|
|
5
|
-
import {
|
|
5
|
+
import { z as Ne, D as Re, B as ve, aa as Ee, a2 as be, y as q, u as _e, G as pe, H as Le } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
6
6
|
import { useI18n as Z, useCoreStore as ge, RestaurantSelector as ye } from "@feedmepos/mf-common";
|
|
7
7
|
import { useSnackbar as ce, useDialogChild as ze, useProxiedModel as je, useDialog as ke, FmButtonVariant as fe, components as W } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as He } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
9
|
-
import { _ as Ce } from "./app-
|
|
10
|
-
import { a as Ye, w as
|
|
9
|
+
import { _ as Ce } from "./app-BmAr9vNI.js";
|
|
10
|
+
import { a as Ye, w as Ke } from "./tooltip-B5BiPMx9.js";
|
|
11
11
|
import { u as we } from "./discardConfirm-BHni0LNu.js";
|
|
12
12
|
import { _ as xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
function Se(O) {
|
|
14
14
|
return O ? z(O).format("DD/MM/YY HH:mm") : "-";
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Je(O, S, s) {
|
|
17
17
|
const b = (i, _ = !1) => {
|
|
18
18
|
var d;
|
|
19
19
|
return i === void 0 && !_ ? "-" : ((d = s.find((v) => v.value === (i || null))) == null ? void 0 : d.label) || "-";
|
|
@@ -68,7 +68,7 @@ const qe = {
|
|
|
68
68
|
var o;
|
|
69
69
|
const l = S.restaurant.revertConfig;
|
|
70
70
|
if (!l) return [];
|
|
71
|
-
const n =
|
|
71
|
+
const n = Je(
|
|
72
72
|
[
|
|
73
73
|
{
|
|
74
74
|
...l,
|
|
@@ -169,8 +169,8 @@ const qe = {
|
|
|
169
169
|
value: "1",
|
|
170
170
|
indeterminate: i.value.length > 0,
|
|
171
171
|
"onUpdate:modelValue": t
|
|
172
|
-
}, null, 8, ["model-value", "indeterminate"]), (y(!0), V(j, null, Q(v.value, (B,
|
|
173
|
-
key:
|
|
172
|
+
}, null, 8, ["model-value", "indeterminate"]), (y(!0), V(j, null, Q(v.value, (B, K) => (y(), V("div", {
|
|
173
|
+
key: K
|
|
174
174
|
}, [h(c, {
|
|
175
175
|
"model-value": i.value,
|
|
176
176
|
label: B.label,
|
|
@@ -515,7 +515,7 @@ const qe = {
|
|
|
515
515
|
isCurrentMonth: F.month() === g
|
|
516
516
|
}), F = F.add(1, "day");
|
|
517
517
|
return D.length > 0 && x.push(D), x.length < 6 && x.push([]), x;
|
|
518
|
-
},
|
|
518
|
+
}, K = (w) => {
|
|
519
519
|
v.value = w;
|
|
520
520
|
};
|
|
521
521
|
return (w, x) => {
|
|
@@ -570,7 +570,7 @@ const qe = {
|
|
|
570
570
|
}
|
|
571
571
|
},
|
|
572
572
|
days: c.value,
|
|
573
|
-
"on-day-click": (I) =>
|
|
573
|
+
"on-day-click": (I) => K(I.date)
|
|
574
574
|
}, null, 8, ["day-cell-class", "days", "on-day-click"])
|
|
575
575
|
]),
|
|
576
576
|
f("div", null, [
|
|
@@ -607,7 +607,7 @@ const qe = {
|
|
|
607
607
|
}
|
|
608
608
|
},
|
|
609
609
|
days: U.value,
|
|
610
|
-
"on-day-click": (I) =>
|
|
610
|
+
"on-day-click": (I) => K(I.date)
|
|
611
611
|
}, null, 8, ["day-cell-class", "days", "on-day-click"])
|
|
612
612
|
])
|
|
613
613
|
])
|
|
@@ -871,7 +871,7 @@ const qe = {
|
|
|
871
871
|
await e.getNextSchedulerPublish();
|
|
872
872
|
});
|
|
873
873
|
const B = M(null);
|
|
874
|
-
function
|
|
874
|
+
function K() {
|
|
875
875
|
c.value = !1, B.value = {
|
|
876
876
|
date: "new",
|
|
877
877
|
restaurantsIds: []
|
|
@@ -917,7 +917,7 @@ const qe = {
|
|
|
917
917
|
variant: p(fe).Plain,
|
|
918
918
|
"prepend-icon": "add",
|
|
919
919
|
label: p(b)("menu.publish.actions.add_scheduler_publish"),
|
|
920
|
-
onClick: g[0] || (g[0] = () =>
|
|
920
|
+
onClick: g[0] || (g[0] = () => K())
|
|
921
921
|
}, null, 8, ["variant", "label"])) : X("", !0)])]),
|
|
922
922
|
_: 1
|
|
923
923
|
}, 8, ["modelValue", "onOn:clickedAway"])], 64);
|
|
@@ -983,7 +983,7 @@ const qe = {
|
|
|
983
983
|
o(), _("onComplete", k.value);
|
|
984
984
|
}
|
|
985
985
|
return (c, U) => {
|
|
986
|
-
const B = $("FmSelect"),
|
|
986
|
+
const B = $("FmSelect"), K = $("FmCheckbox"), w = $("FmButton"), x = $("FmSideSheet");
|
|
987
987
|
return y(), Y(x, {
|
|
988
988
|
modelValue: t.value,
|
|
989
989
|
"onUpdate:modelValue": U[5] || (U[5] = (m) => t.value = m),
|
|
@@ -1036,7 +1036,7 @@ const qe = {
|
|
|
1036
1036
|
(y(!0), V(j, null, Q(O.catalogs, (m) => (y(), V("div", {
|
|
1037
1037
|
key: m._id
|
|
1038
1038
|
}, [
|
|
1039
|
-
h(
|
|
1039
|
+
h(K, {
|
|
1040
1040
|
modelValue: k.value.additionalCatalogs,
|
|
1041
1041
|
"onUpdate:modelValue": U[3] || (U[3] = (g) => k.value.additionalCatalogs = g),
|
|
1042
1042
|
label: m.name,
|
|
@@ -1069,9 +1069,9 @@ const qe = {
|
|
|
1069
1069
|
class: "grow flex flex-col gap-4"
|
|
1070
1070
|
}, Yt = {
|
|
1071
1071
|
class: "flex gap-8 items-center"
|
|
1072
|
-
}, Jt = {
|
|
1073
|
-
class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary"
|
|
1074
1072
|
}, Kt = {
|
|
1073
|
+
class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary"
|
|
1074
|
+
}, Jt = {
|
|
1075
1075
|
class: "space-y-4"
|
|
1076
1076
|
}, qt = {
|
|
1077
1077
|
class: "fm-typo-en-body-lg-600"
|
|
@@ -1138,7 +1138,7 @@ const qe = {
|
|
|
1138
1138
|
const C = a.row.original;
|
|
1139
1139
|
return T("div", {
|
|
1140
1140
|
class: "flex justify-end gap-8"
|
|
1141
|
-
}, [t.value && C.revertConfig ?
|
|
1141
|
+
}, [t.value && C.revertConfig ? Ke(T(W.FmButton, {
|
|
1142
1142
|
prependIcon: "undo",
|
|
1143
1143
|
variant: "secondary",
|
|
1144
1144
|
onClick: te(async () => {
|
|
@@ -1207,10 +1207,10 @@ const qe = {
|
|
|
1207
1207
|
const C = U(a);
|
|
1208
1208
|
(A = v.value) == null || A.show(C);
|
|
1209
1209
|
}
|
|
1210
|
-
const
|
|
1210
|
+
const K = ce(), w = ve(K);
|
|
1211
1211
|
async function x(a) {
|
|
1212
1212
|
var A;
|
|
1213
|
-
const C = (A = g.value.find((
|
|
1213
|
+
const C = (A = g.value.find((J) => J._id === a.restaurantId)) == null ? void 0 : A.name;
|
|
1214
1214
|
await w.minor(async () => await e.publishMenu(a), {
|
|
1215
1215
|
customId: e.state.menu._id,
|
|
1216
1216
|
message: `Publishing menu for ${C}`,
|
|
@@ -1220,8 +1220,8 @@ const qe = {
|
|
|
1220
1220
|
const m = M(null), g = R(() => {
|
|
1221
1221
|
const a = d.value.toLowerCase(), C = e.state.menu.updatedAt;
|
|
1222
1222
|
return e.state.restaurants.filter((A) => {
|
|
1223
|
-
var
|
|
1224
|
-
return !m.value || ((
|
|
1223
|
+
var J;
|
|
1224
|
+
return !m.value || ((J = m.value) == null ? void 0 : J.includes(A._id));
|
|
1225
1225
|
}).map((A) => ({
|
|
1226
1226
|
...A,
|
|
1227
1227
|
catalog: {
|
|
@@ -1232,8 +1232,8 @@ const qe = {
|
|
|
1232
1232
|
status: C === A.updatedAt ? "latest" : "outdated"
|
|
1233
1233
|
})).filter((A) => Oe(A, F.value)).filter(({
|
|
1234
1234
|
name: A,
|
|
1235
|
-
catalog:
|
|
1236
|
-
}) => a ? A.toLowerCase().includes(a) ||
|
|
1235
|
+
catalog: J
|
|
1236
|
+
}) => a ? A.toLowerCase().includes(a) || J.default.toLowerCase().includes(a) || J.takeaway.toLowerCase().includes(a) || J.pickup.toLowerCase().includes(a) : !0);
|
|
1237
1237
|
}), F = M({
|
|
1238
1238
|
logic: "AND",
|
|
1239
1239
|
rules: []
|
|
@@ -1248,7 +1248,7 @@ const qe = {
|
|
|
1248
1248
|
customId: e.state.menu._id
|
|
1249
1249
|
}), await e.getNextSchedulerPublish(), e.runningPublishJob !== null ? N.value === null && (N.value = setInterval(async () => {
|
|
1250
1250
|
await oe();
|
|
1251
|
-
}, 3e4)) : (se.value && (
|
|
1251
|
+
}, 3e4)) : (se.value && (K.close(se.value), se.value = null), N.value !== null && (clearInterval(N.value), N.value = null), ee.value = null);
|
|
1252
1252
|
}
|
|
1253
1253
|
async function ne(a) {
|
|
1254
1254
|
if (u.value) return;
|
|
@@ -1283,11 +1283,11 @@ const qe = {
|
|
|
1283
1283
|
}), Be(() => {
|
|
1284
1284
|
N.value != null && (clearInterval(N.value), N.value = null);
|
|
1285
1285
|
}), (a, C) => {
|
|
1286
|
-
const A = $("FmChip"),
|
|
1286
|
+
const A = $("FmChip"), J = $("FmSpacer"), H = $("FmButton"), ue = $("FmBadge"), Ve = $("FmSearch"), Ie = $("FmTable"), Pe = $("FmListItem"), Me = $("FmList");
|
|
1287
1287
|
return y(), V(j, null, [f("div", Ot, [f("div", Tt, [f("div", Nt, [f("div", Rt, L(p(s)("menu.publish.title")), 1)]), h(A, {
|
|
1288
1288
|
label: n.value,
|
|
1289
1289
|
class: "xs:hidden text-fm-color-primary bg-fm-color-system-warning-100"
|
|
1290
|
-
}, null, 8, ["label"]), h(
|
|
1290
|
+
}, null, 8, ["label"]), h(J), f("div", Et, [h(H, {
|
|
1291
1291
|
disabled: u.value,
|
|
1292
1292
|
label: p(s)("menu.publish.actions.refresh"),
|
|
1293
1293
|
variant: "secondary",
|
|
@@ -1375,9 +1375,9 @@ const qe = {
|
|
|
1375
1375
|
},
|
|
1376
1376
|
onClick: () => B(P)
|
|
1377
1377
|
}, {
|
|
1378
|
-
default: E(() => [f("div", Ht, [f("div", Yt, [f("div",
|
|
1378
|
+
default: E(() => [f("div", Ht, [f("div", Yt, [f("div", Kt, L(o(P.updatedAt)), 1), h(b, {
|
|
1379
1379
|
row: P
|
|
1380
|
-
}, null, 8, ["row"])]), f("div",
|
|
1380
|
+
}, null, 8, ["row"])]), f("div", Jt, [f("div", qt, L(P.name), 1), f("div", Gt, [f("div", null, "Default: " + L(P.catalog.default), 1), f("div", null, "POS takeaway: " + L(P.catalog.takeaway), 1), f("div", null, "Pickup: " + L(P.catalog.pickup), 1)])])]), f("div", Wt, [t.value && P.revertConfig ? (y(), Y(H, {
|
|
1381
1381
|
key: 0,
|
|
1382
1382
|
disabled: u.value,
|
|
1383
1383
|
icon: "undo",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as z, computed as h, ref as w, reactive as Q, watch as W, resolveComponent as V, createElementBlock as F, openBlock as g, Fragment as C, renderSlot as X, createVNode as d, unref as e, withCtx as x, createElementVNode as r, toDisplayString as S, getCurrentInstance as Z, h as D, withModifiers as L, createBlock as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { defineComponent as z, computed as h, ref as w, reactive as Q, watch as W, resolveComponent as V, createElementBlock as F, openBlock as g, Fragment as C, renderSlot as X, createVNode as d, unref as e, withCtx as x, createElementVNode as r, toDisplayString as S, getCurrentInstance as Z, h as D, withModifiers as L, createBlock as O, createCommentVNode as ee, normalizeClass as K, renderList as te } from "vue";
|
|
2
|
+
import { useI18n as I } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as A, components as j, useDialog as ne, FmButtonVariant as G, useBreakpoints as oe } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as le } from "./app-
|
|
6
|
-
import {
|
|
5
|
+
import { _ as le } from "./app-BmAr9vNI.js";
|
|
6
|
+
import { O as q, B as $, G as ie, A as P, H as se, D as B, J as T, y as U, u as H, a2 as re } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
7
7
|
import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
8
8
|
import { defineStore as ue } from "pinia";
|
|
9
|
-
import { _ as
|
|
9
|
+
import { _ as Y, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-CppjxcTA.js";
|
|
10
10
|
import { u as de } from "./discardConfirm-BHni0LNu.js";
|
|
11
11
|
import { c as pe } from "./check-C9mY6LiX.js";
|
|
12
|
-
import "./unit-
|
|
12
|
+
import "./unit-CIlgFZ50.js";
|
|
13
13
|
import { c as fe } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
14
14
|
const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ z({
|
|
15
15
|
__name: "Form",
|
|
@@ -18,7 +18,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
18
18
|
invalidSkuAndRecipe: {}
|
|
19
19
|
},
|
|
20
20
|
setup(R, { expose: c }) {
|
|
21
|
-
const { t: u } =
|
|
21
|
+
const { t: u } = I(), p = R, f = q($(A())), b = h(() => p.initialValue ? u("menu.recipe.update") : u("menu.recipe.add")), _ = h(
|
|
22
22
|
() => p.initialValue ? u("menu.common.actions.update") : u("menu.common.actions.add")
|
|
23
23
|
), v = w(!1), a = w(!1), k = (t) => {
|
|
24
24
|
pe.isBoolean(t) ? a.value = t : a.value = !a.value;
|
|
@@ -37,15 +37,15 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
37
37
|
};
|
|
38
38
|
p.initialValue ? await f.updateMenu(
|
|
39
39
|
{
|
|
40
|
-
module:
|
|
41
|
-
operation:
|
|
40
|
+
module: U.F_MENU_MODULE_V4_KEY.enum.recipe,
|
|
41
|
+
operation: T.F_OPERATION_TYPE.update,
|
|
42
42
|
data: t
|
|
43
43
|
},
|
|
44
44
|
t.name
|
|
45
45
|
) : await f.updateMenu(
|
|
46
46
|
{
|
|
47
|
-
module:
|
|
48
|
-
operation:
|
|
47
|
+
module: U.F_MENU_MODULE_V4_KEY.enum.recipe,
|
|
48
|
+
operation: T.F_OPERATION_TYPE.create,
|
|
49
49
|
data: t
|
|
50
50
|
},
|
|
51
51
|
t.name
|
|
@@ -119,16 +119,16 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
119
119
|
rules: [(m) => m.length > 0 || e(u)("menu.recipe.validation.bind_required")]
|
|
120
120
|
}, {
|
|
121
121
|
default: x(() => [
|
|
122
|
-
d(
|
|
122
|
+
d(Y, {
|
|
123
123
|
modelValue: n.contains,
|
|
124
124
|
"onUpdate:modelValue": i[1] || (i[1] = (m) => n.contains = m),
|
|
125
|
-
type: e(
|
|
125
|
+
type: e(B.F_INVENTORY_BINDING_TYPE).enum.RECIPE,
|
|
126
126
|
"filter-option-ids": o.value
|
|
127
127
|
}, null, 8, ["modelValue", "type", "filter-option-ids"]),
|
|
128
|
-
d(
|
|
128
|
+
d(Y, {
|
|
129
129
|
modelValue: n.contains,
|
|
130
130
|
"onUpdate:modelValue": i[2] || (i[2] = (m) => n.contains = m),
|
|
131
|
-
type: e(
|
|
131
|
+
type: e(B.F_INVENTORY_BINDING_TYPE).enum.SKU,
|
|
132
132
|
"filter-option-ids": E.value
|
|
133
133
|
}, null, 8, ["modelValue", "type", "filter-option-ids"])
|
|
134
134
|
]),
|
|
@@ -142,7 +142,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
}), he = be, Ve = ue("recipe-manager", () => {
|
|
145
|
-
const R = ne(), c = A(), u = $(c), p = q(u), f = H(), b = Z(), { t: _ } =
|
|
145
|
+
const R = ne(), c = A(), u = $(c), p = q(u), f = H(), b = Z(), { t: _ } = I(), v = (o) => {
|
|
146
146
|
var l, t;
|
|
147
147
|
const { vNode: y } = fe(
|
|
148
148
|
he,
|
|
@@ -183,8 +183,8 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
183
183
|
}).onPrimary(async () => {
|
|
184
184
|
await p.updateMenu(
|
|
185
185
|
{
|
|
186
|
-
module:
|
|
187
|
-
operation:
|
|
186
|
+
module: U.F_MENU_MODULE_V4_KEY.enum.recipe,
|
|
187
|
+
operation: T.F_OPERATION_TYPE.delete,
|
|
188
188
|
data: o._id
|
|
189
189
|
},
|
|
190
190
|
o.name,
|
|
@@ -216,16 +216,16 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
216
216
|
class: "flex-1 flex justify-between gap-8 pl-8"
|
|
217
217
|
}, Me = {
|
|
218
218
|
class: "flex items-center"
|
|
219
|
-
}, Ie = {
|
|
220
|
-
class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
|
|
221
219
|
}, Oe = {
|
|
220
|
+
class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
|
|
221
|
+
}, Te = {
|
|
222
222
|
class: "fm-typo-en-body-md-600 font-semibold"
|
|
223
223
|
}, qe = /* @__PURE__ */ z({
|
|
224
224
|
__name: "Recipe",
|
|
225
225
|
setup(R) {
|
|
226
226
|
const {
|
|
227
227
|
t: c
|
|
228
|
-
} =
|
|
228
|
+
} = I(), u = A();
|
|
229
229
|
$(u);
|
|
230
230
|
const p = H(), f = Ve(), b = h(() => p.recipes), _ = h(() => b.value.filter((y) => `${y.name}`.toLowerCase().includes(v.value.toLowerCase()))), v = w(""), a = w([{
|
|
231
231
|
accessorKey: "name",
|
|
@@ -263,10 +263,10 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
263
263
|
const n = h(() => b.value.length), E = oe(), o = h(() => E.breakpoints.value.xs);
|
|
264
264
|
return (y, l) => {
|
|
265
265
|
const t = V("FmSearch"), i = V("FmTable"), N = V("fm-button"), M = V("FmSpacer");
|
|
266
|
-
return g(),
|
|
266
|
+
return g(), O(ce, {
|
|
267
267
|
heading: e(c)("menu.recipe.title")
|
|
268
268
|
}, {
|
|
269
|
-
default: x(() => [b.value.length === 0 ? (g(),
|
|
269
|
+
default: x(() => [b.value.length === 0 ? (g(), O(e(re), {
|
|
270
270
|
key: 0,
|
|
271
271
|
action: {
|
|
272
272
|
text: e(c)("menu.recipe.empty.action"),
|
|
@@ -313,7 +313,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
|
|
|
313
313
|
}, null, 8, ["column-defs", "page-size", "row-data"])]),
|
|
314
314
|
_: 1
|
|
315
315
|
})]))], 64))]),
|
|
316
|
-
"append-heading": x(() => [r("div", Ne, [r("div", Me, [r("div",
|
|
316
|
+
"append-heading": x(() => [r("div", Ne, [r("div", Me, [r("div", Oe, [r("p", Te, S(n.value), 1)])]), d(M), b.value.length > 0 ? (g(), O(ae, {
|
|
317
317
|
key: 0,
|
|
318
318
|
label: e(c)("menu.recipe.actions.add"),
|
|
319
319
|
"prepend-icon": "add",
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { defineComponent as D, ref as R, resolveComponent as u, createElementBlock as E, openBlock as P, Fragment as B, createElementVNode as f, createVNode as l, normalizeClass as A, withCtx as i, toDisplayString as g, unref as o, h as I } from "vue";
|
|
2
|
+
import { useI18n as T, useCustomAttributes as K, useCoreStore as N } from "@feedmepos/mf-common";
|
|
3
|
+
import { components as U } from "@feedmepos/ui-library";
|
|
4
|
+
import { d as W, _ as y } from "./RuleView.vue_vue_type_script_setup_true_lang-CkpwtUSB.js";
|
|
5
|
+
const j = {
|
|
6
|
+
class: /* @__PURE__ */ A(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
|
|
7
|
+
}, O = {
|
|
8
|
+
class: "fm-typo-en-title-sm-600"
|
|
9
|
+
}, $ = {
|
|
10
|
+
class: "max-h-[60vh] flex-1 overflow-y-auto min-h-0"
|
|
11
|
+
}, L = /* @__PURE__ */ D({
|
|
12
|
+
__name: "RestaurantAttributesSelector",
|
|
13
|
+
props: {
|
|
14
|
+
fullWidth: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
currentRestaurantAttrParams: {}
|
|
19
|
+
},
|
|
20
|
+
emits: ["confirm"],
|
|
21
|
+
setup(C, {
|
|
22
|
+
emit: w
|
|
23
|
+
}) {
|
|
24
|
+
const p = C, {
|
|
25
|
+
t: r
|
|
26
|
+
} = T(), {
|
|
27
|
+
attributes: c
|
|
28
|
+
} = K({
|
|
29
|
+
valueSource: N().restaurants,
|
|
30
|
+
entity: "restaurant"
|
|
31
|
+
}), {
|
|
32
|
+
restaurantAttributes: m
|
|
33
|
+
} = W(), _ = [{
|
|
34
|
+
header: () => r("portalshell.customAttributes.form.key"),
|
|
35
|
+
accessorKey: "key",
|
|
36
|
+
enableSorting: !1
|
|
37
|
+
}, {
|
|
38
|
+
header: () => r("portalshell.customAttributes.form.value"),
|
|
39
|
+
accessorKey: "values",
|
|
40
|
+
enableSorting: !1,
|
|
41
|
+
cell: (s) => {
|
|
42
|
+
const e = s.row.original, a = e.values;
|
|
43
|
+
return I(U.FmSelect, {
|
|
44
|
+
modelValue: e.value,
|
|
45
|
+
placeholder: r("portalshell.customAttributes.form.valuePlaceholder"),
|
|
46
|
+
items: a.map((t) => ({
|
|
47
|
+
label: t,
|
|
48
|
+
value: t
|
|
49
|
+
})),
|
|
50
|
+
clearable: !0,
|
|
51
|
+
searchable: !0,
|
|
52
|
+
"onUpdate:modelValue": (t) => e.value = t
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}], k = w;
|
|
56
|
+
function b(s) {
|
|
57
|
+
return s.reduce((e, a) => (a.value != null && (e[a.key] = a.value), e), {});
|
|
58
|
+
}
|
|
59
|
+
const F = () => {
|
|
60
|
+
const s = c.value.filter((t) => t.value != null), e = m.value.filter((t) => t.value != null), a = {
|
|
61
|
+
restaurantCustomAttributes: b(s),
|
|
62
|
+
restaurantAttributes: b(e)
|
|
63
|
+
};
|
|
64
|
+
k("confirm", a), h();
|
|
65
|
+
}, d = R(!1);
|
|
66
|
+
function S() {
|
|
67
|
+
var a, t;
|
|
68
|
+
d.value = !0;
|
|
69
|
+
const s = ((a = p.currentRestaurantAttrParams) == null ? void 0 : a.restaurantCustomAttributes) ?? {};
|
|
70
|
+
c.value.forEach((n) => {
|
|
71
|
+
n.value = s[n.key] ?? void 0;
|
|
72
|
+
});
|
|
73
|
+
const e = ((t = p.currentRestaurantAttrParams) == null ? void 0 : t.restaurantAttributes) ?? {};
|
|
74
|
+
m.value.forEach((n) => {
|
|
75
|
+
n.value = e[n.key] ?? void 0;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function h() {
|
|
79
|
+
d.value = !1;
|
|
80
|
+
}
|
|
81
|
+
return (s, e) => {
|
|
82
|
+
const a = u("FmIcon"), t = u("FmChip"), n = u("FmTable"), x = u("FmSpacer"), v = u("fm-button"), z = u("FmDialog");
|
|
83
|
+
return P(), E(B, null, [f("div", {
|
|
84
|
+
class: "cursor-pointer",
|
|
85
|
+
onClick: S
|
|
86
|
+
}, [l(t, {
|
|
87
|
+
class: A([s.fullWidth ? "w-full justify-between" : ""])
|
|
88
|
+
}, {
|
|
89
|
+
default: i(() => [f("div", j, g(o(r)("menu.catalog.form.restaurant_attributes_title")), 1), l(a, {
|
|
90
|
+
color: "neutral-gray-400",
|
|
91
|
+
name: "launch",
|
|
92
|
+
size: "sm"
|
|
93
|
+
})]),
|
|
94
|
+
_: 1
|
|
95
|
+
}, 8, ["class"])]), l(z, {
|
|
96
|
+
modelValue: d.value,
|
|
97
|
+
"onUpdate:modelValue": e[0] || (e[0] = (V) => d.value = V),
|
|
98
|
+
overlay: !0,
|
|
99
|
+
"min-width": "min(calc(100% - 48px), 560px)"
|
|
100
|
+
}, {
|
|
101
|
+
"dialog-header": i(() => [f("div", O, g(o(r)("menu.catalog.form.restaurant_attributes_title")), 1)]),
|
|
102
|
+
"dialog-footer": i(() => [l(x), l(v, {
|
|
103
|
+
label: o(r)("menu.common.actions.confirm"),
|
|
104
|
+
size: "lg",
|
|
105
|
+
type: "submit",
|
|
106
|
+
variant: "primary",
|
|
107
|
+
onClick: F
|
|
108
|
+
}, null, 8, ["label"]), l(v, {
|
|
109
|
+
label: o(r)("menu.common.actions.cancel"),
|
|
110
|
+
size: "lg",
|
|
111
|
+
variant: "tertiary",
|
|
112
|
+
onClick: h
|
|
113
|
+
}, null, 8, ["label"])]),
|
|
114
|
+
default: i(() => [f("div", $, [l(y, {
|
|
115
|
+
title: o(r)("menu.link_product.rules.restaurant_custom_attributes_filter")
|
|
116
|
+
}, {
|
|
117
|
+
default: i(() => [l(n, {
|
|
118
|
+
"column-defs": _,
|
|
119
|
+
"row-data": o(c),
|
|
120
|
+
"shrink-at": !1,
|
|
121
|
+
"page-size": o(c).length,
|
|
122
|
+
"hide-footer": ""
|
|
123
|
+
}, null, 8, ["row-data", "page-size"])]),
|
|
124
|
+
_: 1
|
|
125
|
+
}, 8, ["title"]), l(y, {
|
|
126
|
+
title: o(r)("menu.link_product.rules.restaurant_filter")
|
|
127
|
+
}, {
|
|
128
|
+
default: i(() => [l(n, {
|
|
129
|
+
"column-defs": _,
|
|
130
|
+
"row-data": o(m),
|
|
131
|
+
"shrink-at": !1,
|
|
132
|
+
"page-size": o(m).length,
|
|
133
|
+
"hide-footer": ""
|
|
134
|
+
}, null, 8, ["row-data", "page-size"])]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 8, ["title"])])]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["modelValue"])], 64);
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
export {
|
|
143
|
+
L as _
|
|
144
|
+
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as ie, createElementBlock as Y, openBlock as x, normali
|
|
|
2
2
|
import { x as xn, N as Kn } from "./app-5fxKLAzS.js";
|
|
3
3
|
import { useCoreStore as Dt, useI18n as He, useCustomAttributes as Bt, EMPTY_RULE as Yn, isEmptyMongoQuery as jn, isEmptyRule as Xn } from "@feedmepos/mf-common";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { u as Tn,
|
|
5
|
+
import { u as Tn, H as xt, y as vt } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
6
6
|
import { FmButtonVariant as Fe, components as qn } from "@feedmepos/ui-library";
|
|
7
7
|
const Jn = /* @__PURE__ */ ie({
|
|
8
8
|
__name: "FormColumn",
|
|
@@ -1891,7 +1891,7 @@ function Vo(e, t, n, r) {
|
|
|
1891
1891
|
return e.processor && (E.processor = e.processor), r.list && (E.list = r.list), r.named && (E.named = r.named), ee(r.plural) && (E.pluralIndex = r.plural), E;
|
|
1892
1892
|
}
|
|
1893
1893
|
wr();
|
|
1894
|
-
var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/
|
|
1894
|
+
var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6fbeab60-3be2-4e26-bc6f-e62f4c681a24", DOTNET_NOLOGO: "1", USER: "runner", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v18.20.8 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_6fbeab60-3be2-4e26-bc6f-e62f4c681a24", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.5.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", VITE_FEATURE_FLAG_API_KEY: "MaGoXrEWuEJNpWgKTqseee", SYSTEMD_EXEC_PID: "1871", ACTIONS_ORCHESTRATION_ID: "4c84571d-2995-46ee-985e-118cc2b64108.publish.deploy.__default", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260513.135.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:11129", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.10/x64", GITHUB_RUN_ID: "26073576196", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f0c842c2134817c1840d3d126b14136236b33353", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/feat/mf-menu-hrm-permission", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_77d89526-3b12-4cd3-850a-8743ca2e1014", INVOCATION_ID: "d9061940b4c74ea4b23487e725a9c130", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "559", GITHUB_TRIGGERING_ACTOR: "victorchai", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", VITE_LICENSE_API_URL: "https://license-v2-dev.feedmeapi.com", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000069783", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/mf-menu-hrm-permission", GITHUB_REPOSITORY: "feedmepos/portal", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.32.46-dev.2", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "f0c842c2134817c1840d3d126b14136236b33353", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", GITHUB_REF: "refs/heads/feat/mf-menu-hrm-permission", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_6fbeab60-3be2-4e26-bc6f-e62f4c681a24", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "49786844", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6fbeab60-3be2-4e26-bc6f-e62f4c681a24", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6fbeab60-3be2-4e26-bc6f-e62f4c681a24", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
1895
1895
|
const Go = "10.0.5";
|
|
1896
1896
|
function Ho() {
|
|
1897
1897
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (he().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (he().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (he().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (he().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as N, computed as y, h as p, withModifiers as U, ref as V, resolveComponent as _, createBlock as k, openBlock as i, unref as d, withCtx as h, createElementBlock as D, createVNode as f, Fragment as H, createElementVNode as s, renderList as T, toDisplayString as S, createCommentVNode as I } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { y as c, O as W, u as Q, B as G, a2 as J } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
3
3
|
import { useI18n as X } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as Z, useDialog as ee, useSnackbar as te } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
|
-
import { _ as ae } from "./app-
|
|
7
|
-
import { d as oe, _ as le, u as se, c as re } from "./scheduler-
|
|
6
|
+
import { _ as ae } from "./app-BmAr9vNI.js";
|
|
7
|
+
import { d as oe, _ as le, u as se, c as re } from "./scheduler-DRHXK6kX.js";
|
|
8
8
|
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
9
9
|
const ce = {
|
|
10
10
|
class: "flex flex-1 justify-end"
|
|
@@ -75,7 +75,7 @@ const ce = {
|
|
|
75
75
|
outline: !0,
|
|
76
76
|
color: "neutral-gray-400",
|
|
77
77
|
onClick: U(() => {
|
|
78
|
-
|
|
78
|
+
j(e.row.original);
|
|
79
79
|
}, ["stop", "prevent"])
|
|
80
80
|
})])
|
|
81
81
|
}]), r = {
|
|
@@ -115,12 +115,12 @@ const ce = {
|
|
|
115
115
|
var t;
|
|
116
116
|
C.value || (t = x.value) == null || t.show(e);
|
|
117
117
|
}
|
|
118
|
-
const
|
|
119
|
-
function
|
|
118
|
+
const O = ee();
|
|
119
|
+
function j(e) {
|
|
120
120
|
let t = [p("span", a("menu.scheduler.dialogs.remove.message", {
|
|
121
121
|
name: e.name
|
|
122
122
|
}))];
|
|
123
|
-
|
|
123
|
+
O.open({
|
|
124
124
|
title: a("menu.scheduler.dialogs.remove.title"),
|
|
125
125
|
contentComponent: p("div", t),
|
|
126
126
|
primaryActions: {
|
|
@@ -136,11 +136,11 @@ const ce = {
|
|
|
136
136
|
await w.updateMenu(oe(e), e.name, !0);
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
async function
|
|
139
|
+
async function q(e) {
|
|
140
140
|
const t = e._id ? se(e) : re(e);
|
|
141
141
|
await w.updateMenu(t, e.name);
|
|
142
142
|
}
|
|
143
|
-
const
|
|
143
|
+
const A = Q(), B = y(() => A.categorizedRawMenuItems), m = y(() => A.state.menu.modules.scheduler), w = W(G(te())), C = y(() => w.checkMenuIsLoading()), g = V(""), K = y(() => {
|
|
144
144
|
const e = g.value.toLowerCase();
|
|
145
145
|
return e ? m.value.filter((t) => t.name.toLowerCase().includes(e)) : m.value;
|
|
146
146
|
});
|
|
@@ -203,7 +203,7 @@ const ce = {
|
|
|
203
203
|
icon: "delete",
|
|
204
204
|
variant: "tertiary",
|
|
205
205
|
"text-color": "neutral-gray-400",
|
|
206
|
-
onClick: U(() =>
|
|
206
|
+
onClick: U(() => j(n), ["stop"])
|
|
207
207
|
}, null, 8, ["onClick"])]),
|
|
208
208
|
_: 2
|
|
209
209
|
}, 1032, ["label", "onClick"]))), 128))]),
|
|
@@ -212,7 +212,7 @@ const ce = {
|
|
|
212
212
|
ref_key: "schedulerDialogRef",
|
|
213
213
|
ref: x,
|
|
214
214
|
"categorized-items": B.value,
|
|
215
|
-
onOnComplete:
|
|
215
|
+
onOnComplete: q
|
|
216
216
|
}, null, 8, ["categorized-items"])]),
|
|
217
217
|
_: 1
|
|
218
218
|
}, 8, ["heading"]);
|