@feedmepos/mf-menu 0.20.1 → 0.20.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 (53) hide show
  1. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CYQnhiBN.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Ds2qfY_X.js} +2 -2
  2. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-DKlRd-kN.js → ApplyProducts.vue_vue_type_script_setup_true_lang-BRepaPR3.js} +2 -2
  3. package/dist/{Catalog-C_MjlkAH.js → Catalog-S5KDEWzG.js} +3 -3
  4. package/dist/{Category-hDpbuKdl.js → Category-DLaNEtA5.js} +6 -6
  5. package/dist/{CookingGuide-DoTQcfZo.js → CookingGuide-DSGZapxz.js} +4 -4
  6. package/dist/{Group-CnbKRGYg.js → Group-B0VQ-64x.js} +4 -4
  7. package/dist/{Group-CIwshUNs.js → Group-CBMSkmwQ.js} +1 -1
  8. package/dist/{Group.vue_vue_type_script_setup_true_lang-BmqRBXoX.js → Group.vue_vue_type_script_setup_true_lang-DKzrhXtM.js} +43 -43
  9. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BKuXmC_M.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BV-FC8tM.js} +2 -2
  10. package/dist/{Ingredient-E4dxFuRx.js → Ingredient-CnPQ0kiR.js} +5 -5
  11. package/dist/{LinkProductSideSheet-CN4VpQoC.js → LinkProductSideSheet-A26Otbdm.js} +9 -9
  12. package/dist/{PrintRoute-Cp9qAt37.js → PrintRoute-BlJMdPP0.js} +3 -3
  13. package/dist/{Product-CukHHpY7.js → Product-BvD813LL.js} +1 -1
  14. package/dist/{Product.vue_vue_type_script_setup_true_lang-Bwlojikf.js → Product.vue_vue_type_script_setup_true_lang-D_oKtXbh.js} +251 -247
  15. package/dist/{Products----2Vzee.js → Products-B8Ok-bkN.js} +8 -8
  16. package/dist/{Publish-CTL7_VDW.js → Publish-qBiJUQ4X.js} +33 -33
  17. package/dist/{Recipe-C71_p_4o.js → Recipe-CJxJJAUV.js} +34 -34
  18. package/dist/{Scheduler-CMY10OCN.js → Scheduler-DfAMwXCu.js} +2 -2
  19. package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-DIyqCShi.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-CArE_Hua.js} +1 -1
  20. package/dist/ServingSequence-DxDMeto7.js +4 -0
  21. package/dist/{Setting-N_IomrUQ.js → Setting-BbgJcWsN.js} +1 -1
  22. package/dist/{Setting.vue_vue_type_script_setup_true_lang-BTiZlc2E.js → Setting.vue_vue_type_script_setup_true_lang-BbVEzNve.js} +3 -3
  23. package/dist/{Takeaway-C6wwnu5v.js → Takeaway-CMDFYeUw.js} +1 -1
  24. package/dist/{Takeaway-DThy6R7w.js → Takeaway-wAXsZQN2.js} +4 -4
  25. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CrIDoLuT.js → Takeaway.vue_vue_type_script_setup_true_lang-DSphRs_i.js} +4 -4
  26. package/dist/{TaxSetting-f09g9uzO.js → TaxSetting-C1XOTv-9.js} +4 -4
  27. package/dist/{Unit-DpN-cIoI.js → Unit-BW3iqgp8.js} +2 -2
  28. package/dist/{Variant-DVj3Rl1M.js → Variant-BJIxp9PJ.js} +2 -2
  29. package/dist/{_id_-D_LlvKj8.js → _id_-B25OxuPV.js} +6 -6
  30. package/dist/{app-Cn8ejMq2.js → app-BFJlAowN.js} +63563 -80078
  31. package/dist/app.js +2 -2
  32. package/dist/assets/linked-status-4i88AmvK.js +24 -0
  33. package/dist/assets/validate-menu-CTKwgXfw.js +24 -0
  34. package/dist/{catalog-DYe86x7O.js → catalog-B-Z6lEFK.js} +1 -1
  35. package/dist/{catalog-B4hTLUkg.js → catalog-Do7RfIKm.js} +22510 -22511
  36. package/dist/{category-Cn9bav8Y.js → category-DEWEor3m.js} +14 -14
  37. package/dist/{currency-ak89ne8W.js → currency-33gUke3q.js} +1 -1
  38. package/dist/{index-B-PHXxgb.js → index-BEdHzZvu.js} +44 -44
  39. package/dist/index-BXl09ebx.js +21908 -0
  40. package/dist/{item-CtPBj2_Y.js → item-BooojPpg.js} +930 -930
  41. package/dist/{lodash-QRXx-M3X.js → lodash-247YxYiQ.js} +439 -439
  42. package/dist/{menu-DyHXKzGq.js → menu-DCnWrgH7.js} +1 -1
  43. package/dist/{object-DrR2KRA7.js → object-B2cP_UeG.js} +19 -19
  44. package/dist/{scheduler-C8HLf4JH.js → scheduler-0cChIv2I.js} +4 -4
  45. package/dist/{takeaway-D1YMjOoE.js → takeaway-mwqVQ1ij.js} +4 -4
  46. package/dist/{toExcel-CeOvEnsu.js → toExcel-Dha8Vf3u.js} +237 -237
  47. package/dist/{unit-DJPAcXZf.js → unit-BgfdgXAu.js} +3 -3
  48. package/dist/{vuedraggable-WU01qJgi.js → vuedraggable-BEszc36M.js} +110 -110
  49. package/package.json +3 -3
  50. package/dist/ServingSequence-C6L1_ijp.js +0 -4
  51. package/dist/assets/linked-status-CcasRdDR.js +0 -24
  52. package/dist/assets/validate-menu-Dsx_6ljN.js +0 -24
  53. package/dist/index-D1sxBB7B.js +0 -7392
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as F, computed as f, ref as h, resolveComponent as S, openBlock as u, createBlock as g, unref as e, withCtx as p, createElementVNode as i, toDisplayString as U, createVNode as o, createCommentVNode as A, createElementBlock as T, Fragment as E } from "vue";
2
- import { u as L, a as j, c as I, e as P, b as H, m as G, d as J, _ as K, f as V, D as Q } from "./app-Cn8ejMq2.js";
2
+ import { u as L, a as j, c as I, e as P, b as H, m as G, d as J, _ as K, f as V, D as Q } from "./app-BFJlAowN.js";
3
3
  import { useCoreStore as W, useI18n as X } from "@feedmepos/mf-common";
4
4
  import { useDialog as q, useDialogChild as Z, useSnackbar as z, useBreakpoints as ee, FmButtonColorThemeVariant as M, FmButtonVariant as D } from "@feedmepos/ui-library";
5
5
  import "vue-router";
6
- import { L as N } from "./LinkProductSideSheet-CN4VpQoC.js";
7
- import { _ as te, a as B } from "./Product.vue_vue_type_script_setup_true_lang-Bwlojikf.js";
8
- import { u as oe, a as ne } from "./menu-DyHXKzGq.js";
9
- import { u as ae } from "./item-CtPBj2_Y.js";
10
- import { u as re, a as se, w as le } from "./catalog-B4hTLUkg.js";
11
- import { m as ie } from "./toExcel-CeOvEnsu.js";
12
- import { l as ue } from "./lodash-QRXx-M3X.js";
6
+ import { L as N } from "./LinkProductSideSheet-A26Otbdm.js";
7
+ import { _ as te, a as B } from "./Product.vue_vue_type_script_setup_true_lang-D_oKtXbh.js";
8
+ import { u as oe, a as ne } from "./menu-DCnWrgH7.js";
9
+ import { u as ae } from "./item-BooojPpg.js";
10
+ import { u as re, a as se, w as le } from "./catalog-Do7RfIKm.js";
11
+ import { m as ie } from "./toExcel-Dha8Vf3u.js";
12
+ import { l as ue } from "./lodash-247YxYiQ.js";
13
13
  import { _ as ce, a as R } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DPis3HVx.js";
14
14
  const me = { class: "space-y-24 mb-24" }, de = ["innerHTML"], pe = { class: "flex justify-end gap-8" }, fe = /* @__PURE__ */ F({
15
15
  __name: "ConfirmActionDialog",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as T, computed as V, ref as A, resolveComponent as C, openBlock as h, createBlock as P, unref as i, withCtx as U, createElementVNode as o, toDisplayString as F, createVNode as n, createElementBlock as M, Fragment as B, renderList as Y, onMounted as ne, withModifiers as j, createCommentVNode as se, h as K } from "vue";
2
- import { d as W, D as J, c as ue, e as ie, a as Q, w as re, u as ce, b as de, j as me, k as pe } from "./app-Cn8ejMq2.js";
3
- import { useSnackbar as X, useDialogChild as ve, useDialog as ge, components as G } from "@feedmepos/ui-library";
4
- import { u as fe, l as be } from "./lodash-QRXx-M3X.js";
2
+ import { d as W, D as J, c as ue, e as ie, a as Q, v as re, u as ce, b as de, j as me, k as pe } from "./app-BFJlAowN.js";
3
+ import { useSnackbar as X, useDialogChild as fe, useDialog as ge, components as G } from "@feedmepos/ui-library";
4
+ import { u as ve, l as be } from "./lodash-247YxYiQ.js";
5
5
  import { useI18n as q, useCoreStore as _e, RestaurantSelector as he } from "@feedmepos/mf-common";
6
6
  import { _ as ye } from "./TextChip.vue_vue_type_script_setup_true_lang-CNp85hoQ.js";
7
7
  import { _ as Ce, w as ke } from "./InfoBasic.vue_vue_type_script_setup_true_lang-DxQBDu16.js";
@@ -36,27 +36,27 @@ const xe = { class: "fm-typo-en-title-md-600" }, Ve = { class: "mt-40" }, Fe = {
36
36
  label: r("menu.publish.update_catalog_dialog.sections.default.use_default"),
37
37
  value: null
38
38
  },
39
- ...s.catalogs.map((v) => ({
40
- label: v.name,
41
- value: v._id
39
+ ...s.catalogs.map((f) => ({
40
+ label: f.name,
41
+ value: f._id
42
42
  }))
43
43
  ]), p = V(() => [
44
44
  {
45
45
  label: r("menu.publish.update_catalog_dialog.sections.default.use_default"),
46
46
  value: null
47
47
  },
48
- ...s.catalogs.map((v) => ({
49
- label: v.name,
50
- value: v._id
48
+ ...s.catalogs.map((f) => ({
49
+ label: f.name,
50
+ value: f._id
51
51
  }))
52
52
  ]), t = A(y()), c = A(!1), b = A(void 0);
53
- function S(v) {
54
- b.value = v ? W(v) : y(), t.value = W(b.value), c.value = !0;
53
+ function S(f) {
54
+ b.value = f ? W(f) : y(), t.value = W(b.value), c.value = !0;
55
55
  }
56
56
  function x() {
57
57
  c.value = !1;
58
58
  }
59
- const L = fe(
59
+ const L = ve(
60
60
  () => !be.isEqual(b.value, t.value),
61
61
  () => {
62
62
  x();
@@ -65,11 +65,11 @@ const xe = { class: "fm-typo-en-title-md-600" }, Ve = { class: "mt-40" }, Fe = {
65
65
  function E() {
66
66
  x(), m("onComplete", t.value);
67
67
  }
68
- return (v, g) => {
68
+ return (f, g) => {
69
69
  const $ = C("FmSelect"), N = C("FmCheckbox"), R = C("FmButton"), D = C("FmSideSheet");
70
70
  return h(), P(D, {
71
71
  modelValue: c.value,
72
- "onUpdate:modelValue": g[5] || (g[5] = (f) => c.value = f),
72
+ "onUpdate:modelValue": g[5] || (g[5] = (v) => c.value = v),
73
73
  "max-width": 560,
74
74
  "onOn:clickedAway": i(L)
75
75
  }, {
@@ -95,35 +95,35 @@ const xe = { class: "fm-typo-en-title-md-600" }, Ve = { class: "mt-40" }, Fe = {
95
95
  default: U(() => [
96
96
  n($, {
97
97
  modelValue: t.value.catalogId,
98
- "onUpdate:modelValue": g[0] || (g[0] = (f) => t.value.catalogId = f),
98
+ "onUpdate:modelValue": g[0] || (g[0] = (v) => t.value.catalogId = v),
99
99
  items: _.value,
100
100
  class: "mb-24",
101
101
  label: i(r)("menu.publish.update_catalog_dialog.sections.default.label")
102
102
  }, null, 8, ["modelValue", "items", "label"]),
103
103
  n($, {
104
104
  modelValue: t.value.takeawayCatalog,
105
- "onUpdate:modelValue": g[1] || (g[1] = (f) => t.value.takeawayCatalog = f),
105
+ "onUpdate:modelValue": g[1] || (g[1] = (v) => t.value.takeawayCatalog = v),
106
106
  items: p.value,
107
107
  class: "mb-24",
108
108
  label: i(r)("menu.publish.update_catalog_dialog.sections.pos_takeaway.label")
109
109
  }, null, 8, ["modelValue", "items", "label"]),
110
110
  n($, {
111
111
  modelValue: t.value.pickupCatalog,
112
- "onUpdate:modelValue": g[2] || (g[2] = (f) => t.value.pickupCatalog = f),
112
+ "onUpdate:modelValue": g[2] || (g[2] = (v) => t.value.pickupCatalog = v),
113
113
  items: p.value,
114
114
  label: i(r)("menu.publish.update_catalog_dialog.sections.pickup.label")
115
115
  }, null, 8, ["modelValue", "items", "label"]),
116
116
  o("div", Ve, [
117
117
  o("div", Fe, F(i(r)("menu.publish.update_catalog_dialog.sections.additional.title")), 1),
118
118
  o("div", Se, F(i(r)("menu.publish.update_catalog_dialog.sections.additional.subtitle")), 1),
119
- (h(!0), M(B, null, Y(k.catalogs, (f) => (h(), M("div", {
120
- key: f._id
119
+ (h(!0), M(B, null, Y(k.catalogs, (v) => (h(), M("div", {
120
+ key: v._id
121
121
  }, [
122
122
  n(N, {
123
123
  modelValue: t.value.additionalCatalogs,
124
124
  "onUpdate:modelValue": g[3] || (g[3] = (I) => t.value.additionalCatalogs = I),
125
- label: f.name,
126
- value: f._id
125
+ label: v.name,
126
+ value: v._id
127
127
  }, null, 8, ["modelValue", "label", "value"])
128
128
  ]))), 128))
129
129
  ])
@@ -216,7 +216,7 @@ const Me = {
216
216
  }
217
217
  ];
218
218
  });
219
- return ne(async () => y()), ve(), (c, b) => {
219
+ return ne(async () => y()), fe(), (c, b) => {
220
220
  const S = C("FmCircularProgress");
221
221
  return s.value ? (h(), M("div", Me, [
222
222
  n(S, { size: "lg" })
@@ -368,7 +368,7 @@ const Me = {
368
368
  function L(e) {
369
369
  return e ? J(e).format("DD/MM/YYYY hh:mmA") : "";
370
370
  }
371
- const E = V(() => t.state.menu.modules.catalog), v = V(() => R.queue.value.some((e) => e.id === t.state.menu._id));
371
+ const E = V(() => t.state.menu.modules.catalog), f = V(() => R.queue.value.some((e) => e.id === t.state.menu._id));
372
372
  function g(e) {
373
373
  var a;
374
374
  return e ? ((a = E.value.find((d) => d._id === e)) == null ? void 0 : a.name) ?? l("menu.publish.labels.catalog.invalid") : l("menu.publish.labels.catalog.main");
@@ -397,9 +397,9 @@ const Me = {
397
397
  successMessage: `Published to ${a}`
398
398
  });
399
399
  }
400
- const f = A(null), I = V(() => t.state.restaurants.filter((e) => {
400
+ const v = A(null), I = V(() => t.state.restaurants.filter((e) => {
401
401
  var a;
402
- return !f.value || ((a = f.value) == null ? void 0 : a.includes(e._id));
402
+ return !v.value || ((a = v.value) == null ? void 0 : a.includes(e._id));
403
403
  }).map((e) => ({
404
404
  ...e,
405
405
  catalog: {
@@ -415,7 +415,7 @@ const Me = {
415
415
  }) => a.toLowerCase().includes(e) || d.default.toLowerCase().includes(e) || d.takeaway.toLowerCase().includes(e) || d.pickup.toLowerCase().includes(e));
416
416
  });
417
417
  async function H() {
418
- if (v.value) return;
418
+ if (f.value) return;
419
419
  const e = Object.keys(m.value).map(Number).filter((a) => m.value[a]);
420
420
  if (e.length === 0 || e.length === I.value.length)
421
421
  await R.minor(async () => await t.publishAllMenu(), {
@@ -435,15 +435,15 @@ const Me = {
435
435
  label: x.value,
436
436
  class: "xs:hidden text-fm-color-primary bg-fm-color-system-warning-100"
437
437
  }, null, 8, ["label"]), n(z), o("div", Oe, [n(O, {
438
- disabled: v.value,
438
+ disabled: f.value,
439
439
  icon: "ios_share",
440
440
  label: i(l)("menu.publish.actions.publish_all"),
441
441
  variant: "primary",
442
442
  onClick: a[0] || (a[0] = () => H())
443
443
  }, null, 8, ["disabled", "label"])])]), o("div", je, [n(i(he), {
444
444
  multiple: "",
445
- modelValue: f.value,
446
- "onUpdate:modelValue": a[1] || (a[1] = (u) => f.value = u)
445
+ modelValue: v.value,
446
+ "onUpdate:modelValue": a[1] || (a[1] = (u) => v.value = u)
447
447
  }, null, 8, ["modelValue"]), n(ae, {
448
448
  modelValue: _.value,
449
449
  "onUpdate:modelValue": a[2] || (a[2] = (u) => _.value = u),
@@ -459,7 +459,7 @@ const Me = {
459
459
  modelValue: m.value,
460
460
  "onUpdate:modelValue": a[3] || (a[3] = (u) => m.value = u),
461
461
  "column-defs": y,
462
- loading: v.value,
462
+ loading: f.value,
463
463
  "page-size": I.value.length,
464
464
  "row-data": I.value,
465
465
  "search-value": _.value,
@@ -486,12 +486,12 @@ const Me = {
486
486
  row: u
487
487
  }, null, 8, ["row"])]), o("div", Ye, [o("div", qe, F(u.name), 1), o("div", He, [o("div", null, "Default: " + F(u.catalog.default), 1), o("div", null, "POS takeaway: " + F(u.catalog.takeaway), 1), o("div", null, "Pickup: " + F(u.catalog.pickup), 1)])])]), o("div", We, [b.value && u.revertConfig ? (h(), P(O, {
488
488
  key: 0,
489
- disabled: v.value,
489
+ disabled: f.value,
490
490
  icon: "undo",
491
491
  variant: "tertiary",
492
492
  onClick: j(() => S(u), ["stop"])
493
493
  }, null, 8, ["disabled", "onClick"])) : se("", !0), n(O, {
494
- disabled: v.value,
494
+ disabled: f.value,
495
495
  icon: "ios_share",
496
496
  variant: "tertiary",
497
497
  onClick: j(() => D($(u)), ["stop"])
@@ -513,7 +513,7 @@ const Me = {
513
513
  }
514
514
  }
515
515
  }, null, 8, ["title", "subtitle", "action"]))]), o("div", Ge, [n(O, {
516
- disabled: v.value,
516
+ disabled: f.value,
517
517
  icon: "ios_share",
518
518
  label: i(l)("menu.publish.actions.publish_all"),
519
519
  variant: "fab",
@@ -1,13 +1,13 @@
1
- import { defineComponent as j, computed as h, ref as w, reactive as Q, watch as W, resolveComponent as k, openBlock as g, createElementBlock as F, Fragment as E, renderSlot as X, createVNode as d, unref as e, withCtx as x, createElementVNode as c, toDisplayString as S, getCurrentInstance as Z, h as L, withModifiers as D, createBlock as O, renderList as ee, normalizeClass as z, createCommentVNode as ne } from "vue";
2
- import { i as K, a as I, d as te, m as P, e as Y, g as ae, b as T, h as U, u as G, l as oe, _ as le, k as ie, j as se, f as ce } from "./app-Cn8ejMq2.js";
1
+ import { defineComponent as z, computed as h, ref as w, reactive as Q, watch as W, resolveComponent as k, openBlock as g, createElementBlock as F, Fragment as E, renderSlot as X, createVNode as m, unref as e, withCtx as x, createElementVNode as c, toDisplayString as S, getCurrentInstance as Z, h as L, withModifiers as D, createBlock as O, renderList as ee, normalizeClass as j, createCommentVNode as ne } from "vue";
2
+ import { i as K, a as I, d as te, m as P, e as Y, g as ae, b as T, h as U, u as G, l as oe, _ as le, k as ie, j as se, f as ce } from "./app-BFJlAowN.js";
3
3
  import { useSnackbar as $, components as q, useDialog as re, FmButtonVariant as H, useBreakpoints as ue } from "@feedmepos/ui-library";
4
4
  import { useI18n as A } from "@feedmepos/mf-common";
5
5
  import "vue-router";
6
- import { defineStore as me } from "pinia";
7
- import "./unit-DJPAcXZf.js";
8
- import { u as de, l as pe } from "./lodash-QRXx-M3X.js";
9
- import { _ as B, j as fe } from "./index-D1sxBB7B.js";
10
- const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ j({
6
+ import { defineStore as de } from "pinia";
7
+ import "./unit-BgfdgXAu.js";
8
+ import { u as me, l as pe } from "./lodash-247YxYiQ.js";
9
+ import { _ as B, g as fe } from "./index-BXl09ebx.js";
10
+ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40" }, ye = { class: "flex flex-row gap-16" }, ge = { class: "flex gap-8 items-center justify-start" }, be = /* @__PURE__ */ z({
11
11
  __name: "Form",
12
12
  props: {
13
13
  initialValue: { default: void 0 },
@@ -20,7 +20,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
20
20
  ae.isBoolean(n) ? o.value = n : o.value = !o.value;
21
21
  }, t = Q(
22
22
  p.initialValue ? te(p.initialValue) : P.generator.initRecipe()
23
- ), R = h(() => p.invalidSkuAndRecipe.skus), a = h(() => p.invalidSkuAndRecipe.recipes), y = de(
23
+ ), R = h(() => p.invalidSkuAndRecipe.skus), a = h(() => p.invalidSkuAndRecipe.recipes), y = me(
24
24
  () => !pe.isEqual(t, p.initialValue || P.generator.initRecipe()),
25
25
  () => {
26
26
  o.value = !1;
@@ -61,10 +61,10 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
61
61
  const N = k("FmTextField"), M = k("FmFormGroup"), s = k("fm-button"), J = k("fm-side-sheet");
62
62
  return g(), F(E, null, [
63
63
  X(n.$slots, "default", { trigger: V }),
64
- d(J, {
64
+ m(J, {
65
65
  id: "unit-form",
66
66
  modelValue: o.value,
67
- "onUpdate:modelValue": i[5] || (i[5] = (m) => o.value = m),
67
+ "onUpdate:modelValue": i[5] || (i[5] = (d) => o.value = d),
68
68
  "is-container": e(q).FmForm,
69
69
  "is-container-props": {
70
70
  onValidationSuccess: l,
@@ -79,14 +79,14 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
79
79
  ]),
80
80
  "side-sheet-footer": x(() => [
81
81
  c("div", ge, [
82
- d(s, {
82
+ m(s, {
83
83
  label: _.value,
84
84
  loading: v.value,
85
85
  size: "lg",
86
86
  type: "submit",
87
87
  variant: "primary"
88
88
  }, null, 8, ["label", "loading"]),
89
- d(s, {
89
+ m(s, {
90
90
  label: e(u)("menu.common.actions.cancel"),
91
91
  size: "lg",
92
92
  variant: "tertiary",
@@ -97,34 +97,34 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
97
97
  default: x(() => [
98
98
  c("div", ve, [
99
99
  c("div", ye, [
100
- d(N, {
100
+ m(N, {
101
101
  class: "flex-2",
102
102
  label: e(u)("menu.recipe.columns.name"),
103
103
  modelValue: t.name,
104
- "onUpdate:modelValue": i[0] || (i[0] = (m) => t.name = m),
104
+ "onUpdate:modelValue": i[0] || (i[0] = (d) => t.name = d),
105
105
  autofocus: "",
106
106
  rules: [
107
- (m) => !!m || e(u)("menu.common.validation.required", {
107
+ (d) => !!d || e(u)("menu.common.validation.required", {
108
108
  field: e(u)("menu.recipe.columns.name").toLowerCase()
109
109
  })
110
110
  ]
111
111
  }, null, 8, ["label", "modelValue", "rules"])
112
112
  ]),
113
- d(M, {
113
+ m(M, {
114
114
  modelValue: t.contains,
115
- "onUpdate:modelValue": i[3] || (i[3] = (m) => t.contains = m),
116
- rules: [(m) => m.length > 0 || e(u)("menu.recipe.validation.bind_required")]
115
+ "onUpdate:modelValue": i[3] || (i[3] = (d) => t.contains = d),
116
+ rules: [(d) => d.length > 0 || e(u)("menu.recipe.validation.bind_required")]
117
117
  }, {
118
118
  default: x(() => [
119
- d(B, {
119
+ m(B, {
120
120
  modelValue: t.contains,
121
- "onUpdate:modelValue": i[1] || (i[1] = (m) => t.contains = m),
121
+ "onUpdate:modelValue": i[1] || (i[1] = (d) => t.contains = d),
122
122
  type: e(Y.F_INVENTORY_BINDING_TYPE).enum.RECIPE,
123
123
  "filter-option-ids": a.value
124
124
  }, null, 8, ["modelValue", "type", "filter-option-ids"]),
125
- d(B, {
125
+ m(B, {
126
126
  modelValue: t.contains,
127
- "onUpdate:modelValue": i[2] || (i[2] = (m) => t.contains = m),
127
+ "onUpdate:modelValue": i[2] || (i[2] = (d) => t.contains = d),
128
128
  type: e(Y.F_INVENTORY_BINDING_TYPE).enum.SKU,
129
129
  "filter-option-ids": R.value
130
130
  }, null, 8, ["modelValue", "type", "filter-option-ids"])
@@ -138,7 +138,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
138
138
  ], 64);
139
139
  };
140
140
  }
141
- }), he = be, ke = me("recipe-manager", () => {
141
+ }), he = be, ke = de("recipe-manager", () => {
142
142
  const C = re(), r = $(), u = I(r), p = K(u), f = G(), b = Z(), { t: _ } = A(), v = (a) => {
143
143
  var l, n;
144
144
  const { vNode: y } = oe(
@@ -151,7 +151,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
151
151
  async function o(a) {
152
152
  v({
153
153
  initialValue: a,
154
- invalidSkuAndRecipe: a ? fe.getInvalidSkuAndRecipe({
154
+ invalidSkuAndRecipe: a ? fe({
155
155
  id: a._id,
156
156
  skus: f.skus,
157
157
  recipes: f.state.menu.modules.recipe
@@ -202,7 +202,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
202
202
  }, Fe = {
203
203
  class: "flex justify-end items-center my-8 px-16"
204
204
  }, Re = {
205
- class: /* @__PURE__ */ z(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
205
+ class: /* @__PURE__ */ j(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"])
206
206
  }, Ce = ["onClick"], Ee = {
207
207
  class: "flex-1"
208
208
  }, Se = {
@@ -217,7 +217,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
217
217
  class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
218
218
  }, Te = {
219
219
  class: "fm-typo-en-body-md-600 font-semibold"
220
- }, je = /* @__PURE__ */ j({
220
+ }, ze = /* @__PURE__ */ z({
221
221
  __name: "Recipe",
222
222
  setup(C) {
223
223
  const {
@@ -277,7 +277,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
277
277
  key: 1
278
278
  }, [a.value ? (g(), F(E, {
279
279
  key: 1
280
- }, [c("div", Fe, [d(n, {
280
+ }, [c("div", Fe, [m(n, {
281
281
  modelValue: v.value,
282
282
  "onUpdate:modelValue": l[2] || (l[2] = (s) => v.value = s),
283
283
  autofocus: "",
@@ -285,21 +285,21 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
285
285
  placeholder: e(r)("menu.recipe.table.search.placeholder")
286
286
  }, null, 8, ["modelValue", "placeholder"])]), c("div", Re, [(g(!0), F(E, null, ee(_.value, (s) => (g(), F("div", {
287
287
  key: s._id,
288
- class: z(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
288
+ class: j(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
289
289
  onClick: () => e(f).updateRecipe(s)
290
- }, [c("div", Ee, [c("p", Se, S(s.name), 1), c("p", we, S(s.ingredients), 1)]), d(N, {
290
+ }, [c("div", Ee, [c("p", Se, S(s.name), 1), c("p", we, S(s.ingredients), 1)]), m(N, {
291
291
  variant: e(H).Tertiary,
292
292
  "prepend-icon": "delete",
293
293
  "text-color": "neutral-gray-400",
294
294
  onClick: D(() => e(f).deleteRecipe(s), ["stop"])
295
- }, null, 8, ["variant", "onClick"])], 8, Ce))), 128))])], 64)) : (g(), F("div", Ve, [c("div", xe, [d(n, {
295
+ }, null, 8, ["variant", "onClick"])], 8, Ce))), 128))])], 64)) : (g(), F("div", Ve, [c("div", xe, [m(n, {
296
296
  modelValue: v.value,
297
297
  "onUpdate:modelValue": l[0] || (l[0] = (s) => v.value = s),
298
298
  autofocus: "",
299
299
  class: "mb-8 w-[320px]",
300
300
  placeholder: e(r)("menu.recipe.table.search.placeholder")
301
- }, null, 8, ["modelValue", "placeholder"])]), d(se, null, {
302
- default: x(() => [d(i, {
301
+ }, null, 8, ["modelValue", "placeholder"])]), m(se, null, {
302
+ default: x(() => [m(i, {
303
303
  "column-defs": o.value,
304
304
  "page-size": _.value.length,
305
305
  "row-data": _.value,
@@ -310,7 +310,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
310
310
  }, null, 8, ["column-defs", "page-size", "row-data"])]),
311
311
  _: 1
312
312
  })]))], 64))]),
313
- "append-heading": x(() => [c("div", Ne, [c("div", Me, [c("div", Oe, [c("p", Te, S(t.value), 1)])]), d(M), b.value.length > 0 ? (g(), O(ce, {
313
+ "append-heading": x(() => [c("div", Ne, [c("div", Me, [c("div", Oe, [c("p", Te, S(t.value), 1)])]), m(M), b.value.length > 0 ? (g(), O(ce, {
314
314
  key: 0,
315
315
  label: e(r)("menu.recipe.actions.add"),
316
316
  "prepend-icon": "add",
@@ -322,5 +322,5 @@ const _e = { class: "fm-typo-en-title-md-600" }, ve = { class: "pt-8 space-y-40"
322
322
  }
323
323
  });
324
324
  export {
325
- je as default
325
+ ze as default
326
326
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as N, computed as y, h as c, withModifiers as U, ref as V, resolveComponent as _, openBlock as d, createBlock as k, unref as m, withCtx as h, createElementVNode as l, createCommentVNode as H, createElementBlock as D, Fragment as I, createVNode as f, renderList as T, toDisplayString as S } from "vue";
2
- import { b as i, u as W, i as Q, a as G, _ as J, f as X, k as Z, j as ee } from "./app-Cn8ejMq2.js";
2
+ import { b as i, u as W, i as Q, a as G, _ as J, f as X, k as Z, j as ee } from "./app-BFJlAowN.js";
3
3
  import { components as te, useDialog as ne, useSnackbar as ae } from "@feedmepos/ui-library";
4
- import { d as oe, _ as se, u as le, c as re } from "./scheduler-C8HLf4JH.js";
4
+ import { d as oe, _ as se, u as le, c as re } from "./scheduler-0cChIv2I.js";
5
5
  import { useI18n as ue } from "@feedmepos/mf-common";
6
6
  const ce = {
7
7
  class: "flex flex-1 justify-end"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as k, computed as r, ref as I, resolveComponent as l, openBlock as u, createBlock as p, withCtx as m, createVNode as s, createElementVNode as d, toDisplayString as w, unref as _, createElementBlock as M, Fragment as V, renderList as L } from "vue";
2
- import { u as g } from "./app-Cn8ejMq2.js";
2
+ import { u as g } from "./app-BFJlAowN.js";
3
3
  import { useI18n as B } from "@feedmepos/mf-common";
4
4
  const E = { class: "p-4" }, N = { class: "flex-1 overflow-y-auto min-h-0" }, j = /* @__PURE__ */ k({
5
5
  __name: "SchedulerSelector",
@@ -0,0 +1,4 @@
1
+ import { s } from "./app-BFJlAowN.js";
2
+ export {
3
+ s as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Setting.vue_vue_type_script_setup_true_lang-BTiZlc2E.js";
1
+ import { _ as f } from "./Setting.vue_vue_type_script_setup_true_lang-BbVEzNve.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as ue, computed as p, ref as P, watch as ie, watchEffect as re, resolveComponent as m, openBlock as r, createElementBlock as S, createVNode as s, normalizeClass as W, withCtx as c, createElementVNode as v, createBlock as g, unref as e, createCommentVNode as y, Fragment as $, renderList as z, createTextVNode as me, toDisplayString as U } from "vue";
2
- import { u as ce, a as de, b as f, i as pe, c as ve, d as w } from "./app-Cn8ejMq2.js";
3
- import { C as H } from "./catalog-DYe86x7O.js";
4
- import { C as _, a as k, _ as j } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BKuXmC_M.js";
2
+ import { u as ce, a as de, b as f, i as pe, c as ve, d as w } from "./app-BFJlAowN.js";
3
+ import { C as H } from "./catalog-B-Z6lEFK.js";
4
+ import { C as _, a as k, _ as j } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BV-FC8tM.js";
5
5
  import { useSnackbar as ge, useDialog as fe, FmButtonColorThemeVariant as q, FmButtonVariant as J, components as _e } from "@feedmepos/ui-library";
6
6
  import { useCoreStore as be, useI18n as ye } from "@feedmepos/mf-common";
7
7
  import { _ as ke } from "./FormSection.vue_vue_type_script_setup_true_lang-BWJUD8NZ.js";
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Takeaway.vue_vue_type_script_setup_true_lang-CrIDoLuT.js";
1
+ import { _ as f } from "./Takeaway.vue_vue_type_script_setup_true_lang-DSphRs_i.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as f, computed as y, ref as k, openBlock as r, createBlock as d, unref as a, withCtx as s, createVNode as u, createElementVNode as t, toDisplayString as b, createCommentVNode as g } from "vue";
2
- import { a as v } from "./menu-DyHXKzGq.js";
3
- import { a as w, u as x, _ as M, b as T, h, f as E, i as V } from "./app-Cn8ejMq2.js";
4
- import { _ as C } from "./Takeaway.vue_vue_type_script_setup_true_lang-CrIDoLuT.js";
2
+ import { a as v } from "./menu-DCnWrgH7.js";
3
+ import { a as w, u as x, _ as M, b as T, h, f as E, i as V } from "./app-BFJlAowN.js";
4
+ import { _ as C } from "./Takeaway.vue_vue_type_script_setup_true_lang-DSphRs_i.js";
5
5
  import { useSnackbar as N } from "@feedmepos/ui-library";
6
6
  import { useI18n as S } from "@feedmepos/mf-common";
7
7
  import "vue-router";
8
- import { T as L, l as O } from "./takeaway-D1YMjOoE.js";
8
+ import { T as L, l as O } from "./takeaway-mwqVQ1ij.js";
9
9
  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" }, D = { class: "fm-typo-en-body-md-600 font-semibold" }, G = /* @__PURE__ */ f({
10
10
  __name: "Takeaway",
11
11
  setup(I) {
@@ -1,11 +1,11 @@
1
1
  import { getCurrentInstance as te, defineComponent as ne, computed as h, watch as oe, h as R, resolveComponent as S, openBlock as _, createElementBlock as x, Fragment as O, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, normalizeClass as D, toDisplayString as I, createBlock as $, withModifiers as G, createCommentVNode as q } from "vue";
2
- import { a as J, u as Q, b as N, h as z, i as W, d as L, l as se, c as re, n as le, U as H, j as ce, k as de } from "./app-Cn8ejMq2.js";
3
- import { l as X, a as ue, T as me } from "./takeaway-D1YMjOoE.js";
4
- import { f as F } from "./currency-ak89ne8W.js";
2
+ import { a as J, u as Q, b as N, h as z, i as W, d as L, l as se, c as re, n as le, U as H, j as ce, k as de } from "./app-BFJlAowN.js";
3
+ import { l as X, a as ue, T as me } from "./takeaway-mwqVQ1ij.js";
4
+ import { f as F } from "./currency-33gUke3q.js";
5
5
  import { useDialog as ye, useSnackbar as Z, FmButtonVariant as A, components as pe, useBreakpoints as fe } from "@feedmepos/ui-library";
6
6
  import { useI18n as ee, useCoreStore as _e } from "@feedmepos/mf-common";
7
7
  import { defineStore as ke } from "pinia";
8
- import { C as ve } from "./catalog-DYe86x7O.js";
8
+ import { C as ve } from "./catalog-B-Z6lEFK.js";
9
9
  function we(T, U, l, m) {
10
10
  var y, v, w, g;
11
11
  const i = L(T);
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as r, openBlock as s, createBlock as i, unref as m, withCtx as c, createVNode as u } from "vue";
2
- import { a as _ } from "./menu-DyHXKzGq.js";
3
- import { a as f, _ as p, i as d } from "./app-Cn8ejMq2.js";
4
- import { _ as g } from "./Setting.vue_vue_type_script_setup_true_lang-BTiZlc2E.js";
5
- import { u as l } from "./category-Cn9bav8Y.js";
2
+ import { a as _ } from "./menu-DCnWrgH7.js";
3
+ import { a as f, _ as p, i as d } from "./app-BFJlAowN.js";
4
+ import { _ as g } from "./Setting.vue_vue_type_script_setup_true_lang-BbVEzNve.js";
5
+ import { u as l } from "./category-DEWEor3m.js";
6
6
  import { useDialog as x, useSnackbar as h } from "@feedmepos/ui-library";
7
7
  import { useI18n as k } from "@feedmepos/mf-common";
8
8
  const I = /* @__PURE__ */ r({
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as L, computed as m, ref as g, h as k, withModifiers as x, resolveComponent as p, openBlock as a, createBlock as b, unref as e, withCtx as h, createElementBlock as u, Fragment as v, createElementVNode as o, createVNode as r, renderList as N, normalizeClass as C, toDisplayString as f, createCommentVNode as T } from "vue";
2
- import { a as E, u as K, _ as R, k as D, f as I } from "./app-Cn8ejMq2.js";
2
+ import { a as E, u as K, _ as R, k as D, f as I } from "./app-BFJlAowN.js";
3
3
  import { useSnackbar as q, components as A, useBreakpoints as G, FmButtonVariant as H } from "@feedmepos/ui-library";
4
4
  import { useI18n as J } from "@feedmepos/mf-common";
5
5
  import "vue-router";
6
- import { u as O, U as P } from "./unit-DJPAcXZf.js";
6
+ import { u as O, U as P } from "./unit-BgfdgXAu.js";
7
7
  const Q = {
8
8
  key: 0,
9
9
  class: "h-[600px]"
@@ -1,7 +1,7 @@
1
1
  import { getCurrentInstance as $, defineComponent as A, computed as g, onMounted as O, h as E, resolveComponent as x, openBlock as m, createBlock as F, unref as e, withCtx as p, createVNode as i, withModifiers as V, createCommentVNode as R, createElementBlock as f, Fragment as C, createElementVNode as r, isRef as I, renderList as Y, normalizeClass as L, toDisplayString as w } from "vue";
2
- import { a as N, u as j, b as G, h as q, i as D, l as H, n as J, _ as Q, f as W, j as X, k as Z } from "./app-Cn8ejMq2.js";
2
+ import { a as N, u as j, b as G, h as q, i as D, l as H, n as J, _ as Q, f as W, j as X, k as Z } from "./app-BFJlAowN.js";
3
3
  import { useDialog as ee, useSnackbar as K, FmButtonVariant as M, components as ae, useBreakpoints as ne } from "@feedmepos/ui-library";
4
- import { V as S } from "./index-B-PHXxgb.js";
4
+ import { V as S } from "./index-BEdHzZvu.js";
5
5
  import { defineStore as te } from "pinia";
6
6
  import { useI18n as P } from "@feedmepos/mf-common";
7
7
  const oe = te("variant-manager", () => {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as B, computed as u, ref as p, watch as C, onMounted as q, resolveComponent as c, openBlock as x, createElementBlock as F, Fragment as H, createVNode as l, withCtx as r, createElementVNode as i, toDisplayString as T, unref as n, createBlock as I } from "vue";
2
2
  import { useRoute as K, useRouter as W } from "vue-router";
3
- import { a as j, u as J, R as m, m as Q, d as X, _ as Z, f as M, i as ee, D as ae } from "./app-Cn8ejMq2.js";
3
+ import { a as j, u as J, R as m, m as Q, d as X, _ as Z, f as M, i as ee, D as ae } from "./app-BFJlAowN.js";
4
4
  import { useDialog as te, useSnackbar as oe, useBreakpoints as ne } from "@feedmepos/ui-library";
5
- import { _ as le, u as se, c as ue } from "./scheduler-C8HLf4JH.js";
6
- import { m as re } from "./toExcel-CeOvEnsu.js";
7
- import { u as ie, a as me, _ as ce, w as de } from "./catalog-B4hTLUkg.js";
8
- import { L as A } from "./LinkProductSideSheet-CN4VpQoC.js";
9
- import { a as pe } from "./menu-DyHXKzGq.js";
5
+ import { _ as le, u as se, c as ue } from "./scheduler-0cChIv2I.js";
6
+ import { m as re } from "./toExcel-Dha8Vf3u.js";
7
+ import { u as ie, a as me, _ as ce, w as de } from "./catalog-Do7RfIKm.js";
8
+ import { L as A } from "./LinkProductSideSheet-A26Otbdm.js";
9
+ import { a as pe } from "./menu-DCnWrgH7.js";
10
10
  import { useI18n as _e } from "@feedmepos/mf-common";
11
11
  const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class: "flex ml-auto space-x-8" }, be = { class: "flex-1 flex flex-col overflow-hidden" }, De = /* @__PURE__ */ B({
12
12
  __name: "[id]",