@feedmepos/mf-menu 0.32.43 → 0.32.44

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-C9b4SjED.js → App-BXkiQoTM.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C1T4Ewek.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BoSL4dm7.js} +3 -3
  3. package/dist/{Catalog-BVrf3VaX.js → Catalog-CLFVLyor.js} +44 -44
  4. package/dist/{Category-BkReM5IG.js → Category-BdyouDU8.js} +24 -24
  5. package/dist/{Category-BMzIQqIE.js → Category-CNuVHuI3.js} +25 -25
  6. package/dist/{CookingGuide-CvctI1TH.js → CookingGuide-Bed7bUt1.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-bYSEp6Wb.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CZDL2xJC.js} +1 -1
  8. package/dist/{Group-CHkNuuHE.js → Group-D4UTsIxI.js} +3 -3
  9. package/dist/{Group-BQzmXagr.js → Group-TUqCPmO3.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BkruJTpL.js → Group.vue_vue_type_script_setup_true_lang-BJPT8flL.js} +19 -19
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CBz83Qd1.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D83liryu.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dpx4meDa.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CRIRinHB.js} +10 -11
  13. package/dist/{Ingredient-BNsKYrQB.js → Ingredient-CcxoeuDd.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DzzwwdA_.js → InventoryBinding.vue_vue_type_script_setup_true_lang-58tyxdVh.js} +2 -2
  15. package/dist/{LinkProductSideSheet-C6-wef-M.js → LinkProductSideSheet-DazOkwkd.js} +45 -45
  16. package/dist/{MenuSetting-DRaw7b6m.js → MenuSetting-B3oLll4C.js} +47 -47
  17. package/dist/{PrintRoute-BKB-thVp.js → PrintRoute-D878qPu8.js} +39 -39
  18. package/dist/{Product-vviXmBR1.js → Product-DOC8y_mW.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-5h-k6zad.js → Product.vue_vue_type_script_setup_true_lang-tZyBhWYT.js} +140 -140
  20. package/dist/{ProductInternalTools-DtLk3xFR.js → ProductInternalTools-9TgIc2bR.js} +66 -66
  21. package/dist/Products-DfUGnHmD.js +1568 -0
  22. package/dist/{Publish-jx0_H_26.js → Publish-BktK_PKq.js} +29 -29
  23. package/dist/{Recipe-Dk04ge-_.js → Recipe-eA0xrGYk.js} +24 -24
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DaCVUn1i.js → RuleView.vue_vue_type_script_setup_true_lang-t8M7z09s.js} +2 -2
  25. package/dist/{Scheduler-vFTvCVcY.js → Scheduler-CKSqPZLQ.js} +11 -11
  26. package/dist/{ServingSequence-DiBqQ_iS.js → ServingSequence-Ea20baNj.js} +44 -44
  27. package/dist/{Setting-CtzJ_pVM.js → Setting-u6lX_Dzg.js} +17 -17
  28. package/dist/{Subcategory-Cmv2W67T.js → Subcategory-C6s7OMOb.js} +51 -51
  29. package/dist/{Takeaway-DBW4UPFZ.js → Takeaway-B9kr-Nf4.js} +13 -13
  30. package/dist/{Takeaway-ChaYk0Ix.js → Takeaway-lWxS9oWe.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C7RL3ITP.js → Takeaway.vue_vue_type_script_setup_true_lang-oA0e9oI5.js} +54 -54
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-edwJ1203.js → Thumbnail.vue_vue_type_script_setup_true_lang-T40ChY7j.js} +27 -27
  33. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-CcIGCUwk.js +194 -0
  34. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B1e3d-uX.js +6130 -0
  35. package/dist/{Unit-BgLqPMLe.js → Unit-DkQlUg2l.js} +8 -8
  36. package/dist/{Variant-B8yxF5mJ.js → Variant-BF5r2WLL.js} +25 -25
  37. package/dist/{_id_-CDN7as0K.js → _id_-_oqk-OhC.js} +28 -28
  38. package/dist/app-CfCYl2pO.js +363 -0
  39. package/dist/{app-0AQBxO0B.js → app-DIYHNWEw.js} +1 -1
  40. package/dist/app.js +1 -1
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-DTIHdzDw.js → linked-status-AoXjo9FF.js} +2 -2
  43. package/dist/assets/{menu-export-CpcyYnR-.js → menu-export-BHcaWhM3.js} +2 -2
  44. package/dist/assets/{override-menu-CASoFjhZ.js → override-menu-B9xQcjuJ.js} +2 -2
  45. package/dist/assets/{validate-menu-C5AkexWv.js → validate-menu-D-ezd4W8.js} +2 -2
  46. package/dist/{catalog-BA1e4WAu.js → catalog-CvN9Wu8V.js} +1 -1
  47. package/dist/{catalogSetting-DE5rjVfj.js → catalogSetting-qS5Np22q.js} +1 -1
  48. package/dist/{currency-D5qYOpxI.js → currency-Nxod6uwl.js} +1 -1
  49. package/dist/dayjs.min-B1AjAGva.js +6 -0
  50. package/dist/index-C0Zw1cSS.js +545 -0
  51. package/dist/{index-vPs04fVf.js → index-Cq-czJjU.js} +31 -31
  52. package/dist/index-nKlYiotY.js +246 -0
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-DSZsSghE.js → index.vue_vue_type_script_setup_true_lang-YXKayPEp.js} +103 -78
  54. package/dist/{item-Dp17qTYi.js → item-CUZSonzT.js} +2587 -2587
  55. package/dist/{jszip.min-DlpCmtaR.js → jszip.min-BnkZQ6lD.js} +6 -7
  56. package/dist/{menu-BOVrJ7di.js → menu-BP_ArXCI.js} +1 -1
  57. package/dist/{menuV2-BHnldQiM.js → menuV2-BGEYgQ8-.js} +59 -59
  58. package/dist/{priceTier-BRQz1GRF.js → priceTier-B-Qa0xaO.js} +1 -1
  59. package/dist/{rules-CO49kqfr.js → rules-Dchd_ilF.js} +12 -12
  60. package/dist/{scheduler-BDHjl8t7.js → scheduler-DN7ZGLk8.js} +29 -29
  61. package/dist/{toExcel-DGdZKSxT.js → toExcel-jHmkDqcm.js} +2 -2
  62. package/dist/{translation-BCZ1Ruvv.js → translation-Cdap0IVg.js} +21 -35
  63. package/dist/{unit-D7QVgTp_.js → unit-DgL56pkI.js} +35 -35
  64. package/package.json +1 -1
  65. package/dist/Products-BR3iBVFd.js +0 -307
  66. package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-I6qrPmxY.js +0 -144
  67. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-Cs6s_csi.js +0 -196
  68. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DIbjlDVn.js +0 -5767
  69. package/dist/app-BU6wILmn.js +0 -2286
  70. package/dist/dayjs.min-BFDAHpA8.js +0 -7
  71. package/dist/index--nQbIQ0d.js +0 -545
@@ -1,14 +1,14 @@
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";
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";
2
2
  import { useRouter as ce } from "vue-router";
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-DSZsSghE.js";
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-YXKayPEp.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 T, useBreakpoints as fe } from "@feedmepos/ui-library";
5
+ import { useSnackbar as ne, components as Y, useDialog as _e, FmButtonVariant as A, 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-BU6wILmn.js";
7
+ import { _ as ve, R as he } from "./app-CfCYl2pO.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-0AQBxO0B.js";
11
+ import { u as xe } from "./app-DIYHNWEw.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 = L(
22
- p.initialValue ? J(p.initialValue) : {
21
+ const { t: r } = ee(), p = K, R = N, s = I(
22
+ p.initialValue ? Q(p.initialValue) : {
23
23
  _id: "",
24
24
  name: "",
25
25
  position: 0,
26
26
  items: []
27
27
  }
28
- ), C = W(), i = ne(), B = X(i), q = Z(B), c = L(!1), u = L(!1), _ = (f) => {
28
+ ), C = W(), i = ne(), D = X(i), q = Z(D), c = I(!1), u = I(!1), _ = (f) => {
29
29
  ye.isBoolean(f) ? u.value = f : u.value = !u.value;
30
- }, E = O(() => p.action === "add" ? r("menu.serving_sequence.add") : r("menu.serving_sequence.update"));
31
- async function D() {
30
+ }, E = L(() => p.action === "add" ? r("menu.serving_sequence.add") : r("menu.serving_sequence.update"));
31
+ async function P() {
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: I.F_OPERATION_TYPE.create,
37
+ operation: O.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: I.F_OPERATION_TYPE.update,
49
+ operation: O.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 P(f) {
64
+ function U(f) {
65
65
  return f.reduce((a, v) => (a[v._id] = [...a[v._id] ?? [], v], a), {});
66
66
  }
67
- const U = O(() => P(J(s.value.items)));
67
+ const B = L(() => U(Q(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: D,
78
+ onValidationSuccess: P,
79
79
  blameFormChildOnValidationFailed: !0
80
80
  },
81
81
  "max-width": 560
82
82
  }, {
83
83
  "side-sheet-header": m(() => [
84
- y("p", Ce, A(E.value), 1)
84
+ y("p", Ce, z(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: U.value,
119
+ data: B.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
- }), z = Ve, we = {
132
+ }), T = 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__ */ Q(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
140
- }, Le = ["onClick"], Oe = {
139
+ class: /* @__PURE__ */ J(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
140
+ }, Ie = ["onClick"], Le = {
141
141
  class: "flex-1 space-y-4"
142
- }, Ie = {
142
+ }, Oe = {
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
- }, Je = /* @__PURE__ */ H({
146
+ }, Qe = /* @__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(), B = xe(), q = ce(), {
152
+ } = ke(), r = W(), p = ne(), R = X(p), s = Z(R), C = _e(), i = pe(), D = 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 && B.getPublicSetting();
168
+ e && D.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 _ = O(() => r.serveSequence.filter(({
176
+ const _ = L(() => 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: T.Destructive
186
+ variant: A.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: I.F_OPERATION_TYPE.delete,
195
+ operation: O.F_OPERATION_TYPE.delete,
196
196
  data: e._id
197
197
  }, e.name, !0);
198
198
  });
199
199
  }
200
- const D = ({
200
+ const P = ({
201
201
  servingSequence: e
202
202
  }) => $(Y.FmButton, {
203
203
  prependIcon: "delete",
204
- variant: T.Tertiary,
204
+ variant: A.Tertiary,
205
205
  textColor: "neutral-gray-400",
206
206
  onClick: (n) => {
207
207
  n.stopPropagation(), E(e);
208
208
  }
209
209
  });
210
- async function P(e) {
210
+ async function U(e) {
211
211
  await s.updateMenu({
212
212
  module: S.F_MENU_MODULE_V4_KEY.enum.serveSequence,
213
- operation: I.F_OPERATION_TYPE.rearrange,
213
+ operation: O.F_OPERATION_TYPE.rearrange,
214
214
  data: e.map((n) => n._id)
215
215
  }, "sequences");
216
216
  }
217
- const U = L([{
217
+ const B = I([{
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: T.Tertiary,
239
+ variant: A.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(z, f, {
251
+ } = Se(T, 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 = O(() => v.breakpoints.value.xs);
261
+ const v = fe(), V = L(() => 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(z), {
270
+ }, [l(k), l(t(T), {
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: Q(["py-12 px-16", "flex items-center space-x-8"]),
297
+ class: J(["py-12 px-16", "flex items-center space-x-8"]),
298
298
  onClick: (Re) => a(o)
299
- }, [y("div", Oe, [y("p", Ie, A(o.name), 1), y("p", Ne, A(t(c)("menu.common.labels.products_linked", {
299
+ }, [y("div", Le, [y("p", Oe, z(o.name), 1), y("p", Ne, z(t(c)("menu.common.labels.products_linked", {
300
300
  count: o.items.length
301
- })), 1)]), l(D, {
301
+ })), 1)]), l(P, {
302
302
  servingSequence: o
303
- }, null, 8, ["servingSequence"])], 8, Le))), 128))])) : (d(), j(ve, {
303
+ }, null, 8, ["servingSequence"])], 8, Ie))), 128))])) : (d(), j(ve, {
304
304
  key: 0
305
305
  }, {
306
306
  default: m(() => [l(te, {
307
- "column-defs": U.value,
307
+ "column-defs": B.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) => P(o)),
317
+ onDndChanged: n[1] || (n[1] = (o) => U(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(z), {
325
+ action: m(() => [l(t(T), {
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
- Je as default
345
+ Qe 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, B as ce, y as f, O as de, z as pe, G as w } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
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-YXKayPEp.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-DaCVUn1i.js";
7
- import { _ as z, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CBz83Qd1.js";
8
- import { C as _, a as x } from "./catalogSetting-DE5rjVfj.js";
9
- import { C as xe } from "./catalog-BA1e4WAu.js";
6
+ import { _ as ye } from "./RuleView.vue_vue_type_script_setup_true_lang-t8M7z09s.js";
7
+ import { _ as z, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D83liryu.js";
8
+ import { C as _, a as x } from "./catalogSetting-qS5Np22q.js";
9
+ import { C as xe } from "./catalog-CvN9Wu8V.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(), T = ce(j), {
32
+ const F = ve(), u = me(), j = fe(), A = ce(j), {
33
33
  minor: q
34
- } = T, G = _e(), {
34
+ } = A, 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(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", {
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", {
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 K(t) {
65
+ function Y(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
- }), Q = async () => {
79
+ }), K = 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: Q
106
+ onValidationSuccess: K
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) => !W.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) => !Q.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(A)]),
117
+ }, null, 8, ["modelValue", "rules", "label"]), s(T)]),
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
- K({
144
+ Y({
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(A, {
246
+ }, null, 8, ["modelValue", "is-main-catalog", "is-v4"]), b.value ? (r(), g(T, {
247
247
  key: 3
248
248
  })) : k("", !0)]), v("div", he, [s(h, {
249
249
  label: e(n)("common.save"),
@@ -1,18 +1,18 @@
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 I, renderSlot as oe, createVNode as m, unref as n, withCtx as y, createElementVNode as c, renderList as Q, toDisplayString as M, h as T, withModifiers as q, getCurrentInstance as ne, createBlock as U, createCommentVNode as le } from "vue";
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 A, renderSlot as oe, createVNode as m, unref as n, withCtx as y, createElementVNode as c, renderList as H, toDisplayString as T, h as N, withModifiers as J, 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 P, components as W, useDialog as X, FmButtonVariant as G, useBreakpoints as se, FmButtonColorThemeVariant as ie } from "@feedmepos/ui-library";
3
+ import { useSnackbar as P, 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 { B as Y, u as J, O as K, J as Z, y as ee, a2 as ce } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
5
+ import { G as Y, u as K, Q as G, M as Z, A as ee, a4 as ce } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
6
6
  import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as me } from "./app-BU6wILmn.js";
7
+ import { _ as me } from "./app-CfCYl2pO.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 H } from "./object-DVUNCr7w.js";
11
- import { r as _e, u as ae } from "./rules-CO49kqfr.js";
12
- import { _ as fe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-Cs6s_csi.js";
10
+ import { c as Q } from "./object-DVUNCr7w.js";
11
+ import { r as _e, u as ae } from "./rules-Dchd_ilF.js";
12
+ import { _ as fe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CcIGCUwk.js";
13
13
  import { c as ve } from "./check-C9mY6LiX.js";
14
- import { g as z } from "./translation-BCZ1Ruvv.js";
15
- import { a as ge } from "./menu-BOVrJ7di.js";
14
+ import { g as I } from "./translation-Cdap0IVg.js";
15
+ import { a as ge } from "./menu-BP_ArXCI.js";
16
16
  const ye = {
17
17
  class: "fm-typo-en-title-md-600"
18
18
  }, be = {
@@ -21,30 +21,30 @@ const ye = {
21
21
  class: "py-12 px-16 space-y-4"
22
22
  }, xe = {
23
23
  class: "flex gap-8 items-center justify-start"
24
- }, Ce = /* @__PURE__ */ A({
24
+ }, Ce = /* @__PURE__ */ z({
25
25
  __name: "Form",
26
26
  props: {
27
27
  initialValue: {}
28
28
  },
29
- setup(B, {
29
+ setup(D, {
30
30
  expose: w
31
31
  }) {
32
- const h = B, S = P(), F = Y(S), E = K(F), d = J(), {
32
+ const h = D, S = P(), F = Y(S), E = G(F), d = K(), {
33
33
  t: l
34
- } = R(), L = x(!1), o = x(!1), $ = x(!1), u = x(void 0), N = (e) => {
34
+ } = R(), L = x(!1), o = x(!1), $ = x(!1), u = x(void 0), M = (e) => {
35
35
  ve.isBoolean(e) ? o.value = e : o.value = !o.value;
36
- }, s = x(H(h.initialValue)), O = V(() => !!s.value.name), D = V(() => {
36
+ }, s = x(Q(h.initialValue)), O = V(() => !!s.value.name), B = V(() => {
37
37
  var b;
38
38
  const e = [], t = "en-US", a = (b = u.value) == null ? void 0 : b[t];
39
39
  return s.value.name && !a && e.push({
40
40
  locale: t,
41
41
  name: s.value.name,
42
- localeDisplay: z(t)
42
+ localeDisplay: I(t)
43
43
  }), u.value && Object.entries(u.value).filter(([g, f]) => f && f.trim()).sort(([g], [f]) => g.localeCompare(f)).forEach(([g, f]) => {
44
44
  e.push({
45
45
  locale: g,
46
46
  name: f,
47
- localeDisplay: z(g)
47
+ localeDisplay: I(g)
48
48
  });
49
49
  }), e;
50
50
  });
@@ -75,20 +75,20 @@ const ye = {
75
75
  name_locale: u.value
76
76
  }
77
77
  }
78
- }, s.value.name), N(!1);
78
+ }, s.value.name), M(!1);
79
79
  }
80
80
  return te(() => o.value, () => {
81
81
  if (!o.value) return;
82
- s.value = H(h.initialValue);
82
+ s.value = Q(h.initialValue);
83
83
  const e = d.subcategories.find((t) => t._id === s.value._id);
84
84
  u.value = e == null ? void 0 : e.name_locale;
85
85
  }), w({
86
- trigger: N,
86
+ trigger: M,
87
87
  show: o
88
88
  }), (e, t) => {
89
89
  const a = C("fm-button"), b = C("FmTooltip"), g = C("FmTextField"), f = C("fm-side-sheet");
90
- return p(), k(I, null, [oe(e.$slots, "default", {
91
- trigger: N
90
+ return p(), k(A, null, [oe(e.$slots, "default", {
91
+ trigger: M
92
92
  }), m(f, {
93
93
  id: "group-form",
94
94
  modelValue: o.value,
@@ -101,7 +101,7 @@ const ye = {
101
101
  "max-width": 560,
102
102
  "onOn:clickedAway": n(r)
103
103
  }, {
104
- "side-sheet-header": y(() => [c("p", ye, M(n(l)("menu.subcategory.title")), 1)]),
104
+ "side-sheet-header": y(() => [c("p", ye, T(n(l)("menu.subcategory.title")), 1)]),
105
105
  "side-sheet-footer": y(() => [c("div", xe, [m(a, {
106
106
  label: n(l)("menu.common.actions.update"),
107
107
  loading: L.value,
@@ -127,9 +127,9 @@ const ye = {
127
127
  placement: "top",
128
128
  "z-index": 999
129
129
  }, {
130
- content: y(() => [c("div", he, [(p(!0), k(I, null, Q(D.value, (v) => (p(), k("div", {
130
+ content: y(() => [c("div", he, [(p(!0), k(A, null, H(B.value, (v) => (p(), k("div", {
131
131
  key: v.locale
132
- }, M(v.name) + " (" + M(v.localeDisplay) + ") ", 1))), 128))])]),
132
+ }, T(v.name) + " (" + T(v.localeDisplay) + ") ", 1))), 128))])]),
133
133
  default: y(() => [m(a, {
134
134
  variant: "tertiary",
135
135
  icon: "g_translate",
@@ -165,17 +165,17 @@ const ye = {
165
165
  class: "p-8"
166
166
  }, Se = {
167
167
  class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
168
- }, Ee = ["onClick"], Ne = {
168
+ }, Ee = ["onClick"], Me = {
169
169
  class: "flex-1 space-y-4"
170
- }, Te = {
170
+ }, Ne = {
171
171
  class: "fm-typo-en-body-lg-600"
172
- }, Me = /* @__PURE__ */ A({
172
+ }, Te = /* @__PURE__ */ z({
173
173
  __name: "SubcategoryTable",
174
- setup(B) {
175
- const w = X(), h = P(), S = Y(h), F = K(S), E = ae({
174
+ setup(D) {
175
+ const w = X(), h = P(), S = Y(h), F = G(S), E = ae({
176
176
  dialog: w,
177
177
  menuLoader: F
178
- }), d = V(() => J().subcategories), l = x(""), L = V(() => d.value.filter((i) => i.name.toLowerCase().includes(l.value.toLowerCase()))), {
178
+ }), d = V(() => K().subcategories), l = x(""), L = V(() => d.value.filter((i) => i.name.toLowerCase().includes(l.value.toLowerCase()))), {
179
179
  t: o
180
180
  } = R(), $ = x([{
181
181
  accessorKey: "name",
@@ -185,12 +185,12 @@ const ye = {
185
185
  width: "auto"
186
186
  },
187
187
  cell: (i) => {
188
- const r = i.row.original, _ = i.getValue(), t = Object.keys(r.name_locale ?? {}).map((a) => z(a));
189
- return T("div", {
188
+ const r = i.row.original, _ = i.getValue(), t = Object.keys(r.name_locale ?? {}).map((a) => I(a));
189
+ return N("div", {
190
190
  class: "flex items-center gap-8"
191
- }, [T("span", {
191
+ }, [N("span", {
192
192
  class: "break-all"
193
- }, _), ...t.map((a) => T("div", {
193
+ }, _), ...t.map((a) => N("div", {
194
194
  class: "rounded-lg border border-fm-color-primary text-fm-color-primary flex items-center justify-center fm-typo-en-body-sm-600 px-8"
195
195
  }, a))]);
196
196
  }
@@ -204,14 +204,14 @@ const ye = {
204
204
  header: "",
205
205
  cell: (i) => {
206
206
  const r = i.row.original;
207
- return T("div", {
207
+ return N("div", {
208
208
  class: "flex justify-end"
209
- }, [T(W.FmButton, {
209
+ }, [N(W.FmButton, {
210
210
  icon: "delete",
211
211
  disabled: !r._id,
212
212
  variant: "tertiary",
213
213
  textColor: "neutral-gray-400",
214
- onClick: q(async () => {
214
+ onClick: J(async () => {
215
215
  await u(r);
216
216
  }, ["stop", "prevent"])
217
217
  })]);
@@ -233,7 +233,7 @@ const ye = {
233
233
  primaryActions: {
234
234
  text: "Remove",
235
235
  close: !0,
236
- variant: G.Destructive
236
+ variant: q.Destructive
237
237
  },
238
238
  secondaryActions: {
239
239
  text: "Cancel",
@@ -247,7 +247,7 @@ const ye = {
247
247
  }, i.name, !0);
248
248
  });
249
249
  }
250
- async function N(i) {
250
+ async function M(i) {
251
251
  const r = i.map((_) => _._id).filter((_) => !!_);
252
252
  await E.rearrange(r);
253
253
  }
@@ -257,7 +257,7 @@ const ye = {
257
257
  initialValue: i
258
258
  });
259
259
  }
260
- const D = se(), j = V(() => D.breakpoints.value.xs);
260
+ const B = se(), j = V(() => B.breakpoints.value.xs);
261
261
  return (i, r) => {
262
262
  const _ = C("FmSearch"), e = C("FmTable"), t = C("FmButton");
263
263
  return j.value ? (p(), k("div", Le, [c("div", $e, [m(_, {
@@ -268,16 +268,16 @@ const ye = {
268
268
  placeholder: n(o)("menu.common.labels.search_placeholder", {
269
269
  type: "categories"
270
270
  })
271
- }, null, 8, ["modelValue", "placeholder"])]), c("div", Se, [(p(!0), k(I, null, Q(L.value, (a) => (p(), k("div", {
271
+ }, null, 8, ["modelValue", "placeholder"])]), c("div", Se, [(p(!0), k(A, null, H(L.value, (a) => (p(), k("div", {
272
272
  key: a._id || "",
273
273
  class: "flex flex-row py-12 px-16",
274
274
  onClick: (b) => O(a)
275
- }, [c("div", Ne, [c("p", Te, M(a.name), 1)]), m(t, {
275
+ }, [c("div", Me, [c("p", Ne, T(a.name), 1)]), m(t, {
276
276
  "text-color": n(ie).NeutralGray400,
277
- variant: n(G).Tertiary,
277
+ variant: n(q).Tertiary,
278
278
  "prepend-icon": "delete",
279
279
  disabled: !a._id,
280
- onClick: q((b) => u(a), ["stop"])
280
+ onClick: J((b) => u(a), ["stop"])
281
281
  }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ee))), 128))])])) : (p(), k("div", Ve, [c("div", we, [c("div", Fe, [m(_, {
282
282
  modelValue: l.value,
283
283
  "onUpdate:modelValue": r[0] || (r[0] = (a) => l.value = a),
@@ -296,17 +296,17 @@ const ye = {
296
296
  "shrink-at": !1,
297
297
  "hide-footer": "",
298
298
  "pin-header-row": "",
299
- onDndChanged: N,
299
+ onDndChanged: M,
300
300
  onRowClick: r[1] || (r[1] = (a) => O(a.original))
301
301
  }, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
302
302
  _: 1
303
303
  })]));
304
304
  };
305
305
  }
306
- }), Oe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ue = { class: "flex items-center" }, Be = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, De = { class: "fm-typo-en-body-md-600 font-semibold" }, Ze = /* @__PURE__ */ A({
306
+ }), Oe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ue = { class: "flex items-center" }, De = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Be = { class: "fm-typo-en-body-md-600 font-semibold" }, Ze = /* @__PURE__ */ z({
307
307
  __name: "Subcategory",
308
- setup(B) {
309
- const w = X(), h = P(), S = Y(h), F = K(S), E = ae({ dialog: w, menuLoader: F }), d = V(() => J().subcategories), { t: l } = R();
308
+ setup(D) {
309
+ const w = X(), h = P(), S = Y(h), F = G(S), E = ae({ dialog: w, menuLoader: F }), d = V(() => K().subcategories), { t: l } = R();
310
310
  function L() {
311
311
  E.create();
312
312
  }
@@ -315,7 +315,7 @@ const ye = {
315
315
  heading: n(l)("menu.subcategory.title")
316
316
  }, {
317
317
  default: y(() => [
318
- d.value.length > 0 ? (p(), U(Me, { key: 0 })) : (p(), U(n(ce), {
318
+ d.value.length > 0 ? (p(), U(Te, { key: 0 })) : (p(), U(n(ce), {
319
319
  key: 1,
320
320
  action: {
321
321
  text: n(l)("menu.subcategory.add"),
@@ -328,8 +328,8 @@ const ye = {
328
328
  "append-heading": y(() => [
329
329
  c("div", Oe, [
330
330
  c("div", Ue, [
331
- c("div", Be, [
332
- c("p", De, M(o.value), 1)
331
+ c("div", De, [
332
+ c("p", Be, T(o.value), 1)
333
333
  ])
334
334
  ]),
335
335
  d.value.length > 0 ? (p(), U(re, {