@feedmepos/mf-menu-portal 1.0.4 → 1.0.5-dev.1

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 (78) hide show
  1. package/dist/{App-CgYpEYgp.js → App-B2xq1U4S.js} +699 -687
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CPh1GBw9.js} +11 -10
  3. package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-CWe5_Sm5.js → BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js} +50 -46
  4. package/dist/Catalog-BEI73S_k.js +433 -0
  5. package/dist/{CatalogBinding-BjTeOA91.js → CatalogBinding-3rhuTWDD.js} +30 -29
  6. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-doB3hsWD.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
  7. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BpBR-N_x.js → CatalogEditor.vue_vue_type_script_setup_true_lang-Dc72SNpI.js} +314 -304
  8. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js +127 -0
  9. package/dist/{Category-6-ppsSmZ.js → Category-BVCdkA5K.js} +14 -13
  10. package/dist/{Category-CdsbuUqi.js → Category-P5DYjIeF.js} +2 -2
  11. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-DlNUOgyu.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
  12. package/dist/{CookingGuide-CRyRlBeV.js → CookingGuide-Y-c1NLP5.js} +144 -140
  13. package/dist/{Group-DVrUlq4i.js → Group-D6wA3jCF.js} +2 -2
  14. package/dist/{Group-DqyBHSFx.js → Group-qqr5SUIc.js} +17 -15
  15. package/dist/GroupList.vue_vue_type_script_setup_true_lang-DNTVfY2d.js +1996 -0
  16. package/dist/{Ingredient-CGLfhbvN.js → Ingredient-CJHkJZ0y.js} +94 -93
  17. package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
  18. package/dist/{MenuSetting-Oct3vbHj.js → MenuSetting-YcEGo51l.js} +462 -446
  19. package/dist/{OrderPacing-BDkzflgE.js → OrderPacing-DwQU7c0Y.js} +207 -204
  20. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-B259anSs.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-2Cdz70u-.js} +1 -2
  21. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js +44 -0
  22. package/dist/PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js +12 -0
  23. package/dist/{Preview-V9cSpevb.js → Preview-DLeXy5V-.js} +2 -2
  24. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-k5S4mGCN.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
  25. package/dist/{PrintRoute-3UwiMoBU.js → PrintRoute-R38w0-U2.js} +151 -150
  26. package/dist/{Product-LaB-YRTQ.js → Product-sbMCaVhM.js} +8 -7
  27. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-DoHQeOHy.js +7826 -0
  28. package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D9v88xZs.js +111 -0
  29. package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-BBXGnZtc.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
  30. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BUC6qUnG.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
  31. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CjQRRqBx.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
  32. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-3yzUcogQ.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
  33. package/dist/{ProductInternalTools-DWCgC825.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
  34. package/dist/{ProductInventoryDialog-D0d5RywR.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
  35. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-CmYKO0ZX.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
  36. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-DeX8Exly.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
  37. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BFD6_Sbb.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
  38. package/dist/{Products-BLUhwFT-.js → Products-DUE10OyS.js} +51 -49
  39. package/dist/Publish-BlMxKniP.js +1300 -0
  40. package/dist/{Recipe-BGfofjHT.js → Recipe-BhjPAidT.js} +83 -82
  41. package/dist/{Scheduler-BL7t8aS7.js → Scheduler-wKG3_D1f.js} +137 -136
  42. package/dist/{ServingSequence-CDFXMCiN.js → ServingSequence-B26BETQs.js} +63 -61
  43. package/dist/Setting-DBdNl3WL.js +185 -0
  44. package/dist/{Subcategory-CnlrVwCy.js → Subcategory-B06yMcuE.js} +147 -144
  45. package/dist/{Takeaway-D8FzvC2w.js → Takeaway-CFATfy-6.js} +2 -2
  46. package/dist/{Takeaway-BWVzwWnh.js → Takeaway-DFqOtls7.js} +17 -16
  47. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CUHB-g9I.js +616 -0
  48. package/dist/TextChip.vue_vue_type_script_setup_true_lang-YkUjMTXo.js +32 -0
  49. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B8nXazx6.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
  50. package/dist/{Unit-Do7Tt8U8.js → Unit-B5wKBmIT.js} +90 -89
  51. package/dist/{Variant-D1kLupxx.js → Variant-C5ePu0za.js} +167 -174
  52. package/dist/{_id_-DomaBHrh.js → _id_-HRDqt6oD.js} +3 -3
  53. package/dist/{app-C_XNYz8_.js → app-CxJjx2ma.js} +39 -39
  54. package/dist/app.js +1 -1
  55. package/dist/apps/mf-menu/src/app.d.ts +35 -0
  56. package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +8 -0
  57. package/dist/apps/mf-menu/src/components/Product/OrderFromChip.vue.d.ts +6 -0
  58. package/dist/apps/mf-menu/src/components/Product/ProductThumbnail.vue.d.ts +6 -0
  59. package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +4 -2
  60. package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +1 -1
  61. package/dist/apps/mf-menu/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
  62. package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +7 -0
  63. package/dist/apps/mf-menu/src/components/layout/PhoneFab.vue.d.ts +9 -0
  64. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  65. package/dist/assets/{menu-compute-Did75Kp9.js → menu-compute-CQdeCEBO.js} +19 -19
  66. package/dist/assets/{validate-menu-DVMOLygB.js → validate-menu-BVo4fNWG.js} +14 -14
  67. package/dist/mf-menu-portal.css +1 -1
  68. package/dist/{provide-Bwf3KcOV.js → provide-BGLSDsuJ.js} +99817 -99565
  69. package/dist/{useActionFeedback-CXx7dOVc.js → useActionFeedback-CElXij1W.js} +1 -1
  70. package/package.json +1 -1
  71. package/dist/Catalog-BrHGEI3p.js +0 -374
  72. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-P59vHZEn.js +0 -117
  73. package/dist/GroupList.vue_vue_type_script_setup_true_lang-oGNs8e8f.js +0 -1807
  74. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +0 -41
  75. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +0 -7931
  76. package/dist/Publish-Dkjnls7p.js +0 -1337
  77. package/dist/Setting-gYZoZxQG.js +0 -179
  78. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-igS-FXq5.js +0 -554
@@ -1,15 +1,16 @@
1
- import { defineComponent as xe, resolveComponent as k, openBlock as m, createBlock as w, withCtx as p, createElementVNode as i, toDisplayString as g, computed as F, ref as L, shallowRef as ke, h as ee, withModifiers as D, onUnmounted as He, unref as t, createElementBlock as _, createVNode as n, Fragment as C, renderList as V, createCommentVNode as q, mergeProps as oe, createTextVNode as Qe, nextTick as Je } from "vue";
1
+ import { defineComponent as xe, resolveComponent as k, openBlock as p, createBlock as S, withCtx as c, createElementVNode as i, toDisplayString as g, computed as F, ref as L, shallowRef as ke, h as ee, withModifiers as N, onUnmounted as He, unref as t, createElementBlock as f, createVNode as n, Fragment as C, renderList as V, createCommentVNode as D, mergeProps as oe, createTextVNode as Qe, nextTick as Je } from "vue";
2
2
  import { _ as R, d as We } from "./vuedraggable-CBtQLb_S.js";
3
3
  import { useI18n as Xe } from "@feedmepos/mf-common";
4
4
  import { useDialog as Ye, useBreakpoints as Ze, components as te } from "@feedmepos/ui-library";
5
- import { _ as eo } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
6
- import { _ as oo } from "./app-C_XNYz8_.js";
7
- import { _ as to } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js";
8
- import { _ as ao } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
9
- import { u as lo } from "./useActionFeedback-CXx7dOVc.js";
5
+ import { _ as eo } from "./PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js";
6
+ import { _ as oo } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
7
+ import { _ as to } from "./app-CxJjx2ma.js";
8
+ import { _ as ao } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js";
9
+ import { _ as lo } from "./PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js";
10
+ import { u as io } from "./useActionFeedback-CElXij1W.js";
10
11
  import { u as ye } from "./useEditorValidation-Ctef5Bxt.js";
11
- import { a as io, b as no, u as he } from "./provide-Bwf3KcOV.js";
12
- const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-lg-600" }, ro = /* @__PURE__ */ xe({
12
+ import { a as no, b as so, u as he } from "./provide-BGLSDsuJ.js";
13
+ const uo = { class: "fm-typo-en-body-lg-600" }, ro = { class: "fm-typo-en-body-lg-600" }, co = /* @__PURE__ */ xe({
13
14
  __name: "RemoveCookingGuideConfirmation",
14
15
  props: {
15
16
  row: {}
@@ -17,37 +18,34 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
17
18
  setup(Ce) {
18
19
  return (x, o) => {
19
20
  const $ = k("i18n-t");
20
- return m(), w($, {
21
+ return p(), S($, {
21
22
  keypath: x.row.linkedProductCount > 0 ? "menu.cooking_guide.dialogs.remove.message.confirm_with_products" : "menu.cooking_guide.dialogs.remove.message.confirm",
22
23
  scope: "global",
23
24
  tag: "p"
24
25
  }, {
25
- count: p(() => [
26
- i("span", so, g(x.row.linkedProductCount), 1)
26
+ count: c(() => [
27
+ i("span", uo, g(x.row.linkedProductCount), 1)
27
28
  ]),
28
- name: p(() => [
29
- i("span", uo, g(x.row.name), 1)
29
+ name: c(() => [
30
+ i("span", ro, g(x.row.name), 1)
30
31
  ]),
31
32
  _: 1
32
33
  }, 8, ["keypath"]);
33
34
  };
34
35
  }
35
- }), co = { class: "flex flex-1 justify-end" }, mo = {
36
+ }), mo = { class: "flex flex-1 justify-end" }, po = {
36
37
  key: 0,
37
38
  class: "flex flex-col gap-16 items-start"
38
- }, po = {
39
+ }, vo = {
39
40
  role: "alert",
40
41
  class: "text-fm-color-typo-secondary"
41
- }, vo = { class: "flex justify-end items-center" }, go = { class: "grow space-y-4" }, _o = { class: "fm-typo-en-body-lg-600" }, fo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ko = {
42
- key: 2,
43
- class: "fixed right-16 bottom-[72px] z-[100] w-[144px]"
44
- }, yo = { class: "fm-typo-en-title-md-600" }, ho = { class: "space-y-24" }, xo = { class: "flex items-center" }, Co = { class: "flex items-center gap-8" }, So = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, wo = { class: "flex-1" }, Fo = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, Vo = { class: "px-16 py-8 flex-1 flex gap-4 overflow-auto min-w-0" }, Io = { class: "fm-typo-en-body-md-500" }, $o = { class: "px-16 py-8 flex gap-8" }, Eo = { class: "flex gap-8" }, Oo = { class: "flex items-center gap-8" }, Lo = { class: "fm-typo-en-title-md-600" }, Ko = { class: "flex flex-col gap-32" }, Po = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, Mo = { class: "w-2/5 px-16 py-8" }, Uo = { class: "grow px-16 py-8" }, Go = { class: "w-2/5 px-16 py-8" }, To = { class: "grow px-16 py-8" }, Ro = { class: "space-y-16" }, jo = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, zo = { class: "flex gap-8 items-center justify-start" }, Ao = { class: "min-w-[700px]" }, Bo = { class: "flex bg-fm-color-neutral-gray-100" }, No = { class: "grow px-16 py-8" }, Do = { class: "w-[200px] px-16 py-8" }, qo = { class: "w-[200px] px-16 py-8" }, Ho = { class: "grow px-16 py-8" }, Qo = { class: "w-[200px] px-16 py-8" }, Jo = { class: "w-[200px] px-16 py-8" }, Wo = {
42
+ }, go = { class: "flex justify-end items-center" }, _o = { class: "grow space-y-4" }, fo = { class: "fm-typo-en-body-lg-600" }, bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ko = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, yo = { class: "fm-typo-en-title-md-600" }, ho = { class: "space-y-24" }, xo = { class: "flex items-center" }, Co = { class: "flex items-center gap-8" }, So = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, wo = { class: "flex-1" }, Fo = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, Vo = { class: "px-16 py-8 flex-1 flex gap-4 overflow-auto min-w-0" }, Io = { class: "fm-typo-en-body-md-500" }, $o = { class: "px-16 py-8 flex gap-8" }, Eo = { class: "flex gap-8" }, Oo = { class: "flex items-center gap-8" }, Lo = { class: "fm-typo-en-title-md-600" }, Ko = { class: "flex flex-col gap-32" }, Po = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, Mo = { class: "w-2/5 px-16 py-8" }, Uo = { class: "grow px-16 py-8" }, Go = { class: "w-2/5 px-16 py-8" }, To = { class: "grow px-16 py-8" }, Ro = { class: "space-y-16" }, zo = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, jo = { class: "flex gap-8 items-center justify-start" }, Ao = { class: "min-w-[700px]" }, Bo = { class: "flex bg-fm-color-neutral-gray-100" }, No = { class: "grow px-16 py-8" }, Do = { class: "w-[200px] px-16 py-8" }, qo = { class: "w-[200px] px-16 py-8" }, Ho = { class: "grow px-16 py-8" }, Qo = { class: "w-[200px] px-16 py-8" }, Jo = { class: "w-[200px] px-16 py-8" }, Wo = {
45
43
  key: 0,
46
44
  class: "h-8"
47
- }, ut = /* @__PURE__ */ xe({
45
+ }, dt = /* @__PURE__ */ xe({
48
46
  __name: "CookingGuide",
49
47
  setup(Ce) {
50
- const x = io(), { t: o } = Xe(), $ = no(), ae = Ye(), { breakpoints: Se } = Ze(), { run: H } = lo(), K = he(x.cookingGuide.list), h = F(
48
+ const x = no(), { t: o } = Xe(), $ = so(), ae = Ye(), { breakpoints: Se } = Ze(), { run: q } = io(), K = he(x.cookingGuide.list), h = F(
51
49
  () => K.value.status === "ready" ? K.value.value : null
52
50
  ), we = F(() => {
53
51
  var e;
@@ -55,7 +53,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
55
53
  }), le = F(() => {
56
54
  var e;
57
55
  return [...((e = h.value) == null ? void 0 : e.rows) ?? []];
58
- }), j = F(() => Se.value.xs), P = L(!1), M = L(!1), U = L(!1), ie = L(null), E = L(!1), Q = L(!1), d = ke(
56
+ }), H = F(() => Se.value.xs), P = L(!1), M = L(!1), U = L(!1), ie = L(null), E = L(!1), Q = L(!1), d = ke(
59
57
  x.cookingGuide.editor()
60
58
  ), G = ke(
61
59
  d.value.get()
@@ -63,20 +61,20 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
63
61
  let z = d.value.subscribe(
64
62
  (e) => G.value = e
65
63
  );
66
- const c = F(
64
+ const m = F(
67
65
  () => G.value.status === "ready" ? G.value.value : null
68
66
  ), J = ye(() => d.value), ne = F(
69
- () => c.value ? J.issue(c.value.fieldIssues, "name") ?? c.value.nameIssue : null
67
+ () => m.value ? J.issue(m.value.fieldIssues, "name") ?? m.value.nameIssue : null
70
68
  ), T = ye(
71
69
  () => {
72
70
  var e, a;
73
- return ((a = (e = c.value) == null ? void 0 : e.stepEditor) == null ? void 0 : a.id) ?? null;
71
+ return ((a = (e = m.value) == null ? void 0 : e.stepEditor) == null ? void 0 : a.id) ?? null;
74
72
  }
75
73
  );
76
74
  function se(e, a) {
77
75
  var y;
78
76
  const s = T.issue(
79
- ((y = c.value) == null ? void 0 : y.stepFieldIssues) ?? {},
77
+ ((y = m.value) == null ? void 0 : y.stepFieldIssues) ?? {},
80
78
  `variables.${e}.${a}`
81
79
  );
82
80
  return s ? [$(s)] : [];
@@ -104,7 +102,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
104
102
  }
105
103
  function me() {
106
104
  var e;
107
- if (!((e = c.value) != null && e.dirty)) return X();
105
+ if (!((e = m.value) != null && e.dirty)) return X();
108
106
  ae.open({
109
107
  title: o("menu.common.dialog.dismiss.title"),
110
108
  message: o("menu.common.dialog.dismiss.message"),
@@ -122,21 +120,21 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
122
120
  e ? P.value = !0 : me();
123
121
  }
124
122
  function pe() {
125
- var S;
126
- const e = ((S = c.value) == null ? void 0 : S.name) ?? "", a = d.value, s = J.submit(() => a.submit()), y = a.get(), f = y.status === "ready" && y.value.status === "submitting";
127
- H(() => s, {
123
+ var w;
124
+ const e = ((w = m.value) == null ? void 0 : w.name) ?? "", a = d.value, s = J.submit(() => a.submit()), y = a.get(), _ = y.status === "ready" && y.value.status === "submitting";
125
+ q(() => s, {
128
126
  successMessage: o("menu.cooking_guide.manager.action.saved", { name: e }),
129
127
  showLoading: () => {
130
- var A;
131
- return ((A = c.value) == null ? void 0 : A.status) === "submitting";
128
+ var j;
129
+ return ((j = m.value) == null ? void 0 : j.status) === "submitting";
132
130
  }
133
131
  }).finally(() => {
134
- f && a.dispose();
135
- }), f && ce();
132
+ _ && a.dispose();
133
+ }), _ && ce();
136
134
  }
137
135
  function Ie() {
138
136
  var e;
139
- return (((e = c.value) == null ? void 0 : e.bindings) ?? []).map(
137
+ return (((e = m.value) == null ? void 0 : e.bindings) ?? []).map(
140
138
  (a) => a.combinationKey ? { itemId: a.productId, combinationKey: a.combinationKey } : { itemId: a.productId }
141
139
  );
142
140
  }
@@ -163,9 +161,9 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
163
161
  (await T.submit(async () => {
164
162
  var s;
165
163
  return d.value.saveStep() ? { kind: "success", value: void 0 } : { kind: "rejected", issues: Object.entries(
166
- ((s = c.value) == null ? void 0 : s.stepFieldIssues) ?? {}
164
+ ((s = m.value) == null ? void 0 : s.stepFieldIssues) ?? {}
167
165
  ).flatMap(
168
- ([y, f]) => (f ?? []).map((S) => ({ ...S, field: y }))
166
+ ([y, _]) => (_ ?? []).map((w) => ({ ...w, field: y }))
169
167
  ) };
170
168
  })).kind === "success" && (U.value = !1);
171
169
  }
@@ -186,16 +184,16 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
186
184
  s ?? void 0,
187
185
  y ?? void 0
188
186
  ), s != null && Je(() => {
189
- const f = ge(), S = s + e.length + 4;
190
- f == null || f.focus(), f == null || f.setSelectionRange(S, S);
187
+ const _ = ge(), w = s + e.length + 4;
188
+ _ == null || _.focus(), _ == null || _.setSelectionRange(w, w);
191
189
  });
192
190
  }
193
191
  function Me(e) {
194
192
  d.value.openOverrides(e.productId, e.combinationKey), E.value = !0;
195
193
  }
196
194
  function Ue(e, a) {
197
- var s, y, f;
198
- return ((f = (y = (s = c.value) == null ? void 0 : s.overrideEditor) == null ? void 0 : y.values[e]) == null ? void 0 : f[a]) ?? "";
195
+ var s, y, _;
196
+ return ((_ = (y = (s = m.value) == null ? void 0 : s.overrideEditor) == null ? void 0 : y.values[e]) == null ? void 0 : _[a]) ?? "";
199
197
  }
200
198
  function Ge(e, a, s) {
201
199
  d.value.setOverrideValue(e, a, s);
@@ -209,7 +207,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
209
207
  function fe(e) {
210
208
  ae.open({
211
209
  title: o("menu.cooking_guide.dialogs.remove.title"),
212
- contentComponent: ee(ro, { row: e }),
210
+ contentComponent: ee(co, { row: e }),
213
211
  primaryActions: {
214
212
  text: o("menu.cooking_guide.actions.remove"),
215
213
  close: !0,
@@ -220,7 +218,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
220
218
  close: !0
221
219
  }
222
220
  }).onPrimary(
223
- () => H(() => x.cookingGuide.remove(e.id), {
221
+ () => q(() => x.cookingGuide.remove(e.id), {
224
222
  successMessage: o("menu.cooking_guide.manager.action.removed", {
225
223
  name: e.name
226
224
  })
@@ -230,14 +228,14 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
230
228
  async function Re() {
231
229
  Q.value = !0;
232
230
  try {
233
- await H(() => x.cookingGuide.retryRead(), {
231
+ await q(() => x.cookingGuide.retryRead(), {
234
232
  showLoading: !1
235
233
  });
236
234
  } finally {
237
235
  Q.value = !1;
238
236
  }
239
237
  }
240
- const je = F(() => [
238
+ const ze = F(() => [
241
239
  {
242
240
  accessorKey: "name",
243
241
  header: () => o("menu.cooking_guide.table.columns.name"),
@@ -271,7 +269,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
271
269
  textColor: "neutral-gray-400",
272
270
  disabled: e.row.original.remove.state !== "allowed",
273
271
  "aria-label": o("menu.cooking_guide.actions.remove"),
274
- onClick: D(
272
+ onClick: N(
275
273
  () => fe(e.row.original),
276
274
  ["stop", "prevent"]
277
275
  )
@@ -282,13 +280,13 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
282
280
  return He(() => {
283
281
  x.cookingGuide.search(""), z(), d.value.dispose();
284
282
  }), (e, a) => {
285
- const s = k("FmButton"), y = k("FmCircularProgress"), f = k("FmSearch"), S = k("FmTable"), A = k("FmListItem"), ze = k("FmList"), B = k("FmTextField"), Ae = k("FmCardSection"), Be = k("FmCard"), Z = k("FmSpacer"), be = k("FmSideSheet"), Ne = k("FmChip"), De = k("FmTextarea"), qe = k("FmDialog");
286
- return m(), w(ao, {
283
+ const s = k("FmButton"), y = k("FmCircularProgress"), _ = k("FmSearch"), w = k("FmTable"), j = k("FmListItem"), je = k("FmList"), A = k("FmTextField"), Ae = k("FmCardSection"), Be = k("FmCard"), Z = k("FmSpacer"), be = k("FmSideSheet"), Ne = k("FmChip"), De = k("FmTextarea"), qe = k("FmDialog");
284
+ return p(), S(lo, {
287
285
  heading: t(o)("menu.cooking_guide.title")
288
286
  }, {
289
- "append-heading": p(() => [
290
- i("div", co, [
291
- h.value && h.value.totalCount > 0 && !j.value ? (m(), w(s, {
287
+ "append-heading": c(() => [
288
+ i("div", mo, [
289
+ h.value && h.value.totalCount > 0 && !H.value ? (p(), S(s, {
292
290
  key: 0,
293
291
  class: "ml-auto",
294
292
  disabled: h.value.create.state !== "allowed",
@@ -296,12 +294,12 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
296
294
  "prepend-icon": "add",
297
295
  variant: "primary",
298
296
  onClick: W
299
- }, null, 8, ["disabled", "label"])) : q("", !0)
297
+ }, null, 8, ["disabled", "label"])) : D("", !0)
300
298
  ])
301
299
  ]),
302
- default: p(() => [
303
- t(K).status === "error" ? (m(), _("div", mo, [
304
- i("p", po, g(t($)(t(K).error.message)), 1),
300
+ default: c(() => [
301
+ t(K).status === "error" ? (p(), f("div", po, [
302
+ i("p", vo, g(t($)(t(K).error.message)), 1),
305
303
  n(s, {
306
304
  label: t(o)("menu.common.actions.retry"),
307
305
  loading: Q.value,
@@ -309,40 +307,40 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
309
307
  variant: "secondary",
310
308
  onClick: Re
311
309
  }, null, 8, ["label", "loading"])
312
- ])) : t(K).status === "loading" ? (m(), w(y, { key: 1 })) : h.value && h.value.totalCount === 0 ? (m(), w(t(eo), {
310
+ ])) : t(K).status === "loading" ? (p(), S(y, { key: 1 })) : h.value && h.value.totalCount === 0 ? (p(), S(t(oo), {
313
311
  key: 2,
314
312
  action: h.value.create.state === "allowed" ? { text: t(o)("menu.cooking_guide.empty.action"), callback: W } : void 0,
315
313
  subtitle: t(o)("menu.cooking_guide.empty.subtitle"),
316
314
  title: t(o)("menu.cooking_guide.empty.title")
317
- }, null, 8, ["action", "subtitle", "title"])) : h.value ? (m(), _(C, { key: 3 }, [
318
- i("div", vo, [
319
- n(f, {
320
- autofocus: !j.value,
315
+ }, null, 8, ["action", "subtitle", "title"])) : h.value ? (p(), f(C, { key: 3 }, [
316
+ i("div", go, [
317
+ n(_, {
318
+ autofocus: "",
321
319
  class: "my-8 w-[320px] xs:w-full xs:px-16",
322
320
  "model-value": we.value,
323
321
  placeholder: t(o)("menu.cooking_guide.table.search.placeholder"),
324
322
  "onUpdate:modelValue": a[0] || (a[0] = (l) => t(x).cookingGuide.search(String(l ?? "")))
325
- }, null, 8, ["autofocus", "model-value", "placeholder"])
323
+ }, null, 8, ["model-value", "placeholder"])
326
324
  ]),
327
- j.value ? (m(), w(ze, {
325
+ H.value ? (p(), S(je, {
328
326
  key: 1,
329
327
  class: "w-full px-16 flex-1 min-h-0 overflow-scroll pb-64",
330
328
  separator: ""
331
329
  }, {
332
- default: p(() => [
333
- (m(!0), _(C, null, V(le.value, (l) => (m(), w(A, {
330
+ default: c(() => [
331
+ (p(!0), f(C, null, V(le.value, (l) => (p(), S(j, {
334
332
  key: l.id,
335
333
  class: "!py-12 !px-0",
336
334
  onClick: (u) => re(l)
337
335
  }, {
338
- default: p(() => [
339
- i("div", go, [
340
- i("div", _o, g(l.name), 1),
336
+ default: c(() => [
337
+ i("div", _o, [
338
+ i("div", fo, g(l.name), 1),
341
339
  i("div", null, [
342
- i("div", fo, g(t(o)("menu.cooking_guide.table.mobile.products_linked", {
340
+ i("div", bo, g(t(o)("menu.cooking_guide.table.mobile.products_linked", {
343
341
  count: l.linkedProductCount
344
342
  })), 1),
345
- i("div", bo, g(t(o)("menu.cooking_guide.table.columns.steps", {
343
+ i("div", ko, g(t(o)("menu.cooking_guide.table.columns.steps", {
346
344
  count: l.stepCount
347
345
  })), 1)
348
346
  ])
@@ -353,17 +351,17 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
353
351
  icon: "delete",
354
352
  "text-color": "neutral-gray-400",
355
353
  variant: "tertiary",
356
- onClick: D((u) => fe(l), ["stop"])
354
+ onClick: N((u) => fe(l), ["stop"])
357
355
  }, null, 8, ["aria-label", "disabled", "onClick"])
358
356
  ]),
359
357
  _: 2
360
358
  }, 1032, ["onClick"]))), 128))
361
359
  ]),
362
360
  _: 1
363
- })) : (m(), w(oo, { key: 0 }, {
364
- default: p(() => [
365
- n(S, {
366
- "column-defs": je.value,
361
+ })) : (p(), S(to, { key: 0 }, {
362
+ default: c(() => [
363
+ n(w, {
364
+ "column-defs": ze.value,
367
365
  "hide-footer": "",
368
366
  "page-size": h.value.rows.length,
369
367
  "row-data": le.value,
@@ -374,17 +372,19 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
374
372
  ]),
375
373
  _: 1
376
374
  })),
377
- h.value.totalCount > 0 && j.value ? (m(), _("div", ko, [
378
- n(s, {
379
- class: "w-full",
380
- disabled: h.value.create.state !== "allowed",
381
- label: t(o)("menu.cooking_guide.actions.add"),
382
- "prepend-icon": "add",
383
- variant: "fab",
384
- onClick: W
385
- }, null, 8, ["disabled", "label"])
386
- ])) : q("", !0)
387
- ], 64)) : q("", !0),
375
+ h.value.totalCount > 0 && H.value ? (p(), S(eo, { key: 2 }, {
376
+ default: c(() => [
377
+ n(s, {
378
+ disabled: h.value.create.state !== "allowed",
379
+ label: t(o)("menu.cooking_guide.actions.add"),
380
+ "prepend-icon": "add",
381
+ variant: "fab",
382
+ onClick: W
383
+ }, null, 8, ["disabled", "label"])
384
+ ]),
385
+ _: 1
386
+ })) : D("", !0)
387
+ ], 64)) : D("", !0),
388
388
  n(be, {
389
389
  "model-value": P.value,
390
390
  "is-container": t(te).FmForm,
@@ -397,19 +397,19 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
397
397
  "onOn:clickedAway": me,
398
398
  "onUpdate:modelValue": Ve
399
399
  }, {
400
- "side-sheet-header": p(() => {
400
+ "side-sheet-header": c(() => {
401
401
  var l;
402
402
  return [
403
- i("p", yo, g(((l = c.value) == null ? void 0 : l.mode) === "update" ? t(o)("menu.cooking_guide.dialog.update.title") : t(o)("menu.cooking_guide.dialog.add.title")), 1)
403
+ i("p", yo, g(((l = m.value) == null ? void 0 : l.mode) === "update" ? t(o)("menu.cooking_guide.dialog.update.title") : t(o)("menu.cooking_guide.dialog.add.title")), 1)
404
404
  ];
405
405
  }),
406
- "side-sheet-footer": p(() => {
406
+ "side-sheet-footer": c(() => {
407
407
  var l, u;
408
408
  return [
409
409
  i("div", Eo, [
410
410
  n(s, {
411
- disabled: ((l = c.value) == null ? void 0 : l.submit.state) !== "allowed",
412
- label: ((u = c.value) == null ? void 0 : u.mode) === "update" ? t(o)("menu.cooking_guide.dialog.update.action") : t(o)("menu.cooking_guide.dialog.add.action"),
411
+ disabled: ((l = m.value) == null ? void 0 : l.submit.state) !== "allowed",
412
+ label: ((u = m.value) == null ? void 0 : u.mode) === "update" ? t(o)("menu.cooking_guide.dialog.update.action") : t(o)("menu.cooking_guide.dialog.add.action"),
413
413
  type: "button",
414
414
  variant: "primary",
415
415
  onClick: pe
@@ -422,20 +422,20 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
422
422
  ])
423
423
  ];
424
424
  }),
425
- default: p(() => [
425
+ default: c(() => [
426
426
  i("div", ho, [
427
427
  n(R, {
428
428
  title: t(o)("menu.cooking_guide.dialog.sections.guide_detail.title")
429
429
  }, {
430
- default: p(() => {
430
+ default: c(() => {
431
431
  var l, u;
432
432
  return [
433
- n(B, oe(
433
+ n(A, oe(
434
434
  {
435
- autofocus: ((l = c.value) == null ? void 0 : l.mode) === "create",
435
+ autofocus: ((l = m.value) == null ? void 0 : l.mode) === "create",
436
436
  "error-messages": ne.value ? [t($)(ne.value)] : [],
437
437
  label: t(o)("menu.cooking_guide.dialog.sections.guide_detail.name.label"),
438
- "model-value": ((u = c.value) == null ? void 0 : u.name) ?? "",
438
+ "model-value": ((u = m.value) == null ? void 0 : u.name) ?? "",
439
439
  placeholder: t(o)(
440
440
  "menu.cooking_guide.dialog.sections.guide_detail.name.placeholder"
441
441
  )
@@ -452,7 +452,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
452
452
  n(R, {
453
453
  title: t(o)("menu.cooking_guide.dialog.sections.steps.title")
454
454
  }, {
455
- "append-title": p(() => [
455
+ "append-title": c(() => [
456
456
  n(s, {
457
457
  label: t(o)("menu.cooking_guide.dialog.sections.steps.add"),
458
458
  icon: "add",
@@ -462,24 +462,24 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
462
462
  onClick: Ee
463
463
  }, null, 8, ["label"])
464
464
  ]),
465
- default: p(() => {
465
+ default: c(() => {
466
466
  var l;
467
467
  return [
468
468
  n(t(We), {
469
- "model-value": ((l = c.value) == null ? void 0 : l.steps) ?? [],
469
+ "model-value": ((l = m.value) == null ? void 0 : l.steps) ?? [],
470
470
  class: "flex flex-col gap-16",
471
471
  handle: ".handle",
472
472
  "item-key": "id",
473
473
  "onUpdate:modelValue": Ke
474
474
  }, {
475
- item: p(({ element: u }) => [
475
+ item: c(({ element: u }) => [
476
476
  n(Be, {
477
477
  class: "rounded-md mb-16 items-center",
478
478
  horizontal: "",
479
479
  variant: "outlined",
480
480
  onClick: (b) => ve(u.id)
481
481
  }, {
482
- default: p(() => [
482
+ default: c(() => [
483
483
  i("div", xo, [
484
484
  n(s, {
485
485
  class: "handle",
@@ -488,7 +488,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
488
488
  })
489
489
  ]),
490
490
  n(Ae, { class: "grow" }, {
491
- default: p(() => [
491
+ default: c(() => [
492
492
  Qe(g(u.instruction), 1)
493
493
  ]),
494
494
  _: 2
@@ -498,7 +498,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
498
498
  "prepend-icon": "delete",
499
499
  "text-color": "neutral-gray-400",
500
500
  variant: "tertiary",
501
- onClick: D((b) => Le(u.id), ["stop"])
501
+ onClick: N((b) => Le(u.id), ["stop"])
502
502
  }, null, 8, ["aria-label", "onClick"])
503
503
  ]),
504
504
  _: 2
@@ -513,7 +513,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
513
513
  n(R, {
514
514
  title: t(o)("menu.cooking_guide.dialog.sections.apply_product.title")
515
515
  }, {
516
- "append-title": p(() => [
516
+ "append-title": c(() => [
517
517
  n(Z),
518
518
  n(s, {
519
519
  label: t(o)("menu.cooking_guide.dialog.sections.apply_product.link"),
@@ -524,27 +524,27 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
524
524
  onClick: a[2] || (a[2] = (l) => M.value = !0)
525
525
  }, null, 8, ["label"])
526
526
  ]),
527
- default: p(() => {
527
+ default: c(() => {
528
528
  var l, u, b;
529
529
  return [
530
530
  i("div", Co, [
531
531
  i("div", So, g(t(o)(
532
532
  "menu.cooking_guide.dialog.sections.apply_product.products_linked",
533
- { count: ((l = c.value) == null ? void 0 : l.bindings.length) ?? 0 }
533
+ { count: ((l = m.value) == null ? void 0 : l.bindings.length) ?? 0 }
534
534
  )), 1),
535
535
  i("div", wo, [
536
- n(f, {
537
- "model-value": ((u = c.value) == null ? void 0 : u.linkedFilter) ?? "",
536
+ n(_, {
537
+ "model-value": ((u = m.value) == null ? void 0 : u.linkedFilter) ?? "",
538
538
  placeholder: t(o)("menu.cooking_guide.dialog.sections.apply_product.search"),
539
539
  "onUpdate:modelValue": a[3] || (a[3] = (r) => d.value.setLinkedFilter(String(r ?? "")))
540
540
  }, null, 8, ["model-value", "placeholder"])
541
541
  ])
542
542
  ]),
543
- (m(!0), _(C, null, V(((b = c.value) == null ? void 0 : b.linkedGroups) ?? [], (r) => (m(), _(C, {
543
+ (p(!0), f(C, null, V(((b = m.value) == null ? void 0 : b.linkedGroups) ?? [], (r) => (p(), f(C, {
544
544
  key: r.name ?? "uncategorised"
545
545
  }, [
546
546
  i("div", Fo, g(r.isSynthetic ? t(o)("menu.tree_editor.labels.addon") : r.name), 1),
547
- (m(!0), _(C, null, V(r.bindings, (v) => (m(), _("div", {
547
+ (p(!0), f(C, null, V(r.bindings, (v) => (p(), f("div", {
548
548
  key: v.binding.productId + v.binding.combinationKey,
549
549
  class: "flex items-center"
550
550
  }, [
@@ -563,9 +563,9 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
563
563
  icon: "delete",
564
564
  variant: "tertiary",
565
565
  onClick: (O) => {
566
- var N;
566
+ var B;
567
567
  return d.value.setLinkedProducts(
568
- (((N = c.value) == null ? void 0 : N.bindings) ?? []).filter(
568
+ (((B = m.value) == null ? void 0 : B.bindings) ?? []).filter(
569
569
  (I) => I.productId !== v.binding.productId || I.combinationKey !== v.binding.combinationKey
570
570
  ).map((I) => ({
571
571
  productId: I.productId,
@@ -585,7 +585,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
585
585
  ]),
586
586
  _: 1
587
587
  }, 8, ["model-value", "is-container", "is-container-props"]),
588
- n(to, {
588
+ n(ao, {
589
589
  modelValue: M.value,
590
590
  "onUpdate:modelValue": a[4] || (a[4] = (l) => M.value = l),
591
591
  catalogue: Fe.value,
@@ -605,7 +605,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
605
605
  "max-width": 560,
606
606
  "onUpdate:modelValue": Y
607
607
  }, {
608
- "side-sheet-header": p(() => {
608
+ "side-sheet-header": c(() => {
609
609
  var l, u;
610
610
  return [
611
611
  i("div", Oo, [
@@ -615,16 +615,16 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
615
615
  variant: "tertiary",
616
616
  onClick: Y
617
617
  }, null, 8, ["label"]),
618
- i("span", Lo, g((u = (l = c.value) == null ? void 0 : l.stepEditor) != null && u.isNew ? t(o)("menu.cooking_guide.step_dialog.add.title") : t(o)("menu.cooking_guide.step_dialog.update.title")), 1)
618
+ i("span", Lo, g((u = (l = m.value) == null ? void 0 : l.stepEditor) != null && u.isNew ? t(o)("menu.cooking_guide.step_dialog.add.title") : t(o)("menu.cooking_guide.step_dialog.update.title")), 1)
619
619
  ])
620
620
  ];
621
621
  }),
622
- "side-sheet-footer": p(() => {
622
+ "side-sheet-footer": c(() => {
623
623
  var l, u;
624
624
  return [
625
- i("div", zo, [
625
+ i("div", jo, [
626
626
  n(s, {
627
- label: (u = (l = c.value) == null ? void 0 : l.stepEditor) != null && u.isNew ? t(o)("menu.cooking_guide.step_dialog.add.action") : t(o)("menu.cooking_guide.step_dialog.update.action"),
627
+ label: (u = (l = m.value) == null ? void 0 : l.stepEditor) != null && u.isNew ? t(o)("menu.cooking_guide.step_dialog.add.action") : t(o)("menu.cooking_guide.step_dialog.update.action"),
628
628
  size: "lg",
629
629
  type: "submit",
630
630
  variant: "primary"
@@ -638,12 +638,12 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
638
638
  ])
639
639
  ];
640
640
  }),
641
- default: p(() => [
641
+ default: c(() => [
642
642
  i("div", Ko, [
643
643
  n(R, {
644
644
  title: t(o)("menu.cooking_guide.step_dialog.sections.variables.title")
645
645
  }, {
646
- "append-title": p(() => [
646
+ "append-title": c(() => [
647
647
  n(Z),
648
648
  n(s, {
649
649
  label: t(o)("menu.cooking_guide.step_dialog.sections.variables.add"),
@@ -654,7 +654,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
654
654
  onClick: d.value.addStepVariable
655
655
  }, null, 8, ["label", "onClick"])
656
656
  ]),
657
- default: p(() => {
657
+ default: c(() => {
658
658
  var l, u;
659
659
  return [
660
660
  i("div", null, [
@@ -666,12 +666,12 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
666
666
  "menu.cooking_guide.step_dialog.sections.variables.columns.value"
667
667
  )), 1)
668
668
  ]),
669
- (m(!0), _(C, null, V(((u = (l = c.value) == null ? void 0 : l.stepEditor) == null ? void 0 : u.variables) ?? [], (b, r) => (m(), _("div", {
669
+ (p(!0), f(C, null, V(((u = (l = m.value) == null ? void 0 : l.stepEditor) == null ? void 0 : u.variables) ?? [], (b, r) => (p(), f("div", {
670
670
  key: r,
671
671
  class: "flex items-center border-b border-b-fm-color-neutral-gray-100"
672
672
  }, [
673
673
  i("div", Go, [
674
- n(B, oe(
674
+ n(A, oe(
675
675
  {
676
676
  "aria-label": t(o)(
677
677
  "menu.cooking_guide.step_dialog.sections.variables.accessibility.key_input",
@@ -693,7 +693,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
693
693
  ), null, 16, ["aria-label", "model-value", "placeholder", "error-messages"])
694
694
  ]),
695
695
  i("div", To, [
696
- n(B, oe(
696
+ n(A, oe(
697
697
  {
698
698
  "aria-label": t(o)(
699
699
  "menu.cooking_guide.step_dialog.sections.variables.accessibility.value_input",
@@ -733,27 +733,27 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
733
733
  n(R, {
734
734
  title: t(o)("menu.cooking_guide.step_dialog.sections.instruction.title")
735
735
  }, {
736
- default: p(() => {
736
+ default: c(() => {
737
737
  var l, u, b, r;
738
738
  return [
739
739
  i("div", Ro, [
740
- i("div", jo, [
741
- (m(!0), _(C, null, V((((u = (l = c.value) == null ? void 0 : l.stepEditor) == null ? void 0 : u.variables) ?? []).filter(
742
- (v, O, N) => v.key && N.findIndex(
740
+ i("div", zo, [
741
+ (p(!0), f(C, null, V((((u = (l = m.value) == null ? void 0 : l.stepEditor) == null ? void 0 : u.variables) ?? []).filter(
742
+ (v, O, B) => v.key && B.findIndex(
743
743
  (I) => I.key === v.key
744
744
  ) === O
745
- ), (v) => (m(), w(Ne, {
745
+ ), (v) => (p(), S(Ne, {
746
746
  key: v.key,
747
747
  label: v.key,
748
748
  class: "text-fm-color-primary bg-fm-color-system-warning-100",
749
- onMousedown: D((O) => Pe(v.key), ["prevent"])
749
+ onMousedown: N((O) => Pe(v.key), ["prevent"])
750
750
  }, null, 8, ["label", "onMousedown"]))), 128))
751
751
  ]),
752
752
  n(De, {
753
753
  ref_key: "instructionInput",
754
754
  ref: ie,
755
755
  "aria-label": t(o)("menu.cooking_guide.step_dialog.sections.instruction.title"),
756
- "model-value": ((r = (b = c.value) == null ? void 0 : b.stepEditor) == null ? void 0 : r.instruction) ?? "",
756
+ "model-value": ((r = (b = m.value) == null ? void 0 : b.stepEditor) == null ? void 0 : r.instruction) ?? "",
757
757
  "onUpdate:modelValue": a[5] || (a[5] = (v) => d.value.setStepInstruction(String(v ?? "")))
758
758
  }, null, 8, ["aria-label", "model-value"])
759
759
  ])
@@ -767,29 +767,33 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
767
767
  }, 8, ["model-value", "is-container", "is-container-props"]),
768
768
  n(qe, {
769
769
  "model-value": E.value,
770
- "max-width": 748,
770
+ "min-width": "min(calc(100% - 48px), 748px)",
771
771
  overlay: !0,
772
772
  "onUpdate:modelValue": a[6] || (a[6] = (l) => {
773
773
  l ? E.value = !0 : _e();
774
774
  })
775
775
  }, {
776
- "dialog-header": p(() => [
776
+ "dialog-header": c(() => [
777
777
  i("span", null, g(t(o)("menu.cooking_guide.step_override_dialog.title")), 1)
778
778
  ]),
779
- "dialog-footer": p(() => [
779
+ "dialog-footer": c(() => [
780
780
  n(Z),
781
781
  n(s, {
782
+ class: "sm:w-full xs:w-full",
782
783
  label: t(o)("menu.cooking_guide.step_override_dialog.actions.cancel"),
784
+ size: "md",
783
785
  variant: "tertiary",
784
786
  onClick: _e
785
787
  }, null, 8, ["label"]),
786
788
  n(s, {
789
+ class: "sm:w-full xs:w-full",
787
790
  label: t(o)("menu.cooking_guide.step_override_dialog.actions.save"),
791
+ size: "md",
788
792
  variant: "primary",
789
793
  onClick: Te
790
794
  }, null, 8, ["label"])
791
795
  ]),
792
- default: p(() => {
796
+ default: c(() => {
793
797
  var l;
794
798
  return [
795
799
  i("div", Ao, [
@@ -798,20 +802,20 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
798
802
  i("span", Do, g(t(o)("menu.cooking_guide.step_override_dialog.columns.variables")), 1),
799
803
  i("span", qo, g(t(o)("menu.cooking_guide.step_override_dialog.columns.value")), 1)
800
804
  ]),
801
- (m(!0), _(C, null, V(((l = c.value) == null ? void 0 : l.steps) ?? [], (u) => (m(), _("div", {
805
+ (p(!0), f(C, null, V(((l = m.value) == null ? void 0 : l.steps) ?? [], (u) => (p(), f("div", {
802
806
  key: u.id,
803
807
  class: "flex border-t-2"
804
808
  }, [
805
809
  i("div", Ho, g(u.instruction), 1),
806
810
  i("div", Qo, [
807
- (m(!0), _(C, null, V(u.variables, (b, r) => (m(), _("div", {
811
+ (p(!0), f(C, null, V(u.variables, (b, r) => (p(), f("div", {
808
812
  key: r,
809
813
  class: "py-8"
810
814
  }, g(r), 1))), 128))
811
815
  ]),
812
816
  i("div", Jo, [
813
- (m(!0), _(C, null, V(u.variables, (b, r, v) => (m(), _(C, { key: r }, [
814
- n(B, {
817
+ (p(!0), f(C, null, V(u.variables, (b, r, v) => (p(), f(C, { key: r }, [
818
+ n(A, {
815
819
  "aria-label": t(o)(
816
820
  "menu.cooking_guide.step_override_dialog.accessibility.value_input",
817
821
  { instruction: u.instruction, variable: r }
@@ -820,7 +824,7 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
820
824
  placeholder: b,
821
825
  "onUpdate:modelValue": (O) => Ge(u.id, r, String(O ?? ""))
822
826
  }, null, 8, ["aria-label", "model-value", "placeholder", "onUpdate:modelValue"]),
823
- v < Object.keys(u.variables).length - 1 ? (m(), _("div", Wo)) : q("", !0)
827
+ v < Object.keys(u.variables).length - 1 ? (p(), f("div", Wo)) : D("", !0)
824
828
  ], 64))), 128))
825
829
  ])
826
830
  ]))), 128))
@@ -838,5 +842,5 @@ const so = { class: "fm-typo-en-body-lg-600" }, uo = { class: "fm-typo-en-body-l
838
842
  }
839
843
  });
840
844
  export {
841
- ut as default
845
+ dt as default
842
846
  };