@feedmepos/mf-menu 0.32.3-beta.1 → 0.32.4-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 (84) hide show
  1. package/dist/{App-DJBZBaaC.js → App-5YVGeojR.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-c9SlmPp2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DhoHYIHW.js} +20 -20
  3. package/dist/{Catalog-Ct9jk3A_.js → Catalog-BTNv5n_D.js} +18 -18
  4. package/dist/{Category-Cf5KfKdv.js → Category-BE-kkKcL.js} +22 -23
  5. package/dist/{Category-CTTAtG31.js → Category-DuLhbRxE.js} +21 -22
  6. package/dist/{CookingGuide-BaNzajgf.js → CookingGuide-JtE8QMC6.js} +92 -93
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CRodr6tr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DdJ-o_PW.js} +1 -1
  8. package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +26 -0
  9. package/dist/{Group-BfRPCCbK.js → Group-BP-j3K6J.js} +1 -1
  10. package/dist/{Group-BJep-xq-.js → Group-DhS9e2E3.js} +3 -3
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-CoCq0edM.js → Group.vue_vue_type_script_setup_true_lang-DXUQrXXI.js} +33 -34
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DviXfima.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXzz4ClS.js} +24 -23
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DSrxcKIK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Bpt-8tbe.js} +11525 -11504
  14. package/dist/{Ingredient-BnzW69zW.js → Ingredient-NSl0x-0T.js} +5 -6
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-D8m1pyLp.js → InventoryBinding.vue_vue_type_script_setup_true_lang-ByrNVvzs.js} +2 -2
  16. package/dist/LinkProductSideSheet-B_R_2iH6.js +692 -0
  17. package/dist/MenuSetting-C7cpv4S3.js +580 -0
  18. package/dist/{PrintRoute-CLsiDIkn.js → PrintRoute-DmP7KH58.js} +10 -11
  19. package/dist/{Product-DHE0XtX1.js → Product-B6gwN4g0.js} +1 -1
  20. package/dist/{Product.vue_vue_type_script_setup_true_lang-CVR8j-XT.js → Product.vue_vue_type_script_setup_true_lang-BKhn8Txf.js} +15 -16
  21. package/dist/{ProductInternalTools-BQOXHzYp.js → ProductInternalTools-D5xIh2j2.js} +5 -5
  22. package/dist/Products-Cxx8pJGK.js +692 -0
  23. package/dist/{Publish-BlEcoJaI.js → Publish-ZCzRBB5V.js} +21 -22
  24. package/dist/{Recipe-CkcNxf7p.js → Recipe-DcHdr_5J.js} +9 -10
  25. package/dist/RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js +3282 -0
  26. package/dist/{Scheduler-DV0s_qkV.js → Scheduler-ZhDXk5gQ.js} +18 -19
  27. package/dist/{ServingSequence-CFd8Nwws.js → ServingSequence-DcfMbHjn.js} +15 -16
  28. package/dist/{Setting-B55IsZCX.js → Setting-fqf_sOIc.js} +45 -44
  29. package/dist/{Subcategory-BXCcVdR3.js → Subcategory-BidmfEOK.js} +18 -19
  30. package/dist/{Takeaway-BDvcwBHP.js → Takeaway-C83SKEvl.js} +1 -1
  31. package/dist/{Takeaway--U_lsgYi.js → Takeaway-p6thRg74.js} +4 -4
  32. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DaYk2xdF.js → Takeaway.vue_vue_type_script_setup_true_lang-Dq6CjXCv.js} +48 -49
  33. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-VBpTghy9.js → Thumbnail.vue_vue_type_script_setup_true_lang-CjLOy2k9.js} +10 -10
  34. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-IBM6rC5M.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CWdsp9eo.js} +17 -16
  35. package/dist/{Unit-DkvTsQWA.js → Unit-CKIaBxVE.js} +7 -8
  36. package/dist/{Variant-tte76SbR.js → Variant-CE21vKC4.js} +38 -39
  37. package/dist/{_id_-AVMi3j91.js → _id_-BhWpg9Kj.js} +10 -10
  38. package/dist/{app-0s3jY-aE.js → app-BkcVM9nE.js} +1 -1
  39. package/dist/app-CEIhTuYG.js +363 -0
  40. package/dist/app.js +1 -1
  41. package/dist/apps/mf-menu/src/app.d.ts +250 -0
  42. package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleForm.vue.d.ts +146 -0
  43. package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleView.vue.d.ts +158 -0
  44. package/dist/apps/mf-menu/src/components/rule_group/RuleCondition.vue.d.ts +103 -0
  45. package/dist/apps/mf-menu/src/components/rule_group/RuleConditionListView.vue.d.ts +54 -0
  46. package/dist/apps/mf-menu/src/components/rule_group/RuleConditionSelector.vue.d.ts +50 -0
  47. package/dist/apps/mf-menu/src/components/rule_group/RuleForm.vue.d.ts +117 -0
  48. package/dist/apps/mf-menu/src/components/rule_group/RuleView.vue.d.ts +141 -0
  49. package/dist/apps/mf-menu/src/composable/attributes.d.ts +10 -0
  50. package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +2 -3
  51. package/dist/apps/mf-menu/src/helper/menuExport.d.ts +3 -1
  52. package/dist/apps/mf-menu/src/helper/menuImport.d.ts +3 -2
  53. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  54. package/dist/assets/{linked-status-DEGoFflv.js → linked-status-CStQ46Ze.js} +2 -2
  55. package/dist/assets/{override-menu-CZe07SCm.js → override-menu-DHTQAnIJ.js} +2 -2
  56. package/dist/assets/{validate-menu-BnHfAUEN.js → validate-menu-C_kUDOhd.js} +2 -2
  57. package/dist/{catalog-YE_knev1.js → catalog-WBrPmQwl.js} +1 -1
  58. package/dist/{catalogSetting-CeVHRHOo.js → catalogSetting-BAry7I_V.js} +1 -1
  59. package/dist/{category-Dph1iWr8.js → category-bW36h16p.js} +1 -1
  60. package/dist/{currency-Byslycrk.js → currency-vVxHIVBs.js} +1 -1
  61. package/dist/{index-C0T32LLy.js → index-Ba5-dCQA.js} +1 -1
  62. package/dist/{index-CUTY6cCm.js → index-C0EV3eSc.js} +20 -20
  63. package/dist/{index-DycbrG1l.js → index-XZlEgR2k.js} +8 -7
  64. package/dist/{index-Ddt_Nw9F.js → index-pxnQHVnU.js} +4 -4
  65. package/dist/{menu-tHhzkxDL.js → index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js} +18612 -18558
  66. package/dist/item-mFv0bFSn.js +7648 -0
  67. package/dist/{iteration-CcobmcUk.js → iteration-CaFp1Rtz.js} +3 -3
  68. package/dist/{jszip.min-DQrtMdm5.js → jszip.min-BkSmQKmf.js} +353 -353
  69. package/dist/{menu-DkRrqTVY.js → menu-ud-tWfIM.js} +1 -1
  70. package/dist/{menuV2-DJevKCqE.js → menuV2-xUMdUls0.js} +65 -65
  71. package/dist/mf-menu.css +1 -1
  72. package/dist/{priceTier-Bkogs1qc.js → priceTier-BVTab4k1.js} +1 -1
  73. package/dist/{scheduler-BGQ_lxUL.js → scheduler-CAt7sELO.js} +13 -12
  74. package/dist/{subcategory-DvxvLe8X.js → subcategory-DMZuedoM.js} +2 -2
  75. package/dist/{toExcel-DQ4jlZPI.js → toExcel-CczXOnKy.js} +2 -2
  76. package/dist/{unit-DoxpI5dG.js → unit-CbD3sYqC.js} +2 -2
  77. package/package.json +4 -3
  78. package/dist/LinkProductSideSheet-C4yBnJSM.js +0 -361
  79. package/dist/MenuSetting-Fxl8F6N5.js +0 -618
  80. package/dist/Products-BLvwrz9P.js +0 -689
  81. package/dist/app-CjfWVFOg.js +0 -363
  82. package/dist/customAttributes-DvbvCfOd.js +0 -180
  83. package/dist/index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js +0 -57
  84. package/dist/item-x1WWjISR.js +0 -9175
@@ -1,21 +1,20 @@
1
1
  import { defineComponent as X, computed as g, resolveComponent as M, createBlock as T, openBlock as m, withCtx as O, createElementBlock as k, Fragment as $, 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 Ie, isRef as Q, nextTick as fe } from "vue";
2
- import { I as H, u as ne, O as Ue, D as Te, z as v, B as $e, A as Ye, J as Le } from "./menu-tHhzkxDL.js";
3
- import { d as ze } from "./vuedraggable-DnBIRDMr.js";
4
- import { b as ve, H as Be } from "./app-CzXxFrl1.js";
5
- import { useI18n as le, useCoreStore as je, 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-CRodr6tr.js";
8
- import { _ as Xe } from "./app-CjfWVFOg.js";
9
- import { _ as Ze, a as et } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.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-c9SlmPp2.js";
13
- import { c as lt } from "./check-C9mY6LiX.js";
14
- import { _ as at } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
15
- import { M as ge, v as rt, w as ut, A as st, e as it, h as ct, r as mt } from "./item-x1WWjISR.js";
2
+ import { I as H, u as ne, O as Ue, D as Te, z as v, B as $e, a3 as Ye, A as Le, J as ze } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
3
+ import { d as Be } from "./vuedraggable-DnBIRDMr.js";
4
+ import { b as ve, H as je } from "./app-CzXxFrl1.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 Je, FmButtonVariant as Qe } from "@feedmepos/ui-library";
7
+ import { _ as We, a as Xe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-DdJ-o_PW.js";
8
+ import { _ as Ze } from "./app-CEIhTuYG.js";
9
+ import { _ as et, a as tt } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js";
10
+ import { c as ot } from "./object-DVUNCr7w.js";
11
+ import { u as nt } from "./discardConfirm-BHni0LNu.js";
12
+ import { _ as lt } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DhoHYIHW.js";
13
+ import { c as at } from "./check-C9mY6LiX.js";
14
+ import { M as ge, v as rt, w as ut, A as st, e as it, h as ct, r as mt } from "./item-mFv0bFSn.js";
16
15
  import { u as dt } from "./search-BAPEUu1R.js";
17
- import { C as pt } from "./catalog-YE_knev1.js";
18
- import { c as ft } from "./menuV2-DJevKCqE.js";
16
+ import { C as pt } from "./catalog-WBrPmQwl.js";
17
+ import { c as ft } from "./menuV2-xUMdUls0.js";
19
18
  const vt = /* @__PURE__ */ X({
20
19
  __name: "ResponsiveContextMenu",
21
20
  props: {
@@ -25,9 +24,9 @@ const vt = /* @__PURE__ */ X({
25
24
  const S = ye(), u = g(() => S.breakpoints.value.xs);
26
25
  return (I, N) => {
27
26
  const w = M("FmButton"), f = M("FmMenuItem"), y = M("FmMenu");
28
- return u.value ? (m(), T(Ze, { key: 0 }, {
27
+ return u.value ? (m(), T(et, { key: 0 }, {
29
28
  default: O(() => [
30
- (m(!0), k($, null, oe(V.items, ({ icon: h, label: D, disabled: x, itemClass: A, onClick: _ }) => (m(), T(et, {
29
+ (m(!0), k($, null, oe(V.items, ({ icon: h, label: D, disabled: x, itemClass: A, onClick: _ }) => (m(), T(tt, {
31
30
  key: D,
32
31
  icon: h,
33
32
  label: D,
@@ -84,13 +83,13 @@ const vt = /* @__PURE__ */ X({
84
83
  },
85
84
  emits: ["apply:product"],
86
85
  setup(V, { emit: S }) {
87
- const u = V, I = S, { t: N } = le(), w = u.initialValue.map((A) => ({ _id: A })), f = E(H.clone(w)), y = ot(
86
+ const u = V, I = S, { t: N } = le(), w = u.initialValue.map((A) => ({ _id: A })), f = E(H.clone(w)), y = nt(
88
87
  () => !H.isEqual(f.value, w),
89
88
  () => {
90
89
  h.value = !1;
91
90
  }
92
91
  ), h = E(!1), D = (A) => {
93
- lt.isBoolean(A) ? h.value = A : h.value = !h.value, h.value && (f.value = u.initialValue.map((_) => ({ _id: _ })));
92
+ at.isBoolean(A) ? h.value = A : h.value = !h.value, h.value && (f.value = u.initialValue.map((_) => ({ _id: _ })));
94
93
  }, x = ne();
95
94
  return (A, _) => {
96
95
  const b = M("fm-button"), q = M("fm-side-sheet");
@@ -130,7 +129,7 @@ const vt = /* @__PURE__ */ X({
130
129
  ])
131
130
  ]),
132
131
  default: O(() => [
133
- s(nt, {
132
+ s(lt, {
134
133
  overrides: f.value,
135
134
  "onUpdate:overrides": _[0] || (_[0] = (R) => f.value = R),
136
135
  "categorized-items": r(x).categorizedItems,
@@ -202,24 +201,24 @@ const vt = /* @__PURE__ */ X({
202
201
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
203
202
  }, Et = {
204
203
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
205
- }, eo = /* @__PURE__ */ X({
204
+ }, Zt = /* @__PURE__ */ X({
206
205
  __name: "Group",
207
206
  emits: ["update:count"],
208
207
  setup(V, {
209
208
  emit: S
210
209
  }) {
211
- const u = ne(), I = je(), N = He(), w = Ue(Te(N)), f = qe(), y = g(() => u.rules.group), h = g(() => new ge(u, w.updateMenu, f)), D = g(() => h.value.mapGroups(u.groups, !1)), {
210
+ const u = ne(), I = Ke(), N = qe(), w = Ue(Te(N)), f = Je(), y = g(() => u.rules.group), h = g(() => new ge(u, w.updateMenu, f)), D = g(() => h.value.mapGroups(u.groups, !1)), {
212
211
  searchKey: x,
213
212
  filter: A
214
213
  } = dt(), _ = E(!1), b = E(null), {
215
214
  attributes: q,
216
215
  filterRule: R,
217
216
  mongoQuery: ae
218
- } = Ke({
217
+ } = He({
219
218
  valueSource: D,
220
219
  entity: "group"
221
220
  }), z = g(() => {
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 : Be(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);
223
222
  return D.value.filter((a) => t(a) && e(a)).filter((a) => !b.value || a.type === b.value);
224
223
  }), be = S;
225
224
  Re(() => z.value.length, () => {
@@ -335,7 +334,7 @@ const vt = /* @__PURE__ */ X({
335
334
  primaryActions: {
336
335
  text: n("menu.common.actions.delete"),
337
336
  close: !0,
338
- variant: Je.Destructive
337
+ variant: Qe.Destructive
339
338
  },
340
339
  secondaryActions: {
341
340
  text: n("menu.common.actions.cancel"),
@@ -441,7 +440,7 @@ const vt = /* @__PURE__ */ X({
441
440
  size: 140,
442
441
  cell: (t) => {
443
442
  const e = t.row.original;
444
- return pe(Qe, {
443
+ return pe(We, {
445
444
  // FIXME:FdoCustomAttribute under "@feedmepos/custom-attributes" is not compatible
446
445
  // with FdoCustomAttribute from "@feedmepos/core", ! mark should be removed when fixed
447
446
  customAttributes: e.customAttributes
@@ -491,7 +490,7 @@ const vt = /* @__PURE__ */ X({
491
490
  else {
492
491
  const i = {
493
492
  module: v.F_MENU_MODULE_V4_KEY.enum.group,
494
- operation: Le.F_OPERATION_TYPE.update,
493
+ operation: ze.F_OPERATION_TYPE.update,
495
494
  data: l,
496
495
  link: [{
497
496
  module: v.F_MENU_MODULE_V4_KEY.enum.item,
@@ -503,7 +502,7 @@ const vt = /* @__PURE__ */ X({
503
502
  }
504
503
  }, Y = E(null), ce = E(null), me = async (t) => {
505
504
  var e;
506
- Y.value = tt(t), await fe(), (e = ce.value) == null || e.trigger(!0);
505
+ Y.value = ot(t), await fe(), (e = ce.value) == null || e.trigger(!0);
507
506
  };
508
507
  function Fe(t) {
509
508
  me(t.original);
@@ -517,7 +516,7 @@ const vt = /* @__PURE__ */ X({
517
516
  async function Ve() {
518
517
  K.value = !K.value, K.value && (await fe(), J.value && J.value.toggleProperty(!0));
519
518
  }
520
- const de = () => y.value.multiScheduler ? s(We, null, {
519
+ const de = () => y.value.multiScheduler ? s(Xe, null, {
521
520
  append: () => Pe.value ? s("div", {
522
521
  class: "pl-8 flex items-center justify-center border-l border-fm-color-neutral-gray-200",
523
522
  onClick: (t) => {
@@ -542,7 +541,7 @@ const vt = /* @__PURE__ */ X({
542
541
  group: Y.value,
543
542
  "onUpdate:group": e[0] || (e[0] = (o) => Y.value = o),
544
543
  "onSubmit:group": e[1] || (e[1] = (o) => Ae(o))
545
- }), null, 16, ["title", "group"])) : U("", !0), D.value.length === 0 ? (m(), k("div", xt, [s(at, {
544
+ }), null, 16, ["title", "group"])) : U("", !0), D.value.length === 0 ? (m(), k("div", xt, [s(Ye, {
546
545
  subtitle: r(n)("menu.group.empty.subtitle"),
547
546
  title: r(n)("menu.group.empty.title")
548
547
  }, Se({
@@ -603,7 +602,7 @@ const vt = /* @__PURE__ */ X({
603
602
  attributes: r(q),
604
603
  modelValue: r(R),
605
604
  "onUpdate:modelValue": e[15] || (e[15] = (o) => Q(R) ? R.value = o : null)
606
- }, null, 8, ["attributes", "modelValue"])])) : U("", !0), s(r(ze), {
605
+ }, null, 8, ["attributes", "modelValue"])])) : U("", !0), s(r(Be), {
607
606
  class: W(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100", "pb-64"]),
608
607
  "model-value": z.value,
609
608
  group: "categories",
@@ -661,7 +660,7 @@ const vt = /* @__PURE__ */ X({
661
660
  attributes: r(q),
662
661
  modelValue: r(R),
663
662
  "onUpdate:modelValue": e[7] || (e[7] = (o) => Q(R) ? R.value = o : null)
664
- }, null, 8, ["attributes", "modelValue"])])) : U("", !0), s(Xe, null, {
663
+ }, null, 8, ["attributes", "modelValue"])])) : U("", !0), s(Ze, null, {
665
664
  default: O(() => [s(P, {
666
665
  "column-defs": Oe.value,
667
666
  "column-visibility": De.value,
@@ -682,5 +681,5 @@ const vt = /* @__PURE__ */ X({
682
681
  }
683
682
  });
684
683
  export {
685
- eo as _
684
+ Zt as _
686
685
  };
@@ -1,13 +1,14 @@
1
1
  import { defineComponent as x, useModel as K, computed as B, resolveComponent as m, createBlock as U, openBlock as b, ref as L, watch as W, withCtx as _, createElementBlock as F, createElementVNode as P, Fragment as w, 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 N, useCustomAttributes as ue, useCoreStore as re, isEmptyRule as oe, EMPTY_RULE as E } from "@feedmepos/mf-common";
3
- import { m as O, f as j, u as ne, _ as ie, a as q } from "./customAttributes-DvbvCfOd.js";
4
- import { u as D } from "./priceTier-Bkogs1qc.js";
5
- import { b as G } from "./app-CzXxFrl1.js";
6
- import { FmButtonVariant as Z, useDialog as se, components as me, FmButtonColorThemeVariant as H } from "@feedmepos/ui-library";
7
- import { L as R } from "./catalogSetting-CeVHRHOo.js";
8
- import { L as de } from "./LinkProductSideSheet-C4yBnJSM.js";
3
+ import { _ as q } from "./FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js";
4
+ import { u as D } from "./priceTier-BVTab4k1.js";
5
+ import { b as O } from "./app-CzXxFrl1.js";
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 H, d as se, _ as me } from "./RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js";
8
+ import { L as R } from "./catalogSetting-BAry7I_V.js";
9
+ import { L as de } from "./LinkProductSideSheet-B_R_2iH6.js";
9
10
  import { c as Y } from "./check-C9mY6LiX.js";
10
- import { u as ce, H as J, al as pe } from "./menu-tHhzkxDL.js";
11
+ import { u as ce, H as J, am as pe } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
11
12
  import { c as ve } from "./string-DpfFixWH.js";
12
13
  const fe = /* @__PURE__ */ x({
13
14
  __name: "LinkPriceTier",
@@ -52,8 +53,8 @@ const fe = /* @__PURE__ */ x({
52
53
  return {
53
54
  ...l,
54
55
  restaurantRule: {
55
- restaurantAttributes: O((c = l.restaurantRule) == null ? void 0 : c.restaurantAttributes),
56
- restaurantCustomAttributes: O((p = l.restaurantRule) == null ? void 0 : p.restaurantCustomAttributes)
56
+ restaurantAttributes: G((c = l.restaurantRule) == null ? void 0 : c.restaurantAttributes),
57
+ restaurantCustomAttributes: G((p = l.restaurantRule) == null ? void 0 : p.restaurantCustomAttributes)
57
58
  }
58
59
  };
59
60
  }));
@@ -63,8 +64,8 @@ const fe = /* @__PURE__ */ x({
63
64
  return {
64
65
  priceTier: c.priceTier,
65
66
  restaurantRule: {
66
- restaurantAttributes: j((p = c.restaurantRule) == null ? void 0 : p.restaurantAttributes),
67
- restaurantCustomAttributes: j((n = c.restaurantRule) == null ? void 0 : n.restaurantCustomAttributes)
67
+ restaurantAttributes: H((p = c.restaurantRule) == null ? void 0 : p.restaurantAttributes),
68
+ restaurantCustomAttributes: H((n = c.restaurantRule) == null ? void 0 : n.restaurantCustomAttributes)
68
69
  }
69
70
  };
70
71
  });
@@ -78,7 +79,7 @@ const fe = /* @__PURE__ */ x({
78
79
  entity: "restaurant"
79
80
  }), {
80
81
  restaurantAttributes: g
81
- } = ne();
82
+ } = se();
82
83
  function i(l, c, p) {
83
84
  o.value && o.value[l] && (oe(c) ? o.value[l].restaurantRule[p] = E : o.value[l].restaurantRule[p] = c);
84
85
  }
@@ -100,7 +101,7 @@ const fe = /* @__PURE__ */ x({
100
101
  }
101
102
  return (l, c) => {
102
103
  const p = m("FmSelect"), n = m("fm-button"), v = m("FmCard"), z = m("FmButton");
103
- return b(), U(ie, null, {
104
+ return b(), U(me, null, {
104
105
  default: _(() => [(b(!0), F(w, null, X(o.value, (M, S) => (b(), U(v, {
105
106
  key: S,
106
107
  class: "p-16 space-y-16",
@@ -118,7 +119,7 @@ const fe = /* @__PURE__ */ x({
118
119
  }, {
119
120
  default: _(() => {
120
121
  var f;
121
- return [u(e(G), {
122
+ return [u(e(O), {
122
123
  attributes: e(g),
123
124
  "model-value": (f = M.restaurantRule) == null ? void 0 : f.restaurantAttributes,
124
125
  "onUpdate:modelValue": (C) => i(S, C, "restaurantAttributes")
@@ -130,7 +131,7 @@ const fe = /* @__PURE__ */ x({
130
131
  }, {
131
132
  default: _(() => {
132
133
  var f;
133
- return [u(e(G), {
134
+ return [u(e(O), {
134
135
  attributes: e(y),
135
136
  "model-value": (f = M.restaurantRule) == null ? void 0 : f.restaurantCustomAttributes,
136
137
  "onUpdate:modelValue": (C) => i(S, C, "restaurantCustomAttributes")
@@ -151,7 +152,7 @@ const fe = /* @__PURE__ */ x({
151
152
  });
152
153
  };
153
154
  }
154
- }), Be = /* @__PURE__ */ x({
155
+ }), Le = /* @__PURE__ */ x({
155
156
  __name: "LinkPriceTierSection",
156
157
  props: {
157
158
  modelValue: {},
@@ -227,7 +228,7 @@ const fe = /* @__PURE__ */ x({
227
228
  }), ge = { class: "space-y-16" }, ke = { class: "ml-32 mt-16 space-y-8" }, Ve = {
228
229
  key: 0,
229
230
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
230
- }, Le = /* @__PURE__ */ x({
231
+ }, $e = /* @__PURE__ */ x({
231
232
  __name: "GroupMarkupPriceDialog",
232
233
  props: {
233
234
  modelValue: {},
@@ -238,7 +239,7 @@ const fe = /* @__PURE__ */ x({
238
239
  emits: ["update:model-value"],
239
240
  setup(d, { emit: T }) {
240
241
  const r = d, o = ce();
241
- se();
242
+ ne();
242
243
  const { t: a } = N(), y = T, g = B(() => r.action === "add" ? a("menu.markup.dialog.title.add") : a("menu.markup.dialog.title.update")), i = L(!1), k = (n) => {
243
244
  Y.isBoolean(n) ? i.value = n : i.value = !i.value;
244
245
  }, t = L(
@@ -298,7 +299,7 @@ const fe = /* @__PURE__ */ x({
298
299
  u(ee, {
299
300
  modelValue: i.value,
300
301
  "onUpdate:modelValue": v[4] || (v[4] = (I) => i.value = I),
301
- "is-component": e(me).FmForm,
302
+ "is-component": e(ie).FmForm,
302
303
  "is-component-props": {
303
304
  onValidationSuccess: p
304
305
  }
@@ -371,8 +372,8 @@ const fe = /* @__PURE__ */ x({
371
372
  default: _(({ trigger: s }) => [
372
373
  V.value === 1 ? (b(), U(C, {
373
374
  key: 0,
374
- "text-color": e(H).ColorPrimary,
375
- "border-color": e(H).ColorPrimary,
375
+ "text-color": e(j).ColorPrimary,
376
+ "border-color": e(j).ColorPrimary,
376
377
  variant: e(Z).Secondary,
377
378
  label: e(a)("menu.markup.dialog.products.link"),
378
379
  "prepend-icon": "link",
@@ -394,6 +395,6 @@ const fe = /* @__PURE__ */ x({
394
395
  }
395
396
  });
396
397
  export {
397
- Le as _,
398
- Be as a
398
+ $e as _,
399
+ Le as a
399
400
  };