@feedmepos/mf-menu 0.31.30-beta.1 → 0.31.31-beta.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-CrQBq4gc.js → App-1TX8v7ZA.js} +10 -8
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-D00UOSsK.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js} +12 -12
- package/dist/{Catalog-D4m8x_f2.js → Catalog-DWClc58s.js} +75 -74
- package/dist/{Category-sQll5ITQ.js → Category-BqKFvFam.js} +60 -60
- package/dist/{Category-Ql1kDDH-.js → Category-IYMtMoT-.js} +28 -28
- package/dist/{CookingGuide-CSutufcu.js → CookingGuide-BayJ6zj4.js} +103 -101
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BqhYFXNG.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js} +1 -1
- package/dist/{Group-CnBE6CiB.js → Group-LqSX7ue6.js} +1 -1
- package/dist/{Group-YqVh5hC0.js → Group-RujTPTns.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-D9TSH4sS.js → Group.vue_vue_type_script_setup_true_lang-Dj9ZmkYe.js} +138 -137
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CqriuXVC.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js} +16 -16
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CaIU0RsG.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C4IrA3es.js} +4616 -4610
- package/dist/{Ingredient-MhLxJzAU.js → Ingredient-_tc8llr1.js} +65 -64
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIbExsMI.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js} +14 -12
- package/dist/{LinkProductSideSheet-D7vYZbFy.js → LinkProductSideSheet-C6rF-G1v.js} +14 -12
- package/dist/{MenuSetting-n0me5wY8.js → MenuSetting-xDHeeROY.js} +27 -26
- package/dist/{PrintRoute-CudZZYbe.js → PrintRoute-B_TFMn5e.js} +17 -15
- package/dist/{Product-DPZQgWET.js → Product-DdEEqrtc.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CdaeZy_o.js → Product.vue_vue_type_script_setup_true_lang-zcistmwh.js} +257 -256
- package/dist/{ProductInternalTools-DgANHliV.js → ProductInternalTools-BcC7BF6W.js} +45 -45
- package/dist/{Products-Ez4R3jKW.js → Products-Cu0cJshV.js} +74 -72
- package/dist/{Publish-B4DEPe1I.js → Publish-Bm3Xiks1.js} +34 -32
- package/dist/{Recipe-Cripr-gY.js → Recipe-DWK-luIZ.js} +65 -63
- package/dist/{Scheduler-C-OV9d7d.js → Scheduler-Cb1TeBhW.js} +19 -19
- package/dist/{ServingSequence-DAumDXP1.js → ServingSequence-evSIET_8.js} +34 -34
- package/dist/{Setting-ByaHpIAN.js → Setting-Cn3kwC9F.js} +54 -53
- package/dist/{Subcategory-ro2aGt2H.js → Subcategory-q4m4qHsU.js} +34 -34
- package/dist/{Takeaway-CJb0ayDC.js → Takeaway-ClepHYGu.js} +14 -14
- package/dist/{Takeaway-AEg_0gKg.js → Takeaway-D-rdUZuh.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cjj4bxoL.js → Takeaway.vue_vue_type_script_setup_true_lang-y9Yxstu2.js} +41 -40
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Drf4n4rj.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BSeLfoOA.js} +1108 -1106
- package/dist/{Unit-1wzUBplb.js → Unit-IM8Naj82.js} +12 -12
- package/dist/{Variant-Dnz2v5u0.js → Variant-fzGvwaMo.js} +16 -16
- package/dist/{_id_-C3rBZ6zL.js → _id_-BsKNG9Qv.js} +22 -22
- package/dist/{app-sDPxNF11.js → app-BzQRUMTK.js} +3 -3
- package/dist/{app-CLY6CoaV.js → app-CoVUUCa_.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-BZ4FSJ_Z.js → linked-status-eQqjvOq_.js} +2 -2
- package/dist/assets/{override-menu-C-fWJdVd.js → override-menu-C8NTBJgN.js} +2 -2
- package/dist/assets/{validate-menu-BDEM_Odz.js → validate-menu-Dn-OO7Ed.js} +2 -2
- package/dist/{catalog-bkFntZNz.js → catalog-CaXceaA2.js} +1 -1
- package/dist/{catalogSetting-zrKwGJ_C.js → catalogSetting-BGvckFdh.js} +1 -1
- package/dist/{category-BuPYaEsy.js → category-u5eo_Vjd.js} +5 -3
- package/dist/currency-BPHwez-E.js +7 -0
- package/dist/{dayjs.min-CR2NIyKn.js → dayjs.min-Bsr3tJCn.js} +1 -1
- package/dist/{index-BNORpjos.js → index-Bbx4iZ6n.js} +27 -27
- package/dist/{index-Dp_vLFQp.js → index-DSAG0yWh.js} +22 -20
- package/dist/{index-D20u0bCl.js → index-tRQb7RN_.js} +1 -1
- package/dist/{item-D4DcBt7N.js → item-BAqzKh4O.js} +801 -799
- package/dist/{jszip.min-CRJ61J9H.js → jszip.min-BKJtvCjM.js} +353 -353
- package/dist/{menu-Dw-Hpy07.js → menu-CDrsBjmr.js} +11 -9
- package/dist/menu-CsIzrBEr.js +74044 -0
- package/dist/packages/shared/src/permission/posPermission.d.ts +6 -0
- package/dist/{priceTier-EDLTGEjz.js → priceTier-DfbHonGe.js} +4 -4
- package/dist/{scheduler-CpPn2BlK.js → scheduler-DTWaBudB.js} +13 -11
- package/dist/{subcategory-B_W6vbM8.js → subcategory-D-R5r1Tr.js} +86 -84
- package/dist/{toExcel-D02OlDJu.js → toExcel-84VTtSA7.js} +2 -2
- package/dist/{unit-fro9wz1K.js → unit-B4zscxzo.js} +24 -23
- package/package.json +1 -1
- package/dist/currency-BISImIgX.js +0 -7
- package/dist/menu-ibc-yXVt.js +0 -107745
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { defineComponent as ie, computed as b, ref as $, reactive as Ve, watch as Ce, resolveComponent as d, createElementBlock as y, openBlock as m, Fragment as V, renderSlot as Me, createVNode as s, unref as e, withCtx as k, createBlock as
|
|
1
|
+
import { defineComponent as ie, computed as b, ref as $, reactive as Ve, watch as Ce, resolveComponent as d, createElementBlock as y, openBlock as m, Fragment as V, renderSlot as Me, createVNode as s, unref as e, withCtx as k, createBlock as N, createCommentVNode as j, createElementVNode as v, renderList as q, normalizeClass as J, createTextVNode as we, toDisplayString as U, getCurrentInstance as Ee, 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 $e, FmButtonVariant as ue, useBreakpoints as Ue } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as
|
|
5
|
-
import {
|
|
6
|
-
import { _ as
|
|
4
|
+
import { _ as Be } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
+
import { M as re, A as X, u as Z, D as Oe, z as K, G as Le, H as G, B as H } from "./menu-CsIzrBEr.js";
|
|
6
|
+
import { _ as Ne } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
7
|
import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
|
|
8
8
|
import { defineStore as Te } from "pinia";
|
|
9
|
-
import { _ as
|
|
9
|
+
import { _ as le, g as Ae } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js";
|
|
10
|
+
import { F_INVENTORY_BINDING_TYPE as ae } from "@feedmepos/core/entity";
|
|
10
11
|
import { u as De } from "./discardConfirm-BHni0LNu.js";
|
|
11
|
-
import { c as
|
|
12
|
-
import { u as
|
|
13
|
-
import { c as
|
|
14
|
-
const
|
|
12
|
+
import { c as Ie } from "./check-C9mY6LiX.js";
|
|
13
|
+
import { u as Pe } from "./unit-B4zscxzo.js";
|
|
14
|
+
import { c as Re } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
15
|
+
const ze = { class: "fm-typo-en-title-md-600" }, Ye = {
|
|
15
16
|
key: 0,
|
|
16
17
|
class: "pt-8 flex flex-col gap-8"
|
|
17
18
|
}, Ke = {
|
|
18
19
|
key: 1,
|
|
19
20
|
class: "pt-8 space-y-40"
|
|
20
|
-
},
|
|
21
|
+
}, 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({
|
|
21
22
|
__name: "Form",
|
|
22
23
|
props: {
|
|
23
24
|
initialValue: { default: void 0 },
|
|
24
25
|
usedCodes: { default: () => [] },
|
|
25
26
|
invalidSkuAndRecipe: {}
|
|
26
27
|
},
|
|
27
|
-
setup(T, { expose:
|
|
28
|
-
const { t: l } = Q(), r = T, u = re(X(W())), S =
|
|
28
|
+
setup(T, { expose: B }) {
|
|
29
|
+
const { t: l } = Q(), r = T, u = re(X(W())), S = Pe(), h = b(() => r.initialValue ? l("menu.sku.update") : l("menu.sku.add")), x = b(
|
|
29
30
|
() => r.initialValue ? l("menu.common.actions.update") : l("menu.common.actions.add")
|
|
30
31
|
), C = $(!1), f = $(!1), M = (t) => {
|
|
31
|
-
|
|
32
|
-
}, O = Z(), a = b(() => O.units), i = b(() => a.value.map(({ name: t, _id: o, abbrev: g, measurements:
|
|
32
|
+
Ie.isBoolean(t) ? f.value = t : f.value = !f.value;
|
|
33
|
+
}, O = Z(), a = b(() => O.units), i = b(() => a.value.map(({ name: t, _id: o, abbrev: g, measurements: L }) => ({
|
|
33
34
|
label: t,
|
|
34
35
|
value: o,
|
|
35
36
|
options: [
|
|
@@ -37,9 +38,9 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
37
38
|
label: `${t} (${g})`,
|
|
38
39
|
value: null
|
|
39
40
|
},
|
|
40
|
-
...
|
|
41
|
-
label: `${
|
|
42
|
-
value:
|
|
41
|
+
...L.map(({ name: R, id: z, abbrev: Y }) => ({
|
|
42
|
+
label: `${R} (${Y})`,
|
|
43
|
+
value: z
|
|
43
44
|
}))
|
|
44
45
|
]
|
|
45
46
|
}))), c = b(() => a.value.length > 0), n = Ve(
|
|
@@ -47,14 +48,14 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
47
48
|
...K.generator.initSku(),
|
|
48
49
|
unit: a.value[0] || K.generator.initUnit()
|
|
49
50
|
}
|
|
50
|
-
), F = $(!!n.convert),
|
|
51
|
+
), F = $(!!n.convert), A = b(() => {
|
|
51
52
|
var o;
|
|
52
53
|
const t = i.value.find((g) => g.value === n.unit._id);
|
|
53
54
|
return ((o = ((t == null ? void 0 : t.options) || []).find((g) => g.value === (n.trackingMeasurement || null))) == null ? void 0 : o.label) || "";
|
|
54
55
|
}), D = (t) => n.unit._id === t.value && n.trackingMeasurement === (t.value || null);
|
|
55
56
|
function _(t, o) {
|
|
56
57
|
const g = o || void 0;
|
|
57
|
-
n.unit._id === t && n.trackingMeasurement === g || (n.unit = a.value.find((
|
|
58
|
+
n.unit._id === t && n.trackingMeasurement === g || (n.unit = a.value.find((L) => L._id === t), n.trackingMeasurement = g, n.convert && (n.convert.measurement = g));
|
|
58
59
|
}
|
|
59
60
|
const de = b(() => {
|
|
60
61
|
const t = i.value.find((o) => o.value === n.unit._id);
|
|
@@ -75,17 +76,17 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
75
76
|
F.value && (n.convert = {
|
|
76
77
|
...n.convert,
|
|
77
78
|
inventoryBindings: t
|
|
78
|
-
}),
|
|
79
|
+
}), P.value = !1;
|
|
79
80
|
}
|
|
80
81
|
const pe = b(() => r.invalidSkuAndRecipe.skus), ve = b(() => r.invalidSkuAndRecipe.recipes);
|
|
81
82
|
l("menu.sku.errors.select_recipe_ingredient");
|
|
82
|
-
const
|
|
83
|
+
const P = $(!1);
|
|
83
84
|
function _e() {
|
|
84
85
|
var t;
|
|
85
|
-
return
|
|
86
|
+
return P.value = (((t = n.convert) == null ? void 0 : t.inventoryBindings) || []).length === 0, !P.value;
|
|
86
87
|
}
|
|
87
88
|
const fe = De(
|
|
88
|
-
() => !
|
|
89
|
+
() => !Le.isEqual(n, r.initialValue || K.generator.initSku()),
|
|
89
90
|
() => {
|
|
90
91
|
f.value = !1;
|
|
91
92
|
}
|
|
@@ -99,14 +100,14 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
99
100
|
r.initialValue ? await u.updateMenu(
|
|
100
101
|
{
|
|
101
102
|
module: H.F_MENU_MODULE_V4_KEY.enum.sku,
|
|
102
|
-
operation:
|
|
103
|
+
operation: G.F_OPERATION_TYPE.update,
|
|
103
104
|
data: o
|
|
104
105
|
},
|
|
105
106
|
o.name
|
|
106
107
|
) : await u.updateMenu(
|
|
107
108
|
{
|
|
108
109
|
module: H.F_MENU_MODULE_V4_KEY.enum.sku,
|
|
109
|
-
operation:
|
|
110
|
+
operation: G.F_OPERATION_TYPE.create,
|
|
110
111
|
data: o
|
|
111
112
|
},
|
|
112
113
|
o.name
|
|
@@ -119,11 +120,11 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
119
120
|
() => f.value,
|
|
120
121
|
(t) => {
|
|
121
122
|
}
|
|
122
|
-
),
|
|
123
|
+
), B({
|
|
123
124
|
show: f,
|
|
124
125
|
trigger: M
|
|
125
126
|
}), (t, o) => {
|
|
126
|
-
const g = d("FmTextField"),
|
|
127
|
+
const g = d("FmTextField"), L = d("FmLabel"), R = d("FmField"), z = d("FmMenuHeader"), Y = 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");
|
|
127
128
|
return m(), y(V, null, [
|
|
128
129
|
Me(t.$slots, "default", { trigger: M }),
|
|
129
130
|
s(Se, {
|
|
@@ -139,10 +140,10 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
139
140
|
"onOn:clickedAway": e(fe)
|
|
140
141
|
}, {
|
|
141
142
|
"side-sheet-header": k(() => [
|
|
142
|
-
v("p",
|
|
143
|
+
v("p", ze, U(h.value), 1)
|
|
143
144
|
]),
|
|
144
145
|
"side-sheet-footer": k(() => [
|
|
145
|
-
v("div",
|
|
146
|
+
v("div", Ge, [
|
|
146
147
|
s(ne, {
|
|
147
148
|
label: x.value,
|
|
148
149
|
loading: C.value,
|
|
@@ -160,7 +161,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
160
161
|
]),
|
|
161
162
|
default: k(() => [
|
|
162
163
|
c.value ? (m(), y("div", Ke, [
|
|
163
|
-
v("div",
|
|
164
|
+
v("div", je, [
|
|
164
165
|
s(g, {
|
|
165
166
|
class: "flex-2",
|
|
166
167
|
label: e(l)("menu.sku.columns.code"),
|
|
@@ -188,17 +189,17 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
188
189
|
s(ke, {
|
|
189
190
|
class: "col-span-2",
|
|
190
191
|
"label-mark": "required",
|
|
191
|
-
"model-value":
|
|
192
|
+
"model-value": A.value
|
|
192
193
|
}, {
|
|
193
194
|
label: k(() => [
|
|
194
|
-
s(
|
|
195
|
+
s(L, {
|
|
195
196
|
label: e(l)("menu.sku.columns.unit")
|
|
196
197
|
}, null, 8, ["label"])
|
|
197
198
|
]),
|
|
198
199
|
default: k(({ invalid: p }) => [
|
|
199
200
|
s(ye, { "z-index": 101 }, {
|
|
200
201
|
"menu-button": k(() => [
|
|
201
|
-
s(
|
|
202
|
+
s(R, {
|
|
202
203
|
class: J([
|
|
203
204
|
"fm-typo-en-body-lg-400",
|
|
204
205
|
{
|
|
@@ -209,19 +210,19 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
209
210
|
"append-icon": "expand_more"
|
|
210
211
|
}, {
|
|
211
212
|
default: k(() => [
|
|
212
|
-
we(U(
|
|
213
|
+
we(U(A.value), 1)
|
|
213
214
|
]),
|
|
214
215
|
_: 2
|
|
215
216
|
}, 1032, ["invalid"])
|
|
216
217
|
]),
|
|
217
218
|
default: k(() => [
|
|
218
|
-
v("div",
|
|
219
|
-
(m(!0), y(V, null,
|
|
220
|
-
s(
|
|
219
|
+
v("div", qe, [
|
|
220
|
+
(m(!0), y(V, null, q(i.value, (w, I) => (m(), y(V, { key: I }, [
|
|
221
|
+
s(z, {
|
|
221
222
|
label: w.label
|
|
222
223
|
}, null, 8, ["label"]),
|
|
223
|
-
s(
|
|
224
|
-
(m(!0), y(V, null,
|
|
224
|
+
s(Y),
|
|
225
|
+
(m(!0), y(V, null, q(w.options, (E, dn) => (m(), N(ge, {
|
|
225
226
|
label: E.label,
|
|
226
227
|
"model-value": D(E),
|
|
227
228
|
onClick: (mn) => _(w.value, E.value),
|
|
@@ -240,7 +241,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
240
241
|
class: "p-16 flex flex-col gap-16"
|
|
241
242
|
}, {
|
|
242
243
|
default: k(() => {
|
|
243
|
-
var p, w,
|
|
244
|
+
var p, w, I;
|
|
244
245
|
return [
|
|
245
246
|
s(he, {
|
|
246
247
|
value: "",
|
|
@@ -259,25 +260,25 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
259
260
|
items: de.value
|
|
260
261
|
}, null, 8, ["label", "modelValue", "items"])
|
|
261
262
|
]),
|
|
262
|
-
s(
|
|
263
|
+
s(le, {
|
|
263
264
|
"model-value": ((w = n.convert) == null ? void 0 : w.inventoryBindings) || [],
|
|
264
|
-
type: e(
|
|
265
|
+
type: e(ae).enum.RECIPE,
|
|
265
266
|
"filter-option-ids": ve.value,
|
|
266
267
|
"onUpdate:modelValue": ee
|
|
267
268
|
}, null, 8, ["model-value", "type", "filter-option-ids"]),
|
|
268
|
-
s(
|
|
269
|
-
"model-value": ((
|
|
270
|
-
type: e(
|
|
269
|
+
s(le, {
|
|
270
|
+
"model-value": ((I = n.convert) == null ? void 0 : I.inventoryBindings) || [],
|
|
271
|
+
type: e(ae).enum.SKU,
|
|
271
272
|
"filter-option-ids": pe.value,
|
|
272
273
|
"onUpdate:modelValue": ee
|
|
273
274
|
}, null, 8, ["model-value", "type", "filter-option-ids"])
|
|
274
|
-
], 64)) :
|
|
275
|
+
], 64)) : j("", !0)
|
|
275
276
|
];
|
|
276
277
|
}),
|
|
277
278
|
_: 1
|
|
278
279
|
})
|
|
279
|
-
])) : (m(), y("div",
|
|
280
|
-
a.value.length === 0 ? (m(),
|
|
280
|
+
])) : (m(), y("div", Ye, [
|
|
281
|
+
a.value.length === 0 ? (m(), N(e(ce), {
|
|
281
282
|
key: 0,
|
|
282
283
|
action: {
|
|
283
284
|
text: e(l)("menu.unit.add"),
|
|
@@ -287,7 +288,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
287
288
|
},
|
|
288
289
|
subtitle: e(l)("menu.sku.empty.subtitle"),
|
|
289
290
|
title: e(l)("menu.sku.empty.no_unit")
|
|
290
|
-
}, null, 8, ["action", "subtitle", "title"])) :
|
|
291
|
+
}, null, 8, ["action", "subtitle", "title"])) : j("", !0)
|
|
291
292
|
]))
|
|
292
293
|
]),
|
|
293
294
|
_: 1
|
|
@@ -296,9 +297,9 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
296
297
|
};
|
|
297
298
|
}
|
|
298
299
|
}), Je = He, Qe = Te("sku-manager", () => {
|
|
299
|
-
const T = $e(),
|
|
300
|
+
const T = $e(), B = W(), l = X(B), r = re(l), u = Z(), S = Ee(), { t: h } = Q(), x = (a) => {
|
|
300
301
|
var c, n;
|
|
301
|
-
const { vNode: i } =
|
|
302
|
+
const { vNode: i } = Re(
|
|
302
303
|
Je,
|
|
303
304
|
S,
|
|
304
305
|
a
|
|
@@ -309,7 +310,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
309
310
|
x({
|
|
310
311
|
initialValue: a,
|
|
311
312
|
usedCodes: u.skus.filter(({ _id: i }) => i !== (a == null ? void 0 : a._id)).map((i) => i.code),
|
|
312
|
-
invalidSkuAndRecipe: a ?
|
|
313
|
+
invalidSkuAndRecipe: a ? Ae({
|
|
313
314
|
id: a._id,
|
|
314
315
|
skus: u.skus,
|
|
315
316
|
recipes: u.state.menu.modules.recipe
|
|
@@ -339,7 +340,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
339
340
|
await r.updateMenu(
|
|
340
341
|
{
|
|
341
342
|
module: H.F_MENU_MODULE_V4_KEY.enum.sku,
|
|
342
|
-
operation:
|
|
343
|
+
operation: G.F_OPERATION_TYPE.delete,
|
|
343
344
|
data: a._id
|
|
344
345
|
},
|
|
345
346
|
a.name,
|
|
@@ -377,11 +378,11 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
377
378
|
class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4"
|
|
378
379
|
}, cn = {
|
|
379
380
|
class: "fm-typo-en-body-md-600 font-semibold"
|
|
380
|
-
},
|
|
381
|
+
}, Mn = /* @__PURE__ */ ie({
|
|
381
382
|
__name: "Ingredient",
|
|
382
383
|
setup(T) {
|
|
383
|
-
const
|
|
384
|
-
X(
|
|
384
|
+
const B = W();
|
|
385
|
+
X(B);
|
|
385
386
|
const l = Z(), r = Qe(), {
|
|
386
387
|
t: u
|
|
387
388
|
} = 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 = $(""), C = $([{
|
|
@@ -427,11 +428,11 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
427
428
|
}
|
|
428
429
|
const M = b(() => S.value.length), O = Ue(), a = b(() => O.breakpoints.value.xs);
|
|
429
430
|
return (i, c) => {
|
|
430
|
-
const n = d("FmSearch"), F = d("FmTable"),
|
|
431
|
-
return m(),
|
|
431
|
+
const n = d("FmSearch"), F = d("FmTable"), A = d("fm-button"), D = d("FmSpacer");
|
|
432
|
+
return m(), N(Ne, {
|
|
432
433
|
heading: e(u)("menu.ingredient.title")
|
|
433
434
|
}, {
|
|
434
|
-
default: k(() => [S.value.length === 0 ? (m(),
|
|
435
|
+
default: k(() => [S.value.length === 0 ? (m(), N(e(ce), {
|
|
435
436
|
key: 0,
|
|
436
437
|
action: {
|
|
437
438
|
text: e(u)("menu.ingredient.empty.action"),
|
|
@@ -451,7 +452,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
451
452
|
"onUpdate:modelValue": c[2] || (c[2] = (_) => x.value = _),
|
|
452
453
|
placeholder: e(u)("menu.ingredient.table.search.placeholder"),
|
|
453
454
|
class: "w-full"
|
|
454
|
-
}, null, 8, ["modelValue", "placeholder"])]), v("div", en, [(m(!0), y(V, null,
|
|
455
|
+
}, null, 8, ["modelValue", "placeholder"])]), v("div", en, [(m(!0), y(V, null, q(h.value, (_) => (m(), y("div", {
|
|
455
456
|
key: _._id,
|
|
456
457
|
class: J(["py-12 px-16", "flex space-x-8", "items-center"]),
|
|
457
458
|
onClick: () => e(r).updateSku(_)
|
|
@@ -459,7 +460,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
459
460
|
code: _.code
|
|
460
461
|
})), 1), v("p", an, U(e(u)("menu.ingredient.table.mobile.unit", {
|
|
461
462
|
unit: `${_._unit} (${_._abbrev})`
|
|
462
|
-
})), 1)]), s(
|
|
463
|
+
})), 1)]), s(A, {
|
|
463
464
|
variant: e(ue).Tertiary,
|
|
464
465
|
"prepend-icon": "delete",
|
|
465
466
|
"text-color": "neutral-gray-400",
|
|
@@ -479,17 +480,17 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
479
480
|
"pin-header-row": "",
|
|
480
481
|
onRowClick: c[1] || (c[1] = (_) => f(_.original))
|
|
481
482
|
}, null, 8, ["column-defs", "row-data", "page-size"])]))], 64))]),
|
|
482
|
-
"append-heading": k(() => [v("div", sn, [v("div", un, [v("div", rn, [v("p", cn, U(M.value), 1)])]), s(D), S.value.length > 0 ? (m(),
|
|
483
|
+
"append-heading": k(() => [v("div", sn, [v("div", un, [v("div", rn, [v("p", cn, U(M.value), 1)])]), s(D), S.value.length > 0 ? (m(), N(Be, {
|
|
483
484
|
key: 0,
|
|
484
485
|
label: e(u)("menu.ingredient.actions.add"),
|
|
485
486
|
"prepend-icon": "add",
|
|
486
487
|
onClick: e(r).createSku
|
|
487
|
-
}, null, 8, ["label", "onClick"])) :
|
|
488
|
+
}, null, 8, ["label", "onClick"])) : j("", !0)])]),
|
|
488
489
|
_: 1
|
|
489
490
|
}, 8, ["heading"]);
|
|
490
491
|
};
|
|
491
492
|
}
|
|
492
493
|
});
|
|
493
494
|
export {
|
|
494
|
-
|
|
495
|
+
Mn as default
|
|
495
496
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
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 pt, renderList as ct, h as Ie } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { Dinero as ze } from "@feedmepos/core";
|
|
3
|
+
import { F_INVENTORY_BINDING_TYPE as We } from "@feedmepos/core/entity";
|
|
4
|
+
import { u as mt, a3 as Qe, c as gt, a4 as Ft } from "./menu-CsIzrBEr.js";
|
|
3
5
|
import { useI18n as nt } from "@feedmepos/mf-common";
|
|
4
6
|
import { useDialogChild as ft, useProxiedModel as It, useDialog as yt, components as we, FmButtonColorThemeVariant as Ze, FmButtonVariant as Ke } from "@feedmepos/ui-library";
|
|
5
7
|
import { u as St } from "./search-BAPEUu1R.js";
|
|
6
|
-
var Be = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_7636e400-13cc-4dd2-a0dc-7fb1d0ba0fc2", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_7636e400-13cc-4dd2-a0dc-7fb1d0ba0fc2", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", 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", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", 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", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-0.8.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.0.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1744", npm_package_dependencies__feedmepos_ui_library: "1.7.0", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250831.1.0", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:13599", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.6/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "17454714241", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "6870147208b042a2ac6307eb0693d1d05a812078", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.2.4", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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@9.15.9/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@9.15.9/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@9.15.9/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_8f54b4ee-26d8-4686-bc9d-2b03aa847b9b", INVOCATION_ID: "040e60ba2939445c820dbcc28b60f26b", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "407", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000015295", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.32", 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", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", 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@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.30-beta.1", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "6870147208b042a2ac6307eb0693d1d05a812078", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_7636e400-13cc-4dd2-a0dc-7fb1d0ba0fc2", 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@9.15.9/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_7636e400-13cc-4dd2-a0dc-7fb1d0ba0fc2", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", 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", npm_package_dependencies__feedmepos_menu: "1.7.3", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_7636e400-13cc-4dd2-a0dc-7fb1d0ba0fc2", 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;
|
|
8
|
+
var Be = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_92c9bec5-c748-476b-8664-836bb27a776a", npm_package_scripts_dev_prod: "dotenv -e .env.prod -- vite --mode dev --port 5176", npm_package_dependencies__vue_devtools_api: "^6.5.0", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_devDependencies__types_node: "^18.18.5", DOTNET_NOLOGO: "1", npm_package_dependencies__feedmepos_core_dart: "^0.2.6", npm_package_dependencies__feedmepos_remy_vue_client: "0.1.3-beta.8", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies__rollup_plugin_node_resolve: "^16.0.0", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v18.20.8 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.16", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_92c9bec5-c748-476b-8664-836bb27a776a", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_package_devDependencies_vite: "^6.2.2", 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", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", npm_package_devDependencies_sass: "1.69.5", 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", npm_package_dependencies__feedmepos_core_legacy: "file:../../core-legacy-0.8.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.0.0", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.2.13676358", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --noEmit -p tsconfig.app.json --composite false", npm_package_dependencies__feedmepos_mf_common: "workspace:^", npm_package_devDependencies_npm_run_all2: "^6.1.1", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", SYSTEMD_EXEC_PID: "1735", npm_package_dependencies__feedmepos_ui_library: "1.7.0", npm_package_dependencies_dayjs: "^1.11.12", npm_package_devDependencies__tsconfig_node18: "^18.2.2", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_dependencies_i18next: "^23.11.5", npm_package_devDependencies_tailwindcss: "^3.3.3", npm_package_devDependencies_typescript: "^5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "dotenv -e .env.dev pnpm build-only", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.25", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250907.24.1", npm_package_scripts_dev: "vite --mode dev --port 5176", npm_package_scripts_build_prod: "dotenv -e .env.prod pnpm build-only", npm_package_dependencies__feedmepos_custom_attributes: "0.0.0-rc.6", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_dependencies_i18next_vue: "^4.0.0", npm_package_devDependencies_prettier: "^3.0.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", npm_package_type: "module", npm_package_dependencies__vueuse_core: "^10.11.0", npm_package_devDependencies__vue_tsconfig: "^0.4.0", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:13373", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_vite_svg_loader: "^5.1.0", npm_package_devDependencies__rollup_plugin_commonjs: "^28.0.2", npm_package_devDependencies_autoprefixer: "^10.4.16", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.7/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_devDependencies__types_uuid: "^10.0.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GITHUB_RUN_ID: "17638897791", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a1d44ef7e0e3debaa0ce71479a47550071c0f407", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^5.2.4", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_package_dependencies_axios: "^1.7.2", npm_package_devDependencies__types_pouchdb_core: "^7.0.15", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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@9.15.9/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@9.15.9/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@9.15.9/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_c1859b0f-a402-46a3-a0e5-61d004367140", INVOCATION_ID: "2da3cc0acdde4c2784aab61c59738f54", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "408", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_publish_npm: "pnpm build && pnpm publish --no-git-checks", npm_config_frozen_lockfile: "", npm_package_dependencies_vue_advanced_cropper: "^2.8.9", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.49.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000016408", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.32", 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", npm_package_dependencies_vue3_lottie: "^3.3.0", npm_package_devDependencies__vitejs_plugin_vue_jsx: "^5.0.0", 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@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/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@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.31.31-beta.1", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && echo 'Build completed'", npm_package_dependencies__feedmepos_mf_inventory_portal: "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz", npm_package_dependencies_exceljs: "^4.4.0", npm_package_dependencies_vuedraggable: "^4.1.0", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", npm_package_scripts_build: 'run-p type-check "build-only {@}" --', npm_package_dependencies_dotenv_cli: "^7.4.2", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "a1d44ef7e0e3debaa0ce71479a47550071c0f407", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", npm_package_dependencies_canvas: "^2.9.3", npm_package_dependencies_vue_router: "^4.2.5", npm_package_devDependencies_eslint_plugin_tailwindcss: "^3.14.0", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_format: "prettier --write src/", npm_package_scripts_prepare_menu_debug: "bash scripts/prepare-menu-debug.sh", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_jszip: "^3.10.1", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_92c9bec5-c748-476b-8664-836bb27a776a", 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@9.15.9/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_92c9bec5-c748-476b-8664-836bb27a776a", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_inventory_core: "^0.2.6", npm_package_dependencies__feedmepos_zod_entity: "0.0.4-alpha.9", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_devDependencies_eslint_plugin_vue: "^9.17.0", npm_package_devDependencies_postcss: "^8.4.31", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", npm_package_scripts_deploy: "pnpm publish --no-git-checks .", npm_package_dependencies_vue3_carousel: "0.16.0", 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", npm_package_dependencies__feedmepos_menu: "1.7.3", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_92c9bec5-c748-476b-8664-836bb27a776a", 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
9
|
D.scheduleImmediate = typeof setImmediate < "u" ? function(ge) {
|
|
8
10
|
setImmediate(ge);
|
|
9
11
|
} : function(ge) {
|
|
@@ -22391,7 +22393,7 @@ D.exports.prepareConvertAdjustment;
|
|
|
22391
22393
|
D.exports.receiveStock;
|
|
22392
22394
|
D.exports.validatePurchaseOrderStatus;
|
|
22393
22395
|
D.exports.deductStock;
|
|
22394
|
-
const
|
|
22396
|
+
const Dt = D.exports.getInvalidSkuAndRecipe;
|
|
22395
22397
|
D.exports.recalculateStock;
|
|
22396
22398
|
D.exports.getCostOfGoodsSold;
|
|
22397
22399
|
D.exports.idToDate;
|
|
@@ -22483,7 +22485,7 @@ const ht = { class: "space-y-24 flex flex-col overflow-hidden" }, Ct = { class:
|
|
|
22483
22485
|
class: "xs:w-full xs:overflow-x-scroll"
|
|
22484
22486
|
}, Vt = {
|
|
22485
22487
|
class: "xs:min-w-[640px]"
|
|
22486
|
-
},
|
|
22488
|
+
}, Rt = /* @__PURE__ */ et({
|
|
22487
22489
|
__name: "InventoryBinding",
|
|
22488
22490
|
props: {
|
|
22489
22491
|
modelValue: {},
|
|
@@ -22497,27 +22499,27 @@ const ht = { class: "space-y-24 flex flex-col overflow-hidden" }, Ct = { class:
|
|
|
22497
22499
|
setup(ge, {
|
|
22498
22500
|
emit: me
|
|
22499
22501
|
}) {
|
|
22500
|
-
const se = ge, re = me, ye = yt(), fe = mt(), ue = ve(() => se.type ===
|
|
22502
|
+
const se = ge, re = me, ye = yt(), fe = mt(), ue = ve(() => se.type === We.enum.RECIPE), {
|
|
22501
22503
|
t: $e
|
|
22502
|
-
} = nt(), be = ve(() => ue.value ? $e("menu.inventory.binding.recipe.title") : $e("menu.inventory.binding.ingredient.title")), Me = ve(() => se.modelValue.filter((d) => d.type ===
|
|
22504
|
+
} = nt(), be = ve(() => ue.value ? $e("menu.inventory.binding.recipe.title") : $e("menu.inventory.binding.ingredient.title")), Me = ve(() => se.modelValue.filter((d) => d.type === We.enum.SKU).map((d) => {
|
|
22503
22505
|
const e = fe.skus.find((z) => z._id === d.id), o = Pe(e, d.measurement);
|
|
22504
22506
|
return {
|
|
22505
22507
|
...d,
|
|
22506
22508
|
name: (e == null ? void 0 : e.name) || "",
|
|
22507
|
-
formattedAmount:
|
|
22509
|
+
formattedAmount: ze.fromFdoDecimal({
|
|
22508
22510
|
decimal: d.amount
|
|
22509
22511
|
}).toPositive().toUnit(),
|
|
22510
22512
|
decimal: o,
|
|
22511
22513
|
sku: e,
|
|
22512
22514
|
isDeduct: d.amount.amount > 0
|
|
22513
22515
|
};
|
|
22514
|
-
})), Ve = ve(() => se.modelValue.filter((d) => d.type ===
|
|
22516
|
+
})), Ve = ve(() => se.modelValue.filter((d) => d.type === We.enum.RECIPE).map((d) => {
|
|
22515
22517
|
const e = fe.recipes.find((o) => o._id === d.id);
|
|
22516
22518
|
return {
|
|
22517
22519
|
...d,
|
|
22518
22520
|
name: (e == null ? void 0 : e.name) || "",
|
|
22519
22521
|
decimal: 0,
|
|
22520
|
-
formattedAmount:
|
|
22522
|
+
formattedAmount: ze.fromFdoDecimal({
|
|
22521
22523
|
decimal: d.amount
|
|
22522
22524
|
}).toUnit()
|
|
22523
22525
|
};
|
|
@@ -22707,7 +22709,7 @@ const ht = { class: "space-y-24 flex flex-col overflow-hidden" }, Ct = { class:
|
|
|
22707
22709
|
function je(d) {
|
|
22708
22710
|
if (!se.allowRefund)
|
|
22709
22711
|
return;
|
|
22710
|
-
const e =
|
|
22712
|
+
const e = ze.fromNumber({
|
|
22711
22713
|
number: d.amount.amount
|
|
22712
22714
|
});
|
|
22713
22715
|
he({
|
|
@@ -22788,6 +22790,6 @@ const ht = { class: "space-y-24 flex flex-col overflow-hidden" }, Ct = { class:
|
|
|
22788
22790
|
}
|
|
22789
22791
|
});
|
|
22790
22792
|
export {
|
|
22791
|
-
|
|
22792
|
-
|
|
22793
|
+
Rt as _,
|
|
22794
|
+
Dt as g
|
|
22793
22795
|
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { defineComponent as S, ref as V, computed as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as S, ref as V, computed as z, watch as F, resolveComponent as b, createElementBlock as I, openBlock as w, Fragment as D, renderSlot as O, createVNode as r, unref as n, withCtx as f, createElementVNode as y, createBlock as A, createCommentVNode as E, toDisplayString as L } from "vue";
|
|
2
|
+
import { D as _, G as N } from "./menu-CsIzrBEr.js";
|
|
3
3
|
import { useI18n as j, ItemSelector as P } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as U, FmButtonVariant as q } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as G } from "./discardConfirm-BHni0LNu.js";
|
|
6
6
|
import { c as M } from "./check-C9mY6LiX.js";
|
|
7
|
+
import "@feedmepos/core";
|
|
8
|
+
import "@feedmepos/core/entity";
|
|
7
9
|
/* empty css */
|
|
8
10
|
const T = (i, u) => {
|
|
9
11
|
const s = i.__vccOpts || i;
|
|
10
12
|
for (const [c, t] of u)
|
|
11
13
|
s[c] = t;
|
|
12
14
|
return s;
|
|
13
|
-
}, $ = { class: "fm-typo-en-title-md-600 mr-auto" },
|
|
15
|
+
}, $ = { class: "fm-typo-en-title-md-600 mr-auto" }, H = { class: "flex gap-8 items-center justify-start" }, J = /* @__PURE__ */ S({
|
|
14
16
|
__name: "LinkProductSideSheet",
|
|
15
17
|
props: {
|
|
16
18
|
initialValue: { default: () => [] },
|
|
@@ -29,7 +31,7 @@ const T = (i, u) => {
|
|
|
29
31
|
function d(e) {
|
|
30
32
|
return e.reduce((o, a) => (o[a._id] = [...o[a._id] ?? [], a], o), {});
|
|
31
33
|
}
|
|
32
|
-
const k = s.initialValue, l = V(d(_(k))), h =
|
|
34
|
+
const k = s.initialValue, l = V(d(_(k))), h = z(() => Object.values(l.value).flatMap((e) => e)), g = G(
|
|
33
35
|
() => !N.isEqual(d(s.initialValue), l.value),
|
|
34
36
|
() => {
|
|
35
37
|
t.value = !1;
|
|
@@ -38,7 +40,7 @@ const T = (i, u) => {
|
|
|
38
40
|
function B() {
|
|
39
41
|
c("submit", h.value), t.value = !1;
|
|
40
42
|
}
|
|
41
|
-
|
|
43
|
+
F(
|
|
42
44
|
() => t.value,
|
|
43
45
|
() => {
|
|
44
46
|
l.value = d(_(s.initialValue));
|
|
@@ -47,8 +49,8 @@ const T = (i, u) => {
|
|
|
47
49
|
const { t: m } = j();
|
|
48
50
|
return (e, o) => {
|
|
49
51
|
const a = b("fm-button"), C = b("fm-side-sheet");
|
|
50
|
-
return w(),
|
|
51
|
-
|
|
52
|
+
return w(), I(D, null, [
|
|
53
|
+
O(e.$slots, "default", { trigger: v }, void 0, !0),
|
|
52
54
|
r(C, {
|
|
53
55
|
id: "group-form",
|
|
54
56
|
modelValue: t.value,
|
|
@@ -63,7 +65,7 @@ const T = (i, u) => {
|
|
|
63
65
|
"onOn:clickedAway": n(g)
|
|
64
66
|
}, {
|
|
65
67
|
"side-sheet-header": f(() => [
|
|
66
|
-
e.useCloseBtn ? E("", !0) : (w(),
|
|
68
|
+
e.useCloseBtn ? E("", !0) : (w(), A(a, {
|
|
67
69
|
key: 0,
|
|
68
70
|
variant: n(q).Tertiary,
|
|
69
71
|
class: "cursor-pointer mr-4",
|
|
@@ -73,7 +75,7 @@ const T = (i, u) => {
|
|
|
73
75
|
y("p", $, L(e.title || n(m)("menu.link_product.title")), 1)
|
|
74
76
|
]),
|
|
75
77
|
"side-sheet-footer": f(() => [
|
|
76
|
-
y("div",
|
|
78
|
+
y("div", H, [
|
|
77
79
|
r(a, {
|
|
78
80
|
label: n(m)("menu.common.actions.confirm"),
|
|
79
81
|
size: "lg",
|
|
@@ -105,8 +107,8 @@ const T = (i, u) => {
|
|
|
105
107
|
], 64);
|
|
106
108
|
};
|
|
107
109
|
}
|
|
108
|
-
}),
|
|
110
|
+
}), te = /* @__PURE__ */ T(J, [["__scopeId", "data-v-25b0fda9"]]);
|
|
109
111
|
export {
|
|
110
|
-
|
|
112
|
+
te as L,
|
|
111
113
|
T as _
|
|
112
114
|
};
|