@feedmepos/mf-menu 0.32.35-dev.2 → 0.32.35-dev.3
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-9R8Q1NX1.js → App-C6c0q66Y.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DN-A0psX.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Bfjp18UF.js} +3 -3
- package/dist/{Catalog-B1AC4RdR.js → Catalog-CYDzH1SY.js} +6 -6
- package/dist/{Category-VtIYg0VA.js → Category-8lLNfsd8.js} +4 -4
- package/dist/{Category-DQGzAjrx.js → Category-BiWXNjhu.js} +6 -6
- package/dist/{CookingGuide-Cm6wivDI.js → CookingGuide-CWiUtVy3.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D4GbKAms.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-C4DUgTIj.js} +1 -1
- package/dist/{Group-DPmSRGPH.js → Group-cn9ZBUtD.js} +1 -1
- package/dist/{Group-CixyN1bU.js → Group-dkIIcfAu.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-_Nj5JL_A.js → Group.vue_vue_type_script_setup_true_lang-CXnqaOhB.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Wi6b7FBM.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CdWjthaH.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-B09ericS.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CRJo3baN.js} +208 -208
- package/dist/{Ingredient-CpA7TH4a.js → Ingredient-BTreZ3t_.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CE-MiFPL.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DJ86IPiW.js} +2 -2
- package/dist/{LinkProductSideSheet-46znE028.js → LinkProductSideSheet-BxRBvPgo.js} +3 -3
- package/dist/{MenuSetting-Dncqr5iy.js → MenuSetting-CLTYbAhq.js} +5 -5
- package/dist/{PrintRoute-CUy9rIE-.js → PrintRoute-D84ivR5v.js} +4 -4
- package/dist/{Product-C1sBQw30.js → Product-D2klIZ4Z.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BNRm8L6-.js → Product.vue_vue_type_script_setup_true_lang-22sHquTq.js} +12 -12
- package/dist/{ProductInternalTools-BSmyXcAI.js → ProductInternalTools-C8kVl3DU.js} +5 -5
- package/dist/{Products-BIfHVXZY.js → Products-GFTOBVe4.js} +25 -25
- package/dist/{Publish-DszPdy1o.js → Publish-DoYvbcML.js} +3 -3
- package/dist/{Recipe-MHTVal3K.js → Recipe-DHRib-WR.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-Dv7y5Ep2.js → RuleView.vue_vue_type_script_setup_true_lang-D3xdiLyn.js} +400 -400
- package/dist/{Scheduler-Bt9L3lVN.js → Scheduler-aNG6AwGF.js} +3 -3
- package/dist/{ServingSequence-Dqjs3Ttu.js → ServingSequence-dsu0dTxN.js} +3 -3
- package/dist/{Setting-B2qLDYTq.js → Setting-CEt_cruE.js} +5 -5
- package/dist/{Subcategory-CgGUFFKb.js → Subcategory-eqT29eSo.js} +4 -4
- package/dist/{Takeaway-QxAfVI2i.js → Takeaway-B4ybUpNn.js} +4 -4
- package/dist/{Takeaway-CNeVx6oT.js → Takeaway-BecC62KL.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-ENoAWBC5.js → Takeaway.vue_vue_type_script_setup_true_lang-D2pFaJad.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CUsGGSTx.js → Thumbnail.vue_vue_type_script_setup_true_lang-Cund4YhY.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CE3j-f-v.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Bqt4D49X.js} +14 -14
- package/dist/{Unit-ICgnVcxg.js → Unit-Dg0C1MNz.js} +2 -2
- package/dist/{Variant-CF3ZO20a.js → Variant-BczMAHfC.js} +3 -3
- package/dist/{_id_-DR3h521X.js → _id_-CqLikKDW.js} +9 -9
- package/dist/{app-VmQQyKjO.js → app-CS8sxrCm.js} +1 -1
- package/dist/{app-DkCtskHb.js → app-fcJDbW6R.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +7 -3
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -2
- package/dist/apps/mf-menu/src/helper/menu.d.ts +8197 -1
- package/dist/apps/mf-menu/src/manager/menu/priceTier.d.ts +1 -2
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-D1ZCgkn0.js → linked-status-DYGs2IRB.js} +2 -2
- package/dist/assets/{menu-export-Bh_7xZQz.js → menu-export-tp-e3hN_.js} +2 -2
- package/dist/assets/{override-menu-C8zoRoUn.js → override-menu-lcDyrVhB.js} +2 -2
- package/dist/assets/{validate-menu-DbEK59du.js → validate-menu-CubcMAjN.js} +2 -2
- package/dist/{catalog-Dyzpr9Lm.js → catalog-C1m61CRK.js} +1 -1
- package/dist/{catalogSetting-DGS39p6k.js → catalogSetting-Bm40q-Gc.js} +1 -1
- package/dist/{category-DeqF9GjB.js → category-Baqh5CL-.js} +1 -1
- package/dist/{currency-8MlDiFId.js → currency-D2fa3ERg.js} +1 -1
- package/dist/{dayjs.min-B9XI_fpV.js → dayjs.min-DvMxjMCb.js} +1 -1
- package/dist/{index-BfmoLHz0.js → index-BMeOJk5M.js} +4 -4
- package/dist/{index-BsInjBGw.js → index-CXEIHsJW.js} +3 -3
- package/dist/{index-CmL4ethQ.js → index-DGm-8nbU.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-9bxJ15g9.js → index.vue_vue_type_script_setup_true_lang-CNDgm-I2.js} +5512 -5560
- package/dist/{item-VIA9OOrY.js → item-C16ck6da.js} +168 -172
- package/dist/{jszip.min-DamORBle.js → jszip.min-BC_Gr2sa.js} +2 -2
- package/dist/{menu-CnnT6ZYy.js → menu-DUGAQ62C.js} +1 -1
- package/dist/{menuV2-f1a2EAHo.js → menuV2-D-Vf5_GY.js} +36 -36
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-W-zXKCEB.js → priceTier-wT1ehdfT.js} +1 -1
- package/dist/{scheduler-DUa0gqQA.js → scheduler-Cw_dGKHv.js} +4 -4
- package/dist/{subcategory--xbDIh6r.js → subcategory-CAvVELou.js} +2 -2
- package/dist/{toExcel-B3fjtuUf.js → toExcel-Cdxr1InP.js} +2 -2
- package/dist/{unit-CIDokyqf.js → unit--vHcoDUA.js} +2 -2
- package/package.json +1 -1
- package/dist/apps/mf-menu/src/helper/menuSanitizer.d.ts +0 -8205
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as ie, createElementBlock as Y, openBlock as x, normalizeClass as
|
|
1
|
+
import { defineComponent as ie, createElementBlock as Y, openBlock as x, normalizeClass as bn, renderSlot as Qe, createCommentVNode as we, createVNode as Q, createElementVNode as V, toDisplayString as Z, withCtx as oe, getCurrentInstance as Pt, inject as Gn, ref as se, shallowRef as Hn, computed as W, watch as Ze, onMounted as vn, onUnmounted as Wn, h as hn, Text as Bn, Fragment as de, resolveComponent as pe, unref as j, withModifiers as ae, renderList as Me, createBlock as Wt } from "vue";
|
|
2
2
|
import { x as xn, N as Kn } from "./app-5fxKLAzS.js";
|
|
3
3
|
import { useCoreStore as Dt, useI18n as He, useCustomAttributes as Bt, EMPTY_RULE as Yn, isEmptyMongoQuery as jn, isEmptyRule as Xn } from "@feedmepos/mf-common";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { u as Tn, J as xt, A as
|
|
5
|
+
import { u as Tn, J as xt, A as bt } from "./index.vue_vue_type_script_setup_true_lang-CNDgm-I2.js";
|
|
6
6
|
import { FmButtonVariant as Fe, components as qn } from "@feedmepos/ui-library";
|
|
7
7
|
const Jn = /* @__PURE__ */ ie({
|
|
8
8
|
__name: "FormColumn",
|
|
@@ -11,7 +11,7 @@ const Jn = /* @__PURE__ */ ie({
|
|
|
11
11
|
},
|
|
12
12
|
setup(e) {
|
|
13
13
|
return (t, n) => (x(), Y("div", {
|
|
14
|
-
class:
|
|
14
|
+
class: bn(["flex-1 flex flex-col space-y-24", { "min-h-0": t.shrinkable }])
|
|
15
15
|
}, [
|
|
16
16
|
Qe(t.$slots, "default")
|
|
17
17
|
], 2));
|
|
@@ -31,7 +31,7 @@ const Jn = /* @__PURE__ */ ie({
|
|
|
31
31
|
},
|
|
32
32
|
setup(e) {
|
|
33
33
|
return (t, n) => (x(), Y("div", {
|
|
34
|
-
class:
|
|
34
|
+
class: bn(["flex flex-col space-y-16", { "min-h-0": t.shrinkable }])
|
|
35
35
|
}, [
|
|
36
36
|
t.title ? (x(), Y("div", Qn, [
|
|
37
37
|
V("div", Zn, [
|
|
@@ -115,12 +115,12 @@ function mr(e) {
|
|
|
115
115
|
throw e;
|
|
116
116
|
}
|
|
117
117
|
const me = " ", fr = "\r", ne = `
|
|
118
|
-
`,
|
|
118
|
+
`, _r = "\u2028", dr = "\u2029";
|
|
119
119
|
function pr(e) {
|
|
120
120
|
const t = e;
|
|
121
121
|
let n = 0, r = 1, o = 1, a = 0;
|
|
122
|
-
const u = (f) => t[f] === fr && t[f + 1] === ne, m = (f) => t[f] === ne, c = (f) => t[f] ===
|
|
123
|
-
function
|
|
122
|
+
const u = (f) => t[f] === fr && t[f + 1] === ne, m = (f) => t[f] === ne, c = (f) => t[f] === dr, g = (f) => t[f] === _r, T = (f) => u(f) || m(f) || c(f) || g(f), A = () => n, E = () => r, _ = () => o, O = () => a, I = (f) => u(f) || c(f) || g(f) ? ne : t[f], b = () => I(n), i = () => I(n + a);
|
|
123
|
+
function v() {
|
|
124
124
|
return a = 0, T(n) && (r++, o = 0), u(n) && n++, n++, o++, t[n];
|
|
125
125
|
}
|
|
126
126
|
function R() {
|
|
@@ -135,18 +135,18 @@ function pr(e) {
|
|
|
135
135
|
function y() {
|
|
136
136
|
const f = n + a;
|
|
137
137
|
for (; f !== n; )
|
|
138
|
-
|
|
138
|
+
v();
|
|
139
139
|
a = 0;
|
|
140
140
|
}
|
|
141
141
|
return {
|
|
142
142
|
index: A,
|
|
143
143
|
line: E,
|
|
144
|
-
column:
|
|
144
|
+
column: _,
|
|
145
145
|
peekOffset: O,
|
|
146
146
|
charAt: I,
|
|
147
|
-
currentChar:
|
|
147
|
+
currentChar: b,
|
|
148
148
|
currentPeek: i,
|
|
149
|
-
next:
|
|
149
|
+
next: v,
|
|
150
150
|
peek: R,
|
|
151
151
|
reset: p,
|
|
152
152
|
resetPeek: L,
|
|
@@ -171,11 +171,11 @@ function yr(e, t = {}) {
|
|
|
171
171
|
function A(s, l, h, ...S) {
|
|
172
172
|
const X = g();
|
|
173
173
|
if (l.column += h, l.offset += h, T) {
|
|
174
|
-
const F = n ? It(X.startLoc, l) : null,
|
|
174
|
+
const F = n ? It(X.startLoc, l) : null, d = nt(s, F, {
|
|
175
175
|
domain: gr,
|
|
176
176
|
args: S
|
|
177
177
|
});
|
|
178
|
-
T(
|
|
178
|
+
T(d);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
function E(s, l, h) {
|
|
@@ -183,7 +183,7 @@ function yr(e, t = {}) {
|
|
|
183
183
|
const S = { type: l };
|
|
184
184
|
return n && (S.loc = It(s.startLoc, s.endLoc)), h != null && (S.value = h), S;
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const _ = (s) => E(
|
|
187
187
|
s,
|
|
188
188
|
13
|
|
189
189
|
/* TokenTypes.EOF */
|
|
@@ -197,7 +197,7 @@ function yr(e, t = {}) {
|
|
|
197
197
|
l += s.currentPeek(), s.peek();
|
|
198
198
|
return l;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function b(s) {
|
|
201
201
|
const l = I(s);
|
|
202
202
|
return s.skipToPeek(), l;
|
|
203
203
|
}
|
|
@@ -209,7 +209,7 @@ function yr(e, t = {}) {
|
|
|
209
209
|
l >= 65 && l <= 90 || // A-Z
|
|
210
210
|
l === 95;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function v(s) {
|
|
213
213
|
if (s === ge)
|
|
214
214
|
return !1;
|
|
215
215
|
const l = s.charCodeAt(0);
|
|
@@ -228,7 +228,7 @@ function yr(e, t = {}) {
|
|
|
228
228
|
if (h !== 2)
|
|
229
229
|
return !1;
|
|
230
230
|
I(s);
|
|
231
|
-
const S = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), X =
|
|
231
|
+
const S = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), X = v(S);
|
|
232
232
|
return s.resetPeek(), X;
|
|
233
233
|
}
|
|
234
234
|
function L(s, l) {
|
|
@@ -280,8 +280,8 @@ function yr(e, t = {}) {
|
|
|
280
280
|
}
|
|
281
281
|
function w(s, l = !0) {
|
|
282
282
|
const h = (X = !1, F = "") => {
|
|
283
|
-
const
|
|
284
|
-
return
|
|
283
|
+
const d = s.currentPeek();
|
|
284
|
+
return d === "{" || d === "@" || !d ? X : d === "|" ? !(F === me || F === ne) : d === me ? (s.peek(), h(!0, me)) : d === ne ? (s.peek(), h(!0, ne)) : !0;
|
|
285
285
|
}, S = h();
|
|
286
286
|
return l && s.resetPeek(), S;
|
|
287
287
|
}
|
|
@@ -354,14 +354,14 @@ function yr(e, t = {}) {
|
|
|
354
354
|
return l;
|
|
355
355
|
}
|
|
356
356
|
function ct(s) {
|
|
357
|
-
|
|
357
|
+
b(s);
|
|
358
358
|
let l = "", h = "";
|
|
359
359
|
for (; l = st(s); )
|
|
360
360
|
h += l;
|
|
361
361
|
return s.currentChar() === ge && A($.UNTERMINATED_CLOSING_BRACE, a(), 0), h;
|
|
362
362
|
}
|
|
363
363
|
function mt(s) {
|
|
364
|
-
|
|
364
|
+
b(s);
|
|
365
365
|
let l = "";
|
|
366
366
|
return s.currentChar() === "-" ? (s.next(), l += `-${xe(s)}`) : l += xe(s), s.currentChar() === ge && A($.UNTERMINATED_CLOSING_BRACE, a(), 0), l;
|
|
367
367
|
}
|
|
@@ -369,14 +369,14 @@ function yr(e, t = {}) {
|
|
|
369
369
|
return s !== Xt && s !== ne;
|
|
370
370
|
}
|
|
371
371
|
function ft(s) {
|
|
372
|
-
|
|
372
|
+
b(s), O(s, "'");
|
|
373
373
|
let l = "", h = "";
|
|
374
374
|
for (; l = D(s, Ht); )
|
|
375
|
-
l === "\\" ? h +=
|
|
375
|
+
l === "\\" ? h += _t(s) : h += l;
|
|
376
376
|
const S = s.currentChar();
|
|
377
377
|
return S === ne || S === ge ? (A($.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), S === ne && (s.next(), O(s, "'")), h) : (O(s, "'"), h);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function _t(s) {
|
|
380
380
|
const l = s.currentChar();
|
|
381
381
|
switch (l) {
|
|
382
382
|
case "\\":
|
|
@@ -403,13 +403,13 @@ function yr(e, t = {}) {
|
|
|
403
403
|
}
|
|
404
404
|
return `\\${l}${S}`;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function dt(s) {
|
|
407
407
|
return s !== "{" && s !== "}" && s !== me && s !== ne;
|
|
408
408
|
}
|
|
409
409
|
function pt(s) {
|
|
410
|
-
|
|
410
|
+
b(s);
|
|
411
411
|
let l = "", h = "";
|
|
412
|
-
for (; l = D(s,
|
|
412
|
+
for (; l = D(s, dt); )
|
|
413
413
|
h += l;
|
|
414
414
|
return h;
|
|
415
415
|
}
|
|
@@ -427,13 +427,13 @@ function yr(e, t = {}) {
|
|
|
427
427
|
return l("");
|
|
428
428
|
}
|
|
429
429
|
function Se(s) {
|
|
430
|
-
|
|
430
|
+
b(s);
|
|
431
431
|
const l = O(
|
|
432
432
|
s,
|
|
433
433
|
"|"
|
|
434
434
|
/* TokenChars.Pipe */
|
|
435
435
|
);
|
|
436
|
-
return
|
|
436
|
+
return b(s), l;
|
|
437
437
|
}
|
|
438
438
|
function Ne(s, l) {
|
|
439
439
|
let h = null;
|
|
@@ -444,30 +444,30 @@ function yr(e, t = {}) {
|
|
|
444
444
|
2,
|
|
445
445
|
"{"
|
|
446
446
|
/* TokenChars.BraceLeft */
|
|
447
|
-
),
|
|
447
|
+
), b(s), l.braceNest++, h;
|
|
448
448
|
case "}":
|
|
449
449
|
return l.braceNest > 0 && l.currentType === 2 && A($.EMPTY_PLACEHOLDER, a(), 0), s.next(), h = E(
|
|
450
450
|
l,
|
|
451
451
|
3,
|
|
452
452
|
"}"
|
|
453
453
|
/* TokenChars.BraceRight */
|
|
454
|
-
), l.braceNest--, l.braceNest > 0 &&
|
|
454
|
+
), l.braceNest--, l.braceNest > 0 && b(s), l.inLinked && l.braceNest === 0 && (l.inLinked = !1), h;
|
|
455
455
|
case "@":
|
|
456
|
-
return l.braceNest > 0 && A($.UNTERMINATED_CLOSING_BRACE, a(), 0), h = Re(s, l) ||
|
|
456
|
+
return l.braceNest > 0 && A($.UNTERMINATED_CLOSING_BRACE, a(), 0), h = Re(s, l) || _(l), l.braceNest = 0, h;
|
|
457
457
|
default: {
|
|
458
|
-
let X = !0, F = !0,
|
|
458
|
+
let X = !0, F = !0, d = !0;
|
|
459
459
|
if (B(s))
|
|
460
460
|
return l.braceNest > 0 && A($.UNTERMINATED_CLOSING_BRACE, a(), 0), h = E(l, 1, Se(s)), 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 A($.UNTERMINATED_CLOSING_BRACE, a(), 0), l.braceNest = 0, Pe(s, l);
|
|
463
463
|
if (X = R(s, l))
|
|
464
|
-
return h = E(l, 4, ct(s)),
|
|
464
|
+
return h = E(l, 4, ct(s)), b(s), h;
|
|
465
465
|
if (F = p(s, l))
|
|
466
|
-
return h = E(l, 5, mt(s)),
|
|
467
|
-
if (
|
|
468
|
-
return h = E(l, 6, ft(s)),
|
|
469
|
-
if (!X && !F && !
|
|
470
|
-
return h = E(l, 12, pt(s)), A($.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, h.value),
|
|
466
|
+
return h = E(l, 5, mt(s)), b(s), h;
|
|
467
|
+
if (d = L(s, l))
|
|
468
|
+
return h = E(l, 6, ft(s)), b(s), h;
|
|
469
|
+
if (!X && !F && !d)
|
|
470
|
+
return h = E(l, 12, pt(s)), A($.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, h.value), b(s), h;
|
|
471
471
|
break;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
@@ -486,21 +486,21 @@ function yr(e, t = {}) {
|
|
|
486
486
|
/* TokenChars.LinkedAlias */
|
|
487
487
|
), l.inLinked = !0, S;
|
|
488
488
|
case ".":
|
|
489
|
-
return
|
|
489
|
+
return b(s), s.next(), E(
|
|
490
490
|
l,
|
|
491
491
|
8,
|
|
492
492
|
"."
|
|
493
493
|
/* TokenChars.LinkedDot */
|
|
494
494
|
);
|
|
495
495
|
case ":":
|
|
496
|
-
return
|
|
496
|
+
return b(s), s.next(), E(
|
|
497
497
|
l,
|
|
498
498
|
9,
|
|
499
499
|
":"
|
|
500
500
|
/* TokenChars.LinkedDelimiter */
|
|
501
501
|
);
|
|
502
502
|
default:
|
|
503
|
-
return B(s) ? (S = E(l, 1, Se(s)), l.braceNest = 0, l.inLinked = !1, S) : y(s, l) || k(s, l) ? (
|
|
503
|
+
return B(s) ? (S = E(l, 1, Se(s)), l.braceNest = 0, l.inLinked = !1, S) : y(s, l) || k(s, l) ? (b(s), Re(s, l)) : f(s, l) ? (b(s), E(l, 11, Et(s))) : P(s, l) ? (b(s), X === "{" ? Ne(s, l) || S : E(l, 10, gt(s))) : (h === 7 && A($.INVALID_LINKED_FORMAT, a(), 0), l.braceNest = 0, l.inLinked = !1, Pe(s, l));
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
function Pe(s, l) {
|
|
@@ -509,12 +509,12 @@ function yr(e, t = {}) {
|
|
|
509
509
|
/* TokenTypes.EOF */
|
|
510
510
|
};
|
|
511
511
|
if (l.braceNest > 0)
|
|
512
|
-
return Ne(s, l) ||
|
|
512
|
+
return Ne(s, l) || _(l);
|
|
513
513
|
if (l.inLinked)
|
|
514
|
-
return Re(s, l) ||
|
|
514
|
+
return Re(s, l) || _(l);
|
|
515
515
|
switch (s.currentChar()) {
|
|
516
516
|
case "{":
|
|
517
|
-
return Ne(s, l) ||
|
|
517
|
+
return Ne(s, l) || _(l);
|
|
518
518
|
case "}":
|
|
519
519
|
return A($.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), E(
|
|
520
520
|
l,
|
|
@@ -523,7 +523,7 @@ function yr(e, t = {}) {
|
|
|
523
523
|
/* TokenChars.BraceRight */
|
|
524
524
|
);
|
|
525
525
|
case "@":
|
|
526
|
-
return Re(s, l) ||
|
|
526
|
+
return Re(s, l) || _(l);
|
|
527
527
|
default: {
|
|
528
528
|
if (B(s))
|
|
529
529
|
return h = E(l, 1, Se(s)), l.braceNest = 0, l.inLinked = !1, h;
|
|
@@ -549,7 +549,7 @@ function yr(e, t = {}) {
|
|
|
549
549
|
context: g
|
|
550
550
|
};
|
|
551
551
|
}
|
|
552
|
-
const
|
|
552
|
+
const br = "parser", vr = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
553
553
|
function hr(e, t, n) {
|
|
554
554
|
switch (e) {
|
|
555
555
|
case "\\\\":
|
|
@@ -565,74 +565,74 @@ function hr(e, t, n) {
|
|
|
565
565
|
}
|
|
566
566
|
function Tr(e = {}) {
|
|
567
567
|
const t = e.location !== !1, { onError: n } = e;
|
|
568
|
-
function r(i,
|
|
568
|
+
function r(i, v, R, p, ...L) {
|
|
569
569
|
const y = i.currentPosition();
|
|
570
570
|
if (y.offset += p, y.column += p, n) {
|
|
571
|
-
const f = t ? It(R, y) : null, k = nt(
|
|
572
|
-
domain:
|
|
571
|
+
const f = t ? It(R, y) : null, k = nt(v, f, {
|
|
572
|
+
domain: br,
|
|
573
573
|
args: L
|
|
574
574
|
});
|
|
575
575
|
n(k);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function o(i,
|
|
578
|
+
function o(i, v, R) {
|
|
579
579
|
const p = { type: i };
|
|
580
|
-
return t && (p.start =
|
|
580
|
+
return t && (p.start = v, p.end = v, p.loc = { start: R, end: R }), p;
|
|
581
581
|
}
|
|
582
|
-
function a(i,
|
|
583
|
-
t && (i.end =
|
|
582
|
+
function a(i, v, R, p) {
|
|
583
|
+
t && (i.end = v, i.loc && (i.loc.end = R));
|
|
584
584
|
}
|
|
585
|
-
function u(i,
|
|
585
|
+
function u(i, v) {
|
|
586
586
|
const R = i.context(), p = o(3, R.offset, R.startLoc);
|
|
587
|
-
return p.value =
|
|
587
|
+
return p.value = v, a(p, i.currentOffset(), i.currentPosition()), p;
|
|
588
588
|
}
|
|
589
|
-
function m(i,
|
|
589
|
+
function m(i, v) {
|
|
590
590
|
const R = i.context(), { lastOffset: p, lastStartLoc: L } = R, y = o(5, p, L);
|
|
591
|
-
return y.index = parseInt(
|
|
591
|
+
return y.index = parseInt(v, 10), i.nextToken(), a(y, i.currentOffset(), i.currentPosition()), y;
|
|
592
592
|
}
|
|
593
|
-
function c(i,
|
|
593
|
+
function c(i, v) {
|
|
594
594
|
const R = i.context(), { lastOffset: p, lastStartLoc: L } = R, y = o(4, p, L);
|
|
595
|
-
return y.key =
|
|
595
|
+
return y.key = v, i.nextToken(), a(y, i.currentOffset(), i.currentPosition()), y;
|
|
596
596
|
}
|
|
597
|
-
function g(i,
|
|
597
|
+
function g(i, v) {
|
|
598
598
|
const R = i.context(), { lastOffset: p, lastStartLoc: L } = R, y = o(9, p, L);
|
|
599
|
-
return y.value =
|
|
599
|
+
return y.value = v.replace(vr, hr), i.nextToken(), a(y, i.currentOffset(), i.currentPosition()), y;
|
|
600
600
|
}
|
|
601
601
|
function T(i) {
|
|
602
|
-
const
|
|
603
|
-
return
|
|
604
|
-
nextConsumeToken:
|
|
602
|
+
const v = i.nextToken(), R = i.context(), { lastOffset: p, lastStartLoc: L } = R, y = o(8, p, L);
|
|
603
|
+
return v.type !== 11 ? (r(i, $.UNEXPECTED_EMPTY_LINKED_MODIFIER, R.lastStartLoc, 0), y.value = "", a(y, p, L), {
|
|
604
|
+
nextConsumeToken: v,
|
|
605
605
|
node: y
|
|
606
|
-
}) : (
|
|
606
|
+
}) : (v.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, R.lastStartLoc, 0, ue(v)), y.value = v.value || "", a(y, i.currentOffset(), i.currentPosition()), {
|
|
607
607
|
node: y
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
|
-
function A(i,
|
|
610
|
+
function A(i, v) {
|
|
611
611
|
const R = i.context(), p = o(7, R.offset, R.startLoc);
|
|
612
|
-
return p.value =
|
|
612
|
+
return p.value = v, a(p, i.currentOffset(), i.currentPosition()), p;
|
|
613
613
|
}
|
|
614
614
|
function E(i) {
|
|
615
|
-
const
|
|
615
|
+
const v = i.context(), R = o(6, v.offset, v.startLoc);
|
|
616
616
|
let p = i.nextToken();
|
|
617
617
|
if (p.type === 8) {
|
|
618
618
|
const L = T(i);
|
|
619
619
|
R.modifier = L.node, p = L.nextConsumeToken || i.nextToken();
|
|
620
620
|
}
|
|
621
|
-
switch (p.type !== 9 && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
621
|
+
switch (p.type !== 9 && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(p)), p = i.nextToken(), p.type === 2 && (p = i.nextToken()), p.type) {
|
|
622
622
|
case 10:
|
|
623
|
-
p.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
623
|
+
p.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(p)), R.key = A(i, p.value || "");
|
|
624
624
|
break;
|
|
625
625
|
case 4:
|
|
626
|
-
p.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
626
|
+
p.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(p)), R.key = c(i, p.value || "");
|
|
627
627
|
break;
|
|
628
628
|
case 5:
|
|
629
|
-
p.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
629
|
+
p.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(p)), R.key = m(i, p.value || "");
|
|
630
630
|
break;
|
|
631
631
|
case 6:
|
|
632
|
-
p.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
632
|
+
p.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(p)), R.key = g(i, p.value || "");
|
|
633
633
|
break;
|
|
634
634
|
default: {
|
|
635
|
-
r(i, $.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
635
|
+
r(i, $.UNEXPECTED_EMPTY_LINKED_KEY, v.lastStartLoc, 0);
|
|
636
636
|
const L = i.context(), y = o(7, L.offset, L.startLoc);
|
|
637
637
|
return y.value = "", a(y, L.offset, L.startLoc), R.key = y, a(R, L.offset, L.startLoc), {
|
|
638
638
|
nextConsumeToken: p,
|
|
@@ -644,24 +644,24 @@ function Tr(e = {}) {
|
|
|
644
644
|
node: R
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
const
|
|
647
|
+
function _(i) {
|
|
648
|
+
const v = i.context(), R = v.currentType === 1 ? i.currentOffset() : v.offset, p = v.currentType === 1 ? v.endLoc : v.startLoc, L = o(2, R, p);
|
|
649
649
|
L.items = [];
|
|
650
650
|
let y = null;
|
|
651
651
|
do {
|
|
652
652
|
const P = y || i.nextToken();
|
|
653
653
|
switch (y = null, P.type) {
|
|
654
654
|
case 0:
|
|
655
|
-
P.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
655
|
+
P.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(P)), L.items.push(u(i, P.value || ""));
|
|
656
656
|
break;
|
|
657
657
|
case 5:
|
|
658
|
-
P.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
658
|
+
P.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(P)), L.items.push(m(i, P.value || ""));
|
|
659
659
|
break;
|
|
660
660
|
case 4:
|
|
661
|
-
P.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
661
|
+
P.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(P)), L.items.push(c(i, P.value || ""));
|
|
662
662
|
break;
|
|
663
663
|
case 6:
|
|
664
|
-
P.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
664
|
+
P.value == null && r(i, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(P)), L.items.push(g(i, P.value || ""));
|
|
665
665
|
break;
|
|
666
666
|
case 7: {
|
|
667
667
|
const B = E(i);
|
|
@@ -669,30 +669,30 @@ function Tr(e = {}) {
|
|
|
669
669
|
break;
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
} while (
|
|
673
|
-
const f =
|
|
672
|
+
} while (v.currentType !== 13 && v.currentType !== 1);
|
|
673
|
+
const f = v.currentType === 1 ? v.lastOffset : i.currentOffset(), k = v.currentType === 1 ? v.lastEndLoc : i.currentPosition();
|
|
674
674
|
return a(L, f, k), L;
|
|
675
675
|
}
|
|
676
|
-
function O(i,
|
|
676
|
+
function O(i, v, R, p) {
|
|
677
677
|
const L = i.context();
|
|
678
678
|
let y = p.items.length === 0;
|
|
679
|
-
const f = o(1,
|
|
679
|
+
const f = o(1, v, R);
|
|
680
680
|
f.cases = [], f.cases.push(p);
|
|
681
681
|
do {
|
|
682
|
-
const k =
|
|
682
|
+
const k = _(i);
|
|
683
683
|
y || (y = k.items.length === 0), f.cases.push(k);
|
|
684
684
|
} while (L.currentType !== 13);
|
|
685
685
|
return y && r(i, $.MUST_HAVE_MESSAGES_IN_PLURAL, R, 0), a(f, i.currentOffset(), i.currentPosition()), f;
|
|
686
686
|
}
|
|
687
687
|
function I(i) {
|
|
688
|
-
const
|
|
689
|
-
return
|
|
688
|
+
const v = i.context(), { offset: R, startLoc: p } = v, L = _(i);
|
|
689
|
+
return v.currentType === 13 ? L : O(i, R, p, L);
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
const
|
|
693
|
-
return t && p.loc && (p.loc.source = i), p.body = I(
|
|
691
|
+
function b(i) {
|
|
692
|
+
const v = yr(i, te({}, e)), R = v.context(), p = o(0, R.offset, R.startLoc);
|
|
693
|
+
return t && p.loc && (p.loc.source = i), p.body = I(v), e.onCacheKey && (p.cacheKey = e.onCacheKey(i)), R.currentType !== 13 && r(v, $.UNEXPECTED_LEXICAL_ANALYSIS, R.lastStartLoc, 0, i[R.offset] || ""), a(p, v.currentOffset(), v.currentPosition()), p;
|
|
694
694
|
}
|
|
695
|
-
return { parse:
|
|
695
|
+
return { parse: b };
|
|
696
696
|
}
|
|
697
697
|
function ue(e) {
|
|
698
698
|
if (e.type === 13)
|
|
@@ -847,20 +847,20 @@ function Ar(e, t) {
|
|
|
847
847
|
};
|
|
848
848
|
a && e.loc && (u.source = e.loc.source);
|
|
849
849
|
const m = () => u;
|
|
850
|
-
function c(I,
|
|
850
|
+
function c(I, b) {
|
|
851
851
|
u.code += I;
|
|
852
852
|
}
|
|
853
|
-
function g(I,
|
|
854
|
-
const i =
|
|
853
|
+
function g(I, b = !0) {
|
|
854
|
+
const i = b ? r : "";
|
|
855
855
|
c(o ? i + " ".repeat(I) : i);
|
|
856
856
|
}
|
|
857
857
|
function T(I = !0) {
|
|
858
|
-
const
|
|
859
|
-
I && g(
|
|
858
|
+
const b = ++u.indentLevel;
|
|
859
|
+
I && g(b);
|
|
860
860
|
}
|
|
861
861
|
function A(I = !0) {
|
|
862
|
-
const
|
|
863
|
-
I && g(
|
|
862
|
+
const b = --u.indentLevel;
|
|
863
|
+
I && g(b);
|
|
864
864
|
}
|
|
865
865
|
function E() {
|
|
866
866
|
g(u.indentLevel);
|
|
@@ -982,7 +982,7 @@ var Dr = { 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
|
-
function
|
|
985
|
+
function vt(e) {
|
|
986
986
|
return (n) => Fr(n, e);
|
|
987
987
|
}
|
|
988
988
|
function Fr(e, t) {
|
|
@@ -1120,15 +1120,15 @@ function Zr(e, t) {
|
|
|
1120
1120
|
...t,
|
|
1121
1121
|
location: Dr.env.NODE_ENV !== "production",
|
|
1122
1122
|
jit: !0
|
|
1123
|
-
}), m =
|
|
1123
|
+
}), m = vt(a);
|
|
1124
1124
|
return u ? m : qe[r] = m;
|
|
1125
1125
|
} else {
|
|
1126
1126
|
const n = e.cacheKey;
|
|
1127
1127
|
if (n) {
|
|
1128
1128
|
const r = qe[n];
|
|
1129
|
-
return r || (qe[n] =
|
|
1129
|
+
return r || (qe[n] = vt(e));
|
|
1130
1130
|
} else
|
|
1131
|
-
return
|
|
1131
|
+
return vt(e);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
let Ve = null;
|
|
@@ -1156,7 +1156,7 @@ const fe = {
|
|
|
1156
1156
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1157
1157
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1158
1158
|
}, ro = 24;
|
|
1159
|
-
function
|
|
1159
|
+
function _e(e) {
|
|
1160
1160
|
return nt(e, null, void 0);
|
|
1161
1161
|
}
|
|
1162
1162
|
function Vt(e, t) {
|
|
@@ -1172,12 +1172,12 @@ function Zt(e) {
|
|
|
1172
1172
|
if (e.constructor.name === "Function") {
|
|
1173
1173
|
const t = e();
|
|
1174
1174
|
if (sr(t))
|
|
1175
|
-
throw
|
|
1175
|
+
throw _e(fe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1176
1176
|
return ht = t;
|
|
1177
1177
|
} else
|
|
1178
|
-
throw
|
|
1178
|
+
throw _e(fe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1179
1179
|
} else
|
|
1180
|
-
throw
|
|
1180
|
+
throw _e(fe.NOT_SUPPORT_LOCALE_TYPE);
|
|
1181
1181
|
}
|
|
1182
1182
|
function oo(e, t, n) {
|
|
1183
1183
|
return [.../* @__PURE__ */ new Set([
|
|
@@ -1225,8 +1225,8 @@ function so(e, t, n) {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
return r;
|
|
1227
1227
|
}
|
|
1228
|
-
const
|
|
1229
|
-
|
|
1228
|
+
const be = [];
|
|
1229
|
+
be[
|
|
1230
1230
|
0
|
|
1231
1231
|
/* States.BEFORE_PATH */
|
|
1232
1232
|
] = {
|
|
@@ -1248,7 +1248,7 @@ ve[
|
|
|
1248
1248
|
/* States.AFTER_PATH */
|
|
1249
1249
|
]
|
|
1250
1250
|
};
|
|
1251
|
-
|
|
1251
|
+
be[
|
|
1252
1252
|
1
|
|
1253
1253
|
/* States.IN_PATH */
|
|
1254
1254
|
] = {
|
|
@@ -1269,7 +1269,7 @@ ve[
|
|
|
1269
1269
|
/* States.AFTER_PATH */
|
|
1270
1270
|
]
|
|
1271
1271
|
};
|
|
1272
|
-
|
|
1272
|
+
be[
|
|
1273
1273
|
2
|
|
1274
1274
|
/* States.BEFORE_IDENT */
|
|
1275
1275
|
] = {
|
|
@@ -1288,7 +1288,7 @@ ve[
|
|
|
1288
1288
|
/* Actions.APPEND */
|
|
1289
1289
|
]
|
|
1290
1290
|
};
|
|
1291
|
-
|
|
1291
|
+
be[
|
|
1292
1292
|
3
|
|
1293
1293
|
/* States.IN_IDENT */
|
|
1294
1294
|
] = {
|
|
@@ -1323,7 +1323,7 @@ ve[
|
|
|
1323
1323
|
/* Actions.PUSH */
|
|
1324
1324
|
]
|
|
1325
1325
|
};
|
|
1326
|
-
|
|
1326
|
+
be[
|
|
1327
1327
|
4
|
|
1328
1328
|
/* States.IN_SUB_PATH */
|
|
1329
1329
|
] = {
|
|
@@ -1354,7 +1354,7 @@ ve[
|
|
|
1354
1354
|
/* Actions.APPEND */
|
|
1355
1355
|
]
|
|
1356
1356
|
};
|
|
1357
|
-
|
|
1357
|
+
be[
|
|
1358
1358
|
5
|
|
1359
1359
|
/* States.IN_SINGLE_QUOTE */
|
|
1360
1360
|
] = {
|
|
@@ -1370,7 +1370,7 @@ ve[
|
|
|
1370
1370
|
/* Actions.APPEND */
|
|
1371
1371
|
]
|
|
1372
1372
|
};
|
|
1373
|
-
|
|
1373
|
+
be[
|
|
1374
1374
|
6
|
|
1375
1375
|
/* States.IN_DOUBLE_QUOTE */
|
|
1376
1376
|
] = {
|
|
@@ -1475,7 +1475,7 @@ function fo(e) {
|
|
|
1475
1475
|
]();
|
|
1476
1476
|
}
|
|
1477
1477
|
};
|
|
1478
|
-
function
|
|
1478
|
+
function _() {
|
|
1479
1479
|
const O = e[n + 1];
|
|
1480
1480
|
if (r === 5 && O === "'" || r === 6 && O === '"')
|
|
1481
1481
|
return n++, m = "\\" + O, E[
|
|
@@ -1484,8 +1484,8 @@ function fo(e) {
|
|
|
1484
1484
|
](), !0;
|
|
1485
1485
|
}
|
|
1486
1486
|
for (; r !== null; )
|
|
1487
|
-
if (n++, a = e[n], !(a === "\\" &&
|
|
1488
|
-
if (c = co(a), A =
|
|
1487
|
+
if (n++, a = e[n], !(a === "\\" && _())) {
|
|
1488
|
+
if (c = co(a), A = be[r], g = A[c] || A.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (T = E[g[1]], T && (m = a, T() === !1))))
|
|
1489
1489
|
return;
|
|
1490
1490
|
if (r === 7)
|
|
1491
1491
|
return t;
|
|
@@ -1524,11 +1524,11 @@ function yo(e) {
|
|
|
1524
1524
|
Rn = e;
|
|
1525
1525
|
}
|
|
1526
1526
|
let An;
|
|
1527
|
-
function
|
|
1527
|
+
function bo(e) {
|
|
1528
1528
|
An = e;
|
|
1529
1529
|
}
|
|
1530
1530
|
let Ln;
|
|
1531
|
-
function
|
|
1531
|
+
function vo(e) {
|
|
1532
1532
|
Ln = e;
|
|
1533
1533
|
}
|
|
1534
1534
|
let On = null;
|
|
@@ -1541,7 +1541,7 @@ const rn = (e) => {
|
|
|
1541
1541
|
}, Io = () => Cn;
|
|
1542
1542
|
let on = 0;
|
|
1543
1543
|
function No(e = {}) {
|
|
1544
|
-
const t = K(e.onWarn) ? e.onWarn : ur, n = C(e.version) ? e.version : Eo, r = C(e.locale) || K(e.locale) ? e.locale : et, o = K(r) ? et : r, a = z(e.fallbackLocale) || M(e.fallbackLocale) || C(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o, u = M(e.messages) ? e.messages : Tt(o), m = M(e.datetimeFormats) ? e.datetimeFormats : Tt(o), c = M(e.numberFormats) ? e.numberFormats : Tt(o), g = te(G(), e.modifiers, go()), T = e.pluralRules || G(), A = K(e.missing) ? e.missing : null, E = J(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0,
|
|
1544
|
+
const t = K(e.onWarn) ? e.onWarn : ur, n = C(e.version) ? e.version : Eo, r = C(e.locale) || K(e.locale) ? e.locale : et, o = K(r) ? et : r, a = z(e.fallbackLocale) || M(e.fallbackLocale) || C(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o, u = M(e.messages) ? e.messages : Tt(o), m = M(e.datetimeFormats) ? e.datetimeFormats : Tt(o), c = M(e.numberFormats) ? e.numberFormats : Tt(o), g = te(G(), e.modifiers, go()), T = e.pluralRules || G(), A = K(e.missing) ? e.missing : null, E = J(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, _ = J(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0, O = !!e.fallbackFormat, I = !!e.unresolving, b = K(e.postTranslation) ? e.postTranslation : null, i = M(e.processor) ? e.processor : null, v = J(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, R = !!e.escapeParameter, p = K(e.messageCompiler) ? e.messageCompiler : Rn, L = K(e.messageResolver) ? e.messageResolver : An || _o, y = K(e.localeFallbacker) ? e.localeFallbacker : Ln || oo, f = U(e.fallbackContext) ? e.fallbackContext : void 0, k = e, P = U(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), B = U(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), w = U(k.__meta) ? k.__meta : {};
|
|
1545
1545
|
on++;
|
|
1546
1546
|
const D = {
|
|
1547
1547
|
version: n,
|
|
@@ -1553,12 +1553,12 @@ function No(e = {}) {
|
|
|
1553
1553
|
pluralRules: T,
|
|
1554
1554
|
missing: A,
|
|
1555
1555
|
missingWarn: E,
|
|
1556
|
-
fallbackWarn:
|
|
1556
|
+
fallbackWarn: _,
|
|
1557
1557
|
fallbackFormat: O,
|
|
1558
1558
|
unresolving: I,
|
|
1559
|
-
postTranslation:
|
|
1559
|
+
postTranslation: b,
|
|
1560
1560
|
processor: i,
|
|
1561
|
-
warnHtmlMessage:
|
|
1561
|
+
warnHtmlMessage: v,
|
|
1562
1562
|
escapeParameter: R,
|
|
1563
1563
|
messageCompiler: p,
|
|
1564
1564
|
messageResolver: L,
|
|
@@ -1597,7 +1597,7 @@ function Ao(e, t) {
|
|
|
1597
1597
|
function an(e, ...t) {
|
|
1598
1598
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: u } = e, { __datetimeFormatters: m } = e, [c, g, T, A] = Rt(...t), E = J(T.missingWarn) ? T.missingWarn : e.missingWarn;
|
|
1599
1599
|
J(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn;
|
|
1600
|
-
const
|
|
1600
|
+
const _ = !!T.part, O = Vt(e, T), I = u(
|
|
1601
1601
|
e,
|
|
1602
1602
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1603
1603
|
o,
|
|
@@ -1605,16 +1605,16 @@ function an(e, ...t) {
|
|
|
1605
1605
|
);
|
|
1606
1606
|
if (!C(c) || c === "")
|
|
1607
1607
|
return new Intl.DateTimeFormat(O, A).format(g);
|
|
1608
|
-
let
|
|
1608
|
+
let b = {}, i, v = null;
|
|
1609
1609
|
const R = "datetime format";
|
|
1610
|
-
for (let y = 0; y < I.length && (i = I[y],
|
|
1610
|
+
for (let y = 0; y < I.length && (i = I[y], b = n[i] || {}, v = b[c], !M(v)); y++)
|
|
1611
1611
|
$t(e, c, i, E, R);
|
|
1612
|
-
if (!M(
|
|
1612
|
+
if (!M(v) || !C(i))
|
|
1613
1613
|
return r ? rt : c;
|
|
1614
1614
|
let p = `${i}__${c}`;
|
|
1615
1615
|
tt(A) || (p = `${p}__${JSON.stringify(A)}`);
|
|
1616
1616
|
let L = m.get(p);
|
|
1617
|
-
return L || (L = new Intl.DateTimeFormat(i, te({},
|
|
1617
|
+
return L || (L = new Intl.DateTimeFormat(i, te({}, v, A)), m.set(p, L)), _ ? L.formatToParts(g) : L.format(g);
|
|
1618
1618
|
}
|
|
1619
1619
|
const kn = [
|
|
1620
1620
|
"localeMatcher",
|
|
@@ -1644,22 +1644,22 @@ function Rt(...e) {
|
|
|
1644
1644
|
if (C(t)) {
|
|
1645
1645
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1646
1646
|
if (!c)
|
|
1647
|
-
throw
|
|
1647
|
+
throw _e(fe.INVALID_ISO_DATE_ARGUMENT);
|
|
1648
1648
|
const g = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
|
|
1649
1649
|
m = new Date(g);
|
|
1650
1650
|
try {
|
|
1651
1651
|
m.toISOString();
|
|
1652
1652
|
} catch {
|
|
1653
|
-
throw
|
|
1653
|
+
throw _e(fe.INVALID_ISO_DATE_ARGUMENT);
|
|
1654
1654
|
}
|
|
1655
1655
|
} else if (rr(t)) {
|
|
1656
1656
|
if (isNaN(t.getTime()))
|
|
1657
|
-
throw
|
|
1657
|
+
throw _e(fe.INVALID_DATE_ARGUMENT);
|
|
1658
1658
|
m = t;
|
|
1659
1659
|
} else if (ee(t))
|
|
1660
1660
|
m = t;
|
|
1661
1661
|
else
|
|
1662
|
-
throw
|
|
1662
|
+
throw _e(fe.INVALID_ARGUMENT);
|
|
1663
1663
|
return C(n) ? a.key = n : M(n) && Object.keys(n).forEach((c) => {
|
|
1664
1664
|
kn.includes(c) ? u[c] = n[c] : a[c] = n[c];
|
|
1665
1665
|
}), C(r) ? a.locale = r : M(r) && (u = r), M(o) && (u = o), [a.key || "", m, a, u];
|
|
@@ -1674,7 +1674,7 @@ function sn(e, t, n) {
|
|
|
1674
1674
|
function ln(e, ...t) {
|
|
1675
1675
|
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: u } = e, { __numberFormatters: m } = e, [c, g, T, A] = At(...t), E = J(T.missingWarn) ? T.missingWarn : e.missingWarn;
|
|
1676
1676
|
J(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn;
|
|
1677
|
-
const
|
|
1677
|
+
const _ = !!T.part, O = Vt(e, T), I = u(
|
|
1678
1678
|
e,
|
|
1679
1679
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1680
1680
|
o,
|
|
@@ -1682,16 +1682,16 @@ function ln(e, ...t) {
|
|
|
1682
1682
|
);
|
|
1683
1683
|
if (!C(c) || c === "")
|
|
1684
1684
|
return new Intl.NumberFormat(O, A).format(g);
|
|
1685
|
-
let
|
|
1685
|
+
let b = {}, i, v = null;
|
|
1686
1686
|
const R = "number format";
|
|
1687
|
-
for (let y = 0; y < I.length && (i = I[y],
|
|
1687
|
+
for (let y = 0; y < I.length && (i = I[y], b = n[i] || {}, v = b[c], !M(v)); y++)
|
|
1688
1688
|
$t(e, c, i, E, R);
|
|
1689
|
-
if (!M(
|
|
1689
|
+
if (!M(v) || !C(i))
|
|
1690
1690
|
return r ? rt : c;
|
|
1691
1691
|
let p = `${i}__${c}`;
|
|
1692
1692
|
tt(A) || (p = `${p}__${JSON.stringify(A)}`);
|
|
1693
1693
|
let L = m.get(p);
|
|
1694
|
-
return L || (L = new Intl.NumberFormat(i, te({},
|
|
1694
|
+
return L || (L = new Intl.NumberFormat(i, te({}, v, A)), m.set(p, L)), _ ? L.formatToParts(g) : L.format(g);
|
|
1695
1695
|
}
|
|
1696
1696
|
const Sn = [
|
|
1697
1697
|
"localeMatcher",
|
|
@@ -1719,7 +1719,7 @@ function At(...e) {
|
|
|
1719
1719
|
const [t, n, r, o] = e, a = G();
|
|
1720
1720
|
let u = G();
|
|
1721
1721
|
if (!ee(t))
|
|
1722
|
-
throw
|
|
1722
|
+
throw _e(fe.INVALID_ARGUMENT);
|
|
1723
1723
|
const m = t;
|
|
1724
1724
|
return C(n) ? a.key = n : M(n) && Object.keys(n).forEach((c) => {
|
|
1725
1725
|
Sn.includes(c) ? u[c] = n[c] : a[c] = n[c];
|
|
@@ -1747,19 +1747,19 @@ function wo(e = {}) {
|
|
|
1747
1747
|
const t = e.locale, n = Po(e), r = U(e.pluralRules) && C(t) && K(e.pluralRules[t]) ? e.pluralRules[t] : cn, o = U(e.pluralRules) && C(t) && K(e.pluralRules[t]) ? cn : void 0, a = (i) => i[r(n, i.length, o)], u = e.list || [], m = (i) => u[i], c = e.named || G();
|
|
1748
1748
|
ee(e.pluralIndex) && Do(n, c);
|
|
1749
1749
|
const g = (i) => c[i];
|
|
1750
|
-
function T(i,
|
|
1751
|
-
const R = K(e.messages) ? e.messages(i, !!
|
|
1750
|
+
function T(i, v) {
|
|
1751
|
+
const R = K(e.messages) ? e.messages(i, !!v) : U(e.messages) ? e.messages[i] : !1;
|
|
1752
1752
|
return R || (e.parent ? e.parent.message(i) : Oo);
|
|
1753
1753
|
}
|
|
1754
|
-
const A = (i) => e.modifiers ? e.modifiers[i] : Lo, E = M(e.processor) && K(e.processor.normalize) ? e.processor.normalize : ko,
|
|
1754
|
+
const A = (i) => e.modifiers ? e.modifiers[i] : Lo, E = M(e.processor) && K(e.processor.normalize) ? e.processor.normalize : ko, _ = M(e.processor) && K(e.processor.interpolate) ? e.processor.interpolate : So, O = M(e.processor) && C(e.processor.type) ? e.processor.type : Co, b = {
|
|
1755
1755
|
list: m,
|
|
1756
1756
|
named: g,
|
|
1757
1757
|
plural: a,
|
|
1758
|
-
linked: (i, ...
|
|
1759
|
-
const [R, p] =
|
|
1758
|
+
linked: (i, ...v) => {
|
|
1759
|
+
const [R, p] = v;
|
|
1760
1760
|
let L = "text", y = "";
|
|
1761
|
-
|
|
1762
|
-
const f = T(i, !0)(
|
|
1761
|
+
v.length === 1 ? U(R) ? (y = R.modifier || y, L = R.type || L) : C(R) && (y = R || y) : v.length === 2 && (C(R) && (y = R || y), C(p) && (L = p || L));
|
|
1762
|
+
const f = T(i, !0)(b), k = (
|
|
1763
1763
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1764
1764
|
L === "vnode" && z(f) && y ? f[0] : f
|
|
1765
1765
|
);
|
|
@@ -1767,35 +1767,35 @@ function wo(e = {}) {
|
|
|
1767
1767
|
},
|
|
1768
1768
|
message: T,
|
|
1769
1769
|
type: O,
|
|
1770
|
-
interpolate:
|
|
1770
|
+
interpolate: _,
|
|
1771
1771
|
normalize: E,
|
|
1772
1772
|
values: te(G(), u, c)
|
|
1773
1773
|
};
|
|
1774
|
-
return
|
|
1774
|
+
return b;
|
|
1775
1775
|
}
|
|
1776
1776
|
const mn = () => "", re = (e) => K(e);
|
|
1777
1777
|
function fn(e, ...t) {
|
|
1778
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: u, messages: m } = e, [c, g] = Lt(...t), T = J(g.missingWarn) ? g.missingWarn : e.missingWarn, A = J(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, E = J(g.escapeParameter) ? g.escapeParameter : e.escapeParameter,
|
|
1778
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: u, messages: m } = e, [c, g] = Lt(...t), T = J(g.missingWarn) ? g.missingWarn : e.missingWarn, A = J(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, E = J(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, _ = !!g.resolvedMessage, O = C(g.default) || J(g.default) ? J(g.default) ? a ? c : () => c : g.default : n ? a ? c : () => c : null, I = n || O != null && (C(O) || K(O)), b = Vt(e, g);
|
|
1779
1779
|
E && Fo(g);
|
|
1780
|
-
let [i,
|
|
1780
|
+
let [i, v, R] = _ ? [
|
|
1781
1781
|
c,
|
|
1782
|
-
|
|
1783
|
-
m[
|
|
1784
|
-
] : Pn(e, c,
|
|
1785
|
-
if (!
|
|
1782
|
+
b,
|
|
1783
|
+
m[b] || G()
|
|
1784
|
+
] : Pn(e, c, b, u, A, T), p = i, L = c;
|
|
1785
|
+
if (!_ && !(C(p) || Ce(p) || re(p)) && I && (p = O, L = p), !_ && (!(C(p) || Ce(p) || re(p)) || !C(v)))
|
|
1786
1786
|
return o ? rt : c;
|
|
1787
1787
|
let y = !1;
|
|
1788
1788
|
const f = () => {
|
|
1789
1789
|
y = !0;
|
|
1790
|
-
}, k = re(p) ? p : Dn(e, c,
|
|
1790
|
+
}, k = re(p) ? p : Dn(e, c, v, p, L, f);
|
|
1791
1791
|
if (y)
|
|
1792
1792
|
return p;
|
|
1793
|
-
const P = Vo(e,
|
|
1793
|
+
const P = Vo(e, v, R, g), B = wo(P), w = Mo(e, k, B), D = r ? r(w, c) : w;
|
|
1794
1794
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1795
1795
|
const Ie = {
|
|
1796
1796
|
timestamp: Date.now(),
|
|
1797
1797
|
key: C(c) ? c : re(p) ? p.key : "",
|
|
1798
|
-
locale:
|
|
1798
|
+
locale: v || (re(p) ? p.locale : ""),
|
|
1799
1799
|
format: C(p) ? p : re(p) ? p.source : "",
|
|
1800
1800
|
message: D
|
|
1801
1801
|
};
|
|
@@ -1810,11 +1810,11 @@ function Fo(e) {
|
|
|
1810
1810
|
}
|
|
1811
1811
|
function Pn(e, t, n, r, o, a) {
|
|
1812
1812
|
const { messages: u, onWarn: m, messageResolver: c, localeFallbacker: g } = e, T = g(e, r, n);
|
|
1813
|
-
let A = G(), E,
|
|
1813
|
+
let A = G(), E, _ = null;
|
|
1814
1814
|
const O = "translate";
|
|
1815
|
-
for (let I = 0; I < T.length && (E = T[I], A = u[E] || G(), (
|
|
1815
|
+
for (let I = 0; I < T.length && (E = T[I], A = u[E] || G(), (_ = c(A, t)) === null && (_ = A[t]), !(C(_) || Ce(_) || re(_))); I++)
|
|
1816
1816
|
if (!Ao(E, T)) {
|
|
1817
|
-
const
|
|
1817
|
+
const b = $t(
|
|
1818
1818
|
e,
|
|
1819
1819
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1820
1820
|
t,
|
|
@@ -1822,9 +1822,9 @@ function Pn(e, t, n, r, o, a) {
|
|
|
1822
1822
|
a,
|
|
1823
1823
|
O
|
|
1824
1824
|
);
|
|
1825
|
-
|
|
1825
|
+
b !== t && (_ = b);
|
|
1826
1826
|
}
|
|
1827
|
-
return [
|
|
1827
|
+
return [_, E, A];
|
|
1828
1828
|
}
|
|
1829
1829
|
function Dn(e, t, n, r, o, a) {
|
|
1830
1830
|
const { messageCompiler: u, warnHtmlMessage: m } = e;
|
|
@@ -1845,7 +1845,7 @@ function Mo(e, t, n) {
|
|
|
1845
1845
|
function Lt(...e) {
|
|
1846
1846
|
const [t, n, r] = e, o = G();
|
|
1847
1847
|
if (!C(t) && !ee(t) && !re(t) && !Ce(t))
|
|
1848
|
-
throw
|
|
1848
|
+
throw _e(fe.INVALID_ARGUMENT);
|
|
1849
1849
|
const a = ee(t) ? String(t) : (re(t), t);
|
|
1850
1850
|
return ee(n) ? o.plural = n : C(n) ? o.default = n : M(n) && !tt(n) ? o.named = n : z(n) && (o.list = n), ee(r) ? o.plural = r : C(r) ? o.default = r : M(r) && te(o, r), [a, o];
|
|
1851
1851
|
}
|
|
@@ -1865,33 +1865,33 @@ function Vo(e, t, n, r) {
|
|
|
1865
1865
|
locale: t,
|
|
1866
1866
|
modifiers: o,
|
|
1867
1867
|
pluralRules: a,
|
|
1868
|
-
messages: (
|
|
1869
|
-
let I = u(n,
|
|
1868
|
+
messages: (_, O) => {
|
|
1869
|
+
let I = u(n, _);
|
|
1870
1870
|
if (I == null && (T || O)) {
|
|
1871
|
-
const [, ,
|
|
1871
|
+
const [, , b] = Pn(
|
|
1872
1872
|
T || e,
|
|
1873
1873
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1874
|
-
|
|
1874
|
+
_,
|
|
1875
1875
|
t,
|
|
1876
1876
|
m,
|
|
1877
1877
|
c,
|
|
1878
1878
|
g
|
|
1879
1879
|
);
|
|
1880
|
-
I = u(
|
|
1880
|
+
I = u(b, _);
|
|
1881
1881
|
}
|
|
1882
1882
|
if (C(I) || Ce(I)) {
|
|
1883
|
-
let
|
|
1884
|
-
const
|
|
1885
|
-
|
|
1883
|
+
let b = !1;
|
|
1884
|
+
const v = Dn(e, _, t, I, _, () => {
|
|
1885
|
+
b = !0;
|
|
1886
1886
|
});
|
|
1887
|
-
return
|
|
1887
|
+
return b ? mn : v;
|
|
1888
1888
|
} else return re(I) ? I : mn;
|
|
1889
1889
|
}
|
|
1890
1890
|
};
|
|
1891
1891
|
return e.processor && (E.processor = e.processor), r.list && (E.list = r.list), r.named && (E.named = r.named), ee(r.plural) && (E.pluralIndex = r.plural), E;
|
|
1892
1892
|
}
|
|
1893
1893
|
wr();
|
|
1894
|
-
var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/
|
|
1894
|
+
var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_ea5ad154-3090-4067-b3dc-1b1b28d7ef90", DOTNET_NOLOGO: "1", USER: "runner", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v18.20.8 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_ea5ad154-3090-4067-b3dc-1b1b28d7ef90", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.4.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", VITE_FEATURE_FLAG_API_KEY: "MaGoXrEWuEJNpWgKTqseee", SYSTEMD_EXEC_PID: "1869", ACTIONS_ORCHESTRATION_ID: "773a04d0-bf41-4b26-8a4e-7d83b4a3f3c8.publish.deploy.__default", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260413.86.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:14661", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.9/x64", GITHUB_RUN_ID: "24763122464", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "0b9d601f03c53ba05e7635e6519ffba6d6ce0849", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/fix/fallback-price-menu-v3", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_517b0be2-f89c-4b0b-9ce4-533216ade465", INVOCATION_ID: "7bdcadd122584d0495e4036dab3d5a7f", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "538", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", VITE_LICENSE_API_URL: "https://license-v2-dev.feedmeapi.com", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000062173", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "fix/fallback-price-menu-v3", GITHUB_REPOSITORY: "feedmepos/portal", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.32.35-dev.3", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "0b9d601f03c53ba05e7635e6519ffba6d6ce0849", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", GITHUB_REF: "refs/heads/fix/fallback-price-menu-v3", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_ea5ad154-3090-4067-b3dc-1b1b28d7ef90", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "7780463", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_ea5ad154-3090-4067-b3dc-1b1b28d7ef90", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_ea5ad154-3090-4067-b3dc-1b1b28d7ef90", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
1895
1895
|
const Go = "10.0.5";
|
|
1896
1896
|
function Ho() {
|
|
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);
|
|
@@ -1975,10 +1975,10 @@ function Bo(e, t, n) {
|
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
|
-
function
|
|
1978
|
+
function _n(e) {
|
|
1979
1979
|
return Q(Bn, null, e, 0);
|
|
1980
1980
|
}
|
|
1981
|
-
const
|
|
1981
|
+
const dn = "__INTLIFY_META__", pn = () => [], xo = () => !1;
|
|
1982
1982
|
let En = 0;
|
|
1983
1983
|
function gn(e) {
|
|
1984
1984
|
return (t, n, r, o) => e(n, r, Pt() || void 0, o);
|
|
@@ -1986,7 +1986,7 @@ function gn(e) {
|
|
|
1986
1986
|
const Ko = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
1987
1987
|
const e = Pt();
|
|
1988
1988
|
let t = null;
|
|
1989
|
-
return e && (t = Mn(e)[
|
|
1989
|
+
return e && (t = Mn(e)[dn]) ? { [dn]: t } : null;
|
|
1990
1990
|
};
|
|
1991
1991
|
function Yo(e = {}) {
|
|
1992
1992
|
const { __root: t, __injectWithOption: n } = e, r = t === void 0, o = e.flatJson, a = Kt ? se : Hn;
|
|
@@ -1998,12 +1998,12 @@ function Yo(e = {}) {
|
|
|
1998
1998
|
// prettier-ignore
|
|
1999
1999
|
t && u ? t.fallbackLocale.value : C(e.fallbackLocale) || z(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
2000
2000
|
), g = a(Fn(m.value, e)), T = a(M(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), A = a(M(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
2001
|
-
let E = t ? t.missingWarn : J(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0,
|
|
2001
|
+
let E = t ? t.missingWarn : J(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, _ = t ? t.fallbackWarn : J(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0, O = t ? t.fallbackRoot : J(e.fallbackRoot) ? e.fallbackRoot : !0, I = !!e.fallbackFormat, b = K(e.missing) ? e.missing : null, i = K(e.missing) ? gn(e.missing) : null, v = K(e.postTranslation) ? e.postTranslation : null, R = t ? t.warnHtmlMessage : J(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, p = !!e.escapeParameter;
|
|
2002
2002
|
const L = t ? t.modifiers : M(e.modifiers) ? e.modifiers : {};
|
|
2003
2003
|
let y = e.pluralRules || t && t.pluralRules, f;
|
|
2004
2004
|
f = (() => {
|
|
2005
2005
|
r && rn(null);
|
|
2006
|
-
const
|
|
2006
|
+
const d = {
|
|
2007
2007
|
version: Go,
|
|
2008
2008
|
locale: m.value,
|
|
2009
2009
|
fallbackLocale: c.value,
|
|
@@ -2012,18 +2012,18 @@ function Yo(e = {}) {
|
|
|
2012
2012
|
pluralRules: y,
|
|
2013
2013
|
missing: i === null ? void 0 : i,
|
|
2014
2014
|
missingWarn: E,
|
|
2015
|
-
fallbackWarn:
|
|
2015
|
+
fallbackWarn: _,
|
|
2016
2016
|
fallbackFormat: I,
|
|
2017
2017
|
unresolving: !0,
|
|
2018
|
-
postTranslation:
|
|
2018
|
+
postTranslation: v === null ? void 0 : v,
|
|
2019
2019
|
warnHtmlMessage: R,
|
|
2020
2020
|
escapeParameter: p,
|
|
2021
2021
|
messageResolver: e.messageResolver,
|
|
2022
2022
|
messageCompiler: e.messageCompiler,
|
|
2023
2023
|
__meta: { framework: "vue" }
|
|
2024
2024
|
};
|
|
2025
|
-
|
|
2026
|
-
const N = No(
|
|
2025
|
+
d.datetimeFormats = T.value, d.numberFormats = A.value, d.__datetimeFormatters = M(f) ? f.__datetimeFormatters : void 0, d.__numberFormatters = M(f) ? f.__numberFormatters : void 0;
|
|
2026
|
+
const N = No(d);
|
|
2027
2027
|
return r && rn(N), N;
|
|
2028
2028
|
})(), De(f, m.value, c.value);
|
|
2029
2029
|
function P() {
|
|
@@ -2037,102 +2037,102 @@ function Yo(e = {}) {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
const B = W({
|
|
2039
2039
|
get: () => m.value,
|
|
2040
|
-
set: (
|
|
2041
|
-
m.value =
|
|
2040
|
+
set: (d) => {
|
|
2041
|
+
m.value = d, f.locale = m.value;
|
|
2042
2042
|
}
|
|
2043
2043
|
}), w = W({
|
|
2044
2044
|
get: () => c.value,
|
|
2045
|
-
set: (
|
|
2046
|
-
c.value =
|
|
2045
|
+
set: (d) => {
|
|
2046
|
+
c.value = d, f.fallbackLocale = c.value, De(f, m.value, d);
|
|
2047
2047
|
}
|
|
2048
2048
|
}), D = W(() => g.value), Ie = /* @__PURE__ */ W(() => T.value), ot = /* @__PURE__ */ W(() => A.value);
|
|
2049
2049
|
function at() {
|
|
2050
|
-
return K(
|
|
2050
|
+
return K(v) ? v : null;
|
|
2051
2051
|
}
|
|
2052
|
-
function st(
|
|
2053
|
-
|
|
2052
|
+
function st(d) {
|
|
2053
|
+
v = d, f.postTranslation = d;
|
|
2054
2054
|
}
|
|
2055
2055
|
function lt() {
|
|
2056
|
-
return
|
|
2056
|
+
return b;
|
|
2057
2057
|
}
|
|
2058
|
-
function ut(
|
|
2059
|
-
|
|
2058
|
+
function ut(d) {
|
|
2059
|
+
d !== null && (i = gn(d)), b = d, f.missing = i;
|
|
2060
2060
|
}
|
|
2061
|
-
const ce = (
|
|
2061
|
+
const ce = (d, N, H, q, ve, Ye) => {
|
|
2062
2062
|
P();
|
|
2063
2063
|
let Ae;
|
|
2064
2064
|
try {
|
|
2065
|
-
$o.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (f.fallbackContext = t ? Io() : void 0), Ae =
|
|
2065
|
+
$o.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (f.fallbackContext = t ? Io() : void 0), Ae = d(f);
|
|
2066
2066
|
} finally {
|
|
2067
2067
|
__INTLIFY_PROD_DEVTOOLS__, r || (f.fallbackContext = void 0);
|
|
2068
2068
|
}
|
|
2069
2069
|
if (H !== "translate exists" && // for not `te` (e.g `t`)
|
|
2070
2070
|
ee(Ae) && Ae === rt || H === "translate exists" && !Ae) {
|
|
2071
2071
|
const [$n, Ua] = N();
|
|
2072
|
-
return t && O ? q(t) :
|
|
2072
|
+
return t && O ? q(t) : ve($n);
|
|
2073
2073
|
} else {
|
|
2074
2074
|
if (Ye(Ae))
|
|
2075
2075
|
return Ae;
|
|
2076
2076
|
throw $e(ke.UNEXPECTED_RETURN_TYPE);
|
|
2077
2077
|
}
|
|
2078
2078
|
};
|
|
2079
|
-
function Be(...
|
|
2080
|
-
return ce((N) => Reflect.apply(fn, null, [N, ...
|
|
2079
|
+
function Be(...d) {
|
|
2080
|
+
return ce((N) => Reflect.apply(fn, null, [N, ...d]), () => Lt(...d), "translate", (N) => Reflect.apply(N.t, N, [...d]), (N) => N, (N) => C(N));
|
|
2081
2081
|
}
|
|
2082
|
-
function xe(...
|
|
2083
|
-
const [N, H, q] =
|
|
2082
|
+
function xe(...d) {
|
|
2083
|
+
const [N, H, q] = d;
|
|
2084
2084
|
if (q && !U(q))
|
|
2085
2085
|
throw $e(ke.INVALID_ARGUMENT);
|
|
2086
2086
|
return Be(N, H, te({ resolvedMessage: !0 }, q || {}));
|
|
2087
2087
|
}
|
|
2088
|
-
function it(...
|
|
2089
|
-
return ce((N) => Reflect.apply(an, null, [N, ...
|
|
2088
|
+
function it(...d) {
|
|
2089
|
+
return ce((N) => Reflect.apply(an, null, [N, ...d]), () => Rt(...d), "datetime format", (N) => Reflect.apply(N.d, N, [...d]), () => tn, (N) => C(N));
|
|
2090
2090
|
}
|
|
2091
|
-
function ct(...
|
|
2092
|
-
return ce((N) => Reflect.apply(ln, null, [N, ...
|
|
2091
|
+
function ct(...d) {
|
|
2092
|
+
return ce((N) => Reflect.apply(ln, null, [N, ...d]), () => At(...d), "number format", (N) => Reflect.apply(N.n, N, [...d]), () => tn, (N) => C(N));
|
|
2093
2093
|
}
|
|
2094
|
-
function mt(
|
|
2095
|
-
return
|
|
2094
|
+
function mt(d) {
|
|
2095
|
+
return d.map((N) => C(N) || ee(N) || J(N) ? _n(String(N)) : N);
|
|
2096
2096
|
}
|
|
2097
2097
|
const ft = {
|
|
2098
2098
|
normalize: mt,
|
|
2099
|
-
interpolate: (
|
|
2099
|
+
interpolate: (d) => d,
|
|
2100
2100
|
type: "vnode"
|
|
2101
2101
|
};
|
|
2102
|
-
function
|
|
2102
|
+
function _t(...d) {
|
|
2103
2103
|
return ce((N) => {
|
|
2104
2104
|
let H;
|
|
2105
2105
|
const q = N;
|
|
2106
2106
|
try {
|
|
2107
|
-
q.processor = ft, H = Reflect.apply(fn, null, [q, ...
|
|
2107
|
+
q.processor = ft, H = Reflect.apply(fn, null, [q, ...d]);
|
|
2108
2108
|
} finally {
|
|
2109
2109
|
q.processor = null;
|
|
2110
2110
|
}
|
|
2111
2111
|
return H;
|
|
2112
|
-
}, () => Lt(...
|
|
2112
|
+
}, () => Lt(...d), "translate", (N) => N[Ot](...d), (N) => [_n(N)], (N) => z(N));
|
|
2113
2113
|
}
|
|
2114
|
-
function Ke(...
|
|
2115
|
-
return ce((N) => Reflect.apply(ln, null, [N, ...
|
|
2114
|
+
function Ke(...d) {
|
|
2115
|
+
return ce((N) => Reflect.apply(ln, null, [N, ...d]), () => At(...d), "number format", (N) => N[kt](...d), pn, (N) => C(N) || z(N));
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2118
|
-
return ce((N) => Reflect.apply(an, null, [N, ...
|
|
2117
|
+
function dt(...d) {
|
|
2118
|
+
return ce((N) => Reflect.apply(an, null, [N, ...d]), () => Rt(...d), "datetime format", (N) => N[Ct](...d), pn, (N) => C(N) || z(N));
|
|
2119
2119
|
}
|
|
2120
|
-
function pt(
|
|
2121
|
-
y =
|
|
2120
|
+
function pt(d) {
|
|
2121
|
+
y = d, f.pluralRules = y;
|
|
2122
2122
|
}
|
|
2123
|
-
function Et(
|
|
2123
|
+
function Et(d, N) {
|
|
2124
2124
|
return ce(() => {
|
|
2125
|
-
if (!
|
|
2125
|
+
if (!d)
|
|
2126
2126
|
return !1;
|
|
2127
|
-
const H = C(N) ? N : m.value, q = Ne(H),
|
|
2128
|
-
return Ce(
|
|
2129
|
-
}, () => [
|
|
2127
|
+
const H = C(N) ? N : m.value, q = Ne(H), ve = f.messageResolver(q, d);
|
|
2128
|
+
return Ce(ve) || re(ve) || C(ve);
|
|
2129
|
+
}, () => [d], "translate exists", (H) => Reflect.apply(H.te, H, [d, N]), xo, (H) => J(H));
|
|
2130
2130
|
}
|
|
2131
|
-
function gt(
|
|
2131
|
+
function gt(d) {
|
|
2132
2132
|
let N = null;
|
|
2133
2133
|
const H = Nn(f, c.value, m.value);
|
|
2134
2134
|
for (let q = 0; q < H.length; q++) {
|
|
2135
|
-
const
|
|
2135
|
+
const ve = g.value[H[q]] || {}, Ye = f.messageResolver(ve, d);
|
|
2136
2136
|
if (Ye != null) {
|
|
2137
2137
|
N = Ye;
|
|
2138
2138
|
break;
|
|
@@ -2140,52 +2140,52 @@ function Yo(e = {}) {
|
|
|
2140
2140
|
}
|
|
2141
2141
|
return N;
|
|
2142
2142
|
}
|
|
2143
|
-
function Se(
|
|
2144
|
-
const N = gt(
|
|
2145
|
-
return N ?? (t ? t.tm(
|
|
2143
|
+
function Se(d) {
|
|
2144
|
+
const N = gt(d);
|
|
2145
|
+
return N ?? (t ? t.tm(d) || {} : {});
|
|
2146
2146
|
}
|
|
2147
|
-
function Ne(
|
|
2148
|
-
return g.value[
|
|
2147
|
+
function Ne(d) {
|
|
2148
|
+
return g.value[d] || {};
|
|
2149
2149
|
}
|
|
2150
|
-
function Re(
|
|
2150
|
+
function Re(d, N) {
|
|
2151
2151
|
if (o) {
|
|
2152
|
-
const H = { [
|
|
2152
|
+
const H = { [d]: N };
|
|
2153
2153
|
for (const q in H)
|
|
2154
2154
|
le(H, q) && Ge(H[q]);
|
|
2155
|
-
N = H[
|
|
2155
|
+
N = H[d];
|
|
2156
2156
|
}
|
|
2157
|
-
g.value[
|
|
2157
|
+
g.value[d] = N, f.messages = g.value;
|
|
2158
2158
|
}
|
|
2159
|
-
function Pe(
|
|
2160
|
-
g.value[
|
|
2161
|
-
const H = { [
|
|
2159
|
+
function Pe(d, N) {
|
|
2160
|
+
g.value[d] = g.value[d] || {};
|
|
2161
|
+
const H = { [d]: N };
|
|
2162
2162
|
if (o)
|
|
2163
2163
|
for (const q in H)
|
|
2164
2164
|
le(H, q) && Ge(H[q]);
|
|
2165
|
-
N = H[
|
|
2165
|
+
N = H[d], Je(N, g.value[d]), f.messages = g.value;
|
|
2166
2166
|
}
|
|
2167
|
-
function yt(
|
|
2168
|
-
return T.value[
|
|
2167
|
+
function yt(d) {
|
|
2168
|
+
return T.value[d] || {};
|
|
2169
2169
|
}
|
|
2170
|
-
function s(
|
|
2171
|
-
T.value[
|
|
2170
|
+
function s(d, N) {
|
|
2171
|
+
T.value[d] = N, f.datetimeFormats = T.value, sn(f, d, N);
|
|
2172
2172
|
}
|
|
2173
|
-
function l(
|
|
2174
|
-
T.value[
|
|
2173
|
+
function l(d, N) {
|
|
2174
|
+
T.value[d] = te(T.value[d] || {}, N), f.datetimeFormats = T.value, sn(f, d, N);
|
|
2175
2175
|
}
|
|
2176
|
-
function h(
|
|
2177
|
-
return A.value[
|
|
2176
|
+
function h(d) {
|
|
2177
|
+
return A.value[d] || {};
|
|
2178
2178
|
}
|
|
2179
|
-
function S(
|
|
2180
|
-
A.value[
|
|
2179
|
+
function S(d, N) {
|
|
2180
|
+
A.value[d] = N, f.numberFormats = A.value, un(f, d, N);
|
|
2181
2181
|
}
|
|
2182
|
-
function X(
|
|
2183
|
-
A.value[
|
|
2182
|
+
function X(d, N) {
|
|
2183
|
+
A.value[d] = te(A.value[d] || {}, N), f.numberFormats = A.value, un(f, d, N);
|
|
2184
2184
|
}
|
|
2185
|
-
En++, t && Kt && (Ze(t.locale, (
|
|
2186
|
-
u && (m.value =
|
|
2187
|
-
}), Ze(t.fallbackLocale, (
|
|
2188
|
-
u && (c.value =
|
|
2185
|
+
En++, t && Kt && (Ze(t.locale, (d) => {
|
|
2186
|
+
u && (m.value = d, f.locale = d, De(f, m.value, c.value));
|
|
2187
|
+
}), Ze(t.fallbackLocale, (d) => {
|
|
2188
|
+
u && (c.value = d, f.fallbackLocale = d, De(f, m.value, c.value));
|
|
2189
2189
|
}));
|
|
2190
2190
|
const F = {
|
|
2191
2191
|
id: En,
|
|
@@ -2194,8 +2194,8 @@ function Yo(e = {}) {
|
|
|
2194
2194
|
get inheritLocale() {
|
|
2195
2195
|
return u;
|
|
2196
2196
|
},
|
|
2197
|
-
set inheritLocale(
|
|
2198
|
-
u =
|
|
2197
|
+
set inheritLocale(d) {
|
|
2198
|
+
u = d, d && t && (m.value = t.locale.value, c.value = t.fallbackLocale.value, De(f, m.value, c.value));
|
|
2199
2199
|
},
|
|
2200
2200
|
get availableLocales() {
|
|
2201
2201
|
return Object.keys(g.value).sort();
|
|
@@ -2213,38 +2213,38 @@ function Yo(e = {}) {
|
|
|
2213
2213
|
get missingWarn() {
|
|
2214
2214
|
return E;
|
|
2215
2215
|
},
|
|
2216
|
-
set missingWarn(
|
|
2217
|
-
E =
|
|
2216
|
+
set missingWarn(d) {
|
|
2217
|
+
E = d, f.missingWarn = E;
|
|
2218
2218
|
},
|
|
2219
2219
|
get fallbackWarn() {
|
|
2220
|
-
return
|
|
2220
|
+
return _;
|
|
2221
2221
|
},
|
|
2222
|
-
set fallbackWarn(
|
|
2223
|
-
|
|
2222
|
+
set fallbackWarn(d) {
|
|
2223
|
+
_ = d, f.fallbackWarn = _;
|
|
2224
2224
|
},
|
|
2225
2225
|
get fallbackRoot() {
|
|
2226
2226
|
return O;
|
|
2227
2227
|
},
|
|
2228
|
-
set fallbackRoot(
|
|
2229
|
-
O =
|
|
2228
|
+
set fallbackRoot(d) {
|
|
2229
|
+
O = d;
|
|
2230
2230
|
},
|
|
2231
2231
|
get fallbackFormat() {
|
|
2232
2232
|
return I;
|
|
2233
2233
|
},
|
|
2234
|
-
set fallbackFormat(
|
|
2235
|
-
I =
|
|
2234
|
+
set fallbackFormat(d) {
|
|
2235
|
+
I = d, f.fallbackFormat = I;
|
|
2236
2236
|
},
|
|
2237
2237
|
get warnHtmlMessage() {
|
|
2238
2238
|
return R;
|
|
2239
2239
|
},
|
|
2240
|
-
set warnHtmlMessage(
|
|
2241
|
-
R =
|
|
2240
|
+
set warnHtmlMessage(d) {
|
|
2241
|
+
R = d, f.warnHtmlMessage = d;
|
|
2242
2242
|
},
|
|
2243
2243
|
get escapeParameter() {
|
|
2244
2244
|
return p;
|
|
2245
2245
|
},
|
|
2246
|
-
set escapeParameter(
|
|
2247
|
-
p =
|
|
2246
|
+
set escapeParameter(d) {
|
|
2247
|
+
p = d, f.escapeParameter = d;
|
|
2248
2248
|
},
|
|
2249
2249
|
t: Be,
|
|
2250
2250
|
getLocaleMessage: Ne,
|
|
@@ -2256,7 +2256,7 @@ function Yo(e = {}) {
|
|
|
2256
2256
|
setMissingHandler: ut,
|
|
2257
2257
|
[Wo]: pt
|
|
2258
2258
|
};
|
|
2259
|
-
return F.datetimeFormats = Ie, F.numberFormats = ot, F.rt = xe, F.te = Et, F.tm = Se, F.d = it, F.n = ct, F.getDateTimeFormat = yt, F.setDateTimeFormat = s, F.mergeDateTimeFormat = l, F.getNumberFormat = h, F.setNumberFormat = S, F.mergeNumberFormat = X, F[wn] = n, F[Ot] =
|
|
2259
|
+
return F.datetimeFormats = Ie, F.numberFormats = ot, F.rt = xe, F.te = Et, F.tm = Se, F.d = it, F.n = ct, F.getDateTimeFormat = yt, F.setDateTimeFormat = s, F.mergeDateTimeFormat = l, F.getNumberFormat = h, F.setNumberFormat = S, F.mergeNumberFormat = X, F[wn] = n, F[Ot] = _t, F[Ct] = dt, F[kt] = Ke, F;
|
|
2260
2260
|
}
|
|
2261
2261
|
const Gt = {
|
|
2262
2262
|
tag: {
|
|
@@ -2280,14 +2280,14 @@ function jo({ slots: e }, t) {
|
|
|
2280
2280
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, o) => [
|
|
2281
2281
|
...r,
|
|
2282
2282
|
// prettier-ignore
|
|
2283
|
-
...o.type ===
|
|
2283
|
+
...o.type === de ? o.children : [o]
|
|
2284
2284
|
], []) : t.reduce((n, r) => {
|
|
2285
2285
|
const o = e[r];
|
|
2286
2286
|
return o && (n[r] = o()), n;
|
|
2287
2287
|
}, G());
|
|
2288
2288
|
}
|
|
2289
2289
|
function Un() {
|
|
2290
|
-
return
|
|
2290
|
+
return de;
|
|
2291
2291
|
}
|
|
2292
2292
|
te({
|
|
2293
2293
|
keypath: {
|
|
@@ -2307,12 +2307,12 @@ function Vn(e, t, n, r) {
|
|
|
2307
2307
|
return () => {
|
|
2308
2308
|
const u = { part: !0 };
|
|
2309
2309
|
let m = G();
|
|
2310
|
-
e.locale && (u.locale = e.locale), C(e.format) ? u.key = e.format : U(e.format) && (C(e.format.key) && (u.key = e.format.key), m = Object.keys(e.format).reduce((E,
|
|
2310
|
+
e.locale && (u.locale = e.locale), C(e.format) ? u.key = e.format : U(e.format) && (C(e.format.key) && (u.key = e.format.key), m = Object.keys(e.format).reduce((E, _) => n.includes(_) ? te(G(), E, { [_]: e.format[_] }) : E, G()));
|
|
2311
2311
|
const c = r(e.value, u, m);
|
|
2312
2312
|
let g = [u.key];
|
|
2313
|
-
z(c) ? g = c.map((E,
|
|
2314
|
-
const O = o[E.type], I = O ? O({ [E.type]: E.value, index:
|
|
2315
|
-
return Xo(I) && (I[0].key = `${E.type}-${
|
|
2313
|
+
z(c) ? g = c.map((E, _) => {
|
|
2314
|
+
const O = o[E.type], I = O ? O({ [E.type]: E.value, index: _, parts: c }) : [E.value];
|
|
2315
|
+
return Xo(I) && (I[0].key = `${E.type}-${_}`), I;
|
|
2316
2316
|
}) : C(c) && (g = [c]);
|
|
2317
2317
|
const T = te(G(), a), A = C(e.tag) || U(e.tag) ? e.tag : Un();
|
|
2318
2318
|
return hn(A, T, g);
|
|
@@ -2392,7 +2392,7 @@ function ea(e, t = !1) {
|
|
|
2392
2392
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2393
2393
|
}
|
|
2394
2394
|
function ta(e, t, n) {
|
|
2395
|
-
|
|
2395
|
+
vn(() => {
|
|
2396
2396
|
}, t), Wn(() => {
|
|
2397
2397
|
const r = n;
|
|
2398
2398
|
e.__deleteInstance(t);
|
|
@@ -2402,8 +2402,8 @@ function ta(e, t, n) {
|
|
|
2402
2402
|
}
|
|
2403
2403
|
Ho();
|
|
2404
2404
|
yo(Zr);
|
|
2405
|
-
|
|
2406
|
-
|
|
2405
|
+
bo(po);
|
|
2406
|
+
vo(Nn);
|
|
2407
2407
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2408
2408
|
const e = he();
|
|
2409
2409
|
e.__INTLIFY__ = !0, zr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
@@ -2614,7 +2614,7 @@ const sa = {
|
|
|
2614
2614
|
})), ...m.value.map((y) => ({
|
|
2615
2615
|
label: `Product ${y.key}`,
|
|
2616
2616
|
value: `item_custom_${y.key}`
|
|
2617
|
-
}))]), E = se(r.values),
|
|
2617
|
+
}))]), E = se(r.values), _ = W(() => {
|
|
2618
2618
|
const y = T.value;
|
|
2619
2619
|
if (!y) return [];
|
|
2620
2620
|
if (y.startsWith("restaurant_attr_")) {
|
|
@@ -2653,13 +2653,13 @@ const sa = {
|
|
|
2653
2653
|
}, {
|
|
2654
2654
|
label: n("menu.rule_groups.condition_view.operator.starts_with"),
|
|
2655
2655
|
value: "$startsWith"
|
|
2656
|
-
}],
|
|
2657
|
-
const y =
|
|
2656
|
+
}], b = se(""), i = W(() => {
|
|
2657
|
+
const y = _.value, f = Array.isArray(E.value) ? E.value : [], k = f.map((B) => y.find((w) => w.value === B)).filter(Boolean);
|
|
2658
2658
|
let P = [];
|
|
2659
|
-
return
|
|
2660
|
-
}),
|
|
2659
|
+
return b.value ? (P = y.filter((B) => B.label.toLowerCase().includes(b.value.toLowerCase()) && !f.includes(B.value)), [...k, ...P]) : (P = y.filter((B) => !f.includes(B.value)), [...k, ...P]);
|
|
2660
|
+
}), v = W(() => {
|
|
2661
2661
|
let y = A.value;
|
|
2662
|
-
return y = y.filter((f) => !r.selectedKeys.includes(f.value) || f.value === T.value),
|
|
2662
|
+
return y = y.filter((f) => !r.selectedKeys.includes(f.value) || f.value === T.value), b.value ? y.filter((f) => f.label.toLowerCase().includes(b.value.toLowerCase())) : y;
|
|
2663
2663
|
});
|
|
2664
2664
|
Ze(() => T.value, (y) => {
|
|
2665
2665
|
E.value = [];
|
|
@@ -2724,7 +2724,7 @@ const sa = {
|
|
|
2724
2724
|
class: "flex w-full",
|
|
2725
2725
|
modelValue: T.value,
|
|
2726
2726
|
"onUpdate:modelValue": [f[2] || (f[2] = (w) => T.value = w), f[3] || (f[3] = (w) => p("ruleKey", w))],
|
|
2727
|
-
items:
|
|
2727
|
+
items: v.value,
|
|
2728
2728
|
placeholder: j(n)("menu.rule_groups.condition_view.select_item")
|
|
2729
2729
|
}, {
|
|
2730
2730
|
"prepend-menu": oe(() => [V("div", {
|
|
@@ -2732,8 +2732,8 @@ const sa = {
|
|
|
2732
2732
|
}, ["stop"]))
|
|
2733
2733
|
}, [Q(k, {
|
|
2734
2734
|
class: "px-8",
|
|
2735
|
-
modelValue:
|
|
2736
|
-
"onUpdate:modelValue": f[0] || (f[0] = (w) =>
|
|
2735
|
+
modelValue: b.value,
|
|
2736
|
+
"onUpdate:modelValue": f[0] || (f[0] = (w) => b.value = w),
|
|
2737
2737
|
placeholder: "Filter"
|
|
2738
2738
|
}, null, 8, ["modelValue"])])]),
|
|
2739
2739
|
_: 1
|
|
@@ -2757,8 +2757,8 @@ const sa = {
|
|
|
2757
2757
|
default: oe(() => [V("div", ua, Z(E.value.join(", ")), 1)]),
|
|
2758
2758
|
"prepend-menu": oe(() => [Q(k, {
|
|
2759
2759
|
class: "px-8",
|
|
2760
|
-
modelValue:
|
|
2761
|
-
"onUpdate:modelValue": f[6] || (f[6] = (w) =>
|
|
2760
|
+
modelValue: b.value,
|
|
2761
|
+
"onUpdate:modelValue": f[6] || (f[6] = (w) => b.value = w),
|
|
2762
2762
|
placeholder: j(n)("common.filter")
|
|
2763
2763
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
2764
2764
|
_: 1
|
|
@@ -2787,65 +2787,65 @@ const sa = {
|
|
|
2787
2787
|
const {
|
|
2788
2788
|
t: n
|
|
2789
2789
|
} = He(), r = e, o = t, a = W(() => {
|
|
2790
|
-
var
|
|
2791
|
-
return ((
|
|
2790
|
+
var _;
|
|
2791
|
+
return ((_ = r.modelValue.restaurantRule) == null ? void 0 : _.restaurantAttributes) ?? {};
|
|
2792
2792
|
}), u = W(() => {
|
|
2793
|
-
var
|
|
2794
|
-
return ((
|
|
2793
|
+
var _;
|
|
2794
|
+
return ((_ = r.modelValue.restaurantRule) == null ? void 0 : _.restaurantCustomAttributes) ?? {};
|
|
2795
2795
|
}), m = W(() => {
|
|
2796
|
-
var
|
|
2797
|
-
return ((
|
|
2796
|
+
var _;
|
|
2797
|
+
return ((_ = r.modelValue.itemRule) == null ? void 0 : _.itemAttributes) ?? {};
|
|
2798
2798
|
}), c = W(() => {
|
|
2799
|
-
var
|
|
2800
|
-
return ((
|
|
2801
|
-
}), g = se([...(a.value.rules ?? []).map((
|
|
2802
|
-
...
|
|
2799
|
+
var _;
|
|
2800
|
+
return ((_ = r.modelValue.itemRule) == null ? void 0 : _.itemCustomAttributes) ?? {};
|
|
2801
|
+
}), g = se([...(a.value.rules ?? []).map((_) => ({
|
|
2802
|
+
..._,
|
|
2803
2803
|
id: crypto.randomUUID(),
|
|
2804
|
-
property: `restaurant_attr_${
|
|
2805
|
-
})), ...(u.value.rules ?? []).map((
|
|
2806
|
-
...
|
|
2804
|
+
property: `restaurant_attr_${_.property}`
|
|
2805
|
+
})), ...(u.value.rules ?? []).map((_) => ({
|
|
2806
|
+
..._,
|
|
2807
2807
|
id: crypto.randomUUID(),
|
|
2808
|
-
property: `restaurant_custom_${
|
|
2809
|
-
})), ...(m.value.rules ?? []).map((
|
|
2810
|
-
...
|
|
2808
|
+
property: `restaurant_custom_${_.property}`
|
|
2809
|
+
})), ...(m.value.rules ?? []).map((_) => ({
|
|
2810
|
+
..._,
|
|
2811
2811
|
id: crypto.randomUUID(),
|
|
2812
|
-
property: `item_attr_${
|
|
2813
|
-
})), ...(c.value.rules ?? []).map((
|
|
2814
|
-
...
|
|
2812
|
+
property: `item_attr_${_.property}`
|
|
2813
|
+
})), ...(c.value.rules ?? []).map((_) => ({
|
|
2814
|
+
..._,
|
|
2815
2815
|
id: crypto.randomUUID(),
|
|
2816
|
-
property: `item_custom_${
|
|
2816
|
+
property: `item_custom_${_.property}`
|
|
2817
2817
|
}))]);
|
|
2818
|
-
|
|
2818
|
+
vn(() => {
|
|
2819
2819
|
g.value.length === 0 && E();
|
|
2820
2820
|
});
|
|
2821
2821
|
const T = se([]);
|
|
2822
|
-
function A(
|
|
2823
|
-
const O =
|
|
2824
|
-
if (
|
|
2822
|
+
function A(_) {
|
|
2823
|
+
const O = _.uniqueKey.split("_"), I = O[0] === "newCondition";
|
|
2824
|
+
if (_.action === "delete")
|
|
2825
2825
|
if (I)
|
|
2826
|
-
T.value = T.value.filter((
|
|
2826
|
+
T.value = T.value.filter((b) => b.key !== _.uniqueKey);
|
|
2827
2827
|
else {
|
|
2828
|
-
const
|
|
2829
|
-
g.value = g.value.filter((i) => i.id !==
|
|
2828
|
+
const b = O.slice(1).join("_");
|
|
2829
|
+
g.value = g.value.filter((i) => i.id !== b);
|
|
2830
2830
|
}
|
|
2831
|
-
else if (
|
|
2831
|
+
else if (_.action === "update")
|
|
2832
2832
|
if (I)
|
|
2833
|
-
T.value = T.value.filter((
|
|
2833
|
+
T.value = T.value.filter((b) => b.key !== _.uniqueKey), g.value.push({
|
|
2834
2834
|
id: crypto.randomUUID(),
|
|
2835
|
-
property:
|
|
2836
|
-
operator:
|
|
2837
|
-
value:
|
|
2838
|
-
type:
|
|
2835
|
+
property: _.ruleKey,
|
|
2836
|
+
operator: _.operator,
|
|
2837
|
+
value: _.values,
|
|
2838
|
+
type: _.type
|
|
2839
2839
|
});
|
|
2840
2840
|
else {
|
|
2841
|
-
const
|
|
2841
|
+
const b = O.slice(1).join("_"), i = g.value.findIndex((v) => v.id === b);
|
|
2842
2842
|
i !== -1 && (g.value[i] = {
|
|
2843
|
-
id:
|
|
2843
|
+
id: b,
|
|
2844
2844
|
// Keep the same ID
|
|
2845
|
-
property:
|
|
2846
|
-
operator:
|
|
2847
|
-
value:
|
|
2848
|
-
type:
|
|
2845
|
+
property: _.ruleKey,
|
|
2846
|
+
operator: _.operator,
|
|
2847
|
+
value: _.values,
|
|
2848
|
+
type: _.type
|
|
2849
2849
|
});
|
|
2850
2850
|
}
|
|
2851
2851
|
o("update:modelValue", g.value);
|
|
@@ -2855,27 +2855,27 @@ const sa = {
|
|
|
2855
2855
|
key: `newCondition_${T.value.length}`
|
|
2856
2856
|
});
|
|
2857
2857
|
}
|
|
2858
|
-
return Ze(() => g.value.length + T.value.length, (
|
|
2859
|
-
|
|
2860
|
-
}), (
|
|
2858
|
+
return Ze(() => g.value.length + T.value.length, (_) => {
|
|
2859
|
+
_ === 0 && E();
|
|
2860
|
+
}), (_, O) => {
|
|
2861
2861
|
const I = pe("FmButton");
|
|
2862
|
-
return x(), Y("div", ia, [V("p", ca, Z(j(n)("menu.rule_groups.condition_view.condition")), 1), V("div", ma, [(x(!0), Y(
|
|
2863
|
-
key:
|
|
2862
|
+
return x(), Y("div", ia, [V("p", ca, Z(j(n)("menu.rule_groups.condition_view.condition")), 1), V("div", ma, [(x(!0), Y(de, null, Me(g.value, (b) => (x(), Y("div", {
|
|
2863
|
+
key: b.id
|
|
2864
2864
|
}, [Q(yn, {
|
|
2865
|
-
ruleKey:
|
|
2866
|
-
operator:
|
|
2867
|
-
values:
|
|
2868
|
-
"unique-key": `condition_${
|
|
2865
|
+
ruleKey: b.property,
|
|
2866
|
+
operator: b.operator,
|
|
2867
|
+
values: b.value,
|
|
2868
|
+
"unique-key": `condition_${b.id}`,
|
|
2869
2869
|
"selected-keys": g.value.map((i) => i.property),
|
|
2870
2870
|
"onUpdate:modelValue": O[0] || (O[0] = (i) => {
|
|
2871
2871
|
A(i);
|
|
2872
2872
|
})
|
|
2873
|
-
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (x(!0), Y(
|
|
2874
|
-
key:
|
|
2873
|
+
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (x(!0), Y(de, null, Me(T.value, (b) => (x(), Y("div", {
|
|
2874
|
+
key: b.key
|
|
2875
2875
|
}, [Q(yn, {
|
|
2876
2876
|
ruleKey: "",
|
|
2877
2877
|
operator: "",
|
|
2878
|
-
"unique-key":
|
|
2878
|
+
"unique-key": b.key,
|
|
2879
2879
|
values: [],
|
|
2880
2880
|
"selected-keys": g.value.map((i) => i.property),
|
|
2881
2881
|
"onUpdate:modelValue": O[1] || (O[1] = (i) => {
|
|
@@ -2885,11 +2885,11 @@ const sa = {
|
|
|
2885
2885
|
variant: j(Fe).Plain,
|
|
2886
2886
|
"prepend-icon": "add",
|
|
2887
2887
|
label: j(n)("menu.rule_groups.condition_view.add_condition"),
|
|
2888
|
-
onClick: O[2] || (O[2] = ae((
|
|
2888
|
+
onClick: O[2] || (O[2] = ae((b) => E(), ["stop"]))
|
|
2889
2889
|
}, null, 8, ["variant", "label"])])]);
|
|
2890
2890
|
};
|
|
2891
2891
|
}
|
|
2892
|
-
}),
|
|
2892
|
+
}), _a = { class: "flex w-full items-center space-x-8" }, da = { class: "w-24" }, pa = { class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden" }, Ea = { class: "whitespace-nowrap" }, ga = { class: "fm-typo-en-body-lg-600 whitespace-nowrap" }, ya = /* @__PURE__ */ ie({
|
|
2893
2893
|
__name: "RuleConditionListView",
|
|
2894
2894
|
props: {
|
|
2895
2895
|
number: {
|
|
@@ -2933,8 +2933,8 @@ const sa = {
|
|
|
2933
2933
|
};
|
|
2934
2934
|
return (o, a) => {
|
|
2935
2935
|
const u = pe("FmMenu");
|
|
2936
|
-
return x(), Y("div",
|
|
2937
|
-
V("p",
|
|
2936
|
+
return x(), Y("div", _a, [
|
|
2937
|
+
V("p", da, Z(e.number) + ".", 1),
|
|
2938
2938
|
V("div", pa, [
|
|
2939
2939
|
V("p", Ea, Z(e.property), 1),
|
|
2940
2940
|
V("p", ga, Z(r[e.operator]), 1),
|
|
@@ -2950,7 +2950,7 @@ const sa = {
|
|
|
2950
2950
|
}, Z(e.value.join(", ")), 513)
|
|
2951
2951
|
]),
|
|
2952
2952
|
default: oe(() => [
|
|
2953
|
-
(x(!0), Y(
|
|
2953
|
+
(x(!0), Y(de, null, Me(e.value, (m) => (x(), Y("div", {
|
|
2954
2954
|
key: m,
|
|
2955
2955
|
class: "flex flex-col px-8 space-y-8"
|
|
2956
2956
|
}, [
|
|
@@ -2970,9 +2970,9 @@ function ja(e) {
|
|
|
2970
2970
|
function Xa(e) {
|
|
2971
2971
|
return Xn(e) ? null : Kn.build(e);
|
|
2972
2972
|
}
|
|
2973
|
-
const
|
|
2973
|
+
const ba = {
|
|
2974
2974
|
class: "flex items-center gap-24"
|
|
2975
|
-
},
|
|
2975
|
+
}, va = {
|
|
2976
2976
|
key: 0,
|
|
2977
2977
|
class: "fm-typo-en-headline-lg-600"
|
|
2978
2978
|
}, ha = {
|
|
@@ -3014,16 +3014,16 @@ const va = {
|
|
|
3014
3014
|
}), A = W(() => {
|
|
3015
3015
|
var I;
|
|
3016
3016
|
return ((I = u.modelValue.itemRule) == null ? void 0 : I.itemCustomAttributes) ?? {};
|
|
3017
|
-
}), E = se([...c.value.rules ?? [], ...g.value.rules ?? [], ...T.value.rules ?? [], ...A.value.rules ?? []]),
|
|
3017
|
+
}), E = se([...c.value.rules ?? [], ...g.value.rules ?? [], ...T.value.rules ?? [], ...A.value.rules ?? []]), _ = se([]);
|
|
3018
3018
|
function O() {
|
|
3019
3019
|
var p, L, y, f, k, P, B, w;
|
|
3020
|
-
const I = u.modelValue,
|
|
3021
|
-
if (
|
|
3020
|
+
const I = u.modelValue, b = [], i = [], v = [], R = [];
|
|
3021
|
+
if (_.value.length === 0) {
|
|
3022
3022
|
a(!1);
|
|
3023
3023
|
return;
|
|
3024
3024
|
}
|
|
3025
|
-
|
|
3026
|
-
D.property.startsWith("restaurant_attr") ?
|
|
3025
|
+
_.value.forEach((D) => {
|
|
3026
|
+
D.property.startsWith("restaurant_attr") ? b.push({
|
|
3027
3027
|
property: D.property.replace("restaurant_attr_", ""),
|
|
3028
3028
|
operator: D.operator,
|
|
3029
3029
|
value: D.value,
|
|
@@ -3033,7 +3033,7 @@ const va = {
|
|
|
3033
3033
|
operator: D.operator,
|
|
3034
3034
|
value: D.value,
|
|
3035
3035
|
type: D.type
|
|
3036
|
-
}) : D.property.startsWith("item_attr") ?
|
|
3036
|
+
}) : D.property.startsWith("item_attr") ? v.push({
|
|
3037
3037
|
property: D.property.replace("item_attr_", ""),
|
|
3038
3038
|
operator: D.operator,
|
|
3039
3039
|
value: D.value,
|
|
@@ -3047,7 +3047,7 @@ const va = {
|
|
|
3047
3047
|
}), I.restaurantRule = {
|
|
3048
3048
|
restaurantAttributes: {
|
|
3049
3049
|
logic: ((L = (p = I.restaurantRule) == null ? void 0 : p.restaurantAttributes) == null ? void 0 : L.logic) ?? "AND",
|
|
3050
|
-
rules:
|
|
3050
|
+
rules: b
|
|
3051
3051
|
},
|
|
3052
3052
|
restaurantCustomAttributes: {
|
|
3053
3053
|
logic: ((f = (y = I.restaurantRule) == null ? void 0 : y.restaurantCustomAttributes) == null ? void 0 : f.logic) ?? "AND",
|
|
@@ -3056,7 +3056,7 @@ const va = {
|
|
|
3056
3056
|
}, I.itemRule = {
|
|
3057
3057
|
itemAttributes: {
|
|
3058
3058
|
logic: ((P = (k = I.itemRule) == null ? void 0 : k.itemAttributes) == null ? void 0 : P.logic) ?? "AND",
|
|
3059
|
-
rules:
|
|
3059
|
+
rules: v
|
|
3060
3060
|
},
|
|
3061
3061
|
itemCustomAttributes: {
|
|
3062
3062
|
logic: ((w = (B = I.itemRule) == null ? void 0 : B.itemCustomAttributes) == null ? void 0 : w.logic) ?? "AND",
|
|
@@ -3066,13 +3066,13 @@ const va = {
|
|
|
3066
3066
|
menuRule: I
|
|
3067
3067
|
});
|
|
3068
3068
|
}
|
|
3069
|
-
return (I,
|
|
3070
|
-
const i = pe("FmButton"),
|
|
3071
|
-
return x(), Y(
|
|
3069
|
+
return (I, b) => {
|
|
3070
|
+
const i = pe("FmButton"), v = pe("FmSideSheet");
|
|
3071
|
+
return x(), Y(de, null, [Qe(I.$slots, "default", {
|
|
3072
3072
|
trigger: a
|
|
3073
|
-
}), Q(
|
|
3073
|
+
}), Q(v, {
|
|
3074
3074
|
modelValue: o.value,
|
|
3075
|
-
"onUpdate:modelValue":
|
|
3075
|
+
"onUpdate:modelValue": b[3] || (b[3] = (R) => o.value = R),
|
|
3076
3076
|
"max-width": 760,
|
|
3077
3077
|
"close-button": !1,
|
|
3078
3078
|
"is-container": j(qn).FmForm,
|
|
@@ -3081,11 +3081,11 @@ const va = {
|
|
|
3081
3081
|
blameFormChildOnValidationFailed: !0
|
|
3082
3082
|
}
|
|
3083
3083
|
}, {
|
|
3084
|
-
"side-sheet-header": oe(() => [V("div",
|
|
3084
|
+
"side-sheet-header": oe(() => [V("div", ba, [Q(i, {
|
|
3085
3085
|
variant: j(Fe).Tertiary,
|
|
3086
3086
|
"prepend-icon": "arrow_back",
|
|
3087
|
-
onClick:
|
|
3088
|
-
}, null, 8, ["variant"]), I.isEditMode && E.value.length > 0 ? (x(), Y("div",
|
|
3087
|
+
onClick: b[0] || (b[0] = ae((R) => a(), ["stop"]))
|
|
3088
|
+
}, null, 8, ["variant"]), I.isEditMode && E.value.length > 0 ? (x(), Y("div", va, Z(j(r)("menu.rule_groups.condition_view.edit_condition")), 1)) : (x(), Y("div", ha, Z(j(r)("menu.rule_groups.condition_view.add_condition")), 1))])]),
|
|
3089
3089
|
"side-sheet-footer": oe(() => [V("div", Ta, [Q(i, {
|
|
3090
3090
|
variant: "primary",
|
|
3091
3091
|
label: j(r)("common.save"),
|
|
@@ -3093,13 +3093,13 @@ const va = {
|
|
|
3093
3093
|
}, null, 8, ["label"]), Q(i, {
|
|
3094
3094
|
variant: "secondary",
|
|
3095
3095
|
label: j(r)("common.cancel"),
|
|
3096
|
-
onClick:
|
|
3096
|
+
onClick: b[2] || (b[2] = ae((R) => a(!1), ["stop"]))
|
|
3097
3097
|
}, null, 8, ["label"])])]),
|
|
3098
3098
|
default: oe(() => [Q(fa, {
|
|
3099
3099
|
class: "p-16",
|
|
3100
3100
|
"model-value": I.modelValue,
|
|
3101
|
-
"onUpdate:modelValue":
|
|
3102
|
-
|
|
3101
|
+
"onUpdate:modelValue": b[1] || (b[1] = (R) => {
|
|
3102
|
+
_.value = R;
|
|
3103
3103
|
})
|
|
3104
3104
|
}, null, 8, ["model-value"])]),
|
|
3105
3105
|
_: 1
|
|
@@ -3166,21 +3166,21 @@ const va = {
|
|
|
3166
3166
|
const {
|
|
3167
3167
|
t: n
|
|
3168
3168
|
} = We(), r = e, o = {
|
|
3169
|
-
[
|
|
3170
|
-
[
|
|
3171
|
-
[
|
|
3169
|
+
[bt.F_ORDER_FROM.Enum.ALL]: "ALL",
|
|
3170
|
+
[bt.F_ORDER_FROM.Enum.POS_ONLY]: "POS ONLY",
|
|
3171
|
+
[bt.F_ORDER_FROM.Enum.NONE]: "NONE"
|
|
3172
3172
|
}, a = t, u = se(), m = W(() => {
|
|
3173
|
-
var E,
|
|
3174
|
-
return ((
|
|
3173
|
+
var E, _;
|
|
3174
|
+
return ((_ = (E = r.modelValue.restaurantRule) == null ? void 0 : E.restaurantAttributes) == null ? void 0 : _.rules) ?? [];
|
|
3175
3175
|
}), c = W(() => {
|
|
3176
|
-
var E,
|
|
3177
|
-
return ((
|
|
3176
|
+
var E, _;
|
|
3177
|
+
return ((_ = (E = r.modelValue.restaurantRule) == null ? void 0 : E.restaurantCustomAttributes) == null ? void 0 : _.rules) ?? [];
|
|
3178
3178
|
}), g = W(() => {
|
|
3179
|
-
var E,
|
|
3180
|
-
return ((
|
|
3179
|
+
var E, _;
|
|
3180
|
+
return ((_ = (E = r.modelValue.itemRule) == null ? void 0 : E.itemAttributes) == null ? void 0 : _.rules) ?? [];
|
|
3181
3181
|
}), T = W(() => {
|
|
3182
|
-
var E,
|
|
3183
|
-
return ((
|
|
3182
|
+
var E, _;
|
|
3183
|
+
return ((_ = (E = r.modelValue.itemRule) == null ? void 0 : E.itemCustomAttributes) == null ? void 0 : _.rules) ?? [];
|
|
3184
3184
|
}), A = W(() => [...m.value.map((E) => ({
|
|
3185
3185
|
...E,
|
|
3186
3186
|
property: `${n("menu.catalog.usage.restaurant")} ${E.property}`
|
|
@@ -3194,33 +3194,33 @@ const va = {
|
|
|
3194
3194
|
...E,
|
|
3195
3195
|
property: `${n("menu.product.title")} ${E.property}`
|
|
3196
3196
|
}))]);
|
|
3197
|
-
return (E,
|
|
3197
|
+
return (E, _) => {
|
|
3198
3198
|
const O = pe("FmButton"), I = pe("FmMenu");
|
|
3199
|
-
return x(), Y(
|
|
3199
|
+
return x(), Y(de, null, [V("div", Na, [e.title ? (x(), Y("p", Ra, Z(e.title), 1)) : we("", !0), V("div", Aa, [e.isCatalogLinkItemRuleView ? (x(), Wt(O, {
|
|
3200
3200
|
key: 1,
|
|
3201
3201
|
variant: j(Fe).Tertiary,
|
|
3202
3202
|
class: "cursor-pointer",
|
|
3203
3203
|
"prepend-icon": "edit",
|
|
3204
3204
|
"text-color": " text-fm-color-primary",
|
|
3205
|
-
onClick:
|
|
3205
|
+
onClick: _[1] || (_[1] = ae((b) => e.isCatalogLinkItemRuleView ? E.$emit("open-catalog-link-item-rule-form") : null, ["stop"]))
|
|
3206
3206
|
}, null, 8, ["variant"])) : (x(), Wt(Ia, {
|
|
3207
3207
|
key: 0,
|
|
3208
3208
|
ref_key: "ruleFormRef",
|
|
3209
3209
|
ref: u,
|
|
3210
3210
|
"model-value": r.modelValue,
|
|
3211
3211
|
"is-edit-mode": !0,
|
|
3212
|
-
"onUpdate:modelValue":
|
|
3213
|
-
a("update:model-value",
|
|
3212
|
+
"onUpdate:modelValue": _[0] || (_[0] = (b) => {
|
|
3213
|
+
a("update:model-value", b);
|
|
3214
3214
|
})
|
|
3215
3215
|
}, {
|
|
3216
3216
|
default: oe(({
|
|
3217
|
-
trigger:
|
|
3217
|
+
trigger: b
|
|
3218
3218
|
}) => [Q(O, {
|
|
3219
3219
|
variant: j(Fe).Tertiary,
|
|
3220
3220
|
class: "cursor-pointer",
|
|
3221
3221
|
"prepend-icon": "edit",
|
|
3222
3222
|
"text-color": " text-fm-color-primary",
|
|
3223
|
-
onClick: ae((i) =>
|
|
3223
|
+
onClick: ae((i) => b(), ["stop"])
|
|
3224
3224
|
}, null, 8, ["variant", "onClick"])]),
|
|
3225
3225
|
_: 1
|
|
3226
3226
|
}, 8, ["model-value"])), Q(O, {
|
|
@@ -3228,11 +3228,11 @@ const va = {
|
|
|
3228
3228
|
class: "cursor-pointer",
|
|
3229
3229
|
"prepend-icon": "delete",
|
|
3230
3230
|
"text-color": " text-fm-color-typo-error",
|
|
3231
|
-
onClick:
|
|
3232
|
-
}, null, 8, ["variant"])])]), V("div", La, [V("p", Oa, Z(j(n)("menu.rule_groups.condition_view.when")), 1), e.ruleGroupNames ? (x(!0), Y(
|
|
3231
|
+
onClick: _[2] || (_[2] = ae(() => a("delete-rule", r.modelValue._id), ["stop"]))
|
|
3232
|
+
}, null, 8, ["variant"])])]), V("div", La, [V("p", Oa, Z(j(n)("menu.rule_groups.condition_view.when")), 1), e.ruleGroupNames ? (x(!0), Y(de, {
|
|
3233
3233
|
key: 0
|
|
3234
|
-
}, Me(e.ruleGroupNames, (
|
|
3235
|
-
key:
|
|
3234
|
+
}, Me(e.ruleGroupNames, (b, i) => (x(), Y("div", {
|
|
3235
|
+
key: b
|
|
3236
3236
|
}, [V("div", Ca, [V("p", ka, Z(i + 1) + ".", 1), V("div", Sa, [V("p", null, Z(j(n)("menu.rule_groups.condition_view.in_rule_group")), 1), Q(I, {
|
|
3237
3237
|
trigger: "hover",
|
|
3238
3238
|
closeOnMouseLeave: ""
|
|
@@ -3240,32 +3240,32 @@ const va = {
|
|
|
3240
3240
|
"menu-button": oe(() => [V("p", {
|
|
3241
3241
|
ref_for: !0,
|
|
3242
3242
|
ref: "valueTextRef",
|
|
3243
|
-
onClick:
|
|
3243
|
+
onClick: _[3] || (_[3] = ae((v) => e.isCatalogLinkItemRuleView ? E.$emit("open-catalog-link-item-rule-form") : null, ["stop"])),
|
|
3244
3244
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate"
|
|
3245
|
-
}, Z(
|
|
3246
|
-
default: oe(() => [V("p", Pa, Z(
|
|
3245
|
+
}, Z(b), 513)]),
|
|
3246
|
+
default: oe(() => [V("p", Pa, Z(b), 1)]),
|
|
3247
3247
|
_: 2
|
|
3248
|
-
}, 1024)])])]))), 128)) : we("", !0), (x(!0), Y(
|
|
3249
|
-
var
|
|
3248
|
+
}, 1024)])])]))), 128)) : we("", !0), (x(!0), Y(de, null, Me(A.value, (b, i) => {
|
|
3249
|
+
var v;
|
|
3250
3250
|
return x(), Y("div", {
|
|
3251
|
-
key:
|
|
3251
|
+
key: b.property
|
|
3252
3252
|
}, [Q(ya, {
|
|
3253
|
-
number: i + (((
|
|
3254
|
-
property:
|
|
3255
|
-
operator:
|
|
3256
|
-
value:
|
|
3253
|
+
number: i + (((v = e.ruleGroupNames) == null ? void 0 : v.length) ?? 0) + 1,
|
|
3254
|
+
property: b.property,
|
|
3255
|
+
operator: b.operator,
|
|
3256
|
+
value: b.value,
|
|
3257
3257
|
isCatalogLinkItemRuleView: e.isCatalogLinkItemRuleView,
|
|
3258
|
-
onOpenCatalogLinkItemRuleForm:
|
|
3259
|
-
onOpenRuleConditionForm:
|
|
3258
|
+
onOpenCatalogLinkItemRuleForm: _[4] || (_[4] = (R) => E.$emit("open-catalog-link-item-rule-form")),
|
|
3259
|
+
onOpenRuleConditionForm: _[5] || (_[5] = (R) => {
|
|
3260
3260
|
var p;
|
|
3261
3261
|
return (p = u.value) == null ? void 0 : p.trigger();
|
|
3262
3262
|
})
|
|
3263
3263
|
}, null, 8, ["number", "property", "operator", "value", "isCatalogLinkItemRuleView"])]);
|
|
3264
|
-
}), 128))]), e.orderFrom ? (x(), Y("div", Da, [V("p", wa, Z(j(n)("menu.rule_groups.condition_view.then")), 1), V("div", Fa, [V("p", Ma, Z(j(n)("menu.rule_groups.condition_view.product_availability")), 1),
|
|
3264
|
+
}), 128))]), e.orderFrom ? (x(), Y("div", Da, [V("p", wa, Z(j(n)("menu.rule_groups.condition_view.then")), 1), V("div", Fa, [V("p", Ma, Z(j(n)("menu.rule_groups.condition_view.product_availability")), 1), _[7] || (_[7] = V("p", {
|
|
3265
3265
|
class: "fm-typo-en-body-lg-600 text-fm-color-neutral-gray-300"
|
|
3266
3266
|
}, "is", -1)), V("p", {
|
|
3267
3267
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate",
|
|
3268
|
-
onClick:
|
|
3268
|
+
onClick: _[6] || (_[6] = ae((b) => e.isCatalogLinkItemRuleView ? E.$emit("open-catalog-link-item-rule-form") : null, ["stop"]))
|
|
3269
3269
|
}, Z(o[e.orderFrom]), 1)])])) : we("", !0)], 64);
|
|
3270
3270
|
};
|
|
3271
3271
|
}
|