@feedmepos/mf-menu-portal 1.0.4-dev.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-CrpoLCjA.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-D3CmOOPY.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-BNATtZEY.js → CatalogBinding-3rhuTWDD.js} +30 -29
  6. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-BmG-xpW4.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
  7. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BFsRDFpj.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-DMoXTsfG.js → Category-BVCdkA5K.js} +14 -13
  10. package/dist/{Category-DxjdQ-NN.js → Category-P5DYjIeF.js} +2 -2
  11. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-B3Ts1O-9.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
  12. package/dist/{CookingGuide-DiZZDYD-.js → CookingGuide-Y-c1NLP5.js} +144 -140
  13. package/dist/{Group-rzfh_o6r.js → Group-D6wA3jCF.js} +2 -2
  14. package/dist/{Group-DFR8q-tt.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-DpjGIuH9.js → Ingredient-CJHkJZ0y.js} +94 -93
  17. package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
  18. package/dist/{MenuSetting-DR-pDSF_.js → MenuSetting-YcEGo51l.js} +462 -446
  19. package/dist/{OrderPacing-JcTuweqF.js → OrderPacing-DwQU7c0Y.js} +207 -204
  20. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.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-BZyun5lZ.js → Preview-DLeXy5V-.js} +2 -2
  24. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
  25. package/dist/{PrintRoute-CzEx2dCt.js → PrintRoute-R38w0-U2.js} +151 -150
  26. package/dist/{Product-CQb0n06E.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-CBlDEjqF.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
  30. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
  31. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
  32. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-0UwUcA2L.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
  33. package/dist/{ProductInternalTools-QrBR1nFp.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
  34. package/dist/{ProductInventoryDialog-fV38GO1a.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
  35. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
  36. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-BwKQESr3.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
  37. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
  38. package/dist/{Products-B8tysOAL.js → Products-DUE10OyS.js} +51 -49
  39. package/dist/Publish-BlMxKniP.js +1300 -0
  40. package/dist/{Recipe-Ddx31csF.js → Recipe-BhjPAidT.js} +83 -82
  41. package/dist/{Scheduler-CST5L_cw.js → Scheduler-wKG3_D1f.js} +137 -136
  42. package/dist/{ServingSequence-DYyEZI2S.js → ServingSequence-B26BETQs.js} +63 -61
  43. package/dist/Setting-DBdNl3WL.js +185 -0
  44. package/dist/{Subcategory-BIgjzVta.js → Subcategory-B06yMcuE.js} +147 -144
  45. package/dist/{Takeaway-CekhGM-m.js → Takeaway-CFATfy-6.js} +2 -2
  46. package/dist/{Takeaway-aXsPg4JT.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-CshqYpc9.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
  50. package/dist/{Unit-BMW8u0Us.js → Unit-B5wKBmIT.js} +90 -89
  51. package/dist/{Variant-CZsrYRMU.js → Variant-C5ePu0za.js} +167 -174
  52. package/dist/{_id_-D4swrvNa.js → _id_-HRDqt6oD.js} +3 -3
  53. package/dist/{app-BWwwHsWi.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-D7TdiHt4.js → menu-compute-CQdeCEBO.js} +19 -19
  66. package/dist/assets/{validate-menu-DXppWUVq.js → validate-menu-BVo4fNWG.js} +14 -14
  67. package/dist/mf-menu-portal.css +1 -1
  68. package/dist/{provide-CDmXzkhz.js → provide-BGLSDsuJ.js} +99816 -99564
  69. package/dist/{useActionFeedback-Dm2HDa_2.js → useActionFeedback-CElXij1W.js} +1 -1
  70. package/package.json +1 -1
  71. package/dist/Catalog-VU3HhNro.js +0 -374
  72. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Bk4FqVmx.js +0 -117
  73. package/dist/GroupList.vue_vue_type_script_setup_true_lang-DiN-wQXX.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-DTvOvFNa.js +0 -1337
  77. package/dist/Setting-Ip0pGjks.js +0 -179
  78. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CaRR4_j3.js +0 -554
@@ -1,37 +1,35 @@
1
- import { defineComponent as ae, computed as c, ref as D, shallowRef as X, h as ke, withModifiers as Y, onUnmounted as _e, resolveComponent as y, openBlock as r, createBlock as h, unref as n, withCtx as _, createElementBlock as b, toDisplayString as F, Fragment as Z, createElementVNode as m, withDirectives as he, createVNode as d, renderList as xe, createCommentVNode as V, mergeProps as we } from "vue";
1
+ import { defineComponent as ae, computed as c, ref as D, shallowRef as X, h as ke, withModifiers as Y, onUnmounted as _e, resolveComponent as g, openBlock as r, createBlock as _, unref as n, withCtx as y, createElementBlock as k, toDisplayString as F, Fragment as Z, createElementVNode as m, withDirectives as he, createVNode as d, renderList as xe, createCommentVNode as V, mergeProps as we } from "vue";
2
2
  import { useI18n as Ce } from "@feedmepos/mf-common";
3
3
  import { useDialog as Fe, useBreakpoints as Be, components as ee, FmButtonVariant as Se } from "@feedmepos/ui-library";
4
- import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
5
- import { _ as $e } from "./BindingLinkDialog.vue_vue_type_script_setup_true_lang-BZVQRyRI.js";
6
- import { _ as te } from "./BindingTable.vue_vue_type_script_setup_true_lang-D3CmOOPY.js";
7
- import { _ as Ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
8
- import { _ as Ue } from "./ListCountTag.vue_vue_type_script_setup_true_lang-0bjk8Aly.js";
9
- import { u as Ie } from "./useActionFeedback-Dm2HDa_2.js";
10
- import { u as Me } from "./useEditorValidation-Ctef5Bxt.js";
11
- import { b as De, u as Ee, a as Te } from "./provide-CDmXzkhz.js";
12
- const qe = {
4
+ import { _ as Ve } from "./PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js";
5
+ import { _ as $e } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
6
+ import { _ as Ae } from "./BindingLinkDialog.vue_vue_type_script_setup_true_lang-BZVQRyRI.js";
7
+ import { _ as te } from "./BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js";
8
+ import { _ as Ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js";
9
+ import { _ as Ie } from "./ListCountTag.vue_vue_type_script_setup_true_lang-0bjk8Aly.js";
10
+ import { u as Me } from "./useActionFeedback-CElXij1W.js";
11
+ import { u as De } from "./useEditorValidation-Ctef5Bxt.js";
12
+ import { b as Ee, u as Te, a as qe } from "./provide-BGLSDsuJ.js";
13
+ const Le = {
13
14
  key: 0,
14
15
  class: "flex-1 flex justify-between gap-8 pl-8"
15
- }, ze = {
16
+ }, Ne = {
16
17
  key: 0,
17
18
  role: "alert",
18
19
  class: "text-fm-color-typo-secondary"
19
- }, Le = {
20
+ }, Re = {
20
21
  key: 1,
21
22
  class: "text-fm-color-typo-secondary"
22
- }, Ne = { class: "flex justify-end items-center" }, Re = { class: "w-[320px] xs:w-full xs:px-16 xs:mt-8" }, je = {
23
+ }, ze = { class: "flex justify-end items-center" }, je = { class: "w-[320px] xs:w-full xs:px-16 xs:mt-8" }, Pe = {
23
24
  key: 1,
24
25
  class: "flex-1 min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
25
- }, Pe = ["onClick"], Qe = { class: "min-w-0 flex-1" }, Ke = { class: "fm-typo-en-body-lg-600 mb-4 break-words" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, Ge = {
26
- key: 2,
27
- class: "fixed right-16 bottom-[72px] z-[100]"
28
- }, He = { class: "fm-typo-en-title-md-600" }, Je = { class: "pt-8 space-y-40" }, We = { class: "flex flex-row gap-16" }, Xe = { class: "flex gap-8 items-center justify-start" }, Ye = /* @__PURE__ */ ae({
26
+ }, Qe = ["onClick"], Ke = { class: "min-w-0 flex-1" }, Oe = { class: "fm-typo-en-body-lg-600 mb-4 break-words" }, Ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, He = { class: "fm-typo-en-title-md-600" }, Je = { class: "pt-8 space-y-40" }, We = { class: "flex flex-row gap-16" }, Xe = { class: "flex gap-8 items-center justify-start" }, Ye = /* @__PURE__ */ ae({
29
27
  __name: "RecipeList",
30
28
  props: {
31
29
  sdk: {}
32
30
  },
33
31
  setup(E) {
34
- const f = E, T = {
32
+ const b = E, T = {
35
33
  mounted: (e, t) => {
36
34
  var o;
37
35
  return (o = e.querySelector("input")) == null ? void 0 : o.setAttribute("aria-label", t.value);
@@ -40,7 +38,7 @@ const qe = {
40
38
  var o;
41
39
  return (o = e.querySelector("input")) == null ? void 0 : o.setAttribute("aria-label", t.value);
42
40
  }
43
- }, { t: a } = Ce(), B = De(), ne = Fe(), { run: q } = Ie(), p = Ee(f.sdk.recipe.list), u = c(
41
+ }, { t: a } = Ce(), B = Ee(), ne = Fe(), { run: q } = Me(), p = Te(b.sdk.recipe.list), u = c(
44
42
  () => p.value.status === "ready" ? p.value.value : null
45
43
  ), ie = c(() => {
46
44
  var e;
@@ -48,8 +46,8 @@ const qe = {
48
46
  }), { breakpoints: le } = Be(), $ = c(() => le.value.xs), se = c(() => {
49
47
  var e;
50
48
  return [...((e = u.value) == null ? void 0 : e.rows) ?? []];
51
- }), k = D(!1), A = D(!1), S = D("recipe"), s = X(
52
- f.sdk.recipe.editor()
49
+ }), h = D(!1), A = D(!1), S = D("recipe"), s = X(
50
+ b.sdk.recipe.editor()
53
51
  ), x = X(
54
52
  s.value.get()
55
53
  );
@@ -60,12 +58,12 @@ const qe = {
60
58
  );
61
59
  const l = c(
62
60
  () => x.value.status === "ready" ? x.value.value : null
63
- ), v = Me(() => s.value), z = c(
61
+ ), v = De(() => s.value), L = c(
64
62
  () => l.value ? v.issue(l.value.fieldIssues, "name") ?? l.value.nameIssue : null
65
- ), L = c(
63
+ ), N = c(
66
64
  () => l.value ? v.issue(l.value.fieldIssues, "contains") ?? l.value.containsIssue : null
67
65
  );
68
- function N(e) {
66
+ function R(e) {
69
67
  var o;
70
68
  const t = ((o = l.value) == null ? void 0 : o.fieldIssues) ?? {};
71
69
  return (e ?? []).map((w) => ({
@@ -73,14 +71,14 @@ const qe = {
73
71
  amountIssue: v.issue(t, `amount:${w.id}`) ?? w.amountIssue
74
72
  }));
75
73
  }
76
- function R(e, t) {
74
+ function z(e, t) {
77
75
  v.field(
78
76
  `amount:${e}`,
79
77
  (o) => s.value.setBindingAmount(e, o)
80
78
  )["onUpdate:modelValue"](t);
81
79
  }
82
80
  function j(e) {
83
- U(), s.value.dispose(), s.value = f.sdk.recipe.editor(e), x.value = s.value.get(), U = s.value.subscribe(
81
+ U(), s.value.dispose(), s.value = b.sdk.recipe.editor(e), x.value = s.value.get(), U = s.value.subscribe(
84
82
  (t) => {
85
83
  x.value = t;
86
84
  }
@@ -88,10 +86,10 @@ const qe = {
88
86
  }
89
87
  function I() {
90
88
  var e;
91
- ((e = u.value) == null ? void 0 : e.create.state) === "allowed" && (j(), k.value = !0);
89
+ ((e = u.value) == null ? void 0 : e.create.state) === "allowed" && (j(), h.value = !0);
92
90
  }
93
91
  function P(e) {
94
- j(e.id), k.value = !0;
92
+ j(e.id), h.value = !0;
95
93
  }
96
94
  async function oe() {
97
95
  (await q(
@@ -103,7 +101,7 @@ const qe = {
103
101
  },
104
102
  successMessage: (t) => a("menu.recipe.form.saved", { name: t.name })
105
103
  }
106
- )).kind === "success" && (k.value = !1);
104
+ )).kind === "success" && (h.value = !1);
107
105
  }
108
106
  function ue() {
109
107
  }
@@ -123,7 +121,7 @@ const qe = {
123
121
  close: !0
124
122
  }
125
123
  }).onPrimary(async () => {
126
- await q(() => f.sdk.recipe.remove(e.id), {
124
+ await q(() => b.sdk.recipe.remove(e.id), {
127
125
  successMessage: a("menu.recipe.form.removed", { name: e.name })
128
126
  });
129
127
  });
@@ -194,17 +192,17 @@ const qe = {
194
192
  return _e(() => {
195
193
  U(), s.value.dispose();
196
194
  }), (e, t) => {
197
- const o = y("FmButton"), w = y("FmCircularProgress"), pe = y("FmSearch"), ve = y("FmTable"), be = y("FmTextField"), fe = y("FmFormGroup"), ge = y("FmSideSheet");
198
- return r(), h(Ae, {
195
+ const o = g("FmButton"), w = g("FmCircularProgress"), pe = g("FmSearch"), ve = g("FmTable"), be = g("FmTextField"), fe = g("FmFormGroup"), ge = g("FmSideSheet");
196
+ return r(), _(Ue, {
199
197
  "data-visual-root": "recipe",
200
198
  heading: n(a)("menu.recipe.title")
201
199
  }, {
202
- "append-heading": _(() => [
203
- n(p).status === "ready" && u.value ? (r(), b("div", qe, [
204
- d(Ue, {
200
+ "append-heading": y(() => [
201
+ n(p).status === "ready" && u.value ? (r(), k("div", Le, [
202
+ d(Ie, {
205
203
  value: u.value.totalCount
206
204
  }, null, 8, ["value"]),
207
- u.value.totalCount > 0 && !$.value ? (r(), h(o, {
205
+ u.value.totalCount > 0 && !$.value ? (r(), _(o, {
208
206
  key: 0,
209
207
  disabled: u.value.create.state !== "allowed",
210
208
  label: n(a)("menu.recipe.actions.add"),
@@ -213,38 +211,38 @@ const qe = {
213
211
  }, null, 8, ["disabled", "label"])) : V("", !0)
214
212
  ])) : V("", !0)
215
213
  ]),
216
- default: _(() => {
214
+ default: y(() => {
217
215
  var H;
218
216
  return [
219
- n(p).status === "error" ? (r(), b("p", ze, F(n(B)(n(p).error.message)), 1)) : n(p).status === "unavailable" ? (r(), b("p", Le, F(n(B)(n(p).reason)), 1)) : n(p).status === "loading" ? (r(), h(w, { key: 2 })) : u.value && u.value.totalCount === 0 ? (r(), h(n(Ve), {
217
+ n(p).status === "error" ? (r(), k("p", Ne, F(n(B)(n(p).error.message)), 1)) : n(p).status === "unavailable" ? (r(), k("p", Re, F(n(B)(n(p).reason)), 1)) : n(p).status === "loading" ? (r(), _(w, { key: 2 })) : u.value && u.value.totalCount === 0 ? (r(), _(n($e), {
220
218
  key: 3,
221
219
  action: { text: n(a)("menu.recipe.empty.action"), callback: I },
222
220
  title: n(a)("menu.recipe.empty.title"),
223
221
  subtitle: n(a)("menu.recipe.empty.subtitle")
224
- }, null, 8, ["action", "title", "subtitle"])) : u.value ? (r(), b(Z, { key: 4 }, [
225
- m("div", Ne, [
226
- m("div", Re, [
222
+ }, null, 8, ["action", "title", "subtitle"])) : u.value ? (r(), k(Z, { key: 4 }, [
223
+ m("div", ze, [
224
+ m("div", je, [
227
225
  he(d(pe, {
228
226
  autofocus: "",
229
227
  "aria-label": n(a)("menu.recipe.table.search.accessibility_label"),
230
228
  class: "mb-8",
231
229
  "model-value": ie.value,
232
230
  placeholder: n(a)("menu.recipe.table.search.placeholder"),
233
- "onUpdate:modelValue": f.sdk.recipe.search
231
+ "onUpdate:modelValue": b.sdk.recipe.search
234
232
  }, null, 8, ["aria-label", "model-value", "placeholder", "onUpdate:modelValue"]), [
235
233
  [T, n(a)("menu.recipe.table.search.accessibility_label")]
236
234
  ])
237
235
  ])
238
236
  ]),
239
- $.value ? (r(), b("div", je, [
240
- (r(!0), b(Z, null, xe(u.value.rows, (i) => (r(), b("div", {
237
+ $.value ? (r(), k("div", Pe, [
238
+ (r(!0), k(Z, null, xe(u.value.rows, (i) => (r(), k("div", {
241
239
  key: i.id,
242
240
  class: "py-12 px-16 flex space-x-8 items-center cursor-pointer",
243
- onClick: (g) => P(i)
241
+ onClick: (f) => P(i)
244
242
  }, [
245
- m("div", Qe, [
246
- m("p", Ke, F(i.name), 1),
247
- m("p", Oe, F(K(i.ingredients)), 1)
243
+ m("div", Ke, [
244
+ m("p", Oe, F(i.name), 1),
245
+ m("p", Ge, F(K(i.ingredients)), 1)
248
246
  ]),
249
247
  d(o, {
250
248
  class: "shrink-0",
@@ -255,10 +253,10 @@ const qe = {
255
253
  "prepend-icon": "delete",
256
254
  "text-color": "neutral-gray-400",
257
255
  variant: "tertiary",
258
- onClick: Y((g) => Q(i), ["stop"])
256
+ onClick: Y((f) => Q(i), ["stop"])
259
257
  }, null, 8, ["aria-label", "disabled", "onClick"])
260
- ], 8, Pe))), 128))
261
- ])) : (r(), h(ve, {
258
+ ], 8, Qe))), 128))
259
+ ])) : (r(), _(ve, {
262
260
  key: 0,
263
261
  "column-defs": de.value,
264
262
  "hide-footer": "",
@@ -268,37 +266,40 @@ const qe = {
268
266
  "shrink-at": !1,
269
267
  onRowClick: t[0] || (t[0] = (i) => P(i.original))
270
268
  }, null, 8, ["column-defs", "page-size", "row-data"])),
271
- u.value.totalCount > 0 && $.value ? (r(), b("div", Ge, [
272
- d(o, {
273
- disabled: u.value.create.state !== "allowed",
274
- label: n(a)("menu.recipe.actions.add"),
275
- "prepend-icon": "add",
276
- variant: "fab",
277
- onClick: I
278
- }, null, 8, ["disabled", "label"])
279
- ])) : V("", !0)
269
+ u.value.totalCount > 0 && $.value ? (r(), _(Ve, { key: 2 }, {
270
+ default: y(() => [
271
+ d(o, {
272
+ disabled: u.value.create.state !== "allowed",
273
+ label: n(a)("menu.recipe.actions.add"),
274
+ "prepend-icon": "add",
275
+ variant: "fab",
276
+ onClick: I
277
+ }, null, 8, ["disabled", "label"])
278
+ ]),
279
+ _: 1
280
+ })) : V("", !0)
280
281
  ], 64)) : V("", !0),
281
282
  d(ge, {
282
- modelValue: k.value,
283
- "onUpdate:modelValue": t[6] || (t[6] = (i) => k.value = i),
283
+ modelValue: h.value,
284
+ "onUpdate:modelValue": t[6] || (t[6] = (i) => h.value = i),
284
285
  "is-container": n(ee).FmForm,
285
286
  "is-container-props": { onValidationSuccess: oe },
286
287
  "max-width": 560,
287
288
  "onOn:clickedAway": ue
288
289
  }, {
289
- "side-sheet-header": _(() => {
290
+ "side-sheet-header": y(() => {
290
291
  var i;
291
292
  return [
292
293
  m("p", He, F(((i = l.value) == null ? void 0 : i.mode) === "update" ? n(a)("menu.recipe.update") : n(a)("menu.recipe.add")), 1)
293
294
  ];
294
295
  }),
295
- "side-sheet-footer": _(() => {
296
- var i, g;
296
+ "side-sheet-footer": y(() => {
297
+ var i, f;
297
298
  return [
298
299
  m("div", Xe, [
299
300
  d(o, {
300
301
  disabled: ((i = l.value) == null ? void 0 : i.submit.state) !== "allowed",
301
- label: ((g = l.value) == null ? void 0 : g.mode) === "update" ? n(a)("menu.common.actions.update") : n(a)("menu.common.actions.add"),
302
+ label: ((f = l.value) == null ? void 0 : f.mode) === "update" ? n(a)("menu.common.actions.update") : n(a)("menu.common.actions.add"),
302
303
  size: "lg",
303
304
  type: "submit",
304
305
  variant: "primary"
@@ -307,49 +308,49 @@ const qe = {
307
308
  label: n(a)("menu.common.actions.cancel"),
308
309
  size: "lg",
309
310
  variant: "tertiary",
310
- onClick: t[5] || (t[5] = (M) => k.value = !1)
311
+ onClick: t[5] || (t[5] = (M) => h.value = !1)
311
312
  }, null, 8, ["label"])
312
313
  ])
313
314
  ];
314
315
  }),
315
- default: _(() => {
316
- var i, g, M;
316
+ default: y(() => {
317
+ var i, f, M;
317
318
  return [
318
319
  m("div", Je, [
319
320
  m("div", We, [
320
321
  d(be, we({
321
322
  autofocus: "",
322
323
  class: "flex-2",
323
- "error-messages": z.value ? [n(B)(z.value)] : [],
324
+ "error-messages": L.value ? [n(B)(L.value)] : [],
324
325
  label: n(a)("menu.recipe.columns.name"),
325
326
  "model-value": ((i = l.value) == null ? void 0 : i.name) ?? ""
326
327
  }, n(v).field("name", s.value.setName)), null, 16, ["error-messages", "label", "model-value"])
327
328
  ]),
328
329
  d(fe, {
329
330
  "model-value": [
330
- ...((g = l.value) == null ? void 0 : g.recipeBindings) ?? [],
331
+ ...((f = l.value) == null ? void 0 : f.recipeBindings) ?? [],
331
332
  ...((M = l.value) == null ? void 0 : M.ingredientBindings) ?? []
332
333
  ],
333
- "error-messages": L.value ? [n(B)(L.value)] : []
334
+ "error-messages": N.value ? [n(B)(N.value)] : []
334
335
  }, {
335
- default: _(() => {
336
+ default: y(() => {
336
337
  var J, W;
337
338
  return [
338
339
  d(te, {
339
340
  kind: "recipe",
340
341
  disabled: O.value,
341
- rows: N((J = l.value) == null ? void 0 : J.recipeBindings),
342
+ rows: R((J = l.value) == null ? void 0 : J.recipeBindings),
342
343
  onLink: t[1] || (t[1] = (C) => G("recipe")),
343
- onUpdateAmount: R
344
+ onUpdateAmount: z
344
345
  }, null, 8, ["disabled", "rows"]),
345
346
  d(te, {
346
347
  kind: "ingredient",
347
348
  disabled: O.value,
348
- rows: N((W = l.value) == null ? void 0 : W.ingredientBindings),
349
+ rows: R((W = l.value) == null ? void 0 : W.ingredientBindings),
349
350
  "show-inert-deduct": "",
350
351
  onLink: t[2] || (t[2] = (C) => G("ingredient")),
351
352
  onRemove: t[3] || (t[3] = (C) => (n(v).touch("contains"), s.value.removeIngredientBinding(C))),
352
- onUpdateAmount: R,
353
+ onUpdateAmount: z,
353
354
  onUpdateMeasurement: t[4] || (t[4] = (C, ye) => s.value.setBindingMeasurement(C, ye))
354
355
  }, null, 8, ["disabled", "rows"])
355
356
  ];
@@ -361,7 +362,7 @@ const qe = {
361
362
  }),
362
363
  _: 1
363
364
  }, 8, ["modelValue", "is-container", "is-container-props"]),
364
- d($e, {
365
+ d(Ae, {
365
366
  modelValue: A.value,
366
367
  "onUpdate:modelValue": t[7] || (t[7] = (i) => A.value = i),
367
368
  candidates: ce.value,
@@ -376,13 +377,13 @@ const qe = {
376
377
  }, 8, ["heading"]);
377
378
  };
378
379
  }
379
- }), dt = /* @__PURE__ */ ae({
380
+ }), ct = /* @__PURE__ */ ae({
380
381
  __name: "Recipe",
381
382
  setup(E) {
382
- const f = Te();
383
- return (T, a) => (r(), h(Ye, { sdk: n(f) }, null, 8, ["sdk"]));
383
+ const b = qe();
384
+ return (T, a) => (r(), _(Ye, { sdk: n(b) }, null, 8, ["sdk"]));
384
385
  }
385
386
  });
386
387
  export {
387
- dt as default
388
+ ct as default
388
389
  };