@feedmepos/mf-menu 0.32.7-beta.2 → 0.32.7-dev
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-BIQ0CTci.js → App-DCkQc7e4.js} +98 -98
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js +161 -0
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +74 -0
- package/dist/{Catalog-D2wc24o8.js → Catalog-CUPoRid3.js} +9 -9
- package/dist/{Category-DA5-55d2.js → Category-BkvhZ57Y.js} +7 -7
- package/dist/{Category-BPufryqK.js → Category-Cdw0ikhP.js} +4 -4
- package/dist/{CookingGuide-DKvou40e.js → CookingGuide-BZ-4oULM.js} +6 -6
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DHoAYdGI.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js} +3 -3
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +26 -0
- package/dist/{Group-D60oAvmM.js → Group-C1FaXdUb.js} +1 -1
- package/dist/{Group-Bgpc6qE1.js → Group-Cec83DWm.js} +4 -4
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BXn3--BL.js → Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js} +128 -128
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BD9IZkwW.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js} +91 -91
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BE3LdBYY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js} +3225 -3225
- package/dist/{Ingredient-Brv4hml-.js → Ingredient-DulL8h2B.js} +29 -29
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIOX-pq1.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js} +104 -104
- package/dist/{LinkProductSideSheet-BDMbKJ8o.js → LinkProductSideSheet-Br2eE8pC.js} +251 -251
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +69 -0
- package/dist/{MenuSetting-DvCu23my.js → MenuSetting-DxW4LCW4.js} +77 -77
- package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js → PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js} +8 -8
- package/dist/{PrintRoute-DwgLKDUV.js → PrintRoute-Da6Zkx-0.js} +5 -5
- package/dist/{Product-EmoWM778.js → Product-Cs76t18_.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-5HyO_RYw.js → Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js} +606 -606
- package/dist/{ProductInternalTools-PqzouaF2.js → ProductInternalTools-DPbeRvTM.js} +10 -10
- package/dist/{Products-ZgfTT9dI.js → Products--7dGfuuT.js} +52 -52
- package/dist/{Publish-CUdRwmN1.js → Publish-COmZtiyX.js} +5 -5
- package/dist/{Recipe-BRUxyire.js → Recipe-BaN_1zrP.js} +5 -5
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CPFGkaTr.js → RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js} +451 -448
- package/dist/{Scheduler-BXdZh-xC.js → Scheduler-BSUpIAaK.js} +4 -4
- package/dist/{ServingSequence-EAZHOHiy.js → ServingSequence-dXBb7e5d.js} +4 -4
- package/dist/{Setting-BRut_Xj0.js → Setting-CalEQW0n.js} +6 -6
- package/dist/{Subcategory-D6Yrs-vO.js → Subcategory-zPHtX7Vc.js} +5 -5
- package/dist/{Takeaway-Bi8JfDWa.js → Takeaway-CRDj2Bpe.js} +5 -5
- package/dist/{Takeaway-CRdlNTu7.js → Takeaway-CcnmeTmu.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DKQZ9J8Z.js → Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js} +5 -5
- package/dist/{TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js → TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-DDWk-WUW.js → Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js} +74 -74
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +6038 -0
- package/dist/{Unit-Ccs_k5IS.js → Unit-C7-Oj5S3.js} +3 -3
- package/dist/{Variant-BHmgMXq7.js → Variant-CYiMkE0q.js} +4 -4
- package/dist/{_id_-DSSoi4Gy.js → _id_-D75ZcNlf.js} +11 -11
- package/dist/{app-CzXxFrl1.js → app-5fxKLAzS.js} +447 -447
- package/dist/{app-C8Dm2-h4.js → app-BhLVpUSl.js} +35 -35
- package/dist/{app-B9seAt5l.js → app-DzVMOviz.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +20 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/SubcategoryManager/SubcategorySelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +2 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-BoIPm5hC.js +13 -0
- package/dist/assets/override-menu-DfTrwWpR.js +13 -0
- package/dist/assets/validate-menu-BhWvQ3T9.js +13 -0
- package/dist/{catalog-CD-fdGdY.js → catalog-CudNSsIP.js} +1 -1
- package/dist/{catalogSetting-Ci85lXor.js → catalogSetting-BVHO9tK3.js} +1 -1
- package/dist/{category-6NAH0dUF.js → category-BQpgz1lk.js} +1 -1
- package/dist/{currency-BP_z7R5d.js → currency-BfS7H2KE.js} +1 -1
- package/dist/{index-BLMijxTj.js → index-BHdPJta4.js} +91 -91
- package/dist/{index-C1XCbqC-.js → index-DmGJvREM.js} +56 -56
- package/dist/{index-Cftm4-G_.js → index-DuLXS699.js} +5 -5
- package/dist/{index-DgDQzkPR.js → index-aaoziUNI.js} +30 -30
- package/dist/{index.vue_vue_type_script_setup_true_lang-D-k9WcQV.js → index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js} +40026 -40153
- package/dist/item-BtKW0wdj.js +7685 -0
- package/dist/{iteration-ZG64Re91.js → iteration-CaliNodx.js} +1 -1
- package/dist/{jszip.min-BETdv0rh.js → jszip.min-DXbkmgRD.js} +102 -102
- package/dist/{menu-COMXycAe.js → menu-D-lUEuvX.js} +1 -1
- package/dist/{menuV2-CeRS0Jw3.js → menuV2-D-6O36DO.js} +357 -348
- package/dist/mf-menu.css +1 -1
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
- package/dist/{priceTier-t2T3Q87F.js → priceTier-DKnYaOA9.js} +1 -1
- package/dist/{scheduler-BbJUVuiK.js → scheduler-DEwfbYPL.js} +7 -7
- package/dist/{subcategory-61kOQh4g.js → subcategory-CQKklgcd.js} +2 -2
- package/dist/{toExcel-DIYaK18-.js → toExcel-CRwL-QqF.js} +2 -2
- package/dist/{unit-B6StucsI.js → unit-BzM1rmN7.js} +151 -151
- package/dist/{vuedraggable-DnBIRDMr.js → vuedraggable-CK8z7qA8.js} +2 -2
- package/package.json +3 -2
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-BpEjqhAC.js +0 -161
- package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js +0 -74
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +0 -26
- package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js +0 -69
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-JdHaBpaX.js +0 -5997
- package/dist/assets/linked-status-Cuf8X8_g.js +0 -13
- package/dist/assets/override-menu-yxQLf82k.js +0 -13
- package/dist/assets/validate-menu-BwbenBs6.js +0 -13
- package/dist/item-ByEPWjef.js +0 -6819
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { x as
|
|
3
|
-
import { useCoreStore as Pt, useI18n as
|
|
1
|
+
import { defineComponent as ie, createElementBlock as j, openBlock as W, normalizeClass as yn, renderSlot as Qe, createCommentVNode as we, createVNode as Q, createElementVNode as V, toDisplayString as Z, withCtx as ae, getCurrentInstance as Dt, inject as Hn, ref as oe, shallowRef as Gn, computed as x, watch as Ze, onMounted as bn, onUnmounted as xn, h as hn, Text as Bn, Fragment as de, resolveComponent as fe, unref as Y, withModifiers as se, renderList as Me, createBlock as xt } from "vue";
|
|
2
|
+
import { x as Wn, N as Kn } from "./app-5fxKLAzS.js";
|
|
3
|
+
import { useCoreStore as Pt, useI18n as Ge, useCustomAttributes as Bt, EMPTY_RULE as jn, isEmptyMongoQuery as Yn, isEmptyRule as Xn } from "@feedmepos/mf-common";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { u as kn, I as
|
|
5
|
+
import { u as kn, I as Wt, z as yt } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
|
|
6
6
|
import { FmButtonVariant as Fe, components as qn } from "@feedmepos/ui-library";
|
|
7
|
-
const Jn = /* @__PURE__ */
|
|
7
|
+
const Jn = /* @__PURE__ */ ie({
|
|
8
8
|
__name: "FormColumn",
|
|
9
9
|
props: {
|
|
10
10
|
shrinkable: { type: Boolean }
|
|
11
11
|
},
|
|
12
12
|
setup(e) {
|
|
13
|
-
return (t, n) => (
|
|
14
|
-
class: yn(["flex-1 flex flex-col space-y-24", { "min-h-0":
|
|
13
|
+
return (t, n) => (W(), j("div", {
|
|
14
|
+
class: yn(["flex-1 flex flex-col space-y-24", { "min-h-0": t.shrinkable }])
|
|
15
15
|
}, [
|
|
16
16
|
Qe(t.$slots, "default")
|
|
17
17
|
], 2));
|
|
@@ -22,7 +22,7 @@ const Jn = /* @__PURE__ */ ce({
|
|
|
22
22
|
}, Zn = { class: "space-y-4" }, zn = { class: "fm-typo-en-title-sm-600" }, er = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
25
|
-
},
|
|
25
|
+
}, Bs = /* @__PURE__ */ ie({
|
|
26
26
|
__name: "FormSection",
|
|
27
27
|
props: {
|
|
28
28
|
title: {},
|
|
@@ -30,17 +30,17 @@ const Jn = /* @__PURE__ */ ce({
|
|
|
30
30
|
shrinkable: { type: Boolean }
|
|
31
31
|
},
|
|
32
32
|
setup(e) {
|
|
33
|
-
return (t, n) => (
|
|
34
|
-
class: yn(["flex flex-col space-y-16", { "min-h-0":
|
|
33
|
+
return (t, n) => (W(), j("div", {
|
|
34
|
+
class: yn(["flex flex-col space-y-16", { "min-h-0": t.shrinkable }])
|
|
35
35
|
}, [
|
|
36
|
-
|
|
36
|
+
t.title ? (W(), j("div", Qn, [
|
|
37
37
|
V("div", Zn, [
|
|
38
|
-
V("p", zn, Z(
|
|
39
|
-
|
|
38
|
+
V("p", zn, Z(t.title), 1),
|
|
39
|
+
t.subTitle ? (W(), j("p", er, Z(t.subTitle), 1)) : we("", !0)
|
|
40
40
|
]),
|
|
41
41
|
Qe(t.$slots, "append-title")
|
|
42
42
|
])) : we("", !0),
|
|
43
|
-
Q(Jn, { shrinkable:
|
|
43
|
+
Q(Jn, { shrinkable: t.shrinkable }, {
|
|
44
44
|
default: ae(() => [
|
|
45
45
|
Qe(t.$slots, "default")
|
|
46
46
|
]),
|
|
@@ -54,9 +54,9 @@ const Jn = /* @__PURE__ */ ce({
|
|
|
54
54
|
* (c) 2024 kazuya kawaguchi
|
|
55
55
|
* Released under the MIT License.
|
|
56
56
|
*/
|
|
57
|
-
const Kt = typeof window < "u", ke = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), tr = (e, t, n) => nr({ l: e, k: t, s: n }), nr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), rr = (e) => wt(e) === "[object Date]", ze = (e) => wt(e) === "[object RegExp]", tt = (e) => M(e) && Object.keys(e).length === 0, te = Object.assign, ar = Object.create,
|
|
57
|
+
const Kt = typeof window < "u", ke = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), tr = (e, t, n) => nr({ l: e, k: t, s: n }), nr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), rr = (e) => wt(e) === "[object Date]", ze = (e) => wt(e) === "[object RegExp]", tt = (e) => M(e) && Object.keys(e).length === 0, te = Object.assign, ar = Object.create, H = (e = null) => ar(e);
|
|
58
58
|
let jt;
|
|
59
|
-
const he = () => jt || (jt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global :
|
|
59
|
+
const he = () => jt || (jt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : H());
|
|
60
60
|
function Yt(e) {
|
|
61
61
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
62
62
|
}
|
|
@@ -79,7 +79,7 @@ function Je(e, t) {
|
|
|
79
79
|
for (; n.length; ) {
|
|
80
80
|
const { src: r, des: a } = n.pop();
|
|
81
81
|
Object.keys(r).forEach((s) => {
|
|
82
|
-
s !== "__proto__" && (U(r[s]) && !U(a[s]) && (a[s] = Array.isArray(r[s]) ? [] :
|
|
82
|
+
s !== "__proto__" && (U(r[s]) && !U(a[s]) && (a[s] = Array.isArray(r[s]) ? [] : H()), Ye(a[s]) || Ye(r[s]) ? a[s] = r[s] : n.push({ src: r[s], des: a[s] }));
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -108,18 +108,18 @@ const $ = {
|
|
|
108
108
|
UNEXPECTED_LEXICAL_ANALYSIS: 14
|
|
109
109
|
}, cr = 17;
|
|
110
110
|
function nt(e, t, n = {}) {
|
|
111
|
-
const { domain: r, messages: a, args: s } = n, u = e,
|
|
112
|
-
return
|
|
111
|
+
const { domain: r, messages: a, args: s } = n, u = e, _ = new SyntaxError(String(u));
|
|
112
|
+
return _.code = e, t && (_.location = t), _.domain = r, _;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function _r(e) {
|
|
115
115
|
throw e;
|
|
116
116
|
}
|
|
117
|
-
const _e = " ",
|
|
117
|
+
const _e = " ", mr = "\r", ne = `
|
|
118
118
|
`, pr = "\u2028", dr = "\u2029";
|
|
119
119
|
function fr(e) {
|
|
120
120
|
const t = e;
|
|
121
121
|
let n = 0, r = 1, a = 1, s = 0;
|
|
122
|
-
const u = (
|
|
122
|
+
const u = (m) => t[m] === mr && t[m + 1] === ne, _ = (m) => t[m] === ne, c = (m) => t[m] === dr, E = (m) => t[m] === pr, k = (m) => u(m) || _(m) || c(m) || E(m), R = () => n, g = () => r, p = () => a, L = () => s, T = (m) => u(m) || c(m) || E(m) ? ne : t[m], y = () => T(n), i = () => T(n + s);
|
|
123
123
|
function b() {
|
|
124
124
|
return s = 0, k(n) && (r++, a = 0), u(n) && n++, n++, a++, t[n];
|
|
125
125
|
}
|
|
@@ -129,12 +129,12 @@ function fr(e) {
|
|
|
129
129
|
function f() {
|
|
130
130
|
n = 0, r = 1, a = 1, s = 0;
|
|
131
131
|
}
|
|
132
|
-
function A(
|
|
133
|
-
s =
|
|
132
|
+
function A(m = 0) {
|
|
133
|
+
s = m;
|
|
134
134
|
}
|
|
135
135
|
function v() {
|
|
136
|
-
const
|
|
137
|
-
for (;
|
|
136
|
+
const m = n + s;
|
|
137
|
+
for (; m !== n; )
|
|
138
138
|
b();
|
|
139
139
|
s = 0;
|
|
140
140
|
}
|
|
@@ -155,13 +155,13 @@ function fr(e) {
|
|
|
155
155
|
}
|
|
156
156
|
const Ee = void 0, gr = ".", Xt = "'", Er = "tokenizer";
|
|
157
157
|
function vr(e, t = {}) {
|
|
158
|
-
const n = t.location !== !1, r = fr(e), a = () => r.index(), s = () => ir(r.line(), r.column(), r.index()), u = s(),
|
|
158
|
+
const n = t.location !== !1, r = fr(e), a = () => r.index(), s = () => ir(r.line(), r.column(), r.index()), u = s(), _ = a(), c = {
|
|
159
159
|
currentType: 13,
|
|
160
|
-
offset:
|
|
160
|
+
offset: _,
|
|
161
161
|
startLoc: u,
|
|
162
162
|
endLoc: u,
|
|
163
163
|
lastType: 13,
|
|
164
|
-
lastOffset:
|
|
164
|
+
lastOffset: _,
|
|
165
165
|
lastStartLoc: u,
|
|
166
166
|
lastEndLoc: u,
|
|
167
167
|
braceNest: 0,
|
|
@@ -247,7 +247,7 @@ function vr(e, t = {}) {
|
|
|
247
247
|
const S = o.currentPeek() === ".";
|
|
248
248
|
return o.resetPeek(), S;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function m(o, l) {
|
|
251
251
|
const { currentType: h } = l;
|
|
252
252
|
if (h !== 8)
|
|
253
253
|
return !1;
|
|
@@ -273,7 +273,7 @@ function vr(e, t = {}) {
|
|
|
273
273
|
}, X = S();
|
|
274
274
|
return o.resetPeek(), X;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function B(o) {
|
|
277
277
|
T(o);
|
|
278
278
|
const l = o.currentPeek() === "|";
|
|
279
279
|
return o.resetPeek(), l;
|
|
@@ -319,16 +319,16 @@ function vr(e, t = {}) {
|
|
|
319
319
|
function ut(o) {
|
|
320
320
|
return P(o, lt);
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function ce(o) {
|
|
323
323
|
const l = o.charCodeAt(0);
|
|
324
324
|
return l >= 48 && l <= 57 || // 0-9
|
|
325
325
|
l >= 65 && l <= 70 || // A-F
|
|
326
326
|
l >= 97 && l <= 102;
|
|
327
327
|
}
|
|
328
|
-
function We(o) {
|
|
329
|
-
return P(o, me);
|
|
330
|
-
}
|
|
331
328
|
function Be(o) {
|
|
329
|
+
return P(o, ce);
|
|
330
|
+
}
|
|
331
|
+
function We(o) {
|
|
332
332
|
let l = "", h = "";
|
|
333
333
|
for (; l = ut(o); )
|
|
334
334
|
h += l;
|
|
@@ -344,7 +344,7 @@ function vr(e, t = {}) {
|
|
|
344
344
|
if (w(o))
|
|
345
345
|
l += h, o.next();
|
|
346
346
|
else {
|
|
347
|
-
if (
|
|
347
|
+
if (B(o))
|
|
348
348
|
break;
|
|
349
349
|
l += h, o.next();
|
|
350
350
|
}
|
|
@@ -360,18 +360,18 @@ function vr(e, t = {}) {
|
|
|
360
360
|
h += l;
|
|
361
361
|
return o.currentChar() === Ee && R($.UNTERMINATED_CLOSING_BRACE, s(), 0), h;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function _t(o) {
|
|
364
364
|
y(o);
|
|
365
365
|
let l = "";
|
|
366
|
-
return o.currentChar() === "-" ? (o.next(), l += `-${
|
|
366
|
+
return o.currentChar() === "-" ? (o.next(), l += `-${We(o)}`) : l += We(o), o.currentChar() === Ee && R($.UNTERMINATED_CLOSING_BRACE, s(), 0), l;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Gt(o) {
|
|
369
369
|
return o !== Xt && o !== ne;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function mt(o) {
|
|
372
372
|
y(o), L(o, "'");
|
|
373
373
|
let l = "", h = "";
|
|
374
|
-
for (; l = P(o,
|
|
374
|
+
for (; l = P(o, Gt); )
|
|
375
375
|
l === "\\" ? h += pt(o) : h += l;
|
|
376
376
|
const S = o.currentChar();
|
|
377
377
|
return S === ne || S === Ee ? (R($.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), S === ne && (o.next(), L(o, "'")), h) : (L(o, "'"), h);
|
|
@@ -394,7 +394,7 @@ function vr(e, t = {}) {
|
|
|
394
394
|
L(o, l);
|
|
395
395
|
let S = "";
|
|
396
396
|
for (let X = 0; X < h; X++) {
|
|
397
|
-
const F =
|
|
397
|
+
const F = Be(o);
|
|
398
398
|
if (!F) {
|
|
399
399
|
R($.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${l}${S}${o.currentChar()}`);
|
|
400
400
|
break;
|
|
@@ -456,16 +456,16 @@ function vr(e, t = {}) {
|
|
|
456
456
|
return l.braceNest > 0 && R($.UNTERMINATED_CLOSING_BRACE, s(), 0), h = Ne(o, l) || p(l), l.braceNest = 0, h;
|
|
457
457
|
default: {
|
|
458
458
|
let X = !0, F = !0, d = !0;
|
|
459
|
-
if (
|
|
459
|
+
if (B(o))
|
|
460
460
|
return l.braceNest > 0 && R($.UNTERMINATED_CLOSING_BRACE, s(), 0), h = g(l, 1, Se(o)), l.braceNest = 0, l.inLinked = !1, h;
|
|
461
461
|
if (l.braceNest > 0 && (l.currentType === 4 || l.currentType === 5 || l.currentType === 6))
|
|
462
462
|
return R($.UNTERMINATED_CLOSING_BRACE, s(), 0), l.braceNest = 0, De(o, l);
|
|
463
463
|
if (X = N(o, l))
|
|
464
464
|
return h = g(l, 4, ct(o)), y(o), h;
|
|
465
465
|
if (F = f(o, l))
|
|
466
|
-
return h = g(l, 5,
|
|
466
|
+
return h = g(l, 5, _t(o)), y(o), h;
|
|
467
467
|
if (d = A(o, l))
|
|
468
|
-
return h = g(l, 6,
|
|
468
|
+
return h = g(l, 6, mt(o)), y(o), h;
|
|
469
469
|
if (!X && !F && !d)
|
|
470
470
|
return h = g(l, 12, ft(o)), R($.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, h.value), y(o), h;
|
|
471
471
|
break;
|
|
@@ -500,7 +500,7 @@ function vr(e, t = {}) {
|
|
|
500
500
|
/* TokenChars.LinkedDelimiter */
|
|
501
501
|
);
|
|
502
502
|
default:
|
|
503
|
-
return
|
|
503
|
+
return B(o) ? (S = g(l, 1, Se(o)), l.braceNest = 0, l.inLinked = !1, S) : v(o, l) || C(o, l) ? (y(o), Ne(o, l)) : m(o, l) ? (y(o), g(l, 11, gt(o))) : D(o, l) ? (y(o), X === "{" ? Ie(o, l) || S : g(l, 10, Et(o))) : (h === 7 && R($.INVALID_LINKED_FORMAT, s(), 0), l.braceNest = 0, l.inLinked = !1, De(o, l));
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
function De(o, l) {
|
|
@@ -525,7 +525,7 @@ function vr(e, t = {}) {
|
|
|
525
525
|
case "@":
|
|
526
526
|
return Ne(o, l) || p(l);
|
|
527
527
|
default: {
|
|
528
|
-
if (
|
|
528
|
+
if (B(o))
|
|
529
529
|
return h = g(l, 1, Se(o)), l.braceNest = 0, l.inLinked = !1, h;
|
|
530
530
|
if (w(o))
|
|
531
531
|
return g(l, 0, it(o));
|
|
@@ -568,7 +568,7 @@ function kr(e = {}) {
|
|
|
568
568
|
function r(i, b, N, f, ...A) {
|
|
569
569
|
const v = i.currentPosition();
|
|
570
570
|
if (v.offset += f, v.column += f, n) {
|
|
571
|
-
const
|
|
571
|
+
const m = t ? Tt(N, v) : null, C = nt(b, m, {
|
|
572
572
|
domain: yr,
|
|
573
573
|
args: A
|
|
574
574
|
});
|
|
@@ -586,7 +586,7 @@ function kr(e = {}) {
|
|
|
586
586
|
const N = i.context(), f = a(3, N.offset, N.startLoc);
|
|
587
587
|
return f.value = b, s(f, i.currentOffset(), i.currentPosition()), f;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function _(i, b) {
|
|
590
590
|
const N = i.context(), { lastOffset: f, lastStartLoc: A } = N, v = a(5, f, A);
|
|
591
591
|
return v.index = parseInt(b, 10), i.nextToken(), s(v, i.currentOffset(), i.currentPosition()), v;
|
|
592
592
|
}
|
|
@@ -626,7 +626,7 @@ function kr(e = {}) {
|
|
|
626
626
|
f.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(f)), N.key = c(i, f.value || "");
|
|
627
627
|
break;
|
|
628
628
|
case 5:
|
|
629
|
-
f.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(f)), N.key =
|
|
629
|
+
f.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(f)), N.key = _(i, f.value || "");
|
|
630
630
|
break;
|
|
631
631
|
case 6:
|
|
632
632
|
f.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(f)), N.key = E(i, f.value || "");
|
|
@@ -655,7 +655,7 @@ function kr(e = {}) {
|
|
|
655
655
|
D.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(D)), A.items.push(u(i, D.value || ""));
|
|
656
656
|
break;
|
|
657
657
|
case 5:
|
|
658
|
-
D.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(D)), A.items.push(
|
|
658
|
+
D.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(D)), A.items.push(_(i, D.value || ""));
|
|
659
659
|
break;
|
|
660
660
|
case 4:
|
|
661
661
|
D.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(D)), A.items.push(c(i, D.value || ""));
|
|
@@ -664,25 +664,25 @@ function kr(e = {}) {
|
|
|
664
664
|
D.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(D)), A.items.push(E(i, D.value || ""));
|
|
665
665
|
break;
|
|
666
666
|
case 7: {
|
|
667
|
-
const
|
|
668
|
-
A.items.push(
|
|
667
|
+
const B = g(i);
|
|
668
|
+
A.items.push(B.node), v = B.nextConsumeToken || null;
|
|
669
669
|
break;
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
} while (b.currentType !== 13 && b.currentType !== 1);
|
|
673
|
-
const
|
|
674
|
-
return s(A,
|
|
673
|
+
const m = b.currentType === 1 ? b.lastOffset : i.currentOffset(), C = b.currentType === 1 ? b.lastEndLoc : i.currentPosition();
|
|
674
|
+
return s(A, m, C), A;
|
|
675
675
|
}
|
|
676
676
|
function L(i, b, N, f) {
|
|
677
677
|
const A = i.context();
|
|
678
678
|
let v = f.items.length === 0;
|
|
679
|
-
const
|
|
680
|
-
|
|
679
|
+
const m = a(1, b, N);
|
|
680
|
+
m.cases = [], m.cases.push(f);
|
|
681
681
|
do {
|
|
682
682
|
const C = p(i);
|
|
683
|
-
v || (v = C.items.length === 0),
|
|
683
|
+
v || (v = C.items.length === 0), m.cases.push(C);
|
|
684
684
|
} while (A.currentType !== 13);
|
|
685
|
-
return v && r(i, $.MUST_HAVE_MESSAGES_IN_PLURAL, N, 0), s(
|
|
685
|
+
return v && r(i, $.MUST_HAVE_MESSAGES_IN_PLURAL, N, 0), s(m, i.currentOffset(), i.currentPosition()), m;
|
|
686
686
|
}
|
|
687
687
|
function T(i) {
|
|
688
688
|
const b = i.context(), { offset: N, startLoc: f } = b, A = p(i);
|
|
@@ -846,7 +846,7 @@ function Rr(e, t) {
|
|
|
846
846
|
indentLevel: 0
|
|
847
847
|
};
|
|
848
848
|
s && e.loc && (u.source = e.loc.source);
|
|
849
|
-
const
|
|
849
|
+
const _ = () => u;
|
|
850
850
|
function c(T, y) {
|
|
851
851
|
u.code += T;
|
|
852
852
|
}
|
|
@@ -866,7 +866,7 @@ function Rr(e, t) {
|
|
|
866
866
|
E(u.indentLevel);
|
|
867
867
|
}
|
|
868
868
|
return {
|
|
869
|
-
context:
|
|
869
|
+
context: _,
|
|
870
870
|
push: c,
|
|
871
871
|
indent: k,
|
|
872
872
|
deindent: R,
|
|
@@ -960,13 +960,13 @@ const Sr = (e, t = {}) => {
|
|
|
960
960
|
const n = O(t.mode) ? t.mode : "normal", r = O(t.filename) ? t.filename : "message.intl";
|
|
961
961
|
t.sourceMap;
|
|
962
962
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
963
|
-
`, s = t.needIndent ? t.needIndent : n !== "arrow", u = e.helpers || [],
|
|
963
|
+
`, s = t.needIndent ? t.needIndent : n !== "arrow", u = e.helpers || [], _ = Rr(e, {
|
|
964
964
|
filename: r,
|
|
965
965
|
breakLineCode: a,
|
|
966
966
|
needIndent: s
|
|
967
967
|
});
|
|
968
|
-
|
|
969
|
-
const { code: c, map: E } =
|
|
968
|
+
_.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), _.indent(s), u.length > 0 && (_.push(`const { ${Ft(u.map((k) => `${k}: _${k}`), ", ")} } = ctx`), _.newline()), _.push("return "), Le(_, e), _.deindent(s), _.push("}"), delete e.helpers;
|
|
969
|
+
const { code: c, map: E } = _.context();
|
|
970
970
|
return {
|
|
971
971
|
ast: e,
|
|
972
972
|
code: c,
|
|
@@ -975,8 +975,8 @@ const Sr = (e, t = {}) => {
|
|
|
975
975
|
};
|
|
976
976
|
};
|
|
977
977
|
function Dr(e, t = {}) {
|
|
978
|
-
const n = te({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize,
|
|
979
|
-
return r ? (s && Nr(
|
|
978
|
+
const n = te({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, _ = kr(n).parse(e);
|
|
979
|
+
return r ? (s && Nr(_), a && Ae(_), { ast: _, code: "" }) : (Ir(_, n), Sr(_, n));
|
|
980
980
|
}
|
|
981
981
|
var Pr = { env: { NODE_ENV: "production" } };
|
|
982
982
|
function wr() {
|
|
@@ -994,9 +994,9 @@ function Fr(e, t) {
|
|
|
994
994
|
);
|
|
995
995
|
if (Ut(n) === 1) {
|
|
996
996
|
const s = $r(n);
|
|
997
|
-
return e.plural(s.reduce((u,
|
|
997
|
+
return e.plural(s.reduce((u, _) => [
|
|
998
998
|
...u,
|
|
999
|
-
Qt(e,
|
|
999
|
+
Qt(e, _)
|
|
1000
1000
|
], []));
|
|
1001
1001
|
} else
|
|
1002
1002
|
return Qt(e, n);
|
|
@@ -1010,21 +1010,21 @@ function $r(e) {
|
|
|
1010
1010
|
return ve(e, Vr, []);
|
|
1011
1011
|
}
|
|
1012
1012
|
function Qt(e, t) {
|
|
1013
|
-
const n =
|
|
1013
|
+
const n = Gr(t);
|
|
1014
1014
|
if (n != null)
|
|
1015
1015
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1016
1016
|
{
|
|
1017
|
-
const r =
|
|
1017
|
+
const r = Br(t).reduce((a, s) => [...a, It(e, s)], []);
|
|
1018
1018
|
return e.normalize(r);
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
|
-
const
|
|
1022
|
-
function
|
|
1023
|
-
return ve(e,
|
|
1021
|
+
const Hr = ["s", "static"];
|
|
1022
|
+
function Gr(e) {
|
|
1023
|
+
return ve(e, Hr);
|
|
1024
1024
|
}
|
|
1025
|
-
const
|
|
1026
|
-
function
|
|
1027
|
-
return ve(e,
|
|
1025
|
+
const xr = ["i", "items"];
|
|
1026
|
+
function Br(e) {
|
|
1027
|
+
return ve(e, xr, []);
|
|
1028
1028
|
}
|
|
1029
1029
|
function It(e, t) {
|
|
1030
1030
|
const n = Ut(t);
|
|
@@ -1061,9 +1061,9 @@ function It(e, t) {
|
|
|
1061
1061
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
|
-
const
|
|
1064
|
+
const Wr = ["t", "type"];
|
|
1065
1065
|
function Ut(e) {
|
|
1066
|
-
return ve(e,
|
|
1066
|
+
return ve(e, Wr);
|
|
1067
1067
|
}
|
|
1068
1068
|
const Kr = ["v", "value"];
|
|
1069
1069
|
function Xe(e, t) {
|
|
@@ -1098,13 +1098,13 @@ function Ue(e) {
|
|
|
1098
1098
|
return new Error(`unhandled node type: ${e}`);
|
|
1099
1099
|
}
|
|
1100
1100
|
const Jr = (e) => e;
|
|
1101
|
-
let qe =
|
|
1101
|
+
let qe = H();
|
|
1102
1102
|
function Oe(e) {
|
|
1103
1103
|
return U(e) && Ut(e) === 0 && (le(e, "b") || le(e, "body"));
|
|
1104
1104
|
}
|
|
1105
1105
|
function Qr(e, t = {}) {
|
|
1106
1106
|
let n = !1;
|
|
1107
|
-
const r = t.onError ||
|
|
1107
|
+
const r = t.onError || _r;
|
|
1108
1108
|
return t.onError = (a) => {
|
|
1109
1109
|
n = !0, r(a);
|
|
1110
1110
|
}, { ...Dr(e, t), detectError: n };
|
|
@@ -1120,8 +1120,8 @@ function Zr(e, t) {
|
|
|
1120
1120
|
...t,
|
|
1121
1121
|
location: Pr.env.NODE_ENV !== "production",
|
|
1122
1122
|
jit: !0
|
|
1123
|
-
}),
|
|
1124
|
-
return u ?
|
|
1123
|
+
}), _ = bt(s);
|
|
1124
|
+
return u ? _ : qe[r] = _;
|
|
1125
1125
|
} else {
|
|
1126
1126
|
const n = e.cacheKey;
|
|
1127
1127
|
if (n) {
|
|
@@ -1147,7 +1147,7 @@ const ta = /* @__PURE__ */ na("function:translate");
|
|
|
1147
1147
|
function na(e) {
|
|
1148
1148
|
return (t) => Ve && Ve.emit(e, t);
|
|
1149
1149
|
}
|
|
1150
|
-
const
|
|
1150
|
+
const me = {
|
|
1151
1151
|
INVALID_ARGUMENT: cr,
|
|
1152
1152
|
// 17
|
|
1153
1153
|
INVALID_DATE_ARGUMENT: 18,
|
|
@@ -1156,7 +1156,7 @@ const pe = {
|
|
|
1156
1156
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1157
1157
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1158
1158
|
}, ra = 24;
|
|
1159
|
-
function
|
|
1159
|
+
function pe(e) {
|
|
1160
1160
|
return nt(e, null, void 0);
|
|
1161
1161
|
}
|
|
1162
1162
|
function Vt(e, t) {
|
|
@@ -1172,12 +1172,12 @@ function Zt(e) {
|
|
|
1172
1172
|
if (e.constructor.name === "Function") {
|
|
1173
1173
|
const t = e();
|
|
1174
1174
|
if (or(t))
|
|
1175
|
-
throw
|
|
1175
|
+
throw pe(me.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1176
1176
|
return ht = t;
|
|
1177
1177
|
} else
|
|
1178
|
-
throw
|
|
1178
|
+
throw pe(me.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1179
1179
|
} else
|
|
1180
|
-
throw
|
|
1180
|
+
throw pe(me.NOT_SUPPORT_LOCALE_TYPE);
|
|
1181
1181
|
}
|
|
1182
1182
|
function aa(e, t, n) {
|
|
1183
1183
|
return [.../* @__PURE__ */ new Set([
|
|
@@ -1194,8 +1194,8 @@ function In(e, t, n) {
|
|
|
1194
1194
|
let u = [n];
|
|
1195
1195
|
for (; z(u); )
|
|
1196
1196
|
u = zt(s, u, t);
|
|
1197
|
-
const
|
|
1198
|
-
u = O(
|
|
1197
|
+
const _ = z(t) || !M(t) ? t : t.default ? t.default : null;
|
|
1198
|
+
u = O(_) ? [_] : _, z(u) && zt(s, u, !1), a.__localeChainCache.set(r, s);
|
|
1199
1199
|
}
|
|
1200
1200
|
return s;
|
|
1201
1201
|
}
|
|
@@ -1431,19 +1431,19 @@ function ca(e) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
return "i";
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function _a(e) {
|
|
1435
1435
|
const t = e.trim();
|
|
1436
1436
|
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ua(t) ? ia(t) : "*" + t;
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function ma(e) {
|
|
1439
1439
|
const t = [];
|
|
1440
|
-
let n = -1, r = 0, a = 0, s, u,
|
|
1440
|
+
let n = -1, r = 0, a = 0, s, u, _, c, E, k, R;
|
|
1441
1441
|
const g = [];
|
|
1442
1442
|
g[
|
|
1443
1443
|
0
|
|
1444
1444
|
/* Actions.APPEND */
|
|
1445
1445
|
] = () => {
|
|
1446
|
-
u === void 0 ? u =
|
|
1446
|
+
u === void 0 ? u = _ : u += _;
|
|
1447
1447
|
}, g[
|
|
1448
1448
|
1
|
|
1449
1449
|
/* Actions.PUSH */
|
|
@@ -1467,7 +1467,7 @@ function _a(e) {
|
|
|
1467
1467
|
/* Actions.APPEND */
|
|
1468
1468
|
]();
|
|
1469
1469
|
else {
|
|
1470
|
-
if (a = 0, u === void 0 || (u =
|
|
1470
|
+
if (a = 0, u === void 0 || (u = _a(u), u === !1))
|
|
1471
1471
|
return !1;
|
|
1472
1472
|
g[
|
|
1473
1473
|
1
|
|
@@ -1478,14 +1478,14 @@ function _a(e) {
|
|
|
1478
1478
|
function p() {
|
|
1479
1479
|
const L = e[n + 1];
|
|
1480
1480
|
if (r === 5 && L === "'" || r === 6 && L === '"')
|
|
1481
|
-
return n++,
|
|
1481
|
+
return n++, _ = "\\" + L, g[
|
|
1482
1482
|
0
|
|
1483
1483
|
/* Actions.APPEND */
|
|
1484
1484
|
](), !0;
|
|
1485
1485
|
}
|
|
1486
1486
|
for (; r !== null; )
|
|
1487
1487
|
if (n++, s = e[n], !(s === "\\" && p())) {
|
|
1488
|
-
if (c = ca(s), R = ye[r], E = R[c] || R.l || 8, E === 8 || (r = E[0], E[1] !== void 0 && (k = g[E[1]], k && (
|
|
1488
|
+
if (c = ca(s), R = ye[r], E = R[c] || R.l || 8, E === 8 || (r = E[0], E[1] !== void 0 && (k = g[E[1]], k && (_ = s, k() === !1))))
|
|
1489
1489
|
return;
|
|
1490
1490
|
if (r === 7)
|
|
1491
1491
|
return t;
|
|
@@ -1499,7 +1499,7 @@ function da(e, t) {
|
|
|
1499
1499
|
if (!U(e))
|
|
1500
1500
|
return null;
|
|
1501
1501
|
let n = en.get(t);
|
|
1502
|
-
if (n || (n =
|
|
1502
|
+
if (n || (n = ma(t), n && en.set(t, n)), !n)
|
|
1503
1503
|
return null;
|
|
1504
1504
|
const r = n.length;
|
|
1505
1505
|
let a = e, s = 0;
|
|
@@ -1541,7 +1541,7 @@ const rn = (e) => {
|
|
|
1541
1541
|
}, ka = () => On;
|
|
1542
1542
|
let an = 0;
|
|
1543
1543
|
function Ta(e = {}) {
|
|
1544
|
-
const t = K(e.onWarn) ? e.onWarn : ur, n = O(e.version) ? e.version : fa, r = O(e.locale) || K(e.locale) ? e.locale : et, a = K(r) ? et : r, s = z(e.fallbackLocale) || M(e.fallbackLocale) || O(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, u = M(e.messages) ? e.messages : kt(a),
|
|
1544
|
+
const t = K(e.onWarn) ? e.onWarn : ur, n = O(e.version) ? e.version : fa, r = O(e.locale) || K(e.locale) ? e.locale : et, a = K(r) ? et : r, s = z(e.fallbackLocale) || M(e.fallbackLocale) || O(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, u = M(e.messages) ? e.messages : kt(a), _ = M(e.datetimeFormats) ? e.datetimeFormats : kt(a), c = M(e.numberFormats) ? e.numberFormats : kt(a), E = te(H(), e.modifiers, ga()), k = e.pluralRules || H(), R = K(e.missing) ? e.missing : null, g = J(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, p = J(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0, L = !!e.fallbackFormat, T = !!e.unresolving, y = K(e.postTranslation) ? e.postTranslation : null, i = M(e.processor) ? e.processor : null, b = J(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, f = K(e.messageCompiler) ? e.messageCompiler : Nn, A = K(e.messageResolver) ? e.messageResolver : Rn || pa, v = K(e.localeFallbacker) ? e.localeFallbacker : An || aa, m = U(e.fallbackContext) ? e.fallbackContext : void 0, C = e, D = U(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), B = U(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), w = U(C.__meta) ? C.__meta : {};
|
|
1545
1545
|
an++;
|
|
1546
1546
|
const P = {
|
|
1547
1547
|
version: n,
|
|
@@ -1563,18 +1563,18 @@ function Ta(e = {}) {
|
|
|
1563
1563
|
messageCompiler: f,
|
|
1564
1564
|
messageResolver: A,
|
|
1565
1565
|
localeFallbacker: v,
|
|
1566
|
-
fallbackContext:
|
|
1566
|
+
fallbackContext: m,
|
|
1567
1567
|
onWarn: t,
|
|
1568
1568
|
__meta: w
|
|
1569
1569
|
};
|
|
1570
|
-
return P.datetimeFormats =
|
|
1570
|
+
return P.datetimeFormats = _, P.numberFormats = c, P.__datetimeFormatters = D, P.__numberFormatters = B, __INTLIFY_PROD_DEVTOOLS__ && ea(P, n, w), P;
|
|
1571
1571
|
}
|
|
1572
|
-
const kt = (e) => ({ [e]:
|
|
1572
|
+
const kt = (e) => ({ [e]: H() });
|
|
1573
1573
|
function $t(e, t, n, r, a) {
|
|
1574
1574
|
const { missing: s, onWarn: u } = e;
|
|
1575
1575
|
if (s !== null) {
|
|
1576
|
-
const
|
|
1577
|
-
return O(
|
|
1576
|
+
const _ = s(e, n, t, a);
|
|
1577
|
+
return O(_) ? _ : t;
|
|
1578
1578
|
} else
|
|
1579
1579
|
return t;
|
|
1580
1580
|
}
|
|
@@ -1595,7 +1595,7 @@ function Na(e, t) {
|
|
|
1595
1595
|
return !1;
|
|
1596
1596
|
}
|
|
1597
1597
|
function sn(e, ...t) {
|
|
1598
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: u } = e, { __datetimeFormatters:
|
|
1598
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: u } = e, { __datetimeFormatters: _ } = e, [c, E, k, R] = Nt(...t), g = J(k.missingWarn) ? k.missingWarn : e.missingWarn;
|
|
1599
1599
|
J(k.fallbackWarn) ? k.fallbackWarn : e.fallbackWarn;
|
|
1600
1600
|
const p = !!k.part, L = Vt(e, k), T = u(
|
|
1601
1601
|
e,
|
|
@@ -1613,8 +1613,8 @@ function sn(e, ...t) {
|
|
|
1613
1613
|
return r ? rt : c;
|
|
1614
1614
|
let f = `${i}__${c}`;
|
|
1615
1615
|
tt(R) || (f = `${f}__${JSON.stringify(R)}`);
|
|
1616
|
-
let A =
|
|
1617
|
-
return A || (A = new Intl.DateTimeFormat(i, te({}, b, R)),
|
|
1616
|
+
let A = _.get(f);
|
|
1617
|
+
return A || (A = new Intl.DateTimeFormat(i, te({}, b, R)), _.set(f, A)), p ? A.formatToParts(E) : A.format(E);
|
|
1618
1618
|
}
|
|
1619
1619
|
const Cn = [
|
|
1620
1620
|
"localeMatcher",
|
|
@@ -1639,30 +1639,30 @@ const Cn = [
|
|
|
1639
1639
|
"fractionalSecondDigits"
|
|
1640
1640
|
];
|
|
1641
1641
|
function Nt(...e) {
|
|
1642
|
-
const [t, n, r, a] = e, s =
|
|
1643
|
-
let u =
|
|
1642
|
+
const [t, n, r, a] = e, s = H();
|
|
1643
|
+
let u = H(), _;
|
|
1644
1644
|
if (O(t)) {
|
|
1645
1645
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1646
1646
|
if (!c)
|
|
1647
|
-
throw
|
|
1647
|
+
throw pe(me.INVALID_ISO_DATE_ARGUMENT);
|
|
1648
1648
|
const E = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
|
|
1649
|
-
|
|
1649
|
+
_ = new Date(E);
|
|
1650
1650
|
try {
|
|
1651
|
-
|
|
1651
|
+
_.toISOString();
|
|
1652
1652
|
} catch {
|
|
1653
|
-
throw
|
|
1653
|
+
throw pe(me.INVALID_ISO_DATE_ARGUMENT);
|
|
1654
1654
|
}
|
|
1655
1655
|
} else if (rr(t)) {
|
|
1656
1656
|
if (isNaN(t.getTime()))
|
|
1657
|
-
throw
|
|
1658
|
-
|
|
1657
|
+
throw pe(me.INVALID_DATE_ARGUMENT);
|
|
1658
|
+
_ = t;
|
|
1659
1659
|
} else if (ee(t))
|
|
1660
|
-
|
|
1660
|
+
_ = t;
|
|
1661
1661
|
else
|
|
1662
|
-
throw
|
|
1662
|
+
throw pe(me.INVALID_ARGUMENT);
|
|
1663
1663
|
return O(n) ? s.key = n : M(n) && Object.keys(n).forEach((c) => {
|
|
1664
1664
|
Cn.includes(c) ? u[c] = n[c] : s[c] = n[c];
|
|
1665
|
-
}), O(r) ? s.locale = r : M(r) && (u = r), M(a) && (u = a), [s.key || "",
|
|
1665
|
+
}), O(r) ? s.locale = r : M(r) && (u = r), M(a) && (u = a), [s.key || "", _, s, u];
|
|
1666
1666
|
}
|
|
1667
1667
|
function on(e, t, n) {
|
|
1668
1668
|
const r = e;
|
|
@@ -1672,7 +1672,7 @@ function on(e, t, n) {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
1674
|
function ln(e, ...t) {
|
|
1675
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: u } = e, { __numberFormatters:
|
|
1675
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: s, localeFallbacker: u } = e, { __numberFormatters: _ } = e, [c, E, k, R] = Rt(...t), g = J(k.missingWarn) ? k.missingWarn : e.missingWarn;
|
|
1676
1676
|
J(k.fallbackWarn) ? k.fallbackWarn : e.fallbackWarn;
|
|
1677
1677
|
const p = !!k.part, L = Vt(e, k), T = u(
|
|
1678
1678
|
e,
|
|
@@ -1690,8 +1690,8 @@ function ln(e, ...t) {
|
|
|
1690
1690
|
return r ? rt : c;
|
|
1691
1691
|
let f = `${i}__${c}`;
|
|
1692
1692
|
tt(R) || (f = `${f}__${JSON.stringify(R)}`);
|
|
1693
|
-
let A =
|
|
1694
|
-
return A || (A = new Intl.NumberFormat(i, te({}, b, R)),
|
|
1693
|
+
let A = _.get(f);
|
|
1694
|
+
return A || (A = new Intl.NumberFormat(i, te({}, b, R)), _.set(f, A)), p ? A.formatToParts(E) : A.format(E);
|
|
1695
1695
|
}
|
|
1696
1696
|
const Sn = [
|
|
1697
1697
|
"localeMatcher",
|
|
@@ -1716,14 +1716,14 @@ const Sn = [
|
|
|
1716
1716
|
"trailingZeroDisplay"
|
|
1717
1717
|
];
|
|
1718
1718
|
function Rt(...e) {
|
|
1719
|
-
const [t, n, r, a] = e, s =
|
|
1720
|
-
let u =
|
|
1719
|
+
const [t, n, r, a] = e, s = H();
|
|
1720
|
+
let u = H();
|
|
1721
1721
|
if (!ee(t))
|
|
1722
|
-
throw
|
|
1723
|
-
const
|
|
1722
|
+
throw pe(me.INVALID_ARGUMENT);
|
|
1723
|
+
const _ = t;
|
|
1724
1724
|
return O(n) ? s.key = n : M(n) && Object.keys(n).forEach((c) => {
|
|
1725
1725
|
Sn.includes(c) ? u[c] = n[c] : s[c] = n[c];
|
|
1726
|
-
}), O(r) ? s.locale = r : M(r) && (u = r), M(a) && (u = a), [s.key || "",
|
|
1726
|
+
}), O(r) ? s.locale = r : M(r) && (u = r), M(a) && (u = a), [s.key || "", _, s, u];
|
|
1727
1727
|
}
|
|
1728
1728
|
function un(e, t, n) {
|
|
1729
1729
|
const r = e;
|
|
@@ -1744,7 +1744,7 @@ function Da(e, t) {
|
|
|
1744
1744
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1745
1745
|
}
|
|
1746
1746
|
function Pa(e = {}) {
|
|
1747
|
-
const t = e.locale, n = Sa(e), r = U(e.pluralRules) && O(t) && K(e.pluralRules[t]) ? e.pluralRules[t] : cn, a = U(e.pluralRules) && O(t) && K(e.pluralRules[t]) ? cn : void 0, s = (i) => i[r(n, i.length, a)], u = e.list || [],
|
|
1747
|
+
const t = e.locale, n = Sa(e), r = U(e.pluralRules) && O(t) && K(e.pluralRules[t]) ? e.pluralRules[t] : cn, a = U(e.pluralRules) && O(t) && K(e.pluralRules[t]) ? cn : void 0, s = (i) => i[r(n, i.length, a)], u = e.list || [], _ = (i) => u[i], c = e.named || H();
|
|
1748
1748
|
ee(e.pluralIndex) && Da(n, c);
|
|
1749
1749
|
const E = (i) => c[i];
|
|
1750
1750
|
function k(i, b) {
|
|
@@ -1752,16 +1752,16 @@ function Pa(e = {}) {
|
|
|
1752
1752
|
return N || (e.parent ? e.parent.message(i) : Aa);
|
|
1753
1753
|
}
|
|
1754
1754
|
const R = (i) => e.modifiers ? e.modifiers[i] : Ra, g = M(e.processor) && K(e.processor.normalize) ? e.processor.normalize : Oa, p = M(e.processor) && K(e.processor.interpolate) ? e.processor.interpolate : Ca, L = M(e.processor) && O(e.processor.type) ? e.processor.type : La, y = {
|
|
1755
|
-
list:
|
|
1755
|
+
list: _,
|
|
1756
1756
|
named: E,
|
|
1757
1757
|
plural: s,
|
|
1758
1758
|
linked: (i, ...b) => {
|
|
1759
1759
|
const [N, f] = b;
|
|
1760
1760
|
let A = "text", v = "";
|
|
1761
1761
|
b.length === 1 ? U(N) ? (v = N.modifier || v, A = N.type || A) : O(N) && (v = N || v) : b.length === 2 && (O(N) && (v = N || v), O(f) && (A = f || A));
|
|
1762
|
-
const
|
|
1762
|
+
const m = k(i, !0)(y), C = (
|
|
1763
1763
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1764
|
-
A === "vnode" && z(
|
|
1764
|
+
A === "vnode" && z(m) && v ? m[0] : m
|
|
1765
1765
|
);
|
|
1766
1766
|
return v ? R(v)(C, A) : C;
|
|
1767
1767
|
},
|
|
@@ -1769,28 +1769,28 @@ function Pa(e = {}) {
|
|
|
1769
1769
|
type: L,
|
|
1770
1770
|
interpolate: p,
|
|
1771
1771
|
normalize: g,
|
|
1772
|
-
values: te(
|
|
1772
|
+
values: te(H(), u, c)
|
|
1773
1773
|
};
|
|
1774
1774
|
return y;
|
|
1775
1775
|
}
|
|
1776
|
-
const
|
|
1777
|
-
function
|
|
1778
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: u, messages:
|
|
1776
|
+
const _n = () => "", re = (e) => K(e);
|
|
1777
|
+
function mn(e, ...t) {
|
|
1778
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: u, messages: _ } = e, [c, E] = At(...t), k = J(E.missingWarn) ? E.missingWarn : e.missingWarn, R = J(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, g = J(E.escapeParameter) ? E.escapeParameter : e.escapeParameter, p = !!E.resolvedMessage, L = O(E.default) || J(E.default) ? J(E.default) ? s ? c : () => c : E.default : n ? s ? c : () => c : null, T = n || L != null && (O(L) || K(L)), y = Vt(e, E);
|
|
1779
1779
|
g && wa(E);
|
|
1780
1780
|
let [i, b, N] = p ? [
|
|
1781
1781
|
c,
|
|
1782
1782
|
y,
|
|
1783
|
-
|
|
1783
|
+
_[y] || H()
|
|
1784
1784
|
] : Dn(e, c, y, u, R, k), f = i, A = c;
|
|
1785
1785
|
if (!p && !(O(f) || Oe(f) || re(f)) && T && (f = L, A = f), !p && (!(O(f) || Oe(f) || re(f)) || !O(b)))
|
|
1786
1786
|
return a ? rt : c;
|
|
1787
1787
|
let v = !1;
|
|
1788
|
-
const
|
|
1788
|
+
const m = () => {
|
|
1789
1789
|
v = !0;
|
|
1790
|
-
}, C = re(f) ? f : Pn(e, c, b, f, A,
|
|
1790
|
+
}, C = re(f) ? f : Pn(e, c, b, f, A, m);
|
|
1791
1791
|
if (v)
|
|
1792
1792
|
return f;
|
|
1793
|
-
const D = Ua(e, b, N, E),
|
|
1793
|
+
const D = Ua(e, b, N, E), B = Pa(D), w = Fa(e, C, B), P = r ? r(w, c) : w;
|
|
1794
1794
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1795
1795
|
const Te = {
|
|
1796
1796
|
timestamp: Date.now(),
|
|
@@ -1809,10 +1809,10 @@ function wa(e) {
|
|
|
1809
1809
|
});
|
|
1810
1810
|
}
|
|
1811
1811
|
function Dn(e, t, n, r, a, s) {
|
|
1812
|
-
const { messages: u, onWarn:
|
|
1813
|
-
let R =
|
|
1812
|
+
const { messages: u, onWarn: _, messageResolver: c, localeFallbacker: E } = e, k = E(e, r, n);
|
|
1813
|
+
let R = H(), g, p = null;
|
|
1814
1814
|
const L = "translate";
|
|
1815
|
-
for (let T = 0; T < k.length && (g = k[T], R = u[g] ||
|
|
1815
|
+
for (let T = 0; T < k.length && (g = k[T], R = u[g] || H(), (p = c(R, t)) === null && (p = R[t]), !(O(p) || Oe(p) || re(p))); T++)
|
|
1816
1816
|
if (!Na(g, k)) {
|
|
1817
1817
|
const y = $t(
|
|
1818
1818
|
e,
|
|
@@ -1827,25 +1827,25 @@ function Dn(e, t, n, r, a, s) {
|
|
|
1827
1827
|
return [p, g, R];
|
|
1828
1828
|
}
|
|
1829
1829
|
function Pn(e, t, n, r, a, s) {
|
|
1830
|
-
const { messageCompiler: u, warnHtmlMessage:
|
|
1830
|
+
const { messageCompiler: u, warnHtmlMessage: _ } = e;
|
|
1831
1831
|
if (re(r)) {
|
|
1832
1832
|
const E = r;
|
|
1833
1833
|
return E.locale = E.locale || n, E.key = E.key || t, E;
|
|
1834
1834
|
}
|
|
1835
1835
|
if (u == null) {
|
|
1836
|
-
const E = (
|
|
1836
|
+
const E = () => r;
|
|
1837
1837
|
return E.locale = n, E.key = t, E;
|
|
1838
1838
|
}
|
|
1839
|
-
const c = u(r, Ma(e, n, a, r,
|
|
1839
|
+
const c = u(r, Ma(e, n, a, r, _, s));
|
|
1840
1840
|
return c.locale = n, c.key = t, c.source = r, c;
|
|
1841
1841
|
}
|
|
1842
1842
|
function Fa(e, t, n) {
|
|
1843
1843
|
return t(n);
|
|
1844
1844
|
}
|
|
1845
1845
|
function At(...e) {
|
|
1846
|
-
const [t, n, r] = e, a =
|
|
1846
|
+
const [t, n, r] = e, a = H();
|
|
1847
1847
|
if (!O(t) && !ee(t) && !re(t) && !Oe(t))
|
|
1848
|
-
throw
|
|
1848
|
+
throw pe(me.INVALID_ARGUMENT);
|
|
1849
1849
|
const s = ee(t) ? String(t) : (re(t), t);
|
|
1850
1850
|
return ee(n) ? a.plural = n : O(n) ? a.default = n : M(n) && !tt(n) ? a.named = n : z(n) && (a.list = n), ee(r) ? a.plural = r : O(r) ? a.default = r : M(r) && te(a, r), [s, a];
|
|
1851
1851
|
}
|
|
@@ -1861,7 +1861,7 @@ function Ma(e, t, n, r, a, s) {
|
|
|
1861
1861
|
};
|
|
1862
1862
|
}
|
|
1863
1863
|
function Ua(e, t, n, r) {
|
|
1864
|
-
const { modifiers: a, pluralRules: s, messageResolver: u, fallbackLocale:
|
|
1864
|
+
const { modifiers: a, pluralRules: s, messageResolver: u, fallbackLocale: _, fallbackWarn: c, missingWarn: E, fallbackContext: k } = e, g = {
|
|
1865
1865
|
locale: t,
|
|
1866
1866
|
modifiers: a,
|
|
1867
1867
|
pluralRules: s,
|
|
@@ -1873,7 +1873,7 @@ function Ua(e, t, n, r) {
|
|
|
1873
1873
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1874
1874
|
p,
|
|
1875
1875
|
t,
|
|
1876
|
-
|
|
1876
|
+
_,
|
|
1877
1877
|
c,
|
|
1878
1878
|
E
|
|
1879
1879
|
);
|
|
@@ -1884,16 +1884,16 @@ function Ua(e, t, n, r) {
|
|
|
1884
1884
|
const b = Pn(e, p, t, T, p, () => {
|
|
1885
1885
|
y = !0;
|
|
1886
1886
|
});
|
|
1887
|
-
return y ?
|
|
1888
|
-
} else return re(T) ? T :
|
|
1887
|
+
return y ? _n : b;
|
|
1888
|
+
} else return re(T) ? T : _n;
|
|
1889
1889
|
}
|
|
1890
1890
|
};
|
|
1891
1891
|
return e.processor && (g.processor = e.processor), r.list && (g.list = r.list), r.named && (g.named = r.named), ee(r.plural) && (g.pluralIndex = r.plural), g;
|
|
1892
1892
|
}
|
|
1893
1893
|
wr();
|
|
1894
|
-
var Va = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_1590059e-294e-447a-852c-ca8ae4b1827c", 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_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^2.1.8", 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", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_1590059e-294e-447a-852c-ca8ae4b1827c", 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-1.4.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.3.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", 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: "1830", ACTIONS_ORCHESTRATION_ID: "b5c02a0f-3973-4f82-8865-4634ab05e772.publish.deploy.__default", npm_package_dependencies__feedmepos_ui_library: "1.8.8", 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", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", 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: "20260201.15.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.1-rc.4", 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:11112", 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.12/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", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.6/x64", GITHUB_RUN_ID: "21756828268", VITE_REMY_BACKEND_URL: "https://remy-agent.feedmeapidev.com", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c9ed6b000e64b14aa8852d8b6a9e095abc06086e", 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_028f70a0-4802-462e-a3a2-ba83b07b0535", INVOCATION_ID: "882ea8d948be451cb2641424ef8a5ce8", 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: "498", 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", npm_package_devDependencies__vitest_ui: "^2.1.8", 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 1000045820", 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.15.3", 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_scripts_test: "vitest", 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.4.1_@types+node@18.19.130_jiti@1.21.7_sass@1.69.5_terser@5.46.0_yaml@2.8.2/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.4.1_@types+node@18.19.130_jiti@1.21.7_sass@1.69.5_terser@5.46.0_yaml@2.8.2/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.4.1_@types+node@18.19.130_jiti@1.21.7_sass@1.69.5_terser@5.46.0_yaml@2.8.2/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.32.7-beta.2", 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_scripts_test_coverage: "vitest --coverage", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "c9ed6b000e64b14aa8852d8b6a9e095abc06086e", 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_test_ui: "vitest --ui", 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_1590059e-294e-447a-852c-ca8ae4b1827c", 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_1590059e-294e-447a-852c-ca8ae4b1827c", 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", 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: "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.8.2", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_1590059e-294e-447a-852c-ca8ae4b1827c", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_dependencies__feedmepos_mf_remy_panel: "^0.1.0", NODE_ENV: "production" } };
|
|
1894
|
+
var Va = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_03ae9bb3-d5ce-4817-9224-7c3fe4f24b45", 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_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^2.1.8", 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", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_03ae9bb3-d5ce-4817-9224-7c3fe4f24b45", 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-1.4.tar.gz", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.3.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", 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: "1825", ACTIONS_ORCHESTRATION_ID: "3e33d949-8999-4cb1-a7d4-206af4ebe642.publish.deploy.__default", npm_package_dependencies__feedmepos_ui_library: "1.8.8", 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", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", 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: "20260201.15.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.1-rc.4", 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:13564", 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.12/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", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.6/x64", GITHUB_RUN_ID: "21891487417", VITE_REMY_BACKEND_URL: "https://remy-agent.feedmeapidev.com", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "7f2e57970126b71d305f180bf20225c08c8c53f1", 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_f8976c31-73bb-4d98-83a8-45044e5744bb", INVOCATION_ID: "5d247ff1ca4445efa816821a0ecef0d7", 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: "499", GITHUB_TRIGGERING_ACTOR: "victorchai", 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", npm_package_devDependencies__vitest_ui: "^2.1.8", 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 1000046745", 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.15.3", 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_scripts_test: "vitest", 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.32.7-dev", 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_scripts_test_coverage: "vitest --coverage", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "7f2e57970126b71d305f180bf20225c08c8c53f1", 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: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_scripts_test_ui: "vitest --ui", 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_03ae9bb3-d5ce-4817-9224-7c3fe4f24b45", 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@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_03ae9bb3-d5ce-4817-9224-7c3fe4f24b45", npm_package_exports___types: "./dist/apps/mf-menu/src/app.d.ts", npm_package_dependencies__feedmepos_auth: "^1.1.14", npm_package_dependencies__feedmepos_feature_flag: "0.0.15", 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", 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: "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.32", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_03ae9bb3-d5ce-4817-9224-7c3fe4f24b45", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", npm_package_dependencies__feedmepos_mf_remy_panel: "^0.1.0", NODE_ENV: "production" } };
|
|
1895
1895
|
const $a = "10.0.5";
|
|
1896
|
-
function
|
|
1896
|
+
function Ha() {
|
|
1897
1897
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (he().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (he().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (he().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (he().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1898
1898
|
}
|
|
1899
1899
|
const Ce = {
|
|
@@ -1912,46 +1912,46 @@ const Ce = {
|
|
|
1912
1912
|
function $e(e, ...t) {
|
|
1913
1913
|
return nt(e, null, void 0);
|
|
1914
1914
|
}
|
|
1915
|
-
const Lt = /* @__PURE__ */ ke("__translateVNode"), Ot = /* @__PURE__ */ ke("__datetimeParts"), Ct = /* @__PURE__ */ ke("__numberParts"),
|
|
1916
|
-
function
|
|
1915
|
+
const Lt = /* @__PURE__ */ ke("__translateVNode"), Ot = /* @__PURE__ */ ke("__datetimeParts"), Ct = /* @__PURE__ */ ke("__numberParts"), Ga = ke("__setPluralRules"), wn = /* @__PURE__ */ ke("__injectWithOption"), St = /* @__PURE__ */ ke("__dispose");
|
|
1916
|
+
function He(e) {
|
|
1917
1917
|
if (!U(e))
|
|
1918
1918
|
return e;
|
|
1919
1919
|
for (const t in e)
|
|
1920
1920
|
if (le(e, t))
|
|
1921
1921
|
if (!t.includes("."))
|
|
1922
|
-
U(e[t]) &&
|
|
1922
|
+
U(e[t]) && He(e[t]);
|
|
1923
1923
|
else {
|
|
1924
1924
|
const n = t.split("."), r = n.length - 1;
|
|
1925
1925
|
let a = e, s = !1;
|
|
1926
1926
|
for (let u = 0; u < r; u++) {
|
|
1927
|
-
if (n[u] in a || (a[n[u]] =
|
|
1927
|
+
if (n[u] in a || (a[n[u]] = H()), !U(a[n[u]])) {
|
|
1928
1928
|
s = !0;
|
|
1929
1929
|
break;
|
|
1930
1930
|
}
|
|
1931
1931
|
a = a[n[u]];
|
|
1932
1932
|
}
|
|
1933
|
-
s || (a[n[r]] = e[t], delete e[t]), U(a[n[r]]) &&
|
|
1933
|
+
s || (a[n[r]] = e[t], delete e[t]), U(a[n[r]]) && He(a[n[r]]);
|
|
1934
1934
|
}
|
|
1935
1935
|
return e;
|
|
1936
1936
|
}
|
|
1937
1937
|
function Fn(e, t) {
|
|
1938
|
-
const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, u = M(n) ? n : z(r) ?
|
|
1939
|
-
if (z(r) && r.forEach((
|
|
1940
|
-
if ("locale" in
|
|
1941
|
-
const { locale: c, resource: E } =
|
|
1942
|
-
c ? (u[c] = u[c] ||
|
|
1938
|
+
const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, u = M(n) ? n : z(r) ? H() : { [e]: H() };
|
|
1939
|
+
if (z(r) && r.forEach((_) => {
|
|
1940
|
+
if ("locale" in _ && "resource" in _) {
|
|
1941
|
+
const { locale: c, resource: E } = _;
|
|
1942
|
+
c ? (u[c] = u[c] || H(), Je(E, u[c])) : Je(E, u);
|
|
1943
1943
|
} else
|
|
1944
|
-
O(
|
|
1944
|
+
O(_) && Je(JSON.parse(_), u);
|
|
1945
1945
|
}), a == null && s)
|
|
1946
|
-
for (const
|
|
1947
|
-
le(u,
|
|
1946
|
+
for (const _ in u)
|
|
1947
|
+
le(u, _) && He(u[_]);
|
|
1948
1948
|
return u;
|
|
1949
1949
|
}
|
|
1950
1950
|
function Mn(e) {
|
|
1951
1951
|
return e.type;
|
|
1952
1952
|
}
|
|
1953
|
-
function
|
|
1954
|
-
let r = U(t.messages) ? t.messages :
|
|
1953
|
+
function xa(e, t, n) {
|
|
1954
|
+
let r = U(t.messages) ? t.messages : H();
|
|
1955
1955
|
"__i18nGlobal" in n && (r = Fn(e.locale.value, {
|
|
1956
1956
|
messages: r,
|
|
1957
1957
|
__i18n: n.__i18nGlobal
|
|
@@ -1976,36 +1976,36 @@ function Ga(e, t, n) {
|
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
1978
|
function pn(e) {
|
|
1979
|
-
return Q(
|
|
1979
|
+
return Q(Bn, null, e, 0);
|
|
1980
1980
|
}
|
|
1981
|
-
const dn = "__INTLIFY_META__", fn = () => [],
|
|
1981
|
+
const dn = "__INTLIFY_META__", fn = () => [], Ba = () => !1;
|
|
1982
1982
|
let gn = 0;
|
|
1983
1983
|
function En(e) {
|
|
1984
|
-
return (
|
|
1984
|
+
return (t, n, r, a) => e(n, r, Dt() || void 0, a);
|
|
1985
1985
|
}
|
|
1986
|
-
const
|
|
1986
|
+
const Wa = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1987
1987
|
const e = Dt();
|
|
1988
1988
|
let t = null;
|
|
1989
1989
|
return e && (t = Mn(e)[dn]) ? { [dn]: t } : null;
|
|
1990
1990
|
};
|
|
1991
1991
|
function Ka(e = {}) {
|
|
1992
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Kt ? oe :
|
|
1992
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Kt ? oe : Gn;
|
|
1993
1993
|
let u = J(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1994
|
-
const
|
|
1994
|
+
const _ = s(
|
|
1995
1995
|
// prettier-ignore
|
|
1996
1996
|
t && u ? t.locale.value : O(e.locale) ? e.locale : et
|
|
1997
1997
|
), c = s(
|
|
1998
1998
|
// prettier-ignore
|
|
1999
|
-
t && u ? t.fallbackLocale.value : O(e.fallbackLocale) || z(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale :
|
|
2000
|
-
), E = s(Fn(
|
|
1999
|
+
t && u ? t.fallbackLocale.value : O(e.fallbackLocale) || z(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : _.value
|
|
2000
|
+
), E = s(Fn(_.value, e)), k = s(M(e.datetimeFormats) ? e.datetimeFormats : { [_.value]: {} }), R = s(M(e.numberFormats) ? e.numberFormats : { [_.value]: {} });
|
|
2001
2001
|
let g = t ? t.missingWarn : J(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : J(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0, L = t ? t.fallbackRoot : J(e.fallbackRoot) ? e.fallbackRoot : !0, T = !!e.fallbackFormat, y = K(e.missing) ? e.missing : null, i = K(e.missing) ? En(e.missing) : null, b = K(e.postTranslation) ? e.postTranslation : null, N = t ? t.warnHtmlMessage : J(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, f = !!e.escapeParameter;
|
|
2002
2002
|
const A = t ? t.modifiers : M(e.modifiers) ? e.modifiers : {};
|
|
2003
|
-
let v = e.pluralRules || t && t.pluralRules,
|
|
2004
|
-
|
|
2003
|
+
let v = e.pluralRules || t && t.pluralRules, m;
|
|
2004
|
+
m = (() => {
|
|
2005
2005
|
r && rn(null);
|
|
2006
2006
|
const d = {
|
|
2007
2007
|
version: $a,
|
|
2008
|
-
locale:
|
|
2008
|
+
locale: _.value,
|
|
2009
2009
|
fallbackLocale: c.value,
|
|
2010
2010
|
messages: E.value,
|
|
2011
2011
|
modifiers: A,
|
|
@@ -2022,53 +2022,53 @@ function Ka(e = {}) {
|
|
|
2022
2022
|
messageCompiler: e.messageCompiler,
|
|
2023
2023
|
__meta: { framework: "vue" }
|
|
2024
2024
|
};
|
|
2025
|
-
d.datetimeFormats = k.value, d.numberFormats = R.value, d.__datetimeFormatters = M(
|
|
2025
|
+
d.datetimeFormats = k.value, d.numberFormats = R.value, d.__datetimeFormatters = M(m) ? m.__datetimeFormatters : void 0, d.__numberFormatters = M(m) ? m.__numberFormatters : void 0;
|
|
2026
2026
|
const I = Ta(d);
|
|
2027
2027
|
return r && rn(I), I;
|
|
2028
|
-
})(), Pe(
|
|
2028
|
+
})(), Pe(m, _.value, c.value);
|
|
2029
2029
|
function D() {
|
|
2030
2030
|
return [
|
|
2031
|
-
|
|
2031
|
+
_.value,
|
|
2032
2032
|
c.value,
|
|
2033
2033
|
E.value,
|
|
2034
2034
|
k.value,
|
|
2035
2035
|
R.value
|
|
2036
2036
|
];
|
|
2037
2037
|
}
|
|
2038
|
-
const
|
|
2039
|
-
get: () =>
|
|
2038
|
+
const B = x({
|
|
2039
|
+
get: () => _.value,
|
|
2040
2040
|
set: (d) => {
|
|
2041
|
-
|
|
2041
|
+
_.value = d, m.locale = _.value;
|
|
2042
2042
|
}
|
|
2043
|
-
}), w =
|
|
2043
|
+
}), w = x({
|
|
2044
2044
|
get: () => c.value,
|
|
2045
2045
|
set: (d) => {
|
|
2046
|
-
c.value = d,
|
|
2046
|
+
c.value = d, m.fallbackLocale = c.value, Pe(m, _.value, d);
|
|
2047
2047
|
}
|
|
2048
|
-
}), P =
|
|
2048
|
+
}), P = x(() => E.value), Te = /* @__PURE__ */ x(() => k.value), at = /* @__PURE__ */ x(() => R.value);
|
|
2049
2049
|
function st() {
|
|
2050
2050
|
return K(b) ? b : null;
|
|
2051
2051
|
}
|
|
2052
2052
|
function ot(d) {
|
|
2053
|
-
b = d,
|
|
2053
|
+
b = d, m.postTranslation = d;
|
|
2054
2054
|
}
|
|
2055
2055
|
function lt() {
|
|
2056
2056
|
return y;
|
|
2057
2057
|
}
|
|
2058
2058
|
function ut(d) {
|
|
2059
|
-
d !== null && (i = En(d)), y = d,
|
|
2059
|
+
d !== null && (i = En(d)), y = d, m.missing = i;
|
|
2060
2060
|
}
|
|
2061
|
-
const
|
|
2061
|
+
const ce = (d, I, G, q, be, je) => {
|
|
2062
2062
|
D();
|
|
2063
2063
|
let Re;
|
|
2064
2064
|
try {
|
|
2065
|
-
Va.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2065
|
+
Va.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (m.fallbackContext = t ? ka() : void 0), Re = d(m);
|
|
2066
2066
|
} finally {
|
|
2067
|
-
__INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2067
|
+
__INTLIFY_PROD_DEVTOOLS__, r || (m.fallbackContext = void 0);
|
|
2068
2068
|
}
|
|
2069
|
-
if (
|
|
2070
|
-
ee(Re) && Re === rt ||
|
|
2071
|
-
const [$n,
|
|
2069
|
+
if (G !== "translate exists" && // for not `te` (e.g `t`)
|
|
2070
|
+
ee(Re) && Re === rt || G === "translate exists" && !Re) {
|
|
2071
|
+
const [$n, Ms] = I();
|
|
2072
2072
|
return t && L ? q(t) : be($n);
|
|
2073
2073
|
} else {
|
|
2074
2074
|
if (je(Re))
|
|
@@ -2076,63 +2076,63 @@ function Ka(e = {}) {
|
|
|
2076
2076
|
throw $e(Ce.UNEXPECTED_RETURN_TYPE);
|
|
2077
2077
|
}
|
|
2078
2078
|
};
|
|
2079
|
-
function We(...d) {
|
|
2080
|
-
return me((I) => Reflect.apply(_n, null, [I, ...d]), () => At(...d), "translate", (I) => Reflect.apply(I.t, I, [...d]), (I) => I, (I) => O(I));
|
|
2081
|
-
}
|
|
2082
2079
|
function Be(...d) {
|
|
2083
|
-
|
|
2080
|
+
return ce((I) => Reflect.apply(mn, null, [I, ...d]), () => At(...d), "translate", (I) => Reflect.apply(I.t, I, [...d]), (I) => I, (I) => O(I));
|
|
2081
|
+
}
|
|
2082
|
+
function We(...d) {
|
|
2083
|
+
const [I, G, q] = d;
|
|
2084
2084
|
if (q && !U(q))
|
|
2085
2085
|
throw $e(Ce.INVALID_ARGUMENT);
|
|
2086
|
-
return
|
|
2086
|
+
return Be(I, G, te({ resolvedMessage: !0 }, q || {}));
|
|
2087
2087
|
}
|
|
2088
2088
|
function it(...d) {
|
|
2089
|
-
return
|
|
2089
|
+
return ce((I) => Reflect.apply(sn, null, [I, ...d]), () => Nt(...d), "datetime format", (I) => Reflect.apply(I.d, I, [...d]), () => tn, (I) => O(I));
|
|
2090
2090
|
}
|
|
2091
2091
|
function ct(...d) {
|
|
2092
|
-
return
|
|
2092
|
+
return ce((I) => Reflect.apply(ln, null, [I, ...d]), () => Rt(...d), "number format", (I) => Reflect.apply(I.n, I, [...d]), () => tn, (I) => O(I));
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2094
|
+
function _t(d) {
|
|
2095
2095
|
return d.map((I) => O(I) || ee(I) || J(I) ? pn(String(I)) : I);
|
|
2096
2096
|
}
|
|
2097
|
-
const
|
|
2098
|
-
normalize:
|
|
2097
|
+
const mt = {
|
|
2098
|
+
normalize: _t,
|
|
2099
2099
|
interpolate: (d) => d,
|
|
2100
2100
|
type: "vnode"
|
|
2101
2101
|
};
|
|
2102
2102
|
function pt(...d) {
|
|
2103
|
-
return
|
|
2104
|
-
let
|
|
2103
|
+
return ce((I) => {
|
|
2104
|
+
let G;
|
|
2105
2105
|
const q = I;
|
|
2106
2106
|
try {
|
|
2107
|
-
q.processor =
|
|
2107
|
+
q.processor = mt, G = Reflect.apply(mn, null, [q, ...d]);
|
|
2108
2108
|
} finally {
|
|
2109
2109
|
q.processor = null;
|
|
2110
2110
|
}
|
|
2111
|
-
return
|
|
2111
|
+
return G;
|
|
2112
2112
|
}, () => At(...d), "translate", (I) => I[Lt](...d), (I) => [pn(I)], (I) => z(I));
|
|
2113
2113
|
}
|
|
2114
2114
|
function Ke(...d) {
|
|
2115
|
-
return
|
|
2115
|
+
return ce((I) => Reflect.apply(ln, null, [I, ...d]), () => Rt(...d), "number format", (I) => I[Ct](...d), fn, (I) => O(I) || z(I));
|
|
2116
2116
|
}
|
|
2117
2117
|
function dt(...d) {
|
|
2118
|
-
return
|
|
2118
|
+
return ce((I) => Reflect.apply(sn, null, [I, ...d]), () => Nt(...d), "datetime format", (I) => I[Ot](...d), fn, (I) => O(I) || z(I));
|
|
2119
2119
|
}
|
|
2120
2120
|
function ft(d) {
|
|
2121
|
-
v = d,
|
|
2121
|
+
v = d, m.pluralRules = v;
|
|
2122
2122
|
}
|
|
2123
2123
|
function gt(d, I) {
|
|
2124
|
-
return
|
|
2124
|
+
return ce(() => {
|
|
2125
2125
|
if (!d)
|
|
2126
2126
|
return !1;
|
|
2127
|
-
const
|
|
2127
|
+
const G = O(I) ? I : _.value, q = Ie(G), be = m.messageResolver(q, d);
|
|
2128
2128
|
return Oe(be) || re(be) || O(be);
|
|
2129
|
-
}, () => [d], "translate exists", (
|
|
2129
|
+
}, () => [d], "translate exists", (G) => Reflect.apply(G.te, G, [d, I]), Ba, (G) => J(G));
|
|
2130
2130
|
}
|
|
2131
2131
|
function Et(d) {
|
|
2132
2132
|
let I = null;
|
|
2133
|
-
const
|
|
2134
|
-
for (let q = 0; q <
|
|
2135
|
-
const be = E.value[
|
|
2133
|
+
const G = In(m, c.value, _.value);
|
|
2134
|
+
for (let q = 0; q < G.length; q++) {
|
|
2135
|
+
const be = E.value[G[q]] || {}, je = m.messageResolver(be, d);
|
|
2136
2136
|
if (je != null) {
|
|
2137
2137
|
I = je;
|
|
2138
2138
|
break;
|
|
@@ -2149,53 +2149,53 @@ function Ka(e = {}) {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
function Ne(d, I) {
|
|
2151
2151
|
if (a) {
|
|
2152
|
-
const
|
|
2153
|
-
for (const q in
|
|
2154
|
-
le(
|
|
2155
|
-
I =
|
|
2152
|
+
const G = { [d]: I };
|
|
2153
|
+
for (const q in G)
|
|
2154
|
+
le(G, q) && He(G[q]);
|
|
2155
|
+
I = G[d];
|
|
2156
2156
|
}
|
|
2157
|
-
E.value[d] = I,
|
|
2157
|
+
E.value[d] = I, m.messages = E.value;
|
|
2158
2158
|
}
|
|
2159
2159
|
function De(d, I) {
|
|
2160
2160
|
E.value[d] = E.value[d] || {};
|
|
2161
|
-
const
|
|
2161
|
+
const G = { [d]: I };
|
|
2162
2162
|
if (a)
|
|
2163
|
-
for (const q in
|
|
2164
|
-
le(
|
|
2165
|
-
I =
|
|
2163
|
+
for (const q in G)
|
|
2164
|
+
le(G, q) && He(G[q]);
|
|
2165
|
+
I = G[d], Je(I, E.value[d]), m.messages = E.value;
|
|
2166
2166
|
}
|
|
2167
2167
|
function vt(d) {
|
|
2168
2168
|
return k.value[d] || {};
|
|
2169
2169
|
}
|
|
2170
2170
|
function o(d, I) {
|
|
2171
|
-
k.value[d] = I,
|
|
2171
|
+
k.value[d] = I, m.datetimeFormats = k.value, on(m, d, I);
|
|
2172
2172
|
}
|
|
2173
2173
|
function l(d, I) {
|
|
2174
|
-
k.value[d] = te(k.value[d] || {}, I),
|
|
2174
|
+
k.value[d] = te(k.value[d] || {}, I), m.datetimeFormats = k.value, on(m, d, I);
|
|
2175
2175
|
}
|
|
2176
2176
|
function h(d) {
|
|
2177
2177
|
return R.value[d] || {};
|
|
2178
2178
|
}
|
|
2179
2179
|
function S(d, I) {
|
|
2180
|
-
R.value[d] = I,
|
|
2180
|
+
R.value[d] = I, m.numberFormats = R.value, un(m, d, I);
|
|
2181
2181
|
}
|
|
2182
2182
|
function X(d, I) {
|
|
2183
|
-
R.value[d] = te(R.value[d] || {}, I),
|
|
2183
|
+
R.value[d] = te(R.value[d] || {}, I), m.numberFormats = R.value, un(m, d, I);
|
|
2184
2184
|
}
|
|
2185
2185
|
gn++, t && Kt && (Ze(t.locale, (d) => {
|
|
2186
|
-
u && (
|
|
2186
|
+
u && (_.value = d, m.locale = d, Pe(m, _.value, c.value));
|
|
2187
2187
|
}), Ze(t.fallbackLocale, (d) => {
|
|
2188
|
-
u && (c.value = d,
|
|
2188
|
+
u && (c.value = d, m.fallbackLocale = d, Pe(m, _.value, c.value));
|
|
2189
2189
|
}));
|
|
2190
2190
|
const F = {
|
|
2191
2191
|
id: gn,
|
|
2192
|
-
locale:
|
|
2192
|
+
locale: B,
|
|
2193
2193
|
fallbackLocale: w,
|
|
2194
2194
|
get inheritLocale() {
|
|
2195
2195
|
return u;
|
|
2196
2196
|
},
|
|
2197
2197
|
set inheritLocale(d) {
|
|
2198
|
-
u = d, d && t && (
|
|
2198
|
+
u = d, d && t && (_.value = t.locale.value, c.value = t.fallbackLocale.value, Pe(m, _.value, c.value));
|
|
2199
2199
|
},
|
|
2200
2200
|
get availableLocales() {
|
|
2201
2201
|
return Object.keys(E.value).sort();
|
|
@@ -2214,13 +2214,13 @@ function Ka(e = {}) {
|
|
|
2214
2214
|
return g;
|
|
2215
2215
|
},
|
|
2216
2216
|
set missingWarn(d) {
|
|
2217
|
-
g = d,
|
|
2217
|
+
g = d, m.missingWarn = g;
|
|
2218
2218
|
},
|
|
2219
2219
|
get fallbackWarn() {
|
|
2220
2220
|
return p;
|
|
2221
2221
|
},
|
|
2222
2222
|
set fallbackWarn(d) {
|
|
2223
|
-
p = d,
|
|
2223
|
+
p = d, m.fallbackWarn = p;
|
|
2224
2224
|
},
|
|
2225
2225
|
get fallbackRoot() {
|
|
2226
2226
|
return L;
|
|
@@ -2232,21 +2232,21 @@ function Ka(e = {}) {
|
|
|
2232
2232
|
return T;
|
|
2233
2233
|
},
|
|
2234
2234
|
set fallbackFormat(d) {
|
|
2235
|
-
T = d,
|
|
2235
|
+
T = d, m.fallbackFormat = T;
|
|
2236
2236
|
},
|
|
2237
2237
|
get warnHtmlMessage() {
|
|
2238
2238
|
return N;
|
|
2239
2239
|
},
|
|
2240
2240
|
set warnHtmlMessage(d) {
|
|
2241
|
-
N = d,
|
|
2241
|
+
N = d, m.warnHtmlMessage = d;
|
|
2242
2242
|
},
|
|
2243
2243
|
get escapeParameter() {
|
|
2244
2244
|
return f;
|
|
2245
2245
|
},
|
|
2246
2246
|
set escapeParameter(d) {
|
|
2247
|
-
f = d,
|
|
2247
|
+
f = d, m.escapeParameter = d;
|
|
2248
2248
|
},
|
|
2249
|
-
t:
|
|
2249
|
+
t: Be,
|
|
2250
2250
|
getLocaleMessage: Ie,
|
|
2251
2251
|
setLocaleMessage: Ne,
|
|
2252
2252
|
mergeLocaleMessage: De,
|
|
@@ -2254,11 +2254,11 @@ function Ka(e = {}) {
|
|
|
2254
2254
|
setPostTranslationHandler: ot,
|
|
2255
2255
|
getMissingHandler: lt,
|
|
2256
2256
|
setMissingHandler: ut,
|
|
2257
|
-
[
|
|
2257
|
+
[Ga]: ft
|
|
2258
2258
|
};
|
|
2259
|
-
return F.datetimeFormats = Te, F.numberFormats = at, F.rt =
|
|
2259
|
+
return F.datetimeFormats = Te, F.numberFormats = at, F.rt = We, F.te = gt, F.tm = Se, F.d = it, F.n = ct, F.getDateTimeFormat = vt, F.setDateTimeFormat = o, F.mergeDateTimeFormat = l, F.getNumberFormat = h, F.setNumberFormat = S, F.mergeNumberFormat = X, F[wn] = n, F[Lt] = pt, F[Ot] = dt, F[Ct] = Ke, F;
|
|
2260
2260
|
}
|
|
2261
|
-
const
|
|
2261
|
+
const Ht = {
|
|
2262
2262
|
tag: {
|
|
2263
2263
|
type: [String, Object]
|
|
2264
2264
|
},
|
|
@@ -2280,14 +2280,14 @@ function ja({ slots: e }, t) {
|
|
|
2280
2280
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
|
|
2281
2281
|
...r,
|
|
2282
2282
|
// prettier-ignore
|
|
2283
|
-
...a.type ===
|
|
2283
|
+
...a.type === de ? a.children : [a]
|
|
2284
2284
|
], []) : t.reduce((n, r) => {
|
|
2285
2285
|
const a = e[r];
|
|
2286
2286
|
return a && (n[r] = a()), n;
|
|
2287
|
-
},
|
|
2287
|
+
}, H());
|
|
2288
2288
|
}
|
|
2289
2289
|
function Un() {
|
|
2290
|
-
return
|
|
2290
|
+
return de;
|
|
2291
2291
|
}
|
|
2292
2292
|
te({
|
|
2293
2293
|
keypath: {
|
|
@@ -2298,7 +2298,7 @@ te({
|
|
|
2298
2298
|
type: [Number, String],
|
|
2299
2299
|
validator: (e) => ee(e) || !isNaN(e)
|
|
2300
2300
|
}
|
|
2301
|
-
},
|
|
2301
|
+
}, Ht);
|
|
2302
2302
|
function Ya(e) {
|
|
2303
2303
|
return z(e) && !O(e[0]);
|
|
2304
2304
|
}
|
|
@@ -2306,15 +2306,15 @@ function Vn(e, t, n, r) {
|
|
|
2306
2306
|
const { slots: a, attrs: s } = t;
|
|
2307
2307
|
return () => {
|
|
2308
2308
|
const u = { part: !0 };
|
|
2309
|
-
let
|
|
2310
|
-
e.locale && (u.locale = e.locale), O(e.format) ? u.key = e.format : U(e.format) && (O(e.format.key) && (u.key = e.format.key),
|
|
2311
|
-
const c = r(e.value, u,
|
|
2309
|
+
let _ = H();
|
|
2310
|
+
e.locale && (u.locale = e.locale), O(e.format) ? u.key = e.format : U(e.format) && (O(e.format.key) && (u.key = e.format.key), _ = Object.keys(e.format).reduce((g, p) => n.includes(p) ? te(H(), g, { [p]: e.format[p] }) : g, H()));
|
|
2311
|
+
const c = r(e.value, u, _);
|
|
2312
2312
|
let E = [u.key];
|
|
2313
2313
|
z(c) ? E = c.map((g, p) => {
|
|
2314
2314
|
const L = a[g.type], T = L ? L({ [g.type]: g.value, index: p, parts: c }) : [g.value];
|
|
2315
2315
|
return Ya(T) && (T[0].key = `${g.type}-${p}`), T;
|
|
2316
2316
|
}) : O(c) && (E = [c]);
|
|
2317
|
-
const k = te(
|
|
2317
|
+
const k = te(H(), s), R = O(e.tag) || U(e.tag) ? e.tag : Un();
|
|
2318
2318
|
return hn(R, k, E);
|
|
2319
2319
|
};
|
|
2320
2320
|
}
|
|
@@ -2326,7 +2326,7 @@ te({
|
|
|
2326
2326
|
format: {
|
|
2327
2327
|
type: [String, Object]
|
|
2328
2328
|
}
|
|
2329
|
-
},
|
|
2329
|
+
}, Ht);
|
|
2330
2330
|
te({
|
|
2331
2331
|
value: {
|
|
2332
2332
|
type: [Number, Date],
|
|
@@ -2335,9 +2335,9 @@ te({
|
|
|
2335
2335
|
format: {
|
|
2336
2336
|
type: [String, Object]
|
|
2337
2337
|
}
|
|
2338
|
-
},
|
|
2338
|
+
}, Ht);
|
|
2339
2339
|
const Xa = /* @__PURE__ */ ke("global-vue-i18n");
|
|
2340
|
-
function
|
|
2340
|
+
function xe(e = {}) {
|
|
2341
2341
|
const t = Dt();
|
|
2342
2342
|
if (t == null)
|
|
2343
2343
|
throw $e(Ce.MUST_BE_CALL_SETUP_TOP);
|
|
@@ -2345,21 +2345,21 @@ function Ge(e = {}) {
|
|
|
2345
2345
|
throw $e(Ce.NOT_INSTALLED);
|
|
2346
2346
|
const n = qa(t), r = Qa(n), a = Mn(t), s = Ja(e, a);
|
|
2347
2347
|
if (s === "global")
|
|
2348
|
-
return
|
|
2348
|
+
return xa(r, e, a), r;
|
|
2349
2349
|
if (s === "parent") {
|
|
2350
2350
|
let c = Za(n, t, e.__useComponent);
|
|
2351
2351
|
return c == null && (c = r), c;
|
|
2352
2352
|
}
|
|
2353
2353
|
const u = n;
|
|
2354
|
-
let
|
|
2355
|
-
if (
|
|
2354
|
+
let _ = u.__getInstance(t);
|
|
2355
|
+
if (_ == null) {
|
|
2356
2356
|
const c = te({}, e);
|
|
2357
|
-
"__i18n" in a && (c.__i18n = a.__i18n), r && (c.__root = r),
|
|
2357
|
+
"__i18n" in a && (c.__i18n = a.__i18n), r && (c.__root = r), _ = Ka(c), u.__composerExtend && (_[St] = u.__composerExtend(_)), es(u, t, _), u.__setInstance(t, _);
|
|
2358
2358
|
}
|
|
2359
|
-
return
|
|
2359
|
+
return _;
|
|
2360
2360
|
}
|
|
2361
2361
|
function qa(e) {
|
|
2362
|
-
const t =
|
|
2362
|
+
const t = Hn(e.isCE ? Xa : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2363
2363
|
if (!t)
|
|
2364
2364
|
throw $e(e.isCE ? Ce.NOT_INSTALLED_WITH_PROVIDE : Ce.UNEXPECTED_ERROR);
|
|
2365
2365
|
return t;
|
|
@@ -2379,8 +2379,8 @@ function Za(e, t, n = !1) {
|
|
|
2379
2379
|
if (e.mode === "composition")
|
|
2380
2380
|
r = u.__getInstance(s);
|
|
2381
2381
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2382
|
-
const
|
|
2383
|
-
|
|
2382
|
+
const _ = u.__getInstance(s);
|
|
2383
|
+
_ != null && (r = _.__composer, n && r && !r[wn] && (r = null));
|
|
2384
2384
|
}
|
|
2385
2385
|
if (r != null || a === s)
|
|
2386
2386
|
break;
|
|
@@ -2393,14 +2393,14 @@ function za(e, t = !1) {
|
|
|
2393
2393
|
}
|
|
2394
2394
|
function es(e, t, n) {
|
|
2395
2395
|
bn(() => {
|
|
2396
|
-
}, t),
|
|
2396
|
+
}, t), xn(() => {
|
|
2397
2397
|
const r = n;
|
|
2398
2398
|
e.__deleteInstance(t);
|
|
2399
2399
|
const a = r[St];
|
|
2400
2400
|
a && (a(), delete r[St]);
|
|
2401
2401
|
}, t);
|
|
2402
2402
|
}
|
|
2403
|
-
|
|
2403
|
+
Ha();
|
|
2404
2404
|
Ea(Zr);
|
|
2405
2405
|
va(da);
|
|
2406
2406
|
ya(In);
|
|
@@ -2408,18 +2408,18 @@ if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
|
2408
2408
|
const e = he();
|
|
2409
2409
|
e.__INTLIFY__ = !0, zr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function ge(e) {
|
|
2412
2412
|
return Array.from(new Set(e));
|
|
2413
2413
|
}
|
|
2414
|
-
function
|
|
2414
|
+
function Ws() {
|
|
2415
2415
|
const e = Pt();
|
|
2416
2416
|
return {
|
|
2417
|
-
restaurantAttributes:
|
|
2417
|
+
restaurantAttributes: x(() => [
|
|
2418
2418
|
{
|
|
2419
2419
|
type: "string",
|
|
2420
2420
|
key: "name",
|
|
2421
2421
|
entity: "restaurant",
|
|
2422
|
-
values:
|
|
2422
|
+
values: ge(
|
|
2423
2423
|
e.restaurants.value.filter((n) => {
|
|
2424
2424
|
var r;
|
|
2425
2425
|
return !!((r = n.profile) != null && r.name);
|
|
@@ -2430,7 +2430,7 @@ function Gs() {
|
|
|
2430
2430
|
type: "string",
|
|
2431
2431
|
key: "code",
|
|
2432
2432
|
entity: "restaurant",
|
|
2433
|
-
values:
|
|
2433
|
+
values: ge(
|
|
2434
2434
|
e.restaurants.value.filter((n) => {
|
|
2435
2435
|
var r;
|
|
2436
2436
|
return !!((r = n.profile) != null && r.code);
|
|
@@ -2440,113 +2440,115 @@ function Gs() {
|
|
|
2440
2440
|
])
|
|
2441
2441
|
};
|
|
2442
2442
|
}
|
|
2443
|
-
function ts() {
|
|
2444
|
-
|
|
2443
|
+
function ts(e, t) {
|
|
2444
|
+
return t.split(".").reduce((n, r) => n == null ? void 0 : n[r], e);
|
|
2445
|
+
}
|
|
2446
|
+
function ns(e, t) {
|
|
2447
|
+
return ge(
|
|
2448
|
+
e.map((n) => ts(n.profile, t)).filter(Boolean)
|
|
2449
|
+
).map((n) => ({
|
|
2450
|
+
label: n,
|
|
2451
|
+
value: n
|
|
2452
|
+
}));
|
|
2453
|
+
}
|
|
2454
|
+
function rs() {
|
|
2455
|
+
const e = Pt(), { t } = Ge(), n = e.restaurants.value;
|
|
2445
2456
|
return [
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
value: "code",
|
|
2459
|
-
options: ie(
|
|
2460
|
-
e.restaurants.value.filter((n) => {
|
|
2461
|
-
var r;
|
|
2462
|
-
return !!((r = n.profile) != null && r.code);
|
|
2463
|
-
}).map((n) => n.profile.code)
|
|
2464
|
-
).map((n) => ({ label: n, value: n }))
|
|
2465
|
-
}
|
|
2466
|
-
];
|
|
2457
|
+
"name",
|
|
2458
|
+
"code",
|
|
2459
|
+
"address.city",
|
|
2460
|
+
"address.postcode",
|
|
2461
|
+
"address.state"
|
|
2462
|
+
].map((a) => ({
|
|
2463
|
+
label: t(
|
|
2464
|
+
`menu.rule_groups.condition_view.attribute.restaurant_${a.replace("address.", "")}`
|
|
2465
|
+
),
|
|
2466
|
+
value: a,
|
|
2467
|
+
options: ns(n, a)
|
|
2468
|
+
}));
|
|
2467
2469
|
}
|
|
2468
|
-
function
|
|
2469
|
-
const e = kn(), { t } =
|
|
2470
|
+
function as() {
|
|
2471
|
+
const e = kn(), { t } = Ge(), n = e.state.menu.modules.item, r = e.categories;
|
|
2470
2472
|
return [
|
|
2471
2473
|
{
|
|
2472
2474
|
label: t("menu.rule_groups.condition_view.attribute.product_name"),
|
|
2473
2475
|
value: "name",
|
|
2474
|
-
options:
|
|
2476
|
+
options: ge(n.filter((a) => !!a.name).map((a) => a.name)).map(
|
|
2475
2477
|
(a) => ({ label: a, value: a })
|
|
2476
2478
|
)
|
|
2477
2479
|
},
|
|
2478
2480
|
{
|
|
2479
2481
|
label: t("menu.rule_groups.condition_view.attribute.product_code"),
|
|
2480
2482
|
value: "code",
|
|
2481
|
-
options:
|
|
2483
|
+
options: ge(n.filter((a) => !!a.code).map((a) => a.code)).map(
|
|
2482
2484
|
(a) => ({ label: a, value: a })
|
|
2483
2485
|
)
|
|
2484
2486
|
},
|
|
2485
2487
|
{
|
|
2486
2488
|
label: t("menu.rule_groups.condition_view.attribute.product_category"),
|
|
2487
2489
|
value: "category",
|
|
2488
|
-
options:
|
|
2490
|
+
options: ge(r.filter((a) => !!a.name).map((a) => a.name)).map(
|
|
2489
2491
|
(a) => ({ label: a, value: a })
|
|
2490
2492
|
)
|
|
2491
2493
|
}
|
|
2492
2494
|
];
|
|
2493
2495
|
}
|
|
2494
|
-
function
|
|
2495
|
-
const t =
|
|
2496
|
+
function Ks(e = {}) {
|
|
2497
|
+
const t = x(() => {
|
|
2496
2498
|
var c, E;
|
|
2497
|
-
const u = ((c = e.menuItems) == null ? void 0 : c.value) || [],
|
|
2499
|
+
const u = ((c = e.menuItems) == null ? void 0 : c.value) || [], _ = ((E = e.categories) == null ? void 0 : E.value) || [];
|
|
2498
2500
|
return [
|
|
2499
2501
|
{
|
|
2500
2502
|
type: "string",
|
|
2501
2503
|
key: "name",
|
|
2502
2504
|
entity: "item",
|
|
2503
|
-
values:
|
|
2505
|
+
values: ge(u.filter((k) => !!k.name).map((k) => k.name))
|
|
2504
2506
|
},
|
|
2505
2507
|
{
|
|
2506
2508
|
type: "string",
|
|
2507
2509
|
key: "code",
|
|
2508
2510
|
entity: "item",
|
|
2509
|
-
values:
|
|
2511
|
+
values: ge(u.filter((k) => !!k.code).map((k) => k.code))
|
|
2510
2512
|
},
|
|
2511
2513
|
{
|
|
2512
2514
|
type: "string",
|
|
2513
2515
|
key: "category",
|
|
2514
2516
|
entity: "item",
|
|
2515
|
-
values:
|
|
2517
|
+
values: ge(_.filter((k) => !!k.name).map((k) => k.name))
|
|
2516
2518
|
}
|
|
2517
2519
|
];
|
|
2518
|
-
}), n =
|
|
2519
|
-
var
|
|
2520
|
+
}), n = x(() => {
|
|
2521
|
+
var _;
|
|
2520
2522
|
const u = {};
|
|
2521
|
-
return (
|
|
2523
|
+
return (_ = e.categories) == null || _.value.forEach((c) => {
|
|
2522
2524
|
u[c.name] = c._id;
|
|
2523
2525
|
}), u;
|
|
2524
|
-
}), r =
|
|
2525
|
-
var
|
|
2526
|
+
}), r = x(() => {
|
|
2527
|
+
var _;
|
|
2526
2528
|
const u = {};
|
|
2527
|
-
return (
|
|
2529
|
+
return (_ = e.categories) == null || _.value.forEach((c) => {
|
|
2528
2530
|
u[c._id] = c.name;
|
|
2529
2531
|
}), u;
|
|
2530
2532
|
});
|
|
2531
2533
|
function a(u) {
|
|
2532
|
-
const
|
|
2533
|
-
return
|
|
2534
|
+
const _ = Wt.cloneDeep(u);
|
|
2535
|
+
return _ != null && _.rules && (_.rules = _.rules.map((c) => {
|
|
2534
2536
|
if ("property" in c && c.property === "category" && Array.isArray(c.value)) {
|
|
2535
2537
|
const E = c.value.map((k) => r.value[k]);
|
|
2536
2538
|
return { ...c, value: E };
|
|
2537
2539
|
}
|
|
2538
2540
|
return c;
|
|
2539
|
-
})),
|
|
2541
|
+
})), _;
|
|
2540
2542
|
}
|
|
2541
2543
|
function s(u) {
|
|
2542
|
-
const
|
|
2543
|
-
return
|
|
2544
|
+
const _ = Wt.cloneDeep(u);
|
|
2545
|
+
return _ != null && _.rules && (_.rules = _.rules.map((c) => {
|
|
2544
2546
|
if ("property" in c && c.property === "category" && Array.isArray(c.value)) {
|
|
2545
2547
|
const E = c.value.map((k) => n.value[k]);
|
|
2546
2548
|
return { ...c, value: E };
|
|
2547
2549
|
}
|
|
2548
2550
|
return c;
|
|
2549
|
-
})),
|
|
2551
|
+
})), _;
|
|
2550
2552
|
}
|
|
2551
2553
|
return {
|
|
2552
2554
|
itemAttributes: t,
|
|
@@ -2554,19 +2556,13 @@ function Ws(e = {}) {
|
|
|
2554
2556
|
convertCategoryNameToId: s
|
|
2555
2557
|
};
|
|
2556
2558
|
}
|
|
2557
|
-
|
|
2558
|
-
return Yn(e) ? jn : Bn.build(e);
|
|
2559
|
-
}
|
|
2560
|
-
function Ks(e) {
|
|
2561
|
-
return Xn(e) ? null : Kn.build(e);
|
|
2562
|
-
}
|
|
2563
|
-
const rs = {
|
|
2559
|
+
const ss = {
|
|
2564
2560
|
class: "flex justify-between gap-8"
|
|
2565
|
-
},
|
|
2561
|
+
}, os = {
|
|
2566
2562
|
class: "flex w-full justify-between gap-16"
|
|
2567
|
-
},
|
|
2563
|
+
}, ls = {
|
|
2568
2564
|
class: "break-all fm-typo-en-body-lg-400 line-clamp-1"
|
|
2569
|
-
}, vn = /* @__PURE__ */
|
|
2565
|
+
}, vn = /* @__PURE__ */ ie({
|
|
2570
2566
|
__name: "RuleConditionSelector",
|
|
2571
2567
|
props: {
|
|
2572
2568
|
ruleKey: {
|
|
@@ -2596,17 +2592,17 @@ const rs = {
|
|
|
2596
2592
|
}) {
|
|
2597
2593
|
const {
|
|
2598
2594
|
t: n
|
|
2599
|
-
} =
|
|
2595
|
+
} = Ge(), r = e, a = t, s = kn(), {
|
|
2600
2596
|
attributes: u
|
|
2601
|
-
} =
|
|
2597
|
+
} = Bt({
|
|
2602
2598
|
valueSource: Pt().restaurants,
|
|
2603
2599
|
entity: "restaurant"
|
|
2604
2600
|
}), {
|
|
2605
|
-
attributes:
|
|
2606
|
-
} =
|
|
2607
|
-
valueSource:
|
|
2601
|
+
attributes: _
|
|
2602
|
+
} = Bt({
|
|
2603
|
+
valueSource: x(() => s.state.menu.modules.item || []),
|
|
2608
2604
|
entity: "item"
|
|
2609
|
-
}), c =
|
|
2605
|
+
}), c = rs(), E = as(), k = oe(r.ruleKey), R = x(() => [...c.map((v) => ({
|
|
2610
2606
|
label: v.label,
|
|
2611
2607
|
value: `restaurant_attr_${v.value}`
|
|
2612
2608
|
})), ...u.value.map((v) => ({
|
|
@@ -2615,29 +2611,29 @@ const rs = {
|
|
|
2615
2611
|
})), ...E.map((v) => ({
|
|
2616
2612
|
label: v.label,
|
|
2617
2613
|
value: `item_attr_${v.value}`
|
|
2618
|
-
})), ...
|
|
2614
|
+
})), ..._.value.map((v) => ({
|
|
2619
2615
|
label: `Product ${v.key}`,
|
|
2620
2616
|
value: `item_custom_${v.key}`
|
|
2621
|
-
}))]), g = oe(r.values), p =
|
|
2617
|
+
}))]), g = oe(r.values), p = x(() => {
|
|
2622
2618
|
const v = k.value;
|
|
2623
2619
|
if (!v) return [];
|
|
2624
2620
|
if (v.startsWith("restaurant_attr_")) {
|
|
2625
|
-
const
|
|
2621
|
+
const m = v.replace("restaurant_attr_", ""), C = c.find((D) => D.value === m);
|
|
2626
2622
|
if (C && Array.isArray(C.options))
|
|
2627
2623
|
return C.options;
|
|
2628
2624
|
} else if (v.startsWith("restaurant_custom_")) {
|
|
2629
|
-
const
|
|
2625
|
+
const m = v.replace("restaurant_custom_", ""), C = u.value.find((D) => D.key === m);
|
|
2630
2626
|
if (C && Array.isArray(C.values))
|
|
2631
2627
|
return C.values.map((D) => ({
|
|
2632
2628
|
label: D,
|
|
2633
2629
|
value: D
|
|
2634
2630
|
}));
|
|
2635
2631
|
} else if (v.startsWith("item_attr_")) {
|
|
2636
|
-
const
|
|
2632
|
+
const m = v.replace("item_attr_", ""), C = E.find((D) => D.value === m);
|
|
2637
2633
|
if (C && Array.isArray(C.options))
|
|
2638
2634
|
return C.options;
|
|
2639
2635
|
} else if (v.startsWith("item_custom_")) {
|
|
2640
|
-
const
|
|
2636
|
+
const m = v.replace("item_custom_", ""), C = _.value.find((D) => D.key === m);
|
|
2641
2637
|
if (C && Array.isArray(C.values))
|
|
2642
2638
|
return C.values.map((D) => ({
|
|
2643
2639
|
label: D,
|
|
@@ -2657,33 +2653,33 @@ const rs = {
|
|
|
2657
2653
|
}, {
|
|
2658
2654
|
label: n("menu.rule_groups.condition_view.operator.starts_with"),
|
|
2659
2655
|
value: "$startsWith"
|
|
2660
|
-
}], y = oe(""), i =
|
|
2661
|
-
const v = p.value,
|
|
2656
|
+
}], y = oe(""), i = x(() => {
|
|
2657
|
+
const v = p.value, m = Array.isArray(g.value) ? g.value : [], C = m.map((B) => v.find((w) => w.value === B)).filter(Boolean);
|
|
2662
2658
|
let D = [];
|
|
2663
|
-
return y.value ? (D = v.filter((
|
|
2664
|
-
}), b =
|
|
2659
|
+
return y.value ? (D = v.filter((B) => B.label.toLowerCase().includes(y.value.toLowerCase()) && !m.includes(B.value)), [...C, ...D]) : (D = v.filter((B) => !m.includes(B.value)), [...C, ...D]);
|
|
2660
|
+
}), b = x(() => {
|
|
2665
2661
|
let v = R.value;
|
|
2666
|
-
return v = v.filter((
|
|
2662
|
+
return v = v.filter((m) => !r.selectedKeys.includes(m.value) || m.value === k.value), y.value ? v.filter((m) => m.label.toLowerCase().includes(y.value.toLowerCase())) : v;
|
|
2667
2663
|
});
|
|
2668
2664
|
Ze(() => k.value, (v) => {
|
|
2669
2665
|
g.value = [];
|
|
2670
2666
|
});
|
|
2671
2667
|
function N(v) {
|
|
2672
2668
|
if (v.startsWith("restaurant_custom_")) {
|
|
2673
|
-
const
|
|
2669
|
+
const m = v.replace("restaurant_custom_", ""), C = u.value.find((D) => D.key === m);
|
|
2674
2670
|
return (C == null ? void 0 : C.type) || "string";
|
|
2675
2671
|
} else if (v.startsWith("item_custom_")) {
|
|
2676
|
-
const
|
|
2672
|
+
const m = v.replace("item_custom_", ""), C = _.value.find((D) => D.key === m);
|
|
2677
2673
|
return (C == null ? void 0 : C.type) || "string";
|
|
2678
2674
|
}
|
|
2679
2675
|
return "string";
|
|
2680
2676
|
}
|
|
2681
|
-
function f(v,
|
|
2682
|
-
const C = N(v === "ruleKey" ?
|
|
2677
|
+
function f(v, m) {
|
|
2678
|
+
const C = N(v === "ruleKey" ? m : k.value);
|
|
2683
2679
|
switch (v) {
|
|
2684
2680
|
case "ruleKey":
|
|
2685
2681
|
a("update:modelValue", {
|
|
2686
|
-
ruleKey:
|
|
2682
|
+
ruleKey: m,
|
|
2687
2683
|
operator: L.value,
|
|
2688
2684
|
values: g.value,
|
|
2689
2685
|
uniqueKey: r.uniqueKey,
|
|
@@ -2694,7 +2690,7 @@ const rs = {
|
|
|
2694
2690
|
case "operator":
|
|
2695
2691
|
a("update:modelValue", {
|
|
2696
2692
|
ruleKey: k.value,
|
|
2697
|
-
operator:
|
|
2693
|
+
operator: m,
|
|
2698
2694
|
values: g.value,
|
|
2699
2695
|
uniqueKey: r.uniqueKey,
|
|
2700
2696
|
type: C,
|
|
@@ -2705,7 +2701,7 @@ const rs = {
|
|
|
2705
2701
|
a("update:modelValue", {
|
|
2706
2702
|
ruleKey: k.value,
|
|
2707
2703
|
operator: L.value,
|
|
2708
|
-
values:
|
|
2704
|
+
values: m,
|
|
2709
2705
|
uniqueKey: r.uniqueKey,
|
|
2710
2706
|
type: C,
|
|
2711
2707
|
action: "update"
|
|
@@ -2722,64 +2718,64 @@ const rs = {
|
|
|
2722
2718
|
action: "delete"
|
|
2723
2719
|
});
|
|
2724
2720
|
}
|
|
2725
|
-
return (v,
|
|
2726
|
-
const C =
|
|
2727
|
-
return
|
|
2721
|
+
return (v, m) => {
|
|
2722
|
+
const C = fe("FmSearch"), D = fe("FmSelect"), B = fe("FmButton");
|
|
2723
|
+
return W(), j("div", ss, [V("div", os, [Q(D, {
|
|
2728
2724
|
class: "flex w-full",
|
|
2729
2725
|
modelValue: k.value,
|
|
2730
|
-
"onUpdate:modelValue": [
|
|
2726
|
+
"onUpdate:modelValue": [m[2] || (m[2] = (w) => k.value = w), m[3] || (m[3] = (w) => f("ruleKey", w))],
|
|
2731
2727
|
items: b.value,
|
|
2732
2728
|
placeholder: Y(n)("menu.rule_groups.condition_view.select_item")
|
|
2733
2729
|
}, {
|
|
2734
2730
|
"prepend-menu": ae(() => [V("div", {
|
|
2735
|
-
onClick:
|
|
2731
|
+
onClick: m[1] || (m[1] = se(() => {
|
|
2736
2732
|
}, ["stop"]))
|
|
2737
2733
|
}, [Q(C, {
|
|
2738
2734
|
class: "px-8",
|
|
2739
2735
|
modelValue: y.value,
|
|
2740
|
-
"onUpdate:modelValue":
|
|
2736
|
+
"onUpdate:modelValue": m[0] || (m[0] = (w) => y.value = w),
|
|
2741
2737
|
placeholder: "Filter"
|
|
2742
2738
|
}, null, 8, ["modelValue"])])]),
|
|
2743
2739
|
_: 1
|
|
2744
2740
|
}, 8, ["modelValue", "items", "placeholder"]), Q(D, {
|
|
2745
2741
|
class: "flex w-full",
|
|
2746
2742
|
modelValue: L.value,
|
|
2747
|
-
"onUpdate:modelValue": [
|
|
2743
|
+
"onUpdate:modelValue": [m[4] || (m[4] = (w) => L.value = w), m[5] || (m[5] = (w) => f("operator", w))],
|
|
2748
2744
|
placeholder: Y(n)("menu.rule_groups.condition_view.select_item"),
|
|
2749
2745
|
items: T,
|
|
2750
2746
|
rules: [(w) => k.value && !w ? Y(n)("menu.rule_groups.condition_view.required") : !0]
|
|
2751
2747
|
}, null, 8, ["modelValue", "placeholder", "rules"]), Q(D, {
|
|
2752
2748
|
class: "flex w-full",
|
|
2753
2749
|
modelValue: g.value,
|
|
2754
|
-
"onUpdate:modelValue": [
|
|
2750
|
+
"onUpdate:modelValue": [m[7] || (m[7] = (w) => g.value = w), m[8] || (m[8] = (w) => f("ruleValues", w))],
|
|
2755
2751
|
items: i.value,
|
|
2756
2752
|
placeholder: Y(n)("menu.rule_groups.condition_view.select_item"),
|
|
2757
2753
|
multiselect: "",
|
|
2758
2754
|
"hide-chips": "",
|
|
2759
2755
|
rules: [(w) => k.value && (!w || w.length === 0) ? Y(n)("menu.rule_groups.condition_view.required") : !0]
|
|
2760
2756
|
}, {
|
|
2761
|
-
default: ae(() => [V("div",
|
|
2757
|
+
default: ae(() => [V("div", ls, Z(g.value.join(", ")), 1)]),
|
|
2762
2758
|
"prepend-menu": ae(() => [Q(C, {
|
|
2763
2759
|
class: "px-8",
|
|
2764
2760
|
modelValue: y.value,
|
|
2765
|
-
"onUpdate:modelValue":
|
|
2761
|
+
"onUpdate:modelValue": m[6] || (m[6] = (w) => y.value = w),
|
|
2766
2762
|
placeholder: Y(n)("common.filter")
|
|
2767
2763
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
2768
2764
|
_: 1
|
|
2769
|
-
}, 8, ["modelValue", "items", "placeholder", "rules"])]), Q(
|
|
2765
|
+
}, 8, ["modelValue", "items", "placeholder", "rules"])]), Q(B, {
|
|
2770
2766
|
variant: "tertiary",
|
|
2771
2767
|
"prepend-icon": "close",
|
|
2772
|
-
onClick:
|
|
2768
|
+
onClick: m[9] || (m[9] = se((w) => A(), ["stop"]))
|
|
2773
2769
|
})]);
|
|
2774
2770
|
};
|
|
2775
2771
|
}
|
|
2776
|
-
}),
|
|
2772
|
+
}), us = {
|
|
2777
2773
|
class: "flex flex-col gap-16"
|
|
2778
|
-
},
|
|
2774
|
+
}, is = {
|
|
2779
2775
|
class: "fm-typo-en-body-lg-600"
|
|
2780
|
-
},
|
|
2776
|
+
}, cs = {
|
|
2781
2777
|
class: "flex flex-col gap-16"
|
|
2782
|
-
},
|
|
2778
|
+
}, _s = /* @__PURE__ */ ie({
|
|
2783
2779
|
__name: "RuleCondition",
|
|
2784
2780
|
props: {
|
|
2785
2781
|
modelValue: {}
|
|
@@ -2790,16 +2786,16 @@ const rs = {
|
|
|
2790
2786
|
}) {
|
|
2791
2787
|
const {
|
|
2792
2788
|
t: n
|
|
2793
|
-
} =
|
|
2789
|
+
} = Ge(), r = e, a = t, s = x(() => {
|
|
2794
2790
|
var p;
|
|
2795
2791
|
return ((p = r.modelValue.restaurantRule) == null ? void 0 : p.restaurantAttributes) ?? {};
|
|
2796
|
-
}), u =
|
|
2792
|
+
}), u = x(() => {
|
|
2797
2793
|
var p;
|
|
2798
2794
|
return ((p = r.modelValue.restaurantRule) == null ? void 0 : p.restaurantCustomAttributes) ?? {};
|
|
2799
|
-
}),
|
|
2795
|
+
}), _ = x(() => {
|
|
2800
2796
|
var p;
|
|
2801
2797
|
return ((p = r.modelValue.itemRule) == null ? void 0 : p.itemAttributes) ?? {};
|
|
2802
|
-
}), c =
|
|
2798
|
+
}), c = x(() => {
|
|
2803
2799
|
var p;
|
|
2804
2800
|
return ((p = r.modelValue.itemRule) == null ? void 0 : p.itemCustomAttributes) ?? {};
|
|
2805
2801
|
}), E = oe([...(s.value.rules ?? []).map((p) => ({
|
|
@@ -2810,7 +2806,7 @@ const rs = {
|
|
|
2810
2806
|
...p,
|
|
2811
2807
|
id: crypto.randomUUID(),
|
|
2812
2808
|
property: `restaurant_custom_${p.property}`
|
|
2813
|
-
})), ...(
|
|
2809
|
+
})), ...(_.value.rules ?? []).map((p) => ({
|
|
2814
2810
|
...p,
|
|
2815
2811
|
id: crypto.randomUUID(),
|
|
2816
2812
|
property: `item_attr_${p.property}`
|
|
@@ -2862,8 +2858,8 @@ const rs = {
|
|
|
2862
2858
|
return Ze(() => E.value.length + k.value.length, (p) => {
|
|
2863
2859
|
p === 0 && g();
|
|
2864
2860
|
}), (p, L) => {
|
|
2865
|
-
const T =
|
|
2866
|
-
return
|
|
2861
|
+
const T = fe("FmButton");
|
|
2862
|
+
return W(), j("div", us, [V("p", is, Z(Y(n)("menu.rule_groups.condition_view.condition")), 1), V("div", cs, [(W(!0), j(de, null, Me(E.value, (y) => (W(), j("div", {
|
|
2867
2863
|
key: y.id
|
|
2868
2864
|
}, [Q(vn, {
|
|
2869
2865
|
ruleKey: y.property,
|
|
@@ -2874,7 +2870,7 @@ const rs = {
|
|
|
2874
2870
|
"onUpdate:modelValue": L[0] || (L[0] = (i) => {
|
|
2875
2871
|
R(i);
|
|
2876
2872
|
})
|
|
2877
|
-
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (
|
|
2873
|
+
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (W(!0), j(de, null, Me(k.value, (y) => (W(), j("div", {
|
|
2878
2874
|
key: y.key
|
|
2879
2875
|
}, [Q(vn, {
|
|
2880
2876
|
ruleKey: "",
|
|
@@ -2893,7 +2889,7 @@ const rs = {
|
|
|
2893
2889
|
}, null, 8, ["variant", "label"])])]);
|
|
2894
2890
|
};
|
|
2895
2891
|
}
|
|
2896
|
-
}),
|
|
2892
|
+
}), ms = { class: "flex w-full items-center space-x-8" }, ps = { class: "w-24" }, ds = { class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden" }, fs = { class: "whitespace-nowrap" }, gs = { class: "fm-typo-en-body-lg-600 whitespace-nowrap" }, Es = /* @__PURE__ */ ie({
|
|
2897
2893
|
__name: "RuleConditionListView",
|
|
2898
2894
|
props: {
|
|
2899
2895
|
number: {
|
|
@@ -2920,7 +2916,7 @@ const rs = {
|
|
|
2920
2916
|
},
|
|
2921
2917
|
emits: ["open-catalog-link-item-rule-form", "open-rule-condition-form"],
|
|
2922
2918
|
setup(e, { emit: t }) {
|
|
2923
|
-
const { t: n } =
|
|
2919
|
+
const { t: n } = xe(), r = {
|
|
2924
2920
|
$eq: n("menu.rule_groups.condition_view.operator.equals_to"),
|
|
2925
2921
|
$ne: n("menu.rule_groups.condition_view.operator.not_equals_to"),
|
|
2926
2922
|
$in: n("menu.rule_groups.condition_view.operator.in"),
|
|
@@ -2936,12 +2932,12 @@ const rs = {
|
|
|
2936
2932
|
$between: n("menu.rule_groups.condition_view.operator.between")
|
|
2937
2933
|
};
|
|
2938
2934
|
return (a, s) => {
|
|
2939
|
-
const u =
|
|
2940
|
-
return
|
|
2941
|
-
V("p",
|
|
2942
|
-
V("div",
|
|
2943
|
-
V("p",
|
|
2944
|
-
V("p",
|
|
2935
|
+
const u = fe("FmMenu");
|
|
2936
|
+
return W(), j("div", ms, [
|
|
2937
|
+
V("p", ps, Z(e.number) + ".", 1),
|
|
2938
|
+
V("div", ds, [
|
|
2939
|
+
V("p", fs, Z(e.property), 1),
|
|
2940
|
+
V("p", gs, Z(r[e.operator]), 1),
|
|
2945
2941
|
Q(u, {
|
|
2946
2942
|
trigger: "hover",
|
|
2947
2943
|
closeOnMouseLeave: ""
|
|
@@ -2949,16 +2945,16 @@ const rs = {
|
|
|
2949
2945
|
"menu-button": ae(() => [
|
|
2950
2946
|
V("p", {
|
|
2951
2947
|
ref: "valueTextRef",
|
|
2952
|
-
onClick: s[0] || (s[0] = se((
|
|
2948
|
+
onClick: s[0] || (s[0] = se((_) => e.isCatalogLinkItemRuleView ? a.$emit("open-catalog-link-item-rule-form") : a.$emit("open-rule-condition-form"), ["stop"])),
|
|
2953
2949
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate"
|
|
2954
2950
|
}, Z(e.value.join(", ")), 513)
|
|
2955
2951
|
]),
|
|
2956
2952
|
default: ae(() => [
|
|
2957
|
-
(
|
|
2958
|
-
key:
|
|
2953
|
+
(W(!0), j(de, null, Me(e.value, (_) => (W(), j("div", {
|
|
2954
|
+
key: _,
|
|
2959
2955
|
class: "flex flex-col px-8 space-y-8"
|
|
2960
2956
|
}, [
|
|
2961
|
-
V("p", null, Z(
|
|
2957
|
+
V("p", null, Z(_), 1)
|
|
2962
2958
|
]))), 128))
|
|
2963
2959
|
]),
|
|
2964
2960
|
_: 1
|
|
@@ -2967,17 +2963,24 @@ const rs = {
|
|
|
2967
2963
|
]);
|
|
2968
2964
|
};
|
|
2969
2965
|
}
|
|
2970
|
-
})
|
|
2966
|
+
});
|
|
2967
|
+
function js(e) {
|
|
2968
|
+
return Yn(e) ? jn : Wn.build(e);
|
|
2969
|
+
}
|
|
2970
|
+
function Ys(e) {
|
|
2971
|
+
return Xn(e) ? null : Kn.build(e);
|
|
2972
|
+
}
|
|
2973
|
+
const vs = {
|
|
2971
2974
|
class: "flex items-center gap-24"
|
|
2972
|
-
},
|
|
2975
|
+
}, ys = {
|
|
2973
2976
|
key: 0,
|
|
2974
2977
|
class: "fm-typo-en-headline-lg-600"
|
|
2975
|
-
},
|
|
2978
|
+
}, bs = {
|
|
2976
2979
|
key: 1,
|
|
2977
2980
|
class: "fm-typo-en-headline-lg-600"
|
|
2978
|
-
},
|
|
2981
|
+
}, hs = {
|
|
2979
2982
|
class: "flex gap-16 items-center"
|
|
2980
|
-
},
|
|
2983
|
+
}, ks = /* @__PURE__ */ ie({
|
|
2981
2984
|
__name: "RuleForm",
|
|
2982
2985
|
props: {
|
|
2983
2986
|
modelValue: {},
|
|
@@ -2992,28 +2995,28 @@ const rs = {
|
|
|
2992
2995
|
}) {
|
|
2993
2996
|
const {
|
|
2994
2997
|
t: r
|
|
2995
|
-
} =
|
|
2998
|
+
} = Ge(), a = oe(!1), s = (T) => {
|
|
2996
2999
|
typeof T == "boolean" ? a.value = T : a.value = !a.value;
|
|
2997
|
-
}, u = e,
|
|
3000
|
+
}, u = e, _ = n;
|
|
2998
3001
|
t({
|
|
2999
3002
|
show: a,
|
|
3000
3003
|
trigger: s
|
|
3001
3004
|
});
|
|
3002
|
-
const c =
|
|
3005
|
+
const c = x(() => {
|
|
3003
3006
|
var T;
|
|
3004
3007
|
return ((T = u.modelValue.restaurantRule) == null ? void 0 : T.restaurantAttributes) ?? {};
|
|
3005
|
-
}), E =
|
|
3008
|
+
}), E = x(() => {
|
|
3006
3009
|
var T;
|
|
3007
3010
|
return ((T = u.modelValue.restaurantRule) == null ? void 0 : T.restaurantCustomAttributes) ?? {};
|
|
3008
|
-
}), k =
|
|
3011
|
+
}), k = x(() => {
|
|
3009
3012
|
var T;
|
|
3010
3013
|
return ((T = u.modelValue.itemRule) == null ? void 0 : T.itemAttributes) ?? {};
|
|
3011
|
-
}), R =
|
|
3014
|
+
}), R = x(() => {
|
|
3012
3015
|
var T;
|
|
3013
3016
|
return ((T = u.modelValue.itemRule) == null ? void 0 : T.itemCustomAttributes) ?? {};
|
|
3014
3017
|
}), g = oe([...c.value.rules ?? [], ...E.value.rules ?? [], ...k.value.rules ?? [], ...R.value.rules ?? []]), p = oe([]);
|
|
3015
3018
|
function L() {
|
|
3016
|
-
var f, A, v,
|
|
3019
|
+
var f, A, v, m, C, D, B, w;
|
|
3017
3020
|
const T = u.modelValue, y = [], i = [], b = [], N = [];
|
|
3018
3021
|
if (p.value.length === 0) {
|
|
3019
3022
|
s(!1);
|
|
@@ -3047,7 +3050,7 @@ const rs = {
|
|
|
3047
3050
|
rules: y
|
|
3048
3051
|
},
|
|
3049
3052
|
restaurantCustomAttributes: {
|
|
3050
|
-
logic: ((
|
|
3053
|
+
logic: ((m = (v = T.restaurantRule) == null ? void 0 : v.restaurantCustomAttributes) == null ? void 0 : m.logic) ?? "AND",
|
|
3051
3054
|
rules: i
|
|
3052
3055
|
}
|
|
3053
3056
|
}, T.itemRule = {
|
|
@@ -3056,16 +3059,16 @@ const rs = {
|
|
|
3056
3059
|
rules: b
|
|
3057
3060
|
},
|
|
3058
3061
|
itemCustomAttributes: {
|
|
3059
|
-
logic: ((w = (
|
|
3062
|
+
logic: ((w = (B = T.itemRule) == null ? void 0 : B.itemCustomAttributes) == null ? void 0 : w.logic) ?? "AND",
|
|
3060
3063
|
rules: N
|
|
3061
3064
|
}
|
|
3062
|
-
}, s(!1),
|
|
3065
|
+
}, s(!1), _("update:modelValue", {
|
|
3063
3066
|
menuRule: T
|
|
3064
3067
|
});
|
|
3065
3068
|
}
|
|
3066
3069
|
return (T, y) => {
|
|
3067
|
-
const i =
|
|
3068
|
-
return
|
|
3070
|
+
const i = fe("FmButton"), b = fe("FmSideSheet");
|
|
3071
|
+
return W(), j(de, null, [Qe(T.$slots, "default", {
|
|
3069
3072
|
trigger: s
|
|
3070
3073
|
}), Q(b, {
|
|
3071
3074
|
modelValue: a.value,
|
|
@@ -3078,12 +3081,12 @@ const rs = {
|
|
|
3078
3081
|
blameFormChildOnValidationFailed: !0
|
|
3079
3082
|
}
|
|
3080
3083
|
}, {
|
|
3081
|
-
"side-sheet-header": ae(() => [V("div",
|
|
3084
|
+
"side-sheet-header": ae(() => [V("div", vs, [Q(i, {
|
|
3082
3085
|
variant: Y(Fe).Tertiary,
|
|
3083
3086
|
"prepend-icon": "arrow_back",
|
|
3084
3087
|
onClick: y[0] || (y[0] = se((N) => s(), ["stop"]))
|
|
3085
|
-
}, null, 8, ["variant"]),
|
|
3086
|
-
"side-sheet-footer": ae(() => [V("div",
|
|
3088
|
+
}, null, 8, ["variant"]), T.isEditMode && g.value.length > 0 ? (W(), j("div", ys, Z(Y(r)("menu.rule_groups.condition_view.edit_condition")), 1)) : (W(), j("div", bs, Z(Y(r)("menu.rule_groups.condition_view.add_condition")), 1))])]),
|
|
3089
|
+
"side-sheet-footer": ae(() => [V("div", hs, [Q(i, {
|
|
3087
3090
|
variant: "primary",
|
|
3088
3091
|
label: Y(r)("common.save"),
|
|
3089
3092
|
type: "submit"
|
|
@@ -3092,9 +3095,9 @@ const rs = {
|
|
|
3092
3095
|
label: Y(r)("common.cancel"),
|
|
3093
3096
|
onClick: y[2] || (y[2] = se((N) => s(!1), ["stop"]))
|
|
3094
3097
|
}, null, 8, ["label"])])]),
|
|
3095
|
-
default: ae(() => [Q(
|
|
3098
|
+
default: ae(() => [Q(_s, {
|
|
3096
3099
|
class: "p-16",
|
|
3097
|
-
"model-value":
|
|
3100
|
+
"model-value": T.modelValue,
|
|
3098
3101
|
"onUpdate:modelValue": y[1] || (y[1] = (N) => {
|
|
3099
3102
|
p.value = N;
|
|
3100
3103
|
})
|
|
@@ -3103,35 +3106,35 @@ const rs = {
|
|
|
3103
3106
|
}, 8, ["modelValue", "is-container", "is-container-props"])], 64);
|
|
3104
3107
|
};
|
|
3105
3108
|
}
|
|
3106
|
-
}),
|
|
3109
|
+
}), Ts = {
|
|
3107
3110
|
class: "flex items-center justify-between pb-8"
|
|
3108
|
-
},
|
|
3111
|
+
}, Is = {
|
|
3109
3112
|
key: 0,
|
|
3110
3113
|
class: "text-fm-color-neutral-gray-300"
|
|
3111
|
-
},
|
|
3114
|
+
}, Ns = {
|
|
3112
3115
|
class: "flex gap-8"
|
|
3113
|
-
},
|
|
3116
|
+
}, Rs = {
|
|
3114
3117
|
class: "flex flex-col space-y-8"
|
|
3115
|
-
},
|
|
3118
|
+
}, As = {
|
|
3116
3119
|
class: "fm-typo-en-body-lg-600"
|
|
3117
|
-
},
|
|
3120
|
+
}, Ls = {
|
|
3118
3121
|
class: "flex items-center space-x-8"
|
|
3119
|
-
},
|
|
3122
|
+
}, Os = {
|
|
3120
3123
|
class: "w-24"
|
|
3121
|
-
},
|
|
3124
|
+
}, Cs = {
|
|
3122
3125
|
class: "flex break-all fm-typo-en-body-lg-400 line-clamp-1 space-x-8"
|
|
3123
|
-
},
|
|
3126
|
+
}, Ss = {
|
|
3124
3127
|
class: "px-8"
|
|
3125
|
-
},
|
|
3128
|
+
}, Ds = {
|
|
3126
3129
|
key: 0,
|
|
3127
3130
|
class: "flex flex-col space-y-8"
|
|
3128
|
-
},
|
|
3131
|
+
}, Ps = {
|
|
3129
3132
|
class: "fm-typo-en-body-lg-600"
|
|
3130
|
-
},
|
|
3133
|
+
}, ws = {
|
|
3131
3134
|
class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden"
|
|
3132
|
-
},
|
|
3135
|
+
}, Fs = {
|
|
3133
3136
|
class: "whitespace-nowrap"
|
|
3134
|
-
},
|
|
3137
|
+
}, Xs = /* @__PURE__ */ ie({
|
|
3135
3138
|
__name: "RuleView",
|
|
3136
3139
|
props: {
|
|
3137
3140
|
modelValue: {
|
|
@@ -3162,23 +3165,23 @@ const rs = {
|
|
|
3162
3165
|
}) {
|
|
3163
3166
|
const {
|
|
3164
3167
|
t: n
|
|
3165
|
-
} =
|
|
3168
|
+
} = xe(), r = e, a = {
|
|
3166
3169
|
[yt.F_ORDER_FROM.Enum.ALL]: "ALL",
|
|
3167
3170
|
[yt.F_ORDER_FROM.Enum.POS_ONLY]: "POS ONLY",
|
|
3168
3171
|
[yt.F_ORDER_FROM.Enum.NONE]: "NONE"
|
|
3169
|
-
}, s = t, u = oe(),
|
|
3172
|
+
}, s = t, u = oe(), _ = x(() => {
|
|
3170
3173
|
var g, p;
|
|
3171
3174
|
return ((p = (g = r.modelValue.restaurantRule) == null ? void 0 : g.restaurantAttributes) == null ? void 0 : p.rules) ?? [];
|
|
3172
|
-
}), c =
|
|
3175
|
+
}), c = x(() => {
|
|
3173
3176
|
var g, p;
|
|
3174
3177
|
return ((p = (g = r.modelValue.restaurantRule) == null ? void 0 : g.restaurantCustomAttributes) == null ? void 0 : p.rules) ?? [];
|
|
3175
|
-
}), E =
|
|
3178
|
+
}), E = x(() => {
|
|
3176
3179
|
var g, p;
|
|
3177
3180
|
return ((p = (g = r.modelValue.itemRule) == null ? void 0 : g.itemAttributes) == null ? void 0 : p.rules) ?? [];
|
|
3178
|
-
}), k =
|
|
3181
|
+
}), k = x(() => {
|
|
3179
3182
|
var g, p;
|
|
3180
3183
|
return ((p = (g = r.modelValue.itemRule) == null ? void 0 : g.itemCustomAttributes) == null ? void 0 : p.rules) ?? [];
|
|
3181
|
-
}), R =
|
|
3184
|
+
}), R = x(() => [..._.value.map((g) => ({
|
|
3182
3185
|
...g,
|
|
3183
3186
|
property: `${n("menu.catalog.usage.restaurant")} ${g.property}`
|
|
3184
3187
|
})), ...c.value.map((g) => ({
|
|
@@ -3192,15 +3195,15 @@ const rs = {
|
|
|
3192
3195
|
property: `${n("menu.product.title")} ${g.property}`
|
|
3193
3196
|
}))]);
|
|
3194
3197
|
return (g, p) => {
|
|
3195
|
-
const L =
|
|
3196
|
-
return
|
|
3198
|
+
const L = fe("FmButton"), T = fe("FmMenu");
|
|
3199
|
+
return W(), j(de, null, [V("div", Ts, [e.title ? (W(), j("p", Is, Z(e.title), 1)) : we("", !0), V("div", Ns, [e.isCatalogLinkItemRuleView ? (W(), xt(L, {
|
|
3197
3200
|
key: 1,
|
|
3198
3201
|
variant: Y(Fe).Tertiary,
|
|
3199
3202
|
class: "cursor-pointer",
|
|
3200
3203
|
"prepend-icon": "edit",
|
|
3201
3204
|
"text-color": " text-fm-color-primary",
|
|
3202
3205
|
onClick: p[1] || (p[1] = se((y) => e.isCatalogLinkItemRuleView ? g.$emit("open-catalog-link-item-rule-form") : null, ["stop"]))
|
|
3203
|
-
}, null, 8, ["variant"])) : (
|
|
3206
|
+
}, null, 8, ["variant"])) : (W(), xt(ks, {
|
|
3204
3207
|
key: 0,
|
|
3205
3208
|
ref_key: "ruleFormRef",
|
|
3206
3209
|
ref: u,
|
|
@@ -3226,11 +3229,11 @@ const rs = {
|
|
|
3226
3229
|
"prepend-icon": "delete",
|
|
3227
3230
|
"text-color": " text-fm-color-typo-error",
|
|
3228
3231
|
onClick: p[2] || (p[2] = se(() => s("delete-rule", r.modelValue._id), ["stop"]))
|
|
3229
|
-
}, null, 8, ["variant"])])]), V("div",
|
|
3232
|
+
}, null, 8, ["variant"])])]), V("div", Rs, [V("p", As, Z(Y(n)("menu.rule_groups.condition_view.when")), 1), e.ruleGroupNames ? (W(!0), j(de, {
|
|
3230
3233
|
key: 0
|
|
3231
|
-
}, Me(e.ruleGroupNames, (y, i) => (
|
|
3234
|
+
}, Me(e.ruleGroupNames, (y, i) => (W(), j("div", {
|
|
3232
3235
|
key: y
|
|
3233
|
-
}, [V("div",
|
|
3236
|
+
}, [V("div", Ls, [V("p", Os, Z(i + 1) + ".", 1), V("div", Cs, [V("p", null, Z(Y(n)("menu.rule_groups.condition_view.in_rule_group")), 1), Q(T, {
|
|
3234
3237
|
trigger: "hover",
|
|
3235
3238
|
closeOnMouseLeave: ""
|
|
3236
3239
|
}, {
|
|
@@ -3240,13 +3243,13 @@ const rs = {
|
|
|
3240
3243
|
onClick: p[3] || (p[3] = se((b) => e.isCatalogLinkItemRuleView ? g.$emit("open-catalog-link-item-rule-form") : null, ["stop"])),
|
|
3241
3244
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate"
|
|
3242
3245
|
}, Z(y), 513)]),
|
|
3243
|
-
default: ae(() => [V("p",
|
|
3246
|
+
default: ae(() => [V("p", Ss, Z(y), 1)]),
|
|
3244
3247
|
_: 2
|
|
3245
|
-
}, 1024)])])]))), 128)) : we("", !0), (
|
|
3248
|
+
}, 1024)])])]))), 128)) : we("", !0), (W(!0), j(de, null, Me(R.value, (y, i) => {
|
|
3246
3249
|
var b;
|
|
3247
|
-
return
|
|
3250
|
+
return W(), j("div", {
|
|
3248
3251
|
key: y.property
|
|
3249
|
-
}, [Q(
|
|
3252
|
+
}, [Q(Es, {
|
|
3250
3253
|
number: i + (((b = e.ruleGroupNames) == null ? void 0 : b.length) ?? 0) + 1,
|
|
3251
3254
|
property: y.property,
|
|
3252
3255
|
operator: y.operator,
|
|
@@ -3258,7 +3261,7 @@ const rs = {
|
|
|
3258
3261
|
return (f = u.value) == null ? void 0 : f.trigger();
|
|
3259
3262
|
})
|
|
3260
3263
|
}, null, 8, ["number", "property", "operator", "value", "isCatalogLinkItemRuleView"])]);
|
|
3261
|
-
}), 128))]), e.orderFrom ? (
|
|
3264
|
+
}), 128))]), e.orderFrom ? (W(), j("div", Ds, [V("p", Ps, Z(Y(n)("menu.rule_groups.condition_view.then")), 1), V("div", ws, [V("p", Fs, Z(Y(n)("menu.rule_groups.condition_view.product_availability")), 1), p[7] || (p[7] = V("p", {
|
|
3262
3265
|
class: "fm-typo-en-body-lg-600 text-fm-color-neutral-gray-300"
|
|
3263
3266
|
}, "is", -1)), V("p", {
|
|
3264
3267
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate",
|
|
@@ -3268,15 +3271,15 @@ const rs = {
|
|
|
3268
3271
|
}
|
|
3269
3272
|
});
|
|
3270
3273
|
export {
|
|
3271
|
-
|
|
3274
|
+
Bs as _,
|
|
3272
3275
|
Jn as a,
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3276
|
+
Xs as b,
|
|
3277
|
+
ks as c,
|
|
3278
|
+
Ws as d,
|
|
3279
|
+
xe as e,
|
|
3280
|
+
Ys as f,
|
|
3281
|
+
Es as g,
|
|
3282
|
+
_s as h,
|
|
3283
|
+
js as m,
|
|
3284
|
+
Ks as u
|
|
3282
3285
|
};
|