@feedmepos/mf-menu 0.32.13 → 0.32.15

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 (73) hide show
  1. package/dist/{App-D70-FH5L.js → App-BFUyUrdi.js} +16 -9
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BJdja2N0.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BbjRIN7Z.js} +20 -20
  3. package/dist/{Catalog-WMpN3a0p.js → Catalog-B6VFmr6e.js} +20 -20
  4. package/dist/{Category-C_VsQIHU.js → Category-B-bTjNFI.js} +24 -24
  5. package/dist/{Category-BwHhFTZ-.js → Category-C8uGxpST.js} +84 -84
  6. package/dist/{CookingGuide-D9RNkYDL.js → CookingGuide-BL3uetlO.js} +65 -65
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DtmrxDZm.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-8yIVwc8E.js} +1 -1
  8. package/dist/{Group-DexONgr2.js → Group-BvO-gQZe.js} +1 -1
  9. package/dist/{Group-qRZlg5ST.js → Group-DT9UkkOx.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-DtPY9uUt.js → Group.vue_vue_type_script_setup_true_lang-DZhM1Tpb.js} +56 -56
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B5Qpmj2f.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D48u_DHq.js} +5 -5
  12. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-C_X-lTnN.js +72979 -0
  13. package/dist/{Ingredient-BuOS_Wvm.js → Ingredient-7qWDD9e6.js} +26 -26
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DFvXklj9.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CwjW0wfz.js} +2 -2
  15. package/dist/{LinkProductSideSheet-DJj8Nn4X.js → LinkProductSideSheet-BXW6eNgZ.js} +3 -3
  16. package/dist/{MenuSetting-D6B0gCGV.js → MenuSetting-BSF7O2NL.js} +5 -5
  17. package/dist/{PrintRoute-B7G8f1iC.js → PrintRoute-b1ii5Uz9.js} +20 -20
  18. package/dist/{Product-DpS5EepJ.js → Product-Ce0GJb3c.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CdIukLqA.js → Product.vue_vue_type_script_setup_true_lang-BZVvTAOX.js} +49 -49
  20. package/dist/{ProductInternalTools-CBCyWHOS.js → ProductInternalTools-igbOLRap.js} +20 -20
  21. package/dist/Products-GAyUdhnN.js +292 -0
  22. package/dist/Publish-g60odzhM.js +1300 -0
  23. package/dist/{Recipe-D14rkATU.js → Recipe-B6aye_iC.js} +9 -9
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CdH2ius3.js → RuleView.vue_vue_type_script_setup_true_lang-By8kwuMB.js} +134 -134
  25. package/dist/{Scheduler-DWZqa-jf.js → Scheduler-CyaG6Y5v.js} +7 -7
  26. package/dist/{ServingSequence-Mx7ovvJ1.js → ServingSequence-BXeypgrN.js} +27 -27
  27. package/dist/{Setting-DmHuVXVn.js → Setting-D7GcaNTk.js} +17 -17
  28. package/dist/{Subcategory-DixZPdnT.js → Subcategory-DNUp9ojI.js} +37 -37
  29. package/dist/{Takeaway-BVIymFV_.js → Takeaway-Baqvq5nP.js} +9 -9
  30. package/dist/{Takeaway-DDKeDEbV.js → Takeaway-BjXPeYRv.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CTaCQgRv.js → Takeaway.vue_vue_type_script_setup_true_lang-CgXT2UVL.js} +54 -54
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DveI9xvU.js → Thumbnail.vue_vue_type_script_setup_true_lang-CX8cSbDe.js} +12 -12
  33. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-2nBbq_Yk.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DcjGVQEO.js} +756 -763
  34. package/dist/{Unit-utuaNZBw.js → Unit-mI7lLzCf.js} +2 -2
  35. package/dist/{Variant-CzuJNwen.js → Variant-CVwnODRz.js} +14 -14
  36. package/dist/{_id_-DMDhPQCr.js → _id_-fpn0nBru.js} +14 -14
  37. package/dist/{app-BQUkvrAS.js → app-CCKI85Te.js} +26 -26
  38. package/dist/{app-Bqj3cAPJ.js → app-U5MEN4U1.js} +1 -1
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/Entry.vue.d.ts +1 -0
  41. package/dist/apps/mf-menu/src/components/feature/Fields/ImageDropField.vue.d.ts +0 -2
  42. package/dist/apps/mf-menu/src/composable/useClientEvent.d.ts +14 -0
  43. package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +22 -22
  44. package/dist/apps/mf-menu/src/helper/menuExport.d.ts +59 -33
  45. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/assets/{linked-status-ILQVL8r9.js → linked-status-6Jt70XBp.js} +2 -2
  47. package/dist/assets/menu-export-CR0a98CA.js +107 -0
  48. package/dist/assets/{override-menu-DVkGhbA9.js → override-menu-Chsc0CSI.js} +2 -2
  49. package/dist/assets/{validate-menu-y_NQUL02.js → validate-menu-pb0aN4gj.js} +2 -2
  50. package/dist/{catalog-BYzITAmC.js → catalog-BgQmytEA.js} +1 -1
  51. package/dist/{catalogSetting-DAo5tN3P.js → catalogSetting-BS5IaQKq.js} +1 -1
  52. package/dist/{category-D4x8r_lY.js → category-DJMVbmzx.js} +1 -1
  53. package/dist/{currency-CvoBdMM2.js → currency-FHrLDvzy.js} +1 -1
  54. package/dist/dayjs.min-DJGdQr-B.js +6 -0
  55. package/dist/{index-LuH6PJzW.js → index-BywPDIFW.js} +4 -4
  56. package/dist/{index-BLUIaanj.js → index-DYxLHjeC.js} +1 -1
  57. package/dist/{index-6lju0f3r.js → index-XVWDnyu-.js} +17 -17
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-DxF14kn9.js → index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js} +2306 -2306
  59. package/dist/{item-lXMLaKOb.js → item-cmnP2N-a.js} +1089 -1091
  60. package/dist/{jszip.min-CdZ-wY5m.js → jszip.min-psVCZNVl.js} +545 -545
  61. package/dist/{menu-PJc2dQHQ.js → menu-CgQPOu3W.js} +1 -1
  62. package/dist/{menuV2-DinFmdTL.js → menuV2-DHO9OmzU.js} +159 -159
  63. package/dist/mf-menu.css +1 -1
  64. package/dist/{priceTier-CzKIo11g.js → priceTier-CLm9vzaK.js} +1 -1
  65. package/dist/{scheduler-DQjxnoCk.js → scheduler-BMdZdtpj.js} +4 -4
  66. package/dist/{subcategory-CLkDImEU.js → subcategory-Dj_DOvFt.js} +2 -2
  67. package/dist/{toExcel-DPh8DaM0.js → toExcel-XwFFiTiA.js} +2 -2
  68. package/dist/{unit-QYkVoC6_.js → unit-CsuAQsy7.js} +12 -12
  69. package/package.json +3 -3
  70. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BqhNkaw_.js +0 -96043
  71. package/dist/Products-CcyGNlUl.js +0 -794
  72. package/dist/Publish-rZLHFaJ5.js +0 -1264
  73. package/dist/dayjs.min-C6xioui7.js +0 -6
@@ -1,20 +1,20 @@
1
- import { defineComponent as X, computed as g, resolveComponent as M, createBlock as I, openBlock as m, withCtx as x, createElementBlock as w, Fragment as T, renderList as oe, createElementVNode as d, normalizeClass as W, toDisplayString as G, createVNode as s, ref as E, renderSlot as Ne, unref as r, createCommentVNode as U, watch as Re, h as pe, mergeProps as Ee, createSlots as Se, withModifiers as Ue, isRef as Q, nextTick as fe } from "vue";
2
- import { J as H, u as ne, P as Ie, G as Te, A as v, D as $e, a3 as Ye, B as Le, K as ze } from "./index.vue_vue_type_script_setup_true_lang-DxF14kn9.js";
1
+ import { defineComponent as X, computed as g, resolveComponent as M, createBlock as I, openBlock as m, withCtx as x, createElementBlock as C, Fragment as T, renderList as oe, createElementVNode as d, normalizeClass as W, toDisplayString as G, createVNode as s, ref as E, renderSlot as Ne, unref as r, createCommentVNode as U, watch as Re, h as pe, mergeProps as Ee, createSlots as Se, withModifiers as Ue, isRef as J, nextTick as fe } from "vue";
2
+ import { J as H, u as ne, Q as Ie, G as Te, A as v, D as $e, a4 as Ye, B as Le, M as ze } from "./index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js";
3
3
  import { d as Be } from "./vuedraggable-CK8z7qA8.js";
4
- import { b as ve, H as Ke } from "./app-5fxKLAzS.js";
5
- import { useI18n as le, useCoreStore as je, useCustomAttributes as He } from "@feedmepos/mf-common";
6
- import { useBreakpoints as ye, components as _e, useSnackbar as qe, useDialog as Je, FmButtonVariant as Qe } from "@feedmepos/ui-library";
7
- import { _ as We, a as Xe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-DtmrxDZm.js";
8
- import { _ as Ze } from "./app-BQUkvrAS.js";
4
+ import { b as ve, H as je } from "./app-5fxKLAzS.js";
5
+ import { useI18n as le, useCoreStore as Ke, useCustomAttributes as He } from "@feedmepos/mf-common";
6
+ import { useBreakpoints as ye, components as _e, useSnackbar as qe, useDialog as Qe, FmButtonVariant as Je } from "@feedmepos/ui-library";
7
+ import { _ as We, a as Xe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-8yIVwc8E.js";
8
+ import { _ as Ze } from "./app-CCKI85Te.js";
9
9
  import { _ as et, a as tt } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
10
10
  import { c as ot } from "./object-DVUNCr7w.js";
11
11
  import { u as nt } from "./discardConfirm-BHni0LNu.js";
12
- import { _ as lt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BJdja2N0.js";
12
+ import { _ as lt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BbjRIN7Z.js";
13
13
  import { c as at } from "./check-C9mY6LiX.js";
14
- import { M as ge, w as rt, x as ut, A as st, e as it, h as ct, r as mt } from "./item-lXMLaKOb.js";
14
+ import { M as ge, x as rt, y as ut, A as st, e as it, i as ct, r as mt } from "./item-cmnP2N-a.js";
15
15
  import { u as dt } from "./search-BAPEUu1R.js";
16
- import { C as pt } from "./catalog-BYzITAmC.js";
17
- import { c as ft } from "./menuV2-DinFmdTL.js";
16
+ import { C as pt } from "./catalog-BgQmytEA.js";
17
+ import { c as ft } from "./menuV2-DHO9OmzU.js";
18
18
  const vt = /* @__PURE__ */ X({
19
19
  __name: "ResponsiveContextMenu",
20
20
  props: {
@@ -26,14 +26,14 @@ const vt = /* @__PURE__ */ X({
26
26
  const h = M("FmButton"), f = M("FmMenuItem"), y = M("FmMenu");
27
27
  return u.value ? (m(), I(et, { key: 0 }, {
28
28
  default: x(() => [
29
- (m(!0), w(T, null, oe(R.items, ({ icon: k, label: D, disabled: C, itemClass: A, onClick: _ }) => (m(), I(tt, {
29
+ (m(!0), C(T, null, oe(R.items, ({ icon: k, label: D, disabled: w, itemClass: A, onClick: _ }) => (m(), I(tt, {
30
30
  key: D,
31
31
  icon: k,
32
32
  label: D,
33
- disabled: C,
33
+ disabled: w,
34
34
  itemClass: A,
35
35
  onClick: () => {
36
- !C && (_ == null || _());
36
+ !w && (_ == null || _());
37
37
  }
38
38
  }, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
39
39
  ]),
@@ -53,17 +53,17 @@ const vt = /* @__PURE__ */ X({
53
53
  })
54
54
  ]),
55
55
  default: x(() => [
56
- (m(!0), w(T, null, oe(R.items, ({ icon: k, label: D, disabled: C, itemClass: A, onClick: _ }) => (m(), I(f, {
56
+ (m(!0), C(T, null, oe(R.items, ({ icon: k, label: D, disabled: w, itemClass: A, onClick: _ }) => (m(), I(f, {
57
57
  key: D,
58
- disabled: C,
58
+ disabled: w,
59
59
  onClick: () => {
60
- !C && (_ == null || _());
60
+ !w && (_ == null || _());
61
61
  },
62
62
  label: D
63
63
  }, {
64
64
  label: x(() => [
65
65
  d("span", {
66
- class: W(C ? "text-fm-color-typo-disabled" : A)
66
+ class: W(w ? "text-fm-color-typo-disabled" : A)
67
67
  }, G(D), 3)
68
68
  ]),
69
69
  _: 2
@@ -90,10 +90,10 @@ const vt = /* @__PURE__ */ X({
90
90
  }
91
91
  ), k = E(!1), D = (A) => {
92
92
  at.isBoolean(A) ? k.value = A : k.value = !k.value, k.value && (f.value = u.initialValue.map((_) => ({ _id: _ })));
93
- }, C = ne();
93
+ }, w = ne();
94
94
  return (A, _) => {
95
95
  const b = M("fm-button"), q = M("fm-side-sheet");
96
- return m(), w(T, null, [
96
+ return m(), C(T, null, [
97
97
  Ne(A.$slots, "default", { trigger: D }),
98
98
  s(q, {
99
99
  id: "group-form",
@@ -132,7 +132,7 @@ const vt = /* @__PURE__ */ X({
132
132
  s(lt, {
133
133
  overrides: f.value,
134
134
  "onUpdate:overrides": _[0] || (_[0] = (N) => f.value = N),
135
- "categorized-items": r(C).categorizedItems,
135
+ "categorized-items": r(w).categorizedItems,
136
136
  editable: A.editable,
137
137
  "select-variant": !1,
138
138
  "show-variant": !1,
@@ -148,7 +148,7 @@ const vt = /* @__PURE__ */ X({
148
148
  }), bt = {
149
149
  key: 0,
150
150
  class: "mt-4"
151
- }, ht = { class: "text-fm-color-typo-secondary mb-2" }, kt = { class: "list-disc list-inside text-fm-color-typo-secondary ml-4 space-y-1" }, wt = /* @__PURE__ */ X({
151
+ }, ht = { class: "text-fm-color-typo-secondary mb-2" }, kt = { class: "list-disc list-inside text-fm-color-typo-secondary ml-4 space-y-1" }, Ct = /* @__PURE__ */ X({
152
152
  __name: "DeleteGroupDialog",
153
153
  props: {
154
154
  group: {}
@@ -158,12 +158,12 @@ const vt = /* @__PURE__ */ X({
158
158
  const f = R.state.menu.modules.item.find((y) => y._id === h);
159
159
  return (f == null ? void 0 : f.name) || h;
160
160
  }).filter(Boolean));
161
- return (h, f) => (m(), w("div", null, [
161
+ return (h, f) => (m(), C("div", null, [
162
162
  d("div", null, G(r(u)("menu.group.dialogs.delete.message", { name: h.group.name })), 1),
163
- V.value.length > 0 ? (m(), w("div", bt, [
163
+ V.value.length > 0 ? (m(), C("div", bt, [
164
164
  d("div", ht, G(r(u)("menu.group.dialogs.delete.unlink_warning", { count: V.value.length })), 1),
165
165
  d("ul", kt, [
166
- (m(!0), w(T, null, oe(V.value, (y) => (m(), w("li", {
166
+ (m(!0), C(T, null, oe(V.value, (y) => (m(), C("li", {
167
167
  key: y,
168
168
  class: "text-sm"
169
169
  }, G(y), 1))), 128))
@@ -171,7 +171,7 @@ const vt = /* @__PURE__ */ X({
171
171
  ])) : U("", !0)
172
172
  ]));
173
173
  }
174
- }), Ct = {
174
+ }), wt = {
175
175
  key: 1,
176
176
  class: "xs:pt-24"
177
177
  }, Ot = {
@@ -207,8 +207,8 @@ const vt = /* @__PURE__ */ X({
207
207
  setup(L, {
208
208
  emit: S
209
209
  }) {
210
- const u = ne(), R = je(), V = qe(), h = Ie(Te(V)), f = Je(), y = g(() => u.rules.group), k = g(() => new ge(u, h.updateMenu, f)), D = g(() => k.value.mapGroups(u.groups, !1)), {
211
- searchKey: C,
210
+ const u = ne(), R = Ke(), V = qe(), h = Ie(Te(V)), f = Qe(), y = g(() => u.rules.group), k = g(() => new ge(u, h.updateMenu, f)), D = g(() => k.value.mapGroups(u.groups, !1)), {
211
+ searchKey: w,
212
212
  filter: A
213
213
  } = dt(), _ = E(!1), b = E(null), {
214
214
  attributes: q,
@@ -218,7 +218,7 @@ const vt = /* @__PURE__ */ X({
218
218
  valueSource: D,
219
219
  entity: "group"
220
220
  }), z = g(() => {
221
- const t = (a) => A([a.name, ...Object.values(a.items).flatMap((l) => `${l.code} ${l.name} ${Le.Dinero.fromFdoDinero(l.price).toFormat()}`), a.type]), e = (a) => !a.customAttributes && !ae.value ? !0 : Ke(a.customAttributes ?? {}, ae.value);
221
+ const t = (a) => A([a.name, ...Object.values(a.items).flatMap((l) => `${l.code} ${l.name} ${Le.Dinero.fromFdoDinero(l.price).toFormat()}`), a.type]), e = (a) => !a.customAttributes && !ae.value ? !0 : je(a.customAttributes ?? {}, ae.value);
222
222
  return D.value.filter((a) => t(a) && e(a)).filter((a) => !b.value || a.type === b.value);
223
223
  }), be = S;
224
224
  Re(() => z.value.length, () => {
@@ -279,7 +279,7 @@ const vt = /* @__PURE__ */ X({
279
279
  function ue(t) {
280
280
  k.value.sortGroups(t);
281
281
  }
282
- function we(t) {
282
+ function Ce(t) {
283
283
  f.open({
284
284
  title: n("menu.group.actions.duplicate.title"),
285
285
  message: n("menu.group.actions.duplicate.message", {
@@ -295,7 +295,7 @@ const vt = /* @__PURE__ */ X({
295
295
  }
296
296
  }).onPrimary(() => k.value.duplicateGroup(t));
297
297
  }
298
- const ee = g(() => u.currentCatalog), B = g(() => u.currentScheduler), K = g(() => new pt(ee.value, u, h.updateMenu, f)), te = g(() => new rt(B.value, u, h.updateMenu, f)), Ce = (t) => {
298
+ const ee = g(() => u.currentCatalog), B = g(() => u.currentScheduler), j = g(() => new pt(ee.value, u, h.updateMenu, f)), te = g(() => new rt(B.value, u, h.updateMenu, f)), we = (t) => {
299
299
  let e = t;
300
300
  function a(l) {
301
301
  const F = u.state.menu.modules.group.find((o) => o._id === l._id), p = (l.items ?? []).reduce((o, O) => (o[O._id] = [...o[O._id] || [], O.combinationKey || ""], o), {}), Y = (F.items ?? []).filter((o) => {
@@ -314,7 +314,7 @@ const vt = /* @__PURE__ */ X({
314
314
  }
315
315
  if (c.value) {
316
316
  let l;
317
- ee.value ? B.value ? l = K.value.getCatalogSchedulerGroup(t._id, B.value._id) : l = K.value.getCatalogGroup(t._id) : l = te.value.getSchedulerGroup(t._id);
317
+ ee.value ? B.value ? l = j.value.getCatalogSchedulerGroup(t._id, B.value._id) : l = j.value.getCatalogGroup(t._id) : l = te.value.getSchedulerGroup(t._id);
318
318
  const i = a(l);
319
319
  e = new ge(u, h.updateMenu, f).mapGroups([i], !0)[0];
320
320
  }
@@ -327,14 +327,14 @@ const vt = /* @__PURE__ */ X({
327
327
  function Oe(t) {
328
328
  f.open({
329
329
  title: n("menu.group.dialogs.delete.title"),
330
- contentComponent: wt,
330
+ contentComponent: Ct,
331
331
  contentComponentProps: {
332
332
  group: t
333
333
  },
334
334
  primaryActions: {
335
335
  text: n("menu.common.actions.delete"),
336
336
  close: !0,
337
- variant: Qe.Destructive
337
+ variant: Je.Destructive
338
338
  },
339
339
  secondaryActions: {
340
340
  text: n("menu.common.actions.cancel"),
@@ -385,7 +385,7 @@ const vt = /* @__PURE__ */ X({
385
385
  }, {
386
386
  label: n("menu.group.actions.duplicate_action"),
387
387
  disabled: !y.value.create,
388
- onClick: () => we(e)
388
+ onClick: () => Ce(e)
389
389
  }, {
390
390
  label: n("menu.common.actions.delete"),
391
391
  itemClass: "text-fm-color-typo-error",
@@ -486,7 +486,7 @@ const vt = /* @__PURE__ */ X({
486
486
  }), Ae = async (t) => {
487
487
  const e = ct(t), a = e.group, l = mt(a, re(t));
488
488
  if (c.value)
489
- ee.value ? (B.value ? K.value.overrideCatalogSchedulerGroups([l], B.value._id) : K.value.overrideCatalogGroups([l]), await K.value.update()) : (te.value.overrideSchedulerGroups([l]), await te.value.update());
489
+ ee.value ? (B.value ? j.value.overrideCatalogSchedulerGroups([l], B.value._id) : j.value.overrideCatalogGroups([l]), await j.value.update()) : (te.value.overrideSchedulerGroups([l]), await te.value.update());
490
490
  else {
491
491
  const i = {
492
492
  module: v.F_MENU_MODULE_V4_KEY.enum.group,
@@ -512,9 +512,9 @@ const vt = /* @__PURE__ */ X({
512
512
  } = le(), Pe = g(() => {
513
513
  var t;
514
514
  return ((t = R.groupAttributeSettings) == null ? void 0 : t.value.length) > 0;
515
- }), j = E(!1), J = E(null);
515
+ }), K = E(!1), Q = E(null);
516
516
  async function Ve() {
517
- j.value = !j.value, j.value && (await fe(), J.value && J.value.toggleProperty(!0));
517
+ K.value = !K.value, K.value && (await fe(), Q.value && Q.value.toggleProperty(!0));
518
518
  }
519
519
  const de = () => y.value.multiScheduler ? s(Xe, null, {
520
520
  append: () => Pe.value ? s("div", {
@@ -531,17 +531,17 @@ const vt = /* @__PURE__ */ X({
531
531
  }) : null;
532
532
  return (t, e) => {
533
533
  const a = M("fm-button"), l = M("fm-chip"), i = M("fm-menu-item"), F = M("fm-menu"), p = M("fm-search"), P = M("fm-table"), Y = M("fm-bottom-sheet");
534
- return m(), w(T, null, [$.value ? (m(), I(ut, Ee({
534
+ return m(), C(T, null, [$.value ? (m(), I(ut, Ee({
535
535
  ref_key: "groupManagerFormRef",
536
536
  ref: ce,
537
537
  key: $.value._id
538
- }, Ce($.value), {
538
+ }, we($.value), {
539
539
  action: "update",
540
540
  title: r(n)("menu.group.dialogs.update.title"),
541
541
  group: $.value,
542
542
  "onUpdate:group": e[0] || (e[0] = (o) => $.value = o),
543
543
  "onSubmit:group": e[1] || (e[1] = (o) => Ae(o))
544
- }), null, 16, ["title", "group"])) : U("", !0), D.value.length === 0 ? (m(), w("div", Ct, [s(Ye, {
544
+ }), null, 16, ["title", "group"])) : U("", !0), D.value.length === 0 ? (m(), C("div", wt, [s(Ye, {
545
545
  subtitle: r(n)("menu.group.empty.subtitle"),
546
546
  title: r(n)("menu.group.empty.title")
547
547
  }, Se({
@@ -559,14 +559,14 @@ const vt = /* @__PURE__ */ X({
559
559
  _: 1
560
560
  })]),
561
561
  key: "0"
562
- } : void 0]), 1032, ["subtitle", "title"])])) : (m(), w(T, {
562
+ } : void 0]), 1032, ["subtitle", "title"])])) : (m(), C(T, {
563
563
  key: 2
564
- }, [Ge.value ? (m(), w(T, {
564
+ }, [Ge.value ? (m(), C(T, {
565
565
  key: 1
566
566
  }, [d("div", Ft, [s(p, {
567
567
  autofocus: "",
568
- modelValue: r(C),
569
- "onUpdate:modelValue": e[9] || (e[9] = (o) => Q(C) ? C.value = o : null),
568
+ modelValue: r(w),
569
+ "onUpdate:modelValue": e[9] || (e[9] = (o) => J(w) ? w.value = o : null),
570
570
  placeholder: r(n)("menu.group.search.placeholder")
571
571
  }, null, 8, ["modelValue", "placeholder"])]), e[17] || (e[17] = d("div", {
572
572
  class: "bg-fm-color-neutral-gray-100 w-full h-px rounded-md"
@@ -596,12 +596,12 @@ const vt = /* @__PURE__ */ X({
596
596
  onClick: e[13] || (e[13] = (o) => b.value = "DYNAMIC")
597
597
  }, G(r(n)("menu.group.type.dynamic")), 1)])]),
598
598
  _: 1
599
- }, 8, ["modelValue"])) : U("", !0)]), j.value ? (m(), w("div", Gt, [s(r(ve), {
599
+ }, 8, ["modelValue"])) : U("", !0)]), K.value ? (m(), C("div", Gt, [s(r(ve), {
600
600
  ref_key: "attributeFilterRef",
601
- ref: J,
601
+ ref: Q,
602
602
  attributes: r(q),
603
603
  modelValue: r(N),
604
- "onUpdate:modelValue": e[15] || (e[15] = (o) => Q(N) ? N.value = o : null)
604
+ "onUpdate:modelValue": e[15] || (e[15] = (o) => J(N) ? N.value = o : null)
605
605
  }, null, 8, ["attributes", "modelValue"])])) : U("", !0), s(r(Be), {
606
606
  class: W(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"]),
607
607
  "model-value": z.value,
@@ -612,16 +612,16 @@ const vt = /* @__PURE__ */ X({
612
612
  }, {
613
613
  item: x(({
614
614
  element: o
615
- }) => [(m(), w("div", {
615
+ }) => [(m(), C("div", {
616
616
  key: o._id,
617
617
  class: W(["py-12 px-16", "flex space-x-16", "items-center"])
618
- }, [d("div", Pt, [d("div", Vt, [d("p", Nt, G(o.name), 1), d("div", null, [Z.value ? (m(), w("p", Rt, G(r(H.capitalize)(o.type)) + " type ", 1)) : U("", !0), d("p", Et, G(r(n)("menu.group.list.products_linked", {
618
+ }, [d("div", Pt, [d("div", Vt, [d("p", Nt, G(o.name), 1), d("div", null, [Z.value ? (m(), C("p", Rt, G(r(H.capitalize)(o.type)) + " type ", 1)) : U("", !0), d("p", Et, G(r(n)("menu.group.list.products_linked", {
619
619
  count: o.itemsLinked.length
620
620
  })), 1)])]), s(ie, {
621
621
  group: o
622
622
  }, null, 8, ["group"])])]))]),
623
623
  _: 1
624
- }, 8, ["model-value"])], 64)) : (m(), w("div", Ot, [d("div", xt, [s(de), Z.value ? (m(), I(F, {
624
+ }, 8, ["model-value"])], 64)) : (m(), C("div", Ot, [d("div", xt, [s(de), Z.value ? (m(), I(F, {
625
625
  key: 0
626
626
  }, {
627
627
  "menu-button": x(() => [s(l, {
@@ -651,15 +651,15 @@ const vt = /* @__PURE__ */ X({
651
651
  _: 1
652
652
  })) : U("", !0), d("div", Dt, [s(p, {
653
653
  autofocus: "",
654
- modelValue: r(C),
655
- "onUpdate:modelValue": e[6] || (e[6] = (o) => Q(C) ? C.value = o : null),
654
+ modelValue: r(w),
655
+ "onUpdate:modelValue": e[6] || (e[6] = (o) => J(w) ? w.value = o : null),
656
656
  placeholder: r(n)("menu.group.search.placeholder")
657
- }, null, 8, ["modelValue", "placeholder"])])]), j.value ? (m(), w("div", At, [s(r(ve), {
657
+ }, null, 8, ["modelValue", "placeholder"])])]), K.value ? (m(), C("div", At, [s(r(ve), {
658
658
  ref_key: "attributeFilterRef",
659
- ref: J,
659
+ ref: Q,
660
660
  attributes: r(q),
661
661
  modelValue: r(N),
662
- "onUpdate:modelValue": e[7] || (e[7] = (o) => Q(N) ? N.value = o : null)
662
+ "onUpdate:modelValue": e[7] || (e[7] = (o) => J(N) ? N.value = o : null)
663
663
  }, null, 8, ["attributes", "modelValue"])])) : U("", !0), s(Ze, null, {
664
664
  default: x(() => [s(P, {
665
665
  "column-defs": xe.value,
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as N, useModel as K, computed as B, resolveComponent as d, createBlock as P, openBlock as b, ref as L, watch as W, withCtx as _, createElementBlock as F, createElementVNode as I, Fragment as q, renderList as X, createVNode as u, unref as e, createCommentVNode as $, withModifiers as Q, onMounted as te, renderSlot as le, toDisplayString as h, createTextVNode as ae } from "vue";
2
2
  import { useI18n as z, useCustomAttributes as ue, useCoreStore as re, isEmptyRule as oe, EMPTY_RULE as w } from "@feedmepos/mf-common";
3
3
  import { _ as x } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
4
- import { u as D } from "./priceTier-CzKIo11g.js";
4
+ import { u as D } from "./priceTier-CLm9vzaK.js";
5
5
  import { b as O } from "./app-5fxKLAzS.js";
6
6
  import { FmButtonVariant as Z, useDialog as ne, components as ie, FmButtonColorThemeVariant as j } from "@feedmepos/ui-library";
7
- import { m as G, f as Y, d as se, _ as me } from "./RuleView.vue_vue_type_script_setup_true_lang-CdH2ius3.js";
8
- import { L as R } from "./catalogSetting-DAo5tN3P.js";
9
- import { L as de } from "./LinkProductSideSheet-DJj8Nn4X.js";
7
+ import { m as G, f as Y, d as se, _ as me } from "./RuleView.vue_vue_type_script_setup_true_lang-By8kwuMB.js";
8
+ import { L as R } from "./catalogSetting-BS5IaQKq.js";
9
+ import { L as de } from "./LinkProductSideSheet-BXW6eNgZ.js";
10
10
  import { c as H } from "./check-C9mY6LiX.js";
11
- import { u as pe, I as J, am as ce } from "./index.vue_vue_type_script_setup_true_lang-DxF14kn9.js";
11
+ import { u as pe, I as J, an as ce } from "./index.vue_vue_type_script_setup_true_lang-kj6HkxwD.js";
12
12
  import { c as ve } from "./string-DpfFixWH.js";
13
13
  const fe = /* @__PURE__ */ N({
14
14
  __name: "LinkPriceTier",