@feedmepos/mf-menu 1.0.0 → 1.0.1-dev.2

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 (65) hide show
  1. package/dist/{App-Dx2igC7a.js → App-CdIN4s5n.js} +5 -4
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BFZokcY6.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js} +1 -1
  3. package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-Cqo6_VtR.js → BindingTable.vue_vue_type_script_setup_true_lang-CoHlJwpz.js} +1 -1
  4. package/dist/{Catalog-B-RloKQ4.js → Catalog-DjAubC9s.js} +4 -4
  5. package/dist/{CatalogBinding-CgIYwGGu.js → CatalogBinding-5JNRTbyZ.js} +3 -3
  6. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-DKHW_Iqx.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-BorOjk1k.js} +3 -3
  7. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BJXpYF1Z.js → CatalogEditor.vue_vue_type_script_setup_true_lang-CkF7O_V-.js} +7 -7
  8. package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Oo24DDWy.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-3fL43MuR.js} +3 -3
  9. package/dist/{Category-Buu8cQY6.js → Category-BbiN4hd7.js} +5 -5
  10. package/dist/{Category-Bk6LDBUg.js → Category-COug7fz8.js} +2 -2
  11. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-BF6z8ULI.js → CategoryList.vue_vue_type_script_setup_true_lang-B_9aPMIN.js} +5 -5
  12. package/dist/{CookingGuide-Cf029w_4.js → CookingGuide-Dg7kuF6l.js} +82 -82
  13. package/dist/FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js +1774 -0
  14. package/dist/{Group-tqaxMELg.js → Group-BRpmTqyT.js} +5 -5
  15. package/dist/{Group-DEcK54PQ.js → Group-C-hwlkgJ.js} +2 -2
  16. package/dist/{GroupList.vue_vue_type_script_setup_true_lang-BROG27Yx.js → GroupList.vue_vue_type_script_setup_true_lang-DowoJ3WM.js} +7 -7
  17. package/dist/{Ingredient-DB25SQ_o.js → Ingredient-BQYnARdC.js} +3 -3
  18. package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CgTDkHle.js +707 -0
  19. package/dist/{MenuSetting-DUYQvadY.js → MenuSetting-DsdM2_OW.js} +546 -513
  20. package/dist/{OrderPacing-CjUkaRbu.js → OrderPacing-5x2YH-_l.js} +6 -6
  21. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-DJXhbkeG.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-DVGJjpiM.js} +2 -2
  22. package/dist/Preview-AdgGTYlQ.js +321 -0
  23. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-gfsuBoHt.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-vmxVZ2ya.js} +1 -1
  24. package/dist/{PrintRoute-CysE-4tE.js → PrintRoute-COkCv4gf.js} +4 -4
  25. package/dist/{Product-iVtmB1C8.js → Product-BJFb_J4h.js} +4 -4
  26. package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-B7eUmZuN.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-Tpp8MBYS.js} +2 -2
  27. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-b8DaMgRx.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-C25Pwqme.js} +4 -4
  28. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B5vq5hbc.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-BMAtAK9D.js} +1 -1
  29. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-C1ghNMTf.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-Dl4Zr5tx.js} +11 -11
  30. package/dist/{ProductInternalTools-BQDxL6qv.js → ProductInternalTools-thlSvqbA.js} +2 -2
  31. package/dist/{ProductInventoryDialog-W1F98eXc.js → ProductInventoryDialog-C3ruRWU5.js} +1 -1
  32. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Cp4ZIcMK.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-MpdIixqI.js} +1 -1
  33. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-B1N4e-Kd.js → ProductList.vue_vue_type_script_setup_true_lang-9_ohgfqE.js} +9 -9
  34. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-DengE8Aj.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-Ctbz-8cd.js} +1 -1
  35. package/dist/{Products-C9O4viX6.js → Products-DMrjQFfu.js} +3 -3
  36. package/dist/{Publish-B2-c2SAA.js → Publish-f6g0dIao.js} +3 -3
  37. package/dist/{Recipe-CU9raTsa.js → Recipe-p-wxadSN.js} +3 -3
  38. package/dist/{Scheduler-BE0dziMd.js → Scheduler-CtebRafn.js} +4 -4
  39. package/dist/{ServingSequence-Bd99-lK0.js → ServingSequence-CEd4ywOQ.js} +2 -2
  40. package/dist/{Setting-CEPdYW3h.js → Setting-bPKadRu-.js} +6 -6
  41. package/dist/{Subcategory-BdcLXhuv.js → Subcategory-DBCnIP0b.js} +2 -2
  42. package/dist/{Takeaway-CmEdi9LZ.js → Takeaway-GNRHR5kN.js} +2 -2
  43. package/dist/{Takeaway-DbAA4-wL.js → Takeaway-VBkdW1DM.js} +5 -5
  44. package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-b2AoUuPc.js → TakeawayList.vue_vue_type_script_setup_true_lang-DvX3k0Jg.js} +4 -4
  45. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ByHzS1zz.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D1qaEVUu.js} +7 -7
  46. package/dist/{Unit-Di23l3Rf.js → Unit-DbGKIprZ.js} +2 -2
  47. package/dist/{Variant-CrMulK0_.js → Variant-_edSAKif.js} +19 -19
  48. package/dist/{_id_-B-xHjH3V.js → _id_-BNVtBV3q.js} +3 -3
  49. package/dist/{app-BiteOZSg.js → app-BlTv5xag.js} +153 -150
  50. package/dist/app.js +2 -2
  51. package/dist/apps/mf-menu/src/app.d.ts +360 -0
  52. package/dist/apps/mf-menu/src/components/preview/MenuPreview.vue.d.ts +13 -0
  53. package/dist/apps/mf-menu/src/components/preview/simulatorPort.d.ts +23 -0
  54. package/dist/apps/mf-menu/src/router/shared.d.ts +1 -0
  55. package/dist/apps/mf-menu/src/utils/ruleValueKey.d.ts +12 -0
  56. package/dist/apps/mf-menu/src/views/Preview/Preview.vue.d.ts +2 -0
  57. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  58. package/dist/assets/{menu-compute-Cf88Yt0l.js → menu-compute-BzchkTYh.js} +36 -36
  59. package/dist/assets/{validate-menu-DEpbyLnq.js → validate-menu-CTV_cJNG.js} +4 -4
  60. package/dist/{provide-DHcnZPMQ.js → provide-dbE6Qt1z.js} +35458 -34831
  61. package/dist/ruleValueKey-BF52PuHb.js +10 -0
  62. package/dist/{useActionFeedback-B8L3Gpei.js → useActionFeedback-CdY_C_HX.js} +1 -1
  63. package/package.json +1 -1
  64. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DMTby3OA.js +0 -4473
  65. package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-BAp_X51e.js +0 -671
@@ -1,13 +1,13 @@
1
- import { defineComponent as _e, resolveComponent as k, openBlock as m, createBlock as S, withCtx as p, createElementVNode as i, toDisplayString as g, computed as $, ref as E, shallowRef as ve, h as Y, withModifiers as D, onUnmounted as Ae, unref as t, createElementBlock as _, createVNode as n, Fragment as x, renderList as w, createCommentVNode as j, createTextVNode as Be, nextTick as Ne } from "vue";
2
- import { _ as G, V as De } from "./FormSection.vue_vue_type_script_setup_true_lang-DMTby3OA.js";
3
- import { useI18n as je } from "@feedmepos/mf-common";
1
+ import { defineComponent as _e, resolveComponent as k, openBlock as m, createBlock as S, withCtx as p, createElementVNode as i, toDisplayString as g, computed as $, ref as E, shallowRef as ve, h as Y, withModifiers as j, onUnmounted as Ae, unref as t, createElementBlock as _, createVNode as n, Fragment as x, renderList as w, createCommentVNode as D, createTextVNode as Be, nextTick as Ne } from "vue";
2
+ import { _ as G, d as je } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
3
+ import { useI18n as De } from "@feedmepos/mf-common";
4
4
  import { useDialog as qe, useBreakpoints as He, components as Z } from "@feedmepos/ui-library";
5
5
  import { _ as Qe } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
6
- import { _ as Je } from "./app-BiteOZSg.js";
7
- import { _ as We } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-BAp_X51e.js";
6
+ import { _ as Je } from "./app-BlTv5xag.js";
7
+ import { _ as We } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CgTDkHle.js";
8
8
  import { _ as Xe } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
9
- import { u as Ye } from "./useActionFeedback-B8L3Gpei.js";
10
- import { a as Ze, b as eo, u as ge } from "./provide-DHcnZPMQ.js";
9
+ import { u as Ye } from "./useActionFeedback-CdY_C_HX.js";
10
+ import { a as Ze, b as eo, u as ge } from "./provide-dbE6Qt1z.js";
11
11
  const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-lg-600" }, lo = /* @__PURE__ */ _e({
12
12
  __name: "RemoveCookingGuideConfirmation",
13
13
  props: {
@@ -40,13 +40,13 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
40
40
  }, so = { class: "flex justify-end items-center" }, uo = { class: "grow space-y-4" }, ro = { class: "fm-typo-en-body-lg-600" }, co = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, mo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, po = {
41
41
  key: 2,
42
42
  class: "fixed right-16 bottom-[72px] z-[100] w-[144px]"
43
- }, vo = { class: "fm-typo-en-title-md-600" }, go = { class: "space-y-24" }, _o = { class: "flex items-center" }, fo = { class: "flex items-center gap-8" }, bo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ko = { class: "flex-1" }, yo = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, ho = { class: "px-16 py-8 flex-1 flex gap-4 overflow-auto min-w-0" }, xo = { class: "fm-typo-en-body-md-500" }, Co = { class: "px-16 py-8 flex gap-8" }, So = { class: "flex gap-8" }, wo = { class: "flex items-center gap-8" }, Fo = { class: "fm-typo-en-title-md-600" }, Vo = { class: "flex flex-col gap-32" }, Io = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, $o = { class: "w-2/5 px-16 py-8" }, Oo = { class: "grow px-16 py-8" }, Uo = { class: "w-2/5 px-16 py-8" }, Eo = { class: "grow px-16 py-8" }, Lo = { class: "space-y-16" }, Ko = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Po = { class: "flex gap-8 items-center justify-start" }, Mo = { class: "min-w-[700px]" }, To = { class: "flex bg-fm-color-neutral-gray-100" }, Go = { class: "grow px-16 py-8" }, Ro = { class: "w-[200px] px-16 py-8" }, zo = { class: "w-[200px] px-16 py-8" }, Ao = { class: "grow px-16 py-8" }, Bo = { class: "w-[200px] px-16 py-8" }, No = { class: "w-[200px] px-16 py-8" }, Do = {
43
+ }, vo = { class: "fm-typo-en-title-md-600" }, go = { class: "space-y-24" }, _o = { class: "flex items-center" }, fo = { class: "flex items-center gap-8" }, bo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ko = { class: "flex-1" }, yo = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, ho = { class: "px-16 py-8 flex-1 flex gap-4 overflow-auto min-w-0" }, xo = { class: "fm-typo-en-body-md-500" }, Co = { class: "px-16 py-8 flex gap-8" }, So = { class: "flex gap-8" }, wo = { class: "flex items-center gap-8" }, Fo = { class: "fm-typo-en-title-md-600" }, Vo = { class: "flex flex-col gap-32" }, Io = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, $o = { class: "w-2/5 px-16 py-8" }, Oo = { class: "grow px-16 py-8" }, Uo = { class: "w-2/5 px-16 py-8" }, Eo = { class: "grow px-16 py-8" }, Lo = { class: "space-y-16" }, Ko = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Po = { class: "flex gap-8 items-center justify-start" }, Mo = { class: "min-w-[700px]" }, To = { class: "flex bg-fm-color-neutral-gray-100" }, Go = { class: "grow px-16 py-8" }, Ro = { class: "w-[200px] px-16 py-8" }, zo = { class: "w-[200px] px-16 py-8" }, Ao = { class: "grow px-16 py-8" }, Bo = { class: "w-[200px] px-16 py-8" }, No = { class: "w-[200px] px-16 py-8" }, jo = {
44
44
  key: 0,
45
45
  class: "h-8"
46
46
  }, ot = /* @__PURE__ */ _e({
47
47
  __name: "CookingGuide",
48
48
  setup(fe) {
49
- const h = Ze(), { t: e } = je(), F = eo(), ee = qe(), { breakpoints: be } = He(), { run: q } = Ye(), L = ge(h.cookingGuide.list), y = $(
49
+ const h = Ze(), { t: e } = De(), F = eo(), ee = qe(), { breakpoints: be } = He(), { run: q } = Ye(), L = ge(h.cookingGuide.list), y = $(
50
50
  () => L.value.status === "ready" ? L.value.value : null
51
51
  ), ke = $(() => {
52
52
  var o;
@@ -54,12 +54,12 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
54
54
  }), oe = $(() => {
55
55
  var o;
56
56
  return [...((o = y.value) == null ? void 0 : o.rows) ?? []];
57
- }), R = $(() => be.value.xs), K = E(!1), P = E(!1), M = E(!1), te = E(null), O = E(!1), H = E(!1), d = ve(
57
+ }), R = $(() => be.value.xs), K = E(!1), P = E(!1), M = E(!1), te = E(null), O = E(!1), H = E(!1), u = ve(
58
58
  h.cookingGuide.editor()
59
59
  ), T = ve(
60
- d.value.get()
60
+ u.value.get()
61
61
  );
62
- let z = d.value.subscribe(
62
+ let z = u.value.subscribe(
63
63
  (o) => T.value = o
64
64
  );
65
65
  const v = $(
@@ -68,7 +68,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
68
68
  () => le.value.status === "ready" ? le.value.value : null
69
69
  );
70
70
  function ae(o) {
71
- z(), d.value.dispose(), d.value = h.cookingGuide.editor(o), T.value = d.value.get(), z = d.value.subscribe(
71
+ z(), u.value.dispose(), u.value = h.cookingGuide.editor(o), T.value = u.value.get(), z = u.value.subscribe(
72
72
  (l) => T.value = l
73
73
  );
74
74
  }
@@ -83,7 +83,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
83
83
  K.value = !1, P.value = !1, M.value = !1, O.value = !1, z();
84
84
  }
85
85
  function J() {
86
- ne(), d.value.dispose();
86
+ ne(), u.value.dispose();
87
87
  }
88
88
  function se() {
89
89
  var o;
@@ -104,10 +104,10 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
104
104
  function he(o) {
105
105
  o ? K.value = !0 : se();
106
106
  }
107
- function ue() {
107
+ function de() {
108
108
  var V;
109
- const o = ((V = v.value) == null ? void 0 : V.name) ?? "", l = d.value, u = l.submit(), C = l.get(), b = C.status === "ready" && C.value.status === "submitting";
110
- q(() => u, {
109
+ const o = ((V = v.value) == null ? void 0 : V.name) ?? "", l = u.value, d = l.submit(), C = l.get(), b = C.status === "ready" && C.value.status === "submitting";
110
+ q(() => d, {
111
111
  successMessage: e("menu.cooking_guide.manager.action.saved", { name: o }),
112
112
  showLoading: () => {
113
113
  var A;
@@ -124,7 +124,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
124
124
  );
125
125
  }
126
126
  function Ce(o) {
127
- d.value.setLinkedProducts(
127
+ u.value.setLinkedProducts(
128
128
  o.map((l) => ({
129
129
  productId: l.itemId,
130
130
  combinationKey: l.combinationKey ?? null
@@ -132,55 +132,55 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
132
132
  ), P.value = !1;
133
133
  }
134
134
  function Se() {
135
- d.value.addStep();
136
- const o = d.value.get(), l = o.status === "ready" ? o.value.steps : [], u = l[l.length - 1];
137
- u && de(u.id);
135
+ u.value.addStep();
136
+ const o = u.value.get(), l = o.status === "ready" ? o.value.steps : [], d = l[l.length - 1];
137
+ d && ue(d.id);
138
138
  }
139
- function de(o) {
140
- d.value.openStep(o), M.value = !0;
139
+ function ue(o) {
140
+ u.value.openStep(o), M.value = !0;
141
141
  }
142
142
  function W() {
143
- d.value.discardStep(), M.value = !1;
143
+ u.value.discardStep(), M.value = !1;
144
144
  }
145
145
  function we() {
146
- d.value.saveStep() && (M.value = !1);
146
+ u.value.saveStep() && (M.value = !1);
147
147
  }
148
148
  function Fe(o) {
149
- d.value.removeStep(o);
149
+ u.value.removeStep(o);
150
150
  }
151
151
  function Ve(o) {
152
- d.value.setSteps(o);
152
+ u.value.setSteps(o);
153
153
  }
154
154
  function re() {
155
155
  const o = te.value, l = o instanceof HTMLElement ? o : o == null ? void 0 : o.$el;
156
156
  return l instanceof HTMLTextAreaElement ? l : (l == null ? void 0 : l.querySelector("textarea")) ?? null;
157
157
  }
158
158
  function Ie(o) {
159
- const l = re(), u = l == null ? void 0 : l.selectionStart, C = l == null ? void 0 : l.selectionEnd;
160
- d.value.appendStepVariable(
159
+ const l = re(), d = l == null ? void 0 : l.selectionStart, C = l == null ? void 0 : l.selectionEnd;
160
+ u.value.appendStepVariable(
161
161
  o,
162
- u ?? void 0,
162
+ d ?? void 0,
163
163
  C ?? void 0
164
- ), u != null && Ne(() => {
165
- const b = re(), V = u + o.length + 4;
164
+ ), d != null && Ne(() => {
165
+ const b = re(), V = d + o.length + 4;
166
166
  b == null || b.focus(), b == null || b.setSelectionRange(V, V);
167
167
  });
168
168
  }
169
169
  function $e(o) {
170
- d.value.openOverrides(o.productId, o.combinationKey), O.value = !0;
170
+ u.value.openOverrides(o.productId, o.combinationKey), O.value = !0;
171
171
  }
172
172
  function Oe(o, l) {
173
- var u, C, b;
174
- return ((b = (C = (u = v.value) == null ? void 0 : u.overrideEditor) == null ? void 0 : C.values[o]) == null ? void 0 : b[l]) ?? "";
173
+ var d, C, b;
174
+ return ((b = (C = (d = v.value) == null ? void 0 : d.overrideEditor) == null ? void 0 : C.values[o]) == null ? void 0 : b[l]) ?? "";
175
175
  }
176
- function Ue(o, l, u) {
177
- d.value.setOverrideValue(o, l, u);
176
+ function Ue(o, l, d) {
177
+ u.value.setOverrideValue(o, l, d);
178
178
  }
179
179
  function Ee() {
180
- d.value.saveOverrides(), O.value = !1;
180
+ u.value.saveOverrides(), O.value = !1;
181
181
  }
182
182
  function ce() {
183
- d.value.discardOverrides(), O.value = !1;
183
+ u.value.discardOverrides(), O.value = !1;
184
184
  }
185
185
  function me(o) {
186
186
  ee.open({
@@ -247,7 +247,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
247
247
  textColor: "neutral-gray-400",
248
248
  disabled: o.row.original.remove.state !== "allowed",
249
249
  "aria-label": e("menu.cooking_guide.actions.remove"),
250
- onClick: D(
250
+ onClick: j(
251
251
  () => me(o.row.original),
252
252
  ["stop", "prevent"]
253
253
  )
@@ -256,15 +256,15 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
256
256
  }
257
257
  ]);
258
258
  return Ae(() => {
259
- z(), d.value.dispose();
259
+ z(), u.value.dispose();
260
260
  }), (o, l) => {
261
- const u = k("FmButton"), C = k("FmCircularProgress"), b = k("FmSearch"), V = k("FmTable"), A = k("FmListItem"), Pe = k("FmList"), B = k("FmTextField"), Me = k("FmCardSection"), Te = k("FmCard"), X = k("FmSpacer"), pe = k("FmSideSheet"), Ge = k("FmChip"), Re = k("FmTextarea"), ze = k("FmDialog");
261
+ const d = k("FmButton"), C = k("FmCircularProgress"), b = k("FmSearch"), V = k("FmTable"), A = k("FmListItem"), Pe = k("FmList"), B = k("FmTextField"), Me = k("FmCardSection"), Te = k("FmCard"), X = k("FmSpacer"), pe = k("FmSideSheet"), Ge = k("FmChip"), Re = k("FmTextarea"), ze = k("FmDialog");
262
262
  return m(), S(Xe, {
263
263
  heading: t(e)("menu.cooking_guide.title")
264
264
  }, {
265
265
  "append-heading": p(() => [
266
266
  i("div", ao, [
267
- y.value && y.value.totalCount > 0 && !R.value ? (m(), S(u, {
267
+ y.value && y.value.totalCount > 0 && !R.value ? (m(), S(d, {
268
268
  key: 0,
269
269
  class: "ml-auto",
270
270
  disabled: y.value.create.state !== "allowed",
@@ -272,13 +272,13 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
272
272
  "prepend-icon": "add",
273
273
  variant: "primary",
274
274
  onClick: Q
275
- }, null, 8, ["disabled", "label"])) : j("", !0)
275
+ }, null, 8, ["disabled", "label"])) : D("", !0)
276
276
  ])
277
277
  ]),
278
278
  default: p(() => [
279
279
  t(L).status === "error" ? (m(), _("div", io, [
280
280
  i("p", no, g(t(F)(t(L).error.message)), 1),
281
- n(u, {
281
+ n(d, {
282
282
  label: t(e)("menu.common.actions.retry"),
283
283
  loading: H.value,
284
284
  "prepend-icon": "refresh",
@@ -323,13 +323,13 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
323
323
  })), 1)
324
324
  ])
325
325
  ]),
326
- n(u, {
326
+ n(d, {
327
327
  "aria-label": t(e)("menu.cooking_guide.actions.remove"),
328
328
  disabled: a.remove.state !== "allowed",
329
329
  icon: "delete",
330
330
  "text-color": "neutral-gray-400",
331
331
  variant: "tertiary",
332
- onClick: D((s) => me(a), ["stop"])
332
+ onClick: j((s) => me(a), ["stop"])
333
333
  }, null, 8, ["aria-label", "disabled", "onClick"])
334
334
  ]),
335
335
  _: 2
@@ -351,7 +351,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
351
351
  _: 1
352
352
  })),
353
353
  y.value.totalCount > 0 && R.value ? (m(), _("div", po, [
354
- n(u, {
354
+ n(d, {
355
355
  class: "w-full",
356
356
  disabled: y.value.create.state !== "allowed",
357
357
  label: t(e)("menu.cooking_guide.actions.add"),
@@ -359,13 +359,13 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
359
359
  variant: "fab",
360
360
  onClick: Q
361
361
  }, null, 8, ["disabled", "label"])
362
- ])) : j("", !0)
363
- ], 64)) : j("", !0),
362
+ ])) : D("", !0)
363
+ ], 64)) : D("", !0),
364
364
  n(pe, {
365
365
  "model-value": K.value,
366
366
  "is-container": t(Z).FmForm,
367
367
  "is-container-props": {
368
- onValidationSuccess: ue,
368
+ onValidationSuccess: de,
369
369
  blameFormChildOnValidationFailed: !0,
370
370
  class: "flex flex-col h-full py-16"
371
371
  },
@@ -383,14 +383,14 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
383
383
  var a, s;
384
384
  return [
385
385
  i("div", So, [
386
- n(u, {
386
+ n(d, {
387
387
  disabled: ((a = v.value) == null ? void 0 : a.submit.state) !== "allowed",
388
388
  label: ((s = v.value) == null ? void 0 : s.mode) === "update" ? t(e)("menu.cooking_guide.dialog.update.action") : t(e)("menu.cooking_guide.dialog.add.action"),
389
389
  type: "button",
390
390
  variant: "primary",
391
- onClick: ue
391
+ onClick: de
392
392
  }, null, 8, ["disabled", "label"]),
393
- n(u, {
393
+ n(d, {
394
394
  label: t(e)("menu.cooking_guide.dialog.actions.cancel"),
395
395
  variant: "tertiary",
396
396
  onClick: J
@@ -415,7 +415,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
415
415
  placeholder: t(e)(
416
416
  "menu.cooking_guide.dialog.sections.guide_detail.name.placeholder"
417
417
  ),
418
- "onUpdate:modelValue": l[2] || (l[2] = (c) => d.value.setName(String(c ?? "")))
418
+ "onUpdate:modelValue": l[2] || (l[2] = (c) => u.value.setName(String(c ?? "")))
419
419
  }, null, 8, ["autofocus", "helper-state", "helper-text", "label", "model-value", "placeholder"])
420
420
  ];
421
421
  }),
@@ -425,7 +425,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
425
425
  title: t(e)("menu.cooking_guide.dialog.sections.steps.title")
426
426
  }, {
427
427
  "append-title": p(() => [
428
- n(u, {
428
+ n(d, {
429
429
  label: t(e)("menu.cooking_guide.dialog.sections.steps.add"),
430
430
  icon: "add",
431
431
  variant: "secondary",
@@ -437,7 +437,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
437
437
  default: p(() => {
438
438
  var a;
439
439
  return [
440
- n(t(De), {
440
+ n(t(je), {
441
441
  "model-value": ((a = v.value) == null ? void 0 : a.steps) ?? [],
442
442
  class: "flex flex-col gap-16",
443
443
  handle: ".handle",
@@ -449,11 +449,11 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
449
449
  class: "rounded-md mb-16 items-center",
450
450
  horizontal: "",
451
451
  variant: "outlined",
452
- onClick: (f) => de(s.id)
452
+ onClick: (f) => ue(s.id)
453
453
  }, {
454
454
  default: p(() => [
455
455
  i("div", _o, [
456
- n(u, {
456
+ n(d, {
457
457
  class: "handle",
458
458
  icon: "drag_handle",
459
459
  variant: "tertiary"
@@ -465,12 +465,12 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
465
465
  ]),
466
466
  _: 2
467
467
  }, 1024),
468
- n(u, {
468
+ n(d, {
469
469
  "aria-label": t(e)("menu.cooking_guide.actions.remove"),
470
470
  "prepend-icon": "delete",
471
471
  "text-color": "neutral-gray-400",
472
472
  variant: "tertiary",
473
- onClick: D((f) => Fe(s.id), ["stop"])
473
+ onClick: j((f) => Fe(s.id), ["stop"])
474
474
  }, null, 8, ["aria-label", "onClick"])
475
475
  ]),
476
476
  _: 2
@@ -487,7 +487,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
487
487
  }, {
488
488
  "append-title": p(() => [
489
489
  n(X),
490
- n(u, {
490
+ n(d, {
491
491
  label: t(e)("menu.cooking_guide.dialog.sections.apply_product.link"),
492
492
  icon: "link",
493
493
  variant: "secondary",
@@ -508,7 +508,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
508
508
  n(b, {
509
509
  "model-value": ((s = v.value) == null ? void 0 : s.linkedFilter) ?? "",
510
510
  placeholder: t(e)("menu.cooking_guide.dialog.sections.apply_product.search"),
511
- "onUpdate:modelValue": l[4] || (l[4] = (r) => d.value.setLinkedFilter(String(r ?? "")))
511
+ "onUpdate:modelValue": l[4] || (l[4] = (r) => u.value.setLinkedFilter(String(r ?? "")))
512
512
  }, null, 8, ["model-value", "placeholder"])
513
513
  ])
514
514
  ]),
@@ -524,19 +524,19 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
524
524
  i("span", xo, g(c.label), 1)
525
525
  ]),
526
526
  i("div", Co, [
527
- n(u, {
527
+ n(d, {
528
528
  "aria-label": t(e)("menu.cooking_guide.step_override_dialog.title"),
529
529
  icon: "edit",
530
530
  variant: "tertiary",
531
531
  onClick: (U) => $e(c.binding)
532
532
  }, null, 8, ["aria-label", "onClick"]),
533
- n(u, {
533
+ n(d, {
534
534
  "aria-label": t(e)("menu.cooking_guide.actions.remove"),
535
535
  icon: "delete",
536
536
  variant: "tertiary",
537
537
  onClick: (U) => {
538
538
  var N;
539
- return d.value.setLinkedProducts(
539
+ return u.value.setLinkedProducts(
540
540
  (((N = v.value) == null ? void 0 : N.bindings) ?? []).filter(
541
541
  (I) => I.productId !== c.binding.productId || I.combinationKey !== c.binding.combinationKey
542
542
  ).map((I) => ({
@@ -581,7 +581,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
581
581
  var a, s;
582
582
  return [
583
583
  i("div", wo, [
584
- n(u, {
584
+ n(d, {
585
585
  label: t(e)("menu.cooking_guide.step_dialog.actions.back"),
586
586
  "prepend-icon": "arrow_back",
587
587
  variant: "tertiary",
@@ -595,13 +595,13 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
595
595
  var a, s;
596
596
  return [
597
597
  i("div", Po, [
598
- n(u, {
598
+ n(d, {
599
599
  label: (s = (a = v.value) == null ? void 0 : a.stepEditor) != null && s.isNew ? t(e)("menu.cooking_guide.step_dialog.add.action") : t(e)("menu.cooking_guide.step_dialog.update.action"),
600
600
  size: "lg",
601
601
  type: "submit",
602
602
  variant: "primary"
603
603
  }, null, 8, ["label"]),
604
- n(u, {
604
+ n(d, {
605
605
  label: t(e)("menu.cooking_guide.step_dialog.actions.cancel"),
606
606
  size: "lg",
607
607
  variant: "tertiary",
@@ -617,13 +617,13 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
617
617
  }, {
618
618
  "append-title": p(() => [
619
619
  n(X),
620
- n(u, {
620
+ n(d, {
621
621
  label: t(e)("menu.cooking_guide.step_dialog.sections.variables.add"),
622
622
  "prepend-icon": "add",
623
623
  variant: "secondary",
624
624
  "text-color": "primary",
625
625
  "border-color": "primary",
626
- onClick: d.value.addStepVariable
626
+ onClick: u.value.addStepVariable
627
627
  }, null, 8, ["label", "onClick"])
628
628
  ]),
629
629
  default: p(() => {
@@ -654,11 +654,11 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
654
654
  ),
655
655
  rules: [
656
656
  () => {
657
- const c = d.value.stepVariableIssue(r, "key");
657
+ const c = u.value.stepVariableIssue(r, "key");
658
658
  return c ? t(F)(c) : !0;
659
659
  }
660
660
  ],
661
- "onUpdate:modelValue": (c) => d.value.setStepVariable(r, {
661
+ "onUpdate:modelValue": (c) => u.value.setStepVariable(r, {
662
662
  key: String(c ?? "")
663
663
  })
664
664
  }, null, 8, ["aria-label", "model-value", "placeholder", "rules", "onUpdate:modelValue"])
@@ -675,19 +675,19 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
675
675
  ),
676
676
  rules: [
677
677
  () => {
678
- const c = d.value.stepVariableIssue(
678
+ const c = u.value.stepVariableIssue(
679
679
  r,
680
680
  "value"
681
681
  );
682
682
  return c ? t(F)(c) : !0;
683
683
  }
684
684
  ],
685
- "onUpdate:modelValue": (c) => d.value.setStepVariable(r, {
685
+ "onUpdate:modelValue": (c) => u.value.setStepVariable(r, {
686
686
  value: String(c ?? "")
687
687
  })
688
688
  }, null, 8, ["aria-label", "model-value", "placeholder", "rules", "onUpdate:modelValue"])
689
689
  ]),
690
- n(u, {
690
+ n(d, {
691
691
  "aria-label": t(e)(
692
692
  "menu.cooking_guide.step_dialog.sections.variables.accessibility.remove",
693
693
  { index: r + 1 }
@@ -695,7 +695,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
695
695
  icon: "delete",
696
696
  "text-color": "neutral-gray-400",
697
697
  variant: "tertiary",
698
- onClick: (c) => d.value.removeStepVariable(r)
698
+ onClick: (c) => u.value.removeStepVariable(r)
699
699
  }, null, 8, ["aria-label", "onClick"])
700
700
  ]))), 128))
701
701
  ])
@@ -719,7 +719,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
719
719
  key: c.key,
720
720
  label: c.key,
721
721
  class: "text-fm-color-primary bg-fm-color-system-warning-100",
722
- onMousedown: D((U) => Ie(c.key), ["prevent"])
722
+ onMousedown: j((U) => Ie(c.key), ["prevent"])
723
723
  }, null, 8, ["label", "onMousedown"]))), 128))
724
724
  ]),
725
725
  n(Re, {
@@ -727,7 +727,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
727
727
  ref: te,
728
728
  "aria-label": t(e)("menu.cooking_guide.step_dialog.sections.instruction.title"),
729
729
  "model-value": ((r = (f = v.value) == null ? void 0 : f.stepEditor) == null ? void 0 : r.instruction) ?? "",
730
- "onUpdate:modelValue": l[6] || (l[6] = (c) => d.value.setStepInstruction(String(c ?? "")))
730
+ "onUpdate:modelValue": l[6] || (l[6] = (c) => u.value.setStepInstruction(String(c ?? "")))
731
731
  }, null, 8, ["aria-label", "model-value"])
732
732
  ])
733
733
  ];
@@ -751,12 +751,12 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
751
751
  ]),
752
752
  "dialog-footer": p(() => [
753
753
  n(X),
754
- n(u, {
754
+ n(d, {
755
755
  label: t(e)("menu.cooking_guide.step_override_dialog.actions.cancel"),
756
756
  variant: "tertiary",
757
757
  onClick: ce
758
758
  }, null, 8, ["label"]),
759
- n(u, {
759
+ n(d, {
760
760
  label: t(e)("menu.cooking_guide.step_override_dialog.actions.save"),
761
761
  variant: "primary",
762
762
  onClick: Ee
@@ -793,7 +793,7 @@ const oo = { class: "fm-typo-en-body-lg-600" }, to = { class: "fm-typo-en-body-l
793
793
  placeholder: f,
794
794
  "onUpdate:modelValue": (U) => Ue(s.id, r, String(U ?? ""))
795
795
  }, null, 8, ["aria-label", "model-value", "placeholder", "onUpdate:modelValue"]),
796
- c < Object.keys(s.variables).length - 1 ? (m(), _("div", Do)) : j("", !0)
796
+ c < Object.keys(s.variables).length - 1 ? (m(), _("div", jo)) : D("", !0)
797
797
  ], 64))), 128))
798
798
  ])
799
799
  ]))), 128))