@feedmepos/mf-menu 0.32.62 → 0.32.63-dev.1

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 (98) hide show
  1. package/dist/{App-CE4fZP2_.js → App-DhfTGlgM.js} +467 -462
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-PpYjjdOP.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C_JKiJRD.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
  4. package/dist/{Catalog-C2MyXkps.js → Catalog-WuZJfM6l.js} +78 -78
  5. package/dist/{Category-B7Uxbyug.js → Category-BeIo7XWY.js} +20 -20
  6. package/dist/{Category-BoV0MYQp.js → Category-D-cQQCPS.js} +19 -19
  7. package/dist/{CookingGuide-Bdyj8XMv.js → CookingGuide-B-yvD9ZA.js} +88 -88
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-EDbgLHTU.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
  9. package/dist/{Group-BuFbi0Z-.js → Group-13i5igrS.js} +5 -5
  10. package/dist/{Group-DYpxc5ui.js → Group-CY8lUzQG.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-B5Uw2Rzm.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-COYg8e7h.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-YY25YW4B.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
  14. package/dist/{Ingredient-Ddw06I0B.js → Ingredient-vrUOW6gk.js} +49 -49
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CsWdL5Lz.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
  16. package/dist/{LinkProductSideSheet-COAMZqOM.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
  17. package/dist/{MenuSetting--G1_lGoV.js → MenuSetting-Di2xwm00.js} +10 -10
  18. package/dist/{OrderPacing-DnvLJh5M.js → OrderPacing-CCe-IcGO.js} +28 -28
  19. package/dist/{PrintRoute-CP-3JGP3.js → PrintRoute-CcfObcHY.js} +27 -27
  20. package/dist/{Product-D-q15-Qw.js → Product-ChUVnMgG.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-BaOg60Q6.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
  22. package/dist/{ProductInternalTools-wYn0bzml.js → ProductInternalTools-D9HXhgo5.js} +80 -79
  23. package/dist/{Products-CxEsB-7l.js → Products-Bly2ktEC.js} +75 -74
  24. package/dist/{Publish-BCljLztW.js → Publish-C8ubb8Qf.js} +113 -113
  25. package/dist/{Recipe-DgfobgnQ.js → Recipe-BpMRLsyO.js} +32 -32
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BgDVFKRI.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DCbrAMxd.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +474 -473
  28. package/dist/{Scheduler-C-LJs7Gl.js → Scheduler-CiB4b2Fn.js} +9 -9
  29. package/dist/{ServingSequence-BoaDRfsc.js → ServingSequence-BlcyW-dv.js} +18 -18
  30. package/dist/{Setting-BfFqBD9u.js → Setting-DqkL6YYU.js} +31 -31
  31. package/dist/{Subcategory-BsnC9ZSS.js → Subcategory-B4Jg_wtT.js} +43 -43
  32. package/dist/{Takeaway-PilRifJP.js → Takeaway-5G3f7jWT.js} +1 -1
  33. package/dist/{Takeaway-dSEAc70g.js → Takeaway-5rFPYYNA.js} +16 -16
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CgioM0sV.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
  35. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CHf3g1ia.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
  36. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-A43XxqyC.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js} +8 -9
  37. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +5836 -0
  38. package/dist/{Unit-DW1dFJas.js → Unit-CAkdmQLg.js} +2 -2
  39. package/dist/{Variant-CzLzrt2N.js → Variant-BbLQqbAK.js} +13 -13
  40. package/dist/{_id_-qfASfKMD.js → _id_-Dzacr40I.js} +13 -13
  41. package/dist/{app-BB33yKM6.js → app-4yWs09Fr.js} +495 -495
  42. package/dist/{app-CJnEQz-U.js → app-Deov1985.js} +3 -3
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/api/media.d.ts +161 -0
  45. package/dist/apps/mf-menu/src/app.d.ts +340 -0
  46. package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
  47. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +150 -0
  48. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/CustomDimensionDialog.vue.d.ts +17 -0
  49. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +16 -1
  50. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +42 -0
  51. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +75 -0
  52. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +17 -0
  53. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -6
  54. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
  55. package/dist/apps/mf-menu/src/composable/remyImageTarget.d.ts +5 -0
  56. package/dist/apps/mf-menu/src/helper/menu.d.ts +14 -1
  57. package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
  58. package/dist/apps/mf-menu/src/types/rule.d.ts +2 -0
  59. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +3 -2
  60. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +8 -8
  61. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  62. package/dist/assets/{linked-status-VaVE9Pyh.js → linked-status-B2WLhKkV.js} +3 -3
  63. package/dist/assets/{menu-export-DD9Zt6XH.js → menu-export-Dcw5a_dN.js} +3 -3
  64. package/dist/assets/{override-menu-DZCgrhuF.js → override-menu-cBe2aMY6.js} +3 -3
  65. package/dist/assets/{validate-menu-BFsQlikL.js → validate-menu-BM-5GK85.js} +2 -2
  66. package/dist/{catalog-Cvn1ZMGp.js → catalog-DKygS2Cs.js} +6 -6
  67. package/dist/{catalogSetting-D2bOCGW7.js → catalogSetting-Bn2TplvM.js} +1 -1
  68. package/dist/currency-DXgNHtK8.js +7 -0
  69. package/dist/dayjs.min-DpX65tgj.js +7 -0
  70. package/dist/discardConfirm-DZwzKO-Q.js +3704 -0
  71. package/dist/{index-B2fxLO4K.js → index-B48KLyqg.js} +61 -61
  72. package/dist/{index-CizrxT_e.js → index-BEocaqRK.js} +30 -30
  73. package/dist/index-K-MBqJJo.js +222 -0
  74. package/dist/{index.vue_vue_type_script_setup_true_lang-gaRM4vfS.js → index.vue_vue_type_script_setup_true_lang-Nl505vPi.js} +44918 -51563
  75. package/dist/item-Da3ArD-G.js +13213 -0
  76. package/dist/{jszip.min-BXLegUsz.js → jszip.min-Cc2eR4Cq.js} +119 -119
  77. package/dist/linkProducts-GNuUxFEE.js +331 -0
  78. package/dist/{memberPricing-CizI1rUM.js → memberPricing-T-jr7tn1.js} +1 -1
  79. package/dist/{menu-BCed1YCE.js → menu-DSDRAil-.js} +1 -1
  80. package/dist/{menuV2-Bo9AHrdr.js → menuV2-fTlJdjxi.js} +162 -160
  81. package/dist/mf-menu.css +1 -1
  82. package/dist/{order_pacing-BkfQeNeC.js → order_pacing-Dgo1fySS.js} +17 -17
  83. package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
  84. package/dist/{priceTier-rjuK-b6U.js → priceTier-aT_gIfrN.js} +3 -3
  85. package/dist/{rules-DHX_hK6G.js → rules-Cx2hkV20.js} +8 -8
  86. package/dist/{scheduler-BsfPbtM2.js → scheduler-Bd-q7yF8.js} +62 -62
  87. package/dist/{toExcel-DJHljg_L.js → toExcel-qfjR83qT.js} +2 -2
  88. package/dist/{unit-BxTWR1dZ.js → unit-n1T9grbM.js} +64 -64
  89. package/package.json +3 -3
  90. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DGqao47l.js +0 -399
  91. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DY1umres.js +0 -6058
  92. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +0 -6
  93. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +0 -38
  94. package/dist/currency-DQDsuXB5.js +0 -7
  95. package/dist/dayjs.min-CzUkrXIR.js +0 -7
  96. package/dist/discardConfirm-BHni0LNu.js +0 -28
  97. package/dist/index-CisutoS9.js +0 -156
  98. package/dist/item-DOHVD6CN.js +0 -9098
@@ -1,24 +1,24 @@
1
- import { defineComponent as J, ref as P, computed as D, onMounted as me, resolveComponent as $, createElementBlock as F, openBlock as y, createVNode as b, createElementVNode as f, toDisplayString as T, unref as c, Fragment as j, renderList as Q, createBlock as Y, watch as pe, withCtx as z, h as B, normalizeClass as ce, createCommentVNode as X, createTextVNode as _e, mergeProps as Ue, normalizeStyle as Oe, renderSlot as Be, withModifiers as le, onUnmounted as Te } from "vue";
2
- import { D as E } from "./dayjs.min-CzUkrXIR.js";
3
- import { useRouter as ze } from "vue-router";
4
- import { O as Ee, b as Le } from "./app-5fxKLAzS.js";
5
- import { z as je, D as Ke, B as Ce, ah as Ye, a5 as we, ai as W, u as xe, G as ge, H as He, y as qe } from "./index.vue_vue_type_script_setup_true_lang-gaRM4vfS.js";
1
+ import { defineComponent as G, ref as P, computed as N, onMounted as me, resolveComponent as $, createElementBlock as F, openBlock as y, createVNode as b, createElementVNode as f, toDisplayString as T, unref as c, Fragment as j, renderList as Q, createBlock as Y, watch as pe, withCtx as E, h as B, normalizeClass as ce, createCommentVNode as X, createTextVNode as _e, mergeProps as Ue, normalizeStyle as Oe, renderSlot as Be, withModifiers as le, onUnmounted as Te } from "vue";
2
+ import { D as z } from "./dayjs.min-DpX65tgj.js";
3
+ import { useRouter as Ee } from "vue-router";
4
+ import { O as ze, b as Le } from "./app-5fxKLAzS.js";
5
+ import { a as je, e as Ke, b as Ce, J as Ye, _ as we, K as W, u as xe, d as ge, F as He } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
6
6
  import { useI18n as Z, useCoreStore as he, RestaurantSelector as Ve } from "@feedmepos/mf-common";
7
- import { useSnackbar as fe, useDialogChild as Ge, useProxiedModel as Je, useDialog as Se, components as ee, FmButtonVariant as ye } from "@feedmepos/ui-library";
8
- import { _ as We } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
9
- import { _ as Qe } from "./app-BB33yKM6.js";
10
- import { a as Xe, w as Ze } from "./tooltip-B5BiPMx9.js";
11
- import { u as Fe } from "./discardConfirm-BHni0LNu.js";
7
+ import { useSnackbar as fe, useDialogChild as qe, useProxiedModel as Je, useDialog as Se, components as ee, FmButtonVariant as ye } from "@feedmepos/ui-library";
8
+ import { _ as Ge } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
9
+ import { _ as We } from "./app-4yWs09Fr.js";
10
+ import { a as Qe, w as Xe } from "./tooltip-B5BiPMx9.js";
11
+ import { u as Fe, l as Ze } from "./discardConfirm-DZwzKO-Q.js";
12
12
  import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- function Pe(N) {
14
- return N ? E(N).format("DD/MM/YY HH:mm") : "-";
13
+ function Pe(D) {
14
+ return D ? z(D).format("DD/MM/YY HH:mm") : "-";
15
15
  }
16
- function et(N, x, l) {
16
+ function et(D, x, l) {
17
17
  const p = (i, g = !1) => {
18
18
  var h;
19
19
  return i === void 0 && !g ? "-" : ((h = l.find((_) => _.value === (i || null))) == null ? void 0 : h.label) || "-";
20
20
  };
21
- return N.map((i) => {
21
+ return D.map((i) => {
22
22
  var e;
23
23
  const g = (e = x.find(({ _id: k }) => k === i._id)) == null ? void 0 : e.posVersion, h = !!g && !!je.Pos.canUse({ feature: Ke.F_FEATURE.enum.taxAndServiceChargeV4, posVersion: g }), _ = p(i.catalogId);
24
24
  return {
@@ -39,13 +39,13 @@ const tt = {
39
39
  }, lt = {
40
40
  key: 1,
41
41
  class: "space-y-16"
42
- }, at = { class: "text-fm-color-typo-secondary" }, st = { class: "space-y-4" }, nt = /* @__PURE__ */ J({
42
+ }, at = { class: "text-fm-color-typo-secondary" }, st = { class: "space-y-4" }, nt = /* @__PURE__ */ G({
43
43
  __name: "RevertDialog",
44
44
  props: {
45
45
  restaurant: {}
46
46
  },
47
- setup(N) {
48
- const x = N, l = fe(), { custom: p } = Ce(l), i = P(!1), g = P(null);
47
+ setup(D) {
48
+ const x = D, l = fe(), { custom: p } = Ce(l), i = P(!1), g = P(null);
49
49
  async function h() {
50
50
  await p(
51
51
  async () => {
@@ -55,7 +55,7 @@ const tt = {
55
55
  { isLoading: i }
56
56
  );
57
57
  }
58
- const _ = D(() => {
58
+ const _ = N(() => {
59
59
  var a;
60
60
  return [
61
61
  { label: "Main", value: null },
@@ -64,7 +64,7 @@ const tt = {
64
64
  value: n._id
65
65
  }))
66
66
  ];
67
- }), { t: e } = Z(), k = D(() => {
67
+ }), { t: e } = Z(), k = N(() => {
68
68
  var o;
69
69
  const a = x.restaurant.revertConfig;
70
70
  if (!a) return [];
@@ -94,7 +94,7 @@ const tt = {
94
94
  ];
95
95
  });
96
96
  me(async () => h());
97
- const { emitData: s } = Ge();
97
+ const { emitData: s } = qe();
98
98
  return (a, n) => {
99
99
  const o = $("FmCircularProgress");
100
100
  return i.value ? (y(), F("div", tt, [
@@ -102,7 +102,7 @@ const tt = {
102
102
  ])) : (y(), F("div", lt, [
103
103
  f("div", at, T(c(e)("menu.revert.description", { name: x.restaurant.name })), 1),
104
104
  f("div", st, [
105
- (y(!0), F(j, null, Q(k.value, (r) => (y(), Y(Xe, {
105
+ (y(!0), F(j, null, Q(k.value, (r) => (y(), Y(Qe, {
106
106
  key: r.label,
107
107
  name: r.label,
108
108
  value: r.value || "--"
@@ -115,7 +115,7 @@ const tt = {
115
115
  class: "break-all fm-typo-en-body-lg-400 line-clamp-1"
116
116
  }, ut = {
117
117
  class: "flex flex-col"
118
- }, rt = /* @__PURE__ */ J({
118
+ }, rt = /* @__PURE__ */ G({
119
119
  __name: "PublishRestaurantSelector",
120
120
  props: {
121
121
  restaurants: {
@@ -124,17 +124,17 @@ const tt = {
124
124
  }
125
125
  },
126
126
  emits: ["update:modelValue"],
127
- setup(N, {
127
+ setup(D, {
128
128
  emit: x
129
129
  }) {
130
- const l = N, p = x, i = P([]), g = D(() => l.restaurants.map((o) => ({
130
+ const l = D, p = x, i = P([]), g = N(() => l.restaurants.map((o) => ({
131
131
  label: o.name,
132
132
  value: o._id
133
- }))), h = P(""), _ = D(() => {
133
+ }))), h = P(""), _ = N(() => {
134
134
  const o = Array.isArray(i.value) ? i.value : [], r = o.map((m) => g.value.find((R) => R.value === m)).filter((m) => m !== void 0);
135
135
  let d = [];
136
136
  return h.value ? (d = g.value.filter((m) => m.label.toLowerCase().includes(h.value.toLowerCase()) && !o.includes(m.value)), [...r, ...d]) : (d = g.value.filter((m) => !o.includes(m.value)), [...r, ...d]);
137
- }), e = D(() => i.value.length > 0 && i.value.length === _.value.length), k = D(() => i.value.filter((o) => _.value.some((r) => r.value === o))), s = () => {
137
+ }), e = N(() => i.value.length > 0 && i.value.length === _.value.length), k = N(() => i.value.filter((o) => _.value.some((r) => r.value === o))), s = () => {
138
138
  const o = i.value.filter((r) => !k.value.includes(r));
139
139
  e.value === !0 ? a(o) : a(_.value.map((r) => r.value));
140
140
  }, a = (o) => {
@@ -156,8 +156,8 @@ const tt = {
156
156
  multiselect: !0,
157
157
  "hide-chips": !0
158
158
  }, {
159
- default: z(() => [f("p", ot, T(i.value.length === l.restaurants.length ? "All restaurants" : n(i.value).join(", ")), 1)]),
160
- "menu-wrapper": z(() => [f("div", ut, [b(d, {
159
+ default: E(() => [f("p", ot, T(i.value.length === l.restaurants.length ? "All restaurants" : n(i.value).join(", ")), 1)]),
160
+ "menu-wrapper": E(() => [f("div", ut, [b(d, {
161
161
  class: "py-8",
162
162
  modelValue: h.value,
163
163
  "onUpdate:modelValue": r[0] || (r[0] = (S) => h.value = S),
@@ -190,7 +190,7 @@ const tt = {
190
190
  }, mt = {
191
191
  key: 1,
192
192
  class: "text-fm-color-neutral-gray-200"
193
- }, pt = /* @__PURE__ */ J({
193
+ }, pt = /* @__PURE__ */ G({
194
194
  __name: "RestaurantPublishDetail",
195
195
  props: {
196
196
  restaurantPublishStatus: {
@@ -202,10 +202,10 @@ const tt = {
202
202
  required: !0
203
203
  }
204
204
  },
205
- setup(N) {
205
+ setup(D) {
206
206
  const {
207
207
  t: x
208
- } = Z(), l = N, p = he(), i = [{
208
+ } = Z(), l = D, p = he(), i = [{
209
209
  accessorKey: "restaurantName",
210
210
  header: x("menu.publish.scheduler_publish.restaurant_publish_details.table.column.restaurant"),
211
211
  cell: (a) => {
@@ -238,14 +238,14 @@ const tt = {
238
238
  class: "whitespace-nowrap"
239
239
  }, n);
240
240
  }
241
- }], g = P([]), h = D(() => Object.entries(l.statusMap).map(([a, n]) => ({
241
+ }], g = P([]), h = N(() => Object.entries(l.statusMap).map(([a, n]) => ({
242
242
  label: n.label,
243
243
  value: a
244
- }))), _ = P(null), e = D(() => Object.entries(l.restaurantPublishStatus).filter(([a, n]) => g.value.length === 0 ? !0 : g.value.includes(n.status)).filter(([a, n]) => !_.value || _.value.length === 0 ? !0 : _.value.includes(a)).map(([a, n]) => ({
244
+ }))), _ = P(null), e = N(() => Object.entries(l.restaurantPublishStatus).filter(([a, n]) => g.value.length === 0 ? !0 : g.value.includes(n.status)).filter(([a, n]) => !_.value || _.value.length === 0 ? !0 : _.value.includes(a)).map(([a, n]) => ({
245
245
  restaurantName: s(a),
246
246
  publishStatus: l.statusMap[n.status].label,
247
- publishedAt: n.publishedAt ? E(n.publishedAt).format("YYYY-MM-DD HH:mm:ss") : ""
248
- })).sort((a, n) => a.restaurantName.localeCompare(n.restaurantName))), k = D(() => {
247
+ publishedAt: n.publishedAt ? z(n.publishedAt).format("YYYY-MM-DD HH:mm:ss") : ""
248
+ })).sort((a, n) => a.restaurantName.localeCompare(n.restaurantName))), k = N(() => {
249
249
  var n, o;
250
250
  const a = {};
251
251
  for (const r of p.restaurants.value) {
@@ -272,7 +272,7 @@ const tt = {
272
272
  multiselect: "",
273
273
  "hide-chips": ""
274
274
  }, {
275
- default: z(() => [g.value.length > 0 ? (y(), F("div", ct, T(g.value.map((d) => {
275
+ default: E(() => [g.value.length > 0 ? (y(), F("div", ct, T(g.value.map((d) => {
276
276
  var m;
277
277
  return (m = l.statusMap[d]) == null ? void 0 : m.label;
278
278
  }).join(", ")), 1)) : (y(), F("div", mt, T(c(x)("menu.publish.scheduler_publish.restaurant_publish_details.select_publish_status")), 1))]),
@@ -295,7 +295,7 @@ const tt = {
295
295
  }), ht = { class: "fm-calendar__name-row fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ft = ["id"], vt = {
296
296
  key: 0,
297
297
  class: "fm-calendar__cell__button--today"
298
- }, bt = ["onClick", "onMouseover"], _t = /* @__PURE__ */ J({
298
+ }, bt = ["onClick", "onMouseover"], _t = /* @__PURE__ */ G({
299
299
  __name: "FmCalendar",
300
300
  props: {
301
301
  days: {},
@@ -304,7 +304,7 @@ const tt = {
304
304
  onCellMouseOver: { type: Function, default: void 0 },
305
305
  cellSize: { default: "md" }
306
306
  },
307
- setup(N) {
307
+ setup(D) {
308
308
  const { t: x } = Z(), l = () => [
309
309
  x("menu.publish.scheduler.calender.day.sun"),
310
310
  x("menu.publish.scheduler.calender.day.mon"),
@@ -313,7 +313,7 @@ const tt = {
313
313
  x("menu.publish.scheduler.calender.day.thu"),
314
314
  x("menu.publish.scheduler.calender.day.fri"),
315
315
  x("menu.publish.scheduler.calender.day.sat")
316
- ], p = E(), i = (h, _) => typeof h == "function" ? h(..._) : h, g = (h, _) => {
316
+ ], p = z(), i = (h, _) => typeof h == "function" ? h(..._) : h, g = (h, _) => {
317
317
  if (!_) return;
318
318
  const e = {
319
319
  "fm-calendar__cell--selected": !1,
@@ -371,7 +371,7 @@ const tt = {
371
371
  }), ke = /* @__PURE__ */ Ie(_t, [["__scopeId", "data-v-47484312"]]), gt = { class: "fm-typo-en-body-md-600" }, yt = {
372
372
  id: "in-calendar-app",
373
373
  class: "h-[264px] overflow-y-auto w-[160px]"
374
- }, kt = ["onVnodeMounted"], Ct = ["onVnodeMounted"], se = /* @__PURE__ */ J({
374
+ }, kt = ["onVnodeMounted"], Ct = ["onVnodeMounted"], se = /* @__PURE__ */ G({
375
375
  __name: "FmDateRangeYearMonthPicker",
376
376
  props: {
377
377
  modelValue: {},
@@ -380,17 +380,17 @@ const tt = {
380
380
  max: {}
381
381
  },
382
382
  emits: ["update:modelValue"],
383
- setup(N, { emit: x }) {
384
- const { t: l } = Z(), p = N, i = x, g = P(!1), h = D(() => {
385
- const s = E(p.min).startOf("year"), a = E(p.max).startOf("year"), n = a.diff(s, "year"), o = [];
383
+ setup(D, { emit: x }) {
384
+ const { t: l } = Z(), p = D, i = x, g = P(!1), h = N(() => {
385
+ const s = z(p.min).startOf("year"), a = z(p.max).startOf("year"), n = a.diff(s, "year"), o = [];
386
386
  for (let r = 0; r <= n; r++)
387
387
  o.push(a.subtract(r, "year"));
388
388
  return o;
389
389
  }), _ = (s) => {
390
- const a = E(p.min).startOf("month"), n = E(p.max).startOf("month");
390
+ const a = z(p.min).startOf("month"), n = z(p.max).startOf("month");
391
391
  return s.get("year") === a.get("year") ? s.startOf("month").isAfter(a) || s.get("month") === a.get("month") : s.get("year") === n.get("year") ? s.startOf("month").isBefore(n) || s.get("month") === n.get("month") : !0;
392
392
  }, e = (s) => {
393
- const a = E(p.min).startOf("month"), n = E(p.max).startOf("month");
393
+ const a = z(p.min).startOf("month"), n = z(p.max).startOf("month");
394
394
  if (a.get("year") === s.get("year")) {
395
395
  i("update:modelValue", a);
396
396
  return;
@@ -415,7 +415,7 @@ const tt = {
415
415
  trigger: "click",
416
416
  onMenuChanged: a[0] || (a[0] = (d) => g.value = d)
417
417
  }, {
418
- "menu-button": z(() => [
418
+ "menu-button": E(() => [
419
419
  f("div", {
420
420
  class: ce(["flex gap-4 h-24 items-center px-4 rounded-sm", g.value ? "text-fm-color-primary" : "hover:bg-fm-color-neutral-gray-100"])
421
421
  }, [
@@ -434,7 +434,7 @@ const tt = {
434
434
  }, null, 8, ["name"])
435
435
  ], 2)
436
436
  ]),
437
- default: z(() => [
437
+ default: E(() => [
438
438
  f("ul", yt, [
439
439
  s.picker === "month" ? (y(!0), F(j, { key: 0 }, Q(Array.from(Array(12), (d, m) => s.modelValue.month(m)), (d) => (y(), F("li", {
440
440
  key: d.format(c(l)("menu.publish.scheduler.date.monthFormat")),
@@ -469,13 +469,13 @@ const tt = {
469
469
  });
470
470
  };
471
471
  }
472
- }), wt = { class: "p-12 space-y-4 w-[552px]" }, xt = { class: "w-max" }, Vt = { class: "flex space-x-24" }, St = { class: "flex items-center py-8 space-x-16" }, Ft = { class: "flex space-x-4" }, It = { class: "flex items-center justify-end py-8 space-x-16" }, Pt = { class: "flex space-x-4" }, Mt = { class: "flex gap-8 items-center justify-end w-full" }, ne = "YYYY-MM-DD", $t = /* @__PURE__ */ J({
472
+ }), wt = { class: "p-12 space-y-4 w-[552px]" }, xt = { class: "w-max" }, Vt = { class: "flex space-x-24" }, St = { class: "flex items-center py-8 space-x-16" }, Ft = { class: "flex space-x-4" }, It = { class: "flex items-center justify-end py-8 space-x-16" }, Pt = { class: "flex space-x-4" }, Mt = { class: "flex gap-8 items-center justify-end w-full" }, ne = "YYYY-MM-DD", $t = /* @__PURE__ */ G({
473
473
  __name: "DateTimePicker",
474
474
  props: {
475
475
  modelValue: {},
476
476
  showValidBorder: { type: Boolean, default: !1 },
477
- min: { default: () => E().subtract(50, "year").format(ne) },
478
- max: { default: () => E().add(25, "year").format(ne) },
477
+ min: { default: () => z().subtract(50, "year").format(ne) },
478
+ max: { default: () => z().add(25, "year").format(ne) },
479
479
  zIndex: { default: void 0 },
480
480
  label: { default: "" },
481
481
  labelMark: { default: "none" },
@@ -487,13 +487,13 @@ const tt = {
487
487
  helperState: { default: "none" }
488
488
  },
489
489
  emits: ["update:schedulerTime"],
490
- setup(N, { emit: x }) {
491
- const { t: l } = Z(), p = N, i = x, g = Je(p, "modelValue"), h = P({
490
+ setup(D, { emit: x }) {
491
+ const { t: l } = Z(), p = D, i = x, g = Je(p, "modelValue"), h = P({
492
492
  hours: new Date(g.value).getHours() % 12 || 12,
493
493
  minutes: new Date(g.value).getMinutes(),
494
494
  period: new Date(g.value).getHours() >= 12 ? "PM" : "AM"
495
495
  /* AM */
496
- }), _ = P(E(g.value, ne)), e = P(!1);
496
+ }), _ = P(z(g.value, ne)), e = P(!1);
497
497
  function k(V, u) {
498
498
  const [C, A, U] = V.split("-").map(Number), O = new Date(C, A - 1, U);
499
499
  let M = u.hours % 12;
@@ -506,12 +506,12 @@ const tt = {
506
506
  e.value = !1;
507
507
  }, 0);
508
508
  }, a = () => {
509
- _.value = g.value ? E(g.value) : null, e.value = !1;
509
+ _.value = g.value ? z(g.value) : null, e.value = !1;
510
510
  }, n = (V) => {
511
511
  e.value = V, V || a();
512
- }, o = P(E().startOf("month")), r = P(E().startOf("month").add(1, "month")), d = (V, u) => {
512
+ }, o = P(z().startOf("month")), r = P(z().startOf("month").add(1, "month")), d = (V, u) => {
513
513
  V === "left" ? (o.value = u, r.value = u.add(1, "month")) : V === "right" && (r.value = u, o.value = u.subtract(1, "month"));
514
- }, m = D(() => S(o.value)), R = D(() => S(o.value.add(1, "month"))), S = (V) => {
514
+ }, m = N(() => S(o.value)), R = N(() => S(o.value.add(1, "month"))), S = (V) => {
515
515
  const u = [], C = V.endOf("month"), A = V.month();
516
516
  let U = V.startOf("week"), O = [];
517
517
  for (; U.isBefore(C.endOf("week")); )
@@ -531,13 +531,13 @@ const tt = {
531
531
  "exclude-el-from-click-outside": ["in-calendar-app"],
532
532
  onPopoverChanged: n
533
533
  }, {
534
- "popover-button": z(() => [
534
+ "popover-button": E(() => [
535
535
  f("div", Ue({
536
536
  opened: e.value,
537
537
  showValidBorder: V.showValidBorder
538
538
  }, { class: "text-fm-color-primary" }), " Select Date & Time ", 16)
539
539
  ]),
540
- default: z(() => [
540
+ default: E(() => [
541
541
  f("div", wt, [
542
542
  f("div", xt, [
543
543
  f("div", Vt, [
@@ -647,14 +647,14 @@ const tt = {
647
647
  }, 8, ["show-popover", "z-index"]);
648
648
  };
649
649
  }
650
- }), At = { class: "container" }, Dt = /* @__PURE__ */ J({
650
+ }), At = { class: "container" }, Nt = /* @__PURE__ */ G({
651
651
  __name: "ProgressBar",
652
652
  props: {
653
653
  bgcolor: {},
654
654
  completed: {}
655
655
  },
656
- setup(N) {
657
- const x = N, l = D(() => ({
656
+ setup(D) {
657
+ const x = D, l = N(() => ({
658
658
  height: "100%",
659
659
  width: `${x.completed ?? 0}%`,
660
660
  backgroundColor: x.bgcolor,
@@ -668,11 +668,11 @@ const tt = {
668
668
  }, null, 4)
669
669
  ]));
670
670
  }
671
- }), Nt = /* @__PURE__ */ Ie(Dt, [["__scopeId", "data-v-709d7500"]]), Rt = {
671
+ }), Dt = /* @__PURE__ */ Ie(Nt, [["__scopeId", "data-v-709d7500"]]), Rt = {
672
672
  class: "flex items-center gap-24"
673
673
  }, Ut = {
674
674
  class: "fm-typo-en-title-md-600"
675
- }, Ot = /* @__PURE__ */ J({
675
+ }, Ot = /* @__PURE__ */ G({
676
676
  __name: "PublishProgressView",
677
677
  props: {
678
678
  progress: {
@@ -685,13 +685,13 @@ const tt = {
685
685
  }
686
686
  },
687
687
  emits: ["publishMenu"],
688
- setup(N, {
688
+ setup(D, {
689
689
  expose: x,
690
690
  emit: l
691
691
  }) {
692
692
  const {
693
693
  t: p
694
- } = Z(), i = fe(), g = Se(), h = N, _ = {
694
+ } = Z(), i = fe(), g = Se(), h = D, _ = {
695
695
  [W.enum.PENDING]: {
696
696
  label: p("menu.publish.scheduler_publish.status.pending"),
697
697
  textColor: "text-fm-color-neutral-gray-300",
@@ -719,7 +719,7 @@ const tt = {
719
719
  show: k,
720
720
  trigger: s
721
721
  });
722
- const a = l, n = D(() => e.state.nextSchedulerPublish ?? {}), o = D(() => Object.entries(n.value).map(([C, A]) => {
722
+ const a = l, n = N(() => e.state.nextSchedulerPublish ?? {}), o = N(() => Object.entries(n.value).map(([C, A]) => {
723
723
  var M;
724
724
  const U = e.runningPublishJob, O = Object.keys(A.restaurants || {}).length;
725
725
  return {
@@ -742,7 +742,7 @@ const tt = {
742
742
  if (u.original.date === "new") {
743
743
  if (d.value !== null)
744
744
  return new Date(d.value).toLocaleString();
745
- const A = E(Date.now()).toISOString();
745
+ const A = z(Date.now()).toISOString();
746
746
  return B($t, {
747
747
  class: "flex h-full items-center",
748
748
  modelValue: A,
@@ -807,7 +807,7 @@ const tt = {
807
807
  class: `fm-typo-en-body-md-400 ${_[C].textColor}`
808
808
  }, _[C].label), ...C === W.enum.RUNNING ? [B("p", {
809
809
  class: `fm-typo-en-body-md-400 ${_[C].textColor}`
810
- }, `(${u.original.progress}/${u.original.total_restaurants})`)] : []]), B(Nt, {
810
+ }, `(${u.original.progress}/${u.original.total_restaurants})`)] : []]), B(Dt, {
811
811
  bgcolor: _[C].backgroundColor,
812
812
  completed: C === W.enum.PENDING ? 0 : C === W.enum.RUNNING ? Math.floor((u.original.progress ?? 0) / parseInt(u.original.total_restaurants) * 100) : (C === W.enum.COMPLETED, 100)
813
813
  })]), B(ee.FmButton, {
@@ -833,7 +833,7 @@ const tt = {
833
833
  disabled: C !== W.enum.PENDING,
834
834
  textColor: "system-error-300",
835
835
  onClick: () => {
836
- const U = E(u.original.date).toISOString();
836
+ const U = z(u.original.date).toISOString();
837
837
  g.open({
838
838
  title: "Confirm Remove",
839
839
  message: "Are you sure you want to remove this scheduled publish? This action cannot be undone.",
@@ -894,12 +894,12 @@ const tt = {
894
894
  "max-width": 800,
895
895
  "onOn:clickedAway": c(V)
896
896
  }, {
897
- "side-sheet-header": z(() => [f("div", Rt, [b(A, {
897
+ "side-sheet-header": E(() => [f("div", Rt, [b(A, {
898
898
  variant: c(ye).Tertiary,
899
899
  "prepend-icon": "arrow_back",
900
900
  onClick: le(c(V), ["stop"])
901
901
  }, null, 8, ["variant", "onClick"]), f("p", Ut, T(c(p)("menu.publish.actions.publish_progress")), 1)])]),
902
- default: z(() => [f("div", null, [b(U, {
902
+ default: E(() => [f("div", null, [b(U, {
903
903
  class: "pb-8",
904
904
  "row-data": [...o.value, S.value].filter(Boolean),
905
905
  "column-defs": R,
@@ -917,7 +917,7 @@ const tt = {
917
917
  }, 8, ["modelValue", "onOn:clickedAway"])], 64);
918
918
  };
919
919
  }
920
- }), Bt = { class: "fm-typo-en-title-md-600" }, Tt = { class: "mt-40" }, zt = { class: "fm-typo-en-title-sm-600" }, Et = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary mt-4 mb-8" }, Lt = { class: "flex gap-8 items-center justify-start" }, jt = /* @__PURE__ */ J({
920
+ }), Bt = { class: "fm-typo-en-title-md-600" }, Tt = { class: "mt-40" }, Et = { class: "fm-typo-en-title-sm-600" }, zt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary mt-4 mb-8" }, Lt = { class: "flex gap-8 items-center justify-start" }, jt = /* @__PURE__ */ G({
921
921
  __name: "UpdateCatalogDialog",
922
922
  props: {
923
923
  catalogs: {
@@ -926,8 +926,8 @@ const tt = {
926
926
  }
927
927
  },
928
928
  emits: ["onComplete"],
929
- setup(N, { expose: x, emit: l }) {
930
- const { t: p } = Z(), i = N;
929
+ setup(D, { expose: x, emit: l }) {
930
+ const { t: p } = Z(), i = D;
931
931
  x({
932
932
  show: n,
933
933
  hide: o
@@ -942,7 +942,7 @@ const tt = {
942
942
  additionalCatalogs: []
943
943
  };
944
944
  }
945
- const _ = D(() => [
945
+ const _ = N(() => [
946
946
  {
947
947
  label: p("menu.publish.update_catalog_dialog.sections.default.use_default"),
948
948
  value: null
@@ -951,7 +951,7 @@ const tt = {
951
951
  label: m.name,
952
952
  value: m._id
953
953
  }))
954
- ]), e = D(() => [
954
+ ]), e = N(() => [
955
955
  {
956
956
  label: p("menu.publish.update_catalog_dialog.sections.default.use_default"),
957
957
  value: null
@@ -968,7 +968,7 @@ const tt = {
968
968
  s.value = !1;
969
969
  }
970
970
  const r = Fe(
971
- () => !He.isEqual(a.value, k.value),
971
+ () => !Ze.isEqual(a.value, k.value),
972
972
  () => {
973
973
  o();
974
974
  }
@@ -984,10 +984,10 @@ const tt = {
984
984
  "max-width": 560,
985
985
  "onOn:clickedAway": c(r)
986
986
  }, {
987
- "side-sheet-header": z(() => [
987
+ "side-sheet-header": E(() => [
988
988
  f("span", Bt, T(c(p)("menu.publish.update_catalog_dialog.title")), 1)
989
989
  ]),
990
- "side-sheet-footer": z(() => [
990
+ "side-sheet-footer": E(() => [
991
991
  f("div", Lt, [
992
992
  b(V, {
993
993
  label: c(p)("menu.publish.update_catalog_dialog.actions.update"),
@@ -1003,7 +1003,7 @@ const tt = {
1003
1003
  }, null, 8, ["label"])
1004
1004
  ])
1005
1005
  ]),
1006
- default: z(() => [
1006
+ default: E(() => [
1007
1007
  b(S, {
1008
1008
  modelValue: k.value.catalogId,
1009
1009
  "onUpdate:modelValue": R[0] || (R[0] = (C) => k.value.catalogId = C),
@@ -1025,9 +1025,9 @@ const tt = {
1025
1025
  label: c(p)("menu.publish.update_catalog_dialog.sections.pickup.label")
1026
1026
  }, null, 8, ["modelValue", "items", "label"]),
1027
1027
  f("div", Tt, [
1028
- f("div", zt, T(c(p)("menu.publish.update_catalog_dialog.sections.additional.title")), 1),
1029
- f("div", Et, T(c(p)("menu.publish.update_catalog_dialog.sections.additional.subtitle")), 1),
1030
- (y(!0), F(j, null, Q(N.catalogs, (C) => (y(), F("div", {
1028
+ f("div", Et, T(c(p)("menu.publish.update_catalog_dialog.sections.additional.title")), 1),
1029
+ f("div", zt, T(c(p)("menu.publish.update_catalog_dialog.sections.additional.subtitle")), 1),
1030
+ (y(!0), F(j, null, Q(D.catalogs, (C) => (y(), F("div", {
1031
1031
  key: C._id
1032
1032
  }, [
1033
1033
  b(H, {
@@ -1051,10 +1051,10 @@ const tt = {
1051
1051
  class: "mr-8"
1052
1052
  }, qt = {
1053
1053
  class: "fm-typo-en-title-md-600"
1054
- }, Gt = {
1055
- class: "xs:hidden mr-16"
1056
1054
  }, Jt = {
1057
1055
  class: "xs:hidden mr-16"
1056
+ }, Gt = {
1057
+ class: "xs:hidden mr-16"
1058
1058
  }, Wt = {
1059
1059
  class: "xs:hidden"
1060
1060
  }, Qt = {
@@ -1075,16 +1075,16 @@ const tt = {
1075
1075
  class: "flex gap-8"
1076
1076
  }, nl = {
1077
1077
  class: "xs:block hidden fixed bottom-72 right-16"
1078
- }, _l = /* @__PURE__ */ J({
1078
+ }, _l = /* @__PURE__ */ G({
1079
1079
  __name: "Publish",
1080
- setup(N) {
1081
- const x = ze(), {
1080
+ setup(D) {
1081
+ const x = Ee(), {
1082
1082
  t: l
1083
1083
  } = Z(), p = ({
1084
1084
  row: t
1085
1085
  }) => {
1086
1086
  const v = t.status === "latest";
1087
- return b(We, {
1087
+ return b(Ge, {
1088
1088
  label: l(v ? "menu.publish.table.status.latest" : "menu.publish.table.status.outdated"),
1089
1089
  variant: v ? "success" : "warning"
1090
1090
  }, null);
@@ -1132,7 +1132,7 @@ const tt = {
1132
1132
  const v = t.row.original;
1133
1133
  return B("div", {
1134
1134
  class: "flex justify-end gap-8"
1135
- }, [o.value && v.revertConfig ? Ze(B(ee.FmButton, {
1135
+ }, [o.value && v.revertConfig ? Xe(B(ee.FmButton, {
1136
1136
  prependIcon: "undo",
1137
1137
  variant: "secondary",
1138
1138
  onClick: le(async () => {
@@ -1151,7 +1151,7 @@ const tt = {
1151
1151
  meta: {
1152
1152
  width: "150px"
1153
1153
  }
1154
- }], h = P(""), _ = P(), e = xe(), k = he(), s = D(() => {
1154
+ }], h = P(""), _ = P(), e = xe(), k = he(), s = N(() => {
1155
1155
  var v;
1156
1156
  const t = /* @__PURE__ */ new Map();
1157
1157
  for (const w of k.restaurants.value)
@@ -1162,7 +1162,7 @@ const tt = {
1162
1162
  const w = s.value.get(t);
1163
1163
  return w ? `${v} (${w})` : v;
1164
1164
  }
1165
- const n = Se(), o = D(() => e.version !== qe.enum.v3);
1165
+ const n = Se(), o = N(() => e.version !== He.enum.v3);
1166
1166
  async function r(t) {
1167
1167
  t.revertConfig && n.open({
1168
1168
  title: "Revert menu",
@@ -1187,13 +1187,13 @@ const tt = {
1187
1187
  });
1188
1188
  });
1189
1189
  }
1190
- const d = D(() => l("menu.publish.labels.main_version", {
1190
+ const d = N(() => l("menu.publish.labels.main_version", {
1191
1191
  version: m(e.state.menu.updatedAt)
1192
1192
  }));
1193
1193
  function m(t) {
1194
- return t ? E(t).format("DD/MM/YYYY hh:mmA") : "";
1194
+ return t ? z(t).format("DD/MM/YYYY hh:mmA") : "";
1195
1195
  }
1196
- const R = D(() => e.state.menu.modules.catalog), S = D(() => A.queue.value.some((t) => t.id === e.state.menu._id));
1196
+ const R = N(() => e.state.menu.modules.catalog), S = N(() => A.queue.value.some((t) => t.id === e.state.menu._id));
1197
1197
  function H(t) {
1198
1198
  var v;
1199
1199
  return t ? ((v = R.value.find((w) => w._id === t)) == null ? void 0 : v.name) ?? l("menu.publish.labels.catalog.invalid") : l("menu.publish.labels.catalog.main");
@@ -1215,18 +1215,18 @@ const tt = {
1215
1215
  const C = fe(), A = Ce(C);
1216
1216
  async function U(t) {
1217
1217
  var w;
1218
- const v = (w = q.value.find((G) => G._id === t.restaurantId)) == null ? void 0 : w.name;
1218
+ const v = (w = q.value.find((J) => J._id === t.restaurantId)) == null ? void 0 : w.name;
1219
1219
  await A.minor(async () => await e.publishMenu(t), {
1220
1220
  customId: e.state.menu._id,
1221
1221
  message: `Publishing menu for ${v}`,
1222
1222
  successMessage: `Published to ${v}`
1223
1223
  });
1224
1224
  }
1225
- const O = P(null), M = D(() => l("menu.common.labels.status")), ve = D(() => l("menu.publish.table.status.latest")), be = D(() => l("menu.publish.table.status.outdated")), q = D(() => {
1225
+ const O = P(null), M = N(() => l("menu.common.labels.status")), ve = N(() => l("menu.publish.table.status.latest")), be = N(() => l("menu.publish.table.status.outdated")), q = N(() => {
1226
1226
  const t = h.value.toLowerCase(), v = e.state.menu.updatedAt;
1227
1227
  return e.state.restaurants.filter((w) => {
1228
- var G;
1229
- return !O.value || ((G = O.value) == null ? void 0 : G.includes(w._id));
1228
+ var J;
1229
+ return !O.value || ((J = O.value) == null ? void 0 : J.includes(w._id));
1230
1230
  }).map((w) => ({
1231
1231
  ...w,
1232
1232
  displayName: a(w._id, w.name),
@@ -1237,14 +1237,14 @@ const tt = {
1237
1237
  },
1238
1238
  status: v === w.updatedAt ? "latest" : "outdated",
1239
1239
  [M.value]: v === w.updatedAt ? ve.value : be.value
1240
- })).filter((w) => Ee(w, oe.value)).filter(({
1240
+ })).filter((w) => ze(w, oe.value)).filter(({
1241
1241
  displayName: w,
1242
- catalog: G
1243
- }) => t ? w.toLowerCase().includes(t) || G.default.toLowerCase().includes(t) || G.takeaway.toLowerCase().includes(t) || G.pickup.toLowerCase().includes(t) : !0);
1242
+ catalog: J
1243
+ }) => t ? w.toLowerCase().includes(t) || J.default.toLowerCase().includes(t) || J.takeaway.toLowerCase().includes(t) || J.pickup.toLowerCase().includes(t) : !0);
1244
1244
  }), oe = P({
1245
1245
  logic: "AND",
1246
1246
  rules: []
1247
- }), Me = D(() => [{
1247
+ }), Me = N(() => [{
1248
1248
  type: "string",
1249
1249
  key: M.value,
1250
1250
  entity: "menu",
@@ -1290,28 +1290,28 @@ const tt = {
1290
1290
  }), Te(() => {
1291
1291
  L.value != null && (clearInterval(L.value), L.value = null);
1292
1292
  }), (t, v) => {
1293
- const w = $("FmChip"), G = $("FmSpacer"), K = $("FmButton"), de = $("FmBadge"), Ae = $("FmSearch"), De = $("FmTable"), Ne = $("FmListItem"), Re = $("FmList");
1293
+ const w = $("FmChip"), J = $("FmSpacer"), K = $("FmButton"), de = $("FmBadge"), Ae = $("FmSearch"), Ne = $("FmTable"), De = $("FmListItem"), Re = $("FmList");
1294
1294
  return y(), F(j, null, [f("div", Kt, [f("div", Yt, [f("div", Ht, [f("div", qt, T(c(l)("menu.publish.title")), 1)]), b(w, {
1295
1295
  label: d.value,
1296
1296
  class: "xs:hidden text-fm-color-primary bg-fm-color-system-warning-100"
1297
- }, null, 8, ["label"]), b(G), f("div", Gt, [b(K, {
1297
+ }, null, 8, ["label"]), b(J), f("div", Jt, [b(K, {
1298
1298
  disabled: S.value,
1299
1299
  label: c(l)("menu.publish.actions.refresh"),
1300
1300
  variant: "secondary",
1301
1301
  onClick: v[0] || (v[0] = () => $e())
1302
- }, null, 8, ["disabled", "label"])]), f("div", Jt, [b(Ot, {
1302
+ }, null, 8, ["disabled", "label"])]), f("div", Gt, [b(Ot, {
1303
1303
  progress: ae.value,
1304
1304
  restaurants: q.value,
1305
1305
  onPublishMenu: v[1] || (v[1] = (I) => re(I))
1306
1306
  }, {
1307
- default: z(({
1307
+ default: E(({
1308
1308
  trigger: I
1309
1309
  }) => [c(e).runningPublishJob !== null ? (y(), Y(de, {
1310
1310
  key: 0,
1311
1311
  variant: "critical",
1312
1312
  value: 1
1313
1313
  }, {
1314
- default: z(() => [b(K, {
1314
+ default: E(() => [b(K, {
1315
1315
  variant: "secondary",
1316
1316
  disabled: S.value,
1317
1317
  label: c(l)("menu.publish.actions.publish_progress"),
@@ -1337,7 +1337,7 @@ const tt = {
1337
1337
  modelValue: O.value,
1338
1338
  "onUpdate:modelValue": v[4] || (v[4] = (I) => O.value = I)
1339
1339
  }, {
1340
- "append-right": z(() => [b(c(Le), {
1340
+ "append-right": E(() => [b(c(Le), {
1341
1341
  modelValue: oe.value,
1342
1342
  "onUpdate:modelValue": v[3] || (v[3] = (I) => oe.value = I),
1343
1343
  attributes: Me.value
@@ -1351,10 +1351,10 @@ const tt = {
1351
1351
  placeholder: c(l)("menu.publish.table.search.placeholder")
1352
1352
  }, null, 8, ["modelValue", "placeholder"])]), q.value.length > 0 ? (y(), F(j, {
1353
1353
  key: 0
1354
- }, [b(Qe, {
1354
+ }, [b(We, {
1355
1355
  class: "xs:hidden block"
1356
1356
  }, {
1357
- default: z(() => [b(De, {
1357
+ default: E(() => [b(Ne, {
1358
1358
  modelValue: i.value,
1359
1359
  "onUpdate:modelValue": v[6] || (v[6] = (I) => i.value = I),
1360
1360
  "get-row-id": (I) => I._id,
@@ -1374,7 +1374,7 @@ const tt = {
1374
1374
  class: "flex-col flex-1 min-h-0 overflow-auto xs:flex hidden w-full pb-64",
1375
1375
  separator: ""
1376
1376
  }, {
1377
- default: z(() => [(y(!0), F(j, null, Q(q.value, (I) => (y(), Y(Ne, {
1377
+ default: E(() => [(y(!0), F(j, null, Q(q.value, (I) => (y(), Y(De, {
1378
1378
  key: I._id,
1379
1379
  label: I.displayName,
1380
1380
  style: {
@@ -1382,7 +1382,7 @@ const tt = {
1382
1382
  },
1383
1383
  onClick: () => u(I)
1384
1384
  }, {
1385
- default: z(() => [f("div", Xt, [f("div", Zt, [f("div", el, T(m(I.updatedAt)), 1), b(p, {
1385
+ default: E(() => [f("div", Xt, [f("div", Zt, [f("div", el, T(m(I.updatedAt)), 1), b(p, {
1386
1386
  row: I
1387
1387
  }, null, 8, ["row"])]), f("div", tl, [f("div", ll, T(I.displayName), 1), f("div", al, [f("div", null, "Default: " + T(I.catalog.default), 1), f("div", null, "POS takeaway: " + T(I.catalog.takeaway), 1), f("div", null, "Pickup: " + T(I.catalog.pickup), 1)])])]), f("div", sl, [o.value && I.revertConfig ? (y(), Y(K, {
1388
1388
  key: 0,