@feedmepos/mf-menu 0.32.45-dev → 0.32.46-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/{App-u5AOIdU4.js → App-DnmPW7GQ.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-RTdI8EVk.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BN_pomak.js} +3 -3
  3. package/dist/{Catalog-DDMz6wD9.js → Catalog-gxj-MZB8.js} +44 -44
  4. package/dist/{Category-DoIleKPb.js → Category-CqWHFR6I.js} +19 -19
  5. package/dist/{Category-BE0d0_de.js → Category-JHb56PfQ.js} +24 -24
  6. package/dist/{CookingGuide-iP5hFtlB.js → CookingGuide-DNMfIDDf.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CSaMT7Gr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BYdToHa3.js} +1 -1
  8. package/dist/{Group-AXDRjsKC.js → Group-DXEgfQ_e.js} +3 -3
  9. package/dist/{Group-xjimyqnO.js → Group-bxjyN23A.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DB_X7ws3.js → Group.vue_vue_type_script_setup_true_lang-DPhYCl15.js} +19 -19
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D_IUSYDa.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DAsxXqGu.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Suib7m8i.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BuD8TeFi.js} +1991 -1990
  13. package/dist/{Ingredient-yr2DWIMw.js → Ingredient-BAnjcaO0.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BpiU1gRP.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CppjxcTA.js} +2 -2
  15. package/dist/{LinkProductSideSheet-2MbaATTn.js → LinkProductSideSheet-CvWcioxX.js} +45 -45
  16. package/dist/{MenuSetting-BhkjzPiN.js → MenuSetting-DCQM7rh6.js} +47 -47
  17. package/dist/{PrintRoute-ChqpbVo4.js → PrintRoute-Be0WG4oQ.js} +39 -39
  18. package/dist/{Product-BpnGnMzm.js → Product-DfYmo4vJ.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-COkk299w.js → Product.vue_vue_type_script_setup_true_lang-BsRZ0VVW.js} +93 -93
  20. package/dist/{ProductInternalTools-BEwLYcEn.js → ProductInternalTools-D2QTAjE7.js} +66 -66
  21. package/dist/{Products-lONe7x_i.js → Products-BhY4Cwaz.js} +42 -42
  22. package/dist/{Publish-CXRgBz-S.js → Publish-BfEtLeeh.js} +29 -29
  23. package/dist/{Recipe-Bbt3hG6N.js → Recipe-ssNUNy2j.js} +24 -24
  24. package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DHnuxBck.js +144 -0
  25. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DXisBADc.js → RuleView.vue_vue_type_script_setup_true_lang-CkpwtUSB.js} +2 -2
  26. package/dist/{Scheduler-DJsgP_Hi.js → Scheduler-CAUHWrZs.js} +11 -11
  27. package/dist/{ServingSequence-DALjVV2I.js → ServingSequence-D12rqxa8.js} +44 -44
  28. package/dist/{Setting-B23o5SoS.js → Setting-pJ06C7wS.js} +17 -17
  29. package/dist/{Subcategory-CS4MEgtM.js → Subcategory-Dfd-qx6m.js} +54 -54
  30. package/dist/{Takeaway-CI2Y-_LF.js → Takeaway-Bnat0taD.js} +13 -13
  31. package/dist/{Takeaway-D27iA6M6.js → Takeaway-Cv-kA3M_.js} +1 -1
  32. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Ca3qK9zO.js → Takeaway.vue_vue_type_script_setup_true_lang-9aZi7wvY.js} +33 -33
  33. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Da2jQE45.js → Thumbnail.vue_vue_type_script_setup_true_lang-C3Sk0LVd.js} +27 -27
  34. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DUScE-82.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-5RV7_0Wc.js} +1 -1
  35. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-E3-hgVdd.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BBXAoJje.js} +5 -5
  36. package/dist/{TranslationViewChip.vue_vue_type_script_setup_true_lang-BlACWsDs.js → TranslationViewChip.vue_vue_type_script_setup_true_lang-CIGgeuKb.js} +1 -1
  37. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D9EEpjV6.js +5767 -0
  38. package/dist/{Unit-5pv3oxSc.js → Unit-DeegDDRz.js} +8 -8
  39. package/dist/{Variant-CTAI6p6r.js → Variant-D8WwGu3E.js} +14 -14
  40. package/dist/{_id_-D09xegPQ.js → _id_-BfOGbmqs.js} +28 -28
  41. package/dist/app-BmAr9vNI.js +2283 -0
  42. package/dist/{app-8-JCz9b5.js → app-DhZxk0zL.js} +1 -1
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/api/index.d.ts +1 -1
  45. package/dist/apps/mf-menu/src/api/menu.d.ts +14 -5
  46. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/assets/{linked-status-dENy3aw3.js → linked-status-CxpcEFX9.js} +2 -2
  48. package/dist/assets/{menu-export-E9V7bg-T.js → menu-export-C09ZbTRq.js} +2 -2
  49. package/dist/assets/{override-menu-HaI7O9Fu.js → override-menu-0rFjySh6.js} +2 -2
  50. package/dist/assets/{validate-menu-C8LhbVSM.js → validate-menu-cO19zy8y.js} +2 -2
  51. package/dist/{catalog-DhXoYsFF.js → catalog-tNpB0Dhn.js} +1 -1
  52. package/dist/{catalogSetting-DyRqWzdW.js → catalogSetting-BRnA4v49.js} +1 -1
  53. package/dist/{currency-BkmIftYM.js → currency-CyKauaRc.js} +1 -1
  54. package/dist/dayjs.min-ipgoM27T.js +7 -0
  55. package/dist/{index-BQ95VVc6.js → index-BGm2uHNk.js} +31 -31
  56. package/dist/{index-BXWquw9Z.js → index-CXquA22H.js} +30 -30
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js → index.vue_vue_type_script_setup_true_lang-D6HyeIid.js} +6917 -6860
  58. package/dist/{item-DmTvGVsp.js → item-Cik-YX-L.js} +15 -15
  59. package/dist/{jszip.min-8Z5To_Pk.js → jszip.min-D22BefT1.js} +388 -387
  60. package/dist/{menu-Csu9X1_I.js → menu-ag-37Ofg.js} +1 -1
  61. package/dist/{menuV2-CC-vGiv5.js → menuV2-DZDWxmas.js} +135 -135
  62. package/dist/{priceTier-Bj9Y6SSr.js → priceTier-BmDl3J-3.js} +1 -1
  63. package/dist/{rules-Dod2cBHH.js → rules-pJdF9REd.js} +12 -12
  64. package/dist/{scheduler-B3M-715v.js → scheduler-DRHXK6kX.js} +29 -29
  65. package/dist/{toExcel-67ufpOxx.js → toExcel-5kDfvPVG.js} +2 -2
  66. package/dist/{unit-BQrnccs6.js → unit-CIlgFZ50.js} +35 -35
  67. package/package.json +1 -1
  68. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DnuNFxC7.js +0 -6130
  69. package/dist/app-Bk0DN7oZ.js +0 -363
  70. package/dist/dayjs.min-nQqVHQcC.js +0 -6
  71. package/dist/index-28XF3UnN.js +0 -246
@@ -1,14 +1,14 @@
1
- import { defineComponent as H, ref as I, computed as L, resolveComponent as h, createElementBlock as g, openBlock as d, Fragment as x, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as y, toDisplayString as z, onBeforeMount as oe, watch as F, watchEffect as se, h as $, getCurrentInstance as le, onMounted as re, createBlock as j, createCommentVNode as G, isRef as ie, normalizeClass as J, renderList as ue } from "vue";
1
+ import { defineComponent as H, ref as L, computed as O, resolveComponent as h, createElementBlock as g, openBlock as d, Fragment as x, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as y, toDisplayString as A, onBeforeMount as oe, watch as F, watchEffect as se, h as $, getCurrentInstance as le, onMounted as re, createBlock as j, createCommentVNode as G, isRef as ie, normalizeClass as Q, renderList as ue } from "vue";
2
2
  import { useRouter as ce } from "vue-router";
3
- import { I as Q, u as W, G as X, Q as Z, M as O, A as S, a4 as de } from "./index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js";
3
+ import { G as J, u as W, B as X, O as Z, J as I, y as S, a2 as de } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
4
4
  import { useI18n as ee, ItemSelector as me, useCoreStore as pe } from "@feedmepos/mf-common";
5
- import { useSnackbar as ne, components as Y, useDialog as _e, FmButtonVariant as A, useBreakpoints as fe } from "@feedmepos/ui-library";
5
+ import { useSnackbar as ne, components as Y, useDialog as _e, FmButtonVariant as T, useBreakpoints as fe } from "@feedmepos/ui-library";
6
6
  import { _ as ge } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
7
- import { _ as ve, R as he } from "./app-Bk0DN7oZ.js";
7
+ import { _ as ve, R as he } from "./app-BmAr9vNI.js";
8
8
  import { c as ye } from "./check-C9mY6LiX.js";
9
9
  import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
10
10
  import { u as ke } from "./search-BAPEUu1R.js";
11
- import { u as xe } from "./app-8-JCz9b5.js";
11
+ import { u as xe } from "./app-DhZxk0zL.js";
12
12
  import { c as Se } from "./createComponentProgrammatically-Bt2rn1IQ.js";
13
13
  const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex flex-col h-full" }, Ee = { class: "flex gap-8 items-center justify-start" }, Ve = /* @__PURE__ */ H({
14
14
  __name: "Form",
@@ -18,23 +18,23 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
18
18
  },
19
19
  emits: ["submitted"],
20
20
  setup(K, { expose: b, emit: N }) {
21
- const { t: r } = ee(), p = K, R = N, s = I(
22
- p.initialValue ? Q(p.initialValue) : {
21
+ const { t: r } = ee(), p = K, R = N, s = L(
22
+ p.initialValue ? J(p.initialValue) : {
23
23
  _id: "",
24
24
  name: "",
25
25
  position: 0,
26
26
  items: []
27
27
  }
28
- ), C = W(), i = ne(), D = X(i), q = Z(D), c = I(!1), u = I(!1), _ = (f) => {
28
+ ), C = W(), i = ne(), B = X(i), q = Z(B), c = L(!1), u = L(!1), _ = (f) => {
29
29
  ye.isBoolean(f) ? u.value = f : u.value = !u.value;
30
- }, E = L(() => p.action === "add" ? r("menu.serving_sequence.add") : r("menu.serving_sequence.update"));
31
- async function P() {
30
+ }, E = O(() => p.action === "add" ? r("menu.serving_sequence.add") : r("menu.serving_sequence.update"));
31
+ async function D() {
32
32
  try {
33
33
  if (p.action === "add")
34
34
  await q.updateMenu(
35
35
  {
36
36
  module: S.F_MENU_MODULE_V4_KEY.enum.serveSequence,
37
- operation: O.F_OPERATION_TYPE.create,
37
+ operation: I.F_OPERATION_TYPE.create,
38
38
  data: {
39
39
  ...s.value,
40
40
  position: C.serveSequence.length
@@ -46,7 +46,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
46
46
  await q.updateMenu(
47
47
  {
48
48
  module: S.F_MENU_MODULE_V4_KEY.enum.serveSequence,
49
- operation: O.F_OPERATION_TYPE.update,
49
+ operation: I.F_OPERATION_TYPE.update,
50
50
  data: s.value
51
51
  },
52
52
  s.value.name
@@ -61,10 +61,10 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
61
61
  trigger: _,
62
62
  show: u
63
63
  });
64
- function U(f) {
64
+ function P(f) {
65
65
  return f.reduce((a, v) => (a[v._id] = [...a[v._id] ?? [], v], a), {});
66
66
  }
67
- const B = L(() => U(Q(s.value.items)));
67
+ const U = O(() => P(J(s.value.items)));
68
68
  return (f, a) => {
69
69
  const v = h("fm-text-field"), V = h("fm-button"), e = h("fm-side-sheet");
70
70
  return d(), g(x, null, [
@@ -75,13 +75,13 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
75
75
  "onUpdate:modelValue": a[3] || (a[3] = (n) => u.value = n),
76
76
  "is-container": t(Y).FmForm,
77
77
  "is-container-props": {
78
- onValidationSuccess: P,
78
+ onValidationSuccess: D,
79
79
  blameFormChildOnValidationFailed: !0
80
80
  },
81
81
  "max-width": 560
82
82
  }, {
83
83
  "side-sheet-header": m(() => [
84
- y("p", Ce, z(E.value), 1)
84
+ y("p", Ce, A(E.value), 1)
85
85
  ]),
86
86
  "side-sheet-footer": m(() => [
87
87
  y("div", Ee, [
@@ -116,7 +116,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
116
116
  }, null, 8, ["modelValue", "rules", "label", "placeholder"]),
117
117
  l(t(me), {
118
118
  "categorized-items": t(C).categorizedItems,
119
- data: B.value,
119
+ data: U.value,
120
120
  class: "flex-1",
121
121
  "select-variant": "",
122
122
  "show-variant": "",
@@ -129,27 +129,27 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
129
129
  ], 64);
130
130
  };
131
131
  }
132
- }), T = Ve, we = {
132
+ }), z = Ve, we = {
133
133
  key: 0,
134
134
  class: "xs:pt-24"
135
135
  }, Me = {
136
136
  class: "flex justify-end mb-8 xs:mt-8"
137
137
  }, Fe = {
138
138
  key: 1,
139
- class: /* @__PURE__ */ J(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
140
- }, Ie = ["onClick"], Le = {
139
+ class: /* @__PURE__ */ Q(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
140
+ }, Le = ["onClick"], Oe = {
141
141
  class: "flex-1 space-y-4"
142
- }, Oe = {
142
+ }, Ie = {
143
143
  class: "fm-typo-en-body-lg-600"
144
144
  }, Ne = {
145
145
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
146
- }, Qe = /* @__PURE__ */ H({
146
+ }, Je = /* @__PURE__ */ H({
147
147
  __name: "ServingSequence",
148
148
  setup(K) {
149
149
  const {
150
150
  searchKey: b,
151
151
  filter: N
152
- } = ke(), r = W(), p = ne(), R = X(p), s = Z(R), C = _e(), i = pe(), D = xe(), q = ce(), {
152
+ } = ke(), r = W(), p = ne(), R = X(p), s = Z(R), C = _e(), i = pe(), B = xe(), q = ce(), {
153
153
  t: c
154
154
  } = ee(), u = (e) => {
155
155
  e && e !== S.F_MENU_VERSION.enum.v4 && q.push({
@@ -165,7 +165,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
165
165
  }, (e) => {
166
166
  u(e);
167
167
  }), F(() => i.sessionUser.value, (e) => {
168
- e && D.getPublicSetting();
168
+ e && B.getPublicSetting();
169
169
  }), F(() => i.currentBusiness.value, async (e, n) => {
170
170
  e && e._id !== (n == null ? void 0 : n._id) && await r.readRestaurants();
171
171
  }), F(() => i.currentRestaurant.value, async (e, n) => {
@@ -173,7 +173,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
173
173
  }), se(() => {
174
174
  i.restaurants.value.length && (i.currentRestaurant.value || i.changeRestaurant(i.restaurants.value[0]));
175
175
  });
176
- const _ = L(() => r.serveSequence.filter(({
176
+ const _ = O(() => r.serveSequence.filter(({
177
177
  name: e
178
178
  }) => N([e])) ?? []);
179
179
  function E(e) {
@@ -183,7 +183,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
183
183
  primaryActions: {
184
184
  text: "Delete",
185
185
  close: !0,
186
- variant: A.Destructive
186
+ variant: T.Destructive
187
187
  },
188
188
  secondaryActions: {
189
189
  text: "Cancel",
@@ -192,29 +192,29 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
192
192
  }).onPrimary(async () => {
193
193
  await s.updateMenu({
194
194
  module: S.F_MENU_MODULE_V4_KEY.enum.serveSequence,
195
- operation: O.F_OPERATION_TYPE.delete,
195
+ operation: I.F_OPERATION_TYPE.delete,
196
196
  data: e._id
197
197
  }, e.name, !0);
198
198
  });
199
199
  }
200
- const P = ({
200
+ const D = ({
201
201
  servingSequence: e
202
202
  }) => $(Y.FmButton, {
203
203
  prependIcon: "delete",
204
- variant: A.Tertiary,
204
+ variant: T.Tertiary,
205
205
  textColor: "neutral-gray-400",
206
206
  onClick: (n) => {
207
207
  n.stopPropagation(), E(e);
208
208
  }
209
209
  });
210
- async function U(e) {
210
+ async function P(e) {
211
211
  await s.updateMenu({
212
212
  module: S.F_MENU_MODULE_V4_KEY.enum.serveSequence,
213
- operation: O.F_OPERATION_TYPE.rearrange,
213
+ operation: I.F_OPERATION_TYPE.rearrange,
214
214
  data: e.map((n) => n._id)
215
215
  }, "sequences");
216
216
  }
217
- const B = I([{
217
+ const U = L([{
218
218
  accessorKey: "name",
219
219
  header: () => c("menu.serving_sequence.columns.name"),
220
220
  enableSorting: !1,
@@ -236,7 +236,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
236
236
  class: "w-full flex justify-end items-center"
237
237
  }, [$(Y.FmButton, {
238
238
  prependIcon: "delete",
239
- variant: A.Tertiary,
239
+ variant: T.Tertiary,
240
240
  textColor: "neutral-gray-400",
241
241
  onClick: (n) => {
242
242
  n.stopPropagation(), E(e.row.original);
@@ -248,7 +248,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
248
248
  const {
249
249
  container: n,
250
250
  vNode: k
251
- } = Se(T, f, {
251
+ } = Se(z, f, {
252
252
  initialValue: e,
253
253
  action: "update",
254
254
  onSubmitted: () => {
@@ -258,7 +258,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
258
258
  (M = (w = k.component) == null ? void 0 : w.exposed) == null || M.trigger();
259
259
  }
260
260
  re(() => r.selectCatalog(null));
261
- const v = fe(), V = L(() => v.breakpoints.value.xs);
261
+ const v = fe(), V = O(() => v.breakpoints.value.xs);
262
262
  return (e, n) => {
263
263
  const k = h("FmSpacer"), w = h("fm-button"), M = h("fm-search"), te = h("fm-table");
264
264
  return d(), j(be, {
@@ -267,7 +267,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
267
267
  }, {
268
268
  "append-heading": m(() => [!t(s).checkMenuIsLoading() && _.value.length ? (d(), g(x, {
269
269
  key: 0
270
- }, [l(k), l(t(T), {
270
+ }, [l(k), l(t(z), {
271
271
  action: "add"
272
272
  }, {
273
273
  default: m(({
@@ -294,17 +294,17 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
294
294
  class: "w-[320px] xs:w-full xs:px-16"
295
295
  }, null, 8, ["modelValue", "placeholder"])]), V.value ? (d(), g("div", Fe, [(d(!0), g(x, null, ue(_.value, (o) => (d(), g("div", {
296
296
  key: o._id,
297
- class: J(["py-12 px-16", "flex items-center space-x-8"]),
297
+ class: Q(["py-12 px-16", "flex items-center space-x-8"]),
298
298
  onClick: (Re) => a(o)
299
- }, [y("div", Le, [y("p", Oe, z(o.name), 1), y("p", Ne, z(t(c)("menu.common.labels.products_linked", {
299
+ }, [y("div", Oe, [y("p", Ie, A(o.name), 1), y("p", Ne, A(t(c)("menu.common.labels.products_linked", {
300
300
  count: o.items.length
301
- })), 1)]), l(P, {
301
+ })), 1)]), l(D, {
302
302
  servingSequence: o
303
- }, null, 8, ["servingSequence"])], 8, Ie))), 128))])) : (d(), j(ve, {
303
+ }, null, 8, ["servingSequence"])], 8, Le))), 128))])) : (d(), j(ve, {
304
304
  key: 0
305
305
  }, {
306
306
  default: m(() => [l(te, {
307
- "column-defs": B.value,
307
+ "column-defs": U.value,
308
308
  loading: t(s).checkMenuIsLoading(),
309
309
  "page-size": _.value.length,
310
310
  "row-data": _.value,
@@ -314,7 +314,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
314
314
  draggable: "",
315
315
  "hide-footer": "",
316
316
  "pin-header-row": "",
317
- onDndChanged: n[1] || (n[1] = (o) => U(o)),
317
+ onDndChanged: n[1] || (n[1] = (o) => P(o)),
318
318
  onRowClick: n[2] || (n[2] = (o) => a(o.original))
319
319
  }, null, 8, ["column-defs", "loading", "page-size", "row-data", "search-value"])]),
320
320
  _: 1
@@ -322,7 +322,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
322
322
  subtitle: t(c)("menu.serving_sequence.empty.subtitle"),
323
323
  title: t(c)("menu.serving_sequence.empty.title")
324
324
  }, {
325
- action: m(() => [l(t(T), {
325
+ action: m(() => [l(t(z), {
326
326
  action: "add"
327
327
  }, {
328
328
  default: m(({
@@ -342,5 +342,5 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
342
342
  }
343
343
  });
344
344
  export {
345
- Qe as default
345
+ Je as default
346
346
  };
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ne, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as V, openBlock as r, normalizeClass as H, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as k, unref as e, Fragment as D, renderList as B, createTextVNode as re, toDisplayString as N } from "vue";
2
- import { u as me, G as ce, A as f, Q as de, B as pe, I as w } from "./index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js";
2
+ import { u as me, B as ce, y as f, O as de, z as pe, G as w } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
3
3
  import { useCoreStore as ve, useI18n as ge } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as fe, useDialog as _e, FmButtonVariant as $, FmButtonColorThemeVariant as P, components as be } from "@feedmepos/ui-library";
5
5
  import { _ as E } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
- import { _ as ye } from "./RuleView.vue_vue_type_script_setup_true_lang-DXisBADc.js";
7
- import { _ as z, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D_IUSYDa.js";
8
- import { C as _, a as x } from "./catalogSetting-DyRqWzdW.js";
9
- import { C as xe } from "./catalog-DhXoYsFF.js";
6
+ import { _ as ye } from "./RuleView.vue_vue_type_script_setup_true_lang-CkpwtUSB.js";
7
+ import { _ as z, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DAsxXqGu.js";
8
+ import { C as _, a as x } from "./catalogSetting-BRnA4v49.js";
9
+ import { C as xe } from "./catalog-tNpB0Dhn.js";
10
10
  const Ce = {
11
11
  class: /* @__PURE__ */ H(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16", "pt-16"])
12
12
  }, Oe = {
@@ -29,15 +29,15 @@ const Ce = {
29
29
  }, ze = /* @__PURE__ */ ne({
30
30
  __name: "Setting",
31
31
  setup(Ne) {
32
- const F = ve(), u = me(), j = fe(), A = ce(j), {
32
+ const F = ve(), u = me(), j = fe(), T = ce(j), {
33
33
  minor: q
34
- } = A, G = _e(), {
34
+ } = T, G = _e(), {
35
35
  t: n
36
36
  } = ge(), O = p(() => u.currentCatalog), b = p(() => !O.value), S = p(() => u.version === f.F_MENU_VERSION.enum.v4), {
37
37
  updateMenu: J
38
- } = de(A), l = se(_.initCatalogSetting()), Q = p(() => u.catalogs.filter((t) => t._id !== u.state.currentCatalogId).map((t) => t.name)), W = p(() => u.state.restaurants.filter((t) => [...t.additionalCatalogs, t.inHouseDelivery, ...t.linkedDeliveryCatalogs.map((o) => o.catalog), t.pickupCatalog, t.takeawayCatalog, t.catalogId].includes(u.state.currentCatalogId)).map((t) => t.name));
39
- function T() {
40
- return W.value.length > 0 ? s("div", {
38
+ } = de(T), l = se(_.initCatalogSetting()), W = p(() => u.catalogs.filter((t) => t._id !== u.state.currentCatalogId).map((t) => t.name)), Y = p(() => u.state.restaurants.filter((t) => [...t.additionalCatalogs, t.inHouseDelivery, ...t.linkedDeliveryCatalogs.map((o) => o.catalog), t.pickupCatalog, t.takeawayCatalog, t.catalogId].includes(u.state.currentCatalogId)).map((t) => t.name));
39
+ function A() {
40
+ return Y.value.length > 0 ? s("div", {
41
41
  class: ["flex items-center", "bg-fm-color-system-warning-100", "rounded-lg", "py-16 px-24 space-x-8"]
42
42
  }, [s(be.FmIcon, {
43
43
  color: "system-warning-300",
@@ -62,7 +62,7 @@ const Ce = {
62
62
  };
63
63
  });
64
64
  });
65
- function Y(t) {
65
+ function K(t) {
66
66
  const o = l.value.taxSetting, i = o.mode === x.AUTO ? _.manualTax(R.value) : w(o);
67
67
  i.inclusive ?? (i.inclusive = []);
68
68
  const d = i.inclusive.findIndex((C) => C.systemCode === t.systemCode);
@@ -76,7 +76,7 @@ const Ce = {
76
76
  set: (t) => {
77
77
  l.value.taxSetting = t;
78
78
  }
79
- }), K = async () => {
79
+ }), Q = async () => {
80
80
  const t = _.toCatalog(l.value);
81
81
  O.value ? await new xe({
82
82
  ...O.value,
@@ -103,7 +103,7 @@ const Ce = {
103
103
  return r(), V("div", Ce, [s(oe, {
104
104
  class: H(["space-y-40 max-w-[751px]", "h-fit"]),
105
105
  "blame-form-child-on-validation-failed": "",
106
- onValidationSuccess: K
106
+ onValidationSuccess: Q
107
107
  }, {
108
108
  default: c(() => [v("div", Oe, [b.value ? k("", !0) : (r(), g(ye, {
109
109
  key: 0,
@@ -112,9 +112,9 @@ const Ce = {
112
112
  default: c(() => [s(i, {
113
113
  modelValue: l.value.name,
114
114
  "onUpdate:modelValue": o[0] || (o[0] = (a) => l.value.name = a),
115
- rules: [(a) => !Q.value.includes(a.trim()) || e(n)("menu.setting.catalog.fields.name.used"), (a) => !!a.trim() || e(n)("menu.setting.catalog.fields.name.required")],
115
+ rules: [(a) => !W.value.includes(a.trim()) || e(n)("menu.setting.catalog.fields.name.used"), (a) => !!a.trim() || e(n)("menu.setting.catalog.fields.name.required")],
116
116
  label: e(n)("menu.setting.catalog.fields.name.label")
117
- }, null, 8, ["modelValue", "rules", "label"]), s(T)]),
117
+ }, null, 8, ["modelValue", "rules", "label"]), s(A)]),
118
118
  _: 1
119
119
  }, 8, ["title"])), s(E, {
120
120
  label: e(n)("menu.setting.tax.title")
@@ -141,7 +141,7 @@ const Ce = {
141
141
  value: !0,
142
142
  label: a.systemCode + " inclusive",
143
143
  "onUpdate:modelValue": (y) => {
144
- Y({
144
+ K({
145
145
  ...a,
146
146
  inclusive: y
147
147
  });
@@ -243,7 +243,7 @@ const Ce = {
243
243
  "onUpdate:modelValue": o[6] || (o[6] = (a) => l.value = a),
244
244
  "is-main-catalog": b.value,
245
245
  "is-v4": S.value
246
- }, null, 8, ["modelValue", "is-main-catalog", "is-v4"]), b.value ? (r(), g(T, {
246
+ }, null, 8, ["modelValue", "is-main-catalog", "is-v4"]), b.value ? (r(), g(A, {
247
247
  key: 3
248
248
  })) : k("", !0)]), v("div", he, [s(h, {
249
249
  label: e(n)("common.save"),
@@ -1,19 +1,19 @@
1
- import { defineComponent as z, ref as x, computed as V, watch as te, resolveComponent as C, createElementBlock as k, openBlock as p, Fragment as I, renderSlot as oe, createVNode as m, unref as n, withCtx as b, createElementVNode as c, renderList as H, toDisplayString as T, h as N, withModifiers as G, getCurrentInstance as ne, createBlock as U, createCommentVNode as le } from "vue";
1
+ import { defineComponent as A, ref as x, computed as V, watch as te, resolveComponent as C, createElementBlock as k, openBlock as p, Fragment as z, renderSlot as oe, createVNode as m, unref as n, withCtx as b, createElementVNode as c, renderList as Q, toDisplayString as M, h as T, withModifiers as K, getCurrentInstance as ne, createBlock as U, createCommentVNode as le } from "vue";
2
2
  import { useI18n as R } from "@feedmepos/mf-common";
3
- import { useSnackbar as j, components as W, useDialog as X, FmButtonVariant as J, useBreakpoints as se, FmButtonColorThemeVariant as ie } from "@feedmepos/ui-library";
3
+ import { useSnackbar as j, components as W, useDialog as X, FmButtonVariant as q, useBreakpoints as se, FmButtonColorThemeVariant as ie } from "@feedmepos/ui-library";
4
4
  import { _ as re } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { G as P, u as Y, Q as K, M as Z, A as ee, a4 as ce } from "./index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js";
5
+ import { B as P, u as Y, O as J, J as Z, y as ee, a2 as ce } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
6
6
  import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as me } from "./app-Bk0DN7oZ.js";
7
+ import { _ as me } from "./app-BmAr9vNI.js";
8
8
  import { c as de } from "./createForm-BoUQeZTd.js";
9
9
  import { u as pe } from "./discardConfirm-BHni0LNu.js";
10
- import { c as q } from "./object-DVUNCr7w.js";
11
- import { r as _e, u as ae } from "./rules-Dod2cBHH.js";
12
- import { _ as fe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-E3-hgVdd.js";
10
+ import { c as G } from "./object-DVUNCr7w.js";
11
+ import { r as _e, u as ae } from "./rules-pJdF9REd.js";
12
+ import { _ as fe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-BBXAoJje.js";
13
13
  import { c as ve } from "./check-C9mY6LiX.js";
14
- import { g as Q } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-DUScE-82.js";
15
- import { _ as ge } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-BlACWsDs.js";
16
- import { a as ye } from "./menu-Csu9X1_I.js";
14
+ import { g as H } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-5RV7_0Wc.js";
15
+ import { _ as ge } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-CIGgeuKb.js";
16
+ import { a as ye } from "./menu-ag-37Ofg.js";
17
17
  const be = {
18
18
  class: "fm-typo-en-title-md-600"
19
19
  }, he = {
@@ -22,34 +22,34 @@ const be = {
22
22
  class: "py-12 px-16 space-y-4"
23
23
  }, Ce = {
24
24
  class: "flex gap-8 items-center justify-start"
25
- }, ke = /* @__PURE__ */ z({
25
+ }, ke = /* @__PURE__ */ A({
26
26
  __name: "Form",
27
27
  props: {
28
28
  initialValue: {}
29
29
  },
30
- setup(D, {
30
+ setup(B, {
31
31
  expose: w
32
32
  }) {
33
- const h = D, S = j(), F = P(S), E = K(F), d = Y(), {
33
+ const h = B, S = j(), F = P(S), E = J(F), d = Y(), {
34
34
  t: l
35
- } = R(), L = x(!1), o = x(!1), $ = x(!1), u = x(void 0), M = (e) => {
35
+ } = R(), L = x(!1), o = x(!1), $ = x(!1), u = x(void 0), N = (e) => {
36
36
  ve.isBoolean(e) ? o.value = e : o.value = !o.value;
37
- }, s = x(q(h.initialValue)), O = V(() => !!s.value.name), B = V(() => {
37
+ }, s = x(G(h.initialValue)), O = V(() => !!s.value.name), D = V(() => {
38
38
  var f;
39
39
  const e = [], a = "en-US", t = (f = u.value) == null ? void 0 : f[a];
40
40
  return s.value.name && !t && e.push({
41
41
  locale: a,
42
42
  name: s.value.name,
43
- localeDisplay: Q(a)
43
+ localeDisplay: H(a)
44
44
  }), u.value && Object.entries(u.value).filter(([y, v]) => v && v.trim()).sort(([y], [v]) => y.localeCompare(v)).forEach(([y, v]) => {
45
45
  e.push({
46
46
  locale: y,
47
47
  name: v,
48
- localeDisplay: Q(y)
48
+ localeDisplay: H(y)
49
49
  });
50
50
  }), e;
51
51
  });
52
- function A(e) {
52
+ function I(e) {
53
53
  u.value = e;
54
54
  }
55
55
  function i(e) {
@@ -74,20 +74,20 @@ const be = {
74
74
  name: s.value.name ?? (e == null ? void 0 : e.name),
75
75
  name_locale: t
76
76
  }
77
- }, s.value.name), M(!1);
77
+ }, s.value.name), N(!1);
78
78
  }
79
79
  return te(() => o.value, () => {
80
80
  if (!o.value) return;
81
- s.value = q(h.initialValue);
81
+ s.value = G(h.initialValue);
82
82
  const e = d.subcategories.find((a) => a._id === s.value._id);
83
83
  u.value = e == null ? void 0 : e.name_locale;
84
84
  }), w({
85
- trigger: M,
85
+ trigger: N,
86
86
  show: o
87
87
  }), (e, a) => {
88
88
  const t = C("fm-button"), f = C("FmTooltip"), y = C("FmTextField"), v = C("fm-side-sheet");
89
- return p(), k(I, null, [oe(e.$slots, "default", {
90
- trigger: M
89
+ return p(), k(z, null, [oe(e.$slots, "default", {
90
+ trigger: N
91
91
  }), m(v, {
92
92
  id: "group-form",
93
93
  modelValue: o.value,
@@ -100,7 +100,7 @@ const be = {
100
100
  "max-width": 560,
101
101
  "onOn:clickedAway": n(r)
102
102
  }, {
103
- "side-sheet-header": b(() => [c("p", be, T(n(l)("menu.subcategory.title")), 1)]),
103
+ "side-sheet-header": b(() => [c("p", be, M(n(l)("menu.subcategory.title")), 1)]),
104
104
  "side-sheet-footer": b(() => [c("div", Ce, [m(t, {
105
105
  label: n(l)("menu.common.actions.update"),
106
106
  loading: L.value,
@@ -126,9 +126,9 @@ const be = {
126
126
  placement: "top",
127
127
  "z-index": 999
128
128
  }, {
129
- content: b(() => [c("div", xe, [(p(!0), k(I, null, H(B.value, (g) => (p(), k("div", {
129
+ content: b(() => [c("div", xe, [(p(!0), k(z, null, Q(D.value, (g) => (p(), k("div", {
130
130
  key: g.locale
131
- }, T(g.name) + " (" + T(g.localeDisplay) + ") ", 1))), 128))])]),
131
+ }, M(g.name) + " (" + M(g.localeDisplay) + ") ", 1))), 128))])]),
132
132
  default: b(() => [m(t, {
133
133
  variant: "tertiary",
134
134
  icon: "g_translate",
@@ -147,7 +147,7 @@ const be = {
147
147
  name: s.value.name,
148
148
  "name-locale": u.value,
149
149
  "onUpdate:name": i,
150
- "onUpdate:nameLocale": A
150
+ "onUpdate:nameLocale": I
151
151
  }, null, 8, ["modelValue", "title", "name", "name-locale"])], 64);
152
152
  };
153
153
  }
@@ -164,14 +164,14 @@ const be = {
164
164
  class: "p-8"
165
165
  }, Ee = {
166
166
  class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
167
- }, Me = ["onClick"], Ne = {
167
+ }, Ne = ["onClick"], Te = {
168
168
  class: "flex-1 space-y-4"
169
- }, Te = {
169
+ }, Me = {
170
170
  class: "fm-typo-en-body-lg-600"
171
- }, Oe = /* @__PURE__ */ z({
171
+ }, Oe = /* @__PURE__ */ A({
172
172
  __name: "SubcategoryTable",
173
- setup(D) {
174
- const w = X(), h = j(), S = P(h), F = K(S), E = ae({
173
+ setup(B) {
174
+ const w = X(), h = j(), S = P(h), F = J(S), E = ae({
175
175
  dialog: w,
176
176
  menuLoader: F
177
177
  }), d = V(() => Y().subcategories), l = x(""), L = V(() => d.value.filter((i) => i.name.toLowerCase().includes(l.value.toLowerCase()))), {
@@ -185,11 +185,11 @@ const be = {
185
185
  },
186
186
  cell: (i) => {
187
187
  const r = i.row.original, _ = i.getValue();
188
- return N("div", {
188
+ return T("div", {
189
189
  class: "flex items-center gap-8"
190
- }, [N("span", {
190
+ }, [T("span", {
191
191
  class: "break-all"
192
- }, _), r.name_locale ? N(ge, {
192
+ }, _), r.name_locale ? T(ge, {
193
193
  nameLocale: r.name_locale ?? {}
194
194
  }) : null]);
195
195
  }
@@ -203,14 +203,14 @@ const be = {
203
203
  header: "",
204
204
  cell: (i) => {
205
205
  const r = i.row.original;
206
- return N("div", {
206
+ return T("div", {
207
207
  class: "flex justify-end"
208
- }, [N(W.FmButton, {
208
+ }, [T(W.FmButton, {
209
209
  icon: "delete",
210
210
  disabled: !r._id,
211
211
  variant: "tertiary",
212
212
  textColor: "neutral-gray-400",
213
- onClick: G(async () => {
213
+ onClick: K(async () => {
214
214
  await u(r);
215
215
  }, ["stop", "prevent"])
216
216
  })]);
@@ -232,7 +232,7 @@ const be = {
232
232
  primaryActions: {
233
233
  text: "Remove",
234
234
  close: !0,
235
- variant: J.Destructive
235
+ variant: q.Destructive
236
236
  },
237
237
  secondaryActions: {
238
238
  text: "Cancel",
@@ -246,7 +246,7 @@ const be = {
246
246
  }, i.name, !0);
247
247
  });
248
248
  }
249
- async function M(i) {
249
+ async function N(i) {
250
250
  const r = i.map((_) => _._id).filter((_) => !!_);
251
251
  await E.rearrange(r);
252
252
  }
@@ -256,10 +256,10 @@ const be = {
256
256
  initialValue: i
257
257
  });
258
258
  }
259
- const B = se(), A = V(() => B.breakpoints.value.xs);
259
+ const D = se(), I = V(() => D.breakpoints.value.xs);
260
260
  return (i, r) => {
261
261
  const _ = C("FmSearch"), e = C("FmTable"), a = C("FmButton");
262
- return A.value ? (p(), k("div", $e, [c("div", Se, [m(_, {
262
+ return I.value ? (p(), k("div", $e, [c("div", Se, [m(_, {
263
263
  autofocus: "",
264
264
  modelValue: l.value,
265
265
  "onUpdate:modelValue": r[2] || (r[2] = (t) => l.value = t),
@@ -267,17 +267,17 @@ const be = {
267
267
  placeholder: n(o)("menu.common.labels.search_placeholder", {
268
268
  type: "categories"
269
269
  })
270
- }, null, 8, ["modelValue", "placeholder"])]), c("div", Ee, [(p(!0), k(I, null, H(L.value, (t) => (p(), k("div", {
270
+ }, null, 8, ["modelValue", "placeholder"])]), c("div", Ee, [(p(!0), k(z, null, Q(L.value, (t) => (p(), k("div", {
271
271
  key: t._id || "",
272
272
  class: "flex flex-row py-12 px-16",
273
273
  onClick: (f) => O(t)
274
- }, [c("div", Ne, [c("p", Te, T(t.name), 1)]), m(a, {
274
+ }, [c("div", Te, [c("p", Me, M(t.name), 1)]), m(a, {
275
275
  "text-color": n(ie).NeutralGray400,
276
- variant: n(J).Tertiary,
276
+ variant: n(q).Tertiary,
277
277
  "prepend-icon": "delete",
278
278
  disabled: !t._id,
279
- onClick: G((f) => u(t), ["stop"])
280
- }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Me))), 128))])])) : (p(), k("div", we, [c("div", Fe, [c("div", Le, [m(_, {
279
+ onClick: K((f) => u(t), ["stop"])
280
+ }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ne))), 128))])])) : (p(), k("div", we, [c("div", Fe, [c("div", Le, [m(_, {
281
281
  modelValue: l.value,
282
282
  "onUpdate:modelValue": r[0] || (r[0] = (t) => l.value = t),
283
283
  autofocus: "",
@@ -295,17 +295,17 @@ const be = {
295
295
  "shrink-at": !1,
296
296
  "hide-footer": "",
297
297
  "pin-header-row": "",
298
- onDndChanged: M,
298
+ onDndChanged: N,
299
299
  onRowClick: r[1] || (r[1] = (t) => O(t.original))
300
300
  }, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
301
301
  _: 1
302
302
  })]));
303
303
  };
304
304
  }
305
- }), Ue = { class: "flex-1 flex justify-between gap-8 pl-8" }, De = { class: "flex items-center" }, Be = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ae = { class: "fm-typo-en-body-md-600 font-semibold" }, aa = /* @__PURE__ */ z({
305
+ }), Ue = { class: "flex-1 flex justify-between gap-8 pl-8" }, Be = { class: "flex items-center" }, De = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ie = { class: "fm-typo-en-body-md-600 font-semibold" }, aa = /* @__PURE__ */ A({
306
306
  __name: "Subcategory",
307
- setup(D) {
308
- const w = X(), h = j(), S = P(h), F = K(S), E = ae({ dialog: w, menuLoader: F }), d = V(() => Y().subcategories), { t: l } = R();
307
+ setup(B) {
308
+ const w = X(), h = j(), S = P(h), F = J(S), E = ae({ dialog: w, menuLoader: F }), d = V(() => Y().subcategories), { t: l } = R();
309
309
  function L() {
310
310
  E.create();
311
311
  }
@@ -326,9 +326,9 @@ const be = {
326
326
  ]),
327
327
  "append-heading": b(() => [
328
328
  c("div", Ue, [
329
- c("div", De, [
330
- c("div", Be, [
331
- c("p", Ae, T(o.value), 1)
329
+ c("div", Be, [
330
+ c("div", De, [
331
+ c("p", Ie, M(o.value), 1)
332
332
  ])
333
333
  ]),
334
334
  d.value.length > 0 ? (p(), U(re, {