@feedmepos/mf-menu 0.32.7-beta.2 → 0.32.7-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 (87) hide show
  1. package/dist/{App-BIQ0CTci.js → App-DCkQc7e4.js} +98 -98
  2. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js +161 -0
  3. package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +74 -0
  4. package/dist/{Catalog-D2wc24o8.js → Catalog-CUPoRid3.js} +9 -9
  5. package/dist/{Category-DA5-55d2.js → Category-BkvhZ57Y.js} +7 -7
  6. package/dist/{Category-BPufryqK.js → Category-Cdw0ikhP.js} +4 -4
  7. package/dist/{CookingGuide-DKvou40e.js → CookingGuide-BZ-4oULM.js} +6 -6
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DHoAYdGI.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js} +3 -3
  9. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +26 -0
  10. package/dist/{Group-D60oAvmM.js → Group-C1FaXdUb.js} +1 -1
  11. package/dist/{Group-Bgpc6qE1.js → Group-Cec83DWm.js} +4 -4
  12. package/dist/{Group.vue_vue_type_script_setup_true_lang-BXn3--BL.js → Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js} +128 -128
  13. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BD9IZkwW.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js} +91 -91
  14. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BE3LdBYY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js} +3225 -3225
  15. package/dist/{Ingredient-Brv4hml-.js → Ingredient-DulL8h2B.js} +29 -29
  16. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIOX-pq1.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js} +104 -104
  17. package/dist/{LinkProductSideSheet-BDMbKJ8o.js → LinkProductSideSheet-Br2eE8pC.js} +251 -251
  18. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +69 -0
  19. package/dist/{MenuSetting-DvCu23my.js → MenuSetting-DxW4LCW4.js} +77 -77
  20. package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js → PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js} +8 -8
  21. package/dist/{PrintRoute-DwgLKDUV.js → PrintRoute-Da6Zkx-0.js} +5 -5
  22. package/dist/{Product-EmoWM778.js → Product-Cs76t18_.js} +1 -1
  23. package/dist/{Product.vue_vue_type_script_setup_true_lang-5HyO_RYw.js → Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js} +606 -606
  24. package/dist/{ProductInternalTools-PqzouaF2.js → ProductInternalTools-DPbeRvTM.js} +10 -10
  25. package/dist/{Products-ZgfTT9dI.js → Products--7dGfuuT.js} +52 -52
  26. package/dist/{Publish-CUdRwmN1.js → Publish-COmZtiyX.js} +5 -5
  27. package/dist/{Recipe-BRUxyire.js → Recipe-BaN_1zrP.js} +5 -5
  28. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CPFGkaTr.js → RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js} +451 -448
  29. package/dist/{Scheduler-BXdZh-xC.js → Scheduler-BSUpIAaK.js} +4 -4
  30. package/dist/{ServingSequence-EAZHOHiy.js → ServingSequence-dXBb7e5d.js} +4 -4
  31. package/dist/{Setting-BRut_Xj0.js → Setting-CalEQW0n.js} +6 -6
  32. package/dist/{Subcategory-D6Yrs-vO.js → Subcategory-zPHtX7Vc.js} +5 -5
  33. package/dist/{Takeaway-Bi8JfDWa.js → Takeaway-CRDj2Bpe.js} +5 -5
  34. package/dist/{Takeaway-CRdlNTu7.js → Takeaway-CcnmeTmu.js} +1 -1
  35. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DKQZ9J8Z.js → Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js} +5 -5
  36. package/dist/{TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js → TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js} +5 -5
  37. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DDWk-WUW.js → Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js} +74 -74
  38. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +6038 -0
  39. package/dist/{Unit-Ccs_k5IS.js → Unit-C7-Oj5S3.js} +3 -3
  40. package/dist/{Variant-BHmgMXq7.js → Variant-CYiMkE0q.js} +4 -4
  41. package/dist/{_id_-DSSoi4Gy.js → _id_-D75ZcNlf.js} +11 -11
  42. package/dist/{app-CzXxFrl1.js → app-5fxKLAzS.js} +447 -447
  43. package/dist/{app-C8Dm2-h4.js → app-BhLVpUSl.js} +35 -35
  44. package/dist/{app-B9seAt5l.js → app-DzVMOviz.js} +1 -1
  45. package/dist/app.js +1 -1
  46. package/dist/apps/mf-menu/src/app.d.ts +20 -0
  47. package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
  48. package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +1 -1
  49. package/dist/apps/mf-menu/src/components/feature/SubcategoryManager/SubcategorySelector.vue.d.ts +1 -1
  50. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +2 -1
  51. package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
  52. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  53. package/dist/assets/linked-status-BoIPm5hC.js +13 -0
  54. package/dist/assets/override-menu-DfTrwWpR.js +13 -0
  55. package/dist/assets/validate-menu-BhWvQ3T9.js +13 -0
  56. package/dist/{catalog-CD-fdGdY.js → catalog-CudNSsIP.js} +1 -1
  57. package/dist/{catalogSetting-Ci85lXor.js → catalogSetting-BVHO9tK3.js} +1 -1
  58. package/dist/{category-6NAH0dUF.js → category-BQpgz1lk.js} +1 -1
  59. package/dist/{currency-BP_z7R5d.js → currency-BfS7H2KE.js} +1 -1
  60. package/dist/{index-BLMijxTj.js → index-BHdPJta4.js} +91 -91
  61. package/dist/{index-C1XCbqC-.js → index-DmGJvREM.js} +56 -56
  62. package/dist/{index-Cftm4-G_.js → index-DuLXS699.js} +5 -5
  63. package/dist/{index-DgDQzkPR.js → index-aaoziUNI.js} +30 -30
  64. package/dist/{index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js → index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js} +40026 -40153
  65. package/dist/item-BtKW0wdj.js +7685 -0
  66. package/dist/{iteration-ZG64Re91.js → iteration-CaliNodx.js} +1 -1
  67. package/dist/{jszip.min-BETdv0rh.js → jszip.min-DXbkmgRD.js} +102 -102
  68. package/dist/{menu-COMXycAe.js → menu-D-lUEuvX.js} +1 -1
  69. package/dist/{menuV2-CeRS0Jw3.js → menuV2-D-6O36DO.js} +357 -348
  70. package/dist/mf-menu.css +1 -1
  71. package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
  72. package/dist/{priceTier-t2T3Q87F.js → priceTier-DKnYaOA9.js} +1 -1
  73. package/dist/{scheduler-BbJUVuiK.js → scheduler-DEwfbYPL.js} +7 -7
  74. package/dist/{subcategory-61kOQh4g.js → subcategory-CQKklgcd.js} +2 -2
  75. package/dist/{toExcel-DIYaK18-.js → toExcel-CRwL-QqF.js} +2 -2
  76. package/dist/{unit-B6StucsI.js → unit-BzM1rmN7.js} +151 -151
  77. package/dist/{vuedraggable-DnBIRDMr.js → vuedraggable-CK8z7qA8.js} +2 -2
  78. package/package.json +3 -2
  79. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-BpEjqhAC.js +0 -161
  80. package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js +0 -74
  81. package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +0 -26
  82. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js +0 -69
  83. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-JdHaBpaX.js +0 -5997
  84. package/dist/assets/linked-status-Cuf8X8_g.js +0 -13
  85. package/dist/assets/override-menu-yxQLf82k.js +0 -13
  86. package/dist/assets/validate-menu-BwbenBs6.js +0 -13
  87. package/dist/item-ByEPWjef.js +0 -6819
@@ -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-D-k9WcQV.js";
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";
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-D-k9WcQV.js";
1
+ import { z as u, H as i } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.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
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-D-k9WcQV.js";
2
+ import { J as s, z as u, u as F } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.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({
@@ -1,4 +1,4 @@
1
- import { A as e } from "./index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js";
1
+ import { A as e } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
2
2
  function n(r, o = !0) {
3
3
  return e.Dinero.fromFdoDinero(r).toFormat(o).replaceAll(" ", "");
4
4
  }
@@ -1,14 +1,14 @@
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-D-k9WcQV.js";
2
- import { defineComponent as T, ref as y, computed as B, watch as L, onMounted as R, onBeforeUnmount as H, resolveComponent as _, createBlock as N, openBlock as M, withModifiers as C, withCtx as g, renderSlot as U, createElementBlock as P, Fragment as W, createVNode as f, unref as i, createElementVNode as D, createCommentVNode as j, toDisplayString as Y } from "vue";
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";
3
3
  import { useI18n as I } from "@feedmepos/mf-common";
4
4
  import { components as Z } from "@feedmepos/ui-library";
5
- import { _ as G } from "./RuleView.vue_vue_type_script_setup_true_lang-CPFGkaTr.js";
5
+ import { _ as G } from "./RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js";
6
6
  import { u as J } from "./discardConfirm-BHni0LNu.js";
7
- import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BpEjqhAC.js";
7
+ import { _ as Q } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js";
8
8
  import { c as X } from "./check-C9mY6LiX.js";
9
- import { f as ee } from "./currency-BP_z7R5d.js";
10
- import { c as te } from "./string-DpfFixWH.js";
11
- const ae = /* @__PURE__ */ T({
9
+ import { f as ee } from "./currency-BfS7H2KE.js";
10
+ import { c as ae } from "./string-DpfFixWH.js";
11
+ const te = /* @__PURE__ */ T({
12
12
  __name: "CurrencyInput",
13
13
  props: {
14
14
  modelValue: {},
@@ -50,41 +50,41 @@ const ae = /* @__PURE__ */ T({
50
50
  helperState: {}
51
51
  },
52
52
  emits: ["update:model-value"],
53
- setup(r, { emit: c }) {
54
- const t = r, { t: n } = I(), m = y(!1), v = y(!1), u = y(), F = B(() => t.modelValue ? (v.value && !m.value && (m.value = !0), S.Dinero.fromFdoDinero(t.modelValue).toUnit().toFixed(2)) : "");
53
+ setup(y, { emit: m }) {
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)) : "");
55
55
  L(
56
56
  () => v.value,
57
57
  (e) => {
58
- var a, o, l, E, w;
59
- e ? (o = (a = u.value) == null ? void 0 : a.inputEl) == null || o.select() : (m.value = !1, (l = u.value) != null && l.inputEl && k((w = (E = u.value) == null ? void 0 : E.inputEl) == null ? void 0 : w.value));
58
+ var t, l, o, E, w;
59
+ e ? (l = (t = r.value) == null ? void 0 : t.inputEl) == null || l.select() : (d.value = !1, (o = r.value) != null && o.inputEl && k((w = (E = r.value) == null ? void 0 : E.inputEl) == null ? void 0 : w.value));
60
60
  }
61
61
  );
62
- const V = c, s = B(() => typeof t.required == "string" ? t.required : n("menu.common.validation.field_required", {
63
- field: t.label ?? n("menu.currency.input.field")
62
+ const V = m, u = B(() => typeof a.required == "string" ? a.required : n("menu.common.validation.field_required", {
63
+ field: a.label ?? n("menu.currency.input.field")
64
64
  })), b = [
65
- (e) => t.required ? !!e || s.value : !0,
66
- (e) => t.min !== void 0 && e && parseFloat(e.toString()) < t.min ? n("menu.common.validation.min_value", { value: t.min }) : !0,
67
- (e) => t.max !== void 0 && e && parseFloat(e.toString()) > t.max ? n("menu.common.validation.max_value", { value: t.max }) : !0,
68
- ...t.rules ?? []
65
+ (e) => a.required ? !!e || u.value : !0,
66
+ (e) => a.min !== void 0 && e && parseFloat(e.toString()) < a.min ? n("menu.common.validation.min_value", { value: a.min }) : !0,
67
+ (e) => a.max !== void 0 && e && parseFloat(e.toString()) > a.max ? n("menu.common.validation.max_value", { value: a.max }) : !0,
68
+ ...a.rules ?? []
69
69
  ];
70
70
  function k(e) {
71
- if (typeof e != "number" && !e && t.nullable)
71
+ if (typeof e != "number" && !e && a.nullable)
72
72
  V("update:model-value", void 0);
73
73
  else {
74
74
  if (typeof e == "string" && e === "-")
75
75
  return;
76
- let a = parseFloat((e || "").toString());
77
- a = Number.isNaN(a) ? 0 : a, V("update:model-value", S.Dinero.fromNumber({ number: a }).toObject());
76
+ let t = parseFloat((e || "").toString());
77
+ t = Number.isNaN(t) ? 0 : t, V("update:model-value", S.Dinero.fromNumber({ number: t }).toObject());
78
78
  }
79
79
  }
80
- const d = B(() => typeof t.min == "number" && t.min >= 0), x = (e) => {
81
- var a, o, l;
80
+ const s = B(() => typeof a.min == "number" && a.min >= 0), _ = (e) => {
81
+ var t, l, o;
82
82
  if (!(e.ctrlKey || e.metaKey)) {
83
83
  if (e.key === "Enter") {
84
- (a = u.value) != null && a.inputEl && k((l = (o = u.value) == null ? void 0 : o.inputEl) == null ? void 0 : l.value);
84
+ (t = r.value) != null && t.inputEl && k((o = (l = r.value) == null ? void 0 : l.inputEl) == null ? void 0 : o.value);
85
85
  return;
86
86
  }
87
- if (e.key === "-" && d.value) {
87
+ if (e.key === "-" && s.value) {
88
88
  e.preventDefault();
89
89
  return;
90
90
  }
@@ -93,29 +93,29 @@ const ae = /* @__PURE__ */ T({
93
93
  };
94
94
  return R(() => {
95
95
  var e;
96
- u.value && ((e = u.value.inputEl) == null || e.addEventListener("keydown", x));
96
+ r.value && ((e = r.value.inputEl) == null || e.addEventListener("keydown", _));
97
97
  }), H(() => {
98
98
  var e;
99
- u.value && ((e = u.value.inputEl) == null || e.removeEventListener("keydown", x));
100
- }), (e, a) => {
101
- const o = _("fm-text-field");
102
- return M(), N(o, {
99
+ r.value && ((e = r.value.inputEl) == null || e.removeEventListener("keydown", _));
100
+ }), (e, t) => {
101
+ const l = F("fm-text-field");
102
+ return M(), N(l, {
103
103
  ref_key: "inputRef",
104
- ref: u,
105
- autofocus: t.autofocus,
106
- disabled: t.disable,
107
- label: r.label,
108
- "model-value": F.value,
109
- placeholder: t.placeholder,
110
- "prepend-icon": r.showCurrency ? "attach_money" : void 0,
104
+ ref: r,
105
+ autofocus: a.autofocus,
106
+ disabled: a.disable,
107
+ label: e.label,
108
+ "model-value": x.value,
109
+ placeholder: a.placeholder,
110
+ "prepend-icon": e.showCurrency ? "attach_money" : void 0,
111
111
  rules: b,
112
112
  inputmode: "decimal",
113
- onFocusChanged: a[0] || (a[0] = (l) => v.value = l),
114
- onWheel: a[1] || (a[1] = C(() => {
113
+ onFocusChanged: t[0] || (t[0] = (o) => v.value = o),
114
+ onWheel: t[1] || (t[1] = C(() => {
115
115
  }, ["prevent"])),
116
- onTouchmove: a[2] || (a[2] = C(() => {
116
+ onTouchmove: t[2] || (t[2] = C(() => {
117
117
  }, ["prevent"])),
118
- onScroll: a[3] || (a[3] = C(() => {
118
+ onScroll: t[3] || (t[3] = C(() => {
119
119
  }, ["prevent"]))
120
120
  }, {
121
121
  append: g(() => [
@@ -126,15 +126,15 @@ const ae = /* @__PURE__ */ T({
126
126
  };
127
127
  }
128
128
  });
129
- function be(r) {
130
- return r.map((c) => ({
129
+ function be(y) {
130
+ return y.map((m) => ({
131
131
  module: A.F_MENU_MODULE_V4_KEY.enum.item,
132
- id: c._id,
133
- discriminator: c.combinationKey,
132
+ id: m._id,
133
+ discriminator: m.combinationKey,
134
134
  data: void 0
135
135
  }));
136
136
  }
137
- const le = { class: "fm-typo-en-title-md-600" }, ne = { class: "space-y-32" }, oe = { class: "flex gap-8 items-center justify-start" }, ie = /* @__PURE__ */ T({
137
+ const le = { class: "fm-typo-en-title-md-600" }, oe = { class: "space-y-32" }, ne = { class: "flex gap-8 items-center justify-start" }, ie = /* @__PURE__ */ T({
138
138
  __name: "Form",
139
139
  props: {
140
140
  action: {},
@@ -144,86 +144,86 @@ const le = { class: "fm-typo-en-title-md-600" }, ne = { class: "space-y-32" }, o
144
144
  bindToVariant: { type: Boolean }
145
145
  },
146
146
  emits: ["update:takeaway"],
147
- setup(r, { expose: c, emit: t }) {
148
- const { t: n } = I(), m = r, v = t, u = K(), F = B(() => u.rules.takeaway), V = y(!1), s = y(!1), b = (o) => {
149
- X.isBoolean(o) ? s.value = o : s.value = !s.value;
147
+ setup(y, { expose: m, emit: a }) {
148
+ const { t: n } = I(), d = y, v = a, r = K(), x = B(() => r.rules.takeaway), V = f(!1), u = f(!1), b = (l) => {
149
+ X.isBoolean(l) ? u.value = l : u.value = !u.value;
150
150
  };
151
151
  function k() {
152
- var l;
153
- const o = {
152
+ var o;
153
+ const l = {
154
154
  ...q.generator.initMenuV4Takeaway(),
155
155
  usedBy: [],
156
- ...O(m.initialValue ?? {})
156
+ ...O(d.initialValue ?? {})
157
157
  };
158
- return (l = m.fallback) != null && l.price && (o.price = null), o;
158
+ return (o = d.fallback) != null && o.price && (l.price = null), l;
159
159
  }
160
- const d = y(k()), x = B(() => m.action === "add" ? n("menu.takeaway.add") : n("menu.takeaway.update")), e = J(
160
+ const s = f(k()), _ = B(() => d.action === "add" ? n("menu.takeaway.add") : n("menu.takeaway.update")), e = J(
161
161
  () => !z.isEqual(
162
- d.value,
163
- m.initialValue || {
162
+ s.value,
163
+ d.initialValue || {
164
164
  ...q.generator.initMenuV4Takeaway(),
165
165
  usedBy: []
166
166
  }
167
167
  ),
168
- () => s.value = !1
168
+ () => u.value = !1
169
169
  );
170
- function a() {
171
- v("update:takeaway", d.value), b(!1);
170
+ function t() {
171
+ v("update:takeaway", s.value), b(!1);
172
172
  }
173
173
  return L(
174
- () => s.value,
174
+ () => u.value,
175
175
  () => {
176
- s.value && (d.value = k());
176
+ u.value && (s.value = k());
177
177
  }
178
- ), c({
178
+ ), m({
179
179
  trigger: b,
180
- show: s
181
- }), (o, l) => {
182
- const E = _("fm-text-field"), w = _("fm-button"), $ = _("fm-side-sheet");
180
+ show: u
181
+ }), (l, o) => {
182
+ const E = F("fm-text-field"), w = F("fm-button"), $ = F("fm-side-sheet");
183
183
  return M(), P(W, null, [
184
- U(o.$slots, "default", { trigger: b }),
185
- f($, {
184
+ U(l.$slots, "default", { trigger: b }),
185
+ c($, {
186
186
  id: "group-form",
187
- modelValue: s.value,
188
- "onUpdate:modelValue": l[4] || (l[4] = (p) => s.value = p),
187
+ modelValue: u.value,
188
+ "onUpdate:modelValue": o[4] || (o[4] = (p) => u.value = p),
189
189
  "is-container": i(Z).FmForm,
190
190
  "is-container-props": {
191
- onValidationSuccess: a,
191
+ onValidationSuccess: t,
192
192
  blameFormChildOnValidationFailed: !0
193
193
  },
194
194
  "max-width": 560,
195
195
  "onOn:clickedAway": i(e)
196
196
  }, {
197
197
  "side-sheet-header": g(() => [
198
- D("p", le, Y(x.value), 1)
198
+ D("p", le, Y(_.value), 1)
199
199
  ]),
200
200
  "side-sheet-footer": g(() => [
201
- D("div", oe, [
202
- f(w, {
203
- label: i(te)(i(n)(`menu.common.actions.${r.action}`)),
201
+ D("div", ne, [
202
+ c(w, {
203
+ label: i(ae)(i(n)(`menu.common.actions.${l.action}`)),
204
204
  loading: V.value,
205
205
  size: "lg",
206
206
  type: "submit",
207
207
  variant: "primary"
208
208
  }, null, 8, ["label", "loading"]),
209
- f(w, {
209
+ c(w, {
210
210
  label: i(n)("menu.common.actions.cancel"),
211
211
  size: "lg",
212
212
  variant: "tertiary",
213
- onClick: l[3] || (l[3] = () => s.value = !1)
213
+ onClick: o[3] || (o[3] = () => u.value = !1)
214
214
  }, null, 8, ["label"])
215
215
  ])
216
216
  ]),
217
217
  default: g(() => [
218
- D("div", ne, [
219
- f(G, null, {
218
+ D("div", oe, [
219
+ c(G, null, {
220
220
  default: g(() => {
221
221
  var p;
222
222
  return [
223
- f(E, {
224
- modelValue: d.value.name,
225
- "onUpdate:modelValue": l[0] || (l[0] = (h) => d.value.name = h),
226
- disabled: !F.value.name,
223
+ c(E, {
224
+ modelValue: s.value.name,
225
+ "onUpdate:modelValue": o[0] || (o[0] = (h) => s.value.name = h),
226
+ disabled: !x.value.name,
227
227
  rules: [
228
228
  (h) => !!h || i(n)("menu.common.validation.required", {
229
229
  field: i(n)("menu.takeaway.columns.title").toLowerCase()
@@ -235,12 +235,12 @@ const le = { class: "fm-typo-en-title-md-600" }, ne = { class: "space-y-32" }, o
235
235
  required: "",
236
236
  title: i(n)("menu.takeaway.columns.title")
237
237
  }, null, 8, ["modelValue", "disabled", "rules", "label", "placeholder", "title"]),
238
- f(ae, {
239
- modelValue: d.value.price,
240
- "onUpdate:modelValue": l[1] || (l[1] = (h) => d.value.price = h),
238
+ c(te, {
239
+ modelValue: s.value.price,
240
+ "onUpdate:modelValue": o[1] || (o[1] = (h) => s.value.price = h),
241
241
  min: 0,
242
- nullable: !!r.fallback,
243
- placeholder: (p = r.fallback) != null && p.price ? i(ee)(r.fallback.price, !1) : void 0,
242
+ nullable: !!l.fallback,
243
+ placeholder: (p = l.fallback) != null && p.price ? i(ee)(l.fallback.price, !1) : void 0,
244
244
  label: i(n)("menu.takeaway.columns.price"),
245
245
  "show-currency": "",
246
246
  title: i(n)("menu.takeaway.columns.price")
@@ -249,11 +249,11 @@ const le = { class: "fm-typo-en-title-md-600" }, ne = { class: "space-y-32" }, o
249
249
  }),
250
250
  _: 1
251
251
  }),
252
- r.applyProduct ? (M(), N(Q, {
252
+ l.applyProduct ? (M(), N(Q, {
253
253
  key: 0,
254
- overrides: d.value.usedBy,
255
- "onUpdate:overrides": l[2] || (l[2] = (p) => d.value.usedBy = p),
256
- "select-variant": r.bindToVariant,
254
+ overrides: s.value.usedBy,
255
+ "onUpdate:overrides": o[2] || (o[2] = (p) => s.value.usedBy = p),
256
+ "select-variant": l.bindToVariant,
257
257
  editable: "",
258
258
  title: i(n)("menu.common.labels.product")
259
259
  }, null, 8, ["overrides", "select-variant", "title"])) : j("", !0)
@@ -267,7 +267,7 @@ const le = { class: "fm-typo-en-title-md-600" }, ne = { class: "space-y-32" }, o
267
267
  }), ke = ie;
268
268
  export {
269
269
  ke as T,
270
- ae as _,
270
+ te as _,
271
271
  ie as a,
272
272
  be as l
273
273
  };
@@ -1,15 +1,15 @@
1
- import { defineComponent as y, resolveComponent as d, 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 p, 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-BDMbKJ8o.js";
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";
3
3
  import { useI18n as U } from "@feedmepos/mf-common";
4
4
  const N = {
5
- class: /* @__PURE__ */ p([
5
+ class: /* @__PURE__ */ d([
6
6
  "flex items-center",
7
7
  "px-24 pt-16 pb-8",
8
8
  "border-b border-fm-color-neutral-gray-100",
9
9
  "space-x-4"
10
10
  ])
11
11
  }, $ = { class: "fm-typo-en-title-sm-600 mr-auto" }, z = {
12
- class: /* @__PURE__ */ p(["flex flex-col", "flex-1 overflow-scroll", "w-full", "px-24"])
12
+ class: /* @__PURE__ */ d(["flex flex-col", "flex-1 overflow-scroll", "w-full", "px-24"])
13
13
  }, V = /* @__PURE__ */ y({
14
14
  __name: "FullScreenForm",
15
15
  props: {
@@ -21,42 +21,42 @@ const N = {
21
21
  },
22
22
  emits: ["onPrimary", "onCancel"],
23
23
  setup(t, { emit: e }) {
24
- const r = e, c = () => {
25
- r("onPrimary");
26
- }, l = () => {
27
- r("onCancel");
24
+ const n = e, l = () => {
25
+ n("onPrimary");
26
+ }, c = () => {
27
+ n("onCancel");
28
28
  };
29
- return (n, o) => {
30
- const a = d("fm-button"), s = d("fm-form");
29
+ return (r, o) => {
30
+ const a = p("fm-button"), s = p("fm-form");
31
31
  return i(), f(E, { to: "body" }, [
32
32
  _(g, { name: "fade" }, {
33
33
  default: h(() => [
34
- t.show ? (i(), f(s, {
34
+ r.show ? (i(), f(s, {
35
35
  key: 0,
36
36
  "blame-form-child-on-validation-failed": "",
37
- class: p(["fixed inset-0", "flex flex-col", "w-screen h-dvh", "bg-fm-color-neutral-white"]),
38
- style: F({ zIndex: t.zIndex }),
37
+ class: d(["fixed inset-0", "flex flex-col", "w-screen h-dvh", "bg-fm-color-neutral-white"]),
38
+ style: F({ zIndex: r.zIndex }),
39
39
  tabindex: "-1",
40
- onValidationSuccess: c,
41
- onKeyup: w(l, ["esc"])
40
+ onValidationSuccess: l,
41
+ onKeyup: w(c, ["esc"])
42
42
  }, {
43
43
  default: h(() => [
44
44
  m("div", N, [
45
- m("p", $, R(t.title), 1),
46
- x(n.$slots, "append-title", {}, void 0, !0),
47
- (i(!0), T(A, null, v(t.secondaryActions, (u) => (i(), f(a, {
45
+ m("p", $, R(r.title), 1),
46
+ x(r.$slots, "append-title", {}, void 0, !0),
47
+ (i(!0), T(A, null, v(r.secondaryActions, (u) => (i(), f(a, {
48
48
  label: u.label,
49
49
  variant: "tertiary",
50
50
  onClick: u.click
51
51
  }, null, 8, ["label", "onClick"]))), 256)),
52
52
  _(a, {
53
- label: t.primaryAction.label,
53
+ label: r.primaryAction.label,
54
54
  type: "submit",
55
55
  variant: "primary"
56
56
  }, null, 8, ["label"])
57
57
  ]),
58
58
  m("div", z, [
59
- x(n.$slots, "default", {}, void 0, !0)
59
+ x(r.$slots, "default", {}, void 0, !0)
60
60
  ])
61
61
  ]),
62
62
  _: 3
@@ -73,21 +73,21 @@ const N = {
73
73
  menuStore: {}
74
74
  },
75
75
  setup(t) {
76
- const e = t, r = C(() => {
77
- var n, o;
78
- return ((n = e.menuStore.currentCatalog) == null ? void 0 : n.priceTierRules) ?? ((o = e.menuStore.currentCatalog) == null ? void 0 : o.usePriceTiers) ?? [];
79
- }), c = C(() => {
80
- var n;
81
- return e.menuStore.isV4 && e.menuStore.currentCatalog && !e.menuStore.currentScheduler && ((n = r.value) == null ? void 0 : n.length) > 0;
82
- }), { t: l } = U();
83
- return (n, o) => {
76
+ const e = t, n = C(() => {
77
+ var r, o;
78
+ return ((r = e.menuStore.currentCatalog) == null ? void 0 : r.priceTierRules) ?? ((o = e.menuStore.currentCatalog) == null ? void 0 : o.usePriceTiers) ?? [];
79
+ }), l = C(() => {
80
+ var r;
81
+ return e.menuStore.isV4 && e.menuStore.currentCatalog && !e.menuStore.currentScheduler && ((r = n.value) == null ? void 0 : r.length) > 0;
82
+ }), { t: c } = U();
83
+ return (r, o) => {
84
84
  var s;
85
- const a = d("FmSnackbar");
86
- return c.value ? (i(), f(a, {
85
+ const a = p("FmSnackbar");
86
+ return l.value ? (i(), f(a, {
87
87
  key: 0,
88
88
  "z-index": 0,
89
89
  class: "!max-w-full",
90
- title: I(l)("menu.price_tier.price_group_description", { group: (s = r.value) == null ? void 0 : s.join(", ") })
90
+ title: I(c)("menu.price_tier.price_group_description", { group: (s = n.value) == null ? void 0 : s.join(", ") })
91
91
  }, null, 8, ["title"])) : L("", !0);
92
92
  };
93
93
  }
@@ -95,29 +95,29 @@ const N = {
95
95
  function P(t) {
96
96
  let e = t.trim();
97
97
  e = e.replace(B, S).replace(D, S), e = e.replace(j, "\0");
98
- let r = 0, c = e.length;
99
- for (; e.charAt(r) === "\0"; )
100
- r++;
101
- if (r === c)
98
+ let n = 0, l = e.length;
99
+ for (; e.charAt(n) === "\0"; )
100
+ n++;
101
+ if (n === l)
102
102
  return [];
103
- for (; e.charAt(c - 1) === "\0"; )
104
- c--;
105
- return e.slice(r, c).split(/\0/g);
103
+ for (; e.charAt(l - 1) === "\0"; )
104
+ l--;
105
+ return e.slice(n, l).split(/\0/g);
106
106
  }
107
107
  function K(t) {
108
108
  const e = P(t);
109
- for (let r = 0; r < e.length; r++) {
110
- const c = e[r], l = X.exec(c);
111
- if (l) {
112
- const n = l.index + (l[1] ?? l[2]).length;
113
- e.splice(r, 1, c.slice(0, n), c.slice(n));
109
+ for (let n = 0; n < e.length; n++) {
110
+ const l = e[n], c = X.exec(l);
111
+ if (c) {
112
+ const r = c.index + (c[1] ?? c[2]).length;
113
+ e.splice(n, 1, l.slice(0, r), l.slice(r));
114
114
  }
115
115
  }
116
116
  return e;
117
117
  }
118
118
  function Z(t, e) {
119
- const [r, c, l] = O(t, e), n = G(e == null ? void 0 : e.locale), o = H(e == null ? void 0 : e.locale), a = M(n, o);
120
- return r + c.map((s, u) => u === 0 ? a(s) : n(s)).join((e == null ? void 0 : e.delimiter) ?? " ") + l;
119
+ const [n, l, c] = O(t, e), r = G(e == null ? void 0 : e.locale), o = H(e == null ? void 0 : e.locale), a = M(r, o);
120
+ return n + l.map((s, u) => u === 0 ? a(s) : r(s)).join((e == null ? void 0 : e.delimiter) ?? " ") + c;
121
121
  }
122
122
  function G(t) {
123
123
  return t === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(t);
@@ -126,26 +126,26 @@ function H(t) {
126
126
  return t === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(t);
127
127
  }
128
128
  function M(t, e) {
129
- return (r) => `${e(r[0])}${t(r.slice(1))}`;
129
+ return (n) => `${e(n[0])}${t(n.slice(1))}`;
130
130
  }
131
131
  function O(t, e = {}) {
132
- const r = e.split ?? (e.separateNumbers ? K : P), c = e.prefixCharacters ?? b, l = e.suffixCharacters ?? b;
133
- let n = 0, o = t.length;
134
- for (; n < t.length; ) {
135
- const a = t.charAt(n);
136
- if (!c.includes(a))
132
+ const n = e.split ?? (e.separateNumbers ? K : P), l = e.prefixCharacters ?? b, c = e.suffixCharacters ?? b;
133
+ let r = 0, o = t.length;
134
+ for (; r < t.length; ) {
135
+ const a = t.charAt(r);
136
+ if (!l.includes(a))
137
137
  break;
138
- n++;
138
+ r++;
139
139
  }
140
- for (; o > n; ) {
140
+ for (; o > r; ) {
141
141
  const a = o - 1, s = t.charAt(a);
142
- if (!l.includes(s))
142
+ if (!c.includes(s))
143
143
  break;
144
144
  o = a;
145
145
  }
146
146
  return [
147
- t.slice(0, n),
148
- r(t.slice(n, o)),
147
+ t.slice(0, r),
148
+ n(t.slice(r, o)),
149
149
  t.slice(o)
150
150
  ];
151
151
  }
@@ -1,12 +1,12 @@
1
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-D-k9WcQV.js";
3
- import { d as ee } from "./vuedraggable-DnBIRDMr.js";
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";
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
- import { _ as oe } from "./FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js";
7
- import { _ as le } from "./RuleView.vue_vue_type_script_setup_true_lang-CPFGkaTr.js";
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";
8
8
  import { u as ie } from "./discardConfirm-BHni0LNu.js";
9
- import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BpEjqhAC.js";
9
+ import { _ as se } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.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,