@feedmepos/mf-menu 0.32.62 → 0.32.63-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.
- package/dist/{App-CE4fZP2_.js → App-DhfTGlgM.js} +467 -462
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-PpYjjdOP.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C_JKiJRD.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
- package/dist/{Catalog-C2MyXkps.js → Catalog-WuZJfM6l.js} +78 -78
- package/dist/{Category-B7Uxbyug.js → Category-BeIo7XWY.js} +20 -20
- package/dist/{Category-BoV0MYQp.js → Category-D-cQQCPS.js} +19 -19
- package/dist/{CookingGuide-Bdyj8XMv.js → CookingGuide-B-yvD9ZA.js} +88 -88
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-EDbgLHTU.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
- package/dist/{Group-BuFbi0Z-.js → Group-13i5igrS.js} +5 -5
- package/dist/{Group-DYpxc5ui.js → Group-CY8lUzQG.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-B5Uw2Rzm.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-COYg8e7h.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-YY25YW4B.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
- package/dist/{Ingredient-Ddw06I0B.js → Ingredient-vrUOW6gk.js} +49 -49
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CsWdL5Lz.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
- package/dist/{LinkProductSideSheet-COAMZqOM.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
- package/dist/{MenuSetting--G1_lGoV.js → MenuSetting-Di2xwm00.js} +10 -10
- package/dist/{OrderPacing-DnvLJh5M.js → OrderPacing-CCe-IcGO.js} +28 -28
- package/dist/{PrintRoute-CP-3JGP3.js → PrintRoute-CcfObcHY.js} +27 -27
- package/dist/{Product-D-q15-Qw.js → Product-ChUVnMgG.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BaOg60Q6.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
- package/dist/{ProductInternalTools-wYn0bzml.js → ProductInternalTools-D9HXhgo5.js} +80 -79
- package/dist/{Products-CxEsB-7l.js → Products-Bly2ktEC.js} +75 -74
- package/dist/{Publish-BCljLztW.js → Publish-C8ubb8Qf.js} +113 -113
- package/dist/{Recipe-DgfobgnQ.js → Recipe-BpMRLsyO.js} +32 -32
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BgDVFKRI.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DCbrAMxd.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +474 -473
- package/dist/{Scheduler-C-LJs7Gl.js → Scheduler-CiB4b2Fn.js} +9 -9
- package/dist/{ServingSequence-BoaDRfsc.js → ServingSequence-BlcyW-dv.js} +18 -18
- package/dist/{Setting-BfFqBD9u.js → Setting-DqkL6YYU.js} +31 -31
- package/dist/{Subcategory-BsnC9ZSS.js → Subcategory-B4Jg_wtT.js} +43 -43
- package/dist/{Takeaway-PilRifJP.js → Takeaway-5G3f7jWT.js} +1 -1
- package/dist/{Takeaway-dSEAc70g.js → Takeaway-5rFPYYNA.js} +16 -16
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CgioM0sV.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CHf3g1ia.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-A43XxqyC.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js} +8 -9
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +5836 -0
- package/dist/{Unit-DW1dFJas.js → Unit-CAkdmQLg.js} +2 -2
- package/dist/{Variant-CzLzrt2N.js → Variant-BbLQqbAK.js} +13 -13
- package/dist/{_id_-qfASfKMD.js → _id_-Dzacr40I.js} +13 -13
- package/dist/{app-BB33yKM6.js → app-4yWs09Fr.js} +495 -495
- package/dist/{app-CJnEQz-U.js → app-Deov1985.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +161 -0
- package/dist/apps/mf-menu/src/app.d.ts +340 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +150 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/CustomDimensionDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +16 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +75 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
- package/dist/apps/mf-menu/src/composable/remyImageTarget.d.ts +5 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +14 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/src/types/rule.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +3 -2
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +8 -8
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-VaVE9Pyh.js → linked-status-B2WLhKkV.js} +3 -3
- package/dist/assets/{menu-export-DD9Zt6XH.js → menu-export-Dcw5a_dN.js} +3 -3
- package/dist/assets/{override-menu-DZCgrhuF.js → override-menu-cBe2aMY6.js} +3 -3
- package/dist/assets/{validate-menu-BFsQlikL.js → validate-menu-BM-5GK85.js} +2 -2
- package/dist/{catalog-Cvn1ZMGp.js → catalog-DKygS2Cs.js} +6 -6
- package/dist/{catalogSetting-D2bOCGW7.js → catalogSetting-Bn2TplvM.js} +1 -1
- package/dist/currency-DXgNHtK8.js +7 -0
- package/dist/dayjs.min-DpX65tgj.js +7 -0
- package/dist/discardConfirm-DZwzKO-Q.js +3704 -0
- package/dist/{index-B2fxLO4K.js → index-B48KLyqg.js} +61 -61
- package/dist/{index-CizrxT_e.js → index-BEocaqRK.js} +30 -30
- package/dist/index-K-MBqJJo.js +222 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-gaRM4vfS.js → index.vue_vue_type_script_setup_true_lang-Nl505vPi.js} +44918 -51563
- package/dist/item-Da3ArD-G.js +13213 -0
- package/dist/{jszip.min-BXLegUsz.js → jszip.min-Cc2eR4Cq.js} +119 -119
- package/dist/linkProducts-GNuUxFEE.js +331 -0
- package/dist/{memberPricing-CizI1rUM.js → memberPricing-T-jr7tn1.js} +1 -1
- package/dist/{menu-BCed1YCE.js → menu-DSDRAil-.js} +1 -1
- package/dist/{menuV2-Bo9AHrdr.js → menuV2-fTlJdjxi.js} +162 -160
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-BkfQeNeC.js → order_pacing-Dgo1fySS.js} +17 -17
- package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
- package/dist/{priceTier-rjuK-b6U.js → priceTier-aT_gIfrN.js} +3 -3
- package/dist/{rules-DHX_hK6G.js → rules-Cx2hkV20.js} +8 -8
- package/dist/{scheduler-BsfPbtM2.js → scheduler-Bd-q7yF8.js} +62 -62
- package/dist/{toExcel-DJHljg_L.js → toExcel-qfjR83qT.js} +2 -2
- package/dist/{unit-BxTWR1dZ.js → unit-n1T9grbM.js} +64 -64
- package/package.json +3 -3
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DGqao47l.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DY1umres.js +0 -6058
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +0 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +0 -38
- package/dist/currency-DQDsuXB5.js +0 -7
- package/dist/dayjs.min-CzUkrXIR.js +0 -7
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-CisutoS9.js +0 -156
- package/dist/item-DOHVD6CN.js +0 -9098
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as L, ref as $, computed as C, h as m, withModifiers as M, getCurrentInstance as G, resolveComponent as x, createElementBlock as f, openBlock as c, createElementVNode as s, createVNode as u, unref as o, withCtx as k, Fragment as
|
|
1
|
+
import { defineComponent as L, ref as $, computed as C, h as m, withModifiers as M, getCurrentInstance as G, resolveComponent as x, createElementBlock as f, openBlock as c, createElementVNode as s, createVNode as u, unref as o, withCtx as k, Fragment as q, renderList as H, toDisplayString as w, createBlock as y, createCommentVNode as J } from "vue";
|
|
2
2
|
import { useI18n as E } from "@feedmepos/mf-common";
|
|
3
|
-
import { useDialog as
|
|
3
|
+
import { useDialog as S, useSnackbar as T, components as Q, FmButtonVariant as B, useBreakpoints as W, FmButtonColorThemeVariant as X } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as Z } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import {
|
|
5
|
+
import { b as N, i as D, g as ee, h as te, _ as oe } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
6
6
|
import { _ as ae } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
7
|
-
import { _ as ne } from "./app-
|
|
7
|
+
import { _ as ne } from "./app-4yWs09Fr.js";
|
|
8
8
|
import { c as le } from "./createForm-BoUQeZTd.js";
|
|
9
|
-
import {
|
|
9
|
+
import { A as se, ao as R } from "./item-Da3ArD-G.js";
|
|
10
10
|
import { _ as re } from "./TranslationViewChip.vue_vue_type_script_setup_true_lang-DiK3fi9J.js";
|
|
11
|
-
import { u as z, a as ce } from "./menu-
|
|
11
|
+
import { u as z, a as ce } from "./menu-DSDRAil-.js";
|
|
12
12
|
const ie = se, me = {
|
|
13
13
|
key: 0
|
|
14
14
|
}, ue = {
|
|
@@ -30,8 +30,8 @@ const ie = se, me = {
|
|
|
30
30
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
31
31
|
}, be = /* @__PURE__ */ L({
|
|
32
32
|
__name: "CategoryTable",
|
|
33
|
-
setup(
|
|
34
|
-
const d =
|
|
33
|
+
setup(A) {
|
|
34
|
+
const d = S(), p = T(), h = N(p), _ = D(h), v = R({
|
|
35
35
|
dialog: d,
|
|
36
36
|
menuLoader: _
|
|
37
37
|
}), {
|
|
@@ -120,7 +120,7 @@ const ie = se, me = {
|
|
|
120
120
|
}, e.name, !0);
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
async function
|
|
123
|
+
async function I(e) {
|
|
124
124
|
const t = e.map((r) => r.id).filter((r) => !!r);
|
|
125
125
|
await v.rearrange(t);
|
|
126
126
|
}
|
|
@@ -130,10 +130,10 @@ const ie = se, me = {
|
|
|
130
130
|
initialValue: e
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
-
const
|
|
133
|
+
const U = W(), j = C(() => U.breakpoints.value.xs);
|
|
134
134
|
return (e, t) => {
|
|
135
|
-
const r = x("FmSearch"),
|
|
136
|
-
return
|
|
135
|
+
const r = x("FmSearch"), K = x("FmTable"), P = x("FmButton");
|
|
136
|
+
return j.value ? (c(), f("div", pe, [s("div", _e, [u(r, {
|
|
137
137
|
autofocus: "",
|
|
138
138
|
modelValue: n.value,
|
|
139
139
|
"onUpdate:modelValue": t[2] || (t[2] = (a) => n.value = a),
|
|
@@ -141,13 +141,13 @@ const ie = se, me = {
|
|
|
141
141
|
placeholder: o(l)("menu.common.labels.search_placeholder", {
|
|
142
142
|
type: "categories"
|
|
143
143
|
})
|
|
144
|
-
}, null, 8, ["modelValue", "placeholder"])]), s("div", ge, [(c(!0), f(
|
|
144
|
+
}, null, 8, ["modelValue", "placeholder"])]), s("div", ge, [(c(!0), f(q, null, H(g.value, (a) => (c(), f("div", {
|
|
145
145
|
key: a.id || "",
|
|
146
146
|
class: "flex flex-row py-12 px-16",
|
|
147
147
|
onClick: (Y) => F(a)
|
|
148
148
|
}, [s("div", ye, [s("p", he, w(a.name), 1), s("p", ve, w(o(l)(a.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
|
|
149
149
|
count: a.items.length
|
|
150
|
-
})), 1)]), u(
|
|
150
|
+
})), 1)]), u(P, {
|
|
151
151
|
"text-color": o(X).NeutralGray400,
|
|
152
152
|
variant: o(B).Tertiary,
|
|
153
153
|
"prepend-icon": "delete",
|
|
@@ -162,7 +162,7 @@ const ie = se, me = {
|
|
|
162
162
|
type: o(l)("menu.category.title")
|
|
163
163
|
})
|
|
164
164
|
}, null, 8, ["modelValue", "placeholder"])])]), u(ne, null, {
|
|
165
|
-
default: k(() => [u(
|
|
165
|
+
default: k(() => [u(K, {
|
|
166
166
|
"column-defs": V.value,
|
|
167
167
|
draggable: !0,
|
|
168
168
|
"page-size": o(i).length,
|
|
@@ -171,7 +171,7 @@ const ie = se, me = {
|
|
|
171
171
|
"shrink-at": !1,
|
|
172
172
|
"hide-footer": "",
|
|
173
173
|
"pin-header-row": "",
|
|
174
|
-
onDndChanged:
|
|
174
|
+
onDndChanged: I,
|
|
175
175
|
onRowClick: t[1] || (t[1] = (a) => F(a.original))
|
|
176
176
|
}, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
|
|
177
177
|
_: 1
|
|
@@ -180,8 +180,8 @@ const ie = se, me = {
|
|
|
180
180
|
}
|
|
181
181
|
}), xe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ce = { class: "flex items-center" }, ke = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, we = { class: "fm-typo-en-body-md-600 font-semibold" }, Re = /* @__PURE__ */ L({
|
|
182
182
|
__name: "Category",
|
|
183
|
-
setup(
|
|
184
|
-
const d =
|
|
183
|
+
setup(A) {
|
|
184
|
+
const d = S(), p = T(), h = N(p), _ = D(h), v = R({ dialog: d, menuLoader: _ }), { categories: i } = z(), { t: n } = E();
|
|
185
185
|
function g() {
|
|
186
186
|
v.create();
|
|
187
187
|
}
|
|
@@ -212,7 +212,7 @@ const ie = se, me = {
|
|
|
212
212
|
label: o(n)("menu.category.add"),
|
|
213
213
|
"prepend-icon": "add",
|
|
214
214
|
onClick: g
|
|
215
|
-
}, null, 8, ["label"])) :
|
|
215
|
+
}, null, 8, ["label"])) : J("", !0)
|
|
216
216
|
])
|
|
217
217
|
]),
|
|
218
218
|
_: 1
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as F, computed as V, resolveComponent as x, createBlock as U, openBlock as g, unref as n, withCtx as p, createElementVNode as a, createVNode as l, createElementBlock as K, toDisplayString as S, Fragment as M, renderList as
|
|
1
|
+
import { defineComponent as ae, ref as F, computed as V, resolveComponent as x, createBlock as U, openBlock as g, unref as n, withCtx as p, createElementVNode as a, createVNode as l, createElementBlock as K, toDisplayString as S, Fragment as M, renderList as H, withModifiers as ie, createCommentVNode as ce, createTextVNode as be, h as A } from "vue";
|
|
2
2
|
import { useI18n as le } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as ue, useBreakpoints as ye, useSnackbar as ke, useDialog as he } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as xe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as Ce } from "./app-
|
|
6
|
-
import {
|
|
5
|
+
import { _ as Ce } from "./app-4yWs09Fr.js";
|
|
6
|
+
import { d as ee, g as de, h as re, C as me, u as we, i as Ve, b as Fe, _ as Se } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
7
|
+
import { u as pe, l as ge } from "./discardConfirm-DZwzKO-Q.js";
|
|
7
8
|
import { d as $e } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
8
|
-
import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import {
|
|
10
|
-
import { L as Ie } from "./LinkProductSideSheet-COAMZqOM.js";
|
|
9
|
+
import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js";
|
|
10
|
+
import { L as Ie } from "./LinkProductSideSheet-DMbJG6wf.js";
|
|
11
11
|
import { _ as Oe } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
12
|
-
const Ke = { class: "flex items-center gap-8" },
|
|
12
|
+
const Ke = { class: "flex items-center gap-8" }, Le = { class: "grow" }, Ne = { class: "space-y-32" }, Be = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, De = { class: "px-16 py-8 w-[40%]" }, Te = { class: "px-16 py-8 grow" }, Ge = { class: "px-16 py-8 w-[40%]" }, ze = { class: "px-16 py-8 grow" }, Ee = { class: "space-y-16" }, Ue = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Me = { class: "flex gap-8 items-center justify-start" }, Re = /* @__PURE__ */ ae({
|
|
13
13
|
__name: "CookingGuideStepDialog",
|
|
14
14
|
emits: ["onComplete"],
|
|
15
|
-
setup(
|
|
15
|
+
setup(T, { expose: _, emit: J }) {
|
|
16
16
|
const { t: r } = le();
|
|
17
17
|
_({
|
|
18
18
|
show: s,
|
|
19
19
|
hide: O
|
|
20
20
|
});
|
|
21
|
-
const P =
|
|
21
|
+
const P = J;
|
|
22
22
|
function D() {
|
|
23
23
|
return {
|
|
24
24
|
id: "",
|
|
@@ -45,7 +45,7 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
45
45
|
function j(v) {
|
|
46
46
|
const t = document.activeElement;
|
|
47
47
|
if (t && t.tagName === "TEXTAREA") {
|
|
48
|
-
const f = t.selectionStart,
|
|
48
|
+
const f = t.selectionStart, N = t.selectionEnd, G = c.value.instruction, $ = G.substring(0, f) + `{{${v}}}` + G.substring(N);
|
|
49
49
|
c.value = {
|
|
50
50
|
...c.value,
|
|
51
51
|
instruction: $
|
|
@@ -65,10 +65,10 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
65
65
|
label: t
|
|
66
66
|
}), v),
|
|
67
67
|
[]
|
|
68
|
-
)), h = V(() => R.value ? r("menu.cooking_guide.step_dialog.update.title") : r("menu.cooking_guide.step_dialog.add.title")),
|
|
68
|
+
)), h = V(() => R.value ? r("menu.cooking_guide.step_dialog.update.title") : r("menu.cooking_guide.step_dialog.add.title")), L = V(() => R.value ? r("menu.cooking_guide.step_dialog.update.action") : r("menu.cooking_guide.step_dialog.add.action"));
|
|
69
69
|
F();
|
|
70
|
-
const i =
|
|
71
|
-
() => !
|
|
70
|
+
const i = pe(
|
|
71
|
+
() => !ge.isEqual(
|
|
72
72
|
{
|
|
73
73
|
...c.value,
|
|
74
74
|
variables: w.value.reduce((v, { key: t, value: f }) => ({ ...v, [t]: f }), {})
|
|
@@ -86,7 +86,7 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
return (v, t) => {
|
|
89
|
-
const f = x("FmButton"),
|
|
89
|
+
const f = x("FmButton"), N = x("FmTextField"), G = x("FmChip"), $ = x("FmTextarea"), Y = x("FmSideSheet");
|
|
90
90
|
return g(), U(Y, {
|
|
91
91
|
modelValue: C.value,
|
|
92
92
|
"onUpdate:modelValue": t[1] || (t[1] = (z) => C.value = z),
|
|
@@ -109,13 +109,13 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
109
109
|
label: n(r)("menu.cooking_guide.step_dialog.actions.back"),
|
|
110
110
|
onClick: O
|
|
111
111
|
}, null, 8, ["label"]),
|
|
112
|
-
a("div",
|
|
112
|
+
a("div", Le, S(h.value), 1)
|
|
113
113
|
])
|
|
114
114
|
]),
|
|
115
115
|
"side-sheet-footer": p(() => [
|
|
116
116
|
a("div", Me, [
|
|
117
117
|
l(f, {
|
|
118
|
-
label:
|
|
118
|
+
label: L.value,
|
|
119
119
|
size: "lg",
|
|
120
120
|
variant: "primary",
|
|
121
121
|
type: "submit"
|
|
@@ -129,7 +129,7 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
129
129
|
])
|
|
130
130
|
]),
|
|
131
131
|
default: p(() => [
|
|
132
|
-
a("div",
|
|
132
|
+
a("div", Ne, [
|
|
133
133
|
l(Z, {
|
|
134
134
|
title: n(r)("menu.cooking_guide.step_dialog.sections.variables.title")
|
|
135
135
|
}, {
|
|
@@ -145,32 +145,32 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
145
145
|
]),
|
|
146
146
|
default: p(() => [
|
|
147
147
|
a("div", null, [
|
|
148
|
-
a("div",
|
|
148
|
+
a("div", Be, [
|
|
149
149
|
a("div", De, S(n(r)("menu.cooking_guide.step_dialog.sections.variables.columns.key")), 1),
|
|
150
|
-
a("div",
|
|
150
|
+
a("div", Te, S(n(r)("menu.cooking_guide.step_dialog.sections.variables.columns.value")), 1)
|
|
151
151
|
]),
|
|
152
|
-
(g(!0), K(M, null,
|
|
152
|
+
(g(!0), K(M, null, H(w.value, (z, E) => (g(), K("div", {
|
|
153
153
|
key: E,
|
|
154
154
|
class: "flex items-center border-b border-b-fm-color-neutral-gray-100"
|
|
155
155
|
}, [
|
|
156
|
-
a("div",
|
|
157
|
-
l(
|
|
156
|
+
a("div", Ge, [
|
|
157
|
+
l(N, {
|
|
158
158
|
modelValue: w.value[E].key,
|
|
159
|
-
"onUpdate:modelValue": (
|
|
159
|
+
"onUpdate:modelValue": (B) => w.value[E].key = B,
|
|
160
160
|
rules: [
|
|
161
|
-
(
|
|
162
|
-
(
|
|
163
|
-
(
|
|
161
|
+
(B) => !!B || n(r)("menu.cooking_guide.step_dialog.sections.variables.validation.required"),
|
|
162
|
+
(B) => !B || /^[a-z]+$/.test(B) || n(r)("menu.cooking_guide.step_dialog.sections.variables.validation.lowercase"),
|
|
163
|
+
(B) => !B || w.value.findIndex((se) => se.key === B) === E || n(r)("menu.cooking_guide.step_dialog.sections.variables.validation.duplicate")
|
|
164
164
|
],
|
|
165
165
|
placeholder: n(r)("menu.cooking_guide.step_dialog.sections.variables.placeholders.key")
|
|
166
166
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rules", "placeholder"])
|
|
167
167
|
]),
|
|
168
168
|
a("div", ze, [
|
|
169
|
-
l(
|
|
169
|
+
l(N, {
|
|
170
170
|
modelValue: w.value[E].value,
|
|
171
|
-
"onUpdate:modelValue": (
|
|
171
|
+
"onUpdate:modelValue": (B) => w.value[E].value = B,
|
|
172
172
|
rules: [
|
|
173
|
-
(
|
|
173
|
+
(B) => !!B || n(r)("menu.cooking_guide.step_dialog.sections.variables.validation.required")
|
|
174
174
|
],
|
|
175
175
|
placeholder: n(r)("menu.cooking_guide.step_dialog.sections.variables.placeholders.value")
|
|
176
176
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "rules", "placeholder"])
|
|
@@ -192,7 +192,7 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
192
192
|
default: p(() => [
|
|
193
193
|
a("div", Ee, [
|
|
194
194
|
a("div", Ue, [
|
|
195
|
-
(g(!0), K(M, null,
|
|
195
|
+
(g(!0), K(M, null, H(k.value, (z) => (g(), U(G, {
|
|
196
196
|
key: z.label,
|
|
197
197
|
label: z.label,
|
|
198
198
|
class: "text-fm-color-primary bg-fm-color-system-warning-100",
|
|
@@ -214,16 +214,16 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
214
214
|
}, 8, ["modelValue", "header", "is-container", "is-container-props", "onOn:clickedAway"]);
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
}), Ae = { class: "w-[700px]" }, Pe = { class: "flex bg-fm-color-neutral-gray-100" }, qe = { class: "px-16 py-8 grow" }, je = { class: "px-16 py-8 w-[200px]" }, Ye = { class: "px-16 py-8 w-[200px]" },
|
|
217
|
+
}), Ae = { class: "w-[700px]" }, Pe = { class: "flex bg-fm-color-neutral-gray-100" }, qe = { class: "px-16 py-8 grow" }, je = { class: "px-16 py-8 w-[200px]" }, Ye = { class: "px-16 py-8 w-[200px]" }, Xe = { class: "px-16 py-8 grow" }, He = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, Je = { class: "px-16 py-8 w-[200px] flex flex-col gap-8" }, Qe = /* @__PURE__ */ ae({
|
|
218
218
|
__name: "CookingGuideStepOverrideDialog",
|
|
219
219
|
emits: ["onComplete"],
|
|
220
|
-
setup(
|
|
220
|
+
setup(T, { expose: _, emit: J }) {
|
|
221
221
|
const { t: r } = le();
|
|
222
222
|
_({
|
|
223
223
|
show: s,
|
|
224
224
|
hide: O
|
|
225
225
|
});
|
|
226
|
-
const P =
|
|
226
|
+
const P = J;
|
|
227
227
|
function D() {
|
|
228
228
|
return {
|
|
229
229
|
productId: "",
|
|
@@ -239,21 +239,21 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
239
239
|
}
|
|
240
240
|
const c = F(D()), w = V(() => c.value.overrides.reduce((k, h) => (k[h.id] = h, k), {}));
|
|
241
241
|
function q(k, h) {
|
|
242
|
-
var
|
|
243
|
-
return ((
|
|
242
|
+
var L;
|
|
243
|
+
return ((L = w.value[k]) == null ? void 0 : L.variables[h]) ?? "";
|
|
244
244
|
}
|
|
245
|
-
function Q(k, h,
|
|
245
|
+
function Q(k, h, L) {
|
|
246
246
|
const i = c.value.overrides.findIndex((u) => u.id === k);
|
|
247
|
-
|
|
247
|
+
L ? i < 0 ? c.value.overrides.push({
|
|
248
248
|
id: k,
|
|
249
|
-
variables: { [h]:
|
|
250
|
-
}) : c.value.overrides[i].variables[h] =
|
|
249
|
+
variables: { [h]: L }
|
|
250
|
+
}) : c.value.overrides[i].variables[h] = L : i >= 0 && (delete c.value.overrides[i].variables[h], Object.keys(c.value.overrides[i].variables).length || c.value.overrides.splice(i, 1));
|
|
251
251
|
}
|
|
252
252
|
function j() {
|
|
253
253
|
O(), P("onComplete", c.value);
|
|
254
254
|
}
|
|
255
255
|
return (k, h) => {
|
|
256
|
-
const
|
|
256
|
+
const L = x("FmTextField"), i = x("FmSpacer"), u = x("FmButton"), v = x("FmDialog");
|
|
257
257
|
return g(), U(v, {
|
|
258
258
|
modelValue: C.value,
|
|
259
259
|
"onUpdate:modelValue": h[0] || (h[0] = (t) => C.value = t),
|
|
@@ -288,23 +288,23 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
288
288
|
a("div", je, S(n(r)("menu.cooking_guide.step_override_dialog.columns.variables")), 1),
|
|
289
289
|
a("div", Ye, S(n(r)("menu.cooking_guide.step_override_dialog.columns.value")), 1)
|
|
290
290
|
]),
|
|
291
|
-
(g(!0), K(M, null,
|
|
291
|
+
(g(!0), K(M, null, H(I.value, (t) => (g(), K("div", {
|
|
292
292
|
key: t.id,
|
|
293
293
|
class: "flex border-t-2"
|
|
294
294
|
}, [
|
|
295
|
-
a("div",
|
|
296
|
-
a("div",
|
|
297
|
-
(g(!0), K(M, null,
|
|
298
|
-
key:
|
|
295
|
+
a("div", Xe, S(t.instruction), 1),
|
|
296
|
+
a("div", He, [
|
|
297
|
+
(g(!0), K(M, null, H(t.variables, (f, N) => (g(), K("div", {
|
|
298
|
+
key: N,
|
|
299
299
|
class: "py-8 w-full text-ellipsis overflow-hidden whitespace-nowrap"
|
|
300
|
-
}, S(
|
|
300
|
+
}, S(N), 1))), 128))
|
|
301
301
|
]),
|
|
302
|
-
a("div",
|
|
303
|
-
(g(!0), K(M, null,
|
|
304
|
-
l(
|
|
305
|
-
"model-value": q(t.id,
|
|
302
|
+
a("div", Je, [
|
|
303
|
+
(g(!0), K(M, null, H(t.variables, (f, N) => (g(), K("div", { key: N }, [
|
|
304
|
+
l(L, {
|
|
305
|
+
"model-value": q(t.id, N.toString()),
|
|
306
306
|
placeholder: f,
|
|
307
|
-
"onUpdate:modelValue": (
|
|
307
|
+
"onUpdate:modelValue": (G) => Q(t.id, N.toString(), G)
|
|
308
308
|
}, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
|
|
309
309
|
]))), 128))
|
|
310
310
|
])
|
|
@@ -328,8 +328,8 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
328
328
|
}
|
|
329
329
|
},
|
|
330
330
|
emits: ["onSave"],
|
|
331
|
-
setup(
|
|
332
|
-
const r =
|
|
331
|
+
setup(T, { expose: _, emit: J }) {
|
|
332
|
+
const r = T;
|
|
333
333
|
_({
|
|
334
334
|
showModal: R,
|
|
335
335
|
hideModal: I
|
|
@@ -406,10 +406,10 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
406
406
|
);
|
|
407
407
|
j(b);
|
|
408
408
|
}
|
|
409
|
-
const
|
|
409
|
+
const L = F();
|
|
410
410
|
function i(e) {
|
|
411
411
|
var o;
|
|
412
|
-
(o =
|
|
412
|
+
(o = L.value) == null || o.show({
|
|
413
413
|
itemName: e.itemName,
|
|
414
414
|
steps: s.value.steps,
|
|
415
415
|
bindings: k(e.itemId, e.combinationKey)
|
|
@@ -428,7 +428,7 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
428
428
|
);
|
|
429
429
|
o >= 0 && s.value.bindings.splice(o, 1);
|
|
430
430
|
}
|
|
431
|
-
const { t } = le(), f = V(() => s.value._id ? t("menu.cooking_guide.dialog.update.title") : t("menu.cooking_guide.dialog.add.title")),
|
|
431
|
+
const { t } = le(), f = V(() => s.value._id ? t("menu.cooking_guide.dialog.update.title") : t("menu.cooking_guide.dialog.add.title")), N = V(() => s.value._id ? t("menu.cooking_guide.dialog.update.action") : t("menu.cooking_guide.dialog.add.action")), G = V(() => s.value.bindings.length), $ = V(
|
|
432
432
|
() => s.value.bindings.reduce((e, o) => {
|
|
433
433
|
const b = e[o.productId] ?? [];
|
|
434
434
|
return o.combinationKey ? e[o.productId] = [...b, o.combinationKey] : e[o.productId] = [], e;
|
|
@@ -457,7 +457,7 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
457
457
|
}, [])), E = V(() => z.value.filter((e) => {
|
|
458
458
|
const o = $.value[e.itemId];
|
|
459
459
|
return !!o && (!e.combinationKey || o.includes(e.combinationKey));
|
|
460
|
-
})),
|
|
460
|
+
})), B = V(() => {
|
|
461
461
|
const e = Y.value.toLowerCase();
|
|
462
462
|
return e ? E.value.filter(
|
|
463
463
|
(o) => {
|
|
@@ -465,7 +465,7 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
465
465
|
return ((b = o.itemCode) == null ? void 0 : b.toLowerCase().includes(e)) || o.itemName.toLowerCase().includes(e) || o.categoryName.toLowerCase().includes(e);
|
|
466
466
|
}
|
|
467
467
|
) : E.value;
|
|
468
|
-
}), se = V(() =>
|
|
468
|
+
}), se = V(() => B.value.reduce(
|
|
469
469
|
(e, o) => {
|
|
470
470
|
const b = e.findIndex((d) => d.id === o.categoryId);
|
|
471
471
|
return b < 0 ? e.push({
|
|
@@ -478,10 +478,10 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
478
478
|
}, e;
|
|
479
479
|
},
|
|
480
480
|
[]
|
|
481
|
-
)), _e =
|
|
481
|
+
)), _e = J;
|
|
482
482
|
F();
|
|
483
|
-
const ve =
|
|
484
|
-
() => !
|
|
483
|
+
const ve = pe(
|
|
484
|
+
() => !ge.isEqual(C.value, s.value),
|
|
485
485
|
() => {
|
|
486
486
|
D.value = !1;
|
|
487
487
|
}
|
|
@@ -512,7 +512,7 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
512
512
|
a("div", ro, [
|
|
513
513
|
l(d, {
|
|
514
514
|
variant: "primary",
|
|
515
|
-
label:
|
|
515
|
+
label: N.value,
|
|
516
516
|
size: "lg",
|
|
517
517
|
type: "submit"
|
|
518
518
|
}, null, 8, ["label"]),
|
|
@@ -563,7 +563,7 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
563
563
|
handle: ".handle",
|
|
564
564
|
"item-key": "id"
|
|
565
565
|
}, {
|
|
566
|
-
item: p(({ element: y, index:
|
|
566
|
+
item: p(({ element: y, index: X }) => [
|
|
567
567
|
l(W, {
|
|
568
568
|
variant: "outlined",
|
|
569
569
|
class: "rounded-md mb-16 items-center",
|
|
@@ -588,7 +588,7 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
588
588
|
l(d, {
|
|
589
589
|
icon: "delete",
|
|
590
590
|
variant: "tertiary",
|
|
591
|
-
onClick: ie(() => q(
|
|
591
|
+
onClick: ie(() => q(X), ["stop"])
|
|
592
592
|
}, null, 8, ["onClick"])
|
|
593
593
|
]),
|
|
594
594
|
_: 2
|
|
@@ -599,14 +599,14 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
599
599
|
]),
|
|
600
600
|
_: 1
|
|
601
601
|
}, 8, ["title"]),
|
|
602
|
-
|
|
602
|
+
T.canApplyItems ? (g(), U(Z, {
|
|
603
603
|
key: 0,
|
|
604
604
|
title: n(t)("menu.cooking_guide.dialog.sections.apply_product.title")
|
|
605
605
|
}, {
|
|
606
606
|
"append-title": p(() => [
|
|
607
607
|
l(oe),
|
|
608
608
|
l(Ie, {
|
|
609
|
-
"categorized-items":
|
|
609
|
+
"categorized-items": T.categorizedItems,
|
|
610
610
|
"initial-value": s.value.bindings.map((y) => ({
|
|
611
611
|
_id: y.productId,
|
|
612
612
|
combinationKey: y.combinationKey
|
|
@@ -632,7 +632,7 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
632
632
|
default: p(() => [
|
|
633
633
|
a("div", to, [
|
|
634
634
|
a("div", no, S(n(t)("menu.cooking_guide.dialog.sections.apply_product.products_linked", {
|
|
635
|
-
count:
|
|
635
|
+
count: G.value
|
|
636
636
|
})), 1),
|
|
637
637
|
a("div", io, [
|
|
638
638
|
l(te, {
|
|
@@ -642,27 +642,27 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
642
642
|
}, null, 8, ["modelValue", "placeholder"])
|
|
643
643
|
])
|
|
644
644
|
]),
|
|
645
|
-
(g(!0), K(M, null,
|
|
645
|
+
(g(!0), K(M, null, H(se.value, (y) => (g(), K("div", {
|
|
646
646
|
key: y.id || ""
|
|
647
647
|
}, [
|
|
648
648
|
a("div", ao, S(y.name), 1),
|
|
649
|
-
(g(!0), K(M, null,
|
|
650
|
-
key:
|
|
649
|
+
(g(!0), K(M, null, H(y.items, (X) => (g(), K("div", {
|
|
650
|
+
key: X.itemId,
|
|
651
651
|
class: "flex items-center"
|
|
652
652
|
}, [
|
|
653
653
|
a("div", lo, [
|
|
654
|
-
a("span", so, S((
|
|
654
|
+
a("span", so, S((X.itemCode ? `${X.itemCode} ` : "") + X.itemName), 1)
|
|
655
655
|
]),
|
|
656
656
|
a("div", uo, [
|
|
657
657
|
l(d, {
|
|
658
658
|
icon: "edit",
|
|
659
659
|
variant: "tertiary",
|
|
660
|
-
onClick: () => i(
|
|
660
|
+
onClick: () => i(X)
|
|
661
661
|
}, null, 8, ["onClick"]),
|
|
662
662
|
l(d, {
|
|
663
663
|
icon: "delete",
|
|
664
664
|
variant: "tertiary",
|
|
665
|
-
onClick: () => v(
|
|
665
|
+
onClick: () => v(X)
|
|
666
666
|
}, null, 8, ["onClick"])
|
|
667
667
|
])
|
|
668
668
|
]))), 128))
|
|
@@ -681,32 +681,32 @@ const Ke = { class: "flex items-center gap-8" }, Be = { class: "grow" }, Le = {
|
|
|
681
681
|
}, null, 512),
|
|
682
682
|
l(Qe, {
|
|
683
683
|
ref_key: "cookingGuideStepOverrideDialogRef",
|
|
684
|
-
ref:
|
|
684
|
+
ref: L,
|
|
685
685
|
onOnComplete: u
|
|
686
686
|
}, null, 512)
|
|
687
687
|
], 64);
|
|
688
688
|
};
|
|
689
689
|
}
|
|
690
690
|
});
|
|
691
|
-
function mo(
|
|
691
|
+
function mo(T) {
|
|
692
692
|
return {
|
|
693
693
|
module: re.enum.cookingGuide,
|
|
694
694
|
operation: de.F_OPERATION_TYPE.create,
|
|
695
|
-
data:
|
|
695
|
+
data: me.parse(T)
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
|
-
function po(
|
|
698
|
+
function po(T) {
|
|
699
699
|
return {
|
|
700
700
|
module: re.enum.cookingGuide,
|
|
701
701
|
operation: de.F_OPERATION_TYPE.update,
|
|
702
|
-
data:
|
|
702
|
+
data: me.parse(T)
|
|
703
703
|
};
|
|
704
704
|
}
|
|
705
|
-
function go(
|
|
705
|
+
function go(T) {
|
|
706
706
|
return {
|
|
707
707
|
module: re.enum.cookingGuide,
|
|
708
708
|
operation: de.F_OPERATION_TYPE.delete,
|
|
709
|
-
data:
|
|
709
|
+
data: T._id
|
|
710
710
|
};
|
|
711
711
|
}
|
|
712
712
|
const _o = {
|
|
@@ -721,12 +721,12 @@ const _o = {
|
|
|
721
721
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
722
722
|
}, ko = {
|
|
723
723
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
724
|
-
},
|
|
724
|
+
}, Lo = /* @__PURE__ */ ae({
|
|
725
725
|
__name: "CookingGuide",
|
|
726
|
-
setup(
|
|
726
|
+
setup(T) {
|
|
727
727
|
const {
|
|
728
728
|
t: _
|
|
729
|
-
} = le(),
|
|
729
|
+
} = le(), J = ye(), r = V(() => J.breakpoints.value.xs), P = V(() => [{
|
|
730
730
|
accessorKey: "name",
|
|
731
731
|
header: () => _("menu.cooking_guide.table.columns.name"),
|
|
732
732
|
cell: (i) => i.getValue(),
|
|
@@ -806,12 +806,12 @@ const _o = {
|
|
|
806
806
|
await O.updateMenu(go(i), i.name, !0);
|
|
807
807
|
});
|
|
808
808
|
}
|
|
809
|
-
const h = F(""),
|
|
809
|
+
const h = F(""), L = V(() => {
|
|
810
810
|
const i = h.value.toLowerCase();
|
|
811
811
|
return i ? I.value.filter((u) => u.name.toLowerCase().includes(i)) : I.value;
|
|
812
812
|
});
|
|
813
813
|
return (i, u) => {
|
|
814
|
-
const v = x("FmSearch"), t = x("FmTable"), f = x("FmButton"),
|
|
814
|
+
const v = x("FmSearch"), t = x("FmTable"), f = x("FmButton"), N = x("FmListItem"), G = x("FmList");
|
|
815
815
|
return g(), U(Oe, {
|
|
816
816
|
heading: n(_)("menu.cooking_guide.title")
|
|
817
817
|
}, {
|
|
@@ -831,12 +831,12 @@ const _o = {
|
|
|
831
831
|
autofocus: "",
|
|
832
832
|
class: "my-8 w-[320px] xs:w-full xs:px-16",
|
|
833
833
|
placeholder: n(_)("menu.cooking_guide.table.search.placeholder")
|
|
834
|
-
}, null, 8, ["modelValue", "placeholder"])]), r.value ? (g(), U(
|
|
834
|
+
}, null, 8, ["modelValue", "placeholder"])]), r.value ? (g(), U(G, {
|
|
835
835
|
key: 1,
|
|
836
836
|
class: "w-full px-16 flex-1 min-h-0 overflow-scroll pb-64",
|
|
837
837
|
separator: ""
|
|
838
838
|
}, {
|
|
839
|
-
default: p(() => [(g(!0), K(M, null,
|
|
839
|
+
default: p(() => [(g(!0), K(M, null, H(L.value, ($) => (g(), U(N, {
|
|
840
840
|
key: $._id,
|
|
841
841
|
label: $.name,
|
|
842
842
|
style: {
|
|
@@ -893,5 +893,5 @@ const _o = {
|
|
|
893
893
|
}
|
|
894
894
|
});
|
|
895
895
|
export {
|
|
896
|
-
|
|
896
|
+
Lo as default
|
|
897
897
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as S, computed as o, createBlock as v, openBlock as t, unref as c, withCtx as g, renderSlot as B, ref as A, resolveComponent as I, createElementBlock as a, createElementVNode as m, createCommentVNode as b, Fragment as f, renderList as C, toDisplayString as d, withModifiers as F } from "vue";
|
|
2
2
|
import { useI18n as V } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as M } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
|
|
4
|
-
import { u as D } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as D } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
5
5
|
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as y } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
7
7
|
const X = /* @__PURE__ */ S({
|
|
@@ -2,10 +2,10 @@ import { defineComponent as m, ref as p, createBlock as i, openBlock as d, unref
|
|
|
2
2
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as f } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
4
4
|
import { _ as g } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
5
|
-
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import {
|
|
7
|
-
import { a as h } from "./menu-
|
|
8
|
-
const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "flex items-center" }, k = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, C = { class: "fm-typo-en-body-md-600 font-semibold" },
|
|
5
|
+
import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js";
|
|
6
|
+
import { ap as b } from "./item-Da3ArD-G.js";
|
|
7
|
+
import { a as h } from "./menu-DSDRAil-.js";
|
|
8
|
+
const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "flex items-center" }, k = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, C = { class: "fm-typo-en-body-md-600 font-semibold" }, A = /* @__PURE__ */ m({
|
|
9
9
|
__name: "Group",
|
|
10
10
|
setup(N) {
|
|
11
11
|
const o = p(0), { t: r } = _();
|
|
@@ -44,5 +44,5 @@ const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "fle
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
A as default
|
|
48
48
|
};
|