@feedmepos/mf-menu 0.32.7-dev → 0.32.8-dev

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-DCkQc7e4.js → App-B5S9byVJ.js} +5456 -4621
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js → ApplyProduct.vue_vue_type_script_setup_true_lang-bSXFWpq_.js} +3 -3
  3. package/dist/{Catalog-CUPoRid3.js → Catalog-CTfF5FmI.js} +52 -52
  4. package/dist/{Category-BkvhZ57Y.js → Category-BntCVeoT.js} +57 -57
  5. package/dist/{Category-Cdw0ikhP.js → Category-Z3bphlCX.js} +26 -26
  6. package/dist/{CookingGuide-BZ-4oULM.js → CookingGuide-CoPo2Alx.js} +127 -127
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DJ3sb3XV.js} +1 -1
  8. package/dist/{Group-Cec83DWm.js → Group-B7rZfFlT.js} +3 -3
  9. package/dist/{Group-C1FaXdUb.js → Group-CblWJOl1.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js → Group.vue_vue_type_script_setup_true_lang-wX7yqw0Z.js} +33 -33
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1gBCBA.js} +27 -27
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js} +7 -7
  13. package/dist/{Ingredient-DulL8h2B.js → Ingredient-Bn-jeNeI.js} +46 -46
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DbGNFA3D.js} +2 -2
  15. package/dist/{LinkProductSideSheet-Br2eE8pC.js → LinkProductSideSheet-BjcQDT4U.js} +61 -61
  16. package/dist/{MenuSetting-DxW4LCW4.js → MenuSetting-BT5YSMgK.js} +14 -14
  17. package/dist/{PrintRoute-Da6Zkx-0.js → PrintRoute-B0j0eqNM.js} +34 -34
  18. package/dist/{Product-Cs76t18_.js → Product-BOMprFhc.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js → Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js} +142 -142
  20. package/dist/{ProductInternalTools-DPbeRvTM.js → ProductInternalTools-O5d2jMAH.js} +39 -39
  21. package/dist/{Products--7dGfuuT.js → Products-BnMrK40x.js} +15 -15
  22. package/dist/{Publish-COmZtiyX.js → Publish-dTP5mQS3.js} +26 -26
  23. package/dist/{Recipe-BaN_1zrP.js → Recipe-DnftcZPO.js} +26 -26
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js → RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js} +2 -2
  25. package/dist/{Scheduler-BSUpIAaK.js → Scheduler-DRLaQK_V.js} +22 -22
  26. package/dist/{ServingSequence-dXBb7e5d.js → ServingSequence-CPIyJ7T8.js} +39 -39
  27. package/dist/{Setting-CalEQW0n.js → Setting-CLtISC4c.js} +22 -22
  28. package/dist/{Subcategory-zPHtX7Vc.js → Subcategory-b0bXCYYY.js} +32 -32
  29. package/dist/{Takeaway-CRDj2Bpe.js → Takeaway-CCIKDCoF.js} +12 -12
  30. package/dist/{Takeaway-CcnmeTmu.js → Takeaway-h9uUxFJd.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js → Takeaway.vue_vue_type_script_setup_true_lang-BOG_W-2a.js} +26 -26
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js → Thumbnail.vue_vue_type_script_setup_true_lang-D4KcX3XQ.js} +26 -26
  33. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B3EByLES.js +6016 -0
  34. package/dist/{Unit-C7-Oj5S3.js → Unit-B0kiwrN6.js} +13 -13
  35. package/dist/{Variant-CYiMkE0q.js → Variant-CJSk0kTW.js} +18 -18
  36. package/dist/{_id_-D75ZcNlf.js → _id_-108G3lsv.js} +22 -22
  37. package/dist/{app-DzVMOviz.js → app-BTn28hDr.js} +1 -1
  38. package/dist/{app-BhLVpUSl.js → app-CPJH5bgs.js} +26 -26
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/stores/menu.d.ts +4 -0
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-BoIPm5hC.js → linked-status-Bp5piT25.js} +2 -2
  43. package/dist/assets/{override-menu-DfTrwWpR.js → override-menu-D47qVZAi.js} +2 -2
  44. package/dist/assets/{validate-menu-BhWvQ3T9.js → validate-menu-YuXYm9iE.js} +2 -2
  45. package/dist/{catalog-CudNSsIP.js → catalog-CpFTifAS.js} +1 -1
  46. package/dist/{catalogSetting-BVHO9tK3.js → catalogSetting-DjGqI2Vf.js} +1 -1
  47. package/dist/{category-BQpgz1lk.js → category-DaRWiQd8.js} +5 -5
  48. package/dist/{currency-BfS7H2KE.js → currency-DbURufyM.js} +1 -1
  49. package/dist/{index-aaoziUNI.js → index-C6AkIinM.js} +1 -1
  50. package/dist/{index-DmGJvREM.js → index-D67GKEzf.js} +1 -1
  51. package/dist/{index-DuLXS699.js → index-kjRAsH_h.js} +38 -38
  52. package/dist/{index-BHdPJta4.js → index-pJtym1c6.js} +21 -21
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js → index.vue_vue_type_script_setup_true_lang-BvohjQ00.js} +438 -428
  54. package/dist/item-2WoPAnNJ.js +6838 -0
  55. package/dist/{iteration-CaliNodx.js → iteration-BGItxpWj.js} +1 -1
  56. package/dist/{jszip.min-DXbkmgRD.js → jszip.min-D8NeBCPG.js} +2 -2
  57. package/dist/{menu-D-lUEuvX.js → menu-DVdMR0zo.js} +1 -1
  58. package/dist/{menuV2-D-6O36DO.js → menuV2-CcBdUc80.js} +41 -41
  59. package/dist/mf-menu.css +1 -1
  60. package/dist/{priceTier-DKnYaOA9.js → priceTier-CTfRyTuS.js} +1 -1
  61. package/dist/{scheduler-DEwfbYPL.js → scheduler-DOMDX4d7.js} +20 -20
  62. package/dist/{subcategory-CQKklgcd.js → subcategory-NsslZ1my.js} +6 -6
  63. package/dist/{toExcel-CRwL-QqF.js → toExcel-Bdne-Dw_.js} +2 -2
  64. package/dist/{unit-BzM1rmN7.js → unit-DKyvdauo.js} +29 -29
  65. package/package.json +1 -1
  66. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +0 -6038
  67. package/dist/item-BtKW0wdj.js +0 -7685
@@ -1,4 +1,4 @@
1
- import { u as h, z as n, J as d, ak as _ } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
1
+ import { u as h, A as n, K as d, ak as _ } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
2
2
  import "@feedmepos/ui-library";
3
3
  class u {
4
4
  constructor(t, e, r, a) {
@@ -1,4 +1,4 @@
1
- import { z as u, H as i } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
1
+ import { A as u, I as i } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
2
2
  var a = /* @__PURE__ */ ((e) => (e.AUTO = "auto", e.MANUAL = "manual", e))(a || {}), m = /* @__PURE__ */ ((e) => (e[e.Normal = 0] = "Normal", e[e.Rules = 1] = "Rules", e))(m || {});
3
3
  class s {
4
4
  static fromCatalog(r, n) {
@@ -1,5 +1,5 @@
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 { J as s, z as u, u as F } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
1
+ import { defineComponent as M, watch as _, ref as f, resolveComponent as g, createBlock as x, openBlock as A, unref as l, withCtx as C, createVNode as V } from "vue";
2
+ import { K as s, A as u, u as F } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
3
3
  import { useI18n as E } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as O } from "@feedmepos/ui-library";
5
5
  const y = /* @__PURE__ */ M({
@@ -26,11 +26,11 @@ const y = /* @__PURE__ */ M({
26
26
  }
27
27
  ), (m, e) => {
28
28
  const o = g("fm-text-field"), a = g("FmForm");
29
- return C(), x(a, {
29
+ return A(), x(a, {
30
30
  onValidationSuccess: e[1] || (e[1] = (c) => l(p)("primary"))
31
31
  }, {
32
- default: V(() => [
33
- A(o, {
32
+ default: C(() => [
33
+ V(o, {
34
34
  modelValue: i.value,
35
35
  "onUpdate:modelValue": e[0] || (e[0] = (c) => i.value = c),
36
36
  rules: [(c) => !!c || l(t)("menu.category.dialog.add.name.required")],
@@ -1,4 +1,4 @@
1
- import { A as e } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
1
+ import { B as e } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
2
2
  function n(r, o = !0) {
3
3
  return e.Dinero.fromFdoDinero(r).toFormat(o).replaceAll(" ", "");
4
4
  }
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as W, ref as A, resolveComponent as v, createElementBlock as E, openBlock as I, Fragment as B, createElementVNode as g, createVNode as c, normalizeClass as T, withCtx as _, toDisplayString as S, unref as i, h as G, watch as O, onMounted as K, nextTick as M, readonly as N, getCurrentInstance as U, getCurrentScope as L, onScopeDispose as $ } from "vue";
2
2
  import { useI18n as q, useCustomAttributes as H, useCoreStore as J } from "@feedmepos/mf-common";
3
3
  import { components as Q } from "@feedmepos/ui-library";
4
- import { d as X, _ as k } from "./RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js";
4
+ import { d as X, _ as k } from "./RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js";
5
5
  const Y = {
6
6
  class: /* @__PURE__ */ T(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
7
7
  }, Z = {
@@ -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 g, withCtx as h, createCommentVNode as L, withKeys as w, normalizeStyle as F, normalizeClass as d, createElementVNode as m, renderSlot as x, createElementBlock as T, toDisplayString as R, Fragment as A, renderList as v, computed as C, unref as I } from "vue";
2
- import { _ as k } from "./LinkProductSideSheet-Br2eE8pC.js";
2
+ import { _ as k } from "./LinkProductSideSheet-BjcQDT4U.js";
3
3
  import { useI18n as U } from "@feedmepos/mf-common";
4
4
  const N = {
5
5
  class: /* @__PURE__ */ d([
@@ -1,25 +1,25 @@
1
- import { defineComponent as G, 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, H as f, B, J as D, z as I, I as Z } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
1
+ import { defineComponent as K, computed as w, ref as E, watch as C, resolveComponent as g, createElementBlock as F, openBlock as V, Fragment as R, renderSlot as j, createVNode as s, unref as n, withCtx as m, createElementVNode as d, createBlock as M, createCommentVNode as U, normalizeClass as J, createSlots as H, toDisplayString as Q } from "vue";
2
+ import { P as W, G as X, I as f, D, K as I, A as S, J as Z } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.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
- import { _ as le } from "./RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js";
7
+ import { _ as le } from "./RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js";
8
8
  import { u as ie } from "./discardConfirm-BHni0LNu.js";
9
- import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js";
9
+ import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-bSXFWpq_.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,
13
13
  class: "w-24"
14
- }, pe = { class: "flex-1" }, fe = { class: "flex gap-8 items-center justify-start" }, ve = /* @__PURE__ */ G({
14
+ }, pe = { class: "flex-1" }, fe = { class: "flex gap-8 items-center justify-start" }, ve = /* @__PURE__ */ K({
15
15
  __name: "Form",
16
16
  props: {
17
17
  initialValue: {}
18
18
  },
19
- setup(S, { expose: N }) {
20
- const r = S, b = W(X(ae())), { t: o } = te(), L = w(
19
+ setup(B, { expose: N }) {
20
+ const r = B, b = W(X(ae())), { t: o } = te(), A = w(
21
21
  () => r.initialValue ? o("menu.variant.form.title.edit") : o("menu.variant.form.title.add")
22
- ), A = w(() => r.initialValue ? "Update" : "Add"), O = () => {
22
+ ), L = w(() => r.initialValue ? "Update" : "Add"), k = () => {
23
23
  if (r.initialValue) {
24
24
  const e = f(r.initialValue);
25
25
  return e.options.push({
@@ -27,18 +27,18 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
27
27
  name: ""
28
28
  }), e;
29
29
  } else
30
- return { ...B.generator.initMenuV4VariantGroup(), usedBy: [] };
31
- }, t = E(O()), y = E(!1), i = E(!1), x = (e) => {
30
+ return { ...D.generator.initMenuV4VariantGroup(), usedBy: [] };
31
+ }, t = E(k()), y = E(!1), i = E(!1), x = (e) => {
32
32
  re.isBoolean(e) ? i.value = e : i.value = !i.value;
33
33
  };
34
- function $(e) {
34
+ function P(e) {
35
35
  t.value.options = e;
36
36
  }
37
- function q(e, a) {
37
+ function $(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 && k();
39
+ l[c].name = a, t.value.options = l, c === t.value.options.length - 1 && O();
40
40
  }
41
- function k() {
41
+ function O() {
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 q(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 && k();
58
+ e.length <= 0 && O();
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,25 +76,25 @@ 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: I.F_MENU_MODULE_V4_KEY.enum.variant,
86
- operation: D.F_OPERATION_TYPE.update,
85
+ module: S.F_MENU_MODULE_V4_KEY.enum.variant,
86
+ operation: I.F_OPERATION_TYPE.update,
87
87
  data: e
88
88
  },
89
89
  e.name
90
90
  ) : await b.updateMenu(
91
91
  {
92
- module: I.F_MENU_MODULE_V4_KEY.enum.variant,
93
- operation: D.F_OPERATION_TYPE.create,
92
+ module: S.F_MENU_MODULE_V4_KEY.enum.variant,
93
+ operation: I.F_OPERATION_TYPE.create,
94
94
  data: e
95
95
  },
96
96
  e.name
97
- ), x(!1), t.value = { ...B.generator.initMenuV4VariantGroup(), usedBy: [] };
97
+ ), x(!1), t.value = { ...D.generator.initMenuV4VariantGroup(), usedBy: [] };
98
98
  } finally {
99
99
  y.value = !1;
100
100
  }
@@ -102,34 +102,34 @@ 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 = O());
105
+ e && (t.value = k());
106
106
  }
107
107
  ), N({
108
108
  show: i,
109
109
  trigger: x
110
110
  }), (e, a) => {
111
- const l = g("fm-text-field"), c = g("fm-icon"), v = g("fm-button"), R = g("fm-side-sheet");
112
- return V(), F(K, null, [
111
+ const l = g("fm-text-field"), c = g("fm-icon"), v = g("fm-button"), G = g("fm-side-sheet");
112
+ return V(), F(R, null, [
113
113
  j(e.$slots, "default", { trigger: x }),
114
- s(R, {
114
+ s(G, {
115
115
  id: "variant-form",
116
116
  modelValue: i.value,
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(L.value), 1)
127
+ d("p", ue, Q(A.value), 1)
128
128
  ]),
129
129
  "side-sheet-footer": m(() => [
130
130
  d("div", fe, [
131
131
  s(v, {
132
- label: A.value,
132
+ label: L.value,
133
133
  loading: y.value,
134
134
  size: "lg",
135
135
  type: "submit",
@@ -167,16 +167,16 @@ 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",
174
174
  "item-key": "_id",
175
- "onUpdate:modelValue": $
175
+ "onUpdate:modelValue": P
176
176
  }, {
177
177
  item: m(({ element: u, index: p }) => [
178
178
  d("div", {
179
- class: H(["flex items-center", "space-x-8"]),
179
+ class: J(["flex items-center", "space-x-8"]),
180
180
  "data-not-allow-sort": p === t.value.options.length - 1
181
181
  }, [
182
182
  p !== t.value.options.length - 1 ? (V(), M(c, {
@@ -193,14 +193,14 @@ const ue = { class: "fm-typo-en-title-md-600" }, me = { class: "py-16 space-y-32
193
193
  ],
194
194
  class: "flex-1",
195
195
  placeholder: n(o)("menu.variant.form.options.placeholder"),
196
- "onUpdate:modelValue": (h) => q(u._id, h)
197
- }, J({ _: 2 }, [
196
+ "onUpdate:modelValue": (h) => $(u._id, h)
197
+ }, H({ _: 2 }, [
198
198
  p !== t.value.options.length - 1 ? {
199
199
  name: "append",
200
200
  fn: m(() => [
201
201
  s(c, {
202
202
  name: "close",
203
- onClick: (h) => z(u._id)
203
+ onClick: (h) => q(u._id)
204
204
  }, null, 8, ["onClick"])
205
205
  ]),
206
206
  key: "0"
@@ -1,12 +1,12 @@
1
- import { A as S, z as A, u as K, H as O, B as q, I as z } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
2
- import { defineComponent as T, ref as f, computed as B, watch as L, onMounted as R, 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 Y } from "vue";
1
+ import { B as S, A, u as K, I as O, D as q, J as R } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
2
+ import { defineComponent as T, ref as f, computed as B, watch as L, onMounted as z, onBeforeUnmount as P, resolveComponent as F, createBlock as N, openBlock as M, withModifiers as D, withCtx as g, renderSlot as U, createElementBlock as W, Fragment as j, createVNode as c, unref as i, createElementVNode as C, createCommentVNode as H, toDisplayString as J } from "vue";
3
3
  import { useI18n as I } from "@feedmepos/mf-common";
4
- import { components as Z } from "@feedmepos/ui-library";
5
- import { _ as G } from "./RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js";
6
- import { u as J } from "./discardConfirm-BHni0LNu.js";
7
- import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js";
4
+ import { components as Y } from "@feedmepos/ui-library";
5
+ import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js";
6
+ import { u as G } from "./discardConfirm-BHni0LNu.js";
7
+ import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-bSXFWpq_.js";
8
8
  import { c as X } from "./check-C9mY6LiX.js";
9
- import { f as ee } from "./currency-BfS7H2KE.js";
9
+ import { f as ee } from "./currency-DbURufyM.js";
10
10
  import { c as ae } from "./string-DpfFixWH.js";
11
11
  const te = /* @__PURE__ */ T({
12
12
  __name: "CurrencyInput",
@@ -91,10 +91,10 @@ const te = /* @__PURE__ */ T({
91
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();
92
92
  }
93
93
  };
94
- return R(() => {
94
+ return z(() => {
95
95
  var e;
96
96
  r.value && ((e = r.value.inputEl) == null || e.addEventListener("keydown", _));
97
- }), H(() => {
97
+ }), P(() => {
98
98
  var e;
99
99
  r.value && ((e = r.value.inputEl) == null || e.removeEventListener("keydown", _));
100
100
  }), (e, t) => {
@@ -111,11 +111,11 @@ const te = /* @__PURE__ */ T({
111
111
  rules: b,
112
112
  inputmode: "decimal",
113
113
  onFocusChanged: t[0] || (t[0] = (o) => v.value = o),
114
- onWheel: t[1] || (t[1] = C(() => {
114
+ onWheel: t[1] || (t[1] = D(() => {
115
115
  }, ["prevent"])),
116
- onTouchmove: t[2] || (t[2] = C(() => {
116
+ onTouchmove: t[2] || (t[2] = D(() => {
117
117
  }, ["prevent"])),
118
- onScroll: t[3] || (t[3] = C(() => {
118
+ onScroll: t[3] || (t[3] = D(() => {
119
119
  }, ["prevent"]))
120
120
  }, {
121
121
  append: g(() => [
@@ -157,8 +157,8 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
157
157
  };
158
158
  return (o = d.fallback) != null && o.price && (l.price = null), l;
159
159
  }
160
- const s = f(k()), _ = B(() => d.action === "add" ? n("menu.takeaway.add") : n("menu.takeaway.update")), e = J(
161
- () => !z.isEqual(
160
+ const s = f(k()), _ = B(() => d.action === "add" ? n("menu.takeaway.add") : n("menu.takeaway.update")), e = G(
161
+ () => !R.isEqual(
162
162
  s.value,
163
163
  d.initialValue || {
164
164
  ...q.generator.initMenuV4Takeaway(),
@@ -180,13 +180,13 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
180
180
  show: u
181
181
  }), (l, o) => {
182
182
  const E = F("fm-text-field"), w = F("fm-button"), $ = F("fm-side-sheet");
183
- return M(), P(W, null, [
183
+ return M(), W(j, null, [
184
184
  U(l.$slots, "default", { trigger: b }),
185
185
  c($, {
186
186
  id: "group-form",
187
187
  modelValue: u.value,
188
188
  "onUpdate:modelValue": o[4] || (o[4] = (p) => u.value = p),
189
- "is-container": i(Z).FmForm,
189
+ "is-container": i(Y).FmForm,
190
190
  "is-container-props": {
191
191
  onValidationSuccess: t,
192
192
  blameFormChildOnValidationFailed: !0
@@ -195,10 +195,10 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
195
195
  "onOn:clickedAway": i(e)
196
196
  }, {
197
197
  "side-sheet-header": g(() => [
198
- D("p", le, Y(_.value), 1)
198
+ C("p", le, J(_.value), 1)
199
199
  ]),
200
200
  "side-sheet-footer": g(() => [
201
- D("div", ne, [
201
+ C("div", ne, [
202
202
  c(w, {
203
203
  label: i(ae)(i(n)(`menu.common.actions.${l.action}`)),
204
204
  loading: V.value,
@@ -215,8 +215,8 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
215
215
  ])
216
216
  ]),
217
217
  default: g(() => [
218
- D("div", oe, [
219
- c(G, null, {
218
+ C("div", oe, [
219
+ c(Z, null, {
220
220
  default: g(() => {
221
221
  var p;
222
222
  return [
@@ -256,7 +256,7 @@ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, n
256
256
  "select-variant": l.bindToVariant,
257
257
  editable: "",
258
258
  title: i(n)("menu.common.labels.product")
259
- }, null, 8, ["overrides", "select-variant", "title"])) : j("", !0)
259
+ }, null, 8, ["overrides", "select-variant", "title"])) : H("", !0)
260
260
  ])
261
261
  ]),
262
262
  _: 1