@feedmepos/mf-menu 0.32.41-dev → 0.32.41-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 (66) hide show
  1. package/dist/{App-BBcgfTlG.js → App-mCGGnjeS.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-OrSFDz8s.js → ApplyProduct.vue_vue_type_script_setup_true_lang-MWoYiClD.js} +3 -3
  3. package/dist/{Catalog-16-XsXPU.js → Catalog-CM2wnQ4l.js} +44 -44
  4. package/dist/{Category-CTntkYfO.js → Category-Bp9tGWwJ.js} +24 -24
  5. package/dist/{Category-CZGmamNx.js → Category-bsL9IQ5n.js} +24 -24
  6. package/dist/{CookingGuide-DbMIe9_K.js → CookingGuide-Cy0Kt6Ys.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-KbbZAmIv.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CX4s7NYy.js} +1 -1
  8. package/dist/{Group-DIIuJACV.js → Group-0hMArGNs.js} +1 -1
  9. package/dist/{Group-BZd7YYFK.js → Group-BKFZMvZg.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BrjgJ3NE.js → Group.vue_vue_type_script_setup_true_lang-st4plK2R.js} +18 -18
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DxjmWrLI.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-8zW2KIMn.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DOaMHGe_.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-UhuYuL-A.js} +2986 -2985
  13. package/dist/{Ingredient-Bmt5K9iD.js → Ingredient-CvE0xujL.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-GsuKEhFQ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-iEhZ4_5G.js} +2 -2
  15. package/dist/{LinkProductSideSheet-bUXGmrKI.js → LinkProductSideSheet-CbppLDSB.js} +45 -45
  16. package/dist/{MenuSetting-BX0ptcTg.js → MenuSetting-CQ9HnQKx.js} +47 -47
  17. package/dist/{PrintRoute-Diwh3HTz.js → PrintRoute-Cc81zV6Q.js} +39 -39
  18. package/dist/{Product-Dujeig8N.js → Product-kFoTn7zI.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CYkZCser.js → Product.vue_vue_type_script_setup_true_lang-BVF9SBEL.js} +128 -128
  20. package/dist/{ProductInternalTools-klTjOQCE.js → ProductInternalTools-CwxPRqTy.js} +66 -66
  21. package/dist/Products-IBe-R8XN.js +334 -0
  22. package/dist/{Publish-NZPrvmyi.js → Publish-BE-PPNO8.js} +29 -29
  23. package/dist/{Recipe-Dlw0C6gW.js → Recipe-Ddts2It2.js} +24 -24
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CYx6T762.js → RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js} +295 -295
  25. package/dist/{Scheduler-DsQdgoLu.js → Scheduler-CqP0Ha2K.js} +11 -11
  26. package/dist/{ServingSequence-B9z8EaGP.js → ServingSequence-WpneAUiB.js} +44 -44
  27. package/dist/{Setting-ec0DdRF7.js → Setting-CNGZaUUT.js} +17 -17
  28. package/dist/{Subcategory-ChpQhSVG.js → Subcategory-BVN0OH_q.js} +51 -51
  29. package/dist/{Takeaway-D3FlVQp7.js → Takeaway-BtnGTcvW.js} +1 -1
  30. package/dist/{Takeaway-D4DEkAmo.js → Takeaway-LFslRotB.js} +13 -13
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DSao2Kxm.js → Takeaway.vue_vue_type_script_setup_true_lang-CJZfd5JB.js} +28 -28
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Deu4-qaj.js → Thumbnail.vue_vue_type_script_setup_true_lang-CI8eK98T.js} +27 -27
  33. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-Dglm0-9O.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CfA400oN.js} +4 -4
  34. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DVJb9jBY.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-SNBrW4Or.js} +12 -12
  35. package/dist/{Unit-odR08MnE.js → Unit-kL0Wjfb6.js} +8 -8
  36. package/dist/{Variant-4KiJoM6w.js → Variant-Cj82yGYE.js} +24 -24
  37. package/dist/{_id_-Catkkx7h.js → _id_-B-guZ25K.js} +28 -28
  38. package/dist/app-D4se7Sr4.js +1643 -0
  39. package/dist/{app-Ba81wWHP.js → app-DiVDYcc9.js} +1 -1
  40. package/dist/app.js +2 -2
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-pcUpPyqX.js → linked-status-C4nECq-3.js} +2 -2
  43. package/dist/assets/{menu-export-jKixYJMZ.js → menu-export-PPICN1VA.js} +2 -2
  44. package/dist/assets/{override-menu-B7PRcoFy.js → override-menu-BaYdZfDk.js} +2 -2
  45. package/dist/assets/{validate-menu-BP-GZf3a.js → validate-menu-DCyVSa7R.js} +2 -2
  46. package/dist/{catalog-DzVVQnuB.js → catalog-BTsgJdVe.js} +1 -1
  47. package/dist/{catalogSetting-CVpP5Ffj.js → catalogSetting-BNYPChMH.js} +1 -1
  48. package/dist/{currency-BvFATAPr.js → currency-2KuoTCt5.js} +1 -1
  49. package/dist/dayjs.min-BE8PtbAQ.js +7 -0
  50. package/dist/{index-DX-MOpoZ.js → index-GaHNc4iH.js} +43 -43
  51. package/dist/{index-BxTVwMqI.js → index-UthDVOpX.js} +31 -31
  52. package/dist/{index-CLbcP_tB.js → index-fLVJt8Pt.js} +1 -1
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-kAgODQk6.js → index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js} +242 -267
  54. package/dist/{item-DybTsHw-.js → item-DYsNPLH9.js} +14 -14
  55. package/dist/{jszip.min-BqfTPXF5.js → jszip.min-CLQSAAHL.js} +388 -387
  56. package/dist/{menu-DM97MTPH.js → menu-Btb1sPTh.js} +1 -1
  57. package/dist/{menuV2-MAWvzZYI.js → menuV2-Bfj5ljzI.js} +71 -71
  58. package/dist/{priceTier-DtbwffZ8.js → priceTier-DHp_DiBo.js} +1 -1
  59. package/dist/{rules-DjL44XM2.js → rules-B5QEx6OC.js} +11 -11
  60. package/dist/{scheduler-DdfAPCOy.js → scheduler-CI-LJfho.js} +29 -29
  61. package/dist/{toExcel-Bj7g8zi5.js → toExcel-CHdQxEnw.js} +2 -2
  62. package/dist/{unit-SsjSaoZy.js → unit-D53f5n16.js} +35 -35
  63. package/package.json +2 -1
  64. package/dist/Products-DrWglbo9.js +0 -291
  65. package/dist/app-DmWoLe5_.js +0 -363
  66. package/dist/dayjs.min-BdQPTGQm.js +0 -6
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as N, computed as y, h as p, withModifiers as U, ref as V, resolveComponent as _, createBlock as k, openBlock as i, unref as d, withCtx as h, createElementBlock as D, createVNode as f, Fragment as H, createElementVNode as s, renderList as T, toDisplayString as S, createCommentVNode as I } from "vue";
2
- import { A as c, Q as W, u as Q, G, a4 as J } from "./index.vue_vue_type_script_setup_true_lang-kAgODQk6.js";
2
+ import { y as c, O as W, u as Q, B as G, a2 as J } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
3
3
  import { useI18n as X } from "@feedmepos/mf-common";
4
4
  import { components as Z, useDialog as ee, useSnackbar as te } from "@feedmepos/ui-library";
5
5
  import { _ as ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
6
- import { _ as ae } from "./app-DmWoLe5_.js";
7
- import { d as oe, _ as le, u as se, c as re } from "./scheduler-DdfAPCOy.js";
6
+ import { _ as ae } from "./app-D4se7Sr4.js";
7
+ import { d as oe, _ as le, u as se, c as re } from "./scheduler-CI-LJfho.js";
8
8
  import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
9
9
  const ce = {
10
10
  class: "flex flex-1 justify-end"
@@ -75,7 +75,7 @@ const ce = {
75
75
  outline: !0,
76
76
  color: "neutral-gray-400",
77
77
  onClick: U(() => {
78
- A(e.row.original);
78
+ j(e.row.original);
79
79
  }, ["stop", "prevent"])
80
80
  })])
81
81
  }]), r = {
@@ -115,12 +115,12 @@ const ce = {
115
115
  var t;
116
116
  C.value || (t = x.value) == null || t.show(e);
117
117
  }
118
- const q = ee();
119
- function A(e) {
118
+ const O = ee();
119
+ function j(e) {
120
120
  let t = [p("span", a("menu.scheduler.dialogs.remove.message", {
121
121
  name: e.name
122
122
  }))];
123
- q.open({
123
+ O.open({
124
124
  title: a("menu.scheduler.dialogs.remove.title"),
125
125
  contentComponent: p("div", t),
126
126
  primaryActions: {
@@ -136,11 +136,11 @@ const ce = {
136
136
  await w.updateMenu(oe(e), e.name, !0);
137
137
  });
138
138
  }
139
- async function O(e) {
139
+ async function q(e) {
140
140
  const t = e._id ? se(e) : re(e);
141
141
  await w.updateMenu(t, e.name);
142
142
  }
143
- const j = Q(), B = y(() => j.categorizedRawMenuItems), m = y(() => j.state.menu.modules.scheduler), w = W(G(te())), C = y(() => w.checkMenuIsLoading()), g = V(""), K = y(() => {
143
+ const A = Q(), B = y(() => A.categorizedRawMenuItems), m = y(() => A.state.menu.modules.scheduler), w = W(G(te())), C = y(() => w.checkMenuIsLoading()), g = V(""), K = y(() => {
144
144
  const e = g.value.toLowerCase();
145
145
  return e ? m.value.filter((t) => t.name.toLowerCase().includes(e)) : m.value;
146
146
  });
@@ -203,7 +203,7 @@ const ce = {
203
203
  icon: "delete",
204
204
  variant: "tertiary",
205
205
  "text-color": "neutral-gray-400",
206
- onClick: U(() => A(n), ["stop"])
206
+ onClick: U(() => j(n), ["stop"])
207
207
  }, null, 8, ["onClick"])]),
208
208
  _: 2
209
209
  }, 1032, ["label", "onClick"]))), 128))]),
@@ -212,7 +212,7 @@ const ce = {
212
212
  ref_key: "schedulerDialogRef",
213
213
  ref: x,
214
214
  "categorized-items": B.value,
215
- onOnComplete: O
215
+ onOnComplete: q
216
216
  }, null, 8, ["categorized-items"])]),
217
217
  _: 1
218
218
  }, 8, ["heading"]);
@@ -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-kAgODQk6.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-CsnEYmWv.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-DmWoLe5_.js";
7
+ import { _ as ve, R as he } from "./app-D4se7Sr4.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-Ba81wWHP.js";
11
+ import { u as xe } from "./app-DiVDYcc9.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-kAgODQk6.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-CsnEYmWv.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-CYx6T762.js";
7
- import { _ as z, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DxjmWrLI.js";
8
- import { C as _, a as x } from "./catalogSetting-CVpP5Ffj.js";
9
- import { C as xe } from "./catalog-DzVVQnuB.js";
6
+ import { _ as ye } from "./RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js";
7
+ import { _ as z, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-8zW2KIMn.js";
8
+ import { C as _, a as x } from "./catalogSetting-BNYPChMH.js";
9
+ import { C as xe } from "./catalog-BTsgJdVe.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"),