@feedmepos/mf-menu 0.31.17-dev → 0.31.17

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-Bi92tsdR.js → App-C0zWv8Bb.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C3rIskDF.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BlBfa-ly.js} +2 -2
  3. package/dist/{Catalog-d_9KGaWO.js → Catalog-hTR0c1zS.js} +18 -18
  4. package/dist/{Category-DCjOc3ks.js → Category-BTpAWhsI.js} +36 -36
  5. package/dist/{Category-BO0EYYGP.js → Category-CxDoeXi_.js} +24 -24
  6. package/dist/{CookingGuide-B3YHoKP-.js → CookingGuide-C87lhZ67.js} +56 -56
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-B454jEg0.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BEKiJBLy.js} +1 -1
  8. package/dist/{Group-BTmRo5b4.js → Group-D1kUgRjF.js} +3 -3
  9. package/dist/{Group-Cj39szTY.js → Group-Dad3CsPD.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-CIZithwK.js → Group.vue_vue_type_script_setup_true_lang-C-AS_gUD.js} +54 -54
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DubOzDU3.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dz9BUoZe.js} +6 -6
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C2TnjKpu.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BfZuETkY.js} +317 -317
  13. package/dist/{Ingredient-BTV0a-Tz.js → Ingredient-CL0V9EvP.js} +52 -52
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C7X1K-jY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BFTt-8OI.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-Cyb0Eex4.js → LinkProductSideSheet-CWMNlFCF.js} +14 -14
  16. package/dist/{MenuSetting-DozrYwzG.js → MenuSetting-DA35bTTq.js} +11 -11
  17. package/dist/{PrintRoute-B2kOXN6N.js → PrintRoute-B49FDrP6.js} +26 -26
  18. package/dist/{Product-DCqWb9i2.js → Product-CBGfSsYA.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DFaQiLsv.js → Product.vue_vue_type_script_setup_true_lang-B3kyqD2S.js} +113 -113
  20. package/dist/ProductInternalTools-DiISILIn.js +415 -0
  21. package/dist/Products-BDvqmjZI.js +270 -0
  22. package/dist/{Publish-BzreviuZ.js → Publish-1zBRSD7U.js} +37 -37
  23. package/dist/{Recipe-BgJFJ4Dx.js → Recipe-D0VAcSN-.js} +25 -25
  24. package/dist/{Scheduler-Xp0G2vel.js → Scheduler-8BDLlHCV.js} +13 -13
  25. package/dist/{ServingSequence-CzA1hyup.js → ServingSequence-Bh3DhN3i.js} +36 -36
  26. package/dist/{Setting-DAkorx7V.js → Setting-BdSJCn6q.js} +24 -24
  27. package/dist/{Subcategory-BCbM_yd4.js → Subcategory-CBfEsTKy.js} +39 -39
  28. package/dist/{Takeaway-DKpjh1Ij.js → Takeaway-WPQ-ow5H.js} +1 -1
  29. package/dist/{Takeaway-DtnIyLkz.js → Takeaway-aLJ1QKbm.js} +12 -12
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-PAB0AAfO.js → Takeaway.vue_vue_type_script_setup_true_lang-ZYP7hH6p.js} +25 -25
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CDABZaRa.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-aHMZigPA.js} +116 -116
  32. package/dist/{Unit-Da9V4qF7.js → Unit-Csan3-PW.js} +8 -8
  33. package/dist/{Variant-ONSE3GDp.js → Variant-aYCqqz9A.js} +18 -18
  34. package/dist/{_id_-Dlu5oAk9.js → _id_-BL-Q5Nck.js} +19 -19
  35. package/dist/{app-nWiUbcbv.js → app-CV3Y87bf.js} +262 -247
  36. package/dist/{app-BNF756eJ.js → app-CngqdPlx.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/app.d.ts +12 -0
  39. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUpdatePreview.vue.d.ts +33 -0
  40. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUploadDialog.vue.d.ts +28 -0
  41. package/dist/apps/mf-menu/src/utils/batchProcessor.d.ts +33 -0
  42. package/dist/apps/mf-menu/src/utils/images.d.ts +44 -0
  43. package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
  44. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  45. package/dist/assets/{linked-status-C195HQ8m.js → linked-status-CQPFAl1J.js} +2 -2
  46. package/dist/assets/{override-menu-AQwvxLhn.js → override-menu-DP9T_24q.js} +2 -2
  47. package/dist/assets/{validate-menu-BvGiRNmy.js → validate-menu-CcOso72D.js} +2 -2
  48. package/dist/{catalog-DJDsoY-2.js → catalog-ClQJMV9X.js} +1 -1
  49. package/dist/{catalogSetting-C8FvJ4OQ.js → catalogSetting-CXeRg55T.js} +1 -1
  50. package/dist/{category-Bf-qn7ic.js → category-_lR1fIWU.js} +1 -1
  51. package/dist/{currency-DMhhoVtl.js → currency-x_SA4GNt.js} +1 -1
  52. package/dist/{dayjs.min-BN8QQck7.js → dayjs.min-JzYVBtTX.js} +1 -1
  53. package/dist/{index-BWXnodS5.js → index-BaLeGLHZ.js} +23 -23
  54. package/dist/{index-DIDVppoP.js → index-Cb7zxMMe.js} +1 -1
  55. package/dist/{index-DWIFeRdA.js → index-Cjo_VHIT.js} +14 -14
  56. package/dist/{item-2jMu-J2m.js → item-E-Egz6v8.js} +1747 -1711
  57. package/dist/jszip.min-8UVTn3ZT.js +2393 -0
  58. package/dist/{menu-Dk9WJ37H.js → menu-CrEs_Qy-.js} +1 -1
  59. package/dist/{menu-CAzTKH28.js → menu-DYMiA6Oc.js} +156 -156
  60. package/dist/mf-menu.css +1 -1
  61. package/dist/{priceTier-BtHmZYAn.js → priceTier-Bs3jL4nk.js} +1 -1
  62. package/dist/{scheduler-R20M5JrX.js → scheduler-DxMNHPSa.js} +3 -3
  63. package/dist/{subcategory-CyDndVTK.js → subcategory-h4VL-0kK.js} +63 -63
  64. package/dist/{toExcel-DjH_qdTv.js → toExcel-DRJ3j3P7.js} +2 -2
  65. package/dist/{unit-BA6MtbAH.js → unit-D4v2m10X.js} +24 -24
  66. package/package.json +1 -1
  67. package/dist/Products-CybC3HCA.js +0 -2656
@@ -1,20 +1,20 @@
1
- import { defineComponent as H, computed as f, resolveComponent as F, createBlock as U, openBlock as m, withCtx as O, createElementBlock as w, Fragment as T, renderList as ee, createElementVNode as p, normalizeClass as W, toDisplayString as M, createVNode as i, ref as S, renderSlot as Se, unref as u, createCommentVNode as I, watch as Ee, h as pe, mergeProps as Re, createSlots as Ie, withModifiers as Ue, isRef as de, nextTick as ve } from "vue";
2
- import { K as Q, u as te, Q as Te, G as $e, I as g, A as Ye, z as Le, M as ze } from "./menu-CAzTKH28.js";
3
- import { d as Ke } from "./vuedraggable-CK8z7qA8.js";
4
- import { _ as je, h as fe, a as Be, b as Qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-B454jEg0.js";
1
+ import { defineComponent as H, computed as f, resolveComponent as F, createBlock as U, openBlock as m, withCtx as C, createElementBlock as w, Fragment as T, renderList as ee, createElementVNode as p, normalizeClass as W, toDisplayString as M, createVNode as i, ref as S, renderSlot as Se, unref as u, createCommentVNode as I, watch as Ee, h as pe, mergeProps as Re, createSlots as Ie, withModifiers as Ue, isRef as de, nextTick as ve } from "vue";
2
+ import { I as Q, u as te, O as Te, B as $e, G as g, A as Ye, z as Le, J as ze } from "./menu-DYMiA6Oc.js";
3
+ import { d as Be } from "./vuedraggable-CK8z7qA8.js";
4
+ import { _ as je, h as fe, a as Ke, b as Qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-BEKiJBLy.js";
5
5
  import { useI18n as oe, useCoreStore as qe } from "@feedmepos/mf-common";
6
6
  import { useBreakpoints as ye, components as _e, useSnackbar as We, useDialog as He, FmButtonVariant as Je } from "@feedmepos/ui-library";
7
- import { _ as Xe } from "./app-nWiUbcbv.js";
7
+ import { _ as Xe } from "./app-CV3Y87bf.js";
8
8
  import { _ as Ze, a as et } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
9
9
  import { c as tt } from "./object-DVUNCr7w.js";
10
10
  import { u as ot } from "./discardConfirm-BHni0LNu.js";
11
- import { _ as nt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-C3rIskDF.js";
11
+ import { _ as nt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BlBfa-ly.js";
12
12
  import { c as lt } from "./check-C9mY6LiX.js";
13
13
  import { _ as at } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
14
- import { M as ge, t as rt, v as ut, A as st, e as it, h as ct, r as mt } from "./item-2jMu-J2m.js";
14
+ import { M as ge, x as rt, y as ut, A as st, e as it, h as ct, r as mt } from "./item-E-Egz6v8.js";
15
15
  import { u as pt } from "./search-BAPEUu1R.js";
16
- import { C as dt } from "./catalog-DJDsoY-2.js";
17
- import { c as vt } from "./subcategory-CyDndVTK.js";
16
+ import { C as dt } from "./catalog-ClQJMV9X.js";
17
+ import { c as vt } from "./subcategory-h4VL-0kK.js";
18
18
  const ft = /* @__PURE__ */ H({
19
19
  __name: "ResponsiveContextMenu",
20
20
  props: {
@@ -25,15 +25,15 @@ const ft = /* @__PURE__ */ H({
25
25
  return (P, V) => {
26
26
  const h = F("FmButton"), d = F("FmMenuItem"), y = F("FmMenu");
27
27
  return r.value ? (m(), U(Ze, { key: 0 }, {
28
- default: O(() => [
29
- (m(!0), w(T, null, ee(P.items, ({ icon: k, label: A, disabled: C, itemClass: x, onClick: _ }) => (m(), U(et, {
28
+ default: C(() => [
29
+ (m(!0), w(T, null, ee(P.items, ({ icon: k, label: A, disabled: O, itemClass: x, onClick: _ }) => (m(), U(et, {
30
30
  key: A,
31
31
  icon: k,
32
32
  label: A,
33
- disabled: C,
33
+ disabled: O,
34
34
  itemClass: x,
35
35
  onClick: () => {
36
- !C && (_ == null || _());
36
+ !O && (_ == null || _());
37
37
  }
38
38
  }, null, 8, ["icon", "label", "disabled", "itemClass", "onClick"]))), 128))
39
39
  ]),
@@ -43,7 +43,7 @@ const ft = /* @__PURE__ */ H({
43
43
  "stop-click-propagation": "",
44
44
  shift: !0
45
45
  }, {
46
- "menu-button": O(() => [
46
+ "menu-button": C(() => [
47
47
  i(h, {
48
48
  type: "button",
49
49
  variant: "tertiary",
@@ -52,18 +52,18 @@ const ft = /* @__PURE__ */ H({
52
52
  size: "md"
53
53
  })
54
54
  ]),
55
- default: O(() => [
56
- (m(!0), w(T, null, ee(P.items, ({ icon: k, label: A, disabled: C, itemClass: x, onClick: _ }) => (m(), U(d, {
55
+ default: C(() => [
56
+ (m(!0), w(T, null, ee(P.items, ({ icon: k, label: A, disabled: O, itemClass: x, onClick: _ }) => (m(), U(d, {
57
57
  key: A,
58
- disabled: C,
58
+ disabled: O,
59
59
  onClick: () => {
60
- !C && (_ == null || _());
60
+ !O && (_ == null || _());
61
61
  },
62
62
  label: A
63
63
  }, {
64
- label: O(() => [
64
+ label: C(() => [
65
65
  p("span", {
66
- class: W(C ? "text-fm-color-typo-disabled" : x)
66
+ class: W(O ? "text-fm-color-typo-disabled" : x)
67
67
  }, M(A), 3)
68
68
  ]),
69
69
  _: 2
@@ -90,7 +90,7 @@ const ft = /* @__PURE__ */ H({
90
90
  }
91
91
  ), k = S(!1), A = (x) => {
92
92
  lt.isBoolean(x) ? k.value = x : k.value = !k.value, k.value && (d.value = r.initialValue.map((_) => ({ _id: _ })));
93
- }, C = te();
93
+ }, O = te();
94
94
  return (x, _) => {
95
95
  const b = F("fm-button"), ne = F("fm-side-sheet");
96
96
  return m(), w(T, null, [
@@ -109,10 +109,10 @@ const ft = /* @__PURE__ */ H({
109
109
  "max-width": 560,
110
110
  "onOn:clickedAway": u(y)
111
111
  }, {
112
- "side-sheet-header": O(() => [
112
+ "side-sheet-header": C(() => [
113
113
  p("p", gt, M(x.title), 1)
114
114
  ]),
115
- "side-sheet-footer": O(() => [
115
+ "side-sheet-footer": C(() => [
116
116
  p("div", yt, [
117
117
  i(b, {
118
118
  label: u(V)("common.save"),
@@ -128,11 +128,11 @@ const ft = /* @__PURE__ */ H({
128
128
  })
129
129
  ])
130
130
  ]),
131
- default: O(() => [
131
+ default: C(() => [
132
132
  i(nt, {
133
133
  overrides: d.value,
134
134
  "onUpdate:overrides": _[0] || (_[0] = (N) => d.value = N),
135
- "categorized-items": u(C).categorizedItems,
135
+ "categorized-items": u(O).categorizedItems,
136
136
  editable: x.editable,
137
137
  "select-variant": !1,
138
138
  "show-variant": !1,
@@ -171,10 +171,10 @@ const ft = /* @__PURE__ */ H({
171
171
  ])) : I("", !0)
172
172
  ]));
173
173
  }
174
- }), Ct = {
174
+ }), Ot = {
175
175
  key: 1,
176
176
  class: "xs:pt-24"
177
- }, Ot = {
177
+ }, Ct = {
178
178
  key: 0,
179
179
  class: /* @__PURE__ */ W(["flex-1 overflow-hidden", "space-y-8", "flex flex-col", "overflow-hidden"])
180
180
  }, At = {
@@ -208,7 +208,7 @@ const ft = /* @__PURE__ */ H({
208
208
  emit: R
209
209
  }) {
210
210
  const r = te(), P = qe(), V = We(), h = Te($e(V)), d = He(), y = f(() => r.rules.group), k = f(() => new ge(r, h.updateMenu, d)), A = f(() => k.value.mapGroups(r.groups, !1)), {
211
- searchKey: C,
211
+ searchKey: O,
212
212
  filter: x
213
213
  } = pt(), _ = S(!1), b = S(null), N = S({
214
214
  logic: "AND",
@@ -231,7 +231,7 @@ const ft = /* @__PURE__ */ H({
231
231
  };
232
232
  });
233
233
  }), z = f(() => {
234
- const t = (l) => x([l.name, ...Object.values(l.items).flatMap((n) => `${n.code} ${n.name} ${Le.Dinero.fromFdoDinero(n.price).toFormat()}`), l.type]), e = (l) => !l.customAttributes && !N.value.rules.length ? !0 : Be(l.customAttributes ?? {}, N.value);
234
+ const t = (l) => x([l.name, ...Object.values(l.items).flatMap((n) => `${n.code} ${n.name} ${Le.Dinero.fromFdoDinero(n.price).toFormat()}`), l.type]), e = (l) => !l.customAttributes && !N.value.rules.length ? !0 : Ke(l.customAttributes ?? {}, N.value);
235
235
  return A.value.filter((l) => t(l) && e(l)).filter((l) => !b.value || l.type === b.value);
236
236
  }), he = R;
237
237
  Ee(() => z.value.length, () => {
@@ -292,7 +292,7 @@ const ft = /* @__PURE__ */ H({
292
292
  function re(t) {
293
293
  k.value.sortGroups(t);
294
294
  }
295
- function Ce(t) {
295
+ function Oe(t) {
296
296
  d.open({
297
297
  title: a("menu.group.actions.duplicate.title"),
298
298
  message: a("menu.group.actions.duplicate.message", {
@@ -308,7 +308,7 @@ const ft = /* @__PURE__ */ H({
308
308
  }
309
309
  }).onPrimary(() => k.value.duplicateGroup(t));
310
310
  }
311
- const X = f(() => r.currentCatalog), K = f(() => r.currentScheduler), j = f(() => new dt(X.value, r, h.updateMenu, d)), Z = f(() => new rt(K.value, r, h.updateMenu, d)), Oe = (t) => {
311
+ const X = f(() => r.currentCatalog), B = f(() => r.currentScheduler), j = f(() => new dt(X.value, r, h.updateMenu, d)), Z = f(() => new rt(B.value, r, h.updateMenu, d)), Ce = (t) => {
312
312
  let e = t;
313
313
  function l(n) {
314
314
  const D = r.state.menu.modules.group.find((o) => o._id === n._id), v = (n.items ?? []).reduce((o, E) => (o[E._id] = [...o[E._id] || [], E.combinationKey || ""], o), {}), Y = (D.items ?? []).filter((o) => {
@@ -327,7 +327,7 @@ const ft = /* @__PURE__ */ H({
327
327
  }
328
328
  if (c.value) {
329
329
  let n;
330
- X.value ? K.value ? n = j.value.getCatalogSchedulerGroup(t._id, K.value._id) : n = j.value.getCatalogGroup(t._id) : n = Z.value.getSchedulerGroup(t._id);
330
+ X.value ? B.value ? n = j.value.getCatalogSchedulerGroup(t._id, B.value._id) : n = j.value.getCatalogGroup(t._id) : n = Z.value.getSchedulerGroup(t._id);
331
331
  const s = l(n);
332
332
  e = new ge(r, h.updateMenu, d).mapGroups([s], !0)[0];
333
333
  }
@@ -398,7 +398,7 @@ const ft = /* @__PURE__ */ H({
398
398
  }, {
399
399
  label: a("menu.group.actions.duplicate_action"),
400
400
  disabled: !y.value.create,
401
- onClick: () => Ce(e)
401
+ onClick: () => Oe(e)
402
402
  }, {
403
403
  label: a("menu.common.actions.delete"),
404
404
  itemClass: "text-fm-color-typo-error",
@@ -499,7 +499,7 @@ const ft = /* @__PURE__ */ H({
499
499
  }), Fe = async (t) => {
500
500
  const e = ct(t), l = e.group, n = mt(l, ae(t));
501
501
  if (c.value)
502
- X.value ? (K.value ? j.value.overrideCatalogSchedulerGroups([n], K.value._id) : j.value.overrideCatalogGroups([n]), await j.value.update()) : (Z.value.overrideSchedulerGroups([n]), await Z.value.update());
502
+ X.value ? (B.value ? j.value.overrideCatalogSchedulerGroups([n], B.value._id) : j.value.overrideCatalogGroups([n]), await j.value.update()) : (Z.value.overrideSchedulerGroups([n]), await Z.value.update());
503
503
  else {
504
504
  const s = {
505
505
  module: g.F_MENU_MODULE_V4_KEY.enum.group,
@@ -525,9 +525,9 @@ const ft = /* @__PURE__ */ H({
525
525
  } = oe(), Ve = f(() => {
526
526
  var t;
527
527
  return ((t = P.groupAttributeSettings) == null ? void 0 : t.value.length) > 0;
528
- }), B = S(!1), q = S(null);
528
+ }), K = S(!1), q = S(null);
529
529
  async function Ne() {
530
- B.value = !B.value, B.value && (await ve(), q.value && q.value.toggleProperty(!0));
530
+ K.value = !K.value, K.value && (await ve(), q.value && q.value.toggleProperty(!0));
531
531
  }
532
532
  const me = () => y.value.multiScheduler ? i(Qe, null, {
533
533
  append: () => Ve.value ? i("div", {
@@ -548,21 +548,21 @@ const ft = /* @__PURE__ */ H({
548
548
  ref_key: "groupManagerFormRef",
549
549
  ref: ie,
550
550
  key: $.value._id
551
- }, Oe($.value), {
551
+ }, Ce($.value), {
552
552
  action: "update",
553
553
  title: u(a)("menu.group.dialogs.update.title"),
554
554
  group: $.value,
555
555
  "onUpdate:group": e[0] || (e[0] = (o) => $.value = o),
556
556
  "onSubmit:group": e[1] || (e[1] = (o) => Fe(o))
557
- }), null, 16, ["title", "group"])) : I("", !0), A.value.length === 0 ? (m(), w("div", Ct, [i(at, {
557
+ }), null, 16, ["title", "group"])) : I("", !0), A.value.length === 0 ? (m(), w("div", Ot, [i(at, {
558
558
  subtitle: u(a)("menu.group.empty.subtitle"),
559
559
  title: u(a)("menu.group.empty.title")
560
560
  }, Ie({
561
561
  _: 2
562
562
  }, [y.value.create ? {
563
563
  name: "action",
564
- fn: O(() => [i(u(st), null, {
565
- default: O(({
564
+ fn: C(() => [i(u(st), null, {
565
+ default: C(({
566
566
  trigger: o
567
567
  }) => [i(l, {
568
568
  "prepend-icon": "add",
@@ -578,8 +578,8 @@ const ft = /* @__PURE__ */ H({
578
578
  key: 1
579
579
  }, [p("div", Ft, [i(v, {
580
580
  autofocus: "",
581
- modelValue: u(C),
582
- "onUpdate:modelValue": e[9] || (e[9] = (o) => de(C) ? C.value = o : null),
581
+ modelValue: u(O),
582
+ "onUpdate:modelValue": e[9] || (e[9] = (o) => de(O) ? O.value = o : null),
583
583
  placeholder: u(a)("menu.group.search.placeholder")
584
584
  }, null, 8, ["modelValue", "placeholder"])]), e[17] || (e[17] = p("div", {
585
585
  class: "bg-fm-color-neutral-gray-100 w-full h-px rounded-md"
@@ -588,14 +588,14 @@ const ft = /* @__PURE__ */ H({
588
588
  modelValue: _.value,
589
589
  "onUpdate:modelValue": e[14] || (e[14] = (o) => _.value = o)
590
590
  }, {
591
- "bottom-sheet-button": O(() => [i(n, {
591
+ "bottom-sheet-button": C(() => [i(n, {
592
592
  label: u(a)("menu.group.type.title", {
593
593
  type: b.value ? u(Q.capitalize)(b.value) : u(a)("menu.common.labels.all")
594
594
  }),
595
595
  class: "text-fm-color-typo-secondary",
596
596
  "right-icon": "keyboard_arrow_down"
597
597
  }, null, 8, ["label"])]),
598
- default: O(() => [p("div", null, [p("div", {
598
+ default: C(() => [p("div", null, [p("div", {
599
599
  class: "px-16 py-8",
600
600
  onClick: e[10] || (e[10] = (o) => b.value = null)
601
601
  }, M(u(a)("menu.group.type.all")), 1), p("div", {
@@ -609,13 +609,13 @@ const ft = /* @__PURE__ */ H({
609
609
  onClick: e[13] || (e[13] = (o) => b.value = "DYNAMIC")
610
610
  }, M(u(a)("menu.group.type.dynamic")), 1)])]),
611
611
  _: 1
612
- }, 8, ["modelValue"])) : I("", !0)]), B.value ? (m(), w("div", Gt, [i(u(fe), {
612
+ }, 8, ["modelValue"])) : I("", !0)]), K.value ? (m(), w("div", Gt, [i(u(fe), {
613
613
  ref_key: "attributeFilterRef",
614
614
  ref: q,
615
615
  attributes: le.value,
616
616
  modelValue: N.value,
617
617
  "onUpdate:modelValue": e[15] || (e[15] = (o) => N.value = o)
618
- }, null, 8, ["attributes", "modelValue"])])) : I("", !0), i(u(Ke), {
618
+ }, null, 8, ["attributes", "modelValue"])])) : I("", !0), i(u(Be), {
619
619
  class: W(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"]),
620
620
  "model-value": z.value,
621
621
  group: "categories",
@@ -623,7 +623,7 @@ const ft = /* @__PURE__ */ H({
623
623
  "item-key": "_id",
624
624
  "onUpdate:modelValue": e[16] || (e[16] = (o) => re(o))
625
625
  }, {
626
- item: O(({
626
+ item: C(({
627
627
  element: o
628
628
  }) => [(m(), w("div", {
629
629
  key: o._id,
@@ -634,17 +634,17 @@ const ft = /* @__PURE__ */ H({
634
634
  group: o
635
635
  }, null, 8, ["group"])])]))]),
636
636
  _: 1
637
- }, 8, ["model-value"])], 64)) : (m(), w("div", Ot, [p("div", At, [i(me), J.value ? (m(), U(D, {
637
+ }, 8, ["model-value"])], 64)) : (m(), w("div", Ct, [p("div", At, [i(me), J.value ? (m(), U(D, {
638
638
  key: 0
639
639
  }, {
640
- "menu-button": O(() => [i(n, {
640
+ "menu-button": C(() => [i(n, {
641
641
  label: u(a)("menu.group.type.title", {
642
642
  type: b.value ? u(Q.capitalize)(b.value) : u(a)("menu.common.labels.all")
643
643
  }),
644
644
  class: "text-fm-color-typo-secondary",
645
645
  "right-icon": "keyboard_arrow_down"
646
646
  }, null, 8, ["label"])]),
647
- default: O(() => [p("div", null, [i(s, {
647
+ default: C(() => [p("div", null, [i(s, {
648
648
  class: "px-16 py-8",
649
649
  label: u(a)("menu.group.type.all"),
650
650
  onClick: e[2] || (e[2] = (o) => b.value = null)
@@ -664,17 +664,17 @@ const ft = /* @__PURE__ */ H({
664
664
  _: 1
665
665
  })) : I("", !0), p("div", xt, [i(v, {
666
666
  autofocus: "",
667
- modelValue: u(C),
668
- "onUpdate:modelValue": e[6] || (e[6] = (o) => de(C) ? C.value = o : null),
667
+ modelValue: u(O),
668
+ "onUpdate:modelValue": e[6] || (e[6] = (o) => de(O) ? O.value = o : null),
669
669
  placeholder: u(a)("menu.group.search.placeholder")
670
- }, null, 8, ["modelValue", "placeholder"])])]), B.value ? (m(), w("div", Dt, [i(u(fe), {
670
+ }, null, 8, ["modelValue", "placeholder"])])]), K.value ? (m(), w("div", Dt, [i(u(fe), {
671
671
  ref_key: "attributeFilterRef",
672
672
  ref: q,
673
673
  attributes: le.value,
674
674
  modelValue: N.value,
675
675
  "onUpdate:modelValue": e[7] || (e[7] = (o) => N.value = o)
676
676
  }, null, 8, ["attributes", "modelValue"])])) : I("", !0), i(Xe, null, {
677
- default: O(() => [i(G, {
677
+ default: C(() => [i(G, {
678
678
  "column-defs": xe.value,
679
679
  "column-visibility": De.value,
680
680
  loading: u(h).checkMenuIsLoading(),
@@ -1,10 +1,10 @@
1
- import { defineComponent as P, useModel as J, computed as V, resolveComponent as m, createBlock as C, openBlock as c, unref as e, ref as I, watch as O, onMounted as j, createElementBlock as S, Fragment as h, renderSlot as H, createVNode as i, withCtx as s, createElementVNode as x, renderList as K, createCommentVNode as w, toDisplayString as F, createTextVNode as Q } from "vue";
1
+ import { defineComponent as P, useModel as H, computed as V, resolveComponent as m, createBlock as C, openBlock as c, unref as e, ref as I, watch as O, onMounted as j, createElementBlock as S, Fragment as h, renderSlot as J, createVNode as i, withCtx as s, createElementVNode as x, renderList as K, createCommentVNode as w, toDisplayString as F, createTextVNode as Q } from "vue";
2
2
  import { useI18n as T } from "@feedmepos/mf-common";
3
- import { u as R } from "./priceTier-BtHmZYAn.js";
3
+ import { u as R } from "./priceTier-Bs3jL4nk.js";
4
4
  import { useDialog as W, components as X, FmButtonVariant as Y, FmButtonColorThemeVariant as M } from "@feedmepos/ui-library";
5
- import { L as Z } from "./LinkProductSideSheet-Cyb0Eex4.js";
5
+ import { L as Z } from "./LinkProductSideSheet-CWMNlFCF.js";
6
6
  import { c as z } from "./check-C9mY6LiX.js";
7
- import { u as ee, J as B, ai as le } from "./menu-CAzTKH28.js";
7
+ import { u as ee, H as B, ai as le } from "./menu-DYMiA6Oc.js";
8
8
  import { c as oe } from "./string-DpfFixWH.js";
9
9
  const fe = /* @__PURE__ */ P({
10
10
  __name: "LinkPriceTier",
@@ -14,7 +14,7 @@ const fe = /* @__PURE__ */ P({
14
14
  },
15
15
  emits: ["update:modelValue"],
16
16
  setup(b) {
17
- const { t: g } = T(), n = J(b, "modelValue"), _ = R(), a = V(() => _.priceTiers.value.map((d) => ({
17
+ const { t: g } = T(), n = H(b, "modelValue"), _ = R(), a = V(() => _.priceTiers.value.map((d) => ({
18
18
  label: d.key,
19
19
  value: d.key
20
20
  })));
@@ -101,7 +101,7 @@ const fe = /* @__PURE__ */ P({
101
101
  }), (o, u) => {
102
102
  const $ = m("fm-icon"), q = m("fm-stepper-field"), E = m("fm-radio"), A = m("fm-radio-group"), y = m("fm-button"), G = m("fm-dialog");
103
103
  return c(), S(h, null, [
104
- H(o.$slots, "default", { trigger: p }),
104
+ J(o.$slots, "default", { trigger: p }),
105
105
  i(G, {
106
106
  modelValue: r.value,
107
107
  "onUpdate:modelValue": u[3] || (u[3] = (v) => r.value = v),