@feedmepos/mf-menu 0.31.17-dev → 0.31.17

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 (67) hide show
  1. package/dist/{App-Bi92tsdR.js → App-C0zWv8Bb.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C3rIskDF.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BlBfa-ly.js} +2 -2
  3. package/dist/{Catalog-d_9KGaWO.js → Catalog-hTR0c1zS.js} +18 -18
  4. package/dist/{Category-DCjOc3ks.js → Category-BTpAWhsI.js} +36 -36
  5. package/dist/{Category-BO0EYYGP.js → Category-CxDoeXi_.js} +24 -24
  6. package/dist/{CookingGuide-B3YHoKP-.js → CookingGuide-C87lhZ67.js} +56 -56
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B454jEg0.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BEKiJBLy.js} +1 -1
  8. package/dist/{Group-BTmRo5b4.js → Group-D1kUgRjF.js} +3 -3
  9. package/dist/{Group-Cj39szTY.js → Group-Dad3CsPD.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-CIZithwK.js → Group.vue_vue_type_script_setup_true_lang-C-AS_gUD.js} +54 -54
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DubOzDU3.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dz9BUoZe.js} +6 -6
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C2TnjKpu.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BfZuETkY.js} +317 -317
  13. package/dist/{Ingredient-BTV0a-Tz.js → Ingredient-CL0V9EvP.js} +52 -52
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C7X1K-jY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BFTt-8OI.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-Cyb0Eex4.js → LinkProductSideSheet-CWMNlFCF.js} +14 -14
  16. package/dist/{MenuSetting-DozrYwzG.js → MenuSetting-DA35bTTq.js} +11 -11
  17. package/dist/{PrintRoute-B2kOXN6N.js → PrintRoute-B49FDrP6.js} +26 -26
  18. package/dist/{Product-DCqWb9i2.js → Product-CBGfSsYA.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DFaQiLsv.js → Product.vue_vue_type_script_setup_true_lang-B3kyqD2S.js} +113 -113
  20. package/dist/ProductInternalTools-DiISILIn.js +415 -0
  21. package/dist/Products-BDvqmjZI.js +270 -0
  22. package/dist/{Publish-BzreviuZ.js → Publish-1zBRSD7U.js} +37 -37
  23. package/dist/{Recipe-BgJFJ4Dx.js → Recipe-D0VAcSN-.js} +25 -25
  24. package/dist/{Scheduler-Xp0G2vel.js → Scheduler-8BDLlHCV.js} +13 -13
  25. package/dist/{ServingSequence-CzA1hyup.js → ServingSequence-Bh3DhN3i.js} +36 -36
  26. package/dist/{Setting-DAkorx7V.js → Setting-BdSJCn6q.js} +24 -24
  27. package/dist/{Subcategory-BCbM_yd4.js → Subcategory-CBfEsTKy.js} +39 -39
  28. package/dist/{Takeaway-DKpjh1Ij.js → Takeaway-WPQ-ow5H.js} +1 -1
  29. package/dist/{Takeaway-DtnIyLkz.js → Takeaway-aLJ1QKbm.js} +12 -12
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-PAB0AAfO.js → Takeaway.vue_vue_type_script_setup_true_lang-ZYP7hH6p.js} +25 -25
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CDABZaRa.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-aHMZigPA.js} +116 -116
  32. package/dist/{Unit-Da9V4qF7.js → Unit-Csan3-PW.js} +8 -8
  33. package/dist/{Variant-ONSE3GDp.js → Variant-aYCqqz9A.js} +18 -18
  34. package/dist/{_id_-Dlu5oAk9.js → _id_-BL-Q5Nck.js} +19 -19
  35. package/dist/{app-nWiUbcbv.js → app-CV3Y87bf.js} +262 -247
  36. package/dist/{app-BNF756eJ.js → app-CngqdPlx.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/app.d.ts +12 -0
  39. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUpdatePreview.vue.d.ts +33 -0
  40. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUploadDialog.vue.d.ts +28 -0
  41. package/dist/apps/mf-menu/src/utils/batchProcessor.d.ts +33 -0
  42. package/dist/apps/mf-menu/src/utils/images.d.ts +44 -0
  43. package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
  44. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/assets/{linked-status-C195HQ8m.js → linked-status-CQPFAl1J.js} +2 -2
  46. package/dist/assets/{override-menu-AQwvxLhn.js → override-menu-DP9T_24q.js} +2 -2
  47. package/dist/assets/{validate-menu-BvGiRNmy.js → validate-menu-CcOso72D.js} +2 -2
  48. package/dist/{catalog-DJDsoY-2.js → catalog-ClQJMV9X.js} +1 -1
  49. package/dist/{catalogSetting-C8FvJ4OQ.js → catalogSetting-CXeRg55T.js} +1 -1
  50. package/dist/{category-Bf-qn7ic.js → category-_lR1fIWU.js} +1 -1
  51. package/dist/{currency-DMhhoVtl.js → currency-x_SA4GNt.js} +1 -1
  52. package/dist/{dayjs.min-BN8QQck7.js → dayjs.min-JzYVBtTX.js} +1 -1
  53. package/dist/{index-BWXnodS5.js → index-BaLeGLHZ.js} +23 -23
  54. package/dist/{index-DIDVppoP.js → index-Cb7zxMMe.js} +1 -1
  55. package/dist/{index-DWIFeRdA.js → index-Cjo_VHIT.js} +14 -14
  56. package/dist/{item-2jMu-J2m.js → item-E-Egz6v8.js} +1747 -1711
  57. package/dist/jszip.min-8UVTn3ZT.js +2393 -0
  58. package/dist/{menu-Dk9WJ37H.js → menu-CrEs_Qy-.js} +1 -1
  59. package/dist/{menu-CAzTKH28.js → menu-DYMiA6Oc.js} +156 -156
  60. package/dist/mf-menu.css +1 -1
  61. package/dist/{priceTier-BtHmZYAn.js → priceTier-Bs3jL4nk.js} +1 -1
  62. package/dist/{scheduler-R20M5JrX.js → scheduler-DxMNHPSa.js} +3 -3
  63. package/dist/{subcategory-CyDndVTK.js → subcategory-h4VL-0kK.js} +63 -63
  64. package/dist/{toExcel-DjH_qdTv.js → toExcel-DRJ3j3P7.js} +2 -2
  65. package/dist/{unit-BA6MtbAH.js → unit-D4v2m10X.js} +24 -24
  66. package/package.json +1 -1
  67. package/dist/Products-CybC3HCA.js +0 -2656
@@ -1,17 +1,17 @@
1
- import { defineComponent as Q, 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 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 H, renderList as ue } from "vue";
1
+ import { defineComponent as J, 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 { J, u as W, G as X, Q as Z, M as O, I as S } from "./menu-CAzTKH28.js";
3
+ import { H, u as W, B as X, O as Z, J as I, G as S } from "./menu-DYMiA6Oc.js";
4
4
  import { useI18n as ee, ItemSelector as de, useCoreStore as me } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as ne, components as Y, useDialog as pe, FmButtonVariant as T, useBreakpoints as _e } from "@feedmepos/ui-library";
6
6
  import { _ as fe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
7
- import { _ as ge, R as ve } from "./app-nWiUbcbv.js";
7
+ import { _ as ge, R as ve } from "./app-CV3Y87bf.js";
8
8
  import { _ as he } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
9
9
  import { c as ye } from "./check-C9mY6LiX.js";
10
10
  import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
11
11
  import { u as ke } from "./search-BAPEUu1R.js";
12
- import { u as xe } from "./app-BNF756eJ.js";
12
+ import { u as xe } from "./app-CngqdPlx.js";
13
13
  import { c as Se } from "./createComponentProgrammatically-Bt2rn1IQ.js";
14
- 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__ */ Q({
14
+ 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__ */ J({
15
15
  __name: "Form",
16
16
  props: {
17
17
  action: {},
@@ -19,23 +19,23 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
19
19
  },
20
20
  emits: ["submitted"],
21
21
  setup(K, { expose: b, emit: N }) {
22
- const { t: r } = ee(), p = K, R = N, s = I(
23
- p.initialValue ? J(p.initialValue) : {
22
+ const { t: r } = ee(), p = K, R = N, s = L(
23
+ p.initialValue ? H(p.initialValue) : {
24
24
  _id: "",
25
25
  name: "",
26
26
  position: 0,
27
27
  items: []
28
28
  }
29
- ), C = W(), i = ne(), D = X(i), q = Z(D), c = I(!1), u = I(!1), _ = (f) => {
29
+ ), C = W(), i = ne(), B = X(i), q = Z(B), c = L(!1), u = L(!1), _ = (f) => {
30
30
  ye.isBoolean(f) ? u.value = f : u.value = !u.value;
31
- }, E = L(() => p.action === "add" ? r("menu.serving_sequence.add") : r("menu.serving_sequence.update"));
32
- async function P() {
31
+ }, E = O(() => p.action === "add" ? r("menu.serving_sequence.add") : r("menu.serving_sequence.update"));
32
+ async function D() {
33
33
  try {
34
34
  if (p.action === "add")
35
35
  await q.updateMenu(
36
36
  {
37
37
  module: S.F_MENU_MODULE_V4_KEY.enum.serveSequence,
38
- operation: O.F_OPERATION_TYPE.create,
38
+ operation: I.F_OPERATION_TYPE.create,
39
39
  data: {
40
40
  ...s.value,
41
41
  position: C.serveSequence.length
@@ -47,7 +47,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
47
47
  await q.updateMenu(
48
48
  {
49
49
  module: S.F_MENU_MODULE_V4_KEY.enum.serveSequence,
50
- operation: O.F_OPERATION_TYPE.update,
50
+ operation: I.F_OPERATION_TYPE.update,
51
51
  data: s.value
52
52
  },
53
53
  s.value.name
@@ -62,10 +62,10 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
62
62
  trigger: _,
63
63
  show: u
64
64
  });
65
- function U(f) {
65
+ function P(f) {
66
66
  return f.reduce((a, v) => (a[v._id] = [...a[v._id] ?? [], v], a), {});
67
67
  }
68
- const B = L(() => U(J(s.value.items)));
68
+ const U = O(() => P(H(s.value.items)));
69
69
  return (f, a) => {
70
70
  const v = h("fm-text-field"), V = h("fm-button"), e = h("fm-side-sheet");
71
71
  return d(), g(x, null, [
@@ -76,7 +76,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
76
76
  "onUpdate:modelValue": a[3] || (a[3] = (n) => u.value = n),
77
77
  "is-container": t(Y).FmForm,
78
78
  "is-container-props": {
79
- onValidationSuccess: P,
79
+ onValidationSuccess: D,
80
80
  blameFormChildOnValidationFailed: !0
81
81
  },
82
82
  "max-width": 560
@@ -117,7 +117,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
117
117
  }, null, 8, ["modelValue", "rules", "label", "placeholder"]),
118
118
  l(t(de), {
119
119
  "categorized-items": t(C).categorizedItems,
120
- data: B.value,
120
+ data: U.value,
121
121
  class: "flex-1",
122
122
  "select-variant": "",
123
123
  "show-variant": "",
@@ -137,20 +137,20 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
137
137
  class: "flex justify-end mb-8 xs:mt-8"
138
138
  }, Fe = {
139
139
  key: 1,
140
- class: /* @__PURE__ */ H(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
141
- }, Ie = ["onClick"], Le = {
140
+ class: /* @__PURE__ */ Q(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
141
+ }, Le = ["onClick"], Oe = {
142
142
  class: "flex-1 space-y-4"
143
- }, Oe = {
143
+ }, Ie = {
144
144
  class: "fm-typo-en-body-lg-600"
145
145
  }, Ne = {
146
146
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
147
- }, Qe = /* @__PURE__ */ Q({
147
+ }, Je = /* @__PURE__ */ J({
148
148
  __name: "ServingSequence",
149
149
  setup(K) {
150
150
  const {
151
151
  searchKey: b,
152
152
  filter: N
153
- } = ke(), r = W(), p = ne(), R = X(p), s = Z(R), C = pe(), i = me(), D = xe(), q = ce(), {
153
+ } = ke(), r = W(), p = ne(), R = X(p), s = Z(R), C = pe(), i = me(), B = xe(), q = ce(), {
154
154
  t: c
155
155
  } = ee(), u = (e) => {
156
156
  e && e !== S.F_MENU_VERSION.enum.v4 && q.push({
@@ -166,7 +166,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
166
166
  }, (e) => {
167
167
  u(e);
168
168
  }), F(() => i.sessionUser.value, (e) => {
169
- e && D.getPublicSetting();
169
+ e && B.getPublicSetting();
170
170
  }), F(() => i.currentBusiness.value, async (e, n) => {
171
171
  e && e._id !== (n == null ? void 0 : n._id) && await r.readRestaurants();
172
172
  }), F(() => i.currentRestaurant.value, async (e, n) => {
@@ -174,7 +174,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
174
174
  }), se(() => {
175
175
  i.restaurants.value.length && (i.currentRestaurant.value || i.changeRestaurant(i.restaurants.value[0]));
176
176
  });
177
- const _ = L(() => r.serveSequence.filter(({
177
+ const _ = O(() => r.serveSequence.filter(({
178
178
  name: e
179
179
  }) => N([e])) ?? []);
180
180
  function E(e) {
@@ -193,12 +193,12 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
193
193
  }).onPrimary(async () => {
194
194
  await s.updateMenu({
195
195
  module: S.F_MENU_MODULE_V4_KEY.enum.serveSequence,
196
- operation: O.F_OPERATION_TYPE.delete,
196
+ operation: I.F_OPERATION_TYPE.delete,
197
197
  data: e._id
198
198
  }, e.name, !0);
199
199
  });
200
200
  }
201
- const P = ({
201
+ const D = ({
202
202
  servingSequence: e
203
203
  }) => $(Y.FmButton, {
204
204
  prependIcon: "delete",
@@ -208,14 +208,14 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
208
208
  n.stopPropagation(), E(e);
209
209
  }
210
210
  });
211
- async function U(e) {
211
+ async function P(e) {
212
212
  await s.updateMenu({
213
213
  module: S.F_MENU_MODULE_V4_KEY.enum.serveSequence,
214
- operation: O.F_OPERATION_TYPE.rearrange,
214
+ operation: I.F_OPERATION_TYPE.rearrange,
215
215
  data: e.map((n) => n._id)
216
216
  }, "sequences");
217
217
  }
218
- const B = I([{
218
+ const U = L([{
219
219
  accessorKey: "name",
220
220
  header: () => c("menu.serving_sequence.columns.name"),
221
221
  enableSorting: !1,
@@ -259,7 +259,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
259
259
  (M = (w = k.component) == null ? void 0 : w.exposed) == null || M.trigger();
260
260
  }
261
261
  re(() => r.selectCatalog(null));
262
- const v = _e(), V = L(() => v.breakpoints.value.xs);
262
+ const v = _e(), V = O(() => v.breakpoints.value.xs);
263
263
  return (e, n) => {
264
264
  const k = h("FmSpacer"), w = h("fm-button"), M = h("fm-search"), te = h("fm-table");
265
265
  return d(), j(be, {
@@ -295,17 +295,17 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
295
295
  class: "w-[320px] xs:w-full xs:px-16"
296
296
  }, null, 8, ["modelValue", "placeholder"])]), V.value ? (d(), g("div", Fe, [(d(!0), g(x, null, ue(_.value, (o) => (d(), g("div", {
297
297
  key: o._id,
298
- class: H(["py-12 px-16", "flex items-center space-x-8"]),
298
+ class: Q(["py-12 px-16", "flex items-center space-x-8"]),
299
299
  onClick: (Re) => a(o)
300
- }, [y("div", Le, [y("p", Oe, A(o.name), 1), y("p", Ne, A(t(c)("menu.common.labels.products_linked", {
300
+ }, [y("div", Oe, [y("p", Ie, A(o.name), 1), y("p", Ne, A(t(c)("menu.common.labels.products_linked", {
301
301
  count: o.items.length
302
- })), 1)]), l(P, {
302
+ })), 1)]), l(D, {
303
303
  servingSequence: o
304
- }, null, 8, ["servingSequence"])], 8, Ie))), 128))])) : (d(), j(ge, {
304
+ }, null, 8, ["servingSequence"])], 8, Le))), 128))])) : (d(), j(ge, {
305
305
  key: 0
306
306
  }, {
307
307
  default: m(() => [l(te, {
308
- "column-defs": B.value,
308
+ "column-defs": U.value,
309
309
  loading: t(s).checkMenuIsLoading(),
310
310
  "page-size": _.value.length,
311
311
  "row-data": _.value,
@@ -315,7 +315,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
315
315
  draggable: "",
316
316
  "hide-footer": "",
317
317
  "pin-header-row": "",
318
- onDndChanged: n[1] || (n[1] = (o) => U(o)),
318
+ onDndChanged: n[1] || (n[1] = (o) => P(o)),
319
319
  onRowClick: n[2] || (n[2] = (o) => a(o.original))
320
320
  }, null, 8, ["column-defs", "loading", "page-size", "row-data", "search-value"])]),
321
321
  _: 1
@@ -343,5 +343,5 @@ const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex
343
343
  }
344
344
  });
345
345
  export {
346
- Qe as default
346
+ Je as default
347
347
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as ue, computed as p, ref as P, watch as ie, watchEffect as re, resolveComponent as m, createElementBlock as M, openBlock as r, normalizeClass as G, createVNode as s, withCtx as c, createElementVNode as g, createBlock as v, createCommentVNode as f, unref as e, Fragment as $, renderList as z, createTextVNode as me, toDisplayString as N } from "vue";
2
- import { u as ce, G as de, Q as pe, I as _, z as ve, J as w } from "./menu-CAzTKH28.js";
1
+ import { defineComponent as ue, computed as p, ref as P, watch as ie, watchEffect as re, resolveComponent as m, createElementBlock as M, openBlock as r, normalizeClass as J, createVNode as s, withCtx as c, createElementVNode as g, createBlock as v, createCommentVNode as f, unref as e, Fragment as $, renderList as z, createTextVNode as me, toDisplayString as N } from "vue";
2
+ import { u as ce, B as de, O as pe, G as _, z as ve, H as w } from "./menu-DYMiA6Oc.js";
3
3
  import { useCoreStore as ge, useI18n as fe } from "@feedmepos/mf-common";
4
- import { useSnackbar as _e, useDialog as be, FmButtonVariant as H, FmButtonColorThemeVariant as J, components as ye } from "@feedmepos/ui-library";
4
+ import { useSnackbar as _e, useDialog as be, FmButtonVariant as H, FmButtonColorThemeVariant as j, components as ye } from "@feedmepos/ui-library";
5
5
  import { _ as E } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
6
  import { _ as ke } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
7
- import { _ as j, a as xe } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DubOzDU3.js";
8
- import { C as b, a as x } from "./catalogSetting-C8FvJ4OQ.js";
9
- import { C as q } from "./catalog-DJDsoY-2.js";
7
+ import { _ as q, a as xe } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dz9BUoZe.js";
8
+ import { C as b, a as x } from "./catalogSetting-CXeRg55T.js";
9
+ import { C as G } from "./catalog-ClQJMV9X.js";
10
10
  const Ce = {
11
- class: /* @__PURE__ */ G(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16"])
11
+ class: /* @__PURE__ */ J(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16"])
12
12
  }, Oe = {
13
13
  class: "space-y-32"
14
14
  }, Se = {
@@ -26,22 +26,22 @@ const Ce = {
26
26
  class: "fm-typo-en-body-md-400"
27
27
  }, Ue = {
28
28
  class: "flex justify-end"
29
- }, Je = /* @__PURE__ */ ue({
29
+ }, je = /* @__PURE__ */ ue({
30
30
  __name: "Setting",
31
31
  setup(Ne) {
32
- const F = ge(), u = ce(), Q = _e(), T = de(Q), {
32
+ const F = ge(), u = ce(), W = _e(), T = de(W), {
33
33
  custom: we,
34
- minor: W
35
- } = T, I = be(), {
34
+ minor: Y
35
+ } = T, A = be(), {
36
36
  t: o
37
37
  } = fe(), C = p(() => u.currentCatalog);
38
- p(() => new q(C.value, u, A, I));
38
+ p(() => new G(C.value, u, I, A));
39
39
  const y = p(() => !C.value), S = p(() => u.version === _.F_MENU_VERSION.enum.v4), {
40
40
  checkMenuIsLoading: Ee,
41
- updateMenu: A
42
- } = pe(T), l = P(b.initCatalogSetting()), Y = p(() => u.catalogs.filter((t) => t._id !== u.state.currentCatalogId).map((t) => t.name)), K = p(() => u.state.restaurants.filter((t) => [...t.additionalCatalogs, t.inHouseDelivery, ...t.linkedDeliveryCatalogs.map((n) => n.catalog), t.pickupCatalog, t.takeawayCatalog, t.catalogId].includes(u.state.currentCatalogId)).map((t) => t.name));
41
+ updateMenu: I
42
+ } = pe(T), l = P(b.initCatalogSetting()), K = p(() => u.catalogs.filter((t) => t._id !== u.state.currentCatalogId).map((t) => t.name)), Q = p(() => u.state.restaurants.filter((t) => [...t.additionalCatalogs, t.inHouseDelivery, ...t.linkedDeliveryCatalogs.map((n) => n.catalog), t.pickupCatalog, t.takeawayCatalog, t.catalogId].includes(u.state.currentCatalogId)).map((t) => t.name));
43
43
  function L() {
44
- return K.value.length > 0 ? s("div", {
44
+ return Q.value.length > 0 ? s("div", {
45
45
  class: ["flex items-center", "bg-fm-color-system-warning-100", "rounded-lg", "py-16 px-24 space-x-8"]
46
46
  }, [s(ye.FmIcon, {
47
47
  color: "system-warning-300",
@@ -82,10 +82,10 @@ const Ce = {
82
82
  }
83
83
  }), Z = async () => {
84
84
  const t = b.toCatalog(l.value);
85
- C.value ? await new q({
85
+ C.value ? await new G({
86
86
  ...C.value,
87
87
  ...t
88
- }, u, A, I).update() : await W(async () => {
88
+ }, u, I, A).update() : await Y(async () => {
89
89
  await u.updateMainCatalogSetting({
90
90
  inclusiveTaxes: t.inclusiveTaxes
91
91
  });
@@ -105,7 +105,7 @@ const Ce = {
105
105
  return (t, n) => {
106
106
  const i = m("fm-text-field"), d = m("fm-radio"), O = m("fm-radio-group"), ae = m("fm-checkbox"), B = m("fm-switch"), le = m("fm-select"), R = m("fm-button"), ne = m("fm-chip"), oe = m("fm-card"), se = m("fm-form");
107
107
  return r(), M("div", Ce, [s(se, {
108
- class: G(["space-y-40 max-w-[751px]", "h-fit"]),
108
+ class: J(["space-y-40 max-w-[751px]", "h-fit"]),
109
109
  "blame-form-child-on-validation-failed": "",
110
110
  onValidationSuccess: Z
111
111
  }, {
@@ -116,7 +116,7 @@ const Ce = {
116
116
  default: c(() => [s(i, {
117
117
  modelValue: l.value.name,
118
118
  "onUpdate:modelValue": n[0] || (n[0] = (a) => l.value.name = a),
119
- rules: [(a) => !Y.value.includes(a.trim()) || e(o)("menu.setting.catalog.fields.name.used"), (a) => !!a.trim() || e(o)("menu.setting.catalog.fields.name.required")],
119
+ rules: [(a) => !K.value.includes(a.trim()) || e(o)("menu.setting.catalog.fields.name.used"), (a) => !!a.trim() || e(o)("menu.setting.catalog.fields.name.required")],
120
120
  label: e(o)("menu.setting.catalog.fields.name.label")
121
121
  }, null, 8, ["modelValue", "rules", "label"]), s(L)]),
122
122
  _: 1
@@ -186,7 +186,7 @@ const Ce = {
186
186
  "label-placement": "right",
187
187
  sublabel: e(o)("menu.setting.markup.auto_markup.sublabel"),
188
188
  "onUpdate:modelValue": n[4] || (n[4] = (a) => l.value.markupOptions = a ? [] : null)
189
- }, null, 8, ["model-value", "label", "sublabel"]), g("div", Me, [s(j, {
189
+ }, null, 8, ["model-value", "label", "sublabel"]), g("div", Me, [s(q, {
190
190
  categories: e(u).categories,
191
191
  items: e(u).items,
192
192
  action: "add",
@@ -195,15 +195,15 @@ const Ce = {
195
195
  default: c(({
196
196
  trigger: a
197
197
  }) => [s(R, {
198
- "text-color": e(J).ColorPrimary,
199
- "border-color": e(J).ColorPrimary,
198
+ "text-color": e(j).ColorPrimary,
199
+ "border-color": e(j).ColorPrimary,
200
200
  variant: e(H).Secondary,
201
201
  label: "Add markup configuration",
202
202
  "prepend-icon": "add",
203
203
  onClick: a
204
204
  }, null, 8, ["text-color", "border-color", "variant", "onClick"])]),
205
205
  _: 1
206
- }, 8, ["categories", "items"]), (r(!0), M($, null, z(l.value.markupOptions, (a, k) => (r(), v(j, {
206
+ }, 8, ["categories", "items"]), (r(!0), M($, null, z(l.value.markupOptions, (a, k) => (r(), v(q, {
207
207
  key: k,
208
208
  categories: e(u).categories,
209
209
  items: e(u).items,
@@ -254,5 +254,5 @@ const Ce = {
254
254
  }
255
255
  });
256
256
  export {
257
- Je as default
257
+ je as default
258
258
  };
@@ -1,37 +1,37 @@
1
- import { defineComponent as L, ref as w, watch as W, resolveComponent as y, createElementBlock as V, openBlock as p, Fragment as P, renderSlot as X, createVNode as m, unref as t, withCtx as h, createElementVNode as s, toDisplayString as T, computed as F, h as A, withModifiers as I, getCurrentInstance as Z, renderList as ee, createBlock as M, createCommentVNode as te } from "vue";
2
- import { useI18n as B } from "@feedmepos/mf-common";
3
- import { useSnackbar as O, components as j, useDialog as Y, FmButtonVariant as R, useBreakpoints as ae, FmButtonColorThemeVariant as oe } from "@feedmepos/ui-library";
1
+ import { defineComponent as B, ref as w, watch as W, resolveComponent as y, createElementBlock as V, openBlock as p, Fragment as P, renderSlot as X, createVNode as m, unref as t, withCtx as h, createElementVNode as s, toDisplayString as L, computed as F, h as A, withModifiers as R, getCurrentInstance as Z, renderList as ee, createBlock as S, createCommentVNode as te } from "vue";
2
+ import { useI18n as O } from "@feedmepos/mf-common";
3
+ import { useSnackbar as T, components as j, useDialog as Y, FmButtonVariant as z, useBreakpoints as ae, FmButtonColorThemeVariant as oe } from "@feedmepos/ui-library";
4
4
  import { _ as ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { G as D, u as N, Q as U, M as K, I as G } from "./menu-CAzTKH28.js";
5
+ import { B as D, u as N, O as U, J as K, G } from "./menu-DYMiA6Oc.js";
6
6
  import { _ as le } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as se } from "./app-nWiUbcbv.js";
7
+ import { _ as se } from "./app-CV3Y87bf.js";
8
8
  import { c as re } from "./createForm-BoUQeZTd.js";
9
9
  import { u as ie } from "./discardConfirm-BHni0LNu.js";
10
- import { c as z } from "./object-DVUNCr7w.js";
10
+ import { c as I } from "./object-DVUNCr7w.js";
11
11
  import { r as ce } from "./rules-CIWTZQfh.js";
12
12
  import { c as ue } from "./check-C9mY6LiX.js";
13
- import { a as q } from "./subcategory-CyDndVTK.js";
13
+ import { a as q } from "./subcategory-h4VL-0kK.js";
14
14
  import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
15
- import { a as me } from "./menu-Dk9WJ37H.js";
15
+ import { a as me } from "./menu-CrEs_Qy-.js";
16
16
  const pe = {
17
17
  class: "fm-typo-en-title-md-600"
18
18
  }, _e = {
19
19
  class: "flex flex-col gap-32 h-full min-h-0 py-16"
20
20
  }, fe = {
21
21
  class: "flex gap-8 items-center justify-start"
22
- }, ge = /* @__PURE__ */ L({
22
+ }, ge = /* @__PURE__ */ B({
23
23
  __name: "Form",
24
24
  props: {
25
25
  initialValue: {}
26
26
  },
27
- setup(S, {
27
+ setup($, {
28
28
  expose: f
29
29
  }) {
30
- const _ = S, x = O(), g = D(x), k = U(g), d = N(), {
30
+ const _ = $, x = T(), g = D(x), k = U(g), d = N(), {
31
31
  t: a
32
- } = B(), v = w(!1), e = w(!1), b = (r) => {
32
+ } = O(), v = w(!1), e = w(!1), b = (r) => {
33
33
  ue.isBoolean(r) ? e.value = r : e.value = !e.value;
34
- }, n = w(z(_.initialValue)), $ = ie(() => n.value.name !== _.initialValue.name, () => {
34
+ }, n = w(I(_.initialValue)), M = ie(() => n.value.name !== _.initialValue.name, () => {
35
35
  e.value = !1;
36
36
  });
37
37
  async function E() {
@@ -49,7 +49,7 @@ const pe = {
49
49
  }, n.value.name), b(!1);
50
50
  }
51
51
  return W(() => e.value, () => {
52
- e.value && (n.value = z(_.initialValue));
52
+ e.value && (n.value = I(_.initialValue));
53
53
  }), f({
54
54
  trigger: b,
55
55
  show: e
@@ -67,9 +67,9 @@ const pe = {
67
67
  blameFormChildOnValidationFailed: !0
68
68
  },
69
69
  "max-width": 560,
70
- "onOn:clickedAway": t($)
70
+ "onOn:clickedAway": t(M)
71
71
  }, {
72
- "side-sheet-header": h(() => [s("p", pe, T(t(a)("menu.subcategory.title")), 1)]),
72
+ "side-sheet-header": h(() => [s("p", pe, L(t(a)("menu.subcategory.title")), 1)]),
73
73
  "side-sheet-footer": h(() => [s("div", fe, [m(o, {
74
74
  label: t(a)("menu.common.actions.update"),
75
75
  loading: v.value,
@@ -111,15 +111,15 @@ const pe = {
111
111
  class: "flex-1 space-y-4"
112
112
  }, Fe = {
113
113
  class: "fm-typo-en-body-lg-600"
114
- }, Me = /* @__PURE__ */ L({
114
+ }, Se = /* @__PURE__ */ B({
115
115
  __name: "SubcategoryTable",
116
- setup(S) {
117
- const f = Y(), _ = O(), x = D(_), g = U(x), k = q({
116
+ setup($) {
117
+ const f = Y(), _ = T(), x = D(_), g = U(x), k = q({
118
118
  dialog: f,
119
119
  menuLoader: g
120
120
  }), d = F(() => N().subcategories), a = w(""), v = F(() => d.value.filter((o) => o.name.toLowerCase().includes(a.value.toLowerCase()))), {
121
121
  t: e
122
- } = B(), b = w([{
122
+ } = O(), b = w([{
123
123
  accessorKey: "name",
124
124
  header: () => e("menu.subcategory.columns.title"),
125
125
  enableSorting: !1,
@@ -143,7 +143,7 @@ const pe = {
143
143
  disabled: !l._id,
144
144
  variant: "tertiary",
145
145
  textColor: "neutral-gray-400",
146
- onClick: I(async () => {
146
+ onClick: R(async () => {
147
147
  await n(l);
148
148
  }, ["stop", "prevent"])
149
149
  })]);
@@ -165,7 +165,7 @@ const pe = {
165
165
  primaryActions: {
166
166
  text: "Remove",
167
167
  close: !0,
168
- variant: R.Destructive
168
+ variant: z.Destructive
169
169
  },
170
170
  secondaryActions: {
171
171
  text: "Cancel",
@@ -179,7 +179,7 @@ const pe = {
179
179
  }, o.name, !0);
180
180
  });
181
181
  }
182
- async function $(o) {
182
+ async function M(o) {
183
183
  const l = o.map((u) => u._id).filter((u) => !!u);
184
184
  await k.rearrange(l);
185
185
  }
@@ -191,7 +191,7 @@ const pe = {
191
191
  }
192
192
  const c = ae(), C = F(() => c.breakpoints.value.xs);
193
193
  return (o, l) => {
194
- const u = y("FmSearch"), Q = y("FmTable"), H = y("FmButton");
194
+ const u = y("FmSearch"), J = y("FmTable"), H = y("FmButton");
195
195
  return C.value ? (p(), V("div", xe, [s("div", ke, [m(u, {
196
196
  autofocus: "",
197
197
  modelValue: a.value,
@@ -203,13 +203,13 @@ const pe = {
203
203
  }, null, 8, ["modelValue", "placeholder"])]), s("div", Ce, [(p(!0), V(P, null, ee(v.value, (i) => (p(), V("div", {
204
204
  key: i._id || "",
205
205
  class: "flex flex-row py-12 px-16",
206
- onClick: (J) => r(i)
207
- }, [s("div", we, [s("p", Fe, T(i.name), 1)]), m(H, {
206
+ onClick: (Q) => r(i)
207
+ }, [s("div", we, [s("p", Fe, L(i.name), 1)]), m(H, {
208
208
  "text-color": t(oe).NeutralGray400,
209
- variant: t(R).Tertiary,
209
+ variant: t(z).Tertiary,
210
210
  "prepend-icon": "delete",
211
211
  disabled: !i._id,
212
- onClick: I((J) => n(i), ["stop"])
212
+ onClick: R((Q) => n(i), ["stop"])
213
213
  }, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ve))), 128))])])) : (p(), V("div", be, [s("div", ye, [s("div", he, [m(u, {
214
214
  modelValue: a.value,
215
215
  "onUpdate:modelValue": l[0] || (l[0] = (i) => a.value = i),
@@ -219,7 +219,7 @@ const pe = {
219
219
  type: t(e)("menu.subcategory.title")
220
220
  })
221
221
  }, null, 8, ["modelValue", "placeholder"])])]), m(se, null, {
222
- default: h(() => [m(Q, {
222
+ default: h(() => [m(J, {
223
223
  "column-defs": b.value,
224
224
  draggable: !0,
225
225
  "page-size": d.value.length,
@@ -228,26 +228,26 @@ const pe = {
228
228
  "shrink-at": !1,
229
229
  "hide-footer": "",
230
230
  "pin-header-row": "",
231
- onDndChanged: $,
231
+ onDndChanged: M,
232
232
  onRowClick: l[1] || (l[1] = (i) => r(i.original))
233
233
  }, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
234
234
  _: 1
235
235
  })]));
236
236
  };
237
237
  }
238
- }), Se = { class: "flex-1 flex justify-between gap-8 pl-8" }, $e = { class: "flex items-center" }, Ee = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Le = { class: "fm-typo-en-body-md-600 font-semibold" }, qe = /* @__PURE__ */ L({
238
+ }), $e = { class: "flex-1 flex justify-between gap-8 pl-8" }, Me = { class: "flex items-center" }, Ee = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Be = { class: "fm-typo-en-body-md-600 font-semibold" }, qe = /* @__PURE__ */ B({
239
239
  __name: "Subcategory",
240
- setup(S) {
241
- const f = Y(), _ = O(), x = D(_), g = U(x), k = q({ dialog: f, menuLoader: g }), d = F(() => N().subcategories), { t: a } = B();
240
+ setup($) {
241
+ const f = Y(), _ = T(), x = D(_), g = U(x), k = q({ dialog: f, menuLoader: g }), d = F(() => N().subcategories), { t: a } = O();
242
242
  function v() {
243
243
  k.create();
244
244
  }
245
245
  const e = F(() => d.value.length);
246
- return me().resetOnMount(), (b, n) => (p(), M(le, {
246
+ return me().resetOnMount(), (b, n) => (p(), S(le, {
247
247
  heading: t(a)("menu.subcategory.title")
248
248
  }, {
249
249
  default: h(() => [
250
- d.value.length > 0 ? (p(), M(Me, { key: 0 })) : (p(), M(t(de), {
250
+ d.value.length > 0 ? (p(), S(Se, { key: 0 })) : (p(), S(t(de), {
251
251
  key: 1,
252
252
  action: {
253
253
  text: t(a)("menu.subcategory.add"),
@@ -258,13 +258,13 @@ const pe = {
258
258
  }, null, 8, ["action", "subtitle", "title"]))
259
259
  ]),
260
260
  "append-heading": h(() => [
261
- s("div", Se, [
262
- s("div", $e, [
261
+ s("div", $e, [
262
+ s("div", Me, [
263
263
  s("div", Ee, [
264
- s("p", Le, T(e.value), 1)
264
+ s("p", Be, L(e.value), 1)
265
265
  ])
266
266
  ]),
267
- d.value.length > 0 ? (p(), M(ne, {
267
+ d.value.length > 0 ? (p(), S(ne, {
268
268
  key: 0,
269
269
  label: t(a)("menu.subcategory.add"),
270
270
  "prepend-icon": "add",
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Takeaway.vue_vue_type_script_setup_true_lang-PAB0AAfO.js";
1
+ import { _ as f } from "./Takeaway.vue_vue_type_script_setup_true_lang-ZYP7hH6p.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as f, computed as y, ref as k, createBlock as i, openBlock as d, unref as a, withCtx as s, createElementVNode as t, toDisplayString as b, createCommentVNode as g, createVNode as m } from "vue";
2
- import { G as x, u as v, Q as w, M as E, I as M } from "./menu-CAzTKH28.js";
2
+ import { B as x, u as v, O as w, J as E, G as M } from "./menu-DYMiA6Oc.js";
3
3
  import { useI18n as T } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as V } from "@feedmepos/ui-library";
5
5
  import { _ as h } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
6
6
  import { _ as C } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-PAB0AAfO.js";
8
- import { T as S, l as L } from "./index-DWIFeRdA.js";
9
- import { a as O } from "./menu-Dk9WJ37H.js";
10
- const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "flex items-center" }, F = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, I = { class: "fm-typo-en-body-md-600 font-semibold" }, z = /* @__PURE__ */ f({
7
+ import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-ZYP7hH6p.js";
8
+ import { T as O, l as S } from "./index-Cjo_VHIT.js";
9
+ import { a as B } from "./menu-CrEs_Qy-.js";
10
+ const L = { class: "flex-1 flex justify-between gap-8 pl-8" }, U = { class: "flex items-center" }, F = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, D = { class: "fm-typo-en-body-md-600 font-semibold" }, z = /* @__PURE__ */ f({
11
11
  __name: "Takeaway",
12
- setup(D) {
12
+ setup(I) {
13
13
  const u = V(), l = x(u), p = v(), c = w(l), _ = y(() => p.rules.item.bindToVariant), n = k(0), { t: r } = T();
14
- return O().resetOnMount(), (P, o) => (d(), i(C, {
14
+ return B().resetOnMount(), (P, o) => (d(), i(C, {
15
15
  heading: a(r)("menu.takeaway.title")
16
16
  }, {
17
17
  default: s(() => [
@@ -20,14 +20,14 @@ const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "fle
20
20
  })
21
21
  ]),
22
22
  "append-heading": s(() => [
23
- t("div", U, [
24
- t("div", B, [
23
+ t("div", L, [
24
+ t("div", U, [
25
25
  t("div", F, [
26
- t("p", I, b(n.value), 1)
26
+ t("p", D, b(n.value), 1)
27
27
  ])
28
28
  ]),
29
29
  t("div", null, [
30
- n.value > 0 ? (d(), i(a(S), {
30
+ n.value > 0 ? (d(), i(a(O), {
31
31
  key: 0,
32
32
  "bind-to-variant": _.value,
33
33
  action: "add",
@@ -37,7 +37,7 @@ const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "fle
37
37
  module: a(M.F_MENU_MODULE_V4_KEY).enum.takeaway,
38
38
  operation: a(E.F_OPERATION_TYPE).create,
39
39
  data: e,
40
- link: a(L)(e.usedBy || [])
40
+ link: a(S)(e.usedBy || [])
41
41
  },
42
42
  e.name
43
43
  ))