@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.
- package/dist/{App-Dx2igC7a.js → App-CdIN4s5n.js} +5 -4
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BFZokcY6.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js} +1 -1
- 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
- package/dist/{Catalog-B-RloKQ4.js → Catalog-DjAubC9s.js} +4 -4
- package/dist/{CatalogBinding-CgIYwGGu.js → CatalogBinding-5JNRTbyZ.js} +3 -3
- 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
- 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
- package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Oo24DDWy.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-3fL43MuR.js} +3 -3
- package/dist/{Category-Buu8cQY6.js → Category-BbiN4hd7.js} +5 -5
- package/dist/{Category-Bk6LDBUg.js → Category-COug7fz8.js} +2 -2
- 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
- package/dist/{CookingGuide-Cf029w_4.js → CookingGuide-Dg7kuF6l.js} +82 -82
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js +1774 -0
- package/dist/{Group-tqaxMELg.js → Group-BRpmTqyT.js} +5 -5
- package/dist/{Group-DEcK54PQ.js → Group-C-hwlkgJ.js} +2 -2
- package/dist/{GroupList.vue_vue_type_script_setup_true_lang-BROG27Yx.js → GroupList.vue_vue_type_script_setup_true_lang-DowoJ3WM.js} +7 -7
- package/dist/{Ingredient-DB25SQ_o.js → Ingredient-BQYnARdC.js} +3 -3
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CgTDkHle.js +707 -0
- package/dist/{MenuSetting-DUYQvadY.js → MenuSetting-DsdM2_OW.js} +546 -513
- package/dist/{OrderPacing-CjUkaRbu.js → OrderPacing-5x2YH-_l.js} +6 -6
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-DJXhbkeG.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-DVGJjpiM.js} +2 -2
- package/dist/Preview-AdgGTYlQ.js +321 -0
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-gfsuBoHt.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-vmxVZ2ya.js} +1 -1
- package/dist/{PrintRoute-CysE-4tE.js → PrintRoute-COkCv4gf.js} +4 -4
- package/dist/{Product-iVtmB1C8.js → Product-BJFb_J4h.js} +4 -4
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-B7eUmZuN.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-Tpp8MBYS.js} +2 -2
- package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-b8DaMgRx.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-C25Pwqme.js} +4 -4
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B5vq5hbc.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-BMAtAK9D.js} +1 -1
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-C1ghNMTf.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-Dl4Zr5tx.js} +11 -11
- package/dist/{ProductInternalTools-BQDxL6qv.js → ProductInternalTools-thlSvqbA.js} +2 -2
- package/dist/{ProductInventoryDialog-W1F98eXc.js → ProductInventoryDialog-C3ruRWU5.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Cp4ZIcMK.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-MpdIixqI.js} +1 -1
- 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
- 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
- package/dist/{Products-C9O4viX6.js → Products-DMrjQFfu.js} +3 -3
- package/dist/{Publish-B2-c2SAA.js → Publish-f6g0dIao.js} +3 -3
- package/dist/{Recipe-CU9raTsa.js → Recipe-p-wxadSN.js} +3 -3
- package/dist/{Scheduler-BE0dziMd.js → Scheduler-CtebRafn.js} +4 -4
- package/dist/{ServingSequence-Bd99-lK0.js → ServingSequence-CEd4ywOQ.js} +2 -2
- package/dist/{Setting-CEPdYW3h.js → Setting-bPKadRu-.js} +6 -6
- package/dist/{Subcategory-BdcLXhuv.js → Subcategory-DBCnIP0b.js} +2 -2
- package/dist/{Takeaway-CmEdi9LZ.js → Takeaway-GNRHR5kN.js} +2 -2
- package/dist/{Takeaway-DbAA4-wL.js → Takeaway-VBkdW1DM.js} +5 -5
- package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-b2AoUuPc.js → TakeawayList.vue_vue_type_script_setup_true_lang-DvX3k0Jg.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ByHzS1zz.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D1qaEVUu.js} +7 -7
- package/dist/{Unit-Di23l3Rf.js → Unit-DbGKIprZ.js} +2 -2
- package/dist/{Variant-CrMulK0_.js → Variant-_edSAKif.js} +19 -19
- package/dist/{_id_-B-xHjH3V.js → _id_-BNVtBV3q.js} +3 -3
- package/dist/{app-BiteOZSg.js → app-BlTv5xag.js} +153 -150
- package/dist/app.js +2 -2
- package/dist/apps/mf-menu/src/app.d.ts +360 -0
- package/dist/apps/mf-menu/src/components/preview/MenuPreview.vue.d.ts +13 -0
- package/dist/apps/mf-menu/src/components/preview/simulatorPort.d.ts +23 -0
- package/dist/apps/mf-menu/src/router/shared.d.ts +1 -0
- package/dist/apps/mf-menu/src/utils/ruleValueKey.d.ts +12 -0
- package/dist/apps/mf-menu/src/views/Preview/Preview.vue.d.ts +2 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-Cf88Yt0l.js → menu-compute-BzchkTYh.js} +36 -36
- package/dist/assets/{validate-menu-DEpbyLnq.js → validate-menu-CTV_cJNG.js} +4 -4
- package/dist/{provide-DHcnZPMQ.js → provide-dbE6Qt1z.js} +35458 -34831
- package/dist/ruleValueKey-BF52PuHb.js +10 -0
- package/dist/{useActionFeedback-B8L3Gpei.js → useActionFeedback-CdY_C_HX.js} +1 -1
- package/package.json +1 -1
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DMTby3OA.js +0 -4473
- 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
|
|
2
|
-
import { _ as G,
|
|
3
|
-
import { useI18n as
|
|
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-
|
|
7
|
-
import { _ as We } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-
|
|
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-
|
|
10
|
-
import { a as Ze, b as eo, u as ge } from "./provide-
|
|
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" },
|
|
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 } =
|
|
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),
|
|
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
|
-
|
|
60
|
+
u.value.get()
|
|
61
61
|
);
|
|
62
|
-
let z =
|
|
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(),
|
|
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(),
|
|
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
|
|
107
|
+
function de() {
|
|
108
108
|
var V;
|
|
109
|
-
const o = ((V = v.value) == null ? void 0 : V.name) ?? "", l =
|
|
110
|
-
q(() =>
|
|
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
|
-
|
|
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
|
-
|
|
136
|
-
const o =
|
|
137
|
-
|
|
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
|
|
140
|
-
|
|
139
|
+
function ue(o) {
|
|
140
|
+
u.value.openStep(o), M.value = !0;
|
|
141
141
|
}
|
|
142
142
|
function W() {
|
|
143
|
-
|
|
143
|
+
u.value.discardStep(), M.value = !1;
|
|
144
144
|
}
|
|
145
145
|
function we() {
|
|
146
|
-
|
|
146
|
+
u.value.saveStep() && (M.value = !1);
|
|
147
147
|
}
|
|
148
148
|
function Fe(o) {
|
|
149
|
-
|
|
149
|
+
u.value.removeStep(o);
|
|
150
150
|
}
|
|
151
151
|
function Ve(o) {
|
|
152
|
-
|
|
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(),
|
|
160
|
-
|
|
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
|
-
|
|
162
|
+
d ?? void 0,
|
|
163
163
|
C ?? void 0
|
|
164
|
-
),
|
|
165
|
-
const b = re(), V =
|
|
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
|
-
|
|
170
|
+
u.value.openOverrides(o.productId, o.combinationKey), O.value = !0;
|
|
171
171
|
}
|
|
172
172
|
function Oe(o, l) {
|
|
173
|
-
var
|
|
174
|
-
return ((b = (C = (
|
|
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,
|
|
177
|
-
|
|
176
|
+
function Ue(o, l, d) {
|
|
177
|
+
u.value.setOverrideValue(o, l, d);
|
|
178
178
|
}
|
|
179
179
|
function Ee() {
|
|
180
|
-
|
|
180
|
+
u.value.saveOverrides(), O.value = !1;
|
|
181
181
|
}
|
|
182
182
|
function ce() {
|
|
183
|
-
|
|
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:
|
|
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(),
|
|
259
|
+
z(), u.value.dispose();
|
|
260
260
|
}), (o, l) => {
|
|
261
|
-
const
|
|
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(
|
|
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"])) :
|
|
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(
|
|
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(
|
|
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:
|
|
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(
|
|
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
|
-
])) :
|
|
363
|
-
], 64)) :
|
|
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:
|
|
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(
|
|
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:
|
|
391
|
+
onClick: de
|
|
392
392
|
}, null, 8, ["disabled", "label"]),
|
|
393
|
-
n(
|
|
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) =>
|
|
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(
|
|
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(
|
|
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) =>
|
|
452
|
+
onClick: (f) => ue(s.id)
|
|
453
453
|
}, {
|
|
454
454
|
default: p(() => [
|
|
455
455
|
i("div", _o, [
|
|
456
|
-
n(
|
|
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(
|
|
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:
|
|
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(
|
|
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) =>
|
|
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(
|
|
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(
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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:
|
|
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 =
|
|
657
|
+
const c = u.value.stepVariableIssue(r, "key");
|
|
658
658
|
return c ? t(F)(c) : !0;
|
|
659
659
|
}
|
|
660
660
|
],
|
|
661
|
-
"onUpdate:modelValue": (c) =>
|
|
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 =
|
|
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) =>
|
|
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(
|
|
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) =>
|
|
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:
|
|
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) =>
|
|
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(
|
|
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(
|
|
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",
|
|
796
|
+
c < Object.keys(s.variables).length - 1 ? (m(), _("div", jo)) : D("", !0)
|
|
797
797
|
], 64))), 128))
|
|
798
798
|
])
|
|
799
799
|
]))), 128))
|