@feedmepos/mf-menu 0.32.43 → 0.32.44
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-C9b4SjED.js → App-BXkiQoTM.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C1T4Ewek.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BoSL4dm7.js} +3 -3
- package/dist/{Catalog-BVrf3VaX.js → Catalog-CLFVLyor.js} +44 -44
- package/dist/{Category-BkReM5IG.js → Category-BdyouDU8.js} +24 -24
- package/dist/{Category-BMzIQqIE.js → Category-CNuVHuI3.js} +25 -25
- package/dist/{CookingGuide-CvctI1TH.js → CookingGuide-Bed7bUt1.js} +105 -105
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-bYSEp6Wb.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CZDL2xJC.js} +1 -1
- package/dist/{Group-CHkNuuHE.js → Group-D4UTsIxI.js} +3 -3
- package/dist/{Group-BQzmXagr.js → Group-TUqCPmO3.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BkruJTpL.js → Group.vue_vue_type_script_setup_true_lang-BJPT8flL.js} +19 -19
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CBz83Qd1.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D83liryu.js} +30 -30
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dpx4meDa.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CRIRinHB.js} +10 -11
- package/dist/{Ingredient-BNsKYrQB.js → Ingredient-CcxoeuDd.js} +20 -20
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DzzwwdA_.js → InventoryBinding.vue_vue_type_script_setup_true_lang-58tyxdVh.js} +2 -2
- package/dist/{LinkProductSideSheet-C6-wef-M.js → LinkProductSideSheet-DazOkwkd.js} +45 -45
- package/dist/{MenuSetting-DRaw7b6m.js → MenuSetting-B3oLll4C.js} +47 -47
- package/dist/{PrintRoute-BKB-thVp.js → PrintRoute-D878qPu8.js} +39 -39
- package/dist/{Product-vviXmBR1.js → Product-DOC8y_mW.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-5h-k6zad.js → Product.vue_vue_type_script_setup_true_lang-tZyBhWYT.js} +140 -140
- package/dist/{ProductInternalTools-DtLk3xFR.js → ProductInternalTools-9TgIc2bR.js} +66 -66
- package/dist/Products-DfUGnHmD.js +1568 -0
- package/dist/{Publish-jx0_H_26.js → Publish-BktK_PKq.js} +29 -29
- package/dist/{Recipe-Dk04ge-_.js → Recipe-eA0xrGYk.js} +24 -24
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DaCVUn1i.js → RuleView.vue_vue_type_script_setup_true_lang-t8M7z09s.js} +2 -2
- package/dist/{Scheduler-vFTvCVcY.js → Scheduler-CKSqPZLQ.js} +11 -11
- package/dist/{ServingSequence-DiBqQ_iS.js → ServingSequence-Ea20baNj.js} +44 -44
- package/dist/{Setting-CtzJ_pVM.js → Setting-u6lX_Dzg.js} +17 -17
- package/dist/{Subcategory-Cmv2W67T.js → Subcategory-C6s7OMOb.js} +51 -51
- package/dist/{Takeaway-DBW4UPFZ.js → Takeaway-B9kr-Nf4.js} +13 -13
- package/dist/{Takeaway-ChaYk0Ix.js → Takeaway-lWxS9oWe.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C7RL3ITP.js → Takeaway.vue_vue_type_script_setup_true_lang-oA0e9oI5.js} +54 -54
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-edwJ1203.js → Thumbnail.vue_vue_type_script_setup_true_lang-T40ChY7j.js} +27 -27
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-CcIGCUwk.js +194 -0
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B1e3d-uX.js +6130 -0
- package/dist/{Unit-BgLqPMLe.js → Unit-DkQlUg2l.js} +8 -8
- package/dist/{Variant-B8yxF5mJ.js → Variant-BF5r2WLL.js} +25 -25
- package/dist/{_id_-CDN7as0K.js → _id_-_oqk-OhC.js} +28 -28
- package/dist/app-CfCYl2pO.js +363 -0
- package/dist/{app-0AQBxO0B.js → app-DIYHNWEw.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-DTIHdzDw.js → linked-status-AoXjo9FF.js} +2 -2
- package/dist/assets/{menu-export-CpcyYnR-.js → menu-export-BHcaWhM3.js} +2 -2
- package/dist/assets/{override-menu-CASoFjhZ.js → override-menu-B9xQcjuJ.js} +2 -2
- package/dist/assets/{validate-menu-C5AkexWv.js → validate-menu-D-ezd4W8.js} +2 -2
- package/dist/{catalog-BA1e4WAu.js → catalog-CvN9Wu8V.js} +1 -1
- package/dist/{catalogSetting-DE5rjVfj.js → catalogSetting-qS5Np22q.js} +1 -1
- package/dist/{currency-D5qYOpxI.js → currency-Nxod6uwl.js} +1 -1
- package/dist/dayjs.min-B1AjAGva.js +6 -0
- package/dist/index-C0Zw1cSS.js +545 -0
- package/dist/{index-vPs04fVf.js → index-Cq-czJjU.js} +31 -31
- package/dist/index-nKlYiotY.js +246 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-DSZsSghE.js → index.vue_vue_type_script_setup_true_lang-YXKayPEp.js} +103 -78
- package/dist/{item-Dp17qTYi.js → item-CUZSonzT.js} +2587 -2587
- package/dist/{jszip.min-DlpCmtaR.js → jszip.min-BnkZQ6lD.js} +6 -7
- package/dist/{menu-BOVrJ7di.js → menu-BP_ArXCI.js} +1 -1
- package/dist/{menuV2-BHnldQiM.js → menuV2-BGEYgQ8-.js} +59 -59
- package/dist/{priceTier-BRQz1GRF.js → priceTier-B-Qa0xaO.js} +1 -1
- package/dist/{rules-CO49kqfr.js → rules-Dchd_ilF.js} +12 -12
- package/dist/{scheduler-BDHjl8t7.js → scheduler-DN7ZGLk8.js} +29 -29
- package/dist/{toExcel-DGdZKSxT.js → toExcel-jHmkDqcm.js} +2 -2
- package/dist/{translation-BCZ1Ruvv.js → translation-Cdap0IVg.js} +21 -35
- package/dist/{unit-D7QVgTp_.js → unit-DgL56pkI.js} +35 -35
- package/package.json +1 -1
- package/dist/Products-BR3iBVFd.js +0 -307
- package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-I6qrPmxY.js +0 -144
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-Cs6s_csi.js +0 -196
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DIbjlDVn.js +0 -5767
- package/dist/app-BU6wILmn.js +0 -2286
- package/dist/dayjs.min-BFDAHpA8.js +0 -7
- package/dist/index--nQbIQ0d.js +0 -545
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as Z, computed as v, resolveComponent as M, createBlock as U, openBlock as m, withCtx as D, createElementBlock as C, Fragment as T, renderList as ne, createElementVNode as p, normalizeClass as X, toDisplayString as G, createVNode as i, ref as R, renderSlot as Ee, unref as r, createCommentVNode as I, watch as Re, h as H, mergeProps as Se, createSlots as Ie, withModifiers as Ue, isRef as W, nextTick as fe } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { J as q, u as le, Q as Te, G as $e, A as g, D as Ye, a4 as Le, B as ze, M as je } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
|
|
3
3
|
import { d as Be } from "./vuedraggable-CK8z7qA8.js";
|
|
4
4
|
import { b as ve, H as Ke } from "./app-5fxKLAzS.js";
|
|
5
5
|
import { useI18n as ae, useCoreStore as He, useCustomAttributes as qe } from "@feedmepos/mf-common";
|
|
6
|
-
import { useBreakpoints as ye, components as _e, useSnackbar as
|
|
7
|
-
import { _ as Xe, a as Ze } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as et } from "./app-
|
|
6
|
+
import { useBreakpoints as ye, components as _e, useSnackbar as Qe, useDialog as Je, FmButtonVariant as We } from "@feedmepos/ui-library";
|
|
7
|
+
import { _ as Xe, a as Ze } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-CZDL2xJC.js";
|
|
8
|
+
import { _ as et } from "./app-CfCYl2pO.js";
|
|
9
9
|
import { _ as tt, a as ot } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
10
10
|
import { c as nt } from "./object-DVUNCr7w.js";
|
|
11
11
|
import { u as lt } from "./discardConfirm-BHni0LNu.js";
|
|
12
|
-
import { _ as at } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { _ as at } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-BoSL4dm7.js";
|
|
13
13
|
import { c as rt } from "./check-C9mY6LiX.js";
|
|
14
|
-
import { M as ge, D as ut, E as st, B as it, j as ct, l as mt, r as pt } from "./item-
|
|
14
|
+
import { M as ge, D as ut, E as st, B as it, j as ct, l as mt, r as pt } from "./item-CUZSonzT.js";
|
|
15
15
|
import { u as dt } from "./search-BAPEUu1R.js";
|
|
16
|
-
import { C as ft } from "./catalog-
|
|
17
|
-
import { c as vt } from "./menuV2-
|
|
18
|
-
import { g as gt } from "./translation-
|
|
16
|
+
import { C as ft } from "./catalog-CvN9Wu8V.js";
|
|
17
|
+
import { c as vt } from "./menuV2-BGEYgQ8-.js";
|
|
18
|
+
import { g as gt } from "./translation-Cdap0IVg.js";
|
|
19
19
|
const yt = /* @__PURE__ */ Z({
|
|
20
20
|
__name: "ResponsiveContextMenu",
|
|
21
21
|
props: {
|
|
@@ -93,10 +93,10 @@ const yt = /* @__PURE__ */ Z({
|
|
|
93
93
|
rt.isBoolean(F) ? h.value = F : h.value = !h.value, h.value && (f.value = u.initialValue.map((_) => ({ _id: _ })));
|
|
94
94
|
}, x = le();
|
|
95
95
|
return (F, _) => {
|
|
96
|
-
const b = M("fm-button"),
|
|
96
|
+
const b = M("fm-button"), Q = M("fm-side-sheet");
|
|
97
97
|
return m(), C(T, null, [
|
|
98
98
|
Ee(F.$slots, "default", { trigger: A }),
|
|
99
|
-
i(
|
|
99
|
+
i(Q, {
|
|
100
100
|
id: "group-form",
|
|
101
101
|
modelValue: h.value,
|
|
102
102
|
"onUpdate:modelValue": _[1] || (_[1] = (N) => h.value = N),
|
|
@@ -208,11 +208,11 @@ const yt = /* @__PURE__ */ Z({
|
|
|
208
208
|
setup(L, {
|
|
209
209
|
emit: S
|
|
210
210
|
}) {
|
|
211
|
-
const u = le(), E = He(), V =
|
|
211
|
+
const u = le(), E = He(), V = Qe(), k = Te($e(V)), f = Je(), y = v(() => u.rules.group), h = v(() => new ge(u, k.updateMenu, f)), A = v(() => h.value.mapGroups(u.groups, !1)), {
|
|
212
212
|
searchKey: x,
|
|
213
213
|
filter: F
|
|
214
214
|
} = dt(), _ = R(!1), b = R(null), {
|
|
215
|
-
attributes:
|
|
215
|
+
attributes: Q,
|
|
216
216
|
filterRule: N,
|
|
217
217
|
mongoQuery: re
|
|
218
218
|
} = qe({
|
|
@@ -523,9 +523,9 @@ const yt = /* @__PURE__ */ Z({
|
|
|
523
523
|
} = ae(), Ve = v(() => {
|
|
524
524
|
var t;
|
|
525
525
|
return ((t = E.groupAttributeSettings) == null ? void 0 : t.value.length) > 0;
|
|
526
|
-
}), K = R(!1),
|
|
526
|
+
}), K = R(!1), J = R(null);
|
|
527
527
|
async function Ne() {
|
|
528
|
-
K.value = !K.value, K.value && (await fe(),
|
|
528
|
+
K.value = !K.value, K.value && (await fe(), J.value && J.value.toggleProperty(!0));
|
|
529
529
|
}
|
|
530
530
|
const de = () => y.value.multiScheduler ? i(Ze, null, {
|
|
531
531
|
append: () => Ve.value ? i("div", {
|
|
@@ -609,8 +609,8 @@ const yt = /* @__PURE__ */ Z({
|
|
|
609
609
|
_: 1
|
|
610
610
|
}, 8, ["modelValue"])) : I("", !0)]), K.value ? (m(), C("div", Vt, [i(r(ve), {
|
|
611
611
|
ref_key: "attributeFilterRef",
|
|
612
|
-
ref:
|
|
613
|
-
attributes: r(
|
|
612
|
+
ref: J,
|
|
613
|
+
attributes: r(Q),
|
|
614
614
|
modelValue: r(N),
|
|
615
615
|
"onUpdate:modelValue": e[15] || (e[15] = (o) => W(N) ? N.value = o : null)
|
|
616
616
|
}, null, 8, ["attributes", "modelValue"])])) : I("", !0), i(r(Be), {
|
|
@@ -667,8 +667,8 @@ const yt = /* @__PURE__ */ Z({
|
|
|
667
667
|
placeholder: r(l)("menu.group.search.placeholder")
|
|
668
668
|
}, null, 8, ["modelValue", "placeholder"])])]), K.value ? (m(), C("div", Mt, [i(r(ve), {
|
|
669
669
|
ref_key: "attributeFilterRef",
|
|
670
|
-
ref:
|
|
671
|
-
attributes: r(
|
|
670
|
+
ref: J,
|
|
671
|
+
attributes: r(Q),
|
|
672
672
|
modelValue: r(N),
|
|
673
673
|
"onUpdate:modelValue": e[7] || (e[7] = (o) => W(N) ? N.value = o : null)
|
|
674
674
|
}, null, 8, ["attributes", "modelValue"])])) : I("", !0), i(et, null, {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as N, useModel as K, computed as B, resolveComponent as d, createBlock as
|
|
1
|
+
import { defineComponent as N, useModel as K, computed as B, resolveComponent as d, createBlock as P, openBlock as b, ref as L, watch as W, withCtx as _, createElementBlock as F, createElementVNode as I, Fragment as q, renderList as X, createVNode as u, unref as e, createCommentVNode as $, withModifiers as Q, onMounted as te, renderSlot as le, toDisplayString as h, createTextVNode as ae } from "vue";
|
|
2
2
|
import { useI18n as z, useCustomAttributes as ue, useCoreStore as re, isEmptyRule as oe, EMPTY_RULE as w } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as x } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
4
|
-
import { u as D } from "./priceTier-
|
|
5
|
-
import { b as
|
|
6
|
-
import { FmButtonVariant as Z, useDialog as ne, components as ie, FmButtonColorThemeVariant as
|
|
7
|
-
import { m as
|
|
8
|
-
import { L as R } from "./catalogSetting-
|
|
9
|
-
import { L as de } from "./LinkProductSideSheet-
|
|
4
|
+
import { u as D } from "./priceTier-B-Qa0xaO.js";
|
|
5
|
+
import { b as O } from "./app-5fxKLAzS.js";
|
|
6
|
+
import { FmButtonVariant as Z, useDialog as ne, components as ie, FmButtonColorThemeVariant as j } from "@feedmepos/ui-library";
|
|
7
|
+
import { m as G, f as Y, d as se, _ as me } from "./RuleView.vue_vue_type_script_setup_true_lang-t8M7z09s.js";
|
|
8
|
+
import { L as R } from "./catalogSetting-qS5Np22q.js";
|
|
9
|
+
import { L as de } from "./LinkProductSideSheet-DazOkwkd.js";
|
|
10
10
|
import { c as H } from "./check-C9mY6LiX.js";
|
|
11
|
-
import { u as pe,
|
|
11
|
+
import { u as pe, I as J, an as ce } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
|
|
12
12
|
import { c as ve } from "./string-DpfFixWH.js";
|
|
13
13
|
const fe = /* @__PURE__ */ N({
|
|
14
14
|
__name: "LinkPriceTier",
|
|
@@ -24,7 +24,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
24
24
|
})));
|
|
25
25
|
return (V, g) => {
|
|
26
26
|
const i = d("FmSelect");
|
|
27
|
-
return b(),
|
|
27
|
+
return b(), P(i, {
|
|
28
28
|
items: a.value,
|
|
29
29
|
"model-value": r.value ?? [],
|
|
30
30
|
multiselect: !0,
|
|
@@ -53,8 +53,8 @@ const fe = /* @__PURE__ */ N({
|
|
|
53
53
|
return {
|
|
54
54
|
...l,
|
|
55
55
|
restaurantRule: {
|
|
56
|
-
restaurantAttributes:
|
|
57
|
-
restaurantCustomAttributes:
|
|
56
|
+
restaurantAttributes: G((p = l.restaurantRule) == null ? void 0 : p.restaurantAttributes),
|
|
57
|
+
restaurantCustomAttributes: G((c = l.restaurantRule) == null ? void 0 : c.restaurantCustomAttributes)
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
}));
|
|
@@ -101,13 +101,13 @@ const fe = /* @__PURE__ */ N({
|
|
|
101
101
|
}
|
|
102
102
|
return (l, p) => {
|
|
103
103
|
const c = d("FmSelect"), n = d("fm-button"), v = d("FmCard"), E = d("FmButton");
|
|
104
|
-
return b(),
|
|
105
|
-
default: _(() => [(b(!0), F(q, null, X(o.value, (M, S) => (b(),
|
|
104
|
+
return b(), P(me, null, {
|
|
105
|
+
default: _(() => [(b(!0), F(q, null, X(o.value, (M, S) => (b(), P(v, {
|
|
106
106
|
key: S,
|
|
107
107
|
class: "p-16 space-y-16",
|
|
108
108
|
variant: "outlined"
|
|
109
109
|
}, {
|
|
110
|
-
default: _(() => [
|
|
110
|
+
default: _(() => [I("div", null, [u(c, {
|
|
111
111
|
label: "Price groups",
|
|
112
112
|
"label-mark": "required",
|
|
113
113
|
items: s.value,
|
|
@@ -119,7 +119,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
119
119
|
}, {
|
|
120
120
|
default: _(() => {
|
|
121
121
|
var f;
|
|
122
|
-
return [u(e(
|
|
122
|
+
return [u(e(O), {
|
|
123
123
|
attributes: e(g),
|
|
124
124
|
"model-value": (f = M.restaurantRule) == null ? void 0 : f.restaurantAttributes,
|
|
125
125
|
"onUpdate:modelValue": (C) => i(S, C, "restaurantAttributes")
|
|
@@ -131,20 +131,20 @@ const fe = /* @__PURE__ */ N({
|
|
|
131
131
|
}, {
|
|
132
132
|
default: _(() => {
|
|
133
133
|
var f;
|
|
134
|
-
return [u(e(
|
|
134
|
+
return [u(e(O), {
|
|
135
135
|
attributes: e(V),
|
|
136
136
|
"model-value": (f = M.restaurantRule) == null ? void 0 : f.restaurantCustomAttributes,
|
|
137
137
|
"onUpdate:modelValue": (C) => i(S, C, "restaurantCustomAttributes")
|
|
138
138
|
}, null, 8, ["attributes", "model-value", "onUpdate:modelValue"])];
|
|
139
139
|
}),
|
|
140
140
|
_: 2
|
|
141
|
-
}, 1032, ["label"]),
|
|
141
|
+
}, 1032, ["label"]), I("div", _e, [u(n, {
|
|
142
142
|
variant: e(Z).Tertiary,
|
|
143
143
|
"prepend-icon": "delete",
|
|
144
144
|
onClick: (f) => A(S)
|
|
145
145
|
}, null, 8, ["variant", "onClick"])])]),
|
|
146
146
|
_: 2
|
|
147
|
-
}, 1024))), 128)),
|
|
147
|
+
}, 1024))), 128)), I("div", null, [u(E, {
|
|
148
148
|
label: "Add rule",
|
|
149
149
|
onClick: t
|
|
150
150
|
})])]),
|
|
@@ -178,7 +178,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
178
178
|
}
|
|
179
179
|
return (s, t) => {
|
|
180
180
|
const A = d("fm-radio"), k = d("fm-radio-group");
|
|
181
|
-
return !s.isMainCatalog && s.isV4 && e(V).priceTiers.value.length > 0 ? (b(),
|
|
181
|
+
return !s.isMainCatalog && s.isV4 && e(V).priceTiers.value.length > 0 ? (b(), P(x, {
|
|
182
182
|
key: 0,
|
|
183
183
|
label: e(a)("menu.price_tier.link_price_tier")
|
|
184
184
|
}, {
|
|
@@ -298,7 +298,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
298
298
|
le(n.$slots, "default", { trigger: s }),
|
|
299
299
|
u(ee, {
|
|
300
300
|
modelValue: i.value,
|
|
301
|
-
"onUpdate:modelValue": v[4] || (v[4] = (
|
|
301
|
+
"onUpdate:modelValue": v[4] || (v[4] = (U) => i.value = U),
|
|
302
302
|
"is-component": e(ie).FmForm,
|
|
303
303
|
"is-component-props": {
|
|
304
304
|
onValidationSuccess: c
|
|
@@ -312,7 +312,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
312
312
|
class: "sm:w-full xs:w-full ml-auto",
|
|
313
313
|
label: "Cancel",
|
|
314
314
|
variant: "tertiary",
|
|
315
|
-
onClick: v[3] || (v[3] = (
|
|
315
|
+
onClick: v[3] || (v[3] = (U) => s(!1))
|
|
316
316
|
}),
|
|
317
317
|
u(C, {
|
|
318
318
|
label: e(ve)(n.action),
|
|
@@ -323,9 +323,9 @@ const fe = /* @__PURE__ */ N({
|
|
|
323
323
|
}, null, 8, ["label"])
|
|
324
324
|
]),
|
|
325
325
|
default: _(() => {
|
|
326
|
-
var
|
|
326
|
+
var U;
|
|
327
327
|
return [
|
|
328
|
-
|
|
328
|
+
I("div", ge, [
|
|
329
329
|
u(M, {
|
|
330
330
|
modelValue: t.value.percentage,
|
|
331
331
|
"onUpdate:modelValue": v[0] || (v[0] = (m) => t.value.percentage = m),
|
|
@@ -343,7 +343,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
343
343
|
]),
|
|
344
344
|
_: 1
|
|
345
345
|
}, 8, ["modelValue", "rules", "label", "placeholder"]),
|
|
346
|
-
|
|
346
|
+
I("div", null, [
|
|
347
347
|
u(f, {
|
|
348
348
|
modelValue: k.value,
|
|
349
349
|
"onUpdate:modelValue": [
|
|
@@ -353,7 +353,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
353
353
|
class: "space-y-8"
|
|
354
354
|
}, {
|
|
355
355
|
default: _(() => [
|
|
356
|
-
(b(!0), F(q, null, X(p.value, (m) => (b(),
|
|
356
|
+
(b(!0), F(q, null, X(p.value, (m) => (b(), P(S, {
|
|
357
357
|
key: m.value,
|
|
358
358
|
label: m.label,
|
|
359
359
|
value: m.value
|
|
@@ -361,7 +361,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
361
361
|
]),
|
|
362
362
|
_: 1
|
|
363
363
|
}, 8, ["modelValue"]),
|
|
364
|
-
|
|
364
|
+
I("div", ke, [
|
|
365
365
|
u(de, {
|
|
366
366
|
title: "Link products",
|
|
367
367
|
"categorized-items": e(o).categorizedItems,
|
|
@@ -370,10 +370,10 @@ const fe = /* @__PURE__ */ N({
|
|
|
370
370
|
onSubmit: v[2] || (v[2] = ({ items: m }) => A(m))
|
|
371
371
|
}, {
|
|
372
372
|
default: _(({ trigger: m }) => [
|
|
373
|
-
k.value === 1 ? (b(),
|
|
373
|
+
k.value === 1 ? (b(), P(C, {
|
|
374
374
|
key: 0,
|
|
375
|
-
"text-color": e(
|
|
376
|
-
"border-color": e(
|
|
375
|
+
"text-color": e(j).ColorPrimary,
|
|
376
|
+
"border-color": e(j).ColorPrimary,
|
|
377
377
|
variant: e(Z).Secondary,
|
|
378
378
|
label: e(a)("menu.markup.dialog.products.link"),
|
|
379
379
|
"prepend-icon": "link",
|
|
@@ -382,7 +382,7 @@ const fe = /* @__PURE__ */ N({
|
|
|
382
382
|
]),
|
|
383
383
|
_: 1
|
|
384
384
|
}, 8, ["categorized-items", "initial-value"]),
|
|
385
|
-
(
|
|
385
|
+
(U = t.value.includeItems) != null && U.length ? (b(), F("p", Ve, h(e(a)("menu.markup.dialog.products.count", { count: t.value.includeItems.length })), 1)) : $("", !0)
|
|
386
386
|
])
|
|
387
387
|
])
|
|
388
388
|
])
|
|
@@ -2,8 +2,7 @@ var FA = Object.defineProperty;
|
|
|
2
2
|
var yA = (i, l, s) => l in i ? FA(i, l, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[l] = s;
|
|
3
3
|
var ks = (i, l, s) => yA(i, typeof l != "symbol" ? l + "" : l, s);
|
|
4
4
|
import { defineComponent as eo, ref as Ci, resolveComponent as Si, createElementBlock as xr, openBlock as yr, createBlock as ql, normalizeClass as Ka, createVNode as hn, createElementVNode as Ur, unref as Di, toDisplayString as pi, watch as SA, withModifiers as wh, Fragment as aa, renderList as Xa, computed as qr, renderSlot as Mf, normalizeProps as AS, guardReactiveProps as xS, withCtx as ia, resolveDynamicComponent as zw, createCommentVNode as Jo, createTextVNode as ku, getCurrentInstance as CA } from "vue";
|
|
5
|
-
import {
|
|
6
|
-
import { a1 as cl, ah as Bm, B as q1, u as X1, A as ni, z as Ho, y as C1 } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
|
|
5
|
+
import { aj as OS, c as ul, a3 as cl, ak as Bm, G as q1, u as X1, D as ni, B as Ho, A as C1 } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
|
|
7
6
|
import { useI18n as RS, useCoreStore as TA } from "@feedmepos/mf-common";
|
|
8
7
|
import { FmButtonVariant as zc, useSnackbar as j1, useBreakpoints as EA, useDialog as wA } from "@feedmepos/ui-library";
|
|
9
8
|
import { c as IA } from "./createForm-BoUQeZTd.js";
|
|
@@ -11,10 +10,10 @@ import { c as k1 } from "./object-DVUNCr7w.js";
|
|
|
11
10
|
import { F as PS, s as kA } from "./index-CisutoS9.js";
|
|
12
11
|
import { _ as uS } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
13
12
|
import { _ as bA } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
14
|
-
import { _ as Q1 } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { f as Ww } from "./currency-
|
|
16
|
-
import { _ as AA } from "./Thumbnail.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { D as xA } from "./dayjs.min-
|
|
13
|
+
import { _ as Q1 } from "./RuleView.vue_vue_type_script_setup_true_lang-t8M7z09s.js";
|
|
14
|
+
import { f as Ww } from "./currency-Nxod6uwl.js";
|
|
15
|
+
import { _ as AA } from "./Thumbnail.vue_vue_type_script_setup_true_lang-T40ChY7j.js";
|
|
16
|
+
import { D as xA } from "./dayjs.min-B1AjAGva.js";
|
|
18
17
|
var B2 = {};
|
|
19
18
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
20
19
|
var b1 = {};
|
|
@@ -24289,7 +24288,7 @@ function y8(i) {
|
|
|
24289
24288
|
s.match(/^\.[a-z]+$/) && (i.bookType = s.slice(1)), i.bookType = l[i.bookType] || i.bookType;
|
|
24290
24289
|
}
|
|
24291
24290
|
}
|
|
24292
|
-
function
|
|
24291
|
+
function $H(i, l, s) {
|
|
24293
24292
|
var c = s || {};
|
|
24294
24293
|
return c.type = "file", c.file = l, y8(c), Q4(i, c);
|
|
24295
24294
|
}
|
|
@@ -25848,7 +25847,7 @@ function X8() {
|
|
|
25848
25847
|
var eS = {}, PE;
|
|
25849
25848
|
function SC() {
|
|
25850
25849
|
return PE || (PE = 1, function(i) {
|
|
25851
|
-
var l = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/
|
|
25850
|
+
var l = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_d2bebd30-2c26-4d9e-a730-568a4a0d10ca", 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_d2bebd30-2c26-4d9e-a730-568a4a0d10ca", 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", MENU_BACKEND_URL: "https://menu-v4.feedmeapi.com", 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.4.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-ubuntu24", 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: "1879", ACTIONS_ORCHESTRATION_ID: "633491c1-8b69-45e5-938e-f96fa673d5df.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: "20260413.86.1", 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.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:14894", 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.9/x64", GITHUB_RUN_ID: "25898588818", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapi.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "db527475c0befd743a477b34db8f1718bf9ad9e5", 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_0b36ca7b-bebf-45d0-b38e-6941b8b36dd3", INVOCATION_ID: "a1b5e65c8b9b4c8785fd78315adfc4a8", 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: "165", GITHUB_TRIGGERING_ACTOR: "victorchai", 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 1000069062", 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.44", 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: "db527475c0befd743a477b34db8f1718bf9ad9e5", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_d2bebd30-2c26-4d9e-a730-568a4a0d10ca", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "49786844", 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_d2bebd30-2c26-4d9e-a730-568a4a0d10ca", 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", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", 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_d2bebd30-2c26-4d9e-a730-568a4a0d10ca", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } }, s = typeof ul < "u" ? ul : window, c = Object.create(s);
|
|
25852
25851
|
c.scheduleImmediate = typeof setImmediate < "u" ? function(m) {
|
|
25853
25852
|
setImmediate(m);
|
|
25854
25853
|
} : function(m) {
|
|
@@ -72771,7 +72770,7 @@ const XJ = { class: "flex relative justify-between w-full" }, jJ = { class: "rel
|
|
|
72771
72770
|
"bg-fm-color-system-info-100 rounded-lg",
|
|
72772
72771
|
"flex items-center"
|
|
72773
72772
|
])
|
|
72774
|
-
}, eH = { class: "fm-typo-en-body-lg-400" }, tH = { key: 0 }, rH = { key: 1 }, nH = { class: "flex justify-end space-x-8 w-full" },
|
|
72773
|
+
}, eH = { class: "fm-typo-en-body-lg-400" }, tH = { key: 0 }, rH = { key: 1 }, nH = { class: "flex justify-end space-x-8 w-full" }, vH = /* @__PURE__ */ eo({
|
|
72775
72774
|
__name: "ImportProductDialog",
|
|
72776
72775
|
props: {
|
|
72777
72776
|
modelValue: { type: Boolean }
|
|
@@ -72992,8 +72991,8 @@ const XJ = { class: "flex relative justify-between w-full" }, jJ = { class: "rel
|
|
|
72992
72991
|
}
|
|
72993
72992
|
});
|
|
72994
72993
|
export {
|
|
72995
|
-
|
|
72994
|
+
vH as _,
|
|
72996
72995
|
CC as r,
|
|
72997
72996
|
j2 as u,
|
|
72998
|
-
|
|
72997
|
+
$H as w
|
|
72999
72998
|
};
|
|
@@ -2,13 +2,13 @@ import { defineComponent as ie, computed as b, ref as $, reactive as Ve, watch a
|
|
|
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
4
|
import { _ as Ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Q as re, G as X, u as Z, I as Ie, D as K, J as Oe, a4 as ce, H as le, M as q, A as H } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
|
|
6
6
|
import { _ as Te } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { defineStore as
|
|
8
|
-
import { _ as ae, g as Le } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { defineStore as Be } from "pinia";
|
|
8
|
+
import { _ as ae, g as Le } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-58tyxdVh.js";
|
|
9
9
|
import { u as De } from "./discardConfirm-BHni0LNu.js";
|
|
10
10
|
import { c as Pe } from "./check-C9mY6LiX.js";
|
|
11
|
-
import { u as Re } from "./unit-
|
|
11
|
+
import { u as Re } from "./unit-DgL56pkI.js";
|
|
12
12
|
import { c as Ae } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
14
14
|
key: 0,
|
|
@@ -23,12 +23,12 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
23
23
|
usedCodes: { default: () => [] },
|
|
24
24
|
invalidSkuAndRecipe: {}
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const { t: l } = Q(), r =
|
|
26
|
+
setup(B, { expose: N }) {
|
|
27
|
+
const { t: l } = Q(), r = B, u = re(X(W())), S = Re(), 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 = $(!1), f = $(!1), M = (t) => {
|
|
30
30
|
Pe.isBoolean(t) ? f.value = t : f.value = !f.value;
|
|
31
|
-
},
|
|
31
|
+
}, I = Z(), a = b(() => I.units), i = b(() => a.value.map(({ name: t, _id: o, abbrev: g, measurements: O }) => ({
|
|
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
|
+
...O.map(({ name: A, id: Y, abbrev: z }) => ({
|
|
40
40
|
label: `${A} (${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 ? Ie(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
|
}), D = (t) => n.unit._id === t.value && n.trackingMeasurement === (t.value || null);
|
|
54
54
|
function _(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((O) => O._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);
|
|
@@ -84,7 +84,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
84
84
|
return R.value = (((t = n.convert) == null ? void 0 : t.inventoryBindings) || []).length === 0, !R.value;
|
|
85
85
|
}
|
|
86
86
|
const fe = De(
|
|
87
|
-
() => !
|
|
87
|
+
() => !Oe.isEqual(n, r.initialValue || K.generator.initSku()),
|
|
88
88
|
() => {
|
|
89
89
|
f.value = !1;
|
|
90
90
|
}
|
|
@@ -122,7 +122,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
122
122
|
show: f,
|
|
123
123
|
trigger: M
|
|
124
124
|
}), (t, o) => {
|
|
125
|
-
const g = d("FmTextField"),
|
|
125
|
+
const g = d("FmTextField"), O = d("FmLabel"), A = 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
|
Me(t.$slots, "default", { trigger: M }),
|
|
128
128
|
s(Se, {
|
|
@@ -190,7 +190,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
190
190
|
"model-value": L.value
|
|
191
191
|
}, {
|
|
192
192
|
label: k(() => [
|
|
193
|
-
s(
|
|
193
|
+
s(O, {
|
|
194
194
|
label: e(l)("menu.sku.columns.unit")
|
|
195
195
|
}, null, 8, ["label"])
|
|
196
196
|
]),
|
|
@@ -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
|
|
297
|
+
}), Je = He, Qe = Be("sku-manager", () => {
|
|
298
|
+
const B = $e(), N = W(), l = X(N), r = re(l), u = Z(), S = Ee(), { t: h } = Q(), x = (a) => {
|
|
299
299
|
var c, n;
|
|
300
300
|
const { vNode: i } = Ae(
|
|
301
301
|
Je,
|
|
@@ -321,8 +321,8 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
321
321
|
async function M(a) {
|
|
322
322
|
C(a);
|
|
323
323
|
}
|
|
324
|
-
async function
|
|
325
|
-
|
|
324
|
+
async function I(a) {
|
|
325
|
+
B.open({
|
|
326
326
|
title: h("menu.common.dialog.remove.ingredient.title"),
|
|
327
327
|
message: h("menu.common.dialog.remove.ingredient.message", { name: a.name }),
|
|
328
328
|
primaryActions: {
|
|
@@ -349,7 +349,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
349
349
|
return {
|
|
350
350
|
createSku: f,
|
|
351
351
|
updateSku: M,
|
|
352
|
-
deleteSku:
|
|
352
|
+
deleteSku: I
|
|
353
353
|
};
|
|
354
354
|
}), We = {
|
|
355
355
|
key: 0,
|
|
@@ -378,7 +378,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
378
378
|
class: "fm-typo-en-body-md-600 font-semibold"
|
|
379
379
|
}, Vn = /* @__PURE__ */ ie({
|
|
380
380
|
__name: "Ingredient",
|
|
381
|
-
setup(
|
|
381
|
+
setup(B) {
|
|
382
382
|
const N = W();
|
|
383
383
|
X(N);
|
|
384
384
|
const l = Z(), r = Qe(), {
|
|
@@ -424,7 +424,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
424
424
|
function f(i) {
|
|
425
425
|
r.updateSku(i);
|
|
426
426
|
}
|
|
427
|
-
const M = b(() => S.value.length),
|
|
427
|
+
const M = b(() => S.value.length), I = Ue(), a = b(() => I.breakpoints.value.xs);
|
|
428
428
|
return (i, c) => {
|
|
429
429
|
const n = d("FmSearch"), F = d("FmTable"), L = d("fm-button"), D = d("FmSpacer");
|
|
430
430
|
return m(), T(Te, {
|
|
@@ -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, H as ze, B as We, a5 as Qe, a as gt, a6 as Ft } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.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/
|
|
6
|
+
var Be = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_d2bebd30-2c26-4d9e-a730-568a4a0d10ca", 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_d2bebd30-2c26-4d9e-a730-568a4a0d10ca", 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", MENU_BACKEND_URL: "https://menu-v4.feedmeapi.com", 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.4.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-ubuntu24", 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: "1879", ACTIONS_ORCHESTRATION_ID: "633491c1-8b69-45e5-938e-f96fa673d5df.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: "20260413.86.1", 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.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:14894", 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.9/x64", GITHUB_RUN_ID: "25898588818", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapi.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "db527475c0befd743a477b34db8f1718bf9ad9e5", 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_0b36ca7b-bebf-45d0-b38e-6941b8b36dd3", INVOCATION_ID: "a1b5e65c8b9b4c8785fd78315adfc4a8", 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: "165", GITHUB_TRIGGERING_ACTOR: "victorchai", 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 1000069062", 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.44", 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: "db527475c0befd743a477b34db8f1718bf9ad9e5", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_d2bebd30-2c26-4d9e-a730-568a4a0d10ca", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "49786844", 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_d2bebd30-2c26-4d9e-a730-568a4a0d10ca", 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", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", 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_d2bebd30-2c26-4d9e-a730-568a4a0d10ca", 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) {
|