@feedmepos/mf-menu 0.31.31-beta.1 → 0.31.31-prod

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 (101) hide show
  1. package/dist/{App-1TX8v7ZA.js → App-Cvgz2kQV.js} +22 -24
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Bq84uuiq.js} +22 -22
  3. package/dist/{Catalog-DWClc58s.js → Catalog-Ye-KpQ31.js} +74 -75
  4. package/dist/{Category-BqKFvFam.js → Category-BPChBqVR.js} +60 -60
  5. package/dist/{Category-IYMtMoT-.js → Category-CHcxix2b.js} +28 -28
  6. package/dist/{CookingGuide-BayJ6zj4.js → CookingGuide-DgygBSoB.js} +101 -103
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-ClV6LD2-.js} +1 -1
  8. package/dist/{Group-LqSX7ue6.js → Group-223G1Edd.js} +1 -1
  9. package/dist/{Group-RujTPTns.js → Group-B7EU1xmY.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-Dj9ZmkYe.js → Group.vue_vue_type_script_setup_true_lang-CAZuyOPy.js} +137 -138
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CdjRWC9z.js} +13 -13
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C4IrA3es.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BRQm-UTk.js} +5067 -5049
  13. package/dist/{Ingredient-_tc8llr1.js → Ingredient-Dl1Z5Qt2.js} +64 -65
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CxuQTH0k.js} +1061 -1063
  15. package/dist/{LinkProductSideSheet-C6rF-G1v.js → LinkProductSideSheet-Y-Z9_9Kp.js} +12 -14
  16. package/dist/{MenuSetting-xDHeeROY.js → MenuSetting-Be44fmVj.js} +26 -27
  17. package/dist/{PrintRoute-B_TFMn5e.js → PrintRoute-BURAEZ6X.js} +15 -17
  18. package/dist/{Product-DdEEqrtc.js → Product-DSlVHbgr.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-zcistmwh.js → Product.vue_vue_type_script_setup_true_lang-DtYarO0L.js} +256 -257
  20. package/dist/{ProductInternalTools-BcC7BF6W.js → ProductInternalTools-gW57aUAO.js} +45 -45
  21. package/dist/{Products-Cu0cJshV.js → Products-Czr-70M8.js} +72 -74
  22. package/dist/{Publish-Bm3Xiks1.js → Publish-XCowNW_z.js} +32 -34
  23. package/dist/{Recipe-DWK-luIZ.js → Recipe-6oNz21AB.js} +63 -65
  24. package/dist/{Scheduler-Cb1TeBhW.js → Scheduler-UYFuFk5E.js} +19 -19
  25. package/dist/{ServingSequence-evSIET_8.js → ServingSequence-w66ujU4D.js} +34 -34
  26. package/dist/{Setting-Cn3kwC9F.js → Setting-Dgn3lOx7.js} +53 -54
  27. package/dist/{Subcategory-q4m4qHsU.js → Subcategory-lnzuxCCH.js} +34 -34
  28. package/dist/{Takeaway-ClepHYGu.js → Takeaway-C5Up5Odr.js} +14 -14
  29. package/dist/{Takeaway-D-rdUZuh.js → Takeaway-DP1GJUPF.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-y9Yxstu2.js → Takeaway.vue_vue_type_script_setup_true_lang-B45keXn7.js} +40 -41
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BSeLfoOA.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-yEIxG4F2.js} +1108 -1109
  32. package/dist/{Unit-IM8Naj82.js → Unit-Bt8aRidX.js} +12 -12
  33. package/dist/{Variant-fzGvwaMo.js → Variant-DXoOAa9M.js} +16 -16
  34. package/dist/{_id_-BsKNG9Qv.js → _id_-D9tvinax.js} +22 -22
  35. package/dist/{app-BzQRUMTK.js → app-Cnlv4rmj.js} +3 -3
  36. package/dist/{app-CoVUUCa_.js → app-DiizQWjo.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +88 -16
  39. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +44 -8
  40. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +360 -184
  41. package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +80 -28
  42. package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +44 -8
  43. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +216 -148
  44. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +216 -148
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/category.d.ts +4 -4
  46. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +218 -150
  47. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +142 -82
  48. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +108 -74
  49. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +80 -28
  50. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +44 -8
  51. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +176 -32
  52. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +324 -222
  53. package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +108 -74
  54. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1374 -1040
  55. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +216 -148
  56. package/dist/apps/mf-menu/src/helper/import-export.d.ts +1374 -1040
  57. package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +108 -74
  58. package/dist/apps/mf-menu/src/helper/menu.d.ts +1523 -1155
  59. package/dist/apps/mf-menu/src/manager/menu/category.d.ts +4 -4
  60. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +1374 -1040
  61. package/dist/apps/mf-menu/src/manager/menu/subcategory.d.ts +4 -4
  62. package/dist/apps/mf-menu/src/stores/manager/item.d.ts +324 -222
  63. package/dist/apps/mf-menu/src/stores/manager/recipe.d.ts +12 -12
  64. package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +142 -82
  65. package/dist/apps/mf-menu/src/stores/manager/sku.d.ts +60 -60
  66. package/dist/apps/mf-menu/src/stores/manager/takeaway.d.ts +6 -6
  67. package/dist/apps/mf-menu/src/stores/manager/unit.d.ts +12 -12
  68. package/dist/apps/mf-menu/src/stores/menu.d.ts +1375 -1041
  69. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +216 -148
  70. package/dist/apps/mf-menu/src/views/CookingGuide/CookingGuideDialog.vue.d.ts +4 -4
  71. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +352 -132
  72. package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +84 -32
  73. package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +84 -32
  74. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  75. package/dist/assets/linked-status-D7AwcSC5.js +24 -0
  76. package/dist/assets/override-menu-Y9T4wxEn.js +24 -0
  77. package/dist/assets/validate-menu-DiAW2jY1.js +24 -0
  78. package/dist/{catalog-CaXceaA2.js → catalog-DUSCax4J.js} +1 -1
  79. package/dist/{catalogSetting-BGvckFdh.js → catalogSetting-18FJ5pkA.js} +1 -1
  80. package/dist/{category-u5eo_Vjd.js → category-B9XvlPFy.js} +3 -5
  81. package/dist/currency-Sno8fZYc.js +7 -0
  82. package/dist/{dayjs.min-Bsr3tJCn.js → dayjs.min-BsfKOrNo.js} +1 -1
  83. package/dist/{index-tRQb7RN_.js → index-BDpkSKDX.js} +1 -1
  84. package/dist/{index-Bbx4iZ6n.js → index-Eomwf2OO.js} +27 -27
  85. package/dist/{index-DSAG0yWh.js → index-ltyOwsRO.js} +20 -22
  86. package/dist/{item-BAqzKh4O.js → item-5Kkzf_eF.js} +1069 -1071
  87. package/dist/{jszip.min-BKJtvCjM.js → jszip.min-CRfpGjN8.js} +545 -545
  88. package/dist/menu-Btcr0nsk.js +108040 -0
  89. package/dist/{menu-CDrsBjmr.js → menu-DYs_VNfB.js} +9 -11
  90. package/dist/mf-menu.css +1 -1
  91. package/dist/{priceTier-DfbHonGe.js → priceTier-DvUjWwCM.js} +4 -4
  92. package/dist/{scheduler-DTWaBudB.js → scheduler-C76blUlS.js} +11 -13
  93. package/dist/{subcategory-D-R5r1Tr.js → subcategory-C44qN5Vk.js} +133 -135
  94. package/dist/{toExcel-84VTtSA7.js → toExcel--vNjpF-b.js} +2 -2
  95. package/dist/{unit-B4zscxzo.js → unit-C4ghZU8x.js} +23 -24
  96. package/package.json +5 -5
  97. package/dist/assets/linked-status-eQqjvOq_.js +0 -24
  98. package/dist/assets/override-menu-C8NTBJgN.js +0 -24
  99. package/dist/assets/validate-menu-Dn-OO7Ed.js +0 -24
  100. package/dist/currency-BPHwez-E.js +0 -7
  101. package/dist/menu-CsIzrBEr.js +0 -74044
@@ -1,18 +1,16 @@
1
- import { defineComponent as S, ref as V, computed as z, watch as F, resolveComponent as b, createElementBlock as I, openBlock as w, Fragment as D, renderSlot as O, createVNode as r, unref as n, withCtx as f, createElementVNode as y, createBlock as A, createCommentVNode as E, toDisplayString as L } from "vue";
2
- import { D as _, G as N } from "./menu-CsIzrBEr.js";
1
+ import { defineComponent as S, ref as V, computed as I, watch as z, resolveComponent as b, createElementBlock as F, openBlock as w, Fragment as O, renderSlot as A, createVNode as r, unref as n, withCtx as f, createElementVNode as y, createBlock as D, createCommentVNode as E, toDisplayString as L } from "vue";
2
+ import { H as _, I as N } from "./menu-Btcr0nsk.js";
3
3
  import { useI18n as j, ItemSelector as P } from "@feedmepos/mf-common";
4
4
  import { components as U, FmButtonVariant as q } from "@feedmepos/ui-library";
5
- import { u as G } from "./discardConfirm-BHni0LNu.js";
5
+ import { u as H } from "./discardConfirm-BHni0LNu.js";
6
6
  import { c as M } from "./check-C9mY6LiX.js";
7
- import "@feedmepos/core";
8
- import "@feedmepos/core/entity";
9
7
  /* empty css */
10
8
  const T = (i, u) => {
11
9
  const s = i.__vccOpts || i;
12
10
  for (const [c, t] of u)
13
11
  s[c] = t;
14
12
  return s;
15
- }, $ = { class: "fm-typo-en-title-md-600 mr-auto" }, H = { class: "flex gap-8 items-center justify-start" }, J = /* @__PURE__ */ S({
13
+ }, $ = { class: "fm-typo-en-title-md-600 mr-auto" }, G = { class: "flex gap-8 items-center justify-start" }, J = /* @__PURE__ */ S({
16
14
  __name: "LinkProductSideSheet",
17
15
  props: {
18
16
  initialValue: { default: () => [] },
@@ -31,7 +29,7 @@ const T = (i, u) => {
31
29
  function d(e) {
32
30
  return e.reduce((o, a) => (o[a._id] = [...o[a._id] ?? [], a], o), {});
33
31
  }
34
- const k = s.initialValue, l = V(d(_(k))), h = z(() => Object.values(l.value).flatMap((e) => e)), g = G(
32
+ const k = s.initialValue, l = V(d(_(k))), h = I(() => Object.values(l.value).flatMap((e) => e)), g = H(
35
33
  () => !N.isEqual(d(s.initialValue), l.value),
36
34
  () => {
37
35
  t.value = !1;
@@ -40,7 +38,7 @@ const T = (i, u) => {
40
38
  function B() {
41
39
  c("submit", h.value), t.value = !1;
42
40
  }
43
- F(
41
+ z(
44
42
  () => t.value,
45
43
  () => {
46
44
  l.value = d(_(s.initialValue));
@@ -49,8 +47,8 @@ const T = (i, u) => {
49
47
  const { t: m } = j();
50
48
  return (e, o) => {
51
49
  const a = b("fm-button"), C = b("fm-side-sheet");
52
- return w(), I(D, null, [
53
- O(e.$slots, "default", { trigger: v }, void 0, !0),
50
+ return w(), F(O, null, [
51
+ A(e.$slots, "default", { trigger: v }, void 0, !0),
54
52
  r(C, {
55
53
  id: "group-form",
56
54
  modelValue: t.value,
@@ -65,7 +63,7 @@ const T = (i, u) => {
65
63
  "onOn:clickedAway": n(g)
66
64
  }, {
67
65
  "side-sheet-header": f(() => [
68
- e.useCloseBtn ? E("", !0) : (w(), A(a, {
66
+ e.useCloseBtn ? E("", !0) : (w(), D(a, {
69
67
  key: 0,
70
68
  variant: n(q).Tertiary,
71
69
  class: "cursor-pointer mr-4",
@@ -75,7 +73,7 @@ const T = (i, u) => {
75
73
  y("p", $, L(e.title || n(m)("menu.link_product.title")), 1)
76
74
  ]),
77
75
  "side-sheet-footer": f(() => [
78
- y("div", H, [
76
+ y("div", G, [
79
77
  r(a, {
80
78
  label: n(m)("menu.common.actions.confirm"),
81
79
  size: "lg",
@@ -107,8 +105,8 @@ const T = (i, u) => {
107
105
  ], 64);
108
106
  };
109
107
  }
110
- }), te = /* @__PURE__ */ T(J, [["__scopeId", "data-v-25b0fda9"]]);
108
+ }), x = /* @__PURE__ */ T(J, [["__scopeId", "data-v-25b0fda9"]]);
111
109
  export {
112
- te as L,
110
+ x as L,
113
111
  T as _
114
112
  };
@@ -1,13 +1,12 @@
1
- import { defineComponent as G, computed as T, ref as F, watch as K, createVNode as n, resolveComponent as c, createBlock as V, openBlock as d, unref as e, withCtx as p, createElementVNode as _, createElementBlock as k, createCommentVNode as y, Fragment as q, renderList as H, toDisplayString as U } from "vue";
2
- import { Country as J } from "@feedmepos/core";
3
- import { useI18n as Q, useCoreStore as R } from "@feedmepos/mf-common";
4
- import { useSnackbar as W, components as X, FmButtonVariant as Y, FmButtonColorThemeVariant as Z } from "@feedmepos/ui-library";
5
- import { _ as A } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
6
- import { _ as ee } from "./app-CoVUUCa_.js";
7
- import { u as te, A as le, D as M } from "./menu-CsIzrBEr.js";
1
+ import { defineComponent as G, computed as T, ref as F, watch as H, createVNode as n, resolveComponent as c, createBlock as V, openBlock as d, unref as e, withCtx as p, createElementVNode as _, createElementBlock as k, createCommentVNode as y, Fragment as K, renderList as q, toDisplayString as U } from "vue";
2
+ import { u as J, D as Q, A as R, H as A } from "./menu-Btcr0nsk.js";
3
+ import { useI18n as W, useCoreStore as X } from "@feedmepos/mf-common";
4
+ import { useSnackbar as Y, components as Z, FmButtonVariant as ee, FmButtonColorThemeVariant as te } from "@feedmepos/ui-library";
5
+ import { _ as M } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
6
+ import { _ as le } from "./app-DiizQWjo.js";
8
7
  import { _ as ne } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
9
- import { C as b, a as m } from "./catalogSetting-BGvckFdh.js";
10
- import { u as oe } from "./priceTier-DfbHonGe.js";
8
+ import { C as b, a as m } from "./catalogSetting-18FJ5pkA.js";
9
+ import { u as oe } from "./priceTier-DvUjWwCM.js";
11
10
  const ae = {
12
11
  class: "py-16"
13
12
  }, se = {
@@ -26,13 +25,13 @@ const ae = {
26
25
  class: "fm-typo-en-title-md-600"
27
26
  }, de = {
28
27
  class: "text-fm-color-typo-secondary"
29
- }, we = /* @__PURE__ */ G({
28
+ }, ye = /* @__PURE__ */ G({
30
29
  __name: "MenuSetting",
31
30
  setup(pe) {
32
31
  var h;
33
32
  const {
34
33
  t
35
- } = Q(), v = te(), w = R(), N = W(), B = le(N), u = T(() => ({
34
+ } = W(), v = J(), w = X(), N = Y(), B = Q(N), u = T(() => ({
36
35
  lowStock: v.state.menu.lowStockThreshold,
37
36
  taxSetting: v.state.menu.masterCatalogSetting,
38
37
  priceTierSettings: v.state.menu.priceTierSettings
@@ -43,14 +42,14 @@ const ae = {
43
42
  label: t("menu.menu_setting.tabs.price_group"),
44
43
  value: "price-group"
45
44
  }] : []]), i = F(b.transformTax((h = u.value.taxSetting) == null ? void 0 : h.inclusiveTaxes));
46
- K(() => u.value, (a) => {
45
+ H(() => u.value, (a) => {
47
46
  var l;
48
47
  i.value = b.transformTax((l = a.taxSetting) == null ? void 0 : l.inclusiveTaxes);
49
48
  });
50
49
  const S = T(() => {
51
50
  if (!w.currentCountry.value) return [];
52
51
  const a = i.value.mode === m.MANUAL ? i.value.inclusive ?? [] : [];
53
- return J.getCountry(w.currentCountry.value).taxSystems.map((s) => {
52
+ return R.Country.getCountry(w.currentCountry.value).taxSystems.map((s) => {
54
53
  const r = a.find((g) => g.systemCode === s.code);
55
54
  return {
56
55
  inclusive: (r == null ? void 0 : r.inclusive) || !1,
@@ -59,7 +58,7 @@ const ae = {
59
58
  });
60
59
  });
61
60
  function L(a) {
62
- const l = i.value, s = l.mode === m.AUTO ? b.manualTax(S.value) : M(l);
61
+ const l = i.value, s = l.mode === m.AUTO ? b.manualTax(S.value) : A(l);
63
62
  s.inclusive ?? (s.inclusive = []);
64
63
  const r = s.inclusive.findIndex((g) => g.systemCode === a.systemCode);
65
64
  r < 0 ? s.inclusive.push(a) : s.inclusive.splice(r, 1, a), i.value = s;
@@ -67,7 +66,7 @@ const ae = {
67
66
  async function O() {
68
67
  if (u.value.lowStock !== null && u.value.lowStock !== void 0 && !Number.isInteger(u.value.lowStock))
69
68
  return;
70
- const a = i.value.mode === m.AUTO ? null : M(i.value.inclusive);
69
+ const a = i.value.mode === m.AUTO ? null : A(i.value.inclusive);
71
70
  await B.minor(async () => {
72
71
  const l = u.value.lowStock === null || u.value.lowStock === void 0 || u.value.lowStock === 0;
73
72
  await v.updateMenuSetting({
@@ -90,15 +89,15 @@ const ae = {
90
89
  size: 50,
91
90
  cell: (a) => n("div", {
92
91
  class: "px-4 flex justify-end"
93
- }, [n(X.FmButton, {
92
+ }, [n(Z.FmButton, {
94
93
  icon: "delete",
95
- "text-color": Z.NeutralGray400,
96
- variant: Y.Tertiary,
94
+ "text-color": te.NeutralGray400,
95
+ variant: ee.Tertiary,
97
96
  onClick: () => f.deletePriceTier(a.row.original.key)
98
97
  }, null)])
99
98
  }];
100
99
  return (a, l) => {
101
- const s = c("FmTabs"), r = c("fm-radio"), g = c("fm-radio-group"), D = c("fm-checkbox"), $ = c("FormItem"), j = c("FmStepperField"), C = c("FmButton"), E = c("FmTable");
100
+ const s = c("FmTabs"), r = c("fm-radio"), g = c("fm-radio-group"), D = c("fm-checkbox"), E = c("FormItem"), $ = c("FmStepperField"), C = c("FmButton"), j = c("FmTable");
102
101
  return d(), V(ne, {
103
102
  heading: e(t)("menu.menu_setting.title")
104
103
  }, {
@@ -106,10 +105,10 @@ const ae = {
106
105
  items: I.value,
107
106
  modelValue: x.value,
108
107
  "onUpdate:modelValue": l[0] || (l[0] = (o) => x.value = o)
109
- }, null, 8, ["items", "modelValue"]), _("div", ae, [x.value === "conf" ? (d(), k("div", se, [n(A, {
108
+ }, null, 8, ["items", "modelValue"]), _("div", ae, [x.value === "conf" ? (d(), k("div", se, [n(M, {
110
109
  title: "Tax setting"
111
110
  }, {
112
- default: p(() => [n($, {
111
+ default: p(() => [n(E, {
113
112
  label: e(t)("menu.setting.tax.title")
114
113
  }, {
115
114
  default: p(() => [n(g, {
@@ -128,7 +127,7 @@ const ae = {
128
127
  sublabel: e(t)("menu.setting.tax.modes.manual.sublabel")
129
128
  }, null, 8, ["value", "label", "sublabel"])]),
130
129
  _: 1
131
- }, 8, ["model-value"]), i.value.mode === e(m).MANUAL ? (d(), k("div", ue, [(d(!0), k(q, null, H(S.value, (o) => (d(), V(D, {
130
+ }, 8, ["model-value"]), i.value.mode === e(m).MANUAL ? (d(), k("div", ue, [(d(!0), k(K, null, q(S.value, (o) => (d(), V(D, {
132
131
  key: o.systemCode,
133
132
  "model-value": o.inclusive,
134
133
  value: !0,
@@ -143,11 +142,11 @@ const ae = {
143
142
  _: 1
144
143
  }, 8, ["label"])]),
145
144
  _: 1
146
- }), n(A, {
145
+ }), n(M, {
147
146
  title: e(t)("menu.menu_setting.fields.low_stock.title"),
148
147
  "sub-title": e(t)("menu.menu_setting.fields.low_stock.subtitle")
149
148
  }, {
150
- default: p(() => [n(j, {
149
+ default: p(() => [n($, {
151
150
  "model-value": u.value.lowStock || null,
152
151
  min: 0,
153
152
  max: 1e3,
@@ -167,8 +166,8 @@ const ae = {
167
166
  label: e(t)("menu.price_tier.add_price_group"),
168
167
  icon: "add",
169
168
  onClick: e(f).create
170
- }, null, 8, ["label", "onClick"])]), n(ee, null, {
171
- default: p(() => [n(E, {
169
+ }, null, 8, ["label", "onClick"])]), n(le, null, {
170
+ default: p(() => [n(j, {
172
171
  "column-defs": z,
173
172
  "row-data": e(f).priceTiers.value,
174
173
  "page-size": e(f).priceTiers.value.length,
@@ -182,5 +181,5 @@ const ae = {
182
181
  }
183
182
  });
184
183
  export {
185
- we as default
184
+ ye as default
186
185
  };
@@ -1,13 +1,11 @@
1
- import { defineComponent as H, ref as k, computed as f, resolveComponent as g, createBlock as P, openBlock as p, unref as l, withCtx as m, createElementVNode as i, createVNode as c, createCommentVNode as J, toDisplayString as S, createElementBlock as L, Fragment as A, renderList as K, h as _, withModifiers as q } from "vue";
1
+ import { defineComponent as H, ref as k, computed as f, resolveComponent as g, createBlock as P, openBlock as p, unref as l, withCtx as m, createElementVNode as i, createVNode as c, createCommentVNode as J, toDisplayString as S, createElementBlock as L, Fragment as A, renderList as R, h as _, withModifiers as q } from "vue";
2
2
  import { useI18n as Q } from "@feedmepos/mf-common";
3
3
  import { components as W, useSnackbar as ee, useDialog as te } from "@feedmepos/ui-library";
4
4
  import { _ as oe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as ne } from "./app-CoVUUCa_.js";
6
- import { D as j, G as ae, H as R, B as V, u as le, M as re, A as se } from "./menu-CsIzrBEr.js";
5
+ import { _ as ne } from "./app-DiizQWjo.js";
6
+ import { H as j, I as ae, J as B, G as V, u as le, O as re, D as se } from "./menu-Btcr0nsk.js";
7
7
  import { u as ie } from "./discardConfirm-BHni0LNu.js";
8
- import "@feedmepos/core";
9
- import "@feedmepos/core/entity";
10
- import { L as ue } from "./LinkProductSideSheet-C6rF-G1v.js";
8
+ import { L as ue } from "./LinkProductSideSheet-Y-Z9_9Kp.js";
11
9
  import { _ as G } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
12
10
  import { _ as de } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
13
11
  import { _ as ce } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
@@ -57,13 +55,13 @@ const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _
57
55
  applyToItems: n.value.applyToItems.filter((a) => a !== r)
58
56
  };
59
57
  }
60
- const { t: u } = Q(), O = f(() => n.value._id ? u("menu.print_route.department_dialog.update.title") : u("menu.print_route.department_dialog.add.title")), I = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")), D = f(() => n.value.applyToItems.length), B = f(
58
+ const { t: u } = Q(), O = f(() => n.value._id ? u("menu.print_route.department_dialog.update.title") : u("menu.print_route.department_dialog.add.title")), I = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")), D = f(() => n.value.applyToItems.length), K = f(
61
59
  () => n.value.applyToItems.reduce((r, a) => (r[a] = [], r), {})
62
60
  ), e = k(""), o = f(() => {
63
61
  const r = e.value.toLowerCase();
64
62
  return N.categorizedItems.reduce((a, d) => {
65
63
  const z = d.items.filter(
66
- (C) => (!r || C.name.toLowerCase().includes(r)) && !!B.value[C._id]
64
+ (C) => (!r || C.name.toLowerCase().includes(r)) && !!K.value[C._id]
67
65
  );
68
66
  return z.length && a.push({ ...d, items: z }), a;
69
67
  }, []);
@@ -174,9 +172,9 @@ const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _
174
172
  ])
175
173
  ]),
176
174
  i("div", ge, [
177
- (p(!0), L(A, null, K(o.value, (s) => (p(), L("div", null, [
175
+ (p(!0), L(A, null, R(o.value, (s) => (p(), L("div", null, [
178
176
  i("div", he, S(s.name), 1),
179
- (p(!0), L(A, null, K(s.items, (Y) => (p(), L("div", be, [
177
+ (p(!0), L(A, null, R(s.items, (Y) => (p(), L("div", be, [
180
178
  i("div", xe, S(Y.name), 1),
181
179
  i("div", ke, [
182
180
  c(C, {
@@ -203,7 +201,7 @@ const me = { class: "fm-typo-en-title-md-600" }, pe = { class: "space-y-32" }, _
203
201
  function Ce(v, t) {
204
202
  return {
205
203
  module: V.F_MENU_MODULE_V4_KEY.enum.printDepartment,
206
- operation: R.F_OPERATION_TYPE.create,
204
+ operation: B.F_OPERATION_TYPE.create,
207
205
  data: V.FdoMenuPrintDepartment.parse(v),
208
206
  link: t.map((h) => ({
209
207
  module: V.F_MENU_MODULE_V4_KEY.enum.item,
@@ -214,7 +212,7 @@ function Ce(v, t) {
214
212
  function Ve(v, t) {
215
213
  return {
216
214
  module: V.F_MENU_MODULE_V4_KEY.enum.printDepartment,
217
- operation: R.F_OPERATION_TYPE.update,
215
+ operation: B.F_OPERATION_TYPE.update,
218
216
  data: V.FdoMenuPrintDepartment.parse(v),
219
217
  link: t.map((h) => ({
220
218
  module: V.F_MENU_MODULE_V4_KEY.enum.item,
@@ -225,7 +223,7 @@ function Ve(v, t) {
225
223
  function we(v) {
226
224
  return {
227
225
  module: V.F_MENU_MODULE_V4_KEY.enum.printDepartment,
228
- operation: R.F_OPERATION_TYPE.delete,
226
+ operation: B.F_OPERATION_TYPE.delete,
229
227
  data: v._id
230
228
  };
231
229
  }
@@ -239,7 +237,7 @@ const Ee = {
239
237
  class: "fm-typo-en-body-lg-600"
240
238
  }, Le = {
241
239
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
242
- }, je = /* @__PURE__ */ H({
240
+ }, Ye = /* @__PURE__ */ H({
243
241
  __name: "PrintRoute",
244
242
  setup(v) {
245
243
  const {
@@ -333,7 +331,7 @@ const Ee = {
333
331
  await n.updateMenu(we(e), e.name, !0);
334
332
  });
335
333
  }
336
- const I = k(""), D = k(), B = f(() => {
334
+ const I = k(""), D = k(), K = f(() => {
337
335
  if (!I.value) return b.value;
338
336
  const e = I.value.toLowerCase();
339
337
  return b.value.filter((o) => o.name.toLowerCase().includes(e));
@@ -378,7 +376,7 @@ const Ee = {
378
376
  class: "w-full px-16 xs:block hidden flex-1 min-h-0 overflow-scroll pb-64",
379
377
  separator: ""
380
378
  }, {
381
- default: m(() => [(p(!0), L(A, null, K(B.value, (d) => (p(), P(r, {
379
+ default: m(() => [(p(!0), L(A, null, R(K.value, (d) => (p(), P(r, {
382
380
  key: d._id,
383
381
  label: d.name,
384
382
  style: {
@@ -418,5 +416,5 @@ const Ee = {
418
416
  }
419
417
  });
420
418
  export {
421
- je as default
419
+ Ye as default
422
420
  };
@@ -1,4 +1,4 @@
1
- import { a as f } from "./Product.vue_vue_type_script_setup_true_lang-zcistmwh.js";
1
+ import { a as f } from "./Product.vue_vue_type_script_setup_true_lang-DtYarO0L.js";
2
2
  export {
3
3
  f as default
4
4
  };