@feedmepos/mf-menu 0.31.33-beta.8 → 0.31.33-prod

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/{App-BAMi-a9P.js → App-Ckk1s5Yi.js} +20 -20
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BWgnvXjy.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BgCJJKVy.js} +2 -2
  3. package/dist/{Catalog-DiPY42vz.js → Catalog-CjVIJjh6.js} +6 -6
  4. package/dist/{Category-B9jnFDvG.js → Category-BAD0RzNU.js} +4 -4
  5. package/dist/{Category-ClrACB2e.js → Category-CEheZjjx.js} +5 -5
  6. package/dist/{CookingGuide-1553FWRH.js → CookingGuide-kaK5dxiM.js} +3 -3
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DWNx15iJ.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bd4IBeSK.js} +1 -1
  8. package/dist/{Group-l_-qZSyF.js → Group-Bl0YTPgr.js} +1 -1
  9. package/dist/{Group-DLahX8qi.js → Group-Bvk50gsC.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-PNpEgEGB.js → Group.vue_vue_type_script_setup_true_lang-C9quQw7f.js} +38 -36
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DoVyIdTN.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Cf1_4Srx.js} +11 -8
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DSspLK4i.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-oUoUXguS.js} +316 -316
  13. package/dist/{Ingredient-SsBtwYjB.js → Ingredient-CY15AYC2.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DqnVkfjW.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C_ZH0ga3.js} +1052 -1052
  15. package/dist/LinkProductSideSheet-CCW73uQb.js +297 -0
  16. package/dist/{MenuSetting-D28a3uD4.js → MenuSetting-DCIebynX.js} +4 -4
  17. package/dist/{PrintRoute-BdlT0DDr.js → PrintRoute-DkksjGj8.js} +3 -3
  18. package/dist/{Product-s5Q4wV8i.js → Product-DQ8dRTJW.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-C6iDgQEU.js → Product.vue_vue_type_script_setup_true_lang-B61A77iy.js} +19 -16
  20. package/dist/{ProductInternalTools-DjSkvzw2.js → ProductInternalTools-BtAJLyib.js} +6 -6
  21. package/dist/{Products-B3tF_gCa.js → Products-KtdrJG8K.js} +11 -11
  22. package/dist/{Publish-G4bwUpme.js → Publish-D3uc61V1.js} +3 -3
  23. package/dist/{Recipe-BxgHUzb5.js → Recipe-BLzezqGH.js} +4 -4
  24. package/dist/{Scheduler-DJSKWS-9.js → Scheduler-BLn2Uy9H.js} +3 -3
  25. package/dist/{ServingSequence-_cmuGKlV.js → ServingSequence-BtCpa6km.js} +3 -3
  26. package/dist/{Setting-Dx7ycxAn.js → Setting-zO16rQvb.js} +5 -5
  27. package/dist/{Subcategory-25AzJQYt.js → Subcategory-BmNMReGL.js} +4 -4
  28. package/dist/{Takeaway-Bmm9d5PO.js → Takeaway-DIf1hfIp.js} +1 -1
  29. package/dist/{Takeaway-CcFK-Y2z.js → Takeaway-Dt0oedp_.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bl5OAG3c.js → Takeaway.vue_vue_type_script_setup_true_lang-CnB08FG9.js} +5 -5
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-B3-ypwE7.js → Thumbnail.vue_vue_type_script_setup_true_lang-Cox2bpkp.js} +4 -4
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D2gzS8Q_.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-IYC4KukD.js} +15 -15
  33. package/dist/{Unit-Cs1EOuyg.js → Unit-COwjhka0.js} +2 -2
  34. package/dist/{Variant-BTCkw4RC.js → Variant-BY1OZuk8.js} +3 -3
  35. package/dist/{_id_-C9b2WHzy.js → _id_-CNE0nt2C.js} +10 -10
  36. package/dist/{app-BhI1mPRh.js → app-BYTfYZ_L.js} +1 -1
  37. package/dist/{app-CU2frfPB.js → app-d86JiqNI.js} +24 -24
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/assets/{linked-status-r8YcmOs7.js → linked-status-ClGks19H.js} +2 -2
  41. package/dist/assets/{override-menu-CDLCS1zK.js → override-menu-DDzUoiJB.js} +2 -2
  42. package/dist/assets/{validate-menu-B-FxrVmM.js → validate-menu-CvdVVGBq.js} +8 -8
  43. package/dist/{catalog-BudDGPc1.js → catalog-D5llyR6I.js} +1 -1
  44. package/dist/{catalogSetting-Bk1QEBg5.js → catalogSetting-C5DEsGFp.js} +1 -1
  45. package/dist/{category-UDpJb7Yh.js → category-D_nwrQ4v.js} +1 -1
  46. package/dist/{currency-BQIQArxm.js → currency-Bs7DX91b.js} +1 -1
  47. package/dist/{dayjs.min-D0EjAkx4.js → dayjs.min-CQ8q2Qks.js} +1 -1
  48. package/dist/{index-B_V5s58T.js → index-BImqd4SS.js} +1 -1
  49. package/dist/{index-DRuDRGm-.js → index-D7yR1j9C.js} +49 -47
  50. package/dist/{index-CirrSmpA.js → index-DSbd1qYp.js} +3 -3
  51. package/dist/{index-Dy-u7imh.js → index-QioLRJ5c.js} +3 -3
  52. package/dist/{item-C45Oe5Un.js → item-DJvTdIna.js} +16 -16
  53. package/dist/{jszip.min-BR_8QNuk.js → jszip.min-jJP0SQy6.js} +246 -246
  54. package/dist/{menu-DTlhFcnq.js → menu-BHr0A_kn.js} +145 -145
  55. package/dist/{menu-D52oU1sw.js → menu-CvdQTq54.js} +1 -1
  56. package/dist/{menuV2-DQtEtGVV.js → menuV2-C3Ade0y6.js} +41 -41
  57. package/dist/mf-menu.css +1 -1
  58. package/dist/{priceTier-CDyccedV.js → priceTier-BAw2NlRW.js} +1 -1
  59. package/dist/{scheduler-DHjrtU8G.js → scheduler-DuUrXPi7.js} +3 -3
  60. package/dist/{subcategory-0ajMWsb2.js → subcategory-C5Ok0bI2.js} +2 -2
  61. package/dist/{toExcel-BNKDwOzQ.js → toExcel-wKTHcPda.js} +2 -2
  62. package/dist/{unit-CBe6cpyB.js → unit-D78XXPbI.js} +3 -3
  63. package/package.json +2 -2
  64. package/dist/LinkProductSideSheet-CncbzDh3.js +0 -335
  65. package/dist/apps/mf-menu/src/composable/customAttributes.d.ts +0 -96
  66. /package/dist/{LinkProductSideSheet.vue_vue_type_style_index_0_scoped_7d7fe73f_lang-DvG3mOom.js → LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js} +0 -0
  67. /package/dist/{apps/mf-menu/src/components → packages/shared/src/components/info}/CustomAttributeChip.vue.d.ts +0 -0
@@ -1,22 +1,21 @@
1
1
  import { defineComponent as X, computed as g, resolveComponent as M, createBlock as U, openBlock as m, withCtx as x, createElementBlock as C, Fragment as T, renderList as oe, createElementVNode as p, normalizeClass as W, toDisplayString as G, createVNode as s, ref as E, renderSlot as Ne, unref as r, createCommentVNode as I, watch as Re, h as de, mergeProps as Ee, createSlots as Se, withModifiers as Ie, isRef as Q, nextTick as fe } from "vue";
2
- import { I as H, u as ne, O as Ue, D as Te, G as v, B as $e, A as Ye, J as Le } from "./menu-DTlhFcnq.js";
2
+ import { I as H, u as ne, O as Ue, D as Te, G as v, B as $e, A as Ye, J as Le } from "./menu-BHr0A_kn.js";
3
3
  import { d as ze } from "./vuedraggable-CK8z7qA8.js";
4
- import { b as ve, H as je } from "./LinkProductSideSheet.vue_vue_type_style_index_0_scoped_7d7fe73f_lang-DvG3mOom.js";
5
- import { useI18n as le, useCoreStore as Be } from "@feedmepos/mf-common";
6
- import { useBreakpoints as ye, components as _e, useSnackbar as Ke, useDialog as He, FmButtonVariant as qe } from "@feedmepos/ui-library";
7
- import { _ as Je } from "./app-CU2frfPB.js";
8
- import { _ as Qe, a as We } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
9
- import { c as Xe } from "./object-DVUNCr7w.js";
10
- import { _ as Ze, a as et } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-DWNx15iJ.js";
11
- import { u as tt } from "./discardConfirm-BHni0LNu.js";
12
- import { _ as ot } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BWgnvXjy.js";
13
- import { c as nt } from "./check-C9mY6LiX.js";
14
- import { _ as lt } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
15
- import { M as ge, x as at, y as rt, A as ut, e as st, j as it, r as ct } from "./item-C45Oe5Un.js";
16
- import { u as mt } from "./LinkProductSideSheet-CncbzDh3.js";
4
+ import { b as ve, H as je } from "./LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js";
5
+ import { useI18n as le, useCoreStore as Be, useCustomAttributes as Ke } from "@feedmepos/mf-common";
6
+ import { useBreakpoints as ye, components as _e, useSnackbar as He, useDialog as qe, FmButtonVariant as Je } from "@feedmepos/ui-library";
7
+ import { _ as Qe, a as We } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bd4IBeSK.js";
8
+ import { _ as Xe } from "./app-d86JiqNI.js";
9
+ import { _ as Ze, a as et } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
10
+ import { c as tt } from "./object-DVUNCr7w.js";
11
+ import { u as ot } from "./discardConfirm-BHni0LNu.js";
12
+ import { _ as nt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BgCJJKVy.js";
13
+ import { c as lt } from "./check-C9mY6LiX.js";
14
+ import { _ as at } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
15
+ import { M as ge, x as rt, y as ut, A as st, e as it, j as ct, r as mt } from "./item-DJvTdIna.js";
17
16
  import { u as pt } from "./search-BAPEUu1R.js";
18
- import { C as dt } from "./catalog-BudDGPc1.js";
19
- import { c as ft } from "./menuV2-DQtEtGVV.js";
17
+ import { C as dt } from "./catalog-D5llyR6I.js";
18
+ import { c as ft } from "./menuV2-C3Ade0y6.js";
20
19
  const vt = /* @__PURE__ */ X({
21
20
  __name: "ResponsiveContextMenu",
22
21
  props: {
@@ -26,9 +25,9 @@ const vt = /* @__PURE__ */ X({
26
25
  const S = ye(), u = g(() => S.breakpoints.value.xs);
27
26
  return (R, V) => {
28
27
  const h = M("FmButton"), f = M("FmMenuItem"), y = M("FmMenu");
29
- return u.value ? (m(), U(Qe, { key: 0 }, {
28
+ return u.value ? (m(), U(Ze, { key: 0 }, {
30
29
  default: x(() => [
31
- (m(!0), C(T, null, oe(R.items, ({ icon: k, label: D, disabled: w, itemClass: A, onClick: _ }) => (m(), U(We, {
30
+ (m(!0), C(T, null, oe(R.items, ({ icon: k, label: D, disabled: w, itemClass: A, onClick: _ }) => (m(), U(et, {
32
31
  key: D,
33
32
  icon: k,
34
33
  label: D,
@@ -85,13 +84,13 @@ const vt = /* @__PURE__ */ X({
85
84
  },
86
85
  emits: ["apply:product"],
87
86
  setup(L, { emit: S }) {
88
- const u = L, R = S, { t: V } = le(), h = u.initialValue.map((A) => ({ _id: A })), f = E(H.clone(h)), y = tt(
87
+ const u = L, R = S, { t: V } = le(), h = u.initialValue.map((A) => ({ _id: A })), f = E(H.clone(h)), y = ot(
89
88
  () => !H.isEqual(f.value, h),
90
89
  () => {
91
90
  k.value = !1;
92
91
  }
93
92
  ), k = E(!1), D = (A) => {
94
- nt.isBoolean(A) ? k.value = A : k.value = !k.value, k.value && (f.value = u.initialValue.map((_) => ({ _id: _ })));
93
+ lt.isBoolean(A) ? k.value = A : k.value = !k.value, k.value && (f.value = u.initialValue.map((_) => ({ _id: _ })));
95
94
  }, w = ne();
96
95
  return (A, _) => {
97
96
  const b = M("fm-button"), q = M("fm-side-sheet");
@@ -131,7 +130,7 @@ const vt = /* @__PURE__ */ X({
131
130
  ])
132
131
  ]),
133
132
  default: x(() => [
134
- s(ot, {
133
+ s(nt, {
135
134
  overrides: f.value,
136
135
  "onUpdate:overrides": _[0] || (_[0] = (N) => f.value = N),
137
136
  "categorized-items": r(w).categorizedItems,
@@ -203,20 +202,23 @@ const vt = /* @__PURE__ */ X({
203
202
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
204
203
  }, Et = {
205
204
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
206
- }, to = /* @__PURE__ */ X({
205
+ }, eo = /* @__PURE__ */ X({
207
206
  __name: "Group",
208
207
  emits: ["update:count"],
209
208
  setup(L, {
210
209
  emit: S
211
210
  }) {
212
- const u = ne(), R = Be(), V = Ke(), h = Ue(Te(V)), f = He(), y = g(() => u.rules.group), k = g(() => new ge(u, h.updateMenu, f)), D = g(() => k.value.mapGroups(u.groups, !1)), {
211
+ const u = ne(), R = Be(), V = He(), h = Ue(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)), {
213
212
  searchKey: w,
214
213
  filter: A
215
214
  } = pt(), _ = E(!1), b = E(null), {
216
215
  attributes: q,
217
216
  filterRule: N,
218
217
  mongoQuery: ae
219
- } = mt(D, "group"), z = g(() => {
218
+ } = Ke({
219
+ valueSource: D,
220
+ entity: "group"
221
+ }), z = g(() => {
220
222
  const t = (a) => A([a.name, ...Object.values(a.items).flatMap((l) => `${l.code} ${l.name} ${Ye.Dinero.fromFdoDinero(l.price).toFormat()}`), a.type]), e = (a) => !a.customAttributes && !ae.value ? !0 : je(a.customAttributes ?? {}, ae.value);
221
223
  return D.value.filter((a) => t(a) && e(a)).filter((a) => !b.value || a.type === b.value);
222
224
  }), be = S;
@@ -294,7 +296,7 @@ const vt = /* @__PURE__ */ X({
294
296
  }
295
297
  }).onPrimary(() => k.value.duplicateGroup(t));
296
298
  }
297
- const ee = g(() => u.currentCatalog), j = g(() => u.currentScheduler), B = g(() => new dt(ee.value, u, h.updateMenu, f)), te = g(() => new at(j.value, u, h.updateMenu, f)), we = (t) => {
299
+ const ee = g(() => u.currentCatalog), j = g(() => u.currentScheduler), B = g(() => new dt(ee.value, u, h.updateMenu, f)), te = g(() => new rt(j.value, u, h.updateMenu, f)), we = (t) => {
298
300
  let e = t;
299
301
  function a(l) {
300
302
  const F = u.state.menu.modules.group.find((o) => o._id === l._id), d = (l.items ?? []).reduce((o, O) => (o[O._id] = [...o[O._id] || [], O.combinationKey || ""], o), {}), Y = (F.items ?? []).filter((o) => {
@@ -333,7 +335,7 @@ const vt = /* @__PURE__ */ X({
333
335
  primaryActions: {
334
336
  text: n("menu.common.actions.delete"),
335
337
  close: !0,
336
- variant: qe.Destructive
338
+ variant: Je.Destructive
337
339
  },
338
340
  secondaryActions: {
339
341
  text: n("menu.common.actions.cancel"),
@@ -347,7 +349,7 @@ const vt = /* @__PURE__ */ X({
347
349
  return de(_t, {
348
350
  key: t._id,
349
351
  initialValue: t.itemsLinked,
350
- group: st(t),
352
+ group: it(t),
351
353
  editable: y.value.applyProduct,
352
354
  "onApply:product": async (a) => {
353
355
  var l;
@@ -439,7 +441,7 @@ const vt = /* @__PURE__ */ X({
439
441
  size: 140,
440
442
  cell: (t) => {
441
443
  const e = t.row.original;
442
- return de(Ze, {
444
+ return de(Qe, {
443
445
  // FIXME:FdoCustomAttribute under "@feedmepos/custom-attributes" is not compatible
444
446
  // with FdoCustomAttribute from "@feedmepos/core", ! mark should be removed when fixed
445
447
  customAttributes: e.customAttributes
@@ -483,7 +485,7 @@ const vt = /* @__PURE__ */ X({
483
485
  tagging: ((t = R.groupAttributeSettings) == null ? void 0 : t.value.length) > 0
484
486
  };
485
487
  }), Ae = async (t) => {
486
- const e = it(t), a = e.group, l = ct(a, re(t));
488
+ const e = ct(t), a = e.group, l = mt(a, re(t));
487
489
  if (c.value)
488
490
  ee.value ? (j.value ? B.value.overrideCatalogSchedulerGroups([l], j.value._id) : B.value.overrideCatalogGroups([l]), await B.value.update()) : (te.value.overrideSchedulerGroups([l]), await te.value.update());
489
491
  else {
@@ -501,7 +503,7 @@ const vt = /* @__PURE__ */ X({
501
503
  }
502
504
  }, $ = E(null), ce = E(null), me = async (t) => {
503
505
  var e;
504
- $.value = Xe(t), await fe(), (e = ce.value) == null || e.trigger(!0);
506
+ $.value = tt(t), await fe(), (e = ce.value) == null || e.trigger(!0);
505
507
  };
506
508
  function Fe(t) {
507
509
  me(t.original);
@@ -515,7 +517,7 @@ const vt = /* @__PURE__ */ X({
515
517
  async function Ve() {
516
518
  K.value = !K.value, K.value && (await fe(), J.value && J.value.toggleProperty(!0));
517
519
  }
518
- const pe = () => y.value.multiScheduler ? s(et, null, {
520
+ const pe = () => y.value.multiScheduler ? s(We, null, {
519
521
  append: () => Pe.value ? s("div", {
520
522
  class: "pl-8 flex items-center justify-center border-l border-fm-color-neutral-gray-200",
521
523
  onClick: (t) => {
@@ -530,7 +532,7 @@ const vt = /* @__PURE__ */ X({
530
532
  }) : null;
531
533
  return (t, e) => {
532
534
  const a = M("fm-button"), l = M("fm-chip"), i = M("fm-menu-item"), F = M("fm-menu"), d = M("fm-search"), P = M("fm-table"), Y = M("fm-bottom-sheet");
533
- return m(), C(T, null, [$.value ? (m(), U(rt, Ee({
535
+ return m(), C(T, null, [$.value ? (m(), U(ut, Ee({
534
536
  ref_key: "groupManagerFormRef",
535
537
  ref: ce,
536
538
  key: $.value._id
@@ -540,14 +542,14 @@ const vt = /* @__PURE__ */ X({
540
542
  group: $.value,
541
543
  "onUpdate:group": e[0] || (e[0] = (o) => $.value = o),
542
544
  "onSubmit:group": e[1] || (e[1] = (o) => Ae(o))
543
- }), null, 16, ["title", "group"])) : I("", !0), D.value.length === 0 ? (m(), C("div", wt, [s(lt, {
545
+ }), null, 16, ["title", "group"])) : I("", !0), D.value.length === 0 ? (m(), C("div", wt, [s(at, {
544
546
  subtitle: r(n)("menu.group.empty.subtitle"),
545
547
  title: r(n)("menu.group.empty.title")
546
548
  }, Se({
547
549
  _: 2
548
550
  }, [y.value.create ? {
549
551
  name: "action",
550
- fn: x(() => [s(r(ut), null, {
552
+ fn: x(() => [s(r(st), null, {
551
553
  default: x(({
552
554
  trigger: o
553
555
  }) => [s(a, {
@@ -659,7 +661,7 @@ const vt = /* @__PURE__ */ X({
659
661
  attributes: r(q),
660
662
  modelValue: r(N),
661
663
  "onUpdate:modelValue": e[7] || (e[7] = (o) => Q(N) ? N.value = o : null)
662
- }, null, 8, ["attributes", "modelValue"])])) : I("", !0), s(Je, null, {
664
+ }, null, 8, ["attributes", "modelValue"])])) : I("", !0), s(Xe, null, {
663
665
  default: x(() => [s(P, {
664
666
  "column-defs": xe.value,
665
667
  "column-visibility": De.value,
@@ -680,5 +682,5 @@ const vt = /* @__PURE__ */ X({
680
682
  }
681
683
  });
682
684
  export {
683
- to as _
685
+ eo as _
684
686
  };
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as B, useModel as G, computed as A, resolveComponent as p, createBlock as S, openBlock as v, ref as I, watch as H, withCtx as _, createElementBlock as C, createElementVNode as M, Fragment as z, renderList as Y, createVNode as u, unref as e, createCommentVNode as U, withModifiers as q, onMounted as Z, renderSlot as ee, toDisplayString as D, createTextVNode as le } from "vue";
2
- import { useI18n as L, useCoreStore as te } from "@feedmepos/mf-common";
3
- import { E as x, i as ae, c as h, u as oe, a as J, L as re } from "./LinkProductSideSheet-CncbzDh3.js";
4
- import { u as w } from "./priceTier-CDyccedV.js";
5
- import { x as ue, N as ne, b as ie } from "./LinkProductSideSheet.vue_vue_type_style_index_0_scoped_7d7fe73f_lang-DvG3mOom.js";
2
+ import { useI18n as L, EMPTY_RULE as x, isEmptyMongoQuery as te, isEmptyRule as h, useCustomAttributes as ae, useCoreStore as oe } from "@feedmepos/mf-common";
3
+ import { a as J, L as re } from "./LinkProductSideSheet-CCW73uQb.js";
4
+ import { u as w } from "./priceTier-BAw2NlRW.js";
5
+ import { x as ue, N as ne, b as ie } from "./LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js";
6
6
  import { FmButtonVariant as K, useDialog as se, components as me, FmButtonColorThemeVariant as j } from "@feedmepos/ui-library";
7
7
  import { _ as de } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
8
- import { L as y } from "./catalogSetting-Bk1QEBg5.js";
8
+ import { L as y } from "./catalogSetting-C5DEsGFp.js";
9
9
  import { c as O } from "./check-C9mY6LiX.js";
10
- import { u as pe, H as Q, aj as ce } from "./menu-DTlhFcnq.js";
10
+ import { u as pe, H as Q, aj as ce } from "./menu-BHr0A_kn.js";
11
11
  import { c as ve } from "./string-DpfFixWH.js";
12
12
  const fe = /* @__PURE__ */ B({
13
13
  __name: "LinkPriceTier",
@@ -49,7 +49,7 @@ const fe = /* @__PURE__ */ B({
49
49
  t: T
50
50
  } = L(), o = G(k, "modelValue"), r = I((V = o.value) == null ? void 0 : V.map((t) => ({
51
51
  ...t,
52
- restaurantAttributes: ae(t.restaurantAttributes) ? x : ue.build(t.restaurantAttributes)
52
+ restaurantAttributes: te(t.restaurantAttributes) ? x : ue.build(t.restaurantAttributes)
53
53
  })));
54
54
  H(r, (t) => {
55
55
  o.value = t == null ? void 0 : t.map((n) => ({
@@ -61,7 +61,10 @@ const fe = /* @__PURE__ */ B({
61
61
  });
62
62
  const a = w(), {
63
63
  attributes: b
64
- } = oe(te().restaurants, "restaurant");
64
+ } = ae({
65
+ valueSource: oe().restaurants,
66
+ entity: "restaurant"
67
+ });
65
68
  function f(t, n) {
66
69
  r.value && r.value[t] && (h(n) ? r.value[t].restaurantAttributes = x : r.value[t].restaurantAttributes = n);
67
70
  }