@feedmepos/mf-menu 0.32.4-dev → 0.32.4
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-5YVGeojR.js → App-Cl2SSoiw.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DhoHYIHW.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BgJucirp.js} +3 -3
- package/dist/{Catalog-BTNv5n_D.js → Catalog-C8Q0B2C8.js} +6 -6
- package/dist/{Category-BE-kkKcL.js → Category-gjOVtW9q.js} +4 -4
- package/dist/{Category-DuLhbRxE.js → Category-zmdzRTZE.js} +6 -6
- package/dist/{CookingGuide-JtE8QMC6.js → CookingGuide-BV2JxsLA.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DdJ-o_PW.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DTnI7QeB.js} +1 -1
- package/dist/{Group-DhS9e2E3.js → Group-BopSKuXZ.js} +3 -3
- package/dist/{Group-BP-j3K6J.js → Group-C3igOe0l.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DXUQrXXI.js → Group.vue_vue_type_script_setup_true_lang-CHfVlzzI.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXzz4ClS.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CX2NqlK3.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Bpt-8tbe.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-JuOs7w9n.js} +3313 -3313
- package/dist/{Ingredient-NSl0x-0T.js → Ingredient-CYnVkFwm.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-ByrNVvzs.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Dn7AA-v5.js} +2 -2
- package/dist/{LinkProductSideSheet-B_R_2iH6.js → LinkProductSideSheet-TWDPTDar.js} +3 -3
- package/dist/{MenuSetting-C7cpv4S3.js → MenuSetting-DsPd_yYY.js} +5 -5
- package/dist/{PrintRoute-DmP7KH58.js → PrintRoute-DyIaupKH.js} +4 -4
- package/dist/{Product-B6gwN4g0.js → Product-CWxadpao.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BKhn8Txf.js → Product.vue_vue_type_script_setup_true_lang-isQdXX-D.js} +13 -13
- package/dist/{ProductInternalTools-D5xIh2j2.js → ProductInternalTools-QTKMFdXW.js} +6 -6
- package/dist/{Products-Cxx8pJGK.js → Products-DeJJR3Jw.js} +11 -11
- package/dist/{Publish-ZCzRBB5V.js → Publish-C0nfHjTY.js} +3 -3
- package/dist/{Recipe-DcHdr_5J.js → Recipe-BZ1ti5Qy.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js → RuleView.vue_vue_type_script_setup_true_lang-CrOz9WgF.js} +495 -495
- package/dist/{Scheduler-ZhDXk5gQ.js → Scheduler-QRb1c9wT.js} +3 -3
- package/dist/{ServingSequence-DcfMbHjn.js → ServingSequence-Dpp5VSBL.js} +3 -3
- package/dist/{Setting-fqf_sOIc.js → Setting-CfxeKyj_.js} +5 -5
- package/dist/{Subcategory-BidmfEOK.js → Subcategory-Csw9JAX7.js} +4 -4
- package/dist/{Takeaway-p6thRg74.js → Takeaway-C5weNVhi.js} +4 -4
- package/dist/{Takeaway-C83SKEvl.js → Takeaway-TQ6GTG_s.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Dq6CjXCv.js → Takeaway.vue_vue_type_script_setup_true_lang-SQCoP3Xg.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CjLOy2k9.js → Thumbnail.vue_vue_type_script_setup_true_lang-DK8FPhBM.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CWdsp9eo.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D6TlEys_.js} +15 -15
- package/dist/{Unit-CKIaBxVE.js → Unit-BADJL6JT.js} +2 -2
- package/dist/{Variant-CE21vKC4.js → Variant-_BEgR7EY.js} +3 -3
- package/dist/{_id_-BhWpg9Kj.js → _id_-BgU8CUzB.js} +10 -10
- package/dist/{app-CEIhTuYG.js → app-Bz4tNDlz.js} +26 -26
- package/dist/{app-BkcVM9nE.js → app-vN6h029p.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-CStQ46Ze.js → linked-status-MG_lfeIJ.js} +5 -5
- package/dist/assets/{override-menu-DHTQAnIJ.js → override-menu-BpSpdmH9.js} +5 -5
- package/dist/assets/{validate-menu-C_kUDOhd.js → validate-menu--58To05g.js} +2 -2
- package/dist/{catalog-WBrPmQwl.js → catalog-rkbC7YvQ.js} +1 -1
- package/dist/{catalogSetting-BAry7I_V.js → catalogSetting-_q7-2iJB.js} +1 -1
- package/dist/{category-bW36h16p.js → category-C7djXZ8u.js} +1 -1
- package/dist/{currency-vVxHIVBs.js → currency-D6fj4gft.js} +1 -1
- package/dist/{index-Ba5-dCQA.js → index-B_EoIYyp.js} +1 -1
- package/dist/{index-XZlEgR2k.js → index-C4BTXKBR.js} +3 -3
- package/dist/{index-pxnQHVnU.js → index-CRrcZyox.js} +4 -4
- package/dist/{index-C0EV3eSc.js → index-LHTfIDr6.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js → index.vue_vue_type_script_setup_true_lang-Bscs8TwQ.js} +6 -6
- package/dist/{item-mFv0bFSn.js → item-V5kNSHAx.js} +14 -14
- package/dist/{iteration-CaFp1Rtz.js → iteration-QOguyqlt.js} +1 -1
- package/dist/{jszip.min-BkSmQKmf.js → jszip.min-DWXk2rBs.js} +2 -2
- package/dist/{menu-ud-tWfIM.js → menu-DMD-qKXH.js} +1 -1
- package/dist/{menuV2-xUMdUls0.js → menuV2-BtbCnS5e.js} +112 -112
- package/dist/{priceTier-BVTab4k1.js → priceTier-DzjN6Rbm.js} +1 -1
- package/dist/{scheduler-CAt7sELO.js → scheduler-DfVZ3cpl.js} +4 -4
- package/dist/{subcategory-DMZuedoM.js → subcategory-oc0Gsg_Y.js} +2 -2
- package/dist/{toExcel-CczXOnKy.js → toExcel-BUaSvyLK.js} +2 -2
- package/dist/{unit-CbD3sYqC.js → unit-DOraYsc1.js} +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ce, createElementBlock as j, openBlock as B, 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 xn, ref as oe, shallowRef as Hn, computed as G, watch as Ze, onMounted as bn, onUnmounted as Gn, h as hn, Text as Wn, Fragment as fe, resolveComponent as ge, unref as Y, withModifiers as se, renderList as
|
|
1
|
+
import { defineComponent as ce, createElementBlock as j, openBlock as B, 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 xn, ref as oe, shallowRef as Hn, computed as G, watch as Ze, onMounted as bn, onUnmounted as Gn, h as hn, Text as Wn, Fragment as fe, resolveComponent as ge, unref as Y, withModifiers as se, renderList as Fe, createBlock as Gt } from "vue";
|
|
2
2
|
import { x as Bn, N as Kn } from "./app-CzXxFrl1.js";
|
|
3
3
|
import { useCoreStore as Pt, useI18n as He, EMPTY_RULE as jn, isEmptyMongoQuery as Yn, isEmptyRule as Xn, useCustomAttributes as Wt } from "@feedmepos/mf-common";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { u as kn, I as Bt, z as yt } from "./index.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { FmButtonVariant as
|
|
5
|
+
import { u as kn, I as Bt, z as yt } from "./index.vue_vue_type_script_setup_true_lang-Bscs8TwQ.js";
|
|
6
|
+
import { FmButtonVariant as Me, components as qn } from "@feedmepos/ui-library";
|
|
7
7
|
const Jn = /* @__PURE__ */ ce({
|
|
8
8
|
__name: "FormColumn",
|
|
9
9
|
props: {
|
|
@@ -54,7 +54,7 @@ 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) =>
|
|
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) => F(e) && Object.keys(e).length === 0, te = Object.assign, ar = Object.create, x = (e = null) => ar(e);
|
|
58
58
|
let jt;
|
|
59
59
|
const he = () => jt || (jt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : x());
|
|
60
60
|
function Yt(e) {
|
|
@@ -64,8 +64,8 @@ const sr = Object.prototype.hasOwnProperty;
|
|
|
64
64
|
function le(e, t) {
|
|
65
65
|
return sr.call(e, t);
|
|
66
66
|
}
|
|
67
|
-
const z = Array.isArray, K = (e) => typeof e == "function", O = (e) => typeof e == "string", J = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", or = (e) => U(e) && K(e.then) && K(e.catch), Tn = Object.prototype.toString, wt = (e) => Tn.call(e),
|
|
68
|
-
function
|
|
67
|
+
const z = Array.isArray, K = (e) => typeof e == "function", O = (e) => typeof e == "string", J = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", or = (e) => U(e) && K(e.then) && K(e.catch), Tn = Object.prototype.toString, wt = (e) => Tn.call(e), F = (e) => wt(e) === "[object Object]", lr = (e) => e == null ? "" : z(e) || F(e) && e.toString === Tn ? JSON.stringify(e, null, 2) : String(e);
|
|
68
|
+
function Mt(e, t = "") {
|
|
69
69
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
70
70
|
}
|
|
71
71
|
function ur(e, t) {
|
|
@@ -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
|
|
117
|
+
const me = " ", 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, A = () => 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
|
|
133
|
-
s =
|
|
132
|
+
function L(m = 0) {
|
|
133
|
+
s = m;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
const
|
|
137
|
-
for (;
|
|
135
|
+
function v() {
|
|
136
|
+
const m = n + s;
|
|
137
|
+
for (; m !== n; )
|
|
138
138
|
b();
|
|
139
139
|
s = 0;
|
|
140
140
|
}
|
|
@@ -142,37 +142,37 @@ function fr(e) {
|
|
|
142
142
|
index: R,
|
|
143
143
|
line: g,
|
|
144
144
|
column: p,
|
|
145
|
-
peekOffset:
|
|
145
|
+
peekOffset: A,
|
|
146
146
|
charAt: T,
|
|
147
147
|
currentChar: y,
|
|
148
148
|
currentPeek: i,
|
|
149
149
|
next: b,
|
|
150
150
|
peek: N,
|
|
151
151
|
reset: f,
|
|
152
|
-
resetPeek:
|
|
153
|
-
skipToPeek:
|
|
152
|
+
resetPeek: L,
|
|
153
|
+
skipToPeek: v
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
const
|
|
157
|
-
function
|
|
158
|
-
const n = t.location !== !1, r = fr(e), a = () => r.index(), s = () => ir(r.line(), r.column(), r.index()), u = s(),
|
|
156
|
+
const Ee = void 0, gr = ".", Xt = "'", Er = "tokenizer";
|
|
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(), _ = 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,
|
|
168
168
|
inLinked: !1,
|
|
169
169
|
text: ""
|
|
170
|
-
},
|
|
170
|
+
}, E = () => c, { onError: k } = t;
|
|
171
171
|
function R(o, l, h, ...S) {
|
|
172
|
-
const X =
|
|
172
|
+
const X = E();
|
|
173
173
|
if (l.column += h, l.offset += h, k) {
|
|
174
|
-
const
|
|
175
|
-
domain:
|
|
174
|
+
const M = n ? Tt(X.startLoc, l) : null, d = nt(o, M, {
|
|
175
|
+
domain: Er,
|
|
176
176
|
args: S
|
|
177
177
|
});
|
|
178
178
|
k(d);
|
|
@@ -188,12 +188,12 @@ function Er(e, t = {}) {
|
|
|
188
188
|
13
|
|
189
189
|
/* TokenTypes.EOF */
|
|
190
190
|
);
|
|
191
|
-
function
|
|
191
|
+
function A(o, l) {
|
|
192
192
|
return o.currentChar() === l ? (o.next(), l) : (R($.EXPECTED_TOKEN, s(), 0, l), "");
|
|
193
193
|
}
|
|
194
194
|
function T(o) {
|
|
195
195
|
let l = "";
|
|
196
|
-
for (; o.currentPeek() ===
|
|
196
|
+
for (; o.currentPeek() === me || o.currentPeek() === ne; )
|
|
197
197
|
l += o.currentPeek(), o.peek();
|
|
198
198
|
return l;
|
|
199
199
|
}
|
|
@@ -202,7 +202,7 @@ function Er(e, t = {}) {
|
|
|
202
202
|
return o.skipToPeek(), l;
|
|
203
203
|
}
|
|
204
204
|
function i(o) {
|
|
205
|
-
if (o ===
|
|
205
|
+
if (o === Ee)
|
|
206
206
|
return !1;
|
|
207
207
|
const l = o.charCodeAt(0);
|
|
208
208
|
return l >= 97 && l <= 122 || // a-z
|
|
@@ -210,7 +210,7 @@ function Er(e, t = {}) {
|
|
|
210
210
|
l === 95;
|
|
211
211
|
}
|
|
212
212
|
function b(o) {
|
|
213
|
-
if (o ===
|
|
213
|
+
if (o === Ee)
|
|
214
214
|
return !1;
|
|
215
215
|
const l = o.charCodeAt(0);
|
|
216
216
|
return l >= 48 && l <= 57;
|
|
@@ -231,7 +231,7 @@ function Er(e, t = {}) {
|
|
|
231
231
|
const S = o.currentPeek() === "-" ? o.peek() : o.currentPeek(), X = b(S);
|
|
232
232
|
return o.resetPeek(), X;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function L(o, l) {
|
|
235
235
|
const { currentType: h } = l;
|
|
236
236
|
if (h !== 2)
|
|
237
237
|
return !1;
|
|
@@ -239,7 +239,7 @@ function Er(e, t = {}) {
|
|
|
239
239
|
const S = o.currentPeek() === Xt;
|
|
240
240
|
return o.resetPeek(), S;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function v(o, l) {
|
|
243
243
|
const { currentType: h } = l;
|
|
244
244
|
if (h !== 7)
|
|
245
245
|
return !1;
|
|
@@ -247,7 +247,7 @@ function Er(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;
|
|
@@ -268,8 +268,8 @@ function Er(e, t = {}) {
|
|
|
268
268
|
if (h !== 9)
|
|
269
269
|
return !1;
|
|
270
270
|
const S = () => {
|
|
271
|
-
const
|
|
272
|
-
return
|
|
271
|
+
const M = o.currentPeek();
|
|
272
|
+
return M === "{" ? i(o.peek()) : M === "@" || M === "|" || M === ":" || M === "." || M === me || !M ? !1 : M === ne ? (o.peek(), S()) : w(o, !1);
|
|
273
273
|
}, X = S();
|
|
274
274
|
return o.resetPeek(), X;
|
|
275
275
|
}
|
|
@@ -279,15 +279,15 @@ function Er(e, t = {}) {
|
|
|
279
279
|
return o.resetPeek(), l;
|
|
280
280
|
}
|
|
281
281
|
function w(o, l = !0) {
|
|
282
|
-
const h = (X = !1,
|
|
282
|
+
const h = (X = !1, M = "") => {
|
|
283
283
|
const d = o.currentPeek();
|
|
284
|
-
return d === "{" || d === "@" || !d ? X : d === "|" ? !(
|
|
284
|
+
return d === "{" || d === "@" || !d ? X : d === "|" ? !(M === me || M === ne) : d === me ? (o.peek(), h(!0, me)) : d === ne ? (o.peek(), h(!0, ne)) : !0;
|
|
285
285
|
}, S = h();
|
|
286
286
|
return l && o.resetPeek(), S;
|
|
287
287
|
}
|
|
288
288
|
function P(o, l) {
|
|
289
289
|
const h = o.currentChar();
|
|
290
|
-
return h ===
|
|
290
|
+
return h === Ee ? Ee : l(h) ? (o.next(), h) : null;
|
|
291
291
|
}
|
|
292
292
|
function Te(o) {
|
|
293
293
|
const l = o.charCodeAt(0);
|
|
@@ -319,14 +319,14 @@ function Er(e, t = {}) {
|
|
|
319
319
|
function ut(o) {
|
|
320
320
|
return P(o, lt);
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function _e(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
328
|
function We(o) {
|
|
329
|
-
return P(o,
|
|
329
|
+
return P(o, _e);
|
|
330
330
|
}
|
|
331
331
|
function Be(o) {
|
|
332
332
|
let l = "", h = "";
|
|
@@ -340,7 +340,7 @@ function Er(e, t = {}) {
|
|
|
340
340
|
const h = o.currentChar();
|
|
341
341
|
if (h === "{" || h === "}" || h === "@" || h === "|" || !h)
|
|
342
342
|
break;
|
|
343
|
-
if (h ===
|
|
343
|
+
if (h === me || h === ne)
|
|
344
344
|
if (w(o))
|
|
345
345
|
l += h, o.next();
|
|
346
346
|
else {
|
|
@@ -358,23 +358,23 @@ function Er(e, t = {}) {
|
|
|
358
358
|
let l = "", h = "";
|
|
359
359
|
for (; l = ot(o); )
|
|
360
360
|
h += l;
|
|
361
|
-
return o.currentChar() ===
|
|
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 += `-${Be(o)}`) : l += Be(o), o.currentChar() ===
|
|
366
|
+
return o.currentChar() === "-" ? (o.next(), l += `-${Be(o)}`) : l += Be(o), o.currentChar() === Ee && R($.UNTERMINATED_CLOSING_BRACE, s(), 0), l;
|
|
367
367
|
}
|
|
368
368
|
function Ht(o) {
|
|
369
369
|
return o !== Xt && o !== ne;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
y(o),
|
|
371
|
+
function mt(o) {
|
|
372
|
+
y(o), A(o, "'");
|
|
373
373
|
let l = "", h = "";
|
|
374
374
|
for (; l = P(o, Ht); )
|
|
375
375
|
l === "\\" ? h += pt(o) : h += l;
|
|
376
376
|
const S = o.currentChar();
|
|
377
|
-
return S === ne || S ===
|
|
377
|
+
return S === ne || S === Ee ? (R($.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), S === ne && (o.next(), A(o, "'")), h) : (A(o, "'"), h);
|
|
378
378
|
}
|
|
379
379
|
function pt(o) {
|
|
380
380
|
const l = o.currentChar();
|
|
@@ -391,20 +391,20 @@ function Er(e, t = {}) {
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
function Ke(o, l, h) {
|
|
394
|
-
|
|
394
|
+
A(o, l);
|
|
395
395
|
let S = "";
|
|
396
396
|
for (let X = 0; X < h; X++) {
|
|
397
|
-
const
|
|
398
|
-
if (!
|
|
397
|
+
const M = We(o);
|
|
398
|
+
if (!M) {
|
|
399
399
|
R($.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${l}${S}${o.currentChar()}`);
|
|
400
400
|
break;
|
|
401
401
|
}
|
|
402
|
-
S +=
|
|
402
|
+
S += M;
|
|
403
403
|
}
|
|
404
404
|
return `\\${l}${S}`;
|
|
405
405
|
}
|
|
406
406
|
function dt(o) {
|
|
407
|
-
return o !== "{" && o !== "}" && o !==
|
|
407
|
+
return o !== "{" && o !== "}" && o !== me && o !== ne;
|
|
408
408
|
}
|
|
409
409
|
function ft(o) {
|
|
410
410
|
y(o);
|
|
@@ -419,16 +419,16 @@ function Er(e, t = {}) {
|
|
|
419
419
|
h += l;
|
|
420
420
|
return h;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Et(o) {
|
|
423
423
|
const l = (h) => {
|
|
424
424
|
const S = o.currentChar();
|
|
425
|
-
return S === "{" || S === "@" || S === "|" || S === "(" || S === ")" || !S || S ===
|
|
425
|
+
return S === "{" || S === "@" || S === "|" || S === "(" || S === ")" || !S || S === me ? h : (h += S, o.next(), l(h));
|
|
426
426
|
};
|
|
427
427
|
return l("");
|
|
428
428
|
}
|
|
429
429
|
function Se(o) {
|
|
430
430
|
y(o);
|
|
431
|
-
const l =
|
|
431
|
+
const l = A(
|
|
432
432
|
o,
|
|
433
433
|
"|"
|
|
434
434
|
/* TokenChars.Pipe */
|
|
@@ -455,18 +455,18 @@ function Er(e, t = {}) {
|
|
|
455
455
|
case "@":
|
|
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
|
-
let X = !0,
|
|
458
|
+
let X = !0, M = !0, d = !0;
|
|
459
459
|
if (W(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
|
-
if (
|
|
466
|
-
return h = g(l, 5,
|
|
467
|
-
if (d =
|
|
468
|
-
return h = g(l, 6,
|
|
469
|
-
if (!X && !
|
|
465
|
+
if (M = f(o, l))
|
|
466
|
+
return h = g(l, 5, _t(o)), y(o), h;
|
|
467
|
+
if (d = L(o, l))
|
|
468
|
+
return h = g(l, 6, mt(o)), y(o), h;
|
|
469
|
+
if (!X && !M && !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;
|
|
472
472
|
}
|
|
@@ -477,7 +477,7 @@ function Er(e, t = {}) {
|
|
|
477
477
|
const { currentType: h } = l;
|
|
478
478
|
let S = null;
|
|
479
479
|
const X = o.currentChar();
|
|
480
|
-
switch ((h === 7 || h === 8 || h === 11 || h === 9) && (X === ne || X ===
|
|
480
|
+
switch ((h === 7 || h === 8 || h === 11 || h === 9) && (X === ne || X === me) && R($.INVALID_LINKED_FORMAT, s(), 0), X) {
|
|
481
481
|
case "@":
|
|
482
482
|
return o.next(), S = g(
|
|
483
483
|
l,
|
|
@@ -500,7 +500,7 @@ function Er(e, t = {}) {
|
|
|
500
500
|
/* TokenChars.LinkedDelimiter */
|
|
501
501
|
);
|
|
502
502
|
default:
|
|
503
|
-
return W(o) ? (S = g(l, 1, Se(o)), l.braceNest = 0, l.inLinked = !1, S) :
|
|
503
|
+
return W(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) {
|
|
@@ -534,19 +534,19 @@ function Er(e, t = {}) {
|
|
|
534
534
|
}
|
|
535
535
|
return h;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function vt() {
|
|
538
538
|
const { currentType: o, offset: l, startLoc: h, endLoc: S } = c;
|
|
539
|
-
return c.lastType = o, c.lastOffset = l, c.lastStartLoc = h, c.lastEndLoc = S, c.offset = a(), c.startLoc = s(), r.currentChar() ===
|
|
539
|
+
return c.lastType = o, c.lastOffset = l, c.lastStartLoc = h, c.lastEndLoc = S, c.offset = a(), c.startLoc = s(), r.currentChar() === Ee ? g(
|
|
540
540
|
c,
|
|
541
541
|
13
|
|
542
542
|
/* TokenTypes.EOF */
|
|
543
543
|
) : De(r, c);
|
|
544
544
|
}
|
|
545
545
|
return {
|
|
546
|
-
nextToken:
|
|
546
|
+
nextToken: vt,
|
|
547
547
|
currentOffset: a,
|
|
548
548
|
currentPosition: s,
|
|
549
|
-
context:
|
|
549
|
+
context: E
|
|
550
550
|
};
|
|
551
551
|
}
|
|
552
552
|
const yr = "parser", br = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
@@ -565,12 +565,12 @@ function hr(e, t, n) {
|
|
|
565
565
|
}
|
|
566
566
|
function kr(e = {}) {
|
|
567
567
|
const t = e.location !== !1, { onError: n } = e;
|
|
568
|
-
function r(i, b, N, f, ...
|
|
569
|
-
const
|
|
570
|
-
if (
|
|
571
|
-
const
|
|
568
|
+
function r(i, b, N, f, ...L) {
|
|
569
|
+
const v = i.currentPosition();
|
|
570
|
+
if (v.offset += f, v.column += f, n) {
|
|
571
|
+
const m = t ? Tt(N, v) : null, C = nt(b, m, {
|
|
572
572
|
domain: yr,
|
|
573
|
-
args:
|
|
573
|
+
args: L
|
|
574
574
|
});
|
|
575
575
|
n(C);
|
|
576
576
|
}
|
|
@@ -586,25 +586,25 @@ 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
|
|
590
|
-
const N = i.context(), { lastOffset: f, lastStartLoc:
|
|
591
|
-
return
|
|
589
|
+
function _(i, b) {
|
|
590
|
+
const N = i.context(), { lastOffset: f, lastStartLoc: L } = N, v = a(5, f, L);
|
|
591
|
+
return v.index = parseInt(b, 10), i.nextToken(), s(v, i.currentOffset(), i.currentPosition()), v;
|
|
592
592
|
}
|
|
593
593
|
function c(i, b) {
|
|
594
|
-
const N = i.context(), { lastOffset: f, lastStartLoc:
|
|
595
|
-
return
|
|
594
|
+
const N = i.context(), { lastOffset: f, lastStartLoc: L } = N, v = a(4, f, L);
|
|
595
|
+
return v.key = b, i.nextToken(), s(v, i.currentOffset(), i.currentPosition()), v;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
const N = i.context(), { lastOffset: f, lastStartLoc:
|
|
599
|
-
return
|
|
597
|
+
function E(i, b) {
|
|
598
|
+
const N = i.context(), { lastOffset: f, lastStartLoc: L } = N, v = a(9, f, L);
|
|
599
|
+
return v.value = b.replace(br, hr), i.nextToken(), s(v, i.currentOffset(), i.currentPosition()), v;
|
|
600
600
|
}
|
|
601
601
|
function k(i) {
|
|
602
|
-
const b = i.nextToken(), N = i.context(), { lastOffset: f, lastStartLoc:
|
|
603
|
-
return b.type !== 11 ? (r(i, $.UNEXPECTED_EMPTY_LINKED_MODIFIER, N.lastStartLoc, 0),
|
|
602
|
+
const b = i.nextToken(), N = i.context(), { lastOffset: f, lastStartLoc: L } = N, v = a(8, f, L);
|
|
603
|
+
return b.type !== 11 ? (r(i, $.UNEXPECTED_EMPTY_LINKED_MODIFIER, N.lastStartLoc, 0), v.value = "", s(v, f, L), {
|
|
604
604
|
nextConsumeToken: b,
|
|
605
|
-
node:
|
|
606
|
-
}) : (b.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, ue(b)),
|
|
607
|
-
node:
|
|
605
|
+
node: v
|
|
606
|
+
}) : (b.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, ue(b)), v.value = b.value || "", s(v, i.currentOffset(), i.currentPosition()), {
|
|
607
|
+
node: v
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
610
|
function R(i, b) {
|
|
@@ -615,8 +615,8 @@ function kr(e = {}) {
|
|
|
615
615
|
const b = i.context(), N = a(6, b.offset, b.startLoc);
|
|
616
616
|
let f = i.nextToken();
|
|
617
617
|
if (f.type === 8) {
|
|
618
|
-
const
|
|
619
|
-
N.modifier =
|
|
618
|
+
const L = k(i);
|
|
619
|
+
N.modifier = L.node, f = L.nextConsumeToken || i.nextToken();
|
|
620
620
|
}
|
|
621
621
|
switch (f.type !== 9 && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(f)), f = i.nextToken(), f.type === 2 && (f = i.nextToken()), f.type) {
|
|
622
622
|
case 10:
|
|
@@ -626,15 +626,15 @@ 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
|
-
f.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(f)), N.key =
|
|
632
|
+
f.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(f)), N.key = E(i, f.value || "");
|
|
633
633
|
break;
|
|
634
634
|
default: {
|
|
635
635
|
r(i, $.UNEXPECTED_EMPTY_LINKED_KEY, b.lastStartLoc, 0);
|
|
636
|
-
const
|
|
637
|
-
return
|
|
636
|
+
const L = i.context(), v = a(7, L.offset, L.startLoc);
|
|
637
|
+
return v.value = "", s(v, L.offset, L.startLoc), N.key = v, s(N, L.offset, L.startLoc), {
|
|
638
638
|
nextConsumeToken: f,
|
|
639
639
|
node: N
|
|
640
640
|
};
|
|
@@ -645,51 +645,51 @@ function kr(e = {}) {
|
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
647
|
function p(i) {
|
|
648
|
-
const b = i.context(), N = b.currentType === 1 ? i.currentOffset() : b.offset, f = b.currentType === 1 ? b.endLoc : b.startLoc,
|
|
649
|
-
|
|
650
|
-
let
|
|
648
|
+
const b = i.context(), N = b.currentType === 1 ? i.currentOffset() : b.offset, f = b.currentType === 1 ? b.endLoc : b.startLoc, L = a(2, N, f);
|
|
649
|
+
L.items = [];
|
|
650
|
+
let v = null;
|
|
651
651
|
do {
|
|
652
|
-
const D =
|
|
653
|
-
switch (
|
|
652
|
+
const D = v || i.nextToken();
|
|
653
|
+
switch (v = null, D.type) {
|
|
654
654
|
case 0:
|
|
655
|
-
D.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(D)),
|
|
655
|
+
D.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(D)), L.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)),
|
|
658
|
+
D.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(D)), L.items.push(_(i, D.value || ""));
|
|
659
659
|
break;
|
|
660
660
|
case 4:
|
|
661
|
-
D.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(D)),
|
|
661
|
+
D.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(D)), L.items.push(c(i, D.value || ""));
|
|
662
662
|
break;
|
|
663
663
|
case 6:
|
|
664
|
-
D.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(D)),
|
|
664
|
+
D.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(D)), L.items.push(E(i, D.value || ""));
|
|
665
665
|
break;
|
|
666
666
|
case 7: {
|
|
667
667
|
const W = g(i);
|
|
668
|
-
|
|
668
|
+
L.items.push(W.node), v = W.nextConsumeToken || null;
|
|
669
669
|
break;
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
} while (b.currentType !== 13 && b.currentType !== 1);
|
|
673
|
-
const
|
|
674
|
-
return s(
|
|
675
|
-
}
|
|
676
|
-
function
|
|
677
|
-
const
|
|
678
|
-
let
|
|
679
|
-
const
|
|
680
|
-
|
|
673
|
+
const m = b.currentType === 1 ? b.lastOffset : i.currentOffset(), C = b.currentType === 1 ? b.lastEndLoc : i.currentPosition();
|
|
674
|
+
return s(L, m, C), L;
|
|
675
|
+
}
|
|
676
|
+
function A(i, b, N, f) {
|
|
677
|
+
const L = i.context();
|
|
678
|
+
let v = f.items.length === 0;
|
|
679
|
+
const m = a(1, b, N);
|
|
680
|
+
m.cases = [], m.cases.push(f);
|
|
681
681
|
do {
|
|
682
682
|
const C = p(i);
|
|
683
|
-
|
|
684
|
-
} while (
|
|
685
|
-
return
|
|
683
|
+
v || (v = C.items.length === 0), m.cases.push(C);
|
|
684
|
+
} while (L.currentType !== 13);
|
|
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
|
-
const b = i.context(), { offset: N, startLoc: f } = b,
|
|
689
|
-
return b.currentType === 13 ?
|
|
688
|
+
const b = i.context(), { offset: N, startLoc: f } = b, L = p(i);
|
|
689
|
+
return b.currentType === 13 ? L : A(i, N, f, L);
|
|
690
690
|
}
|
|
691
691
|
function y(i) {
|
|
692
|
-
const b =
|
|
692
|
+
const b = vr(i, te({}, e)), N = b.context(), f = a(0, N.offset, N.startLoc);
|
|
693
693
|
return t && f.loc && (f.loc.source = i), f.body = T(b), e.onCacheKey && (f.cacheKey = e.onCacheKey(i)), N.currentType !== 13 && r(b, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, i[N.offset] || ""), s(f, b.currentOffset(), b.currentPosition()), f;
|
|
694
694
|
}
|
|
695
695
|
return { parse: y };
|
|
@@ -709,9 +709,9 @@ function Tr(e, t = {}) {
|
|
|
709
709
|
}
|
|
710
710
|
function qt(e, t) {
|
|
711
711
|
for (let n = 0; n < e.length; n++)
|
|
712
|
-
|
|
712
|
+
Ft(e[n], t);
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function Ft(e, t) {
|
|
715
715
|
switch (e.type) {
|
|
716
716
|
case 1:
|
|
717
717
|
qt(e.cases, t), t.helper(
|
|
@@ -723,7 +723,7 @@ function Mt(e, t) {
|
|
|
723
723
|
qt(e.items, t);
|
|
724
724
|
break;
|
|
725
725
|
case 6: {
|
|
726
|
-
|
|
726
|
+
Ft(e.key, t), t.helper(
|
|
727
727
|
"linked"
|
|
728
728
|
/* HelperNameMap.LINKED */
|
|
729
729
|
), t.helper(
|
|
@@ -757,7 +757,7 @@ function Ir(e, t = {}) {
|
|
|
757
757
|
n.helper(
|
|
758
758
|
"normalize"
|
|
759
759
|
/* HelperNameMap.NORMALIZE */
|
|
760
|
-
), e.body &&
|
|
760
|
+
), e.body && Ft(e.body, n);
|
|
761
761
|
const r = n.context();
|
|
762
762
|
e.helpers = Array.from(r.helpers);
|
|
763
763
|
}
|
|
@@ -778,7 +778,7 @@ function Jt(e) {
|
|
|
778
778
|
t.push(r.value);
|
|
779
779
|
}
|
|
780
780
|
if (t.length === e.items.length) {
|
|
781
|
-
e.static =
|
|
781
|
+
e.static = Mt(t);
|
|
782
782
|
for (let n = 0; n < e.items.length; n++) {
|
|
783
783
|
const r = e.items[n];
|
|
784
784
|
(r.type === 3 || r.type === 9) && delete r.value;
|
|
@@ -786,24 +786,24 @@ function Jt(e) {
|
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function Le(e) {
|
|
790
790
|
switch (e.t = e.type, e.type) {
|
|
791
791
|
case 0: {
|
|
792
792
|
const t = e;
|
|
793
|
-
|
|
793
|
+
Le(t.body), t.b = t.body, delete t.body;
|
|
794
794
|
break;
|
|
795
795
|
}
|
|
796
796
|
case 1: {
|
|
797
797
|
const t = e, n = t.cases;
|
|
798
798
|
for (let r = 0; r < n.length; r++)
|
|
799
|
-
|
|
799
|
+
Le(n[r]);
|
|
800
800
|
t.c = n, delete t.cases;
|
|
801
801
|
break;
|
|
802
802
|
}
|
|
803
803
|
case 2: {
|
|
804
804
|
const t = e, n = t.items;
|
|
805
805
|
for (let r = 0; r < n.length; r++)
|
|
806
|
-
|
|
806
|
+
Le(n[r]);
|
|
807
807
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
808
808
|
break;
|
|
809
809
|
}
|
|
@@ -817,7 +817,7 @@ function Ae(e) {
|
|
|
817
817
|
}
|
|
818
818
|
case 6: {
|
|
819
819
|
const t = e;
|
|
820
|
-
|
|
820
|
+
Le(t.key), t.k = t.key, delete t.key, t.modifier && (Le(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
821
821
|
break;
|
|
822
822
|
}
|
|
823
823
|
case 5: {
|
|
@@ -846,27 +846,27 @@ 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
|
}
|
|
853
|
-
function
|
|
853
|
+
function E(T, y = !0) {
|
|
854
854
|
const i = y ? r : "";
|
|
855
855
|
c(a ? i + " ".repeat(T) : i);
|
|
856
856
|
}
|
|
857
857
|
function k(T = !0) {
|
|
858
858
|
const y = ++u.indentLevel;
|
|
859
|
-
T &&
|
|
859
|
+
T && E(y);
|
|
860
860
|
}
|
|
861
861
|
function R(T = !0) {
|
|
862
862
|
const y = --u.indentLevel;
|
|
863
|
-
T &&
|
|
863
|
+
T && E(y);
|
|
864
864
|
}
|
|
865
865
|
function g() {
|
|
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,
|
|
@@ -875,21 +875,21 @@ function Rr(e, t) {
|
|
|
875
875
|
needIndent: () => u.needIndent
|
|
876
876
|
};
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Lr(e, t) {
|
|
879
879
|
const { helper: n } = e;
|
|
880
880
|
e.push(`${n(
|
|
881
881
|
"linked"
|
|
882
882
|
/* HelperNameMap.LINKED */
|
|
883
|
-
)}(`),
|
|
883
|
+
)}(`), Ae(e, t.key), t.modifier ? (e.push(", "), Ae(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function Ar(e, t) {
|
|
886
886
|
const { helper: n, needIndent: r } = e;
|
|
887
887
|
e.push(`${n(
|
|
888
888
|
"normalize"
|
|
889
889
|
/* HelperNameMap.NORMALIZE */
|
|
890
890
|
)}([`), e.indent(r());
|
|
891
891
|
const a = t.items.length;
|
|
892
|
-
for (let s = 0; s < a && (
|
|
892
|
+
for (let s = 0; s < a && (Ae(e, t.items[s]), s !== a - 1); s++)
|
|
893
893
|
e.push(", ");
|
|
894
894
|
e.deindent(r()), e.push("])");
|
|
895
895
|
}
|
|
@@ -901,15 +901,15 @@ function Or(e, t) {
|
|
|
901
901
|
/* HelperNameMap.PLURAL */
|
|
902
902
|
)}([`), e.indent(r());
|
|
903
903
|
const a = t.cases.length;
|
|
904
|
-
for (let s = 0; s < a && (
|
|
904
|
+
for (let s = 0; s < a && (Ae(e, t.cases[s]), s !== a - 1); s++)
|
|
905
905
|
e.push(", ");
|
|
906
906
|
e.deindent(r()), e.push("])");
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
909
|
function Cr(e, t) {
|
|
910
|
-
t.body ?
|
|
910
|
+
t.body ? Ae(e, t.body) : e.push("null");
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function Ae(e, t) {
|
|
913
913
|
const { helper: n } = e;
|
|
914
914
|
switch (t.type) {
|
|
915
915
|
case 0:
|
|
@@ -919,10 +919,10 @@ function Le(e, t) {
|
|
|
919
919
|
Or(e, t);
|
|
920
920
|
break;
|
|
921
921
|
case 2:
|
|
922
|
-
|
|
922
|
+
Ar(e, t);
|
|
923
923
|
break;
|
|
924
924
|
case 6:
|
|
925
|
-
|
|
925
|
+
Lr(e, t);
|
|
926
926
|
break;
|
|
927
927
|
case 8:
|
|
928
928
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -960,32 +960,32 @@ 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:
|
|
968
|
+
_.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), _.indent(s), u.length > 0 && (_.push(`const { ${Mt(u.map((k) => `${k}: _${k}`), ", ")} } = ctx`), _.newline()), _.push("return "), Ae(_, 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,
|
|
973
|
-
map:
|
|
973
|
+
map: E ? E.toJSON() : void 0
|
|
974
974
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
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 && Le(_), { ast: _, code: "" }) : (Ir(_, n), Sr(_, n));
|
|
980
980
|
}
|
|
981
981
|
var Pr = { env: { NODE_ENV: "production" } };
|
|
982
982
|
function wr() {
|
|
983
983
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (he().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (he().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
984
984
|
}
|
|
985
985
|
function bt(e) {
|
|
986
|
-
return (n) =>
|
|
986
|
+
return (n) => Mr(n, e);
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function Mr(e, t) {
|
|
989
989
|
const n = Ur(t);
|
|
990
990
|
if (n == null)
|
|
991
991
|
throw Ue(
|
|
@@ -994,20 +994,20 @@ 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);
|
|
1003
1003
|
}
|
|
1004
|
-
const
|
|
1004
|
+
const Fr = ["b", "body"];
|
|
1005
1005
|
function Ur(e) {
|
|
1006
|
-
return
|
|
1006
|
+
return ve(e, Fr);
|
|
1007
1007
|
}
|
|
1008
1008
|
const Vr = ["c", "cases"];
|
|
1009
1009
|
function $r(e) {
|
|
1010
|
-
return
|
|
1010
|
+
return ve(e, Vr, []);
|
|
1011
1011
|
}
|
|
1012
1012
|
function Qt(e, t) {
|
|
1013
1013
|
const n = Hr(t);
|
|
@@ -1020,11 +1020,11 @@ function Qt(e, t) {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
const xr = ["s", "static"];
|
|
1022
1022
|
function Hr(e) {
|
|
1023
|
-
return
|
|
1023
|
+
return ve(e, xr);
|
|
1024
1024
|
}
|
|
1025
1025
|
const Gr = ["i", "items"];
|
|
1026
1026
|
function Wr(e) {
|
|
1027
|
-
return
|
|
1027
|
+
return ve(e, Gr, []);
|
|
1028
1028
|
}
|
|
1029
1029
|
function It(e, t) {
|
|
1030
1030
|
const n = Ut(t);
|
|
@@ -1063,22 +1063,22 @@ function It(e, t) {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
const Br = ["t", "type"];
|
|
1065
1065
|
function Ut(e) {
|
|
1066
|
-
return
|
|
1066
|
+
return ve(e, Br);
|
|
1067
1067
|
}
|
|
1068
1068
|
const Kr = ["v", "value"];
|
|
1069
1069
|
function Xe(e, t) {
|
|
1070
|
-
const n =
|
|
1070
|
+
const n = ve(e, Kr);
|
|
1071
1071
|
if (n)
|
|
1072
1072
|
return n;
|
|
1073
1073
|
throw Ue(t);
|
|
1074
1074
|
}
|
|
1075
1075
|
const jr = ["m", "modifier"];
|
|
1076
1076
|
function Yr(e) {
|
|
1077
|
-
return
|
|
1077
|
+
return ve(e, jr);
|
|
1078
1078
|
}
|
|
1079
1079
|
const Xr = ["k", "key"];
|
|
1080
1080
|
function qr(e) {
|
|
1081
|
-
const t =
|
|
1081
|
+
const t = ve(e, Xr);
|
|
1082
1082
|
if (t)
|
|
1083
1083
|
return t;
|
|
1084
1084
|
throw Ue(
|
|
@@ -1086,7 +1086,7 @@ function qr(e) {
|
|
|
1086
1086
|
/* NodeTypes.Linked */
|
|
1087
1087
|
);
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function ve(e, t, n) {
|
|
1090
1090
|
for (let r = 0; r < t.length; r++) {
|
|
1091
1091
|
const a = t[r];
|
|
1092
1092
|
if (le(e, a) && e[a] != null)
|
|
@@ -1104,7 +1104,7 @@ function Oe(e) {
|
|
|
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) {
|
|
@@ -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) || !F(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
|
}
|
|
@@ -1221,7 +1221,7 @@ function oa(e, t, n) {
|
|
|
1221
1221
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1222
1222
|
r = t[t.length - 1] !== "!";
|
|
1223
1223
|
const a = t.replace(/!/g, "");
|
|
1224
|
-
e.push(a), (z(n) ||
|
|
1224
|
+
e.push(a), (z(n) || F(n)) && n[a] && (r = n[a]);
|
|
1225
1225
|
}
|
|
1226
1226
|
return r;
|
|
1227
1227
|
}
|
|
@@ -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
|
|
@@ -1476,16 +1476,16 @@ function _a(e) {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
};
|
|
1478
1478
|
function p() {
|
|
1479
|
-
const
|
|
1480
|
-
if (r === 5 &&
|
|
1481
|
-
return n++,
|
|
1479
|
+
const A = e[n + 1];
|
|
1480
|
+
if (r === 5 && A === "'" || r === 6 && A === '"')
|
|
1481
|
+
return n++, _ = "\\" + A, 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],
|
|
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;
|
|
@@ -1520,28 +1520,28 @@ function ga() {
|
|
|
1520
1520
|
};
|
|
1521
1521
|
}
|
|
1522
1522
|
let Nn;
|
|
1523
|
-
function
|
|
1523
|
+
function Ea(e) {
|
|
1524
1524
|
Nn = e;
|
|
1525
1525
|
}
|
|
1526
1526
|
let Rn;
|
|
1527
|
-
function
|
|
1527
|
+
function va(e) {
|
|
1528
1528
|
Rn = e;
|
|
1529
1529
|
}
|
|
1530
|
-
let
|
|
1530
|
+
let Ln;
|
|
1531
1531
|
function ya(e) {
|
|
1532
|
-
|
|
1532
|
+
Ln = e;
|
|
1533
1533
|
}
|
|
1534
|
-
let
|
|
1534
|
+
let An = null;
|
|
1535
1535
|
const ba = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1536
|
-
|
|
1537
|
-
}, ha = /* @__NO_SIDE_EFFECTS__ */ () =>
|
|
1536
|
+
An = e;
|
|
1537
|
+
}, ha = /* @__NO_SIDE_EFFECTS__ */ () => An;
|
|
1538
1538
|
let On = null;
|
|
1539
1539
|
const rn = (e) => {
|
|
1540
1540
|
On = 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) ||
|
|
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) || F(e.fallbackLocale) || O(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, u = F(e.messages) ? e.messages : kt(a), _ = F(e.datetimeFormats) ? e.datetimeFormats : kt(a), c = F(e.numberFormats) ? e.numberFormats : kt(a), E = te(x(), e.modifiers, ga()), k = e.pluralRules || x(), 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, A = !!e.fallbackFormat, T = !!e.unresolving, y = K(e.postTranslation) ? e.postTranslation : null, i = F(e.processor) ? e.processor : null, b = J(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, f = K(e.messageCompiler) ? e.messageCompiler : Nn, L = K(e.messageResolver) ? e.messageResolver : Rn || pa, v = K(e.localeFallbacker) ? e.localeFallbacker : Ln || aa, m = U(e.fallbackContext) ? e.fallbackContext : void 0, C = e, D = U(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), W = 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,
|
|
@@ -1549,32 +1549,32 @@ function Ta(e = {}) {
|
|
|
1549
1549
|
locale: r,
|
|
1550
1550
|
fallbackLocale: s,
|
|
1551
1551
|
messages: u,
|
|
1552
|
-
modifiers:
|
|
1552
|
+
modifiers: E,
|
|
1553
1553
|
pluralRules: k,
|
|
1554
1554
|
missing: R,
|
|
1555
1555
|
missingWarn: g,
|
|
1556
1556
|
fallbackWarn: p,
|
|
1557
|
-
fallbackFormat:
|
|
1557
|
+
fallbackFormat: A,
|
|
1558
1558
|
unresolving: T,
|
|
1559
1559
|
postTranslation: y,
|
|
1560
1560
|
processor: i,
|
|
1561
1561
|
warnHtmlMessage: b,
|
|
1562
1562
|
escapeParameter: N,
|
|
1563
1563
|
messageCompiler: f,
|
|
1564
|
-
messageResolver:
|
|
1565
|
-
localeFallbacker:
|
|
1566
|
-
fallbackContext:
|
|
1564
|
+
messageResolver: L,
|
|
1565
|
+
localeFallbacker: v,
|
|
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 = W, __INTLIFY_PROD_DEVTOOLS__ && ea(P, n, w), P;
|
|
1571
1571
|
}
|
|
1572
1572
|
const kt = (e) => ({ [e]: x() });
|
|
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,26 +1595,26 @@ 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
|
-
const p = !!k.part,
|
|
1600
|
+
const p = !!k.part, A = Vt(e, k), T = u(
|
|
1601
1601
|
e,
|
|
1602
1602
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1603
1603
|
a,
|
|
1604
|
-
|
|
1604
|
+
A
|
|
1605
1605
|
);
|
|
1606
1606
|
if (!O(c) || c === "")
|
|
1607
|
-
return new Intl.DateTimeFormat(
|
|
1607
|
+
return new Intl.DateTimeFormat(A, R).format(E);
|
|
1608
1608
|
let y = {}, i, b = null;
|
|
1609
1609
|
const N = "datetime format";
|
|
1610
|
-
for (let
|
|
1610
|
+
for (let v = 0; v < T.length && (i = T[v], y = n[i] || {}, b = y[c], !F(b)); v++)
|
|
1611
1611
|
$t(e, c, i, g, N);
|
|
1612
|
-
if (!
|
|
1612
|
+
if (!F(b) || !O(i))
|
|
1613
1613
|
return r ? rt : c;
|
|
1614
1614
|
let f = `${i}__${c}`;
|
|
1615
1615
|
tt(R) || (f = `${f}__${JSON.stringify(R)}`);
|
|
1616
|
-
let
|
|
1617
|
-
return
|
|
1616
|
+
let L = _.get(f);
|
|
1617
|
+
return L || (L = new Intl.DateTimeFormat(i, te({}, b, R)), _.set(f, L)), p ? L.formatToParts(E) : L.format(E);
|
|
1618
1618
|
}
|
|
1619
1619
|
const Cn = [
|
|
1620
1620
|
"localeMatcher",
|
|
@@ -1640,29 +1640,29 @@ const Cn = [
|
|
|
1640
1640
|
];
|
|
1641
1641
|
function Nt(...e) {
|
|
1642
1642
|
const [t, n, r, a] = e, s = x();
|
|
1643
|
-
let u = x(),
|
|
1643
|
+
let u = x(), _;
|
|
1644
1644
|
if (O(t)) {
|
|
1645
1645
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1646
1646
|
if (!c)
|
|
1647
1647
|
throw de(pe.INVALID_ISO_DATE_ARGUMENT);
|
|
1648
|
-
const
|
|
1649
|
-
|
|
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
|
+
_ = new Date(E);
|
|
1650
1650
|
try {
|
|
1651
|
-
|
|
1651
|
+
_.toISOString();
|
|
1652
1652
|
} catch {
|
|
1653
1653
|
throw de(pe.INVALID_ISO_DATE_ARGUMENT);
|
|
1654
1654
|
}
|
|
1655
1655
|
} else if (rr(t)) {
|
|
1656
1656
|
if (isNaN(t.getTime()))
|
|
1657
1657
|
throw de(pe.INVALID_DATE_ARGUMENT);
|
|
1658
|
-
|
|
1658
|
+
_ = t;
|
|
1659
1659
|
} else if (ee(t))
|
|
1660
|
-
|
|
1660
|
+
_ = t;
|
|
1661
1661
|
else
|
|
1662
1662
|
throw de(pe.INVALID_ARGUMENT);
|
|
1663
|
-
return O(n) ? s.key = n :
|
|
1663
|
+
return O(n) ? s.key = n : F(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 :
|
|
1665
|
+
}), O(r) ? s.locale = r : F(r) && (u = r), F(a) && (u = a), [s.key || "", _, s, u];
|
|
1666
1666
|
}
|
|
1667
1667
|
function on(e, t, n) {
|
|
1668
1668
|
const r = e;
|
|
@@ -1672,26 +1672,26 @@ 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
|
-
const p = !!k.part,
|
|
1677
|
+
const p = !!k.part, A = Vt(e, k), T = u(
|
|
1678
1678
|
e,
|
|
1679
1679
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1680
1680
|
a,
|
|
1681
|
-
|
|
1681
|
+
A
|
|
1682
1682
|
);
|
|
1683
1683
|
if (!O(c) || c === "")
|
|
1684
|
-
return new Intl.NumberFormat(
|
|
1684
|
+
return new Intl.NumberFormat(A, R).format(E);
|
|
1685
1685
|
let y = {}, i, b = null;
|
|
1686
1686
|
const N = "number format";
|
|
1687
|
-
for (let
|
|
1687
|
+
for (let v = 0; v < T.length && (i = T[v], y = n[i] || {}, b = y[c], !F(b)); v++)
|
|
1688
1688
|
$t(e, c, i, g, N);
|
|
1689
|
-
if (!
|
|
1689
|
+
if (!F(b) || !O(i))
|
|
1690
1690
|
return r ? rt : c;
|
|
1691
1691
|
let f = `${i}__${c}`;
|
|
1692
1692
|
tt(R) || (f = `${f}__${JSON.stringify(R)}`);
|
|
1693
|
-
let
|
|
1694
|
-
return
|
|
1693
|
+
let L = _.get(f);
|
|
1694
|
+
return L || (L = new Intl.NumberFormat(i, te({}, b, R)), _.set(f, L)), p ? L.formatToParts(E) : L.format(E);
|
|
1695
1695
|
}
|
|
1696
1696
|
const Sn = [
|
|
1697
1697
|
"localeMatcher",
|
|
@@ -1720,10 +1720,10 @@ function Rt(...e) {
|
|
|
1720
1720
|
let u = x();
|
|
1721
1721
|
if (!ee(t))
|
|
1722
1722
|
throw de(pe.INVALID_ARGUMENT);
|
|
1723
|
-
const
|
|
1724
|
-
return O(n) ? s.key = n :
|
|
1723
|
+
const _ = t;
|
|
1724
|
+
return O(n) ? s.key = n : F(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 :
|
|
1726
|
+
}), O(r) ? s.locale = r : F(r) && (u = r), F(a) && (u = a), [s.key || "", _, s, u];
|
|
1727
1727
|
}
|
|
1728
1728
|
function un(e, t, n) {
|
|
1729
1729
|
const r = e;
|
|
@@ -1732,7 +1732,7 @@ function un(e, t, n) {
|
|
|
1732
1732
|
r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
const Ra = (e) => e,
|
|
1735
|
+
const Ra = (e) => e, La = (e) => "", Aa = "text", Oa = (e) => e.length === 0 ? "" : Mt(e), Ca = lr;
|
|
1736
1736
|
function cn(e, t) {
|
|
1737
1737
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1738
1738
|
}
|
|
@@ -1744,53 +1744,53 @@ 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 || x();
|
|
1748
1748
|
ee(e.pluralIndex) && Da(n, c);
|
|
1749
|
-
const
|
|
1749
|
+
const E = (i) => c[i];
|
|
1750
1750
|
function k(i, b) {
|
|
1751
1751
|
const N = K(e.messages) ? e.messages(i, !!b) : U(e.messages) ? e.messages[i] : !1;
|
|
1752
|
-
return N || (e.parent ? e.parent.message(i) :
|
|
1752
|
+
return N || (e.parent ? e.parent.message(i) : La);
|
|
1753
1753
|
}
|
|
1754
|
-
const R = (i) => e.modifiers ? e.modifiers[i] : Ra, g =
|
|
1755
|
-
list:
|
|
1756
|
-
named:
|
|
1754
|
+
const R = (i) => e.modifiers ? e.modifiers[i] : Ra, g = F(e.processor) && K(e.processor.normalize) ? e.processor.normalize : Oa, p = F(e.processor) && K(e.processor.interpolate) ? e.processor.interpolate : Ca, A = F(e.processor) && O(e.processor.type) ? e.processor.type : Aa, y = {
|
|
1755
|
+
list: _,
|
|
1756
|
+
named: E,
|
|
1757
1757
|
plural: s,
|
|
1758
1758
|
linked: (i, ...b) => {
|
|
1759
1759
|
const [N, f] = b;
|
|
1760
|
-
let
|
|
1761
|
-
b.length === 1 ? U(N) ? (
|
|
1762
|
-
const
|
|
1760
|
+
let L = "text", v = "";
|
|
1761
|
+
b.length === 1 ? U(N) ? (v = N.modifier || v, L = N.type || L) : O(N) && (v = N || v) : b.length === 2 && (O(N) && (v = N || v), O(f) && (L = f || L));
|
|
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
|
-
|
|
1764
|
+
L === "vnode" && z(m) && v ? m[0] : m
|
|
1765
1765
|
);
|
|
1766
|
-
return
|
|
1766
|
+
return v ? R(v)(C, L) : C;
|
|
1767
1767
|
},
|
|
1768
1768
|
message: k,
|
|
1769
|
-
type:
|
|
1769
|
+
type: A,
|
|
1770
1770
|
interpolate: p,
|
|
1771
1771
|
normalize: g,
|
|
1772
1772
|
values: te(x(), 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:
|
|
1779
|
-
g && wa(
|
|
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] = Lt(...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, A = O(E.default) || J(E.default) ? J(E.default) ? s ? c : () => c : E.default : n ? s ? c : () => c : null, T = n || A != null && (O(A) || K(A)), y = Vt(e, E);
|
|
1779
|
+
g && wa(E);
|
|
1780
1780
|
let [i, b, N] = p ? [
|
|
1781
1781
|
c,
|
|
1782
1782
|
y,
|
|
1783
|
-
|
|
1784
|
-
] : Dn(e, c, y, u, R, k), f = i,
|
|
1785
|
-
if (!p && !(O(f) || Oe(f) || re(f)) && T && (f =
|
|
1783
|
+
_[y] || x()
|
|
1784
|
+
] : Dn(e, c, y, u, R, k), f = i, L = c;
|
|
1785
|
+
if (!p && !(O(f) || Oe(f) || re(f)) && T && (f = A, L = f), !p && (!(O(f) || Oe(f) || re(f)) || !O(b)))
|
|
1786
1786
|
return a ? rt : c;
|
|
1787
|
-
let
|
|
1788
|
-
const
|
|
1789
|
-
|
|
1790
|
-
}, C = re(f) ? f : Pn(e, c, b, f,
|
|
1791
|
-
if (
|
|
1787
|
+
let v = !1;
|
|
1788
|
+
const m = () => {
|
|
1789
|
+
v = !0;
|
|
1790
|
+
}, C = re(f) ? f : Pn(e, c, b, f, L, m);
|
|
1791
|
+
if (v)
|
|
1792
1792
|
return f;
|
|
1793
|
-
const D = Ua(e, b, N,
|
|
1793
|
+
const D = Ua(e, b, N, E), W = Pa(D), w = Ma(e, C, W), P = r ? r(w, c) : w;
|
|
1794
1794
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1795
1795
|
const Te = {
|
|
1796
1796
|
timestamp: Date.now(),
|
|
@@ -1809,9 +1809,9 @@ function wa(e) {
|
|
|
1809
1809
|
});
|
|
1810
1810
|
}
|
|
1811
1811
|
function Dn(e, t, n, r, a, s) {
|
|
1812
|
-
const { messages: u, onWarn:
|
|
1812
|
+
const { messages: u, onWarn: _, messageResolver: c, localeFallbacker: E } = e, k = E(e, r, n);
|
|
1813
1813
|
let R = x(), g, p = null;
|
|
1814
|
-
const
|
|
1814
|
+
const A = "translate";
|
|
1815
1815
|
for (let T = 0; T < k.length && (g = k[T], R = u[g] || x(), (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(
|
|
@@ -1820,36 +1820,36 @@ function Dn(e, t, n, r, a, s) {
|
|
|
1820
1820
|
t,
|
|
1821
1821
|
g,
|
|
1822
1822
|
s,
|
|
1823
|
-
|
|
1823
|
+
A
|
|
1824
1824
|
);
|
|
1825
1825
|
y !== t && (p = y);
|
|
1826
1826
|
}
|
|
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
|
-
const
|
|
1833
|
-
return
|
|
1832
|
+
const E = r;
|
|
1833
|
+
return E.locale = E.locale || n, E.key = E.key || t, E;
|
|
1834
1834
|
}
|
|
1835
1835
|
if (u == null) {
|
|
1836
|
-
const
|
|
1837
|
-
return
|
|
1836
|
+
const E = (() => r);
|
|
1837
|
+
return E.locale = n, E.key = t, E;
|
|
1838
1838
|
}
|
|
1839
|
-
const c = u(r,
|
|
1839
|
+
const c = u(r, Fa(e, n, a, r, _, s));
|
|
1840
1840
|
return c.locale = n, c.key = t, c.source = r, c;
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function Ma(e, t, n) {
|
|
1843
1843
|
return t(n);
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1845
|
+
function Lt(...e) {
|
|
1846
1846
|
const [t, n, r] = e, a = x();
|
|
1847
1847
|
if (!O(t) && !ee(t) && !re(t) && !Oe(t))
|
|
1848
1848
|
throw de(pe.INVALID_ARGUMENT);
|
|
1849
1849
|
const s = ee(t) ? String(t) : (re(t), t);
|
|
1850
|
-
return ee(n) ? a.plural = n : O(n) ? a.default = n :
|
|
1850
|
+
return ee(n) ? a.plural = n : O(n) ? a.default = n : F(n) && !tt(n) ? a.named = n : z(n) && (a.list = n), ee(r) ? a.plural = r : O(r) ? a.default = r : F(r) && te(a, r), [s, a];
|
|
1851
1851
|
}
|
|
1852
|
-
function
|
|
1852
|
+
function Fa(e, t, n, r, a, s) {
|
|
1853
1853
|
return {
|
|
1854
1854
|
locale: t,
|
|
1855
1855
|
key: n,
|
|
@@ -1861,21 +1861,21 @@ 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,
|
|
1868
|
-
messages: (p,
|
|
1868
|
+
messages: (p, A) => {
|
|
1869
1869
|
let T = u(n, p);
|
|
1870
|
-
if (T == null && (k ||
|
|
1870
|
+
if (T == null && (k || A)) {
|
|
1871
1871
|
const [, , y] = Dn(
|
|
1872
1872
|
k || e,
|
|
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
|
);
|
|
1880
1880
|
T = u(y, p);
|
|
1881
1881
|
}
|
|
@@ -1884,14 +1884,14 @@ 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_8115313a-6810-4a99-8cde-068e7752bafd", 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", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_8115313a-6810-4a99-8cde-068e7752bafd", 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.0", 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: "1848", ACTIONS_ORCHESTRATION_ID: "7169d5ef-4415-4ea5-8632-65d0d01d98cc.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: "20260126.10.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:12998", 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: "21634382789", 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: "65330a2d657525501e05309412f81d55ee1c9fbe", 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_09d4fc7b-03fc-488a-8287-522da5e28861", INVOCATION_ID: "9f0b978efaf74f9abf8d22cb75881a87", 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: "494", 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 1000044470", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.59", 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.4-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: "65330a2d657525501e05309412f81d55ee1c9fbe", 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_8115313a-6810-4a99-8cde-068e7752bafd", 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_8115313a-6810-4a99-8cde-068e7752bafd", 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_8115313a-6810-4a99-8cde-068e7752bafd", 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_427b0706-e025-49cd-b8ba-49f40c2a8da9", 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", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_427b0706-e025-49cd-b8ba-49f40c2a8da9", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-253402.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.feedmeapi.com", GTM_ID: "GTM-WR8XHXLH", FIREBASE_MESSAGING_SENDER_ID: "128512026847", npm_package_files_0: "dist", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "production", 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.0", 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-zzez732dna-as.a.run.app", SYSTEMD_EXEC_PID: "1840", ACTIONS_ORCHESTRATION_ID: "3fe34bd4-8e52-468f-ba6c-f4ca5e12c276.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: "20260126.10.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.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:15703", GITHUB_WORKFLOW: "Publish mf-menu prod", _: "/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.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: "21634892926", VITE_REMY_BACKEND_URL: "https://remy-agent.feedmeapi.com", npm_package_devDependencies__types_lodash: "^4.17.6", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a31d1646cd38ef5a2c7fda90abdb5949d8e7568d", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "production", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", 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-prod.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-253402.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_634876f5-9d86-4a60-a55d-6a3f438ceb54", INVOCATION_ID: "1410022ab9de4e55ad9354fe491aacb6", 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: "130", GITHUB_TRIGGERING_ACTOR: "victorchai", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-2MP52PC24R", 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 1000044476", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_package_exports___style_css: "./dist/style.css", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist", npm_package_dependencies__feedmepos_core: "2.14.59", 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.4", 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: "false", FIREBASE_PROJECT_ID: "feedme-253402", 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: "a31d1646cd38ef5a2c7fda90abdb5949d8e7568d", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", 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_427b0706-e025-49cd-b8ba-49f40c2a8da9", 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_427b0706-e025-49cd-b8ba-49f40c2a8da9", 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: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", 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: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", 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_427b0706-e025-49cd-b8ba-49f40c2a8da9", 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
1896
|
function xa() {
|
|
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);
|
|
@@ -1912,7 +1912,7 @@ const Ce = {
|
|
|
1912
1912
|
function $e(e, ...t) {
|
|
1913
1913
|
return nt(e, null, void 0);
|
|
1914
1914
|
}
|
|
1915
|
-
const
|
|
1915
|
+
const At = /* @__PURE__ */ ke("__translateVNode"), Ot = /* @__PURE__ */ ke("__datetimeParts"), Ct = /* @__PURE__ */ ke("__numberParts"), Ha = ke("__setPluralRules"), wn = /* @__PURE__ */ ke("__injectWithOption"), St = /* @__PURE__ */ ke("__dispose");
|
|
1916
1916
|
function xe(e) {
|
|
1917
1917
|
if (!U(e))
|
|
1918
1918
|
return e;
|
|
@@ -1934,25 +1934,25 @@ function xe(e) {
|
|
|
1934
1934
|
}
|
|
1935
1935
|
return e;
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1938
|
-
const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, u =
|
|
1939
|
-
if (z(r) && r.forEach((
|
|
1940
|
-
if ("locale" in
|
|
1941
|
-
const { locale: c, resource:
|
|
1942
|
-
c ? (u[c] = u[c] || x(), Je(
|
|
1937
|
+
function Mn(e, t) {
|
|
1938
|
+
const { messages: n, __i18n: r, messageResolver: a, flatJson: s } = t, u = F(n) ? n : z(r) ? x() : { [e]: x() };
|
|
1939
|
+
if (z(r) && r.forEach((_) => {
|
|
1940
|
+
if ("locale" in _ && "resource" in _) {
|
|
1941
|
+
const { locale: c, resource: E } = _;
|
|
1942
|
+
c ? (u[c] = u[c] || x(), 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, _) && xe(u[_]);
|
|
1948
1948
|
return u;
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function Fn(e) {
|
|
1951
1951
|
return e.type;
|
|
1952
1952
|
}
|
|
1953
1953
|
function Ga(e, t, n) {
|
|
1954
1954
|
let r = U(t.messages) ? t.messages : x();
|
|
1955
|
-
"__i18nGlobal" in n && (r =
|
|
1955
|
+
"__i18nGlobal" in n && (r = Mn(e.locale.value, {
|
|
1956
1956
|
messages: r,
|
|
1957
1957
|
__i18n: n.__i18nGlobal
|
|
1958
1958
|
}));
|
|
@@ -1980,36 +1980,36 @@ function pn(e) {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
const dn = "__INTLIFY_META__", fn = () => [], Wa = () => !1;
|
|
1982
1982
|
let gn = 0;
|
|
1983
|
-
function
|
|
1983
|
+
function En(e) {
|
|
1984
1984
|
return ((t, n, r, a) => e(n, r, Dt() || void 0, a));
|
|
1985
1985
|
}
|
|
1986
1986
|
const Ba = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1987
1987
|
const e = Dt();
|
|
1988
1988
|
let t = null;
|
|
1989
|
-
return e && (t =
|
|
1989
|
+
return e && (t = Fn(e)[dn]) ? { [dn]: t } : null;
|
|
1990
1990
|
};
|
|
1991
1991
|
function Ka(e = {}) {
|
|
1992
1992
|
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = Kt ? oe : Hn;
|
|
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) ||
|
|
2000
|
-
),
|
|
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,
|
|
2002
|
-
const
|
|
2003
|
-
let
|
|
2004
|
-
|
|
1999
|
+
t && u ? t.fallbackLocale.value : O(e.fallbackLocale) || z(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : _.value
|
|
2000
|
+
), E = s(Mn(_.value, e)), k = s(F(e.datetimeFormats) ? e.datetimeFormats : { [_.value]: {} }), R = s(F(e.numberFormats) ? e.numberFormats : { [_.value]: {} });
|
|
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, A = 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
|
+
const L = t ? t.modifiers : F(e.modifiers) ? e.modifiers : {};
|
|
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
|
-
messages:
|
|
2011
|
-
modifiers:
|
|
2012
|
-
pluralRules:
|
|
2010
|
+
messages: E.value,
|
|
2011
|
+
modifiers: L,
|
|
2012
|
+
pluralRules: v,
|
|
2013
2013
|
missing: i === null ? void 0 : i,
|
|
2014
2014
|
missingWarn: g,
|
|
2015
2015
|
fallbackWarn: p,
|
|
@@ -2022,54 +2022,54 @@ 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 =
|
|
2025
|
+
d.datetimeFormats = k.value, d.numberFormats = R.value, d.__datetimeFormatters = F(m) ? m.__datetimeFormatters : void 0, d.__numberFormatters = F(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
2038
|
const W = G({
|
|
2039
|
-
get: () =>
|
|
2039
|
+
get: () => _.value,
|
|
2040
2040
|
set: (d) => {
|
|
2041
|
-
|
|
2041
|
+
_.value = d, m.locale = _.value;
|
|
2042
2042
|
}
|
|
2043
2043
|
}), w = G({
|
|
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 = G(() =>
|
|
2048
|
+
}), P = G(() => E.value), Te = /* @__PURE__ */ G(() => k.value), at = /* @__PURE__ */ G(() => 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 =
|
|
2059
|
+
d !== null && (i = En(d)), y = d, m.missing = i;
|
|
2060
2060
|
}
|
|
2061
|
-
const
|
|
2061
|
+
const _e = (d, I, H, 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
2069
|
if (H !== "translate exists" && // for not `te` (e.g `t`)
|
|
2070
2070
|
ee(Re) && Re === rt || H === "translate exists" && !Re) {
|
|
2071
2071
|
const [$n, ws] = I();
|
|
2072
|
-
return t &&
|
|
2072
|
+
return t && A ? q(t) : be($n);
|
|
2073
2073
|
} else {
|
|
2074
2074
|
if (je(Re))
|
|
2075
2075
|
return Re;
|
|
@@ -2077,7 +2077,7 @@ function Ka(e = {}) {
|
|
|
2077
2077
|
}
|
|
2078
2078
|
};
|
|
2079
2079
|
function We(...d) {
|
|
2080
|
-
return
|
|
2080
|
+
return _e((I) => Reflect.apply(mn, null, [I, ...d]), () => Lt(...d), "translate", (I) => Reflect.apply(I.t, I, [...d]), (I) => I, (I) => O(I));
|
|
2081
2081
|
}
|
|
2082
2082
|
function Be(...d) {
|
|
2083
2083
|
const [I, H, q] = d;
|
|
@@ -2086,53 +2086,53 @@ function Ka(e = {}) {
|
|
|
2086
2086
|
return We(I, H, te({ resolvedMessage: !0 }, q || {}));
|
|
2087
2087
|
}
|
|
2088
2088
|
function it(...d) {
|
|
2089
|
-
return
|
|
2089
|
+
return _e((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 _e((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
|
|
2103
|
+
return _e((I) => {
|
|
2104
2104
|
let H;
|
|
2105
2105
|
const q = I;
|
|
2106
2106
|
try {
|
|
2107
|
-
q.processor =
|
|
2107
|
+
q.processor = mt, H = Reflect.apply(mn, null, [q, ...d]);
|
|
2108
2108
|
} finally {
|
|
2109
2109
|
q.processor = null;
|
|
2110
2110
|
}
|
|
2111
2111
|
return H;
|
|
2112
|
-
}, () =>
|
|
2112
|
+
}, () => Lt(...d), "translate", (I) => I[At](...d), (I) => [pn(I)], (I) => z(I));
|
|
2113
2113
|
}
|
|
2114
2114
|
function Ke(...d) {
|
|
2115
|
-
return
|
|
2115
|
+
return _e((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 _e((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
|
-
|
|
2121
|
+
v = d, m.pluralRules = v;
|
|
2122
2122
|
}
|
|
2123
2123
|
function gt(d, I) {
|
|
2124
|
-
return
|
|
2124
|
+
return _e(() => {
|
|
2125
2125
|
if (!d)
|
|
2126
2126
|
return !1;
|
|
2127
|
-
const H = O(I) ? I :
|
|
2127
|
+
const H = O(I) ? I : _.value, q = Ie(H), be = m.messageResolver(q, d);
|
|
2128
2128
|
return Oe(be) || re(be) || O(be);
|
|
2129
2129
|
}, () => [d], "translate exists", (H) => Reflect.apply(H.te, H, [d, I]), Wa, (H) => J(H));
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2131
|
+
function Et(d) {
|
|
2132
2132
|
let I = null;
|
|
2133
|
-
const H = In(
|
|
2133
|
+
const H = In(m, c.value, _.value);
|
|
2134
2134
|
for (let q = 0; q < H.length; q++) {
|
|
2135
|
-
const be =
|
|
2135
|
+
const be = E.value[H[q]] || {}, je = m.messageResolver(be, d);
|
|
2136
2136
|
if (je != null) {
|
|
2137
2137
|
I = je;
|
|
2138
2138
|
break;
|
|
@@ -2141,11 +2141,11 @@ function Ka(e = {}) {
|
|
|
2141
2141
|
return I;
|
|
2142
2142
|
}
|
|
2143
2143
|
function Se(d) {
|
|
2144
|
-
const I =
|
|
2144
|
+
const I = Et(d);
|
|
2145
2145
|
return I ?? (t ? t.tm(d) || {} : {});
|
|
2146
2146
|
}
|
|
2147
2147
|
function Ie(d) {
|
|
2148
|
-
return
|
|
2148
|
+
return E.value[d] || {};
|
|
2149
2149
|
}
|
|
2150
2150
|
function Ne(d, I) {
|
|
2151
2151
|
if (a) {
|
|
@@ -2154,40 +2154,40 @@ function Ka(e = {}) {
|
|
|
2154
2154
|
le(H, q) && xe(H[q]);
|
|
2155
2155
|
I = H[d];
|
|
2156
2156
|
}
|
|
2157
|
-
|
|
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
2161
|
const H = { [d]: I };
|
|
2162
2162
|
if (a)
|
|
2163
2163
|
for (const q in H)
|
|
2164
2164
|
le(H, q) && xe(H[q]);
|
|
2165
|
-
I = H[d], Je(I,
|
|
2165
|
+
I = H[d], Je(I, E.value[d]), m.messages = E.value;
|
|
2166
2166
|
}
|
|
2167
|
-
function
|
|
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
|
-
const
|
|
2190
|
+
const M = {
|
|
2191
2191
|
id: gn,
|
|
2192
2192
|
locale: W,
|
|
2193
2193
|
fallbackLocale: w,
|
|
@@ -2195,17 +2195,17 @@ function Ka(e = {}) {
|
|
|
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
|
-
return Object.keys(
|
|
2201
|
+
return Object.keys(E.value).sort();
|
|
2202
2202
|
},
|
|
2203
2203
|
messages: P,
|
|
2204
2204
|
get modifiers() {
|
|
2205
|
-
return
|
|
2205
|
+
return L;
|
|
2206
2206
|
},
|
|
2207
2207
|
get pluralRules() {
|
|
2208
|
-
return
|
|
2208
|
+
return v || {};
|
|
2209
2209
|
},
|
|
2210
2210
|
get isGlobal() {
|
|
2211
2211
|
return r;
|
|
@@ -2214,37 +2214,37 @@ 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
|
-
return
|
|
2226
|
+
return A;
|
|
2227
2227
|
},
|
|
2228
2228
|
set fallbackRoot(d) {
|
|
2229
|
-
|
|
2229
|
+
A = d;
|
|
2230
2230
|
},
|
|
2231
2231
|
get fallbackFormat() {
|
|
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
2249
|
t: We,
|
|
2250
2250
|
getLocaleMessage: Ie,
|
|
@@ -2256,7 +2256,7 @@ function Ka(e = {}) {
|
|
|
2256
2256
|
setMissingHandler: ut,
|
|
2257
2257
|
[Ha]: ft
|
|
2258
2258
|
};
|
|
2259
|
-
return
|
|
2259
|
+
return M.datetimeFormats = Te, M.numberFormats = at, M.rt = Be, M.te = gt, M.tm = Se, M.d = it, M.n = ct, M.getDateTimeFormat = vt, M.setDateTimeFormat = o, M.mergeDateTimeFormat = l, M.getNumberFormat = h, M.setNumberFormat = S, M.mergeNumberFormat = X, M[wn] = n, M[At] = pt, M[Ot] = dt, M[Ct] = Ke, M;
|
|
2260
2260
|
}
|
|
2261
2261
|
const xt = {
|
|
2262
2262
|
tag: {
|
|
@@ -2306,16 +2306,16 @@ 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,
|
|
2312
|
-
let
|
|
2313
|
-
z(c) ?
|
|
2314
|
-
const
|
|
2309
|
+
let _ = x();
|
|
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(x(), g, { [p]: e.format[p] }) : g, x()));
|
|
2311
|
+
const c = r(e.value, u, _);
|
|
2312
|
+
let E = [u.key];
|
|
2313
|
+
z(c) ? E = c.map((g, p) => {
|
|
2314
|
+
const A = a[g.type], T = A ? A({ [g.type]: g.value, index: p, parts: c }) : [g.value];
|
|
2315
2315
|
return Ya(T) && (T[0].key = `${g.type}-${p}`), T;
|
|
2316
|
-
}) : O(c) && (
|
|
2316
|
+
}) : O(c) && (E = [c]);
|
|
2317
2317
|
const k = te(x(), s), R = O(e.tag) || U(e.tag) ? e.tag : Un();
|
|
2318
|
-
return hn(R, k,
|
|
2318
|
+
return hn(R, k, E);
|
|
2319
2319
|
};
|
|
2320
2320
|
}
|
|
2321
2321
|
te({
|
|
@@ -2343,7 +2343,7 @@ function Ge(e = {}) {
|
|
|
2343
2343
|
throw $e(Ce.MUST_BE_CALL_SETUP_TOP);
|
|
2344
2344
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2345
2345
|
throw $e(Ce.NOT_INSTALLED);
|
|
2346
|
-
const n = qa(t), r = Qa(n), a =
|
|
2346
|
+
const n = qa(t), r = Qa(n), a = Fn(t), s = Ja(e, a);
|
|
2347
2347
|
if (s === "global")
|
|
2348
2348
|
return Ga(r, e, a), r;
|
|
2349
2349
|
if (s === "parent") {
|
|
@@ -2351,12 +2351,12 @@ function Ge(e = {}) {
|
|
|
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
2362
|
const t = xn(e.isCE ? Xa : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
@@ -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;
|
|
@@ -2401,8 +2401,8 @@ function es(e, t, n) {
|
|
|
2401
2401
|
}, t);
|
|
2402
2402
|
}
|
|
2403
2403
|
xa();
|
|
2404
|
-
|
|
2405
|
-
|
|
2404
|
+
Ea(Zr);
|
|
2405
|
+
va(da);
|
|
2406
2406
|
ya(In);
|
|
2407
2407
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2408
2408
|
const e = he();
|
|
@@ -2493,8 +2493,8 @@ function ns() {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
function Ws(e = {}) {
|
|
2495
2495
|
const t = G(() => {
|
|
2496
|
-
var c,
|
|
2497
|
-
const u = ((c = e.menuItems) == null ? void 0 : c.value) || [],
|
|
2496
|
+
var c, E;
|
|
2497
|
+
const u = ((c = e.menuItems) == null ? void 0 : c.value) || [], _ = ((E = e.categories) == null ? void 0 : E.value) || [];
|
|
2498
2498
|
return [
|
|
2499
2499
|
{
|
|
2500
2500
|
type: "string",
|
|
@@ -2512,41 +2512,41 @@ function Ws(e = {}) {
|
|
|
2512
2512
|
type: "string",
|
|
2513
2513
|
key: "category",
|
|
2514
2514
|
entity: "item",
|
|
2515
|
-
values: ie(
|
|
2515
|
+
values: ie(_.filter((k) => !!k.name).map((k) => k.name))
|
|
2516
2516
|
}
|
|
2517
2517
|
];
|
|
2518
2518
|
}), n = G(() => {
|
|
2519
|
-
var
|
|
2519
|
+
var _;
|
|
2520
2520
|
const u = {};
|
|
2521
|
-
return (
|
|
2521
|
+
return (_ = e.categories) == null || _.value.forEach((c) => {
|
|
2522
2522
|
u[c.name] = c._id;
|
|
2523
2523
|
}), u;
|
|
2524
2524
|
}), r = G(() => {
|
|
2525
|
-
var
|
|
2525
|
+
var _;
|
|
2526
2526
|
const u = {};
|
|
2527
|
-
return (
|
|
2527
|
+
return (_ = e.categories) == null || _.value.forEach((c) => {
|
|
2528
2528
|
u[c._id] = c.name;
|
|
2529
2529
|
}), u;
|
|
2530
2530
|
});
|
|
2531
2531
|
function a(u) {
|
|
2532
|
-
const
|
|
2533
|
-
return
|
|
2532
|
+
const _ = Bt.cloneDeep(u);
|
|
2533
|
+
return _ != null && _.rules && (_.rules = _.rules.map((c) => {
|
|
2534
2534
|
if ("property" in c && c.property === "category" && Array.isArray(c.value)) {
|
|
2535
|
-
const
|
|
2536
|
-
return { ...c, value:
|
|
2535
|
+
const E = c.value.map((k) => r.value[k]);
|
|
2536
|
+
return { ...c, value: E };
|
|
2537
2537
|
}
|
|
2538
2538
|
return c;
|
|
2539
|
-
})),
|
|
2539
|
+
})), _;
|
|
2540
2540
|
}
|
|
2541
2541
|
function s(u) {
|
|
2542
|
-
const
|
|
2543
|
-
return
|
|
2542
|
+
const _ = Bt.cloneDeep(u);
|
|
2543
|
+
return _ != null && _.rules && (_.rules = _.rules.map((c) => {
|
|
2544
2544
|
if ("property" in c && c.property === "category" && Array.isArray(c.value)) {
|
|
2545
|
-
const
|
|
2546
|
-
return { ...c, value:
|
|
2545
|
+
const E = c.value.map((k) => n.value[k]);
|
|
2546
|
+
return { ...c, value: E };
|
|
2547
2547
|
}
|
|
2548
2548
|
return c;
|
|
2549
|
-
})),
|
|
2549
|
+
})), _;
|
|
2550
2550
|
}
|
|
2551
2551
|
return {
|
|
2552
2552
|
itemAttributes: t,
|
|
@@ -2566,7 +2566,7 @@ const rs = {
|
|
|
2566
2566
|
class: "flex w-full justify-between gap-16"
|
|
2567
2567
|
}, ss = {
|
|
2568
2568
|
class: "break-all fm-typo-en-body-lg-400 line-clamp-1"
|
|
2569
|
-
},
|
|
2569
|
+
}, vn = /* @__PURE__ */ ce({
|
|
2570
2570
|
__name: "RuleConditionSelector",
|
|
2571
2571
|
props: {
|
|
2572
2572
|
ruleKey: {
|
|
@@ -2602,42 +2602,42 @@ const rs = {
|
|
|
2602
2602
|
valueSource: Pt().restaurants,
|
|
2603
2603
|
entity: "restaurant"
|
|
2604
2604
|
}), {
|
|
2605
|
-
attributes:
|
|
2605
|
+
attributes: _
|
|
2606
2606
|
} = Wt({
|
|
2607
2607
|
valueSource: G(() => s.state.menu.modules.item || []),
|
|
2608
2608
|
entity: "item"
|
|
2609
|
-
}), c = ts(),
|
|
2610
|
-
label:
|
|
2611
|
-
value: `restaurant_attr_${
|
|
2612
|
-
})), ...u.value.map((
|
|
2613
|
-
label: `Restaurant ${
|
|
2614
|
-
value: `restaurant_custom_${
|
|
2615
|
-
})), ...
|
|
2616
|
-
label:
|
|
2617
|
-
value: `item_attr_${
|
|
2618
|
-
})), ...
|
|
2619
|
-
label: `Product ${
|
|
2620
|
-
value: `item_custom_${
|
|
2609
|
+
}), c = ts(), E = ns(), k = oe(r.ruleKey), R = G(() => [...c.map((v) => ({
|
|
2610
|
+
label: v.label,
|
|
2611
|
+
value: `restaurant_attr_${v.value}`
|
|
2612
|
+
})), ...u.value.map((v) => ({
|
|
2613
|
+
label: `Restaurant ${v.key}`,
|
|
2614
|
+
value: `restaurant_custom_${v.key}`
|
|
2615
|
+
})), ...E.map((v) => ({
|
|
2616
|
+
label: v.label,
|
|
2617
|
+
value: `item_attr_${v.value}`
|
|
2618
|
+
})), ..._.value.map((v) => ({
|
|
2619
|
+
label: `Product ${v.key}`,
|
|
2620
|
+
value: `item_custom_${v.key}`
|
|
2621
2621
|
}))]), g = oe(r.values), p = G(() => {
|
|
2622
|
-
const
|
|
2623
|
-
if (!
|
|
2624
|
-
if (
|
|
2625
|
-
const
|
|
2622
|
+
const v = k.value;
|
|
2623
|
+
if (!v) return [];
|
|
2624
|
+
if (v.startsWith("restaurant_attr_")) {
|
|
2625
|
+
const m = v.replace("restaurant_attr_", ""), C = c.find((D) => D.value === m);
|
|
2626
2626
|
if (C && Array.isArray(C.options))
|
|
2627
2627
|
return C.options;
|
|
2628
|
-
} else if (
|
|
2629
|
-
const
|
|
2628
|
+
} else if (v.startsWith("restaurant_custom_")) {
|
|
2629
|
+
const m = v.replace("restaurant_custom_", ""), C = u.value.find((D) => D.key === m);
|
|
2630
2630
|
if (C && Array.isArray(C.values))
|
|
2631
2631
|
return C.values.map((D) => ({
|
|
2632
2632
|
label: D,
|
|
2633
2633
|
value: D
|
|
2634
2634
|
}));
|
|
2635
|
-
} else if (
|
|
2636
|
-
const
|
|
2635
|
+
} else if (v.startsWith("item_attr_")) {
|
|
2636
|
+
const m = v.replace("item_attr_", ""), C = E.find((D) => D.value === m);
|
|
2637
2637
|
if (C && Array.isArray(C.options))
|
|
2638
2638
|
return C.options;
|
|
2639
|
-
} else if (
|
|
2640
|
-
const
|
|
2639
|
+
} else if (v.startsWith("item_custom_")) {
|
|
2640
|
+
const m = v.replace("item_custom_", ""), C = _.value.find((D) => D.key === m);
|
|
2641
2641
|
if (C && Array.isArray(C.values))
|
|
2642
2642
|
return C.values.map((D) => ({
|
|
2643
2643
|
label: D,
|
|
@@ -2645,7 +2645,7 @@ const rs = {
|
|
|
2645
2645
|
}));
|
|
2646
2646
|
}
|
|
2647
2647
|
return [];
|
|
2648
|
-
}),
|
|
2648
|
+
}), A = oe(r.operator), T = [{
|
|
2649
2649
|
label: n("menu.rule_groups.condition_view.operator.in"),
|
|
2650
2650
|
value: "$in"
|
|
2651
2651
|
}, {
|
|
@@ -2658,33 +2658,33 @@ const rs = {
|
|
|
2658
2658
|
label: n("menu.rule_groups.condition_view.operator.starts_with"),
|
|
2659
2659
|
value: "$startsWith"
|
|
2660
2660
|
}], y = oe(""), i = G(() => {
|
|
2661
|
-
const
|
|
2661
|
+
const v = p.value, m = Array.isArray(g.value) ? g.value : [], C = m.map((W) => v.find((w) => w.value === W)).filter(Boolean);
|
|
2662
2662
|
let D = [];
|
|
2663
|
-
return y.value ? (D =
|
|
2663
|
+
return y.value ? (D = v.filter((W) => W.label.toLowerCase().includes(y.value.toLowerCase()) && !m.includes(W.value)), [...C, ...D]) : (D = v.filter((W) => !m.includes(W.value)), [...C, ...D]);
|
|
2664
2664
|
}), b = G(() => {
|
|
2665
|
-
let
|
|
2666
|
-
return
|
|
2665
|
+
let v = R.value;
|
|
2666
|
+
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
2667
|
});
|
|
2668
|
-
Ze(() => k.value, (
|
|
2668
|
+
Ze(() => k.value, (v) => {
|
|
2669
2669
|
g.value = [];
|
|
2670
2670
|
});
|
|
2671
|
-
function N(
|
|
2672
|
-
if (
|
|
2673
|
-
const
|
|
2671
|
+
function N(v) {
|
|
2672
|
+
if (v.startsWith("restaurant_custom_")) {
|
|
2673
|
+
const m = v.replace("restaurant_custom_", ""), C = u.value.find((D) => D.key === m);
|
|
2674
2674
|
return (C == null ? void 0 : C.type) || "string";
|
|
2675
|
-
} else if (
|
|
2676
|
-
const
|
|
2675
|
+
} else if (v.startsWith("item_custom_")) {
|
|
2676
|
+
const m = v.replace("item_custom_", ""), C = _.value.find((D) => D.key === m);
|
|
2677
2677
|
return (C == null ? void 0 : C.type) || "string";
|
|
2678
2678
|
}
|
|
2679
2679
|
return "string";
|
|
2680
2680
|
}
|
|
2681
|
-
function f(
|
|
2682
|
-
const C = N(
|
|
2683
|
-
switch (
|
|
2681
|
+
function f(v, m) {
|
|
2682
|
+
const C = N(v === "ruleKey" ? m : k.value);
|
|
2683
|
+
switch (v) {
|
|
2684
2684
|
case "ruleKey":
|
|
2685
2685
|
a("update:modelValue", {
|
|
2686
|
-
ruleKey:
|
|
2687
|
-
operator:
|
|
2686
|
+
ruleKey: m,
|
|
2687
|
+
operator: A.value,
|
|
2688
2688
|
values: g.value,
|
|
2689
2689
|
uniqueKey: r.uniqueKey,
|
|
2690
2690
|
type: C,
|
|
@@ -2694,7 +2694,7 @@ const rs = {
|
|
|
2694
2694
|
case "operator":
|
|
2695
2695
|
a("update:modelValue", {
|
|
2696
2696
|
ruleKey: k.value,
|
|
2697
|
-
operator:
|
|
2697
|
+
operator: m,
|
|
2698
2698
|
values: g.value,
|
|
2699
2699
|
uniqueKey: r.uniqueKey,
|
|
2700
2700
|
type: C,
|
|
@@ -2704,8 +2704,8 @@ const rs = {
|
|
|
2704
2704
|
case "ruleValues":
|
|
2705
2705
|
a("update:modelValue", {
|
|
2706
2706
|
ruleKey: k.value,
|
|
2707
|
-
operator:
|
|
2708
|
-
values:
|
|
2707
|
+
operator: A.value,
|
|
2708
|
+
values: m,
|
|
2709
2709
|
uniqueKey: r.uniqueKey,
|
|
2710
2710
|
type: C,
|
|
2711
2711
|
action: "update"
|
|
@@ -2713,7 +2713,7 @@ const rs = {
|
|
|
2713
2713
|
break;
|
|
2714
2714
|
}
|
|
2715
2715
|
}
|
|
2716
|
-
function
|
|
2716
|
+
function L() {
|
|
2717
2717
|
a("update:modelValue", {
|
|
2718
2718
|
ruleKey: null,
|
|
2719
2719
|
operator: null,
|
|
@@ -2722,36 +2722,36 @@ const rs = {
|
|
|
2722
2722
|
action: "delete"
|
|
2723
2723
|
});
|
|
2724
2724
|
}
|
|
2725
|
-
return (
|
|
2725
|
+
return (v, m) => {
|
|
2726
2726
|
const C = ge("FmSearch"), D = ge("FmSelect"), W = ge("FmButton");
|
|
2727
2727
|
return B(), j("div", rs, [V("div", as, [Q(D, {
|
|
2728
2728
|
class: "flex w-full",
|
|
2729
2729
|
modelValue: k.value,
|
|
2730
|
-
"onUpdate:modelValue": [
|
|
2730
|
+
"onUpdate:modelValue": [m[2] || (m[2] = (w) => k.value = w), m[3] || (m[3] = (w) => f("ruleKey", w))],
|
|
2731
2731
|
items: b.value,
|
|
2732
2732
|
placeholder: Y(n)("menu.rule_groups.condition_view.select_item")
|
|
2733
2733
|
}, {
|
|
2734
2734
|
"prepend-menu": ae(() => [V("div", {
|
|
2735
|
-
onClick:
|
|
2735
|
+
onClick: m[1] || (m[1] = se(() => {
|
|
2736
2736
|
}, ["stop"]))
|
|
2737
2737
|
}, [Q(C, {
|
|
2738
2738
|
class: "px-8",
|
|
2739
2739
|
modelValue: y.value,
|
|
2740
|
-
"onUpdate:modelValue":
|
|
2740
|
+
"onUpdate:modelValue": m[0] || (m[0] = (w) => y.value = w),
|
|
2741
2741
|
placeholder: "Filter"
|
|
2742
2742
|
}, null, 8, ["modelValue"])])]),
|
|
2743
2743
|
_: 1
|
|
2744
2744
|
}, 8, ["modelValue", "items", "placeholder"]), Q(D, {
|
|
2745
2745
|
class: "flex w-full",
|
|
2746
|
-
modelValue:
|
|
2747
|
-
"onUpdate:modelValue": [
|
|
2746
|
+
modelValue: A.value,
|
|
2747
|
+
"onUpdate:modelValue": [m[4] || (m[4] = (w) => A.value = w), m[5] || (m[5] = (w) => f("operator", w))],
|
|
2748
2748
|
placeholder: Y(n)("menu.rule_groups.condition_view.select_item"),
|
|
2749
2749
|
items: T,
|
|
2750
2750
|
rules: [(w) => k.value && !w ? Y(n)("menu.rule_groups.condition_view.required") : !0]
|
|
2751
2751
|
}, null, 8, ["modelValue", "placeholder", "rules"]), Q(D, {
|
|
2752
2752
|
class: "flex w-full",
|
|
2753
2753
|
modelValue: g.value,
|
|
2754
|
-
"onUpdate:modelValue": [
|
|
2754
|
+
"onUpdate:modelValue": [m[7] || (m[7] = (w) => g.value = w), m[8] || (m[8] = (w) => f("ruleValues", w))],
|
|
2755
2755
|
items: i.value,
|
|
2756
2756
|
placeholder: Y(n)("menu.rule_groups.condition_view.select_item"),
|
|
2757
2757
|
multiselect: "",
|
|
@@ -2762,14 +2762,14 @@ const rs = {
|
|
|
2762
2762
|
"prepend-menu": ae(() => [Q(C, {
|
|
2763
2763
|
class: "px-8",
|
|
2764
2764
|
modelValue: y.value,
|
|
2765
|
-
"onUpdate:modelValue":
|
|
2765
|
+
"onUpdate:modelValue": m[6] || (m[6] = (w) => y.value = w),
|
|
2766
2766
|
placeholder: Y(n)("common.filter")
|
|
2767
2767
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
2768
2768
|
_: 1
|
|
2769
2769
|
}, 8, ["modelValue", "items", "placeholder", "rules"])]), Q(W, {
|
|
2770
2770
|
variant: "tertiary",
|
|
2771
2771
|
"prepend-icon": "close",
|
|
2772
|
-
onClick:
|
|
2772
|
+
onClick: m[9] || (m[9] = se((w) => L(), ["stop"]))
|
|
2773
2773
|
})]);
|
|
2774
2774
|
};
|
|
2775
2775
|
}
|
|
@@ -2796,13 +2796,13 @@ const rs = {
|
|
|
2796
2796
|
}), u = G(() => {
|
|
2797
2797
|
var p;
|
|
2798
2798
|
return ((p = r.modelValue.restaurantRule) == null ? void 0 : p.restaurantCustomAttributes) ?? {};
|
|
2799
|
-
}),
|
|
2799
|
+
}), _ = G(() => {
|
|
2800
2800
|
var p;
|
|
2801
2801
|
return ((p = r.modelValue.itemRule) == null ? void 0 : p.itemAttributes) ?? {};
|
|
2802
2802
|
}), c = G(() => {
|
|
2803
2803
|
var p;
|
|
2804
2804
|
return ((p = r.modelValue.itemRule) == null ? void 0 : p.itemCustomAttributes) ?? {};
|
|
2805
|
-
}),
|
|
2805
|
+
}), E = oe([...(s.value.rules ?? []).map((p) => ({
|
|
2806
2806
|
...p,
|
|
2807
2807
|
id: crypto.randomUUID(),
|
|
2808
2808
|
property: `restaurant_attr_${p.property}`
|
|
@@ -2810,7 +2810,7 @@ const rs = {
|
|
|
2810
2810
|
...p,
|
|
2811
2811
|
id: crypto.randomUUID(),
|
|
2812
2812
|
property: `restaurant_custom_${p.property}`
|
|
2813
|
-
})), ...(
|
|
2813
|
+
})), ...(_.value.rules ?? []).map((p) => ({
|
|
2814
2814
|
...p,
|
|
2815
2815
|
id: crypto.randomUUID(),
|
|
2816
2816
|
property: `item_attr_${p.property}`
|
|
@@ -2820,21 +2820,21 @@ const rs = {
|
|
|
2820
2820
|
property: `item_custom_${p.property}`
|
|
2821
2821
|
}))]);
|
|
2822
2822
|
bn(() => {
|
|
2823
|
-
|
|
2823
|
+
E.value.length === 0 && g();
|
|
2824
2824
|
});
|
|
2825
2825
|
const k = oe([]);
|
|
2826
2826
|
function R(p) {
|
|
2827
|
-
const
|
|
2827
|
+
const A = p.uniqueKey.split("_"), T = A[0] === "newCondition";
|
|
2828
2828
|
if (p.action === "delete")
|
|
2829
2829
|
if (T)
|
|
2830
2830
|
k.value = k.value.filter((y) => y.key !== p.uniqueKey);
|
|
2831
2831
|
else {
|
|
2832
|
-
const y =
|
|
2833
|
-
|
|
2832
|
+
const y = A.slice(1).join("_");
|
|
2833
|
+
E.value = E.value.filter((i) => i.id !== y);
|
|
2834
2834
|
}
|
|
2835
2835
|
else if (p.action === "update")
|
|
2836
2836
|
if (T)
|
|
2837
|
-
k.value = k.value.filter((y) => y.key !== p.uniqueKey),
|
|
2837
|
+
k.value = k.value.filter((y) => y.key !== p.uniqueKey), E.value.push({
|
|
2838
2838
|
id: crypto.randomUUID(),
|
|
2839
2839
|
property: p.ruleKey,
|
|
2840
2840
|
operator: p.operator,
|
|
@@ -2842,8 +2842,8 @@ const rs = {
|
|
|
2842
2842
|
type: p.type
|
|
2843
2843
|
});
|
|
2844
2844
|
else {
|
|
2845
|
-
const y =
|
|
2846
|
-
i !== -1 && (
|
|
2845
|
+
const y = A.slice(1).join("_"), i = E.value.findIndex((b) => b.id === y);
|
|
2846
|
+
i !== -1 && (E.value[i] = {
|
|
2847
2847
|
id: y,
|
|
2848
2848
|
// Keep the same ID
|
|
2849
2849
|
property: p.ruleKey,
|
|
@@ -2852,48 +2852,48 @@ const rs = {
|
|
|
2852
2852
|
type: p.type
|
|
2853
2853
|
});
|
|
2854
2854
|
}
|
|
2855
|
-
a("update:modelValue",
|
|
2855
|
+
a("update:modelValue", E.value);
|
|
2856
2856
|
}
|
|
2857
2857
|
function g() {
|
|
2858
2858
|
k.value.push({
|
|
2859
2859
|
key: `newCondition_${k.value.length}`
|
|
2860
2860
|
});
|
|
2861
2861
|
}
|
|
2862
|
-
return Ze(() =>
|
|
2862
|
+
return Ze(() => E.value.length + k.value.length, (p) => {
|
|
2863
2863
|
p === 0 && g();
|
|
2864
|
-
}), (p,
|
|
2864
|
+
}), (p, A) => {
|
|
2865
2865
|
const T = ge("FmButton");
|
|
2866
|
-
return B(), j("div", os, [V("p", ls, Z(Y(n)("menu.rule_groups.condition_view.condition")), 1), V("div", us, [(B(!0), j(fe, null,
|
|
2866
|
+
return B(), j("div", os, [V("p", ls, Z(Y(n)("menu.rule_groups.condition_view.condition")), 1), V("div", us, [(B(!0), j(fe, null, Fe(E.value, (y) => (B(), j("div", {
|
|
2867
2867
|
key: y.id
|
|
2868
|
-
}, [Q(
|
|
2868
|
+
}, [Q(vn, {
|
|
2869
2869
|
ruleKey: y.property,
|
|
2870
2870
|
operator: y.operator,
|
|
2871
2871
|
values: y.value,
|
|
2872
2872
|
"unique-key": `condition_${y.id}`,
|
|
2873
|
-
"selected-keys":
|
|
2874
|
-
"onUpdate:modelValue":
|
|
2873
|
+
"selected-keys": E.value.map((i) => i.property),
|
|
2874
|
+
"onUpdate:modelValue": A[0] || (A[0] = (i) => {
|
|
2875
2875
|
R(i);
|
|
2876
2876
|
})
|
|
2877
|
-
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (B(!0), j(fe, null,
|
|
2877
|
+
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (B(!0), j(fe, null, Fe(k.value, (y) => (B(), j("div", {
|
|
2878
2878
|
key: y.key
|
|
2879
|
-
}, [Q(
|
|
2879
|
+
}, [Q(vn, {
|
|
2880
2880
|
ruleKey: "",
|
|
2881
2881
|
operator: "",
|
|
2882
2882
|
"unique-key": y.key,
|
|
2883
2883
|
values: [],
|
|
2884
|
-
"selected-keys":
|
|
2885
|
-
"onUpdate:modelValue":
|
|
2884
|
+
"selected-keys": E.value.map((i) => i.property),
|
|
2885
|
+
"onUpdate:modelValue": A[1] || (A[1] = (i) => {
|
|
2886
2886
|
R(i);
|
|
2887
2887
|
})
|
|
2888
2888
|
}, null, 8, ["unique-key", "selected-keys"])]))), 128)), Q(T, {
|
|
2889
|
-
variant: Y(
|
|
2889
|
+
variant: Y(Me).Plain,
|
|
2890
2890
|
"prepend-icon": "add",
|
|
2891
2891
|
label: Y(n)("menu.rule_groups.condition_view.add_condition"),
|
|
2892
|
-
onClick:
|
|
2892
|
+
onClick: A[2] || (A[2] = se((y) => g(), ["stop"]))
|
|
2893
2893
|
}, null, 8, ["variant", "label"])])]);
|
|
2894
2894
|
};
|
|
2895
2895
|
}
|
|
2896
|
-
}), cs = { class: "flex w-full items-center space-x-8" },
|
|
2896
|
+
}), cs = { class: "flex w-full items-center space-x-8" }, _s = { class: "w-24" }, ms = { class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden" }, ps = { class: "whitespace-nowrap" }, ds = { class: "fm-typo-en-body-lg-600 whitespace-nowrap" }, fs = /* @__PURE__ */ ce({
|
|
2897
2897
|
__name: "RuleConditionListView",
|
|
2898
2898
|
props: {
|
|
2899
2899
|
number: {
|
|
@@ -2938,8 +2938,8 @@ const rs = {
|
|
|
2938
2938
|
return (a, s) => {
|
|
2939
2939
|
const u = ge("FmMenu");
|
|
2940
2940
|
return B(), j("div", cs, [
|
|
2941
|
-
V("p",
|
|
2942
|
-
V("div",
|
|
2941
|
+
V("p", _s, Z(e.number) + ".", 1),
|
|
2942
|
+
V("div", ms, [
|
|
2943
2943
|
V("p", ps, Z(e.property), 1),
|
|
2944
2944
|
V("p", ds, Z(r[e.operator]), 1),
|
|
2945
2945
|
Q(u, {
|
|
@@ -2949,16 +2949,16 @@ const rs = {
|
|
|
2949
2949
|
"menu-button": ae(() => [
|
|
2950
2950
|
V("p", {
|
|
2951
2951
|
ref: "valueTextRef",
|
|
2952
|
-
onClick: s[0] || (s[0] = se((
|
|
2952
|
+
onClick: s[0] || (s[0] = se((_) => e.isCatalogLinkItemRuleView ? a.$emit("open-catalog-link-item-rule-form") : a.$emit("open-rule-condition-form"), ["stop"])),
|
|
2953
2953
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate"
|
|
2954
2954
|
}, Z(e.value.join(", ")), 513)
|
|
2955
2955
|
]),
|
|
2956
2956
|
default: ae(() => [
|
|
2957
|
-
(B(!0), j(fe, null,
|
|
2958
|
-
key:
|
|
2957
|
+
(B(!0), j(fe, null, Fe(e.value, (_) => (B(), j("div", {
|
|
2958
|
+
key: _,
|
|
2959
2959
|
class: "flex flex-col px-8 space-y-8"
|
|
2960
2960
|
}, [
|
|
2961
|
-
V("p", null, Z(
|
|
2961
|
+
V("p", null, Z(_), 1)
|
|
2962
2962
|
]))), 128))
|
|
2963
2963
|
]),
|
|
2964
2964
|
_: 1
|
|
@@ -2969,10 +2969,10 @@ const rs = {
|
|
|
2969
2969
|
}
|
|
2970
2970
|
}), gs = {
|
|
2971
2971
|
class: "flex items-center gap-24"
|
|
2972
|
-
},
|
|
2972
|
+
}, Es = {
|
|
2973
2973
|
key: 0,
|
|
2974
2974
|
class: "fm-typo-en-headline-lg-600"
|
|
2975
|
-
},
|
|
2975
|
+
}, vs = {
|
|
2976
2976
|
key: 1,
|
|
2977
2977
|
class: "fm-typo-en-headline-lg-600"
|
|
2978
2978
|
}, ys = {
|
|
@@ -2994,7 +2994,7 @@ const rs = {
|
|
|
2994
2994
|
t: r
|
|
2995
2995
|
} = He(), a = oe(!1), s = (T) => {
|
|
2996
2996
|
typeof T == "boolean" ? a.value = T : a.value = !a.value;
|
|
2997
|
-
}, u = e,
|
|
2997
|
+
}, u = e, _ = n;
|
|
2998
2998
|
t({
|
|
2999
2999
|
show: a,
|
|
3000
3000
|
trigger: s
|
|
@@ -3002,7 +3002,7 @@ const rs = {
|
|
|
3002
3002
|
const c = G(() => {
|
|
3003
3003
|
var T;
|
|
3004
3004
|
return ((T = u.modelValue.restaurantRule) == null ? void 0 : T.restaurantAttributes) ?? {};
|
|
3005
|
-
}),
|
|
3005
|
+
}), E = G(() => {
|
|
3006
3006
|
var T;
|
|
3007
3007
|
return ((T = u.modelValue.restaurantRule) == null ? void 0 : T.restaurantCustomAttributes) ?? {};
|
|
3008
3008
|
}), k = G(() => {
|
|
@@ -3011,9 +3011,9 @@ const rs = {
|
|
|
3011
3011
|
}), R = G(() => {
|
|
3012
3012
|
var T;
|
|
3013
3013
|
return ((T = u.modelValue.itemRule) == null ? void 0 : T.itemCustomAttributes) ?? {};
|
|
3014
|
-
}), g = oe([...c.value.rules ?? [], ...
|
|
3015
|
-
function
|
|
3016
|
-
var f,
|
|
3014
|
+
}), g = oe([...c.value.rules ?? [], ...E.value.rules ?? [], ...k.value.rules ?? [], ...R.value.rules ?? []]), p = oe([]);
|
|
3015
|
+
function A() {
|
|
3016
|
+
var f, L, v, m, C, D, W, w;
|
|
3017
3017
|
const T = u.modelValue, y = [], i = [], b = [], N = [];
|
|
3018
3018
|
if (p.value.length === 0) {
|
|
3019
3019
|
s(!1);
|
|
@@ -3043,11 +3043,11 @@ const rs = {
|
|
|
3043
3043
|
});
|
|
3044
3044
|
}), T.restaurantRule = {
|
|
3045
3045
|
restaurantAttributes: {
|
|
3046
|
-
logic: ((
|
|
3046
|
+
logic: ((L = (f = T.restaurantRule) == null ? void 0 : f.restaurantAttributes) == null ? void 0 : L.logic) ?? "AND",
|
|
3047
3047
|
rules: y
|
|
3048
3048
|
},
|
|
3049
3049
|
restaurantCustomAttributes: {
|
|
3050
|
-
logic: ((
|
|
3050
|
+
logic: ((m = (v = T.restaurantRule) == null ? void 0 : v.restaurantCustomAttributes) == null ? void 0 : m.logic) ?? "AND",
|
|
3051
3051
|
rules: i
|
|
3052
3052
|
}
|
|
3053
3053
|
}, T.itemRule = {
|
|
@@ -3059,7 +3059,7 @@ const rs = {
|
|
|
3059
3059
|
logic: ((w = (W = T.itemRule) == null ? void 0 : W.itemCustomAttributes) == null ? void 0 : w.logic) ?? "AND",
|
|
3060
3060
|
rules: N
|
|
3061
3061
|
}
|
|
3062
|
-
}, s(!1),
|
|
3062
|
+
}, s(!1), _("update:modelValue", {
|
|
3063
3063
|
menuRule: T
|
|
3064
3064
|
});
|
|
3065
3065
|
}
|
|
@@ -3074,15 +3074,15 @@ const rs = {
|
|
|
3074
3074
|
"close-button": !1,
|
|
3075
3075
|
"is-container": Y(qn).FmForm,
|
|
3076
3076
|
"is-container-props": {
|
|
3077
|
-
onValidationSuccess:
|
|
3077
|
+
onValidationSuccess: A,
|
|
3078
3078
|
blameFormChildOnValidationFailed: !0
|
|
3079
3079
|
}
|
|
3080
3080
|
}, {
|
|
3081
3081
|
"side-sheet-header": ae(() => [V("div", gs, [Q(i, {
|
|
3082
|
-
variant: Y(
|
|
3082
|
+
variant: Y(Me).Tertiary,
|
|
3083
3083
|
"prepend-icon": "arrow_back",
|
|
3084
3084
|
onClick: y[0] || (y[0] = se((N) => s(), ["stop"]))
|
|
3085
|
-
}, null, 8, ["variant"]), e.isEditMode && g.value.length > 0 ? (B(), j("div",
|
|
3085
|
+
}, null, 8, ["variant"]), e.isEditMode && g.value.length > 0 ? (B(), j("div", Es, Z(Y(r)("menu.rule_groups.condition_view.edit_condition")), 1)) : (B(), j("div", vs, Z(Y(r)("menu.rule_groups.condition_view.add_condition")), 1))])]),
|
|
3086
3086
|
"side-sheet-footer": ae(() => [V("div", ys, [Q(i, {
|
|
3087
3087
|
variant: "primary",
|
|
3088
3088
|
label: Y(r)("common.save"),
|
|
@@ -3116,9 +3116,9 @@ const rs = {
|
|
|
3116
3116
|
class: "fm-typo-en-body-lg-600"
|
|
3117
3117
|
}, Rs = {
|
|
3118
3118
|
class: "flex items-center space-x-8"
|
|
3119
|
-
}, As = {
|
|
3120
|
-
class: "w-24"
|
|
3121
3119
|
}, Ls = {
|
|
3120
|
+
class: "w-24"
|
|
3121
|
+
}, As = {
|
|
3122
3122
|
class: "flex break-all fm-typo-en-body-lg-400 line-clamp-1 space-x-8"
|
|
3123
3123
|
}, Os = {
|
|
3124
3124
|
class: "px-8"
|
|
@@ -3166,25 +3166,25 @@ const rs = {
|
|
|
3166
3166
|
[yt.F_ORDER_FROM.Enum.ALL]: "ALL",
|
|
3167
3167
|
[yt.F_ORDER_FROM.Enum.POS_ONLY]: "POS ONLY",
|
|
3168
3168
|
[yt.F_ORDER_FROM.Enum.NONE]: "NONE"
|
|
3169
|
-
}, s = t, u = oe(),
|
|
3169
|
+
}, s = t, u = oe(), _ = G(() => {
|
|
3170
3170
|
var g, p;
|
|
3171
3171
|
return ((p = (g = r.modelValue.restaurantRule) == null ? void 0 : g.restaurantAttributes) == null ? void 0 : p.rules) ?? [];
|
|
3172
3172
|
}), c = G(() => {
|
|
3173
3173
|
var g, p;
|
|
3174
3174
|
return ((p = (g = r.modelValue.restaurantRule) == null ? void 0 : g.restaurantCustomAttributes) == null ? void 0 : p.rules) ?? [];
|
|
3175
|
-
}),
|
|
3175
|
+
}), E = G(() => {
|
|
3176
3176
|
var g, p;
|
|
3177
3177
|
return ((p = (g = r.modelValue.itemRule) == null ? void 0 : g.itemAttributes) == null ? void 0 : p.rules) ?? [];
|
|
3178
3178
|
}), k = G(() => {
|
|
3179
3179
|
var g, p;
|
|
3180
3180
|
return ((p = (g = r.modelValue.itemRule) == null ? void 0 : g.itemCustomAttributes) == null ? void 0 : p.rules) ?? [];
|
|
3181
|
-
}), R = G(() => [...
|
|
3181
|
+
}), R = G(() => [..._.value.map((g) => ({
|
|
3182
3182
|
...g,
|
|
3183
3183
|
property: `${n("menu.catalog.usage.restaurant")} ${g.property}`
|
|
3184
3184
|
})), ...c.value.map((g) => ({
|
|
3185
3185
|
...g,
|
|
3186
3186
|
property: `${n("menu.catalog.usage.restaurant")} ${g.property}`
|
|
3187
|
-
})), ...
|
|
3187
|
+
})), ...E.value.map((g) => ({
|
|
3188
3188
|
...g,
|
|
3189
3189
|
property: `${n("menu.product.title")} ${g.property}`
|
|
3190
3190
|
})), ...k.value.map((g) => ({
|
|
@@ -3192,10 +3192,10 @@ const rs = {
|
|
|
3192
3192
|
property: `${n("menu.product.title")} ${g.property}`
|
|
3193
3193
|
}))]);
|
|
3194
3194
|
return (g, p) => {
|
|
3195
|
-
const
|
|
3196
|
-
return B(), j(fe, null, [V("div", hs, [e.title ? (B(), j("p", ks, Z(e.title), 1)) : we("", !0), V("div", Ts, [e.isCatalogLinkItemRuleView ? (B(), Gt(
|
|
3195
|
+
const A = ge("FmButton"), T = ge("FmMenu");
|
|
3196
|
+
return B(), j(fe, null, [V("div", hs, [e.title ? (B(), j("p", ks, Z(e.title), 1)) : we("", !0), V("div", Ts, [e.isCatalogLinkItemRuleView ? (B(), Gt(A, {
|
|
3197
3197
|
key: 1,
|
|
3198
|
-
variant: Y(
|
|
3198
|
+
variant: Y(Me).Tertiary,
|
|
3199
3199
|
class: "cursor-pointer",
|
|
3200
3200
|
"prepend-icon": "edit",
|
|
3201
3201
|
"text-color": " text-fm-color-primary",
|
|
@@ -3212,25 +3212,25 @@ const rs = {
|
|
|
3212
3212
|
}, {
|
|
3213
3213
|
default: ae(({
|
|
3214
3214
|
trigger: y
|
|
3215
|
-
}) => [Q(
|
|
3216
|
-
variant: Y(
|
|
3215
|
+
}) => [Q(A, {
|
|
3216
|
+
variant: Y(Me).Tertiary,
|
|
3217
3217
|
class: "cursor-pointer",
|
|
3218
3218
|
"prepend-icon": "edit",
|
|
3219
3219
|
"text-color": " text-fm-color-primary",
|
|
3220
3220
|
onClick: se((i) => y(), ["stop"])
|
|
3221
3221
|
}, null, 8, ["variant", "onClick"])]),
|
|
3222
3222
|
_: 1
|
|
3223
|
-
}, 8, ["model-value"])), Q(
|
|
3224
|
-
variant: Y(
|
|
3223
|
+
}, 8, ["model-value"])), Q(A, {
|
|
3224
|
+
variant: Y(Me).Tertiary,
|
|
3225
3225
|
class: "cursor-pointer",
|
|
3226
3226
|
"prepend-icon": "delete",
|
|
3227
3227
|
"text-color": " text-fm-color-typo-error",
|
|
3228
3228
|
onClick: p[2] || (p[2] = se(() => s("delete-rule", r.modelValue._id), ["stop"]))
|
|
3229
3229
|
}, null, 8, ["variant"])])]), V("div", Is, [V("p", Ns, Z(Y(n)("menu.rule_groups.condition_view.when")), 1), e.ruleGroupNames ? (B(!0), j(fe, {
|
|
3230
3230
|
key: 0
|
|
3231
|
-
},
|
|
3231
|
+
}, Fe(e.ruleGroupNames, (y, i) => (B(), j("div", {
|
|
3232
3232
|
key: y
|
|
3233
|
-
}, [V("div", Rs, [V("p",
|
|
3233
|
+
}, [V("div", Rs, [V("p", Ls, Z(i + 1) + ".", 1), V("div", As, [V("p", null, Z(Y(n)("menu.rule_groups.condition_view.in_rule_group")), 1), Q(T, {
|
|
3234
3234
|
trigger: "hover",
|
|
3235
3235
|
closeOnMouseLeave: ""
|
|
3236
3236
|
}, {
|
|
@@ -3242,7 +3242,7 @@ const rs = {
|
|
|
3242
3242
|
}, Z(y), 513)]),
|
|
3243
3243
|
default: ae(() => [V("p", Os, Z(y), 1)]),
|
|
3244
3244
|
_: 2
|
|
3245
|
-
}, 1024)])])]))), 128)) : we("", !0), (B(!0), j(fe, null,
|
|
3245
|
+
}, 1024)])])]))), 128)) : we("", !0), (B(!0), j(fe, null, Fe(R.value, (y, i) => {
|
|
3246
3246
|
var b;
|
|
3247
3247
|
return B(), j("div", {
|
|
3248
3248
|
key: y.property
|