@feedmepos/mf-menu 0.32.17 → 0.32.18-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 (82) hide show
  1. package/dist/App-Cfl37TTw.js +152661 -0
  2. package/dist/{Catalog-ChlP8Cid.js → Catalog-Yxsb-D33.js} +47 -52
  3. package/dist/{Category-CHs96ibF.js → Category-0vJH8Ct0.js} +86 -92
  4. package/dist/{Category-B1tAJpNd.js → Category-qp0wI14I.js} +25 -26
  5. package/dist/{CookingGuide-mEvca-0v.js → CookingGuide-EpAr5F5U.js} +139 -143
  6. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bk26jQI7.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CkyD0sdI.js} +14 -16
  7. package/dist/{Group-Ye2IIY52.js → Group-B3W9iSbO.js} +5 -5
  8. package/dist/{Group-Co2Vf4Lw.js → Group-DLCh0fDU.js} +1 -1
  9. package/dist/{Group.vue_vue_type_script_setup_true_lang-BcxSbvJS.js → Group.vue_vue_type_script_setup_true_lang-Bzy_hXDv.js} +176 -186
  10. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D1f8VG-n.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BFaAXp7r.js} +81 -88
  11. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Jv6iJlg9.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CxP8lDD0.js} +2502 -2508
  12. package/dist/{Ingredient-BgnW8sWo.js → Ingredient-CVLMr_YB.js} +102 -105
  13. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-8ziHcUiK.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CdTC5ykI.js} +1058 -1059
  14. package/dist/{MenuSetting-GEngjeC8.js → MenuSetting-Blpi1vSd.js} +58 -61
  15. package/dist/{PrintRoute-BSlUQT7g.js → PrintRoute-BS7PPPkE.js} +49 -52
  16. package/dist/{Product-DNg_BUuV.js → Product-DDeNKQ7u.js} +1 -1
  17. package/dist/{Product.vue_vue_type_script_setup_true_lang-Cehy2oy-.js → Product.vue_vue_type_script_setup_true_lang-rmv8m4_D.js} +286 -298
  18. package/dist/{ProductInternalTools-B5A67yxH.js → ProductInternalTools-CVuothk9.js} +45 -46
  19. package/dist/{Products-DCsxmTPB.js → Products-BIvsHKEt.js} +111 -116
  20. package/dist/{Publish-Cst0Ll6T.js → Publish-CDADU3Pp.js} +154 -159
  21. package/dist/{Recipe-DupS3SQT.js → Recipe-CMhW7e_z.js} +40 -43
  22. package/dist/{Scheduler-BcThU1M6.js → Scheduler-BpxunKBV.js} +7 -7
  23. package/dist/{ServingSequence-CT3THBH6.js → ServingSequence-BQVuYyAB.js} +54 -58
  24. package/dist/{Setting-Dxh8E3no.js → Setting-Dj0yyP37.js} +63 -66
  25. package/dist/{Subcategory-DhJEzofz.js → Subcategory-BH4DDZM4.js} +72 -76
  26. package/dist/{Takeaway-DSC7U4Jk.js → Takeaway-CGJBZ_sJ.js} +1 -1
  27. package/dist/{Takeaway-B8BSSKNj.js → Takeaway-DifOudVE.js} +20 -21
  28. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BLpiJlk2.js → Takeaway.vue_vue_type_script_setup_true_lang-D-R5_S5G.js} +59 -64
  29. package/dist/{Unit-joU7vZZu.js → Unit-DXDox2Ut.js} +8 -8
  30. package/dist/{Variant-D8YjRJ6N.js → Variant-DbJVwgm5.js} +75 -78
  31. package/dist/{_id_-Bd9uo1WW.js → _id_-RFYwWjbM.js} +34 -38
  32. package/dist/{app-BNrAos5Z.js → app-Z0KWH9-d.js} +74 -335
  33. package/dist/app.js +4 -5
  34. package/dist/apps/mf-menu/src/app.d.ts +1 -2
  35. package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +1 -0
  36. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  37. package/dist/assets/{linked-status-DbjzbFTw.js → linked-status-CkmoJAm-.js} +2 -2
  38. package/dist/assets/{menu-export-D_oNY_wi.js → menu-export-DcINiK28.js} +3 -3
  39. package/dist/assets/{override-menu-CIU7U1_4.js → override-menu-PUKiu-df.js} +2 -2
  40. package/dist/assets/{validate-menu-kuOxuwG9.js → validate-menu-CcqiRhNT.js} +2 -2
  41. package/dist/{catalogSetting-BHgsBDTl.js → catalogSetting-Bf66H-j7.js} +1 -1
  42. package/dist/dayjs.min-DNPTnUFp.js +6 -0
  43. package/dist/{jszip.min-7SsHzD5O.js → jszip.min-CO2_Gf69.js} +545 -545
  44. package/dist/{menu-Cd4NbFVq.js → menu-Brxar171.js} +1 -1
  45. package/dist/mf-menu.css +1 -1
  46. package/dist/{scheduler-B6OokVIA.js → scheduler-CqdIiE8G.js} +56 -60
  47. package/dist/{toExcel-BZkbXlHv.js → toExcel-CRJIU0NC.js} +2 -2
  48. package/dist/{unit-D6QOkMoM.js → unit-wYPYkm33.js} +98 -105
  49. package/package.json +1 -1
  50. package/dist/App-BiSEuDkd.js +0 -13484
  51. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-C_SjdLpO.js +0 -161
  52. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
  53. package/dist/LinkProductSideSheet-DFDYEUBh.js +0 -687
  54. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +0 -69
  55. package/dist/RuleView.vue_vue_type_script_setup_true_lang-BeesK2ym.js +0 -3285
  56. package/dist/TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js +0 -20
  57. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-C3qXnZlz.js +0 -399
  58. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CMe76XvZ.js +0 -6011
  59. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  60. package/dist/app-5fxKLAzS.js +0 -8163
  61. package/dist/app-nTzkERJW.js +0 -68
  62. package/dist/catalog-BO2nXwe5.js +0 -199
  63. package/dist/category-CuG3DsGL.js +0 -156
  64. package/dist/check-C9mY6LiX.js +0 -9
  65. package/dist/createComponentProgrammatically-Bt2rn1IQ.js +0 -11
  66. package/dist/currency-DxC5zyZB.js +0 -7
  67. package/dist/dayjs.min-BvFUSPWD.js +0 -6
  68. package/dist/discardConfirm-BHni0LNu.js +0 -28
  69. package/dist/index-B0nhvuxR.js +0 -273
  70. package/dist/index-C2zPvt64.js +0 -239
  71. package/dist/index-C36JQix-.js +0 -246
  72. package/dist/index-CisutoS9.js +0 -156
  73. package/dist/index.vue_vue_type_script_setup_true_lang-DCBYExNb.js +0 -109064
  74. package/dist/item-K01xd1Z0.js +0 -6868
  75. package/dist/menuV2-DKE-xanq.js +0 -1052
  76. package/dist/object-DVUNCr7w.js +0 -16
  77. package/dist/priceTier-Beavb91W.js +0 -87
  78. package/dist/search-BAPEUu1R.js +0 -15
  79. package/dist/string-DpfFixWH.js +0 -4
  80. package/dist/subcategory-DnslmmRD.js +0 -148
  81. package/dist/tooltip-B5BiPMx9.js +0 -32
  82. package/dist/vuedraggable-CK8z7qA8.js +0 -1728
@@ -1,61 +1,56 @@
1
- import { defineComponent as W, ref as P, computed as N, onMounted as ie, resolveComponent as U, createElementBlock as M, openBlock as C, createVNode as p, createElementVNode as i, toDisplayString as z, unref as d, Fragment as H, renderList as q, createBlock as j, watch as de, withCtx as E, normalizeClass as re, createCommentVNode as X, createTextVNode as me, mergeProps as Ve, normalizeStyle as Ie, renderSlot as Pe, withModifiers as te, h as R, onUnmounted as Me } from "vue";
2
- import { D as L } from "./dayjs.min-BvFUSPWD.js";
1
+ import { defineComponent as W, ref as P, computed as N, onMounted as ie, resolveComponent as U, createElementBlock as M, openBlock as C, createVNode as p, createElementVNode as i, toDisplayString as z, unref as d, Fragment as H, renderList as G, createBlock as K, watch as de, withCtx as E, normalizeClass as re, createCommentVNode as Z, createTextVNode as me, mergeProps as Ve, normalizeStyle as Ie, renderSlot as Pe, withModifiers as te, h as R, onUnmounted as Me } from "vue";
2
+ import { D as L } from "./dayjs.min-DNPTnUFp.js";
3
3
  import { useRouter as $e } from "vue-router";
4
- import { O as Ue, b as Ae } from "./app-5fxKLAzS.js";
5
- import { B as Be, H as De, G as he, ac as Te, A as G, u as be, I as pe, J as Re, a4 as Oe } from "./index.vue_vue_type_script_setup_true_lang-DCBYExNb.js";
6
- import { useI18n as Z, useCoreStore as Ne, RestaurantSelector as Ee } from "@feedmepos/mf-common";
7
- import { useSnackbar as ce, useDialogChild as Le, useProxiedModel as ze, useDialog as _e, FmButtonVariant as fe, components as Q } from "@feedmepos/ui-library";
8
- import { _ as He } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
9
- import { _ as Je } from "./app-BNrAos5Z.js";
10
- import { a as Ye, w as Ke } from "./tooltip-B5BiPMx9.js";
11
- import { u as ge } from "./discardConfirm-BHni0LNu.js";
12
- import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ import { i as Ue, j as Ae, a as he, W as Be, X as De, Y as be, e as q, u as ge, F as _e, c as pe, n as Te, Z as Re, $ as Oe, _ as Ne, a0 as Ee, a1 as Le } from "./App-Cfl37TTw.js";
5
+ import { useI18n as Q, useCoreStore as ze, RestaurantSelector as He } from "@feedmepos/mf-common";
6
+ import { useSnackbar as ce, useDialogChild as Je, useProxiedModel as Ye, useDialog as ye, FmButtonVariant as fe, components as X } from "@feedmepos/ui-library";
7
+ import { _ as je } from "./app-Z0KWH9-d.js";
13
8
  function ke(T) {
14
9
  return T ? L(T).format("DD/MM/YY HH:mm") : "-";
15
10
  }
16
- function je(T, F, l) {
17
- const g = (n, x = !1) => {
11
+ function Ke(T, F, l) {
12
+ const _ = (n, x = !1) => {
18
13
  var u;
19
- return n === void 0 && !x ? "-" : ((u = l.find((_) => _.value === (n || null))) == null ? void 0 : u.label) || "-";
14
+ return n === void 0 && !x ? "-" : ((u = l.find((g) => g.value === (n || null))) == null ? void 0 : u.label) || "-";
20
15
  };
21
16
  return T.map((n) => {
22
17
  var e;
23
- const x = (e = F.find(({ _id: b }) => b === n._id)) == null ? void 0 : e.posVersion, u = !!x && !!Be.Pos.canUse({ feature: De.F_FEATURE.enum.taxAndServiceChargeV4, posVersion: x }), _ = g(n.catalogId);
18
+ const x = (e = F.find(({ _id: b }) => b === n._id)) == null ? void 0 : e.posVersion, u = !!x && !!Ue.Pos.canUse({ feature: Ae.F_FEATURE.enum.taxAndServiceChargeV4, posVersion: x }), g = _(n.catalogId);
24
19
  return {
25
20
  ...n,
26
- _default: _,
27
- _posTakeaway: n.takeawayCatalog ? g(n.takeawayCatalog) : _,
28
- _additionalCatalogs: (n.additionalCatalogs || []).map((b) => g(b)),
21
+ _default: g,
22
+ _posTakeaway: n.takeawayCatalog ? _(n.takeawayCatalog) : g,
23
+ _additionalCatalogs: (n.additionalCatalogs || []).map((b) => _(b)),
29
24
  _lastUpdate: ke(n.updatedAt),
30
- _pickup: u ? g(n.pickupCatalog, !0) : "-",
25
+ _pickup: u ? _(n.pickupCatalog, !0) : "-",
31
26
  _canUsePickup: u,
32
27
  _posVersion: x || "-"
33
28
  };
34
29
  });
35
30
  }
36
- const Ge = {
31
+ const qe = {
37
32
  key: 0,
38
33
  class: "flex items-center justify-center"
39
- }, qe = {
34
+ }, Ge = {
40
35
  key: 1,
41
36
  class: "space-y-16"
42
- }, We = { class: "text-fm-color-typo-secondary" }, Qe = { class: "space-y-4" }, Xe = /* @__PURE__ */ W({
37
+ }, We = { class: "text-fm-color-typo-secondary" }, Xe = { class: "space-y-4" }, Ze = /* @__PURE__ */ W({
43
38
  __name: "RevertDialog",
44
39
  props: {
45
40
  restaurant: {}
46
41
  },
47
42
  setup(T) {
48
- const F = T, l = ce(), { custom: g } = he(l), n = P(!1), x = P(null);
43
+ const F = T, l = ce(), { custom: _ } = he(l), n = P(!1), x = P(null);
49
44
  async function u() {
50
- await g(
45
+ await _(
51
46
  async () => {
52
47
  var c;
53
- x.value = await Te.readMenuById(((c = F.restaurant.revertConfig) == null ? void 0 : c._id) || "");
48
+ x.value = await De.readMenuById(((c = F.restaurant.revertConfig) == null ? void 0 : c._id) || "");
54
49
  },
55
50
  { isLoading: n }
56
51
  );
57
52
  }
58
- const _ = N(() => {
53
+ const g = N(() => {
59
54
  var c;
60
55
  return [
61
56
  { label: "Main", value: null },
@@ -64,19 +59,19 @@ const Ge = {
64
59
  value: y._id
65
60
  }))
66
61
  ];
67
- }), { t: e } = Z(), b = N(() => {
62
+ }), { t: e } = Q(), b = N(() => {
68
63
  var s;
69
64
  const c = F.restaurant.revertConfig;
70
65
  if (!c) return [];
71
- const y = je(
66
+ const y = Ke(
72
67
  [
73
68
  {
74
69
  ...c,
75
70
  catalogId: c.catalogId || null
76
71
  }
77
72
  ],
78
- Ne().restaurants.value,
79
- _.value
73
+ ze().restaurants.value,
74
+ g.value
80
75
  )[0];
81
76
  return [
82
77
  { label: e("menu.revert.labels.restaurant"), value: F.restaurant.name },
@@ -94,15 +89,15 @@ const Ge = {
94
89
  ];
95
90
  });
96
91
  ie(async () => u());
97
- const { emitData: a } = Le();
92
+ const { emitData: a } = Je();
98
93
  return (c, y) => {
99
94
  const s = U("FmCircularProgress");
100
- return n.value ? (C(), M("div", Ge, [
95
+ return n.value ? (C(), M("div", qe, [
101
96
  p(s, { size: "lg" })
102
- ])) : (C(), M("div", qe, [
97
+ ])) : (C(), M("div", Ge, [
103
98
  i("div", We, z(d(e)("menu.revert.description", { name: F.restaurant.name })), 1),
104
- i("div", Qe, [
105
- (C(!0), M(H, null, q(b.value, (f) => (C(), j(Ye, {
99
+ i("div", Xe, [
100
+ (C(!0), M(H, null, G(b.value, (f) => (C(), K(Be, {
106
101
  key: f.label,
107
102
  name: f.label,
108
103
  value: f.value || "--"
@@ -111,7 +106,7 @@ const Ge = {
111
106
  ]));
112
107
  };
113
108
  }
114
- }), Ze = {
109
+ }), Qe = {
115
110
  class: "break-all fm-typo-en-body-lg-400 line-clamp-1"
116
111
  }, et = {
117
112
  class: "flex flex-col"
@@ -127,36 +122,36 @@ const Ge = {
127
122
  setup(T, {
128
123
  emit: F
129
124
  }) {
130
- const l = T, g = F, n = P([]), x = N(() => l.restaurants.map((s) => ({
125
+ const l = T, _ = F, n = P([]), x = N(() => l.restaurants.map((s) => ({
131
126
  label: s.name,
132
127
  value: s._id
133
- }))), u = P(""), _ = N(() => {
128
+ }))), u = P(""), g = N(() => {
134
129
  const s = Array.isArray(n.value) ? n.value : [], f = s.map((m) => x.value.find((A) => A.value === m)).filter((m) => m !== void 0);
135
130
  let o = [];
136
131
  return u.value ? (o = x.value.filter((m) => m.label.toLowerCase().includes(u.value.toLowerCase()) && !s.includes(m.value)), [...f, ...o]) : (o = x.value.filter((m) => !s.includes(m.value)), [...f, ...o]);
137
- }), e = N(() => n.value.length > 0 && n.value.length === _.value.length), b = N(() => n.value.filter((s) => _.value.some((f) => f.value === s))), a = () => {
132
+ }), e = N(() => n.value.length > 0 && n.value.length === g.value.length), b = N(() => n.value.filter((s) => g.value.some((f) => f.value === s))), a = () => {
138
133
  const s = n.value.filter((f) => !b.value.includes(f));
139
- e.value === !0 ? c(s) : c(_.value.map((f) => f.value));
134
+ e.value === !0 ? c(s) : c(g.value.map((f) => f.value));
140
135
  }, c = (s) => {
141
136
  n.value = s;
142
137
  };
143
138
  de(n, (s) => {
144
- g("update:modelValue", s);
139
+ _("update:modelValue", s);
145
140
  });
146
141
  function y(s) {
147
142
  return l.restaurants.filter((f) => s.includes(f._id)).map((f) => f.name);
148
143
  }
149
144
  return (s, f) => {
150
145
  const o = U("FmSearch"), m = U("FmCheckbox"), A = U("FmSelect");
151
- return C(), j(A, {
146
+ return C(), K(A, {
152
147
  modelValue: n.value,
153
148
  "onUpdate:modelValue": f[1] || (f[1] = (B) => n.value = B),
154
149
  placeholder: "Select Restaurant",
155
- items: _.value,
150
+ items: g.value,
156
151
  multiselect: !0,
157
152
  "hide-chips": !0
158
153
  }, {
159
- default: E(() => [i("p", Ze, z(n.value.length === l.restaurants.length ? "All restaurants" : y(n.value).join(", ")), 1)]),
154
+ default: E(() => [i("p", Qe, z(n.value.length === l.restaurants.length ? "All restaurants" : y(n.value).join(", ")), 1)]),
160
155
  "menu-wrapper": E(() => [i("div", et, [p(o, {
161
156
  class: "py-8",
162
157
  modelValue: u.value,
@@ -169,7 +164,7 @@ const Ge = {
169
164
  value: "1",
170
165
  indeterminate: n.value.length > 0,
171
166
  "onUpdate:modelValue": a
172
- }, null, 8, ["model-value", "indeterminate"]), (C(!0), M(H, null, q(_.value, (B, Y) => (C(), M("div", {
167
+ }, null, 8, ["model-value", "indeterminate"]), (C(!0), M(H, null, G(g.value, (B, Y) => (C(), M("div", {
173
168
  key: Y
174
169
  }, [p(m, {
175
170
  "model-value": n.value,
@@ -194,7 +189,7 @@ const Ge = {
194
189
  cellSize: { default: "md" }
195
190
  },
196
191
  setup(T) {
197
- const { t: F } = Z(), l = () => [
192
+ const { t: F } = Q(), l = () => [
198
193
  F("menu.publish.scheduler.calender.day.sun"),
199
194
  F("menu.publish.scheduler.calender.day.mon"),
200
195
  F("menu.publish.scheduler.calender.day.tue"),
@@ -202,8 +197,8 @@ const Ge = {
202
197
  F("menu.publish.scheduler.calender.day.thu"),
203
198
  F("menu.publish.scheduler.calender.day.fri"),
204
199
  F("menu.publish.scheduler.calender.day.sat")
205
- ], g = L(), n = (u, _) => typeof u == "function" ? u(..._) : u, x = (u, _) => {
206
- if (!_) return;
200
+ ], _ = L(), n = (u, g) => typeof u == "function" ? u(...g) : u, x = (u, g) => {
201
+ if (!g) return;
207
202
  const e = {
208
203
  "fm-calendar__cell--selected": !1,
209
204
  "fm-calendar__cell--selected-start": !1,
@@ -211,28 +206,28 @@ const Ge = {
211
206
  "fm-calendar__cell--selected-between": !1
212
207
  };
213
208
  let b;
214
- if (typeof _ == "function") {
215
- const { status: a, className: c } = _(u);
209
+ if (typeof g == "function") {
210
+ const { status: a, className: c } = g(u);
216
211
  a && (e["fm-calendar__cell--selected"] = a.isSelected ?? !1, e["fm-calendar__cell--selected-start"] = a.isStart ?? !1, e["fm-calendar__cell--selected-end"] = a.isEnd ?? !1, e["fm-calendar__cell--selected-between"] = a.isBetween ?? !1), b = c ?? "";
217
212
  } else {
218
- const { status: a, className: c } = _;
213
+ const { status: a, className: c } = g;
219
214
  a && (e["fm-calendar__cell--selected"] = n(a.isSelected, [u]) ?? !1, e["fm-calendar__cell--selected-start"] = n(a.isStart, [u]) ?? !1, e["fm-calendar__cell--selected-end"] = n(a.isEnd, [u]) ?? !1, e["fm-calendar__cell--selected-between"] = n(a.isBetween, [u]) ?? !1), b = n(c, [u]) ?? "";
220
215
  }
221
216
  return [e, b];
222
217
  };
223
- return (u, _) => (C(), M("div", null, [
218
+ return (u, g) => (C(), M("div", null, [
224
219
  i("div", at, [
225
- (C(!0), M(H, null, q(l(), (e) => (C(), M("div", {
220
+ (C(!0), M(H, null, G(l(), (e) => (C(), M("div", {
226
221
  key: e,
227
222
  class: re(["fm-calendar__cell", `fm-calendar__cell__${u.cellSize}`])
228
223
  }, z(e), 3))), 128))
229
224
  ]),
230
225
  i("div", null, [
231
- (C(!0), M(H, null, q(u.days, (e, b) => (C(), M("div", {
226
+ (C(!0), M(H, null, G(u.days, (e, b) => (C(), M("div", {
232
227
  key: b,
233
228
  class: "fm-calendar__row fm-typo-en-body-md-400"
234
229
  }, [
235
- (C(!0), M(H, null, q(e, (a) => (C(), M("div", {
230
+ (C(!0), M(H, null, G(e, (a) => (C(), M("div", {
236
231
  id: `${a.date.toISOString()}`,
237
232
  key: a.date.date(),
238
233
  class: re(["fm-calendar__cell", [
@@ -241,7 +236,7 @@ const Ge = {
241
236
  !a.isCurrentMonth && "fm-calendar__cell--not-current-month"
242
237
  ]])
243
238
  }, [
244
- a.date.isSame(d(g), "day") && a.isCurrentMonth ? (C(), M("div", nt)) : X("", !0),
239
+ a.date.isSame(d(_), "day") && a.isCurrentMonth ? (C(), M("div", nt)) : Z("", !0),
245
240
  a.isCurrentMonth ? (C(), M("button", {
246
241
  key: 1,
247
242
  class: "fm-calendar__cell__button",
@@ -251,13 +246,13 @@ const Ge = {
251
246
  var y;
252
247
  return (y = u.onCellMouseOver) == null ? void 0 : y.call(u, a.date);
253
248
  }
254
- }, z(a.date.date()), 41, st)) : X("", !0)
249
+ }, z(a.date.date()), 41, st)) : Z("", !0)
255
250
  ], 10, lt))), 128))
256
251
  ]))), 128))
257
252
  ])
258
253
  ]));
259
254
  }
260
- }), ve = /* @__PURE__ */ ye(ot, [["__scopeId", "data-v-47484312"]]), ut = { class: "fm-typo-en-body-md-600" }, rt = {
255
+ }), ve = /* @__PURE__ */ be(ot, [["__scopeId", "data-v-47484312"]]), ut = { class: "fm-typo-en-body-md-600" }, rt = {
261
256
  id: "in-calendar-app",
262
257
  class: "h-[264px] overflow-y-auto w-[160px]"
263
258
  }, it = ["onVnodeMounted"], dt = ["onVnodeMounted"], ae = /* @__PURE__ */ W({
@@ -270,16 +265,16 @@ const Ge = {
270
265
  },
271
266
  emits: ["update:modelValue"],
272
267
  setup(T, { emit: F }) {
273
- const { t: l } = Z(), g = T, n = F, x = P(!1), u = N(() => {
274
- const a = L(g.min).startOf("year"), c = L(g.max).startOf("year"), y = c.diff(a, "year"), s = [];
268
+ const { t: l } = Q(), _ = T, n = F, x = P(!1), u = N(() => {
269
+ const a = L(_.min).startOf("year"), c = L(_.max).startOf("year"), y = c.diff(a, "year"), s = [];
275
270
  for (let f = 0; f <= y; f++)
276
271
  s.push(c.subtract(f, "year"));
277
272
  return s;
278
- }), _ = (a) => {
279
- const c = L(g.min).startOf("month"), y = L(g.max).startOf("month");
273
+ }), g = (a) => {
274
+ const c = L(_.min).startOf("month"), y = L(_.max).startOf("month");
280
275
  return a.get("year") === c.get("year") ? a.startOf("month").isAfter(c) || a.get("month") === c.get("month") : a.get("year") === y.get("year") ? a.startOf("month").isBefore(y) || a.get("month") === y.get("month") : !0;
281
276
  }, e = (a) => {
282
- const c = L(g.min).startOf("month"), y = L(g.max).startOf("month");
277
+ const c = L(_.min).startOf("month"), y = L(_.max).startOf("month");
283
278
  if (c.get("year") === a.get("year")) {
284
279
  n("update:modelValue", c);
285
280
  return;
@@ -300,7 +295,7 @@ const Ge = {
300
295
  }
301
296
  return (a, c) => {
302
297
  const y = U("FmIcon"), s = U("FmMenuItem"), f = U("FmMenu");
303
- return C(), j(f, {
298
+ return C(), K(f, {
304
299
  trigger: "click",
305
300
  onMenuChanged: c[0] || (c[0] = (o) => x.value = o)
306
301
  }, {
@@ -311,10 +306,10 @@ const Ge = {
311
306
  i("div", ut, [
312
307
  a.picker === "month" ? (C(), M(H, { key: 0 }, [
313
308
  me(z(a.modelValue.format(d(l)("menu.publish.scheduler.date.monthFormat"))), 1)
314
- ], 64)) : X("", !0),
309
+ ], 64)) : Z("", !0),
315
310
  a.picker === "year" ? (C(), M(H, { key: 1 }, [
316
311
  me(z(a.modelValue.format(d(l)("menu.publish.scheduler.date.yearFormat"))), 1)
317
- ], 64)) : X("", !0)
312
+ ], 64)) : Z("", !0)
318
313
  ]),
319
314
  p(y, {
320
315
  name: x.value ? "expand_less" : "expand_more",
@@ -325,7 +320,7 @@ const Ge = {
325
320
  ]),
326
321
  default: E(() => [
327
322
  i("ul", rt, [
328
- a.picker === "month" ? (C(!0), M(H, { key: 0 }, q(Array.from(Array(12), (o, m) => a.modelValue.month(m)), (o) => (C(), M("li", {
323
+ a.picker === "month" ? (C(!0), M(H, { key: 0 }, G(Array.from(Array(12), (o, m) => a.modelValue.month(m)), (o) => (C(), M("li", {
329
324
  key: o.format(d(l)("menu.publish.scheduler.date.monthFormat")),
330
325
  onVnodeMounted: (m) => b(
331
326
  m,
@@ -333,13 +328,13 @@ const Ge = {
333
328
  )
334
329
  }, [
335
330
  p(s, {
336
- disabled: !_(o),
331
+ disabled: !g(o),
337
332
  "model-value": a.modelValue.format(d(l)("menu.publish.scheduler.date.monthFormat")) === o.format(d(l)("menu.publish.scheduler.date.monthFormat")),
338
333
  label: o.format(d(l)("menu.publish.scheduler.date.monthFormat")),
339
334
  "onUpdate:modelValue": (m) => n("update:modelValue", o)
340
335
  }, null, 8, ["disabled", "model-value", "label", "onUpdate:modelValue"])
341
- ], 8, it))), 128)) : X("", !0),
342
- a.picker === "year" ? (C(!0), M(H, { key: 1 }, q(u.value, (o) => (C(), M("li", {
336
+ ], 8, it))), 128)) : Z("", !0),
337
+ a.picker === "year" ? (C(!0), M(H, { key: 1 }, G(u.value, (o) => (C(), M("li", {
343
338
  key: o.format(d(l)("menu.publish.scheduler.date.yearFormat")),
344
339
  onVnodeMounted: (m) => b(
345
340
  m,
@@ -351,14 +346,14 @@ const Ge = {
351
346
  label: o.format(d(l)("menu.publish.scheduler.date.yearFormat")),
352
347
  "onUpdate:modelValue": (m) => e(o)
353
348
  }, null, 8, ["model-value", "label", "onUpdate:modelValue"])
354
- ], 8, dt))), 128)) : X("", !0)
349
+ ], 8, dt))), 128)) : Z("", !0)
355
350
  ])
356
351
  ]),
357
352
  _: 1
358
353
  });
359
354
  };
360
355
  }
361
- }), ct = { class: "p-12 space-y-4 w-[552px]" }, mt = { class: "w-max" }, pt = { class: "flex space-x-24" }, ft = { class: "flex items-center py-8 space-x-16" }, vt = { class: "flex space-x-4" }, ht = { class: "flex items-center justify-end py-8 space-x-16" }, bt = { class: "flex space-x-4" }, _t = { class: "flex gap-8 items-center justify-end w-full" }, le = "YYYY-MM-DD", gt = /* @__PURE__ */ W({
356
+ }), ct = { class: "p-12 space-y-4 w-[552px]" }, mt = { class: "w-max" }, pt = { class: "flex space-x-24" }, ft = { class: "flex items-center py-8 space-x-16" }, vt = { class: "flex space-x-4" }, ht = { class: "flex items-center justify-end py-8 space-x-16" }, bt = { class: "flex space-x-4" }, gt = { class: "flex gap-8 items-center justify-end w-full" }, le = "YYYY-MM-DD", _t = /* @__PURE__ */ W({
362
357
  __name: "DateTimePicker",
363
358
  props: {
364
359
  modelValue: {},
@@ -377,25 +372,25 @@ const Ge = {
377
372
  },
378
373
  emits: ["update:schedulerTime"],
379
374
  setup(T, { emit: F }) {
380
- const { t: l } = Z(), g = T, n = F, x = ze(g, "modelValue"), u = P({
375
+ const { t: l } = Q(), _ = T, n = F, x = Ye(_, "modelValue"), u = P({
381
376
  hours: new Date(x.value).getHours() % 12 || 12,
382
377
  minutes: new Date(x.value).getMinutes(),
383
378
  period: new Date(x.value).getHours() >= 12 ? "PM" : "AM"
384
379
  /* AM */
385
- }), _ = P(L(x.value, le)), e = P(!1);
380
+ }), g = P(L(x.value, le)), e = P(!1);
386
381
  function b(k, w) {
387
382
  const [r, v, S] = k.split("-").map(Number), D = new Date(r, v - 1, S);
388
383
  let V = w.hours % 12;
389
384
  return w.period === "PM" && (V += 12), D.setHours(V), D.setMinutes(w.minutes), D.setSeconds(0), D.setMilliseconds(0), D;
390
385
  }
391
386
  const a = () => {
392
- x.value = _.value.format(le);
387
+ x.value = g.value.format(le);
393
388
  const k = b(x.value, u.value);
394
389
  n("update:schedulerTime", k.toISOString()), setTimeout(() => {
395
390
  e.value = !1;
396
391
  }, 0);
397
392
  }, c = () => {
398
- _.value = x.value ? L(x.value) : null, e.value = !1;
393
+ g.value = x.value ? L(x.value) : null, e.value = !1;
399
394
  }, y = (k) => {
400
395
  e.value = k, k || c();
401
396
  }, s = P(L().startOf("month")), f = P(L().startOf("month").add(1, "month")), o = (k, w) => {
@@ -410,13 +405,13 @@ const Ge = {
410
405
  }), S = S.add(1, "day");
411
406
  return D.length > 0 && w.push(D), w.length < 6 && w.push([]), w;
412
407
  }, Y = (k) => {
413
- _.value = k;
408
+ g.value = k;
414
409
  };
415
410
  return (k, w) => {
416
411
  const r = U("FmIcon"), v = U("FmTimeInput"), S = U("FmButton"), D = U("FmPopover");
417
- return C(), j(D, {
412
+ return C(), K(D, {
418
413
  "show-popover": e.value,
419
- "z-index": g.zIndex,
414
+ "z-index": _.zIndex,
420
415
  "exclude-el-from-click-outside": ["in-calendar-app"],
421
416
  onPopoverChanged: y
422
417
  }, {
@@ -460,7 +455,7 @@ const Ge = {
460
455
  p(ve, {
461
456
  "day-cell-class": {
462
457
  status: {
463
- isSelected: (V) => V.isSame(_.value, "date")
458
+ isSelected: (V) => V.isSame(g.value, "date")
464
459
  }
465
460
  },
466
461
  days: m.value,
@@ -497,7 +492,7 @@ const Ge = {
497
492
  p(ve, {
498
493
  "day-cell-class": {
499
494
  status: {
500
- isSelected: (V) => V.isSame(_.value, "date")
495
+ isSelected: (V) => V.isSame(g.value, "date")
501
496
  }
502
497
  },
503
498
  days: A.value,
@@ -515,7 +510,7 @@ const Ge = {
515
510
  },
516
511
  "onUpdate:modelValue": w[6] || (w[6] = (V) => u.value = V)
517
512
  }, null, 8, ["model-value"]),
518
- i("div", _t, [
513
+ i("div", gt, [
519
514
  p(S, {
520
515
  label: d(l)("common.cancel"),
521
516
  size: "md",
@@ -523,7 +518,7 @@ const Ge = {
523
518
  onClick: c
524
519
  }, null, 8, ["label"]),
525
520
  p(S, {
526
- disabled: !_.value,
521
+ disabled: !g.value,
527
522
  label: d(l)("common.confirm"),
528
523
  size: "md",
529
524
  variant: "primary",
@@ -551,13 +546,13 @@ const Ge = {
551
546
  borderRadius: "inherit",
552
547
  textAlign: "right"
553
548
  }));
554
- return (g, n) => (C(), M("div", yt, [
549
+ return (_, n) => (C(), M("div", yt, [
555
550
  i("div", {
556
551
  style: Ie(l.value)
557
552
  }, null, 4)
558
553
  ]));
559
554
  }
560
- }), Ct = /* @__PURE__ */ ye(kt, [["__scopeId", "data-v-709d7500"]]), wt = {
555
+ }), Ct = /* @__PURE__ */ be(kt, [["__scopeId", "data-v-709d7500"]]), wt = {
561
556
  class: "flex items-center gap-24"
562
557
  }, xt = {
563
558
  class: "fm-typo-en-title-md-600"
@@ -579,29 +574,29 @@ const Ge = {
579
574
  emit: l
580
575
  }) {
581
576
  const {
582
- t: g
583
- } = Z(), n = ce(), x = _e(), u = T, _ = {
584
- [G.F_PUBLISH_JOB_STATUS.Enum.PENDING]: {
577
+ t: _
578
+ } = Q(), n = ce(), x = ye(), u = T, g = {
579
+ [q.F_PUBLISH_JOB_STATUS.Enum.PENDING]: {
585
580
  label: "Pending",
586
581
  textColor: "text-fm-color-neutral-gray-300",
587
582
  backgroundColor: "#E0E0DE"
588
583
  },
589
- [G.F_PUBLISH_JOB_STATUS.Enum.RUNNING]: {
584
+ [q.F_PUBLISH_JOB_STATUS.Enum.RUNNING]: {
590
585
  label: "Running",
591
586
  textColor: "text-fm-color-system-warning-300",
592
587
  backgroundColor: "#FFB800"
593
588
  },
594
- [G.F_PUBLISH_JOB_STATUS.Enum.COMPLETED]: {
589
+ [q.F_PUBLISH_JOB_STATUS.Enum.COMPLETED]: {
595
590
  label: "Completed",
596
591
  textColor: "text-fm-color-system-success-300",
597
592
  backgroundColor: "#34C759"
598
593
  },
599
- [G.F_PUBLISH_JOB_STATUS.Enum.FAILED]: {
594
+ [q.F_PUBLISH_JOB_STATUS.Enum.FAILED]: {
600
595
  label: "Failed",
601
596
  textColor: "text-fm-color-system-error-300",
602
597
  backgroundColor: "#FF3B30"
603
598
  }
604
- }, e = be(), b = P(!1), a = (r) => {
599
+ }, e = ge(), b = P(!1), a = (r) => {
605
600
  typeof r == "boolean" ? b.value = r : b.value = !b.value;
606
601
  };
607
602
  F({
@@ -628,7 +623,7 @@ const Ge = {
628
623
  if (o.value !== null)
629
624
  return new Date(o.value).toLocaleString();
630
625
  const S = L(Date.now()).toISOString();
631
- return R(gt, {
626
+ return R(_t, {
632
627
  class: "flex h-full items-center",
633
628
  modelValue: S,
634
629
  "onUpdate:schedulerTime": (D) => {
@@ -650,12 +645,12 @@ const Ge = {
650
645
  }
651
646
  }) : R("div", {
652
647
  class: "flex items-center justify-between"
653
- }, [R("p", {}, r.original.total_restaurants), R(Q.FmMenu, {}, {
654
- "menu-button": () => R(Q.FmIcon, {
648
+ }, [R("p", {}, r.original.total_restaurants), R(X.FmMenu, {}, {
649
+ "menu-button": () => R(X.FmIcon, {
655
650
  name: "info",
656
651
  class: "text-fm-color-neutral-gray-300 cursor-pointer"
657
652
  }),
658
- default: () => w(r.original.selectedRestaurantIds).map((S) => R(Q.FmMenuItem, {
653
+ default: () => w(r.original.selectedRestaurantIds).map((S) => R(X.FmMenuItem, {
659
654
  key: S,
660
655
  label: S
661
656
  }))
@@ -669,14 +664,14 @@ const Ge = {
669
664
  const v = r.original.status;
670
665
  return r.original.date === "new" ? R("div", {
671
666
  class: "flex justify-end items-center gap-8"
672
- }, [R(Q.FmButton, {
667
+ }, [R(X.FmButton, {
673
668
  variant: "tertiary",
674
669
  prependIcon: "close",
675
670
  textColor: "system-error-300",
676
671
  onClick: () => {
677
672
  o.value = null, B.value = null, m.value = null;
678
673
  }
679
- }), R(Q.FmButton, {
674
+ }), R(X.FmButton, {
680
675
  variant: "tertiary",
681
676
  prependIcon: "check",
682
677
  textColor: "system-success-300",
@@ -697,16 +692,16 @@ const Ge = {
697
692
  }, [R("div", {
698
693
  class: "flex items-center gap-8"
699
694
  }, [R("p", {
700
- class: `fm-typo-en-body-md-400 ${_[v].textColor}`
701
- }, _[v].label), ...v === G.F_PUBLISH_JOB_STATUS.Enum.RUNNING ? [R("p", {
702
- class: `fm-typo-en-body-md-400 ${_[v].textColor}`
695
+ class: `fm-typo-en-body-md-400 ${g[v].textColor}`
696
+ }, g[v].label), ...v === q.F_PUBLISH_JOB_STATUS.Enum.RUNNING ? [R("p", {
697
+ class: `fm-typo-en-body-md-400 ${g[v].textColor}`
703
698
  }, `(${r.original.progress}/${r.original.total_restaurants})`)] : []]), R(Ct, {
704
- bgcolor: _[v].backgroundColor,
705
- completed: v === G.F_PUBLISH_JOB_STATUS.Enum.PENDING ? 0 : v === G.F_PUBLISH_JOB_STATUS.Enum.RUNNING ? Math.floor((r.original.progress ?? 0) / parseInt(r.original.total_restaurants) * 100) : (v === G.F_PUBLISH_JOB_STATUS.Enum.COMPLETED, 100)
706
- })]), R(Q.FmButton, {
699
+ bgcolor: g[v].backgroundColor,
700
+ completed: v === q.F_PUBLISH_JOB_STATUS.Enum.PENDING ? 0 : v === q.F_PUBLISH_JOB_STATUS.Enum.RUNNING ? Math.floor((r.original.progress ?? 0) / parseInt(r.original.total_restaurants) * 100) : (v === q.F_PUBLISH_JOB_STATUS.Enum.COMPLETED, 100)
701
+ })]), R(X.FmButton, {
707
702
  variant: "tertiary",
708
703
  prependIcon: "delete",
709
- disabled: v !== G.F_PUBLISH_JOB_STATUS.Enum.PENDING,
704
+ disabled: v !== q.F_PUBLISH_JOB_STATUS.Enum.PENDING,
710
705
  textColor: "system-error-300",
711
706
  onClick: () => {
712
707
  const D = L(r.original.date).toISOString();
@@ -756,7 +751,7 @@ const Ge = {
756
751
  restaurantIds: f.value
757
752
  }), await e.getNextSchedulerPublish(), o.value = null, f.value = [], m.value = !1, B.value = null, m.value = null);
758
753
  });
759
- const k = ge(() => m.value !== null && m.value === !1, () => {
754
+ const k = _e(() => m.value !== null && m.value === !1, () => {
760
755
  b.value = !1, B.value = null, o.value = null, f.value = [], m.value = null;
761
756
  });
762
757
  function w(r) {
@@ -777,7 +772,7 @@ const Ge = {
777
772
  variant: d(fe).Tertiary,
778
773
  "prepend-icon": "arrow_back",
779
774
  onClick: te(d(k), ["stop"])
780
- }, null, 8, ["variant", "onClick"]), i("p", xt, z(d(g)("menu.publish.actions.publish_progress")), 1)])]),
775
+ }, null, 8, ["variant", "onClick"]), i("p", xt, z(d(_)("menu.publish.actions.publish_progress")), 1)])]),
781
776
  default: E(() => [i("div", null, [p(D, {
782
777
  class: "pb-8",
783
778
  "row-data": [...s.value, B.value].filter(Boolean),
@@ -785,13 +780,13 @@ const Ge = {
785
780
  "shrink-at": !1,
786
781
  pageSize: s.value.length + (B.value ? 1 : 0),
787
782
  "hide-footer": ""
788
- }, null, 8, ["row-data", "pageSize"]), d(e).state.featureFlags.schedulerPublish && !B.value ? (C(), j(S, {
783
+ }, null, 8, ["row-data", "pageSize"]), d(e).state.featureFlags.schedulerPublish && !B.value ? (C(), K(S, {
789
784
  key: 0,
790
785
  variant: d(fe).Plain,
791
786
  "prepend-icon": "add",
792
- label: d(g)("menu.publish.actions.add_scheduler_publish"),
787
+ label: d(_)("menu.publish.actions.add_scheduler_publish"),
793
788
  onClick: v[0] || (v[0] = () => Y())
794
- }, null, 8, ["variant", "label"])) : X("", !0)])]),
789
+ }, null, 8, ["variant", "label"])) : Z("", !0)])]),
795
790
  _: 1
796
791
  }, 8, ["modelValue", "onOn:clickedAway"])], 64);
797
792
  };
@@ -806,7 +801,7 @@ const Ge = {
806
801
  },
807
802
  emits: ["onComplete"],
808
803
  setup(T, { expose: F, emit: l }) {
809
- const { t: g } = Z(), n = T;
804
+ const { t: _ } = Q(), n = T;
810
805
  F({
811
806
  show: y,
812
807
  hide: s
@@ -821,9 +816,9 @@ const Ge = {
821
816
  additionalCatalogs: []
822
817
  };
823
818
  }
824
- const _ = N(() => [
819
+ const g = N(() => [
825
820
  {
826
- label: g("menu.publish.update_catalog_dialog.sections.default.use_default"),
821
+ label: _("menu.publish.update_catalog_dialog.sections.default.use_default"),
827
822
  value: null
828
823
  },
829
824
  ...n.catalogs.map((m) => ({
@@ -832,7 +827,7 @@ const Ge = {
832
827
  }))
833
828
  ]), e = N(() => [
834
829
  {
835
- label: g("menu.publish.update_catalog_dialog.sections.default.use_default"),
830
+ label: _("menu.publish.update_catalog_dialog.sections.default.use_default"),
836
831
  value: null
837
832
  },
838
833
  ...n.catalogs.map((m) => ({
@@ -846,8 +841,8 @@ const Ge = {
846
841
  function s() {
847
842
  a.value = !1;
848
843
  }
849
- const f = ge(
850
- () => !Re.isEqual(c.value, b.value),
844
+ const f = _e(
845
+ () => !Te.isEqual(c.value, b.value),
851
846
  () => {
852
847
  s();
853
848
  }
@@ -857,25 +852,25 @@ const Ge = {
857
852
  }
858
853
  return (m, A) => {
859
854
  const B = U("FmSelect"), Y = U("FmCheckbox"), k = U("FmButton"), w = U("FmSideSheet");
860
- return C(), j(w, {
855
+ return C(), K(w, {
861
856
  modelValue: a.value,
862
857
  "onUpdate:modelValue": A[5] || (A[5] = (r) => a.value = r),
863
858
  "max-width": 560,
864
859
  "onOn:clickedAway": d(f)
865
860
  }, {
866
861
  "side-sheet-header": E(() => [
867
- i("span", Ft, z(d(g)("menu.publish.update_catalog_dialog.title")), 1)
862
+ i("span", Ft, z(d(_)("menu.publish.update_catalog_dialog.title")), 1)
868
863
  ]),
869
864
  "side-sheet-footer": E(() => [
870
865
  i("div", Mt, [
871
866
  p(k, {
872
- label: d(g)("menu.publish.update_catalog_dialog.actions.update"),
867
+ label: d(_)("menu.publish.update_catalog_dialog.actions.update"),
873
868
  size: "lg",
874
869
  variant: "primary",
875
870
  onClick: A[4] || (A[4] = () => o())
876
871
  }, null, 8, ["label"]),
877
872
  p(k, {
878
- label: d(g)("menu.publish.update_catalog_dialog.actions.cancel"),
873
+ label: d(_)("menu.publish.update_catalog_dialog.actions.cancel"),
879
874
  size: "lg",
880
875
  variant: "tertiary",
881
876
  onClick: s
@@ -886,27 +881,27 @@ const Ge = {
886
881
  p(B, {
887
882
  modelValue: b.value.catalogId,
888
883
  "onUpdate:modelValue": A[0] || (A[0] = (r) => b.value.catalogId = r),
889
- items: _.value,
884
+ items: g.value,
890
885
  class: "mb-24",
891
- label: d(g)("menu.publish.update_catalog_dialog.sections.default.label")
886
+ label: d(_)("menu.publish.update_catalog_dialog.sections.default.label")
892
887
  }, null, 8, ["modelValue", "items", "label"]),
893
888
  p(B, {
894
889
  modelValue: b.value.takeawayCatalog,
895
890
  "onUpdate:modelValue": A[1] || (A[1] = (r) => b.value.takeawayCatalog = r),
896
891
  items: e.value,
897
892
  class: "mb-24",
898
- label: d(g)("menu.publish.update_catalog_dialog.sections.pos_takeaway.label")
893
+ label: d(_)("menu.publish.update_catalog_dialog.sections.pos_takeaway.label")
899
894
  }, null, 8, ["modelValue", "items", "label"]),
900
895
  p(B, {
901
896
  modelValue: b.value.pickupCatalog,
902
897
  "onUpdate:modelValue": A[2] || (A[2] = (r) => b.value.pickupCatalog = r),
903
898
  items: e.value,
904
- label: d(g)("menu.publish.update_catalog_dialog.sections.pickup.label")
899
+ label: d(_)("menu.publish.update_catalog_dialog.sections.pickup.label")
905
900
  }, null, 8, ["modelValue", "items", "label"]),
906
901
  i("div", Vt, [
907
- i("div", It, z(d(g)("menu.publish.update_catalog_dialog.sections.additional.title")), 1),
908
- i("div", Pt, z(d(g)("menu.publish.update_catalog_dialog.sections.additional.subtitle")), 1),
909
- (C(!0), M(H, null, q(T.catalogs, (r) => (C(), M("div", {
902
+ i("div", It, z(d(_)("menu.publish.update_catalog_dialog.sections.additional.title")), 1),
903
+ i("div", Pt, z(d(_)("menu.publish.update_catalog_dialog.sections.additional.subtitle")), 1),
904
+ (C(!0), M(H, null, G(T.catalogs, (r) => (C(), M("div", {
910
905
  key: r._id
911
906
  }, [
912
907
  p(Y, {
@@ -950,20 +945,20 @@ const Ge = {
950
945
  class: "fm-typo-en-body-lg-600"
951
946
  }, Yt = {
952
947
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
953
- }, Kt = {
954
- class: "flex gap-8"
955
948
  }, jt = {
949
+ class: "flex gap-8"
950
+ }, Kt = {
956
951
  class: "xs:block hidden fixed bottom-72 right-16"
957
- }, oa = /* @__PURE__ */ W({
952
+ }, ta = /* @__PURE__ */ W({
958
953
  __name: "Publish",
959
954
  setup(T) {
960
955
  const F = $e(), {
961
956
  t: l
962
- } = Z(), g = ({
957
+ } = Q(), _ = ({
963
958
  row: t
964
959
  }) => {
965
960
  const h = t.status === "latest";
966
- return p(He, {
961
+ return p(Ee, {
967
962
  label: l(h ? "menu.publish.table.status.latest" : "menu.publish.table.status.outdated"),
968
963
  variant: h ? "success" : "warning"
969
964
  }, null);
@@ -999,7 +994,7 @@ const Ge = {
999
994
  accessorKey: "status",
1000
995
  header: () => l("menu.common.labels.status"),
1001
996
  enableSorting: !1,
1002
- cell: (t) => p(g, {
997
+ cell: (t) => p(_, {
1003
998
  row: t.row.original
1004
999
  }, null)
1005
1000
  }, {
@@ -1011,13 +1006,13 @@ const Ge = {
1011
1006
  const h = t.row.original;
1012
1007
  return R("div", {
1013
1008
  class: "flex justify-end gap-8"
1014
- }, [a.value && h.revertConfig ? Ke(R(Q.FmButton, {
1009
+ }, [a.value && h.revertConfig ? Le(R(X.FmButton, {
1015
1010
  prependIcon: "undo",
1016
1011
  variant: "secondary",
1017
1012
  onClick: te(async () => {
1018
1013
  await c(t.row.original);
1019
1014
  }, ["stop", "prevent"])
1020
- }), l("menu.publish.actions.revert")) : null, R(Q.FmButton, {
1015
+ }), l("menu.publish.actions.revert")) : null, R(X.FmButton, {
1021
1016
  label: l("menu.publish.actions.publish"),
1022
1017
  icon: "ios_share",
1023
1018
  variant: "secondary",
@@ -1030,11 +1025,11 @@ const Ge = {
1030
1025
  meta: {
1031
1026
  width: "150px"
1032
1027
  }
1033
- }], u = P(""), _ = P(), e = be(), b = _e(), a = N(() => e.version !== G.F_MENU_VERSION.enum.v3);
1028
+ }], u = P(""), g = P(), e = ge(), b = ye(), a = N(() => e.version !== q.F_MENU_VERSION.enum.v3);
1034
1029
  async function c(t) {
1035
1030
  t.revertConfig && b.open({
1036
1031
  title: "Revert menu",
1037
- contentComponent: Xe,
1032
+ contentComponent: Ze,
1038
1033
  contentComponentProps: {
1039
1034
  restaurant: t
1040
1035
  },
@@ -1078,12 +1073,12 @@ const Ge = {
1078
1073
  function B(t) {
1079
1074
  var $;
1080
1075
  const h = A(t);
1081
- ($ = _.value) == null || $.show(h);
1076
+ ($ = g.value) == null || $.show(h);
1082
1077
  }
1083
1078
  const Y = ce(), k = he(Y);
1084
1079
  async function w(t) {
1085
1080
  var $;
1086
- const h = ($ = v.value.find((K) => K._id === t.restaurantId)) == null ? void 0 : $.name;
1081
+ const h = ($ = v.value.find((j) => j._id === t.restaurantId)) == null ? void 0 : $.name;
1087
1082
  await k.minor(async () => await e.publishMenu(t), {
1088
1083
  customId: e.state.menu._id,
1089
1084
  message: `Publishing menu for ${h}`,
@@ -1093,8 +1088,8 @@ const Ge = {
1093
1088
  const r = P(null), v = N(() => {
1094
1089
  const t = u.value.toLowerCase(), h = e.state.menu.updatedAt;
1095
1090
  return e.state.restaurants.filter(($) => {
1096
- var K;
1097
- return !r.value || ((K = r.value) == null ? void 0 : K.includes($._id));
1091
+ var j;
1092
+ return !r.value || ((j = r.value) == null ? void 0 : j.includes($._id));
1098
1093
  }).map(($) => ({
1099
1094
  ...$,
1100
1095
  catalog: {
@@ -1103,10 +1098,10 @@ const Ge = {
1103
1098
  pickup: m($.pickupCatalog)
1104
1099
  },
1105
1100
  status: h === $.updatedAt ? "latest" : "outdated"
1106
- })).filter(($) => Ue($, S.value)).filter(({
1101
+ })).filter(($) => Re($, S.value)).filter(({
1107
1102
  name: $,
1108
- catalog: K
1109
- }) => t ? $.toLowerCase().includes(t) || K.default.toLowerCase().includes(t) || K.takeaway.toLowerCase().includes(t) || K.pickup.toLowerCase().includes(t) : !0);
1103
+ catalog: j
1104
+ }) => t ? $.toLowerCase().includes(t) || j.default.toLowerCase().includes(t) || j.takeaway.toLowerCase().includes(t) || j.pickup.toLowerCase().includes(t) : !0);
1110
1105
  }), S = P({
1111
1106
  logic: "AND",
1112
1107
  rules: []
@@ -1156,13 +1151,13 @@ const Ge = {
1156
1151
  }), Me(() => {
1157
1152
  O.value != null && (clearInterval(O.value), O.value = null);
1158
1153
  }), (t, h) => {
1159
- const $ = U("FmChip"), K = U("FmSpacer"), J = U("FmButton"), ue = U("FmBadge"), we = U("FmSearch"), xe = U("FmTable"), Se = U("FmListItem"), Fe = U("FmList");
1154
+ const $ = U("FmChip"), j = U("FmSpacer"), J = U("FmButton"), ue = U("FmBadge"), we = U("FmSearch"), xe = U("FmTable"), Se = U("FmListItem"), Fe = U("FmList");
1160
1155
  return C(), M(H, null, [i("div", Ut, [i("div", At, [i("div", Bt, [i("div", Dt, z(d(l)("menu.publish.title")), 1), h[9] || (h[9] = i("div", {
1161
1156
  class: "hidden xs:block fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
1162
1157
  }, null, -1))]), p($, {
1163
1158
  label: y.value,
1164
1159
  class: "xs:hidden text-fm-color-primary bg-fm-color-system-warning-100"
1165
- }, null, 8, ["label"]), p(K), i("div", Tt, [p(J, {
1160
+ }, null, 8, ["label"]), p(j), i("div", Tt, [p(J, {
1166
1161
  disabled: o.value,
1167
1162
  label: d(l)("menu.publish.actions.refresh"),
1168
1163
  variant: "secondary",
@@ -1174,7 +1169,7 @@ const Ge = {
1174
1169
  }, {
1175
1170
  default: E(({
1176
1171
  trigger: I
1177
- }) => [d(e).runningPublishJob !== null ? (C(), j(ue, {
1172
+ }) => [d(e).runningPublishJob !== null ? (C(), K(ue, {
1178
1173
  key: 0,
1179
1174
  variant: "critical",
1180
1175
  value: 1
@@ -1186,7 +1181,7 @@ const Ge = {
1186
1181
  onClick: I
1187
1182
  }, null, 8, ["disabled", "label", "onClick"])]),
1188
1183
  _: 2
1189
- }, 1024)) : (C(), j(J, {
1184
+ }, 1024)) : (C(), K(J, {
1190
1185
  key: 1,
1191
1186
  variant: "secondary",
1192
1187
  disabled: o.value,
@@ -1200,12 +1195,12 @@ const Ge = {
1200
1195
  label: d(l)("menu.publish.actions.publish_all"),
1201
1196
  variant: "primary",
1202
1197
  onClick: h[2] || (h[2] = () => se())
1203
- }, null, 8, ["disabled", "label"])])]), i("div", Nt, [p(d(Ee), {
1198
+ }, null, 8, ["disabled", "label"])])]), i("div", Nt, [p(d(He), {
1204
1199
  multiple: "",
1205
1200
  modelValue: r.value,
1206
1201
  "onUpdate:modelValue": h[4] || (h[4] = (I) => r.value = I)
1207
1202
  }, {
1208
- "append-right": E(() => [p(d(Ae), {
1203
+ "append-right": E(() => [p(d(Oe), {
1209
1204
  modelValue: S.value,
1210
1205
  "onUpdate:modelValue": h[3] || (h[3] = (I) => S.value = I),
1211
1206
  attributes: D
@@ -1219,7 +1214,7 @@ const Ge = {
1219
1214
  placeholder: d(l)("menu.publish.table.search.placeholder")
1220
1215
  }, null, 8, ["modelValue", "placeholder"])]), v.value.length > 0 ? (C(), M(H, {
1221
1216
  key: 0
1222
- }, [p(Je, {
1217
+ }, [p(je, {
1223
1218
  class: "xs:hidden block"
1224
1219
  }, {
1225
1220
  default: E(() => [p(xe, {
@@ -1242,7 +1237,7 @@ const Ge = {
1242
1237
  class: "flex-col flex-1 min-h-0 overflow-auto xs:flex hidden w-full pb-64",
1243
1238
  separator: ""
1244
1239
  }, {
1245
- default: E(() => [(C(!0), M(H, null, q(v.value, (I) => (C(), j(Se, {
1240
+ default: E(() => [(C(!0), M(H, null, G(v.value, (I) => (C(), K(Se, {
1246
1241
  key: I._id,
1247
1242
  label: I.name,
1248
1243
  style: {
@@ -1250,15 +1245,15 @@ const Ge = {
1250
1245
  },
1251
1246
  onClick: () => B(I)
1252
1247
  }, {
1253
- default: E(() => [i("div", Et, [i("div", Lt, [i("div", zt, z(s(I.updatedAt)), 1), p(g, {
1248
+ default: E(() => [i("div", Et, [i("div", Lt, [i("div", zt, z(s(I.updatedAt)), 1), p(_, {
1254
1249
  row: I
1255
- }, null, 8, ["row"])]), i("div", Ht, [i("div", Jt, z(I.name), 1), i("div", Yt, [i("div", null, "Default: " + z(I.catalog.default), 1), i("div", null, "POS takeaway: " + z(I.catalog.takeaway), 1), i("div", null, "Pickup: " + z(I.catalog.pickup), 1)])])]), i("div", Kt, [a.value && I.revertConfig ? (C(), j(J, {
1250
+ }, null, 8, ["row"])]), i("div", Ht, [i("div", Jt, z(I.name), 1), i("div", Yt, [i("div", null, "Default: " + z(I.catalog.default), 1), i("div", null, "POS takeaway: " + z(I.catalog.takeaway), 1), i("div", null, "Pickup: " + z(I.catalog.pickup), 1)])])]), i("div", jt, [a.value && I.revertConfig ? (C(), K(J, {
1256
1251
  key: 0,
1257
1252
  disabled: o.value,
1258
1253
  icon: "undo",
1259
1254
  variant: "tertiary",
1260
1255
  onClick: te(() => c(I), ["stop"])
1261
- }, null, 8, ["disabled", "onClick"])) : X("", !0), p(J, {
1256
+ }, null, 8, ["disabled", "onClick"])) : Z("", !0), p(J, {
1262
1257
  disabled: o.value,
1263
1258
  icon: "ios_share",
1264
1259
  variant: "tertiary",
@@ -1267,7 +1262,7 @@ const Ge = {
1267
1262
  _: 2
1268
1263
  }, 1032, ["label", "onClick"]))), 128))]),
1269
1264
  _: 1
1270
- })], 64)) : (C(), j(d(Oe), {
1265
+ })], 64)) : (C(), K(d(Ne), {
1271
1266
  key: 1,
1272
1267
  title: d(l)("menu.publish.empty.title"),
1273
1268
  subtitle: d(l)("menu.publish.empty.subtitle"),
@@ -1280,7 +1275,7 @@ const Ge = {
1280
1275
  });
1281
1276
  }
1282
1277
  }
1283
- }, null, 8, ["title", "subtitle", "action"]))]), i("div", jt, [p(J, {
1278
+ }, null, 8, ["title", "subtitle", "action"]))]), i("div", Kt, [p(J, {
1284
1279
  disabled: o.value,
1285
1280
  icon: "ios_share",
1286
1281
  label: d(l)("menu.publish.actions.publish_all"),
@@ -1288,7 +1283,7 @@ const Ge = {
1288
1283
  onClick: h[8] || (h[8] = () => se())
1289
1284
  }, null, 8, ["disabled", "label"])]), p($t, {
1290
1285
  ref_key: "updateCatalogDialogRef",
1291
- ref: _,
1286
+ ref: g,
1292
1287
  catalogs: f.value,
1293
1288
  onOnComplete: w
1294
1289
  }, null, 8, ["catalogs"])], 64);
@@ -1296,5 +1291,5 @@ const Ge = {
1296
1291
  }
1297
1292
  });
1298
1293
  export {
1299
- oa as default
1294
+ ta as default
1300
1295
  };