@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 ie, computed as b, ref as E, reactive as Ve, watch as Ce, resolveComponent as d, createElementBlock as y, openBlock as m, Fragment as V, renderSlot as we, createVNode as s, unref as e, withCtx as k, createBlock as I, createCommentVNode as
|
|
1
|
+
import { defineComponent as ie, computed as b, ref as E, reactive as Ve, watch as Ce, resolveComponent as d, createElementBlock as y, openBlock as m, Fragment as V, renderSlot as we, createVNode as s, unref as e, withCtx as k, createBlock as I, createCommentVNode as j, createElementVNode as v, renderList as q, normalizeClass as J, createTextVNode as Me, toDisplayString as U, getCurrentInstance as $e, h as te, withModifiers as oe } from "vue";
|
|
2
2
|
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as W, components as se, useDialog as Ee, FmButtonVariant as ue, useBreakpoints as Ue } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
6
|
-
import { _ as
|
|
7
|
-
import { defineStore as
|
|
8
|
-
import { _ as ae, g as
|
|
9
|
-
import { u as Re } from "./discardConfirm-
|
|
10
|
-
import { c as
|
|
11
|
-
import { u as
|
|
4
|
+
import { _ as Ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
+
import { i as re, b as X, u as Z, d as Te, m as K, _ as ce, e as le, g as G, h as H } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
6
|
+
import { _ as Be } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
7
|
+
import { defineStore as Ie } from "pinia";
|
|
8
|
+
import { _ as ae, g as Oe } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js";
|
|
9
|
+
import { u as Pe, l as Re } from "./discardConfirm-DZwzKO-Q.js";
|
|
10
|
+
import { c as Le } from "./check-C9mY6LiX.js";
|
|
11
|
+
import { u as Ae } from "./unit-n1T9grbM.js";
|
|
12
12
|
import { c as De } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
14
14
|
key: 0,
|
|
@@ -16,19 +16,19 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
16
16
|
}, Ke = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "pt-8 space-y-40"
|
|
19
|
-
},
|
|
19
|
+
}, je = { class: "flex flex-row gap-16" }, qe = { class: "overflow-x-hidden overflow-y-auto max-h-[300px]" }, Ge = { class: "flex gap-8 items-center justify-start" }, He = /* @__PURE__ */ ie({
|
|
20
20
|
__name: "Form",
|
|
21
21
|
props: {
|
|
22
22
|
initialValue: { default: void 0 },
|
|
23
23
|
usedCodes: { default: () => [] },
|
|
24
24
|
invalidSkuAndRecipe: {}
|
|
25
25
|
},
|
|
26
|
-
setup(O, { expose:
|
|
27
|
-
const { t: l } = Q(), r = O, u = re(X(W())), S =
|
|
26
|
+
setup(O, { expose: N }) {
|
|
27
|
+
const { t: l } = Q(), r = O, u = re(X(W())), S = Ae(), h = b(() => r.initialValue ? l("menu.sku.update") : l("menu.sku.add")), x = b(
|
|
28
28
|
() => r.initialValue ? l("menu.common.actions.update") : l("menu.common.actions.add")
|
|
29
29
|
), C = E(!1), _ = E(!1), w = (t) => {
|
|
30
|
-
|
|
31
|
-
},
|
|
30
|
+
Le.isBoolean(t) ? _.value = t : _.value = !_.value;
|
|
31
|
+
}, T = Z(), a = b(() => T.units), i = b(() => a.value.map(({ name: t, _id: o, abbrev: g, measurements: B }) => ({
|
|
32
32
|
label: t,
|
|
33
33
|
value: o,
|
|
34
34
|
options: [
|
|
@@ -36,13 +36,13 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
36
36
|
label: `${t} (${g})`,
|
|
37
37
|
value: null
|
|
38
38
|
},
|
|
39
|
-
...
|
|
39
|
+
...B.map(({ name: D, id: Y, abbrev: z }) => ({
|
|
40
40
|
label: `${D} (${z})`,
|
|
41
41
|
value: Y
|
|
42
42
|
}))
|
|
43
43
|
]
|
|
44
44
|
}))), c = b(() => a.value.length > 0), n = Ve(
|
|
45
|
-
r.initialValue ?
|
|
45
|
+
r.initialValue ? Te(r.initialValue) : {
|
|
46
46
|
...K.generator.initSku(),
|
|
47
47
|
unit: a.value[0] || K.generator.initUnit()
|
|
48
48
|
}
|
|
@@ -53,7 +53,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
53
53
|
}), R = (t) => n.unit._id === t.value && n.trackingMeasurement === (t.value || null);
|
|
54
54
|
function f(t, o) {
|
|
55
55
|
const g = o || void 0;
|
|
56
|
-
n.unit._id === t && n.trackingMeasurement === g || (n.unit = a.value.find((
|
|
56
|
+
n.unit._id === t && n.trackingMeasurement === g || (n.unit = a.value.find((B) => B._id === t), n.trackingMeasurement = g, n.convert && (n.convert.measurement = g));
|
|
57
57
|
}
|
|
58
58
|
const de = b(() => {
|
|
59
59
|
const t = i.value.find((o) => o.value === n.unit._id);
|
|
@@ -74,17 +74,17 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
74
74
|
F.value && (n.convert = {
|
|
75
75
|
...n.convert,
|
|
76
76
|
inventoryBindings: t
|
|
77
|
-
}),
|
|
77
|
+
}), A.value = !1;
|
|
78
78
|
}
|
|
79
79
|
const pe = b(() => r.invalidSkuAndRecipe.skus), ve = b(() => r.invalidSkuAndRecipe.recipes);
|
|
80
80
|
l("menu.sku.errors.select_recipe_ingredient");
|
|
81
|
-
const
|
|
81
|
+
const A = E(!1);
|
|
82
82
|
function fe() {
|
|
83
83
|
var t;
|
|
84
|
-
return
|
|
84
|
+
return A.value = (((t = n.convert) == null ? void 0 : t.inventoryBindings) || []).length === 0, !A.value;
|
|
85
85
|
}
|
|
86
|
-
const _e =
|
|
87
|
-
() => !
|
|
86
|
+
const _e = Pe(
|
|
87
|
+
() => !Re.isEqual(n, r.initialValue || K.generator.initSku()),
|
|
88
88
|
() => {
|
|
89
89
|
_.value = !1;
|
|
90
90
|
}
|
|
@@ -98,14 +98,14 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
98
98
|
r.initialValue ? await u.updateMenu(
|
|
99
99
|
{
|
|
100
100
|
module: H.enum.sku,
|
|
101
|
-
operation:
|
|
101
|
+
operation: G.F_OPERATION_TYPE.update,
|
|
102
102
|
data: o
|
|
103
103
|
},
|
|
104
104
|
o.name
|
|
105
105
|
) : await u.updateMenu(
|
|
106
106
|
{
|
|
107
107
|
module: H.enum.sku,
|
|
108
|
-
operation:
|
|
108
|
+
operation: G.F_OPERATION_TYPE.create,
|
|
109
109
|
data: o
|
|
110
110
|
},
|
|
111
111
|
o.name
|
|
@@ -118,11 +118,11 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
118
118
|
() => _.value,
|
|
119
119
|
(t) => {
|
|
120
120
|
}
|
|
121
|
-
),
|
|
121
|
+
), N({
|
|
122
122
|
show: _,
|
|
123
123
|
trigger: w
|
|
124
124
|
}), (t, o) => {
|
|
125
|
-
const g = d("FmTextField"),
|
|
125
|
+
const g = d("FmTextField"), B = d("FmLabel"), D = d("FmField"), Y = d("FmMenuHeader"), z = d("FmMenuDivider"), ge = d("FmMenuItem"), ye = d("FmMenu"), ke = d("FmFormGroup"), he = d("FmSwitch"), xe = d("FmSelect"), Fe = d("FmCard"), ne = d("fm-button"), Se = d("fm-side-sheet");
|
|
126
126
|
return m(), y(V, null, [
|
|
127
127
|
we(t.$slots, "default", { trigger: w }),
|
|
128
128
|
s(Se, {
|
|
@@ -141,7 +141,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
141
141
|
v("p", Ye, U(h.value), 1)
|
|
142
142
|
]),
|
|
143
143
|
"side-sheet-footer": k(() => [
|
|
144
|
-
v("div",
|
|
144
|
+
v("div", Ge, [
|
|
145
145
|
s(ne, {
|
|
146
146
|
label: x.value,
|
|
147
147
|
loading: C.value,
|
|
@@ -159,7 +159,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
159
159
|
]),
|
|
160
160
|
default: k(() => [
|
|
161
161
|
c.value ? (m(), y("div", Ke, [
|
|
162
|
-
v("div",
|
|
162
|
+
v("div", je, [
|
|
163
163
|
s(g, {
|
|
164
164
|
class: "flex-2",
|
|
165
165
|
label: e(l)("menu.sku.columns.code"),
|
|
@@ -190,7 +190,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
190
190
|
"model-value": P.value
|
|
191
191
|
}, {
|
|
192
192
|
label: k(() => [
|
|
193
|
-
s(
|
|
193
|
+
s(B, {
|
|
194
194
|
label: e(l)("menu.sku.columns.unit")
|
|
195
195
|
}, null, 8, ["label"])
|
|
196
196
|
]),
|
|
@@ -214,13 +214,13 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
214
214
|
}, 1032, ["invalid"])
|
|
215
215
|
]),
|
|
216
216
|
default: k(() => [
|
|
217
|
-
v("div",
|
|
218
|
-
(m(!0), y(V, null,
|
|
217
|
+
v("div", qe, [
|
|
218
|
+
(m(!0), y(V, null, q(i.value, (M, L) => (m(), y(V, { key: L }, [
|
|
219
219
|
s(Y, {
|
|
220
220
|
label: M.label
|
|
221
221
|
}, null, 8, ["label"]),
|
|
222
222
|
s(z),
|
|
223
|
-
(m(!0), y(V, null,
|
|
223
|
+
(m(!0), y(V, null, q(M.options, ($, dn) => (m(), I(ge, {
|
|
224
224
|
label: $.label,
|
|
225
225
|
"model-value": R($),
|
|
226
226
|
onClick: (mn) => f(M.value, $.value),
|
|
@@ -239,7 +239,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
239
239
|
class: "p-16 flex flex-col gap-16"
|
|
240
240
|
}, {
|
|
241
241
|
default: k(() => {
|
|
242
|
-
var p, M,
|
|
242
|
+
var p, M, L;
|
|
243
243
|
return [
|
|
244
244
|
s(he, {
|
|
245
245
|
value: "",
|
|
@@ -265,12 +265,12 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
265
265
|
"onUpdate:modelValue": ee
|
|
266
266
|
}, null, 8, ["model-value", "type", "filter-option-ids"]),
|
|
267
267
|
s(ae, {
|
|
268
|
-
"model-value": ((
|
|
268
|
+
"model-value": ((L = n.convert) == null ? void 0 : L.inventoryBindings) || [],
|
|
269
269
|
type: e(le.F_INVENTORY_BINDING_TYPE).enum.SKU,
|
|
270
270
|
"filter-option-ids": pe.value,
|
|
271
271
|
"onUpdate:modelValue": ee
|
|
272
272
|
}, null, 8, ["model-value", "type", "filter-option-ids"])
|
|
273
|
-
], 64)) :
|
|
273
|
+
], 64)) : j("", !0)
|
|
274
274
|
];
|
|
275
275
|
}),
|
|
276
276
|
_: 1
|
|
@@ -286,7 +286,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
286
286
|
},
|
|
287
287
|
subtitle: e(l)("menu.sku.empty.subtitle"),
|
|
288
288
|
title: e(l)("menu.sku.empty.no_unit")
|
|
289
|
-
}, null, 8, ["action", "subtitle", "title"])) :
|
|
289
|
+
}, null, 8, ["action", "subtitle", "title"])) : j("", !0)
|
|
290
290
|
]))
|
|
291
291
|
]),
|
|
292
292
|
_: 1
|
|
@@ -294,8 +294,8 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
294
294
|
], 64);
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
}), Je = He, Qe =
|
|
298
|
-
const O = Ee(),
|
|
297
|
+
}), Je = He, Qe = Ie("sku-manager", () => {
|
|
298
|
+
const O = Ee(), N = W(), l = X(N), r = re(l), u = Z(), S = $e(), { t: h } = Q(), x = (a) => {
|
|
299
299
|
var c, n;
|
|
300
300
|
const { vNode: i } = De(
|
|
301
301
|
Je,
|
|
@@ -308,7 +308,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
308
308
|
x({
|
|
309
309
|
initialValue: a,
|
|
310
310
|
usedCodes: u.skus.filter(({ _id: i }) => i !== (a == null ? void 0 : a._id)).map((i) => i.code),
|
|
311
|
-
invalidSkuAndRecipe: a ?
|
|
311
|
+
invalidSkuAndRecipe: a ? Oe({
|
|
312
312
|
id: a._id,
|
|
313
313
|
skus: u.skus,
|
|
314
314
|
recipes: u.state.menu.modules.recipe
|
|
@@ -321,7 +321,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
321
321
|
async function w(a) {
|
|
322
322
|
C(a);
|
|
323
323
|
}
|
|
324
|
-
async function
|
|
324
|
+
async function T(a) {
|
|
325
325
|
O.open({
|
|
326
326
|
title: h("menu.common.dialog.remove.ingredient.title"),
|
|
327
327
|
message: h("menu.common.dialog.remove.ingredient.message", { name: a.name }),
|
|
@@ -338,7 +338,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
338
338
|
await r.updateMenu(
|
|
339
339
|
{
|
|
340
340
|
module: H.enum.sku,
|
|
341
|
-
operation:
|
|
341
|
+
operation: G.F_OPERATION_TYPE.delete,
|
|
342
342
|
data: a._id
|
|
343
343
|
},
|
|
344
344
|
a.name,
|
|
@@ -349,7 +349,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
349
349
|
return {
|
|
350
350
|
createSku: _,
|
|
351
351
|
updateSku: w,
|
|
352
|
-
deleteSku:
|
|
352
|
+
deleteSku: T
|
|
353
353
|
};
|
|
354
354
|
}), We = {
|
|
355
355
|
key: 0,
|
|
@@ -379,8 +379,8 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
379
379
|
}, Vn = /* @__PURE__ */ ie({
|
|
380
380
|
__name: "Ingredient",
|
|
381
381
|
setup(O) {
|
|
382
|
-
const
|
|
383
|
-
X(
|
|
382
|
+
const N = W();
|
|
383
|
+
X(N);
|
|
384
384
|
const l = Z(), r = Qe(), {
|
|
385
385
|
t: u
|
|
386
386
|
} = Q(), S = b(() => l.skus), h = b(() => S.value.filter((i) => `${i.name} ${i.code} ${i._unit} (${i._abbrev})`.toLowerCase().includes(x.value.toLowerCase()))), x = E(""), C = E([{
|
|
@@ -424,10 +424,10 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
424
424
|
function _(i) {
|
|
425
425
|
r.updateSku(i);
|
|
426
426
|
}
|
|
427
|
-
const w = b(() => S.value.length),
|
|
427
|
+
const w = b(() => S.value.length), T = Ue(), a = b(() => T.breakpoints.value.xs);
|
|
428
428
|
return (i, c) => {
|
|
429
429
|
const n = d("FmSearch"), F = d("FmTable"), P = d("fm-button"), R = d("FmSpacer");
|
|
430
|
-
return m(), I(
|
|
430
|
+
return m(), I(Be, {
|
|
431
431
|
heading: e(u)("menu.ingredient.title")
|
|
432
432
|
}, {
|
|
433
433
|
default: k(() => [S.value.length === 0 ? (m(), I(e(ce), {
|
|
@@ -450,7 +450,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
450
450
|
"onUpdate:modelValue": c[2] || (c[2] = (f) => x.value = f),
|
|
451
451
|
placeholder: e(u)("menu.ingredient.table.search.placeholder"),
|
|
452
452
|
class: "w-full"
|
|
453
|
-
}, null, 8, ["modelValue", "placeholder"])]), v("div", en, [(m(!0), y(V, null,
|
|
453
|
+
}, null, 8, ["modelValue", "placeholder"])]), v("div", en, [(m(!0), y(V, null, q(h.value, (f) => (m(), y("div", {
|
|
454
454
|
key: f._id,
|
|
455
455
|
class: J(["py-12 px-16", "flex space-x-8", "items-center"]),
|
|
456
456
|
onClick: () => e(r).updateSku(f)
|
|
@@ -478,12 +478,12 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
478
478
|
"pin-header-row": "",
|
|
479
479
|
onRowClick: c[1] || (c[1] = (f) => _(f.original))
|
|
480
480
|
}, null, 8, ["column-defs", "row-data", "page-size"])]))], 64))]),
|
|
481
|
-
"append-heading": k(() => [v("div", sn, [v("div", un, [v("div", rn, [v("p", cn, U(w.value), 1)])]), s(R), S.value.length > 0 ? (m(), I(
|
|
481
|
+
"append-heading": k(() => [v("div", sn, [v("div", un, [v("div", rn, [v("p", cn, U(w.value), 1)])]), s(R), S.value.length > 0 ? (m(), I(Ne, {
|
|
482
482
|
key: 0,
|
|
483
483
|
label: e(u)("menu.ingredient.actions.add"),
|
|
484
484
|
"prepend-icon": "add",
|
|
485
485
|
onClick: e(r).createSku
|
|
486
|
-
}, null, 8, ["label", "onClick"])) :
|
|
486
|
+
}, null, 8, ["label", "onClick"])) : j("", !0)])]),
|
|
487
487
|
_: 1
|
|
488
488
|
}, 8, ["heading"]);
|
|
489
489
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as et, watch as st, computed as ve, resolveComponent as qe, createElementBlock as Ne, openBlock as Ae, createElementVNode as Le, createVNode as He, toDisplayString as tt, unref as Oe, isRef as ut, createBlock as dt, createCommentVNode as $t, Fragment as mt, renderList as ct, h as Ie } from "vue";
|
|
2
|
-
import { u as pt,
|
|
2
|
+
import { u as pt, e as ze, a as We, y as Qe, c as gt, z as Ft } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
3
3
|
import { useI18n as nt } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as ft, useProxiedModel as It, useDialog as yt, components as we, FmButtonColorThemeVariant as Ze, FmButtonVariant as Ke } from "@feedmepos/ui-library";
|
|
5
5
|
import { u as St } from "./search-BAPEUu1R.js";
|
|
6
|
-
var Be = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_39510aae-1b8c-43d9-9d54-55674f9aedbc", DOTNET_NOLOGO: "1", USER: "runner", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v18.20.8 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_39510aae-1b8c-43d9-9d54-55674f9aedbc", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", GTM_ID: "GTM-WR8XHXLH", FIREBASE_MESSAGING_SENDER_ID: "128512026847", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "production", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.6.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-zzez732dna-as.a.run.app", VITE_FEATURE_FLAG_API_KEY: "6GhcttsJ9Rj9cTevcdrpin", SYSTEMD_EXEC_PID: "1908", ACTIONS_ORCHESTRATION_ID: "125c0df2-a12f-47d3-90f0-6f9fd2391762.publish.deploy.__default", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260720.247.2", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_39510aae-1b8c-43d9-9d54-55674f9aedbc", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10786", GITHUB_WORKFLOW: "Publish mf-menu prod", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", REMY_URL: "https://remy.feedmeapi.com/v1", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "30870071291", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapi.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "ef698a60f3410275ed2238ec2f8a0e01275a355a", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "production", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu-prod.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_3daefcf7-12ea-4124-b2e0-1d6b2bbc1854", INVOCATION_ID: "68063b6827a94f818a34e3472b69023d", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "178", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-2MP52PC24R", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", VITE_LICENSE_API_URL: "https://license-v2.feedmeapi.com", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000103406", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.32.62", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", GTM_DEBUG: "false", FIREBASE_PROJECT_ID: "feedme-253402", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "ef698a60f3410275ed2238ec2f8a0e01275a355a", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_39510aae-1b8c-43d9-9d54-55674f9aedbc", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "7780463", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_39510aae-1b8c-43d9-9d54-55674f9aedbc", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_39510aae-1b8c-43d9-9d54-55674f9aedbc", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_39510aae-1b8c-43d9-9d54-55674f9aedbc", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } }, rt = typeof Be < "u" && (Be.versions || {}).hasOwnProperty("node"), D = rt ? Object.create(globalThis) : globalThis;
|
|
6
|
+
var Be = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_7568684a-b6a9-48f6-b82b-c05a92ab0064", DOTNET_NOLOGO: "1", USER: "runner", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v18.20.8 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_7568684a-b6a9-48f6-b82b-c05a92ab0064", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.6.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", VITE_FEATURE_FLAG_API_KEY: "MaGoXrEWuEJNpWgKTqseee", SYSTEMD_EXEC_PID: "1802", ACTIONS_ORCHESTRATION_ID: "03686535-356d-4815-a3a1-1bfe0edc3374.publish.deploy.__default", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260720.247.2", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_7568684a-b6a9-48f6-b82b-c05a92ab0064", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12630", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "31193639463", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "b26c69a65b69f0618de8663106f6f6255e8fd04b", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/KDI-5049-multiple-images-aspect-ratios", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_3b8bf86f-521b-47fd-b285-36a33db911d5", INVOCATION_ID: "046a3876256a428fa8fe2bfb6c4c299b", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "580", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", VITE_LICENSE_API_URL: "https://license-v2-dev.feedmeapi.com", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000106815", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5049-multiple-images-aspect-ratios", GITHUB_REPOSITORY: "feedmepos/portal", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.32.63-dev.1", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "b26c69a65b69f0618de8663106f6f6255e8fd04b", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5049-multiple-images-aspect-ratios", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_7568684a-b6a9-48f6-b82b-c05a92ab0064", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "7780463", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_7568684a-b6a9-48f6-b82b-c05a92ab0064", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_7568684a-b6a9-48f6-b82b-c05a92ab0064", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_7568684a-b6a9-48f6-b82b-c05a92ab0064", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } }, rt = typeof Be < "u" && (Be.versions || {}).hasOwnProperty("node"), D = rt ? Object.create(globalThis) : globalThis;
|
|
7
7
|
D.scheduleImmediate = typeof setImmediate < "u" ? function(ge) {
|
|
8
8
|
setImmediate(ge);
|
|
9
9
|
} : function(ge) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createElementBlock as k, openBlock as d, createElementVNode as C, defineComponent as ie, ref as A, computed as z, resolveComponent as x, createBlock as T, unref as t, withCtx as G, createVNode as f, toDisplayString as M, Fragment as X, renderList as ue, createCommentVNode as Q, withModifiers as ae, watch as se, renderSlot as fe } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { l as ne, u as _e } from "./discardConfirm-DZwzKO-Q.js";
|
|
3
3
|
import { d as ye } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
4
|
-
import {
|
|
4
|
+
import { u as re, k as oe, d as ee, _ as Re } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
5
|
+
import { useI18n as me, ItemSelector as be } from "@feedmepos/mf-common";
|
|
5
6
|
import { components as ce, FmButtonVariant as Z } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as ge } from "./menuV2-Bo9AHrdr.js";
|
|
7
|
+
import { u as ge } from "./menuV2-fTlJdjxi.js";
|
|
8
8
|
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { m as B, g as Ce, h as he, c as ke, b as Ae, f as le } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { m as B, g as Ce, h as he, c as ke, b as Ae, f as le } from "./RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js";
|
|
10
10
|
import { c as Fe } from "./check-C9mY6LiX.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
const Ve = {};
|
|
@@ -505,7 +505,7 @@ const qe = { class: "fm-typo-en-title-md-600 mr-auto" }, je = {
|
|
|
505
505
|
};
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
|
-
const y =
|
|
508
|
+
const y = _e(
|
|
509
509
|
() => {
|
|
510
510
|
const u = n() ?? null;
|
|
511
511
|
return !ne.isEqual(F(s.initialValue), $.value) || !ne.isEqual(s.linkItemRules, u);
|
|
@@ -624,7 +624,7 @@ const qe = { class: "fm-typo-en-title-md-600 mr-auto" }, je = {
|
|
|
624
624
|
class: "py-8 px-8 overflow-y-auto space-y-24",
|
|
625
625
|
key: I.value
|
|
626
626
|
}, [
|
|
627
|
-
I.value === t(D).Normal ? (d(), T(t(
|
|
627
|
+
I.value === t(D).Normal ? (d(), T(t(be), {
|
|
628
628
|
key: 0,
|
|
629
629
|
"auto-focus-search": !0,
|
|
630
630
|
"categorized-items": u.categorizedItems,
|
|
@@ -636,7 +636,7 @@ const qe = { class: "fm-typo-en-title-md-600 mr-auto" }, je = {
|
|
|
636
636
|
"onUpdate:data": e[1] || (e[1] = (S) => $.value = S)
|
|
637
637
|
}, null, 8, ["categorized-items", "data", "select-variant", "selected-items", "show-variant", "show-addon"])) : i.value ? (d(), k(X, { key: 1 }, [
|
|
638
638
|
C("p", Pe, M(t(c)("menu.link_product.rules.hint")), 1),
|
|
639
|
-
(!l.value || l.value.length <= 0) && !m.value ? (d(), T(t(
|
|
639
|
+
(!l.value || l.value.length <= 0) && !m.value ? (d(), T(t(Re), {
|
|
640
640
|
key: 0,
|
|
641
641
|
title: t(c)("menu.rule_groups.condition_view.empty_data.no_rules_added"),
|
|
642
642
|
subtitle: t(c)("menu.rule_groups.condition_view.empty_data.subtitle"),
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as X, ref as A, computed as M, watch as q, resolveComponent as y, createBlock as G, openBlock as d, unref as e, withCtx as g, createElementVNode as r, createVNode as o, createElementBlock as k, createCommentVNode as $, toDisplayString as B, withModifiers as ne, Fragment as oe, renderList as ue } from "vue";
|
|
2
|
-
import { u as Z,
|
|
2
|
+
import { u as Z, _ as ae, b as se, a as me, d as le } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
3
3
|
import { useI18n as Y, useCoreStore as ce } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as K, FmButtonVariant as F, useDialog as de, useSnackbar as re, useBreakpoints as pe, FmButtonColorThemeVariant as E } from "@feedmepos/ui-library";
|
|
5
|
-
import { b as _e, m as H, _ as W, c as ve, d as ge, f as J } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as ee } from "./app-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { b as _e, m as H, _ as W, c as ve, d as ge, f as J } from "./RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js";
|
|
6
|
+
import { _ as ee } from "./app-4yWs09Fr.js";
|
|
7
|
+
import { l as z, u as fe } from "./discardConfirm-DZwzKO-Q.js";
|
|
8
|
+
import { d as be } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
9
9
|
import { _ as ye } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
10
10
|
import { _ as ie } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
11
|
-
import { u as he } from "./memberPricing-
|
|
12
|
-
import { C as L, a as N } from "./catalogSetting-
|
|
13
|
-
import { u as xe } from "./priceTier-
|
|
11
|
+
import { u as he } from "./memberPricing-T-jr7tn1.js";
|
|
12
|
+
import { C as L, a as N } from "./catalogSetting-Bn2TplvM.js";
|
|
13
|
+
import { u as xe } from "./priceTier-aT_gIfrN.js";
|
|
14
14
|
const ke = {
|
|
15
15
|
class: "fm-typo-en-title-md-600 mr-auto"
|
|
16
16
|
}, we = {
|
|
@@ -133,7 +133,7 @@ const ke = {
|
|
|
133
133
|
function f() {
|
|
134
134
|
v.value = !1;
|
|
135
135
|
}
|
|
136
|
-
const _ =
|
|
136
|
+
const _ = fe(() => !z.isEqual(U.value, l.value), () => {
|
|
137
137
|
v.value = !1;
|
|
138
138
|
});
|
|
139
139
|
function b(a) {
|
|
@@ -202,7 +202,7 @@ const ke = {
|
|
|
202
202
|
title: e(m)("menu.rule_groups.form.rules"),
|
|
203
203
|
"sub-title": e(m)("menu.rule_groups.form.rules_description")
|
|
204
204
|
}, {
|
|
205
|
-
default: g(() => [l.value.rules.length > 0 ? (d(), G(e(
|
|
205
|
+
default: g(() => [l.value.rules.length > 0 ? (d(), G(e(be), {
|
|
206
206
|
key: 0,
|
|
207
207
|
modelValue: l.value.rules,
|
|
208
208
|
"onUpdate:modelValue": t[6] || (t[6] = (i) => l.value.rules = i),
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as K, computed as P, ref as L, h as T, getCurrentInstance as G, resolveComponent as $, createElementBlock as N, openBlock as p, createElementVNode as l, createVNode as m, unref as a, withCtx as C, toDisplayString as E, withModifiers as H, createBlock as x, createCommentVNode as J } from "vue";
|
|
2
2
|
import { storeToRefs as Q } from "pinia";
|
|
3
3
|
import { useI18n as W } from "@feedmepos/mf-common";
|
|
4
4
|
import { useBreakpoints as X, useSnackbar as z, components as Z, FmButtonVariant as D, FmButtonColorThemeVariant as ee, useDialog as oe } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
|
-
import {
|
|
6
|
+
import { b as A, u as Y, g as R, h as U, i as j, _ as ne } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
7
7
|
import { _ as te } from "./PageLayout.vue_vue_type_script_setup_true_lang-BVmHMvKD.js";
|
|
8
|
-
import { u as re } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { u as re } from "./RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js";
|
|
9
9
|
import { d as le } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
10
|
-
import { _ as se } from "./app-
|
|
10
|
+
import { _ as se } from "./app-4yWs09Fr.js";
|
|
11
11
|
import { c as ie } from "./createForm-BoUQeZTd.js";
|
|
12
|
-
import { _ as ce } from "./ApplyProductDialog.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { O as de, u as ue, m as me } from "./order_pacing-
|
|
12
|
+
import { _ as ce } from "./ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js";
|
|
13
|
+
import { O as de, u as ue, m as me } from "./order_pacing-Dgo1fySS.js";
|
|
14
14
|
const pe = { key: 0 }, _e = { class: "flex justify-end items-center" }, ge = { class: "w-[320px]" }, fe = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "flex-1 flex flex-col min-h-0"
|
|
17
|
-
}, ve = { class: "p-8" },
|
|
17
|
+
}, ve = { class: "p-8" }, he = ["onClick"], ye = { class: "flex-1 space-y-4" }, be = { class: "fm-typo-en-body-lg-600" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = /* @__PURE__ */ K({
|
|
18
18
|
__name: "OrderPacingTable",
|
|
19
19
|
props: {
|
|
20
20
|
orderPacings: {}
|
|
21
21
|
},
|
|
22
22
|
emits: ["delete:group"],
|
|
23
|
-
setup(
|
|
24
|
-
const { t } = re(), w = X(), V = P(() => w.breakpoints.value.xs), O = z(), F = A(O), v = j(F),
|
|
23
|
+
setup(B, { emit: c }) {
|
|
24
|
+
const { t } = re(), w = X(), V = P(() => w.breakpoints.value.xs), O = z(), F = A(O), v = j(F), h = B, y = Y(), _ = c, s = L(""), b = L([
|
|
25
25
|
{
|
|
26
26
|
accessorKey: "name",
|
|
27
27
|
header: () => t("menu.order_pacing.columns.timing_label")
|
|
@@ -77,11 +77,11 @@ const pe = { key: 0 }, _e = { class: "flex justify-end items-center" }, ge = { c
|
|
|
77
77
|
editable: !0,
|
|
78
78
|
title: t("menu.order_pacing.link_product.title"),
|
|
79
79
|
"onApply:product": async (r) => {
|
|
80
|
-
const d =
|
|
80
|
+
const d = y.orderPacings.find((o) => o._id === e.id);
|
|
81
81
|
if (!d) return;
|
|
82
82
|
const u = {
|
|
83
|
-
module:
|
|
84
|
-
operation:
|
|
83
|
+
module: U.enum.serveDelay,
|
|
84
|
+
operation: R.F_OPERATION_TYPE.update,
|
|
85
85
|
data: d,
|
|
86
86
|
link: r.map((o) => {
|
|
87
87
|
var S;
|
|
@@ -102,14 +102,14 @@ const pe = { key: 0 }, _e = { class: "flex justify-end items-center" }, ge = { c
|
|
|
102
102
|
const n = e.map((r) => r.id);
|
|
103
103
|
await v.updateMenu(
|
|
104
104
|
{
|
|
105
|
-
module:
|
|
106
|
-
operation:
|
|
105
|
+
module: U.enum.serveDelay,
|
|
106
|
+
operation: R.F_OPERATION_TYPE.rearrange,
|
|
107
107
|
data: n
|
|
108
108
|
},
|
|
109
109
|
t("menu.order_pacing.title")
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
|
-
const i = P(() =>
|
|
112
|
+
const i = P(() => h.orderPacings.filter(
|
|
113
113
|
(e) => e.name.toLowerCase().includes(s.value.toLowerCase())
|
|
114
114
|
)), f = G();
|
|
115
115
|
async function I(e) {
|
|
@@ -146,9 +146,9 @@ const pe = { key: 0 }, _e = { class: "flex justify-end items-center" }, ge = { c
|
|
|
146
146
|
variant: a(D).Tertiary,
|
|
147
147
|
"prepend-icon": "drag_handle"
|
|
148
148
|
}, null, 8, ["variant"]),
|
|
149
|
-
l("div",
|
|
150
|
-
l("p", be,
|
|
151
|
-
l("p", ke,
|
|
149
|
+
l("div", ye, [
|
|
150
|
+
l("p", be, E(o.name), 1),
|
|
151
|
+
l("p", ke, E(a(t)(
|
|
152
152
|
o.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular",
|
|
153
153
|
{ count: o.items.length }
|
|
154
154
|
)), 1)
|
|
@@ -158,9 +158,9 @@ const pe = { key: 0 }, _e = { class: "flex justify-end items-center" }, ge = { c
|
|
|
158
158
|
variant: a(D).Tertiary,
|
|
159
159
|
"prepend-icon": "delete",
|
|
160
160
|
disabled: !o.id,
|
|
161
|
-
onClick:
|
|
161
|
+
onClick: H(() => _("delete:group", o.id), ["stop"])
|
|
162
162
|
}, null, 8, ["text-color", "variant", "disabled", "onClick"])
|
|
163
|
-
], 8,
|
|
163
|
+
], 8, he)
|
|
164
164
|
]),
|
|
165
165
|
_: 1
|
|
166
166
|
}, 8, ["model-value"])
|
|
@@ -196,16 +196,16 @@ const pe = { key: 0 }, _e = { class: "flex justify-end items-center" }, ge = { c
|
|
|
196
196
|
]));
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
|
-
}), Pe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ce = { class: "flex items-center" }, we = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ve = { class: "fm-typo-en-body-md-600 font-semibold" },
|
|
199
|
+
}), Pe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ce = { class: "flex items-center" }, we = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ve = { class: "fm-typo-en-body-md-600 font-semibold" }, Ue = /* @__PURE__ */ K({
|
|
200
200
|
__name: "OrderPacing",
|
|
201
|
-
setup(
|
|
202
|
-
const { t: c } = W(), t = oe(), w = z(), V = A(w), O = j(V), F = Y(), { items: v, orderPacings:
|
|
201
|
+
setup(B) {
|
|
202
|
+
const { t: c } = W(), t = oe(), w = z(), V = A(w), O = j(V), F = Y(), { items: v, orderPacings: h } = Q(F), y = ue({ dialog: t, menuLoader: O }), _ = P(() => me(h.value, v.value)), s = P(() => h.value.length);
|
|
203
203
|
function b() {
|
|
204
|
-
|
|
204
|
+
y.create();
|
|
205
205
|
}
|
|
206
206
|
function M(g) {
|
|
207
207
|
const i = _.value.find((f) => f.id === g);
|
|
208
|
-
i &&
|
|
208
|
+
i && y.deleteOrderPacing(i);
|
|
209
209
|
}
|
|
210
210
|
return (g, i) => (p(), x(te, {
|
|
211
211
|
heading: a(c)("menu.order_pacing.title")
|
|
@@ -229,7 +229,7 @@ const pe = { key: 0 }, _e = { class: "flex justify-end items-center" }, ge = { c
|
|
|
229
229
|
l("div", Pe, [
|
|
230
230
|
l("div", Ce, [
|
|
231
231
|
l("div", we, [
|
|
232
|
-
l("p", Ve,
|
|
232
|
+
l("p", Ve, E(s.value), 1)
|
|
233
233
|
])
|
|
234
234
|
]),
|
|
235
235
|
s.value > 0 ? (p(), x(ae, {
|
|
@@ -237,7 +237,7 @@ const pe = { key: 0 }, _e = { class: "flex justify-end items-center" }, ge = { c
|
|
|
237
237
|
label: a(c)("menu.order_pacing.add"),
|
|
238
238
|
"prepend-icon": "add",
|
|
239
239
|
onClick: b
|
|
240
|
-
}, null, 8, ["label"])) :
|
|
240
|
+
}, null, 8, ["label"])) : J("", !0)
|
|
241
241
|
])
|
|
242
242
|
]),
|
|
243
243
|
_: 1
|
|
@@ -245,5 +245,5 @@ const pe = { key: 0 }, _e = { class: "flex justify-end items-center" }, ge = { c
|
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
247
|
export {
|
|
248
|
-
|
|
248
|
+
Ue as default
|
|
249
249
|
};
|