@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.
Files changed (64) hide show
  1. package/dist/{App-D0JZMDPU.js → App-D70-FH5L.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C5fI7pDt.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BJdja2N0.js} +3 -3
  3. package/dist/{Catalog-BIVVmu4F.js → Catalog-WMpN3a0p.js} +6 -6
  4. package/dist/{Category-Cmf6dD5G.js → Category-BwHhFTZ-.js} +6 -6
  5. package/dist/{Category-DoEzIDPA.js → Category-C_VsQIHU.js} +4 -4
  6. package/dist/{CookingGuide-DxQ5vDF5.js → CookingGuide-D9RNkYDL.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BQscJC6_.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DtmrxDZm.js} +1 -1
  8. package/dist/{Group-EAACXFDr.js → Group-DexONgr2.js} +1 -1
  9. package/dist/{Group-l59a7MQy.js → Group-qRZlg5ST.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-CdIKM2jO.js → Group.vue_vue_type_script_setup_true_lang-DtPY9uUt.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CendqbFI.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B5Qpmj2f.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-B3I3jPxC.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BqhNkaw_.js} +27456 -27454
  13. package/dist/{Ingredient-B7kPk3oV.js → Ingredient-BuOS_Wvm.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CzpY9mWg.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DFvXklj9.js} +2 -2
  15. package/dist/{LinkProductSideSheet-CeXhbGnn.js → LinkProductSideSheet-DJj8Nn4X.js} +3 -3
  16. package/dist/{MenuSetting-CCtL2qui.js → MenuSetting-D6B0gCGV.js} +5 -5
  17. package/dist/{PrintRoute-DMLRAZJg.js → PrintRoute-B7G8f1iC.js} +4 -4
  18. package/dist/{Product-BAcGhIEf.js → Product-DpS5EepJ.js} +1 -1
  19. 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
  20. package/dist/{ProductInternalTools-BrQwrwyG.js → ProductInternalTools-CBCyWHOS.js} +6 -6
  21. package/dist/Products-CcyGNlUl.js +794 -0
  22. package/dist/{Publish-CtKo19_y.js → Publish-rZLHFaJ5.js} +54 -52
  23. package/dist/{Recipe-ORx3rnvx.js → Recipe-D14rkATU.js} +4 -4
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-biTDrokQ.js → RuleView.vue_vue_type_script_setup_true_lang-CdH2ius3.js} +134 -134
  25. package/dist/{Scheduler-B7v3W8eG.js → Scheduler-DWZqa-jf.js} +3 -3
  26. package/dist/{ServingSequence-DczYH8BU.js → ServingSequence-Mx7ovvJ1.js} +3 -3
  27. package/dist/{Setting-fNLED9R0.js → Setting-DmHuVXVn.js} +5 -5
  28. package/dist/{Subcategory-DjK1PTao.js → Subcategory-DixZPdnT.js} +4 -4
  29. package/dist/{Takeaway-LjEJbd4e.js → Takeaway-BVIymFV_.js} +4 -4
  30. package/dist/{Takeaway-ChMYycO_.js → Takeaway-DDKeDEbV.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CMdZM60P.js → Takeaway.vue_vue_type_script_setup_true_lang-CTaCQgRv.js} +5 -5
  32. 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
  33. 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
  34. package/dist/{Unit-DGZ9xVpM.js → Unit-utuaNZBw.js} +2 -2
  35. package/dist/{Variant-CUasE1B5.js → Variant-CzuJNwen.js} +3 -3
  36. package/dist/{_id_-CXV1a1UW.js → _id_-DMDhPQCr.js} +9 -9
  37. package/dist/{app--9ZjQ_dH.js → app-BQUkvrAS.js} +26 -26
  38. package/dist/{app-E7mszfIB.js → app-Bqj3cAPJ.js} +1 -1
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/helper/menuExport.d.ts +22 -0
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{validate-menu-BS4T4zZm.js → linked-status-ILQVL8r9.js} +7 -7
  43. package/dist/assets/{override-menu-BWkFILg4.js → override-menu-DVkGhbA9.js} +2 -2
  44. package/dist/assets/{linked-status-Doclb1U6.js → validate-menu-y_NQUL02.js} +7 -7
  45. package/dist/{catalog-PkvD9BV_.js → catalog-BYzITAmC.js} +1 -1
  46. package/dist/{catalogSetting-Cd9aIJs2.js → catalogSetting-DAo5tN3P.js} +1 -1
  47. package/dist/{category-1NLh1OVo.js → category-D4x8r_lY.js} +1 -1
  48. package/dist/{currency-J1RZcMOx.js → currency-CvoBdMM2.js} +1 -1
  49. package/dist/{dayjs.min-CXjOYO85.js → dayjs.min-C6xioui7.js} +1 -1
  50. package/dist/{index-BPpNi-Hh.js → index-6lju0f3r.js} +3 -3
  51. package/dist/{index-BiCSP8Fy.js → index-BLUIaanj.js} +1 -1
  52. package/dist/{index-D9h3wl03.js → index-LuH6PJzW.js} +4 -4
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-B3Eku0Ig.js → index.vue_vue_type_script_setup_true_lang-DxF14kn9.js} +2664 -2664
  54. package/dist/{item-Ctnd-m_D.js → item-lXMLaKOb.js} +13 -13
  55. package/dist/{jszip.min-Bwz_vC7R.js → jszip.min-CdZ-wY5m.js} +2 -2
  56. package/dist/{menu-DpTANxng.js → menu-PJc2dQHQ.js} +1 -1
  57. package/dist/{menuV2-BBMwj4p0.js → menuV2-DinFmdTL.js} +131 -131
  58. package/dist/{priceTier-DAG2W_y3.js → priceTier-CzKIo11g.js} +1 -1
  59. package/dist/{scheduler-DYuLkKsc.js → scheduler-DQjxnoCk.js} +4 -4
  60. package/dist/{subcategory-BJ0oG92x.js → subcategory-CLkDImEU.js} +2 -2
  61. package/dist/{toExcel-C5_3G21q.js → toExcel-DPh8DaM0.js} +2 -2
  62. package/dist/{unit-CNwmGzjU.js → unit-QYkVoC6_.js} +2 -2
  63. package/package.json +1 -1
  64. 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 E, unref as d, Fragment as H, renderList as G, createBlock as j, watch as de, withCtx as N, 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 L } from "./dayjs.min-CXjOYO85.js";
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-B3Eku0Ig.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-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--9ZjQ_dH.js";
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 ? L(B).format("DD/MM/YY HH:mm") : "-";
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, E(d(e)("menu.revert.description", { name: F.restaurant.name })), 1),
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: N(() => [i("p", Ze, E(o.value.length === n.restaurants.length ? "All restaurants" : _(o.value).join(", ")), 1)]),
160
- "menu-wrapper": N(() => [i("div", et, [f(u, {
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 = L(), o = (r, h) => typeof r == "function" ? r(...h) : r, k = (r, h) => {
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
- }, E(e), 3))), 128))
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
- }, E(a.date.date()), 41, st)) : Q("", !0)
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 = L(b.min).startOf("year"), c = L(b.max).startOf("year"), _ = c.diff(a, "year"), s = [];
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 = L(b.min).startOf("month"), _ = L(b.max).startOf("month");
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 = L(b.min).startOf("month"), _ = L(b.max).startOf("month");
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": N(() => [
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(E(a.modelValue.format(d(n)("menu.publish.scheduler.date.monthFormat"))), 1)
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(E(a.modelValue.format(d(n)("menu.publish.scheduler.date.yearFormat"))), 1)
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: N(() => [
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: () => L().subtract(50, "year").format(le) },
367
- max: { default: () => L().add(25, "year").format(le) },
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(L(k.value, le)), e = P(!1);
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 ? L(k.value) : null, e.value = !1;
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(L().startOf("month")), m = P(L().startOf("month").add(1, "month")), u = (w, l) => {
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": N(() => [
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: N(() => [
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 = L(Date.now()).toISOString();
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": N(() => [i("div", wt, [f(x, {
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, E(d(b)("menu.publish.actions.publish_progress")), 1)])]),
750
- default: N(() => [i("div", null, [f(A, {
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": N(() => [
836
- i("span", Ft, E(d(b)("menu.publish.update_catalog_dialog.title")), 1)
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": N(() => [
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: N(() => [
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, E(d(b)("menu.publish.update_catalog_dialog.sections.additional.title")), 1),
877
- i("div", Pt, E(d(b)("menu.publish.update_catalog_dialog.sections.additional.subtitle")), 1),
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 ? L(t).format("DD/MM/YYYY hh:mmA") : "";
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), z = P(null), ee = P(null), ne = P(null);
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 ? z.value === null && (z.value = setInterval(async () => {
1091
+ }), await e.getNextSchedulerPublish(), e.runningPublishJob !== null ? N.value === null && (N.value = setInterval(async () => {
1092
1092
  await oe();
1093
- }, 3e3)) : (ne.value && (J.close(ne.value), ne.value = null), z.value !== null && (clearInterval(z.value), z.value = null), ee.value = null);
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(), z.value !== null && (clearInterval(z.value), z.value = null), z.value = setInterval(async () => {
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
- }, 3e3);
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, z.value !== null && (clearInterval(z.value), z.value = null));
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(), await oe();
1117
+ await e.getNextSchedulerPublish(), N.value === null && (N.value = setInterval(async () => {
1118
+ await oe();
1119
+ }, 3e4));
1118
1120
  }), Pe(() => {
1119
- z.value != null && (clearInterval(z.value), z.value = null);
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, E(d(n)("menu.publish.title")), 1), v[9] || (v[9] = i("div", {
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: N(({
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: N(() => [f(K, {
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": N(() => [f(d(Ue), {
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: N(() => [f(we, {
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: N(() => [(g(!0), M(H, null, G(x.value, (V) => (g(), j(xe, {
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: N(() => [i("div", Et, [i("div", Lt, [i("div", zt, E(s(V.updatedAt)), 1), f(b, {
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, E(V.name), 1), i("div", Yt, [i("div", null, "Default: " + E(V.catalog.default), 1), i("div", null, "POS takeaway: " + E(V.catalog.takeaway), 1), i("div", null, "Pickup: " + E(V.catalog.pickup), 1)])])]), i("div", Kt, [a.value && V.revertConfig ? (g(), j(K, {
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--9ZjQ_dH.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-B3Eku0Ig.js";
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-CzpY9mWg.js";
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-CNwmGzjU.js";
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",