@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,4 +1,4 @@
1
- import { u as h, B as l, H as d, T as _ } from "./menu-CsIzrBEr.js";
1
+ import { u as h, G as l, J as d, V as _ } from "./menu-Btcr0nsk.js";
2
2
  import "@feedmepos/ui-library";
3
3
  class u {
4
4
  constructor(t, e, a, r) {
@@ -1,4 +1,4 @@
1
- import { B as e, D as t } from "./menu-CsIzrBEr.js";
1
+ import { G as e, H as t } from "./menu-Btcr0nsk.js";
2
2
  var m = /* @__PURE__ */ ((n) => (n.AUTO = "auto", n.MANUAL = "manual", n))(m || {});
3
3
  class a {
4
4
  static fromCatalog(r, u) {
@@ -1,9 +1,7 @@
1
1
  import { defineComponent as M, watch as _, ref as f, resolveComponent as g, createBlock as x, openBlock as C, unref as l, withCtx as V, createVNode as A } from "vue";
2
- import { H as s, B as u, u as F } from "./menu-CsIzrBEr.js";
2
+ import { J as s, G as u, u as F } from "./menu-Btcr0nsk.js";
3
3
  import { useI18n as E } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as O } from "@feedmepos/ui-library";
5
- import "@feedmepos/core";
6
- import "@feedmepos/core/entity";
7
5
  const y = /* @__PURE__ */ M({
8
6
  __name: "AddCategoryDialogContentComponent",
9
7
  props: {
@@ -45,7 +43,7 @@ const y = /* @__PURE__ */ M({
45
43
  });
46
44
  };
47
45
  }
48
- }), D = ({
46
+ }), T = ({
49
47
  dialog: n,
50
48
  menuLoader: r
51
49
  }) => {
@@ -154,5 +152,5 @@ const y = /* @__PURE__ */ M({
154
152
  };
155
153
  export {
156
154
  y as _,
157
- D as u
155
+ T as u
158
156
  };
@@ -0,0 +1,7 @@
1
+ import { A as e } from "./menu-Btcr0nsk.js";
2
+ function n(r, o = !0) {
3
+ return e.Dinero.fromFdoDinero(r).toFormat(o).replaceAll(" ", "");
4
+ }
5
+ export {
6
+ n as f
7
+ };
@@ -1,4 +1,4 @@
1
- import { g as a, af as r } from "./menu-CsIzrBEr.js";
1
+ import { g as a, aj as r } from "./menu-Btcr0nsk.js";
2
2
  var s = r();
3
3
  const t = /* @__PURE__ */ a(s);
4
4
  export {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, resolveComponent as p, createBlock as f, openBlock as i, Teleport as E, createVNode as _, Transition as w, withCtx as h, createCommentVNode as L, withKeys as g, normalizeStyle as F, normalizeClass as d, createElementVNode as m, renderSlot as x, createElementBlock as T, toDisplayString as A, Fragment as R, renderList as v, computed as C, unref as I } from "vue";
2
- import { _ as k } from "./LinkProductSideSheet-C6rF-G1v.js";
2
+ import { _ as k } from "./LinkProductSideSheet-Y-Z9_9Kp.js";
3
3
  import { useI18n as U } from "@feedmepos/mf-common";
4
4
  const N = {
5
5
  class: /* @__PURE__ */ d([
@@ -1,12 +1,12 @@
1
- import { defineComponent as R, computed as w, ref as E, watch as C, resolveComponent as g, createElementBlock as M, openBlock as V, Fragment as K, renderSlot as j, createVNode as s, unref as n, withCtx as m, createElementVNode as d, createBlock as F, createCommentVNode as U, normalizeClass as H, createSlots as J, toDisplayString as Q } from "vue";
2
- import { M as W, A as X, G as Z, D as f, z as B, H as D, B as S } from "./menu-CsIzrBEr.js";
1
+ import { defineComponent as R, computed as w, ref as E, watch as C, resolveComponent as g, createElementBlock as F, openBlock as V, Fragment as K, renderSlot as j, createVNode as s, unref as n, withCtx as m, createElementVNode as d, createBlock as M, createCommentVNode as U, normalizeClass as H, createSlots as J, toDisplayString as Q } from "vue";
2
+ import { O as W, D as X, I as Z, H as f, B, J as D, G as I } from "./menu-Btcr0nsk.js";
3
3
  import { d as ee } from "./vuedraggable-CK8z7qA8.js";
4
4
  import { useI18n as te } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as ae, components as ne } from "@feedmepos/ui-library";
6
6
  import { _ as oe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
7
7
  import { _ as le } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
8
8
  import { u as ie } from "./discardConfirm-BHni0LNu.js";
9
- import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js";
9
+ import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Bq84uuiq.js";
10
10
  import { c as re } from "./check-C9mY6LiX.js";
11
11
  const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32" }, de = ["data-not-allow-sort"], ce = {
12
12
  key: 1,
@@ -16,10 +16,10 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
16
16
  props: {
17
17
  initialValue: {}
18
18
  },
19
- setup(I, { expose: N }) {
20
- const r = I, b = W(X(ae())), { t: o } = te(), A = w(
19
+ setup(S, { expose: N }) {
20
+ const r = S, b = W(X(ae())), { t: o } = te(), L = w(
21
21
  () => r.initialValue ? o("menu.variant.form.title.edit") : o("menu.variant.form.title.add")
22
- ), L = w(() => r.initialValue ? "Update" : "Add"), k = () => {
22
+ ), A = w(() => r.initialValue ? "Update" : "Add"), O = () => {
23
23
  if (r.initialValue) {
24
24
  const e = f(r.initialValue);
25
25
  return e.options.push({
@@ -28,7 +28,7 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
28
28
  }), e;
29
29
  } else
30
30
  return { ...B.generator.initMenuV4VariantGroup(), usedBy: [] };
31
- }, t = E(k()), y = E(!1), i = E(!1), x = (e) => {
31
+ }, t = E(O()), y = E(!1), i = E(!1), x = (e) => {
32
32
  re.isBoolean(e) ? i.value = e : i.value = !i.value;
33
33
  };
34
34
  function $(e) {
@@ -36,9 +36,9 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
36
36
  }
37
37
  function q(e, a) {
38
38
  const l = f(t.value.options), c = l.findIndex((v) => v._id == e);
39
- l[c].name = a, t.value.options = l, c === t.value.options.length - 1 && O();
39
+ l[c].name = a, t.value.options = l, c === t.value.options.length - 1 && k();
40
40
  }
41
- function O() {
41
+ function k() {
42
42
  const e = f(t.value.options);
43
43
  t.value.options = [
44
44
  ...e,
@@ -48,24 +48,24 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
48
48
  }
49
49
  ];
50
50
  }
51
- function z(e) {
51
+ function P(e) {
52
52
  const a = f(t.value.options);
53
53
  t.value.options = a.filter((l) => l._id !== e);
54
54
  }
55
55
  C(
56
56
  () => t.value.options,
57
57
  (e) => {
58
- e.length <= 0 && O();
58
+ e.length <= 0 && k();
59
59
  },
60
60
  {
61
61
  immediate: !0
62
62
  }
63
63
  );
64
- function P(e) {
64
+ function T(e) {
65
65
  const a = e.draggedContext.futureIndex, l = e.relatedContext.list;
66
66
  return a !== l.length - 1;
67
67
  }
68
- const T = ie(
68
+ const Y = ie(
69
69
  () => {
70
70
  if (r.initialValue) {
71
71
  const e = t.value.options.filter((a) => !!a.name.trim());
@@ -76,20 +76,20 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
76
76
  () => {
77
77
  i.value = !1;
78
78
  }
79
- ), Y = async () => {
79
+ ), z = async () => {
80
80
  try {
81
81
  y.value = !0;
82
82
  const e = f(t.value);
83
83
  e.options = e.options.filter((a) => !!a.name.trim()), r.initialValue ? await b.updateMenu(
84
84
  {
85
- module: S.F_MENU_MODULE_V4_KEY.enum.variant,
85
+ module: I.F_MENU_MODULE_V4_KEY.enum.variant,
86
86
  operation: D.F_OPERATION_TYPE.update,
87
87
  data: e
88
88
  },
89
89
  e.name
90
90
  ) : await b.updateMenu(
91
91
  {
92
- module: S.F_MENU_MODULE_V4_KEY.enum.variant,
92
+ module: I.F_MENU_MODULE_V4_KEY.enum.variant,
93
93
  operation: D.F_OPERATION_TYPE.create,
94
94
  data: e
95
95
  },
@@ -102,14 +102,14 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
102
102
  return C(
103
103
  () => i.value,
104
104
  (e) => {
105
- e && (t.value = k());
105
+ e && (t.value = O());
106
106
  }
107
107
  ), N({
108
108
  show: i,
109
109
  trigger: x
110
110
  }), (e, a) => {
111
111
  const l = g("fm-text-field"), c = g("fm-icon"), v = g("fm-button"), G = g("fm-side-sheet");
112
- return V(), M(K, null, [
112
+ return V(), F(K, null, [
113
113
  j(e.$slots, "default", { trigger: x }),
114
114
  s(G, {
115
115
  id: "variant-form",
@@ -117,19 +117,19 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
117
117
  "onUpdate:modelValue": a[2] || (a[2] = (_) => i.value = _),
118
118
  "is-container": n(ne).FmForm,
119
119
  "is-container-props": {
120
- onValidationSuccess: Y,
120
+ onValidationSuccess: z,
121
121
  blameFormChildOnValidationFailed: !0
122
122
  },
123
123
  "max-width": 560,
124
- "onOn:clickedAway": n(T)
124
+ "onOn:clickedAway": n(Y)
125
125
  }, {
126
126
  "side-sheet-header": m(() => [
127
- d("p", ue, Q(A.value), 1)
127
+ d("p", ue, Q(L.value), 1)
128
128
  ]),
129
129
  "side-sheet-footer": m(() => [
130
130
  d("div", fe, [
131
131
  s(v, {
132
- label: L.value,
132
+ label: A.value,
133
133
  loading: y.value,
134
134
  size: "lg",
135
135
  type: "submit",
@@ -167,7 +167,7 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
167
167
  d("div", null, [
168
168
  s(n(ee), {
169
169
  "model-value": t.value.options,
170
- move: P,
170
+ move: T,
171
171
  class: "space-y-16",
172
172
  group: "categories",
173
173
  handle: ".handle",
@@ -179,11 +179,11 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
179
179
  class: H(["flex items-center", "space-x-8"]),
180
180
  "data-not-allow-sort": p === t.value.options.length - 1
181
181
  }, [
182
- p !== t.value.options.length - 1 ? (V(), F(c, {
182
+ p !== t.value.options.length - 1 ? (V(), M(c, {
183
183
  key: 0,
184
184
  class: "handle",
185
185
  name: "drag_handle"
186
- })) : p > 0 ? (V(), M("div", ce)) : U("", !0),
186
+ })) : p > 0 ? (V(), F("div", ce)) : U("", !0),
187
187
  d("div", pe, [
188
188
  s(l, {
189
189
  "model-value": u.name,
@@ -200,7 +200,7 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
200
200
  fn: m(() => [
201
201
  s(c, {
202
202
  name: "close",
203
- onClick: (h) => z(u._id)
203
+ onClick: (h) => P(u._id)
204
204
  }, null, 8, ["onClick"])
205
205
  ]),
206
206
  key: "0"
@@ -218,7 +218,7 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
218
218
  ]),
219
219
  _: 1
220
220
  }, 8, ["title"]),
221
- (_ = t.value.usedBy) != null && _.length ? (V(), F(se, {
221
+ (_ = t.value.usedBy) != null && _.length ? (V(), M(se, {
222
222
  key: 0,
223
223
  editable: !1,
224
224
  overrides: t.value.usedBy || [],
@@ -1,14 +1,12 @@
1
- import { B as K, u as O, D as z, z as S, G as A } from "./menu-CsIzrBEr.js";
2
- import { defineComponent as T, ref as f, computed as B, watch as L, onMounted as R, onBeforeUnmount as P, resolveComponent as F, createBlock as N, openBlock as M, withModifiers as C, withCtx as g, renderSlot as U, createElementBlock as W, Fragment as j, createVNode as c, unref as i, createElementVNode as D, createCommentVNode as H, toDisplayString as G } from "vue";
1
+ import { A as S, G as A, u as K, H as O, B as q, I as R } from "./menu-Btcr0nsk.js";
2
+ import { defineComponent as T, ref as f, computed as B, watch as L, onMounted as z, onBeforeUnmount as H, resolveComponent as F, createBlock as N, openBlock as M, withModifiers as C, withCtx as g, renderSlot as U, createElementBlock as P, Fragment as W, createVNode as c, unref as i, createElementVNode as D, createCommentVNode as j, toDisplayString as G } from "vue";
3
3
  import { useI18n as I } from "@feedmepos/mf-common";
4
4
  import { components as Y } from "@feedmepos/ui-library";
5
5
  import { _ as Z } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
6
6
  import { u as J } from "./discardConfirm-BHni0LNu.js";
7
- import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js";
8
- import { Dinero as q } from "@feedmepos/core";
9
- import "@feedmepos/core/entity";
7
+ import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-Bq84uuiq.js";
10
8
  import { c as X } from "./check-C9mY6LiX.js";
11
- import { f as ee } from "./currency-BPHwez-E.js";
9
+ import { f as ee } from "./currency-Sno8fZYc.js";
12
10
  import { c as ae } from "./string-DpfFixWH.js";
13
11
  const te = /* @__PURE__ */ T({
14
12
  __name: "CurrencyInput",
@@ -53,7 +51,7 @@ const te = /* @__PURE__ */ T({
53
51
  },
54
52
  emits: ["update:model-value"],
55
53
  setup(y, { emit: m }) {
56
- const a = y, { t: n } = I(), d = f(!1), v = f(!1), r = f(), x = B(() => a.modelValue ? (v.value && !d.value && (d.value = !0), q.fromFdoDinero(a.modelValue).toUnit().toFixed(2)) : "");
54
+ const a = y, { t: n } = I(), d = f(!1), v = f(!1), r = f(), x = B(() => a.modelValue ? (v.value && !d.value && (d.value = !0), S.Dinero.fromFdoDinero(a.modelValue).toUnit().toFixed(2)) : "");
57
55
  L(
58
56
  () => v.value,
59
57
  (e) => {
@@ -76,7 +74,7 @@ const te = /* @__PURE__ */ T({
76
74
  if (typeof e == "string" && e === "-")
77
75
  return;
78
76
  let t = parseFloat((e || "").toString());
79
- t = Number.isNaN(t) ? 0 : t, V("update:model-value", q.fromNumber({ number: t }).toObject());
77
+ t = Number.isNaN(t) ? 0 : t, V("update:model-value", S.Dinero.fromNumber({ number: t }).toObject());
80
78
  }
81
79
  }
82
80
  const s = B(() => typeof a.min == "number" && a.min >= 0), _ = (e) => {
@@ -93,10 +91,10 @@ const te = /* @__PURE__ */ T({
93
91
  e.key >= "0" && e.key <= "9" || e.key === "." || e.key === "," || e.key === "-" || e.key === "Backspace" || e.key === "ArrowLeft" || e.key === "ArrowRight" || e.key === "Tab" || e.preventDefault();
94
92
  }
95
93
  };
96
- return R(() => {
94
+ return z(() => {
97
95
  var e;
98
96
  r.value && ((e = r.value.inputEl) == null || e.addEventListener("keydown", _));
99
- }), P(() => {
97
+ }), H(() => {
100
98
  var e;
101
99
  r.value && ((e = r.value.inputEl) == null || e.removeEventListener("keydown", _));
102
100
  }), (e, t) => {
@@ -128,9 +126,9 @@ const te = /* @__PURE__ */ T({
128
126
  };
129
127
  }
130
128
  });
131
- function we(y) {
129
+ function be(y) {
132
130
  return y.map((m) => ({
133
- module: K.F_MENU_MODULE_V4_KEY.enum.item,
131
+ module: A.F_MENU_MODULE_V4_KEY.enum.item,
134
132
  id: m._id,
135
133
  discriminator: m.combinationKey,
136
134
  data: void 0
@@ -147,23 +145,23 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
147
145
  },
148
146
  emits: ["update:takeaway"],
149
147
  setup(y, { expose: m, emit: a }) {
150
- const { t: n } = I(), d = y, v = a, r = O(), x = B(() => r.rules.takeaway), V = f(!1), u = f(!1), b = (l) => {
148
+ const { t: n } = I(), d = y, v = a, r = K(), x = B(() => r.rules.takeaway), V = f(!1), u = f(!1), b = (l) => {
151
149
  X.isBoolean(l) ? u.value = l : u.value = !u.value;
152
150
  };
153
151
  function k() {
154
152
  var o;
155
153
  const l = {
156
- ...S.generator.initMenuV4Takeaway(),
154
+ ...q.generator.initMenuV4Takeaway(),
157
155
  usedBy: [],
158
- ...z(d.initialValue ?? {})
156
+ ...O(d.initialValue ?? {})
159
157
  };
160
158
  return (o = d.fallback) != null && o.price && (l.price = null), l;
161
159
  }
162
160
  const s = f(k()), _ = B(() => d.action === "add" ? n("menu.takeaway.add") : n("menu.takeaway.update")), e = J(
163
- () => !A.isEqual(
161
+ () => !R.isEqual(
164
162
  s.value,
165
163
  d.initialValue || {
166
- ...S.generator.initMenuV4Takeaway(),
164
+ ...q.generator.initMenuV4Takeaway(),
167
165
  usedBy: []
168
166
  }
169
167
  ),
@@ -182,7 +180,7 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
182
180
  show: u
183
181
  }), (l, o) => {
184
182
  const E = F("fm-text-field"), w = F("fm-button"), $ = F("fm-side-sheet");
185
- return M(), W(j, null, [
183
+ return M(), P(W, null, [
186
184
  U(l.$slots, "default", { trigger: b }),
187
185
  c($, {
188
186
  id: "group-form",
@@ -258,7 +256,7 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
258
256
  "select-variant": l.bindToVariant,
259
257
  editable: "",
260
258
  title: i(n)("menu.common.labels.product")
261
- }, null, 8, ["overrides", "select-variant", "title"])) : H("", !0)
259
+ }, null, 8, ["overrides", "select-variant", "title"])) : j("", !0)
262
260
  ])
263
261
  ]),
264
262
  _: 1
@@ -266,10 +264,10 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
266
264
  ], 64);
267
265
  };
268
266
  }
269
- }), he = ie;
267
+ }), ke = ie;
270
268
  export {
271
- he as T,
269
+ ke as T,
272
270
  te as _,
273
271
  ie as a,
274
- we as l
272
+ be as l
275
273
  };