@feedmepos/mf-menu 0.32.12-dev → 0.32.13
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-D0JZMDPU.js → App-D70-FH5L.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C5fI7pDt.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BJdja2N0.js} +3 -3
- package/dist/{Catalog-BIVVmu4F.js → Catalog-WMpN3a0p.js} +6 -6
- package/dist/{Category-Cmf6dD5G.js → Category-BwHhFTZ-.js} +6 -6
- package/dist/{Category-DoEzIDPA.js → Category-C_VsQIHU.js} +4 -4
- package/dist/{CookingGuide-DxQ5vDF5.js → CookingGuide-D9RNkYDL.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BQscJC6_.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DtmrxDZm.js} +1 -1
- package/dist/{Group-EAACXFDr.js → Group-DexONgr2.js} +1 -1
- package/dist/{Group-l59a7MQy.js → Group-qRZlg5ST.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CdIKM2jO.js → Group.vue_vue_type_script_setup_true_lang-DtPY9uUt.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CendqbFI.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B5Qpmj2f.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-B3I3jPxC.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BqhNkaw_.js} +27456 -27454
- package/dist/{Ingredient-B7kPk3oV.js → Ingredient-BuOS_Wvm.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CzpY9mWg.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DFvXklj9.js} +2 -2
- package/dist/{LinkProductSideSheet-CeXhbGnn.js → LinkProductSideSheet-DJj8Nn4X.js} +3 -3
- package/dist/{MenuSetting-CCtL2qui.js → MenuSetting-D6B0gCGV.js} +5 -5
- package/dist/{PrintRoute-DMLRAZJg.js → PrintRoute-B7G8f1iC.js} +4 -4
- package/dist/{Product-BAcGhIEf.js → Product-DpS5EepJ.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-V8-_F7WQ.js → Product.vue_vue_type_script_setup_true_lang-CdIukLqA.js} +12 -12
- package/dist/{ProductInternalTools-BrQwrwyG.js → ProductInternalTools-CBCyWHOS.js} +6 -6
- package/dist/Products-CcyGNlUl.js +794 -0
- package/dist/{Publish-CtKo19_y.js → Publish-rZLHFaJ5.js} +54 -52
- package/dist/{Recipe-ORx3rnvx.js → Recipe-D14rkATU.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-biTDrokQ.js → RuleView.vue_vue_type_script_setup_true_lang-CdH2ius3.js} +134 -134
- package/dist/{Scheduler-B7v3W8eG.js → Scheduler-DWZqa-jf.js} +3 -3
- package/dist/{ServingSequence-DczYH8BU.js → ServingSequence-Mx7ovvJ1.js} +3 -3
- package/dist/{Setting-fNLED9R0.js → Setting-DmHuVXVn.js} +5 -5
- package/dist/{Subcategory-DjK1PTao.js → Subcategory-DixZPdnT.js} +4 -4
- package/dist/{Takeaway-LjEJbd4e.js → Takeaway-BVIymFV_.js} +4 -4
- package/dist/{Takeaway-ChMYycO_.js → Takeaway-DDKeDEbV.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CMdZM60P.js → Takeaway.vue_vue_type_script_setup_true_lang-CTaCQgRv.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Yh_aUxqS.js → Thumbnail.vue_vue_type_script_setup_true_lang-DveI9xvU.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CEmOkHc5.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-2nBbq_Yk.js} +14 -14
- package/dist/{Unit-DGZ9xVpM.js → Unit-utuaNZBw.js} +2 -2
- package/dist/{Variant-CUasE1B5.js → Variant-CzuJNwen.js} +3 -3
- package/dist/{_id_-CXV1a1UW.js → _id_-DMDhPQCr.js} +9 -9
- package/dist/{app--9ZjQ_dH.js → app-BQUkvrAS.js} +26 -26
- package/dist/{app-E7mszfIB.js → app-Bqj3cAPJ.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +22 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{validate-menu-BS4T4zZm.js → linked-status-ILQVL8r9.js} +7 -7
- package/dist/assets/{override-menu-BWkFILg4.js → override-menu-DVkGhbA9.js} +2 -2
- package/dist/assets/{linked-status-Doclb1U6.js → validate-menu-y_NQUL02.js} +7 -7
- package/dist/{catalog-PkvD9BV_.js → catalog-BYzITAmC.js} +1 -1
- package/dist/{catalogSetting-Cd9aIJs2.js → catalogSetting-DAo5tN3P.js} +1 -1
- package/dist/{category-1NLh1OVo.js → category-D4x8r_lY.js} +1 -1
- package/dist/{currency-J1RZcMOx.js → currency-CvoBdMM2.js} +1 -1
- package/dist/{dayjs.min-CXjOYO85.js → dayjs.min-C6xioui7.js} +1 -1
- package/dist/{index-BPpNi-Hh.js → index-6lju0f3r.js} +3 -3
- package/dist/{index-BiCSP8Fy.js → index-BLUIaanj.js} +1 -1
- package/dist/{index-D9h3wl03.js → index-LuH6PJzW.js} +4 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.js → index.vue_vue_type_script_setup_true_lang-DxF14kn9.js} +2664 -2664
- package/dist/{item-Ctnd-m_D.js → item-lXMLaKOb.js} +13 -13
- package/dist/{jszip.min-Bwz_vC7R.js → jszip.min-CdZ-wY5m.js} +2 -2
- package/dist/{menu-DpTANxng.js → menu-PJc2dQHQ.js} +1 -1
- package/dist/{menuV2-BBMwj4p0.js → menuV2-DinFmdTL.js} +131 -131
- package/dist/{priceTier-DAG2W_y3.js → priceTier-CzKIo11g.js} +1 -1
- package/dist/{scheduler-DYuLkKsc.js → scheduler-DQjxnoCk.js} +4 -4
- package/dist/{subcategory-BJ0oG92x.js → subcategory-CLkDImEU.js} +2 -2
- package/dist/{toExcel-C5_3G21q.js → toExcel-DPh8DaM0.js} +2 -2
- package/dist/{unit-CNwmGzjU.js → unit-QYkVoC6_.js} +2 -2
- package/package.json +1 -1
- package/dist/Products-O5YVYdlT.js +0 -692
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as W, ref as P, computed as R, onMounted as ie, resolveComponent as U, createElementBlock as M, openBlock as g, createVNode as f, createElementVNode as i, toDisplayString as
|
|
2
|
-
import { D as
|
|
1
|
+
import { defineComponent as W, ref as P, computed as R, onMounted as ie, resolveComponent as U, createElementBlock as M, openBlock as g, createVNode as f, createElementVNode as i, toDisplayString as L, unref as d, Fragment as H, renderList as G, createBlock as j, watch as de, withCtx as E, normalizeClass as re, createCommentVNode as Q, createTextVNode as me, mergeProps as Fe, normalizeStyle as Ve, renderSlot as Ie, withModifiers as te, h as T, onUnmounted as Pe } from "vue";
|
|
2
|
+
import { D as z } from "./dayjs.min-C6xioui7.js";
|
|
3
3
|
import { useRouter as Me } from "vue-router";
|
|
4
4
|
import { O as $e, b as Ue } from "./app-5fxKLAzS.js";
|
|
5
|
-
import { B as Be, H as Ae, G as he, ab as De, A as q, u as _e, I as pe, J as Te, a3 as Re } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { B as Be, H as Ae, G as he, ab as De, A as q, u as _e, I as pe, J as Te, a3 as Re } from "./index.vue_vue_type_script_setup_true_lang-DxF14kn9.js";
|
|
6
6
|
import { useI18n as Z, useCoreStore as Oe, RestaurantSelector as Ne } from "@feedmepos/mf-common";
|
|
7
7
|
import { useSnackbar as ce, useDialogChild as Ee, useProxiedModel as Le, FmButtonVariant as fe, components as X, useDialog as ze } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as He } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
9
|
-
import { _ as Je } from "./app
|
|
9
|
+
import { _ as Je } from "./app-BQUkvrAS.js";
|
|
10
10
|
import { a as Ye, w as Ke } from "./tooltip-B5BiPMx9.js";
|
|
11
11
|
import { u as be } from "./discardConfirm-BHni0LNu.js";
|
|
12
12
|
import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
function ye(B) {
|
|
14
|
-
return B ?
|
|
14
|
+
return B ? z(B).format("DD/MM/YY HH:mm") : "-";
|
|
15
15
|
}
|
|
16
16
|
function je(B, F, n) {
|
|
17
17
|
const b = (o, k = !1) => {
|
|
@@ -100,7 +100,7 @@ const qe = {
|
|
|
100
100
|
return o.value ? (g(), M("div", qe, [
|
|
101
101
|
f(s, { size: "lg" })
|
|
102
102
|
])) : (g(), M("div", Ge, [
|
|
103
|
-
i("div", We,
|
|
103
|
+
i("div", We, L(d(e)("menu.revert.description", { name: F.restaurant.name })), 1),
|
|
104
104
|
i("div", Qe, [
|
|
105
105
|
(g(!0), M(H, null, G(C.value, (m) => (g(), j(Ye, {
|
|
106
106
|
key: m.label,
|
|
@@ -156,8 +156,8 @@ const qe = {
|
|
|
156
156
|
multiselect: !0,
|
|
157
157
|
"hide-chips": !0
|
|
158
158
|
}, {
|
|
159
|
-
default:
|
|
160
|
-
"menu-wrapper":
|
|
159
|
+
default: E(() => [i("p", Ze, L(o.value.length === n.restaurants.length ? "All restaurants" : _(o.value).join(", ")), 1)]),
|
|
160
|
+
"menu-wrapper": E(() => [i("div", et, [f(u, {
|
|
161
161
|
class: "py-8",
|
|
162
162
|
modelValue: r.value,
|
|
163
163
|
"onUpdate:modelValue": m[0] || (m[0] = (O) => r.value = O),
|
|
@@ -202,7 +202,7 @@ const qe = {
|
|
|
202
202
|
F("menu.publish.scheduler.calender.day.thu"),
|
|
203
203
|
F("menu.publish.scheduler.calender.day.fri"),
|
|
204
204
|
F("menu.publish.scheduler.calender.day.sat")
|
|
205
|
-
], b =
|
|
205
|
+
], b = z(), o = (r, h) => typeof r == "function" ? r(...h) : r, k = (r, h) => {
|
|
206
206
|
if (!h) return;
|
|
207
207
|
const e = {
|
|
208
208
|
"fm-calendar__cell--selected": !1,
|
|
@@ -225,7 +225,7 @@ const qe = {
|
|
|
225
225
|
(g(!0), M(H, null, G(n(), (e) => (g(), M("div", {
|
|
226
226
|
key: e,
|
|
227
227
|
class: re(["fm-calendar__cell", `fm-calendar__cell__${r.cellSize}`])
|
|
228
|
-
},
|
|
228
|
+
}, L(e), 3))), 128))
|
|
229
229
|
]),
|
|
230
230
|
i("div", null, [
|
|
231
231
|
(g(!0), M(H, null, G(r.days, (e, C) => (g(), M("div", {
|
|
@@ -251,7 +251,7 @@ const qe = {
|
|
|
251
251
|
var _;
|
|
252
252
|
return (_ = r.onCellMouseOver) == null ? void 0 : _.call(r, a.date);
|
|
253
253
|
}
|
|
254
|
-
},
|
|
254
|
+
}, L(a.date.date()), 41, st)) : Q("", !0)
|
|
255
255
|
], 10, lt))), 128))
|
|
256
256
|
]))), 128))
|
|
257
257
|
])
|
|
@@ -271,15 +271,15 @@ const qe = {
|
|
|
271
271
|
emits: ["update:modelValue"],
|
|
272
272
|
setup(B, { emit: F }) {
|
|
273
273
|
const { t: n } = Z(), b = B, o = F, k = P(!1), r = R(() => {
|
|
274
|
-
const a =
|
|
274
|
+
const a = z(b.min).startOf("year"), c = z(b.max).startOf("year"), _ = c.diff(a, "year"), s = [];
|
|
275
275
|
for (let m = 0; m <= _; m++)
|
|
276
276
|
s.push(c.subtract(m, "year"));
|
|
277
277
|
return s;
|
|
278
278
|
}), h = (a) => {
|
|
279
|
-
const c =
|
|
279
|
+
const c = z(b.min).startOf("month"), _ = z(b.max).startOf("month");
|
|
280
280
|
return a.get("year") === c.get("year") ? a.startOf("month").isAfter(c) || a.get("month") === c.get("month") : a.get("year") === _.get("year") ? a.startOf("month").isBefore(_) || a.get("month") === _.get("month") : !0;
|
|
281
281
|
}, e = (a) => {
|
|
282
|
-
const c =
|
|
282
|
+
const c = z(b.min).startOf("month"), _ = z(b.max).startOf("month");
|
|
283
283
|
if (c.get("year") === a.get("year")) {
|
|
284
284
|
o("update:modelValue", c);
|
|
285
285
|
return;
|
|
@@ -304,16 +304,16 @@ const qe = {
|
|
|
304
304
|
trigger: "click",
|
|
305
305
|
onMenuChanged: c[0] || (c[0] = (u) => k.value = u)
|
|
306
306
|
}, {
|
|
307
|
-
"menu-button":
|
|
307
|
+
"menu-button": E(() => [
|
|
308
308
|
i("div", {
|
|
309
309
|
class: re(["flex gap-4 h-24 items-center px-4 rounded-sm", k.value ? "text-fm-color-primary" : "hover:bg-fm-color-neutral-gray-100"])
|
|
310
310
|
}, [
|
|
311
311
|
i("div", ut, [
|
|
312
312
|
a.picker === "month" ? (g(), M(H, { key: 0 }, [
|
|
313
|
-
me(
|
|
313
|
+
me(L(a.modelValue.format(d(n)("menu.publish.scheduler.date.monthFormat"))), 1)
|
|
314
314
|
], 64)) : Q("", !0),
|
|
315
315
|
a.picker === "year" ? (g(), M(H, { key: 1 }, [
|
|
316
|
-
me(
|
|
316
|
+
me(L(a.modelValue.format(d(n)("menu.publish.scheduler.date.yearFormat"))), 1)
|
|
317
317
|
], 64)) : Q("", !0)
|
|
318
318
|
]),
|
|
319
319
|
f(_, {
|
|
@@ -323,7 +323,7 @@ const qe = {
|
|
|
323
323
|
}, null, 8, ["name"])
|
|
324
324
|
], 2)
|
|
325
325
|
]),
|
|
326
|
-
default:
|
|
326
|
+
default: E(() => [
|
|
327
327
|
i("ul", rt, [
|
|
328
328
|
a.picker === "month" ? (g(!0), M(H, { key: 0 }, G(Array.from(Array(12), (u, y) => a.modelValue.month(y)), (u) => (g(), M("li", {
|
|
329
329
|
key: u.format(d(n)("menu.publish.scheduler.date.monthFormat")),
|
|
@@ -363,8 +363,8 @@ const qe = {
|
|
|
363
363
|
props: {
|
|
364
364
|
modelValue: {},
|
|
365
365
|
showValidBorder: { type: Boolean, default: !1 },
|
|
366
|
-
min: { default: () =>
|
|
367
|
-
max: { default: () =>
|
|
366
|
+
min: { default: () => z().subtract(50, "year").format(le) },
|
|
367
|
+
max: { default: () => z().add(25, "year").format(le) },
|
|
368
368
|
zIndex: { default: void 0 },
|
|
369
369
|
label: { default: "" },
|
|
370
370
|
labelMark: { default: "none" },
|
|
@@ -382,7 +382,7 @@ const qe = {
|
|
|
382
382
|
minutes: new Date(k.value).getMinutes(),
|
|
383
383
|
period: new Date(k.value).getHours() >= 12 ? "PM" : "AM"
|
|
384
384
|
/* AM */
|
|
385
|
-
}), h = P(
|
|
385
|
+
}), h = P(z(k.value, le)), e = P(!1);
|
|
386
386
|
function C(w, l) {
|
|
387
387
|
const [p, x, A] = w.split("-").map(Number), D = new Date(p, x - 1, A);
|
|
388
388
|
let I = l.hours % 12;
|
|
@@ -395,10 +395,10 @@ const qe = {
|
|
|
395
395
|
e.value = !1;
|
|
396
396
|
}, 0);
|
|
397
397
|
}, c = () => {
|
|
398
|
-
h.value = k.value ?
|
|
398
|
+
h.value = k.value ? z(k.value) : null, e.value = !1;
|
|
399
399
|
}, _ = (w) => {
|
|
400
400
|
e.value = w, w || c();
|
|
401
|
-
}, s = P(
|
|
401
|
+
}, s = P(z().startOf("month")), m = P(z().startOf("month").add(1, "month")), u = (w, l) => {
|
|
402
402
|
w === "left" ? (s.value = l, m.value = l.add(1, "month")) : w === "right" && (m.value = l, s.value = l.subtract(1, "month"));
|
|
403
403
|
}, y = R(() => O(s.value)), S = R(() => O(s.value.add(1, "month"))), O = (w) => {
|
|
404
404
|
const l = [], p = w.endOf("month"), x = w.month();
|
|
@@ -420,13 +420,13 @@ const qe = {
|
|
|
420
420
|
"exclude-el-from-click-outside": ["in-calendar-app"],
|
|
421
421
|
onPopoverChanged: _
|
|
422
422
|
}, {
|
|
423
|
-
"popover-button":
|
|
423
|
+
"popover-button": E(() => [
|
|
424
424
|
i("div", Fe({
|
|
425
425
|
opened: e.value,
|
|
426
426
|
showValidBorder: w.showValidBorder
|
|
427
427
|
}, { class: "text-fm-color-primary" }), " Select Date & Time ", 16)
|
|
428
428
|
]),
|
|
429
|
-
default:
|
|
429
|
+
default: E(() => [
|
|
430
430
|
i("div", ct, [
|
|
431
431
|
i("div", mt, [
|
|
432
432
|
i("div", pt, [
|
|
@@ -627,7 +627,7 @@ const qe = {
|
|
|
627
627
|
if (l.original.date === "new") {
|
|
628
628
|
if (m.value !== null)
|
|
629
629
|
return new Date(m.value).toLocaleString();
|
|
630
|
-
const x =
|
|
630
|
+
const x = z(Date.now()).toISOString();
|
|
631
631
|
return T(gt, {
|
|
632
632
|
class: "flex h-full items-center",
|
|
633
633
|
modelValue: x,
|
|
@@ -742,12 +742,12 @@ const qe = {
|
|
|
742
742
|
"max-width": 800,
|
|
743
743
|
"onOn:clickedAway": d(J)
|
|
744
744
|
}, {
|
|
745
|
-
"side-sheet-header":
|
|
745
|
+
"side-sheet-header": E(() => [i("div", wt, [f(x, {
|
|
746
746
|
variant: d(fe).Tertiary,
|
|
747
747
|
"prepend-icon": "arrow_back",
|
|
748
748
|
onClick: te(d(J), ["stop"])
|
|
749
|
-
}, null, 8, ["variant", "onClick"]), i("p", xt,
|
|
750
|
-
default:
|
|
749
|
+
}, null, 8, ["variant", "onClick"]), i("p", xt, L(d(b)("menu.publish.actions.publish_progress")), 1)])]),
|
|
750
|
+
default: E(() => [i("div", null, [f(A, {
|
|
751
751
|
class: "pb-8",
|
|
752
752
|
"row-data": [..._.value, S.value].filter(Boolean),
|
|
753
753
|
"column-defs": y,
|
|
@@ -832,10 +832,10 @@ const qe = {
|
|
|
832
832
|
"max-width": 560,
|
|
833
833
|
"onOn:clickedAway": d(m)
|
|
834
834
|
}, {
|
|
835
|
-
"side-sheet-header":
|
|
836
|
-
i("span", Ft,
|
|
835
|
+
"side-sheet-header": E(() => [
|
|
836
|
+
i("span", Ft, L(d(b)("menu.publish.update_catalog_dialog.title")), 1)
|
|
837
837
|
]),
|
|
838
|
-
"side-sheet-footer":
|
|
838
|
+
"side-sheet-footer": E(() => [
|
|
839
839
|
i("div", Mt, [
|
|
840
840
|
f(w, {
|
|
841
841
|
label: d(b)("menu.publish.update_catalog_dialog.actions.update"),
|
|
@@ -851,7 +851,7 @@ const qe = {
|
|
|
851
851
|
}, null, 8, ["label"])
|
|
852
852
|
])
|
|
853
853
|
]),
|
|
854
|
-
default:
|
|
854
|
+
default: E(() => [
|
|
855
855
|
f(O, {
|
|
856
856
|
modelValue: C.value.catalogId,
|
|
857
857
|
"onUpdate:modelValue": S[0] || (S[0] = (p) => C.value.catalogId = p),
|
|
@@ -873,8 +873,8 @@ const qe = {
|
|
|
873
873
|
label: d(b)("menu.publish.update_catalog_dialog.sections.pickup.label")
|
|
874
874
|
}, null, 8, ["modelValue", "items", "label"]),
|
|
875
875
|
i("div", Vt, [
|
|
876
|
-
i("div", It,
|
|
877
|
-
i("div", Pt,
|
|
876
|
+
i("div", It, L(d(b)("menu.publish.update_catalog_dialog.sections.additional.title")), 1),
|
|
877
|
+
i("div", Pt, L(d(b)("menu.publish.update_catalog_dialog.sections.additional.subtitle")), 1),
|
|
878
878
|
(g(!0), M(H, null, G(B.catalogs, (p) => (g(), M("div", {
|
|
879
879
|
key: p._id
|
|
880
880
|
}, [
|
|
@@ -1028,7 +1028,7 @@ const qe = {
|
|
|
1028
1028
|
version: s(e.state.menu.updatedAt)
|
|
1029
1029
|
}));
|
|
1030
1030
|
function s(t) {
|
|
1031
|
-
return t ?
|
|
1031
|
+
return t ? z(t).format("DD/MM/YYYY hh:mmA") : "";
|
|
1032
1032
|
}
|
|
1033
1033
|
const m = R(() => e.state.menu.modules.catalog), u = R(() => w.queue.value.some((t) => t.id === e.state.menu._id));
|
|
1034
1034
|
function y(t) {
|
|
@@ -1084,13 +1084,13 @@ const qe = {
|
|
|
1084
1084
|
key: "status",
|
|
1085
1085
|
entity: "menu",
|
|
1086
1086
|
values: ["latest", "outdated"]
|
|
1087
|
-
}], I = P(0),
|
|
1087
|
+
}], I = P(0), N = P(null), ee = P(null), ne = P(null);
|
|
1088
1088
|
async function ke() {
|
|
1089
1089
|
await w.minor(async () => await e.readRestaurants(), {
|
|
1090
1090
|
customId: e.state.menu._id
|
|
1091
|
-
}), await e.getNextSchedulerPublish(), e.runningPublishJob !== null ?
|
|
1091
|
+
}), await e.getNextSchedulerPublish(), e.runningPublishJob !== null ? N.value === null && (N.value = setInterval(async () => {
|
|
1092
1092
|
await oe();
|
|
1093
|
-
},
|
|
1093
|
+
}, 3e4)) : (ne.value && (J.close(ne.value), ne.value = null), N.value !== null && (clearInterval(N.value), N.value = null), ee.value = null);
|
|
1094
1094
|
}
|
|
1095
1095
|
async function se(t) {
|
|
1096
1096
|
if (u.value) return;
|
|
@@ -1104,22 +1104,24 @@ const qe = {
|
|
|
1104
1104
|
const K = (t == null ? void 0 : t.restaurantIds) || $.map((ue) => ue._id);
|
|
1105
1105
|
await e.publishMultipleMenu(K, t == null ? void 0 : t.schedulerTime, !1);
|
|
1106
1106
|
}
|
|
1107
|
-
ee.value = !1, I.value = await e.getPublishRestaurantsProgress(),
|
|
1107
|
+
ee.value = !1, I.value = await e.getPublishRestaurantsProgress(), N.value !== null && (clearInterval(N.value), N.value = null), N.value = setInterval(async () => {
|
|
1108
1108
|
await oe();
|
|
1109
|
-
},
|
|
1109
|
+
}, 3e4);
|
|
1110
1110
|
}
|
|
1111
1111
|
async function oe() {
|
|
1112
|
-
await e.getNextSchedulerPublish(), e.runningPublishJob !== null ? (ee.value = !1, I.value = await e.getPublishRestaurantsProgress()) : (ee.value = !0,
|
|
1112
|
+
await e.getNextSchedulerPublish(), e.runningPublishJob !== null ? (ee.value = !1, I.value = await e.getPublishRestaurantsProgress()) : (ee.value = !0, N.value !== null && (clearInterval(N.value), N.value = null));
|
|
1113
1113
|
}
|
|
1114
1114
|
return de(() => I.value, async (t) => {
|
|
1115
1115
|
await e.readRestaurants();
|
|
1116
1116
|
}), ie(async () => {
|
|
1117
|
-
await e.getNextSchedulerPublish(),
|
|
1117
|
+
await e.getNextSchedulerPublish(), N.value === null && (N.value = setInterval(async () => {
|
|
1118
|
+
await oe();
|
|
1119
|
+
}, 3e4));
|
|
1118
1120
|
}), Pe(() => {
|
|
1119
|
-
|
|
1121
|
+
N.value != null && (clearInterval(N.value), N.value = null);
|
|
1120
1122
|
}), (t, v) => {
|
|
1121
1123
|
const $ = U("FmChip"), Y = U("FmSpacer"), K = U("FmButton"), ue = U("FmBadge"), Ce = U("FmSearch"), we = U("FmTable"), xe = U("FmListItem"), Se = U("FmList");
|
|
1122
|
-
return g(), M(H, null, [i("div", Ut, [i("div", Bt, [i("div", At, [i("div", Dt,
|
|
1124
|
+
return g(), M(H, null, [i("div", Ut, [i("div", Bt, [i("div", At, [i("div", Dt, L(d(n)("menu.publish.title")), 1), v[9] || (v[9] = i("div", {
|
|
1123
1125
|
class: "hidden xs:block fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
1124
1126
|
}, null, -1))]), f($, {
|
|
1125
1127
|
label: _.value,
|
|
@@ -1134,14 +1136,14 @@ const qe = {
|
|
|
1134
1136
|
restaurants: x.value,
|
|
1135
1137
|
onPublishMenu: v[1] || (v[1] = (V) => se(V))
|
|
1136
1138
|
}, {
|
|
1137
|
-
default:
|
|
1139
|
+
default: E(({
|
|
1138
1140
|
trigger: V
|
|
1139
1141
|
}) => [d(e).runningPublishJob !== null ? (g(), j(ue, {
|
|
1140
1142
|
key: 0,
|
|
1141
1143
|
variant: "critical",
|
|
1142
1144
|
value: 1
|
|
1143
1145
|
}, {
|
|
1144
|
-
default:
|
|
1146
|
+
default: E(() => [f(K, {
|
|
1145
1147
|
variant: "secondary",
|
|
1146
1148
|
disabled: u.value,
|
|
1147
1149
|
label: d(n)("menu.publish.actions.publish_progress"),
|
|
@@ -1167,7 +1169,7 @@ const qe = {
|
|
|
1167
1169
|
modelValue: p.value,
|
|
1168
1170
|
"onUpdate:modelValue": v[4] || (v[4] = (V) => p.value = V)
|
|
1169
1171
|
}, {
|
|
1170
|
-
"append-right":
|
|
1172
|
+
"append-right": E(() => [f(d(Ue), {
|
|
1171
1173
|
modelValue: A.value,
|
|
1172
1174
|
"onUpdate:modelValue": v[3] || (v[3] = (V) => A.value = V),
|
|
1173
1175
|
attributes: D
|
|
@@ -1184,7 +1186,7 @@ const qe = {
|
|
|
1184
1186
|
}, [f(Je, {
|
|
1185
1187
|
class: "xs:hidden block"
|
|
1186
1188
|
}, {
|
|
1187
|
-
default:
|
|
1189
|
+
default: E(() => [f(we, {
|
|
1188
1190
|
modelValue: o.value,
|
|
1189
1191
|
"onUpdate:modelValue": v[6] || (v[6] = (V) => o.value = V),
|
|
1190
1192
|
"get-row-id": (V) => V._id,
|
|
@@ -1204,7 +1206,7 @@ const qe = {
|
|
|
1204
1206
|
class: "flex-col flex-1 min-h-0 overflow-auto xs:flex hidden w-full pb-64",
|
|
1205
1207
|
separator: ""
|
|
1206
1208
|
}, {
|
|
1207
|
-
default:
|
|
1209
|
+
default: E(() => [(g(!0), M(H, null, G(x.value, (V) => (g(), j(xe, {
|
|
1208
1210
|
key: V._id,
|
|
1209
1211
|
label: V.name,
|
|
1210
1212
|
style: {
|
|
@@ -1212,9 +1214,9 @@ const qe = {
|
|
|
1212
1214
|
},
|
|
1213
1215
|
onClick: () => O(V)
|
|
1214
1216
|
}, {
|
|
1215
|
-
default:
|
|
1217
|
+
default: E(() => [i("div", Et, [i("div", Lt, [i("div", zt, L(s(V.updatedAt)), 1), f(b, {
|
|
1216
1218
|
row: V
|
|
1217
|
-
}, null, 8, ["row"])]), i("div", Ht, [i("div", Jt,
|
|
1219
|
+
}, null, 8, ["row"])]), i("div", Ht, [i("div", Jt, L(V.name), 1), i("div", Yt, [i("div", null, "Default: " + L(V.catalog.default), 1), i("div", null, "POS takeaway: " + L(V.catalog.takeaway), 1), i("div", null, "Pickup: " + L(V.catalog.pickup), 1)])])]), i("div", Kt, [a.value && V.revertConfig ? (g(), j(K, {
|
|
1218
1220
|
key: 0,
|
|
1219
1221
|
disabled: u.value,
|
|
1220
1222
|
icon: "undo",
|
|
@@ -2,14 +2,14 @@ import { defineComponent as K, computed as h, ref as w, reactive as Q, watch as
|
|
|
2
2
|
import { useI18n as U } 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 { P as q, G as $, I as ie, D as P, J as se, H as Y, K as O, A as T, u as H, a3 as re } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le } from "./app-BQUkvrAS.js";
|
|
6
|
+
import { P as q, G as $, I as ie, D as P, J as se, H as Y, K as O, A as T, u as H, a3 as re } from "./index.vue_vue_type_script_setup_true_lang-DxF14kn9.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 B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as B, g as me } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-DFvXklj9.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-QYkVoC6_.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__ */ K({
|
|
15
15
|
__name: "Form",
|