@feedmepos/mf-menu 0.32.57-dev.2 → 0.32.57
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-CE5s0l9A.js → App-DUxN7yt3.js} +7 -7
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DZ5sZWpU.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Cnjt_wfR.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-B0POr6JV.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-bM6TM5x1.js} +2 -2
- package/dist/{Catalog-CY6RvjyS.js → Catalog-BpdfaEWd.js} +6 -6
- package/dist/{Category-DIpJlX_N.js → Category-CRsvI23c.js} +4 -4
- package/dist/{Category-BoVnd_-a.js → Category-h0mVpwHr.js} +4 -4
- package/dist/{CookingGuide-CHzasZA9.js → CookingGuide-DFgQ2jxt.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DIhsGYRl.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-D8nqY4jC.js} +1 -1
- package/dist/{Group-SUmVQxSU.js → Group-PG5pxNfh.js} +3 -3
- package/dist/{Group-CwBojMky.js → Group-slvcd4if.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BBqXiV3r.js → Group.vue_vue_type_script_setup_true_lang-Ca0RTf7d.js} +6 -6
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CcQdvzMy.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BpeIXVCs.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C8VMeXoW.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Ck2KAv76.js} +7 -7
- package/dist/{Ingredient-DmsJNTi3.js → Ingredient-xKI7y0XB.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CZ3Ti5o-.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CH3jTi1A.js} +2 -2
- package/dist/{LinkProductSideSheet-D8Dvdhk0.js → LinkProductSideSheet-BF_00Jg8.js} +3 -3
- package/dist/{MenuSetting-CmFx4CKw.js → MenuSetting-BAbfo028.js} +6 -6
- package/dist/{OrderPacing-CFuteZjm.js → OrderPacing-BPz3MCxe.js} +5 -5
- package/dist/{PrintRoute-CeHNsLcv.js → PrintRoute-CiXCACml.js} +4 -4
- package/dist/{Product-bJfbi1yz.js → Product-DrSEg6_V.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-kvqrUjei.js → Product.vue_vue_type_script_setup_true_lang-BsgdvCz2.js} +12 -12
- package/dist/{ProductInternalTools-BkKbXFdG.js → ProductInternalTools-BerUVFF6.js} +6 -6
- package/dist/{Products-Bv9gINb8.js → Products-DhJlfhP5.js} +38 -38
- package/dist/{Publish-CSMkGRiV.js → Publish-BAjNPk_P.js} +3 -3
- package/dist/{Recipe-CDK1f07t.js → Recipe-CkVcMchR.js} +4 -4
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-hYs_2e94.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CSZz_CAP.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DdSe-i8f.js → RuleView.vue_vue_type_script_setup_true_lang-DVQKrN9R.js} +602 -602
- package/dist/{Scheduler-Ce6qK5xo.js → Scheduler-Dj1MR5rm.js} +3 -3
- package/dist/{ServingSequence-BSX_g50j.js → ServingSequence-BqsD44ye.js} +3 -3
- package/dist/{Setting-BNS9ggtX.js → Setting-DMSyoLbv.js} +5 -5
- package/dist/{Subcategory-62g1JEwl.js → Subcategory-CZ4i-zBw.js} +5 -5
- package/dist/{Takeaway-f4VO0ZJ-.js → Takeaway-Bl9Srdio.js} +4 -4
- package/dist/{Takeaway-DR0Ax44B.js → Takeaway-qHbk6yp-.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-B3UE1p7X.js → Takeaway.vue_vue_type_script_setup_true_lang-C6z0FcYx.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CTw2lKns.js → Thumbnail.vue_vue_type_script_setup_true_lang-DZSD2_pk.js} +4 -4
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-hd6JGri0.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-C74nkozY.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-BRXHWG5s.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BI5I0IXp.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ClDRf-88.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DMd8Z0TE.js} +14 -14
- package/dist/{Unit-DnrLxe1V.js → Unit-DXysALJ4.js} +2 -2
- package/dist/{Variant-DM2r3Of9.js → Variant-pFLHZVO9.js} +3 -3
- package/dist/{_id_-BhFeSJIu.js → _id_-4-U7cNsx.js} +9 -9
- package/dist/{app-CO3nuOc3.js → app-CR7NhNht.js} +1 -1
- package/dist/{app-DH7q5VuL.js → app-D2NOhx2Z.js} +32 -32
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-BR-paOgW.js → linked-status-DYxk695w.js} +2 -2
- package/dist/assets/{menu-export-Dwpl4c_S.js → menu-export-CyN_O3Kf.js} +2 -2
- package/dist/assets/{override-menu-BS1DhRTo.js → override-menu-BTTTU6jX.js} +2 -2
- package/dist/assets/{validate-menu-B-YCNUDR.js → validate-menu-C2al0uj-.js} +2 -2
- package/dist/{catalog-DN1unMjl.js → catalog-BF2fCHSi.js} +1 -1
- package/dist/{catalogSetting-CI8dXYw5.js → catalogSetting-BCrV4DCa.js} +1 -1
- package/dist/{currency-BFqLFFOP.js → currency-DrKjxBJB.js} +1 -1
- package/dist/{dayjs.min-BXDB3ec6.js → dayjs.min-DzJl7L78.js} +2 -2
- package/dist/{index-CCKQLhW1.js → index-Bxm8mZ6g.js} +4 -4
- package/dist/{index-CYexEfd8.js → index-Dhou0UEg.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-BbQF5cdO.js → index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js} +6 -6
- package/dist/{item-eua4dBDT.js → item-Dyckwjo-.js} +18 -18
- package/dist/{jszip.min-C10zcIsO.js → jszip.min-ByutR7rj.js} +175 -175
- package/dist/{memberPricing-BlITNLhE.js → memberPricing-BMRI1Z7U.js} +1 -1
- package/dist/{menu-C4vsCvFL.js → menu-CDzIVGfu.js} +1 -1
- package/dist/{menuV2-DB-VttRA.js → menuV2-puLrcFs3.js} +50 -50
- package/dist/{order_pacing-CDQ6wUL_.js → order_pacing-Cs212Wff.js} +5 -5
- package/dist/{priceTier-pJMZysfK.js → priceTier-WPgZnKsU.js} +1 -1
- package/dist/{rules-BScEYhiY.js → rules-DCnNMPmp.js} +3 -3
- package/dist/{scheduler-BTiyl-EY.js → scheduler-BWWxcljn.js} +4 -4
- package/dist/{toExcel-CSdnEWqk.js → toExcel-DuXu6LJi.js} +2 -2
- package/dist/{unit-BcPS3VM3.js → unit-DLzvIszm.js} +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as ie, createElementBlock as j, openBlock as x, normalizeClass as Pt, renderSlot as Qe, createCommentVNode as Fe, createVNode as X, createElementVNode as V, toDisplayString as Z, withCtx as ae, getCurrentInstance as Dt, inject as Hn, ref as oe, shallowRef as Gn, computed as W, watch as Ze, onMounted as
|
|
1
|
+
import { defineComponent as ie, createElementBlock as j, openBlock as x, normalizeClass as Pt, renderSlot as Qe, createCommentVNode as Fe, createVNode as X, createElementVNode as V, toDisplayString as Z, withCtx as ae, getCurrentInstance as Dt, inject as Hn, ref as oe, shallowRef as Gn, computed as W, watch as Ze, onMounted as vn, onUnmounted as Wn, h as hn, Text as Bn, Fragment as _e, resolveComponent as pe, unref as K, withModifiers as se, renderList as Me, createBlock as Bt } from "vue";
|
|
2
2
|
import { x as xn, N as Kn } from "./app-5fxKLAzS.js";
|
|
3
3
|
import { useCoreStore as wt, useI18n as Ge, useCustomAttributes as xt, 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, H as Kt, U as
|
|
5
|
+
import { u as Tn, H as Kt, U as bt } from "./index.vue_vue_type_script_setup_true_lang-CKIfNp-a.js";
|
|
6
6
|
import { FmButtonVariant as he, components as qn } from "@feedmepos/ui-library";
|
|
7
7
|
import "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
8
8
|
const Jn = /* @__PURE__ */ ie({
|
|
@@ -65,7 +65,7 @@ const ar = Object.prototype.hasOwnProperty;
|
|
|
65
65
|
function le(e, t) {
|
|
66
66
|
return ar.call(e, t);
|
|
67
67
|
}
|
|
68
|
-
const z = Array.isArray, Y = (e) => typeof e == "function",
|
|
68
|
+
const z = Array.isArray, Y = (e) => typeof e == "function", k = (e) => typeof e == "string", Q = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", sr = (e) => U(e) && Y(e.then) && Y(e.catch), In = Object.prototype.toString, Ft = (e) => In.call(e), M = (e) => Ft(e) === "[object Object]", lr = (e) => e == null ? "" : z(e) || M(e) && e.toString === In ? JSON.stringify(e, null, 2) : String(e);
|
|
69
69
|
function Mt(e, t = "") {
|
|
70
70
|
return e.reduce((n, r, o) => o === 0 ? n + r : n + t + r, "");
|
|
71
71
|
}
|
|
@@ -116,12 +116,12 @@ function mr(e) {
|
|
|
116
116
|
throw e;
|
|
117
117
|
}
|
|
118
118
|
const me = " ", fr = "\r", ne = `
|
|
119
|
-
`,
|
|
119
|
+
`, dr = "\u2028", _r = "\u2029";
|
|
120
120
|
function pr(e) {
|
|
121
121
|
const t = e;
|
|
122
122
|
let n = 0, r = 1, o = 1, a = 0;
|
|
123
|
-
const i = (
|
|
124
|
-
function
|
|
123
|
+
const i = (_) => t[_] === fr && t[_ + 1] === ne, m = (_) => t[_] === ne, c = (_) => t[_] === _r, y = (_) => t[_] === dr, h = (_) => i(_) || m(_) || c(_) || y(_), O = () => n, p = () => r, f = () => o, S = () => a, T = (_) => i(_) || c(_) || y(_) ? ne : t[_], g = () => T(n), u = () => T(n + a);
|
|
124
|
+
function b() {
|
|
125
125
|
return a = 0, h(n) && (r++, o = 0), i(n) && n++, n++, o++, t[n];
|
|
126
126
|
}
|
|
127
127
|
function N() {
|
|
@@ -130,32 +130,32 @@ function pr(e) {
|
|
|
130
130
|
function E() {
|
|
131
131
|
n = 0, r = 1, o = 1, a = 0;
|
|
132
132
|
}
|
|
133
|
-
function R(
|
|
134
|
-
a =
|
|
133
|
+
function R(_ = 0) {
|
|
134
|
+
a = _;
|
|
135
135
|
}
|
|
136
136
|
function A() {
|
|
137
|
-
const
|
|
138
|
-
for (;
|
|
139
|
-
|
|
137
|
+
const _ = n + a;
|
|
138
|
+
for (; _ !== n; )
|
|
139
|
+
b();
|
|
140
140
|
a = 0;
|
|
141
141
|
}
|
|
142
142
|
return {
|
|
143
143
|
index: O,
|
|
144
144
|
line: p,
|
|
145
145
|
column: f,
|
|
146
|
-
peekOffset:
|
|
146
|
+
peekOffset: S,
|
|
147
147
|
charAt: T,
|
|
148
|
-
currentChar:
|
|
148
|
+
currentChar: g,
|
|
149
149
|
currentPeek: u,
|
|
150
|
-
next:
|
|
150
|
+
next: b,
|
|
151
151
|
peek: N,
|
|
152
152
|
reset: E,
|
|
153
153
|
resetPeek: R,
|
|
154
154
|
skipToPeek: A
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
|
-
const
|
|
158
|
-
function
|
|
157
|
+
const ye = void 0, Er = ".", qt = "'", yr = "tokenizer";
|
|
158
|
+
function gr(e, t = {}) {
|
|
159
159
|
const n = t.location !== !1, r = pr(e), o = () => r.index(), a = () => ir(r.line(), r.column(), r.index()), i = a(), m = o(), c = {
|
|
160
160
|
currentType: 13,
|
|
161
161
|
offset: m,
|
|
@@ -168,28 +168,28 @@ function yr(e, t = {}) {
|
|
|
168
168
|
braceNest: 0,
|
|
169
169
|
inLinked: !1,
|
|
170
170
|
text: ""
|
|
171
|
-
},
|
|
172
|
-
function O(s, l,
|
|
173
|
-
const q =
|
|
174
|
-
if (l.column +=
|
|
175
|
-
const F = n ? It(q.startLoc, l) : null,
|
|
176
|
-
domain:
|
|
171
|
+
}, y = () => c, { onError: h } = t;
|
|
172
|
+
function O(s, l, v, ...D) {
|
|
173
|
+
const q = y();
|
|
174
|
+
if (l.column += v, l.offset += v, h) {
|
|
175
|
+
const F = n ? It(q.startLoc, l) : null, d = nt(s, F, {
|
|
176
|
+
domain: yr,
|
|
177
177
|
args: D
|
|
178
178
|
});
|
|
179
|
-
h(
|
|
179
|
+
h(d);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
function p(s, l,
|
|
182
|
+
function p(s, l, v) {
|
|
183
183
|
s.endLoc = a(), s.currentType = l;
|
|
184
184
|
const D = { type: l };
|
|
185
|
-
return n && (D.loc = It(s.startLoc, s.endLoc)),
|
|
185
|
+
return n && (D.loc = It(s.startLoc, s.endLoc)), v != null && (D.value = v), D;
|
|
186
186
|
}
|
|
187
187
|
const f = (s) => p(
|
|
188
188
|
s,
|
|
189
189
|
13
|
|
190
190
|
/* TokenTypes.EOF */
|
|
191
191
|
);
|
|
192
|
-
function
|
|
192
|
+
function S(s, l) {
|
|
193
193
|
return s.currentChar() === l ? (s.next(), l) : (O($.EXPECTED_TOKEN, a(), 0, l), "");
|
|
194
194
|
}
|
|
195
195
|
function T(s) {
|
|
@@ -198,75 +198,75 @@ function yr(e, t = {}) {
|
|
|
198
198
|
l += s.currentPeek(), s.peek();
|
|
199
199
|
return l;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function g(s) {
|
|
202
202
|
const l = T(s);
|
|
203
203
|
return s.skipToPeek(), l;
|
|
204
204
|
}
|
|
205
205
|
function u(s) {
|
|
206
|
-
if (s ===
|
|
206
|
+
if (s === ye)
|
|
207
207
|
return !1;
|
|
208
208
|
const l = s.charCodeAt(0);
|
|
209
209
|
return l >= 97 && l <= 122 || // a-z
|
|
210
210
|
l >= 65 && l <= 90 || // A-Z
|
|
211
211
|
l === 95;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
if (s ===
|
|
213
|
+
function b(s) {
|
|
214
|
+
if (s === ye)
|
|
215
215
|
return !1;
|
|
216
216
|
const l = s.charCodeAt(0);
|
|
217
217
|
return l >= 48 && l <= 57;
|
|
218
218
|
}
|
|
219
219
|
function N(s, l) {
|
|
220
|
-
const { currentType:
|
|
221
|
-
if (
|
|
220
|
+
const { currentType: v } = l;
|
|
221
|
+
if (v !== 2)
|
|
222
222
|
return !1;
|
|
223
223
|
T(s);
|
|
224
224
|
const D = u(s.currentPeek());
|
|
225
225
|
return s.resetPeek(), D;
|
|
226
226
|
}
|
|
227
227
|
function E(s, l) {
|
|
228
|
-
const { currentType:
|
|
229
|
-
if (
|
|
228
|
+
const { currentType: v } = l;
|
|
229
|
+
if (v !== 2)
|
|
230
230
|
return !1;
|
|
231
231
|
T(s);
|
|
232
|
-
const D = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), q =
|
|
232
|
+
const D = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), q = b(D);
|
|
233
233
|
return s.resetPeek(), q;
|
|
234
234
|
}
|
|
235
235
|
function R(s, l) {
|
|
236
|
-
const { currentType:
|
|
237
|
-
if (
|
|
236
|
+
const { currentType: v } = l;
|
|
237
|
+
if (v !== 2)
|
|
238
238
|
return !1;
|
|
239
239
|
T(s);
|
|
240
240
|
const D = s.currentPeek() === qt;
|
|
241
241
|
return s.resetPeek(), D;
|
|
242
242
|
}
|
|
243
243
|
function A(s, l) {
|
|
244
|
-
const { currentType:
|
|
245
|
-
if (
|
|
244
|
+
const { currentType: v } = l;
|
|
245
|
+
if (v !== 7)
|
|
246
246
|
return !1;
|
|
247
247
|
T(s);
|
|
248
248
|
const D = s.currentPeek() === ".";
|
|
249
249
|
return s.resetPeek(), D;
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
const { currentType:
|
|
253
|
-
if (
|
|
251
|
+
function _(s, l) {
|
|
252
|
+
const { currentType: v } = l;
|
|
253
|
+
if (v !== 8)
|
|
254
254
|
return !1;
|
|
255
255
|
T(s);
|
|
256
256
|
const D = u(s.currentPeek());
|
|
257
257
|
return s.resetPeek(), D;
|
|
258
258
|
}
|
|
259
259
|
function L(s, l) {
|
|
260
|
-
const { currentType:
|
|
261
|
-
if (!(
|
|
260
|
+
const { currentType: v } = l;
|
|
261
|
+
if (!(v === 7 || v === 11))
|
|
262
262
|
return !1;
|
|
263
263
|
T(s);
|
|
264
264
|
const D = s.currentPeek() === ":";
|
|
265
265
|
return s.resetPeek(), D;
|
|
266
266
|
}
|
|
267
267
|
function P(s, l) {
|
|
268
|
-
const { currentType:
|
|
269
|
-
if (
|
|
268
|
+
const { currentType: v } = l;
|
|
269
|
+
if (v !== 9)
|
|
270
270
|
return !1;
|
|
271
271
|
const D = () => {
|
|
272
272
|
const F = s.currentPeek();
|
|
@@ -280,15 +280,15 @@ function yr(e, t = {}) {
|
|
|
280
280
|
return s.resetPeek(), l;
|
|
281
281
|
}
|
|
282
282
|
function B(s, l = !0) {
|
|
283
|
-
const
|
|
284
|
-
const
|
|
285
|
-
return
|
|
286
|
-
}, D =
|
|
283
|
+
const v = (q = !1, F = "") => {
|
|
284
|
+
const d = s.currentPeek();
|
|
285
|
+
return d === "{" || d === "@" || !d ? q : d === "|" ? !(F === me || F === ne) : d === me ? (s.peek(), v(!0, me)) : d === ne ? (s.peek(), v(!0, ne)) : !0;
|
|
286
|
+
}, D = v();
|
|
287
287
|
return l && s.resetPeek(), D;
|
|
288
288
|
}
|
|
289
289
|
function C(s, l) {
|
|
290
|
-
const
|
|
291
|
-
return
|
|
290
|
+
const v = s.currentChar();
|
|
291
|
+
return v === ye ? ye : l(v) ? (s.next(), v) : null;
|
|
292
292
|
}
|
|
293
293
|
function Ne(s) {
|
|
294
294
|
const l = s.charCodeAt(0);
|
|
@@ -330,54 +330,54 @@ function yr(e, t = {}) {
|
|
|
330
330
|
return C(s, ce);
|
|
331
331
|
}
|
|
332
332
|
function xe(s) {
|
|
333
|
-
let l = "",
|
|
333
|
+
let l = "", v = "";
|
|
334
334
|
for (; l = ut(s); )
|
|
335
|
-
|
|
336
|
-
return
|
|
335
|
+
v += l;
|
|
336
|
+
return v;
|
|
337
337
|
}
|
|
338
338
|
function it(s) {
|
|
339
339
|
let l = "";
|
|
340
340
|
for (; ; ) {
|
|
341
|
-
const
|
|
342
|
-
if (
|
|
341
|
+
const v = s.currentChar();
|
|
342
|
+
if (v === "{" || v === "}" || v === "@" || v === "|" || !v)
|
|
343
343
|
break;
|
|
344
|
-
if (
|
|
344
|
+
if (v === me || v === ne)
|
|
345
345
|
if (B(s))
|
|
346
|
-
l +=
|
|
346
|
+
l += v, s.next();
|
|
347
347
|
else {
|
|
348
348
|
if (w(s))
|
|
349
349
|
break;
|
|
350
|
-
l +=
|
|
350
|
+
l += v, s.next();
|
|
351
351
|
}
|
|
352
352
|
else
|
|
353
|
-
l +=
|
|
353
|
+
l += v, s.next();
|
|
354
354
|
}
|
|
355
355
|
return l;
|
|
356
356
|
}
|
|
357
357
|
function ct(s) {
|
|
358
|
-
|
|
359
|
-
let l = "",
|
|
358
|
+
g(s);
|
|
359
|
+
let l = "", v = "";
|
|
360
360
|
for (; l = st(s); )
|
|
361
|
-
|
|
362
|
-
return s.currentChar() ===
|
|
361
|
+
v += l;
|
|
362
|
+
return s.currentChar() === ye && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), v;
|
|
363
363
|
}
|
|
364
364
|
function mt(s) {
|
|
365
|
-
|
|
365
|
+
g(s);
|
|
366
366
|
let l = "";
|
|
367
|
-
return s.currentChar() === "-" ? (s.next(), l += `-${xe(s)}`) : l += xe(s), s.currentChar() ===
|
|
367
|
+
return s.currentChar() === "-" ? (s.next(), l += `-${xe(s)}`) : l += xe(s), s.currentChar() === ye && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), l;
|
|
368
368
|
}
|
|
369
369
|
function Wt(s) {
|
|
370
370
|
return s !== qt && s !== ne;
|
|
371
371
|
}
|
|
372
372
|
function ft(s) {
|
|
373
|
-
|
|
374
|
-
let l = "",
|
|
373
|
+
g(s), S(s, "'");
|
|
374
|
+
let l = "", v = "";
|
|
375
375
|
for (; l = C(s, Wt); )
|
|
376
|
-
l === "\\" ?
|
|
376
|
+
l === "\\" ? v += dt(s) : v += l;
|
|
377
377
|
const D = s.currentChar();
|
|
378
|
-
return D === ne || D ===
|
|
378
|
+
return D === ne || D === ye ? (O($.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), D === ne && (s.next(), S(s, "'")), v) : (S(s, "'"), v);
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function dt(s) {
|
|
381
381
|
const l = s.currentChar();
|
|
382
382
|
switch (l) {
|
|
383
383
|
case "\\":
|
|
@@ -391,10 +391,10 @@ function yr(e, t = {}) {
|
|
|
391
391
|
return O($.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, l), "";
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
function Ke(s, l,
|
|
395
|
-
|
|
394
|
+
function Ke(s, l, v) {
|
|
395
|
+
S(s, l);
|
|
396
396
|
let D = "";
|
|
397
|
-
for (let q = 0; q <
|
|
397
|
+
for (let q = 0; q < v; q++) {
|
|
398
398
|
const F = Be(s);
|
|
399
399
|
if (!F) {
|
|
400
400
|
O($.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${l}${D}${s.currentChar()}`);
|
|
@@ -404,81 +404,81 @@ function yr(e, t = {}) {
|
|
|
404
404
|
}
|
|
405
405
|
return `\\${l}${D}`;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function _t(s) {
|
|
408
408
|
return s !== "{" && s !== "}" && s !== me && s !== ne;
|
|
409
409
|
}
|
|
410
410
|
function pt(s) {
|
|
411
|
-
|
|
412
|
-
let l = "",
|
|
413
|
-
for (; l = C(s,
|
|
414
|
-
|
|
415
|
-
return
|
|
411
|
+
g(s);
|
|
412
|
+
let l = "", v = "";
|
|
413
|
+
for (; l = C(s, _t); )
|
|
414
|
+
v += l;
|
|
415
|
+
return v;
|
|
416
416
|
}
|
|
417
417
|
function Et(s) {
|
|
418
|
-
let l = "",
|
|
418
|
+
let l = "", v = "";
|
|
419
419
|
for (; l = ot(s); )
|
|
420
|
-
|
|
421
|
-
return
|
|
420
|
+
v += l;
|
|
421
|
+
return v;
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
const l = (
|
|
423
|
+
function yt(s) {
|
|
424
|
+
const l = (v) => {
|
|
425
425
|
const D = s.currentChar();
|
|
426
|
-
return D === "{" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === me ?
|
|
426
|
+
return D === "{" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === me ? v : (v += D, s.next(), l(v));
|
|
427
427
|
};
|
|
428
428
|
return l("");
|
|
429
429
|
}
|
|
430
430
|
function Pe(s) {
|
|
431
|
-
|
|
432
|
-
const l =
|
|
431
|
+
g(s);
|
|
432
|
+
const l = S(
|
|
433
433
|
s,
|
|
434
434
|
"|"
|
|
435
435
|
/* TokenChars.Pipe */
|
|
436
436
|
);
|
|
437
|
-
return
|
|
437
|
+
return g(s), l;
|
|
438
438
|
}
|
|
439
439
|
function Re(s, l) {
|
|
440
|
-
let
|
|
440
|
+
let v = null;
|
|
441
441
|
switch (s.currentChar()) {
|
|
442
442
|
case "{":
|
|
443
|
-
return l.braceNest >= 1 && O($.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(),
|
|
443
|
+
return l.braceNest >= 1 && O($.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), v = p(
|
|
444
444
|
l,
|
|
445
445
|
2,
|
|
446
446
|
"{"
|
|
447
447
|
/* TokenChars.BraceLeft */
|
|
448
|
-
),
|
|
448
|
+
), g(s), l.braceNest++, v;
|
|
449
449
|
case "}":
|
|
450
|
-
return l.braceNest > 0 && l.currentType === 2 && O($.EMPTY_PLACEHOLDER, a(), 0), s.next(),
|
|
450
|
+
return l.braceNest > 0 && l.currentType === 2 && O($.EMPTY_PLACEHOLDER, a(), 0), s.next(), v = p(
|
|
451
451
|
l,
|
|
452
452
|
3,
|
|
453
453
|
"}"
|
|
454
454
|
/* TokenChars.BraceRight */
|
|
455
|
-
), l.braceNest--, l.braceNest > 0 &&
|
|
455
|
+
), l.braceNest--, l.braceNest > 0 && g(s), l.inLinked && l.braceNest === 0 && (l.inLinked = !1), v;
|
|
456
456
|
case "@":
|
|
457
|
-
return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
457
|
+
return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), v = Ae(s, l) || f(l), l.braceNest = 0, v;
|
|
458
458
|
default: {
|
|
459
|
-
let q = !0, F = !0,
|
|
459
|
+
let q = !0, F = !0, d = !0;
|
|
460
460
|
if (w(s))
|
|
461
|
-
return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
461
|
+
return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), v = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, v;
|
|
462
462
|
if (l.braceNest > 0 && (l.currentType === 4 || l.currentType === 5 || l.currentType === 6))
|
|
463
463
|
return O($.UNTERMINATED_CLOSING_BRACE, a(), 0), l.braceNest = 0, De(s, l);
|
|
464
464
|
if (q = N(s, l))
|
|
465
|
-
return
|
|
465
|
+
return v = p(l, 4, ct(s)), g(s), v;
|
|
466
466
|
if (F = E(s, l))
|
|
467
|
-
return
|
|
468
|
-
if (
|
|
469
|
-
return
|
|
470
|
-
if (!q && !F && !
|
|
471
|
-
return
|
|
467
|
+
return v = p(l, 5, mt(s)), g(s), v;
|
|
468
|
+
if (d = R(s, l))
|
|
469
|
+
return v = p(l, 6, ft(s)), g(s), v;
|
|
470
|
+
if (!q && !F && !d)
|
|
471
|
+
return v = p(l, 12, pt(s)), O($.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, v.value), g(s), v;
|
|
472
472
|
break;
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
return
|
|
475
|
+
return v;
|
|
476
476
|
}
|
|
477
477
|
function Ae(s, l) {
|
|
478
|
-
const { currentType:
|
|
478
|
+
const { currentType: v } = l;
|
|
479
479
|
let D = null;
|
|
480
480
|
const q = s.currentChar();
|
|
481
|
-
switch ((
|
|
481
|
+
switch ((v === 7 || v === 8 || v === 11 || v === 9) && (q === ne || q === me) && O($.INVALID_LINKED_FORMAT, a(), 0), q) {
|
|
482
482
|
case "@":
|
|
483
483
|
return s.next(), D = p(
|
|
484
484
|
l,
|
|
@@ -487,25 +487,25 @@ function yr(e, t = {}) {
|
|
|
487
487
|
/* TokenChars.LinkedAlias */
|
|
488
488
|
), l.inLinked = !0, D;
|
|
489
489
|
case ".":
|
|
490
|
-
return
|
|
490
|
+
return g(s), s.next(), p(
|
|
491
491
|
l,
|
|
492
492
|
8,
|
|
493
493
|
"."
|
|
494
494
|
/* TokenChars.LinkedDot */
|
|
495
495
|
);
|
|
496
496
|
case ":":
|
|
497
|
-
return
|
|
497
|
+
return g(s), s.next(), p(
|
|
498
498
|
l,
|
|
499
499
|
9,
|
|
500
500
|
":"
|
|
501
501
|
/* TokenChars.LinkedDelimiter */
|
|
502
502
|
);
|
|
503
503
|
default:
|
|
504
|
-
return w(s) ? (D = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, D) : A(s, l) || L(s, l) ? (
|
|
504
|
+
return w(s) ? (D = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, D) : A(s, l) || L(s, l) ? (g(s), Ae(s, l)) : _(s, l) ? (g(s), p(l, 11, Et(s))) : P(s, l) ? (g(s), q === "{" ? Re(s, l) || D : p(l, 10, yt(s))) : (v === 7 && O($.INVALID_LINKED_FORMAT, a(), 0), l.braceNest = 0, l.inLinked = !1, De(s, l));
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
function De(s, l) {
|
|
508
|
-
let
|
|
508
|
+
let v = {
|
|
509
509
|
type: 13
|
|
510
510
|
/* TokenTypes.EOF */
|
|
511
511
|
};
|
|
@@ -527,30 +527,30 @@ function yr(e, t = {}) {
|
|
|
527
527
|
return Ae(s, l) || f(l);
|
|
528
528
|
default: {
|
|
529
529
|
if (w(s))
|
|
530
|
-
return
|
|
530
|
+
return v = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, v;
|
|
531
531
|
if (B(s))
|
|
532
532
|
return p(l, 0, it(s));
|
|
533
533
|
break;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
return
|
|
536
|
+
return v;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
const { currentType: s, offset: l, startLoc:
|
|
540
|
-
return c.lastType = s, c.lastOffset = l, c.lastStartLoc =
|
|
538
|
+
function gt() {
|
|
539
|
+
const { currentType: s, offset: l, startLoc: v, endLoc: D } = c;
|
|
540
|
+
return c.lastType = s, c.lastOffset = l, c.lastStartLoc = v, c.lastEndLoc = D, c.offset = o(), c.startLoc = a(), r.currentChar() === ye ? p(
|
|
541
541
|
c,
|
|
542
542
|
13
|
|
543
543
|
/* TokenTypes.EOF */
|
|
544
544
|
) : De(r, c);
|
|
545
545
|
}
|
|
546
546
|
return {
|
|
547
|
-
nextToken:
|
|
547
|
+
nextToken: gt,
|
|
548
548
|
currentOffset: o,
|
|
549
549
|
currentPosition: a,
|
|
550
|
-
context:
|
|
550
|
+
context: y
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
const
|
|
553
|
+
const br = "parser", vr = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
554
554
|
function hr(e, t, n) {
|
|
555
555
|
switch (e) {
|
|
556
556
|
case "\\\\":
|
|
@@ -566,74 +566,74 @@ function hr(e, t, n) {
|
|
|
566
566
|
}
|
|
567
567
|
function Tr(e = {}) {
|
|
568
568
|
const t = e.location !== !1, { onError: n } = e;
|
|
569
|
-
function r(u,
|
|
569
|
+
function r(u, b, N, E, ...R) {
|
|
570
570
|
const A = u.currentPosition();
|
|
571
571
|
if (A.offset += E, A.column += E, n) {
|
|
572
|
-
const
|
|
573
|
-
domain:
|
|
572
|
+
const _ = t ? It(N, A) : null, L = nt(b, _, {
|
|
573
|
+
domain: br,
|
|
574
574
|
args: R
|
|
575
575
|
});
|
|
576
576
|
n(L);
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
|
-
function o(u,
|
|
579
|
+
function o(u, b, N) {
|
|
580
580
|
const E = { type: u };
|
|
581
|
-
return t && (E.start =
|
|
581
|
+
return t && (E.start = b, E.end = b, E.loc = { start: N, end: N }), E;
|
|
582
582
|
}
|
|
583
|
-
function a(u,
|
|
584
|
-
t && (u.end =
|
|
583
|
+
function a(u, b, N, E) {
|
|
584
|
+
t && (u.end = b, u.loc && (u.loc.end = N));
|
|
585
585
|
}
|
|
586
|
-
function i(u,
|
|
586
|
+
function i(u, b) {
|
|
587
587
|
const N = u.context(), E = o(3, N.offset, N.startLoc);
|
|
588
|
-
return E.value =
|
|
588
|
+
return E.value = b, a(E, u.currentOffset(), u.currentPosition()), E;
|
|
589
589
|
}
|
|
590
|
-
function m(u,
|
|
590
|
+
function m(u, b) {
|
|
591
591
|
const N = u.context(), { lastOffset: E, lastStartLoc: R } = N, A = o(5, E, R);
|
|
592
|
-
return A.index = parseInt(
|
|
592
|
+
return A.index = parseInt(b, 10), u.nextToken(), a(A, u.currentOffset(), u.currentPosition()), A;
|
|
593
593
|
}
|
|
594
|
-
function c(u,
|
|
594
|
+
function c(u, b) {
|
|
595
595
|
const N = u.context(), { lastOffset: E, lastStartLoc: R } = N, A = o(4, E, R);
|
|
596
|
-
return A.key =
|
|
596
|
+
return A.key = b, u.nextToken(), a(A, u.currentOffset(), u.currentPosition()), A;
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function y(u, b) {
|
|
599
599
|
const N = u.context(), { lastOffset: E, lastStartLoc: R } = N, A = o(9, E, R);
|
|
600
|
-
return A.value =
|
|
600
|
+
return A.value = b.replace(vr, hr), u.nextToken(), a(A, u.currentOffset(), u.currentPosition()), A;
|
|
601
601
|
}
|
|
602
602
|
function h(u) {
|
|
603
|
-
const
|
|
604
|
-
return
|
|
605
|
-
nextConsumeToken:
|
|
603
|
+
const b = u.nextToken(), N = u.context(), { lastOffset: E, lastStartLoc: R } = N, A = o(8, E, R);
|
|
604
|
+
return b.type !== 11 ? (r(u, $.UNEXPECTED_EMPTY_LINKED_MODIFIER, N.lastStartLoc, 0), A.value = "", a(A, E, R), {
|
|
605
|
+
nextConsumeToken: b,
|
|
606
606
|
node: A
|
|
607
|
-
}) : (
|
|
607
|
+
}) : (b.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, ue(b)), A.value = b.value || "", a(A, u.currentOffset(), u.currentPosition()), {
|
|
608
608
|
node: A
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
|
-
function O(u,
|
|
611
|
+
function O(u, b) {
|
|
612
612
|
const N = u.context(), E = o(7, N.offset, N.startLoc);
|
|
613
|
-
return E.value =
|
|
613
|
+
return E.value = b, a(E, u.currentOffset(), u.currentPosition()), E;
|
|
614
614
|
}
|
|
615
615
|
function p(u) {
|
|
616
|
-
const
|
|
616
|
+
const b = u.context(), N = o(6, b.offset, b.startLoc);
|
|
617
617
|
let E = u.nextToken();
|
|
618
618
|
if (E.type === 8) {
|
|
619
619
|
const R = h(u);
|
|
620
620
|
N.modifier = R.node, E = R.nextConsumeToken || u.nextToken();
|
|
621
621
|
}
|
|
622
|
-
switch (E.type !== 9 && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
622
|
+
switch (E.type !== 9 && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(E)), E = u.nextToken(), E.type === 2 && (E = u.nextToken()), E.type) {
|
|
623
623
|
case 10:
|
|
624
|
-
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
624
|
+
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(E)), N.key = O(u, E.value || "");
|
|
625
625
|
break;
|
|
626
626
|
case 4:
|
|
627
|
-
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
627
|
+
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(E)), N.key = c(u, E.value || "");
|
|
628
628
|
break;
|
|
629
629
|
case 5:
|
|
630
|
-
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
630
|
+
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(E)), N.key = m(u, E.value || "");
|
|
631
631
|
break;
|
|
632
632
|
case 6:
|
|
633
|
-
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
633
|
+
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(E)), N.key = y(u, E.value || "");
|
|
634
634
|
break;
|
|
635
635
|
default: {
|
|
636
|
-
r(u, $.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
636
|
+
r(u, $.UNEXPECTED_EMPTY_LINKED_KEY, b.lastStartLoc, 0);
|
|
637
637
|
const R = u.context(), A = o(7, R.offset, R.startLoc);
|
|
638
638
|
return A.value = "", a(A, R.offset, R.startLoc), N.key = A, a(N, R.offset, R.startLoc), {
|
|
639
639
|
nextConsumeToken: E,
|
|
@@ -646,23 +646,23 @@ function Tr(e = {}) {
|
|
|
646
646
|
};
|
|
647
647
|
}
|
|
648
648
|
function f(u) {
|
|
649
|
-
const
|
|
649
|
+
const b = u.context(), N = b.currentType === 1 ? u.currentOffset() : b.offset, E = b.currentType === 1 ? b.endLoc : b.startLoc, R = o(2, N, E);
|
|
650
650
|
R.items = [];
|
|
651
651
|
let A = null;
|
|
652
652
|
do {
|
|
653
653
|
const P = A || u.nextToken();
|
|
654
654
|
switch (A = null, P.type) {
|
|
655
655
|
case 0:
|
|
656
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
656
|
+
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(P)), R.items.push(i(u, P.value || ""));
|
|
657
657
|
break;
|
|
658
658
|
case 5:
|
|
659
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
659
|
+
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(P)), R.items.push(m(u, P.value || ""));
|
|
660
660
|
break;
|
|
661
661
|
case 4:
|
|
662
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
662
|
+
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(P)), R.items.push(c(u, P.value || ""));
|
|
663
663
|
break;
|
|
664
664
|
case 6:
|
|
665
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
665
|
+
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(P)), R.items.push(y(u, P.value || ""));
|
|
666
666
|
break;
|
|
667
667
|
case 7: {
|
|
668
668
|
const w = p(u);
|
|
@@ -670,30 +670,30 @@ function Tr(e = {}) {
|
|
|
670
670
|
break;
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
} while (
|
|
674
|
-
const
|
|
675
|
-
return a(R,
|
|
673
|
+
} while (b.currentType !== 13 && b.currentType !== 1);
|
|
674
|
+
const _ = b.currentType === 1 ? b.lastOffset : u.currentOffset(), L = b.currentType === 1 ? b.lastEndLoc : u.currentPosition();
|
|
675
|
+
return a(R, _, L), R;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function S(u, b, N, E) {
|
|
678
678
|
const R = u.context();
|
|
679
679
|
let A = E.items.length === 0;
|
|
680
|
-
const
|
|
681
|
-
|
|
680
|
+
const _ = o(1, b, N);
|
|
681
|
+
_.cases = [], _.cases.push(E);
|
|
682
682
|
do {
|
|
683
683
|
const L = f(u);
|
|
684
|
-
A || (A = L.items.length === 0),
|
|
684
|
+
A || (A = L.items.length === 0), _.cases.push(L);
|
|
685
685
|
} while (R.currentType !== 13);
|
|
686
|
-
return A && r(u, $.MUST_HAVE_MESSAGES_IN_PLURAL, N, 0), a(
|
|
686
|
+
return A && r(u, $.MUST_HAVE_MESSAGES_IN_PLURAL, N, 0), a(_, u.currentOffset(), u.currentPosition()), _;
|
|
687
687
|
}
|
|
688
688
|
function T(u) {
|
|
689
|
-
const
|
|
690
|
-
return
|
|
689
|
+
const b = u.context(), { offset: N, startLoc: E } = b, R = f(u);
|
|
690
|
+
return b.currentType === 13 ? R : S(u, N, E, R);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
693
|
-
const
|
|
694
|
-
return t && E.loc && (E.loc.source = u), E.body = T(
|
|
692
|
+
function g(u) {
|
|
693
|
+
const b = gr(u, te({}, e)), N = b.context(), E = o(0, N.offset, N.startLoc);
|
|
694
|
+
return t && E.loc && (E.loc.source = u), E.body = T(b), e.onCacheKey && (E.cacheKey = e.onCacheKey(u)), N.currentType !== 13 && r(b, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, u[N.offset] || ""), a(E, b.currentOffset(), b.currentPosition()), E;
|
|
695
695
|
}
|
|
696
|
-
return { parse:
|
|
696
|
+
return { parse: g };
|
|
697
697
|
}
|
|
698
698
|
function ue(e) {
|
|
699
699
|
if (e.type === 13)
|
|
@@ -848,23 +848,23 @@ function Ar(e, t) {
|
|
|
848
848
|
};
|
|
849
849
|
a && e.loc && (i.source = e.loc.source);
|
|
850
850
|
const m = () => i;
|
|
851
|
-
function c(T,
|
|
851
|
+
function c(T, g) {
|
|
852
852
|
i.code += T;
|
|
853
853
|
}
|
|
854
|
-
function
|
|
855
|
-
const u =
|
|
854
|
+
function y(T, g = !0) {
|
|
855
|
+
const u = g ? r : "";
|
|
856
856
|
c(o ? u + " ".repeat(T) : u);
|
|
857
857
|
}
|
|
858
858
|
function h(T = !0) {
|
|
859
|
-
const
|
|
860
|
-
T && g
|
|
859
|
+
const g = ++i.indentLevel;
|
|
860
|
+
T && y(g);
|
|
861
861
|
}
|
|
862
862
|
function O(T = !0) {
|
|
863
|
-
const
|
|
864
|
-
T && g
|
|
863
|
+
const g = --i.indentLevel;
|
|
864
|
+
T && y(g);
|
|
865
865
|
}
|
|
866
866
|
function p() {
|
|
867
|
-
|
|
867
|
+
y(i.indentLevel);
|
|
868
868
|
}
|
|
869
869
|
return {
|
|
870
870
|
context: m,
|
|
@@ -907,14 +907,14 @@ function Cr(e, t) {
|
|
|
907
907
|
e.deindent(r()), e.push("])");
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function Sr(e, t) {
|
|
911
911
|
t.body ? Ce(e, t.body) : e.push("null");
|
|
912
912
|
}
|
|
913
913
|
function Ce(e, t) {
|
|
914
914
|
const { helper: n } = e;
|
|
915
915
|
switch (t.type) {
|
|
916
916
|
case 0:
|
|
917
|
-
|
|
917
|
+
Sr(e, t);
|
|
918
918
|
break;
|
|
919
919
|
case 1:
|
|
920
920
|
Cr(e, t);
|
|
@@ -957,8 +957,8 @@ function Ce(e, t) {
|
|
|
957
957
|
break;
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
const
|
|
961
|
-
const n =
|
|
960
|
+
const kr = (e, t = {}) => {
|
|
961
|
+
const n = k(t.mode) ? t.mode : "normal", r = k(t.filename) ? t.filename : "message.intl";
|
|
962
962
|
t.sourceMap;
|
|
963
963
|
const o = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
964
964
|
`, a = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], m = Ar(e, {
|
|
@@ -967,23 +967,23 @@ const Sr = (e, t = {}) => {
|
|
|
967
967
|
needIndent: a
|
|
968
968
|
});
|
|
969
969
|
m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(a), i.length > 0 && (m.push(`const { ${Mt(i.map((h) => `${h}: _${h}`), ", ")} } = ctx`), m.newline()), m.push("return "), Ce(m, e), m.deindent(a), m.push("}"), delete e.helpers;
|
|
970
|
-
const { code: c, map:
|
|
970
|
+
const { code: c, map: y } = m.context();
|
|
971
971
|
return {
|
|
972
972
|
ast: e,
|
|
973
973
|
code: c,
|
|
974
|
-
map:
|
|
974
|
+
map: y ? y.toJSON() : void 0
|
|
975
975
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
976
976
|
};
|
|
977
977
|
};
|
|
978
978
|
function Pr(e, t = {}) {
|
|
979
979
|
const n = te({}, t), r = !!n.jit, o = !!n.minify, a = n.optimize == null ? !0 : n.optimize, m = Tr(n).parse(e);
|
|
980
|
-
return r ? (a && Rr(m), o && Oe(m), { ast: m, code: "" }) : (Nr(m, n),
|
|
980
|
+
return r ? (a && Rr(m), o && Oe(m), { ast: m, code: "" }) : (Nr(m, n), kr(m, n));
|
|
981
981
|
}
|
|
982
982
|
var Dr = { env: { NODE_ENV: "production" } };
|
|
983
983
|
function wr() {
|
|
984
984
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Te().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Te().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function vt(e) {
|
|
987
987
|
return (n) => Fr(n, e);
|
|
988
988
|
}
|
|
989
989
|
function Fr(e, t) {
|
|
@@ -1004,11 +1004,11 @@ function Fr(e, t) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
const Mr = ["b", "body"];
|
|
1006
1006
|
function Ur(e) {
|
|
1007
|
-
return
|
|
1007
|
+
return ge(e, Mr);
|
|
1008
1008
|
}
|
|
1009
1009
|
const Vr = ["c", "cases"];
|
|
1010
1010
|
function $r(e) {
|
|
1011
|
-
return
|
|
1011
|
+
return ge(e, Vr, []);
|
|
1012
1012
|
}
|
|
1013
1013
|
function Zt(e, t) {
|
|
1014
1014
|
const n = Gr(t);
|
|
@@ -1021,11 +1021,11 @@ function Zt(e, t) {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
const Hr = ["s", "static"];
|
|
1023
1023
|
function Gr(e) {
|
|
1024
|
-
return
|
|
1024
|
+
return ge(e, Hr);
|
|
1025
1025
|
}
|
|
1026
1026
|
const Wr = ["i", "items"];
|
|
1027
1027
|
function Br(e) {
|
|
1028
|
-
return
|
|
1028
|
+
return ge(e, Wr, []);
|
|
1029
1029
|
}
|
|
1030
1030
|
function Nt(e, t) {
|
|
1031
1031
|
const n = Vt(t);
|
|
@@ -1064,22 +1064,22 @@ function Nt(e, t) {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
const xr = ["t", "type"];
|
|
1066
1066
|
function Vt(e) {
|
|
1067
|
-
return
|
|
1067
|
+
return ge(e, xr);
|
|
1068
1068
|
}
|
|
1069
1069
|
const Kr = ["v", "value"];
|
|
1070
1070
|
function Xe(e, t) {
|
|
1071
|
-
const n =
|
|
1071
|
+
const n = ge(e, Kr);
|
|
1072
1072
|
if (n)
|
|
1073
1073
|
return n;
|
|
1074
1074
|
throw Ue(t);
|
|
1075
1075
|
}
|
|
1076
1076
|
const Yr = ["m", "modifier"];
|
|
1077
1077
|
function jr(e) {
|
|
1078
|
-
return
|
|
1078
|
+
return ge(e, Yr);
|
|
1079
1079
|
}
|
|
1080
1080
|
const Xr = ["k", "key"];
|
|
1081
1081
|
function qr(e) {
|
|
1082
|
-
const t =
|
|
1082
|
+
const t = ge(e, Xr);
|
|
1083
1083
|
if (t)
|
|
1084
1084
|
return t;
|
|
1085
1085
|
throw Ue(
|
|
@@ -1087,7 +1087,7 @@ function qr(e) {
|
|
|
1087
1087
|
/* NodeTypes.Linked */
|
|
1088
1088
|
);
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function ge(e, t, n) {
|
|
1091
1091
|
for (let r = 0; r < t.length; r++) {
|
|
1092
1092
|
const o = t[r];
|
|
1093
1093
|
if (le(e, o) && e[o] != null)
|
|
@@ -1100,7 +1100,7 @@ function Ue(e) {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
const Jr = (e) => e;
|
|
1102
1102
|
let qe = H();
|
|
1103
|
-
function
|
|
1103
|
+
function Se(e) {
|
|
1104
1104
|
return U(e) && Vt(e) === 0 && (le(e, "b") || le(e, "body"));
|
|
1105
1105
|
}
|
|
1106
1106
|
function Qr(e, t = {}) {
|
|
@@ -1112,7 +1112,7 @@ function Qr(e, t = {}) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
// @__NO_SIDE_EFFECTS__
|
|
1114
1114
|
function Zr(e, t) {
|
|
1115
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1115
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && k(e)) {
|
|
1116
1116
|
Q(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1117
1117
|
const r = (t.onCacheKey || Jr)(e), o = qe[r];
|
|
1118
1118
|
if (o)
|
|
@@ -1121,15 +1121,15 @@ function Zr(e, t) {
|
|
|
1121
1121
|
...t,
|
|
1122
1122
|
location: Dr.env.NODE_ENV !== "production",
|
|
1123
1123
|
jit: !0
|
|
1124
|
-
}), m =
|
|
1124
|
+
}), m = vt(a);
|
|
1125
1125
|
return i ? m : qe[r] = m;
|
|
1126
1126
|
} else {
|
|
1127
1127
|
const n = e.cacheKey;
|
|
1128
1128
|
if (n) {
|
|
1129
1129
|
const r = qe[n];
|
|
1130
|
-
return r || (qe[n] =
|
|
1130
|
+
return r || (qe[n] = vt(e));
|
|
1131
1131
|
} else
|
|
1132
|
-
return
|
|
1132
|
+
return vt(e);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
1135
|
let Ve = null;
|
|
@@ -1157,7 +1157,7 @@ const fe = {
|
|
|
1157
1157
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1158
1158
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1159
1159
|
}, ro = 24;
|
|
1160
|
-
function
|
|
1160
|
+
function de(e) {
|
|
1161
1161
|
return nt(e, null, void 0);
|
|
1162
1162
|
}
|
|
1163
1163
|
function $t(e, t) {
|
|
@@ -1165,7 +1165,7 @@ function $t(e, t) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
let ht;
|
|
1167
1167
|
function zt(e) {
|
|
1168
|
-
if (
|
|
1168
|
+
if (k(e))
|
|
1169
1169
|
return e;
|
|
1170
1170
|
if (Y(e)) {
|
|
1171
1171
|
if (e.resolvedOnce && ht != null)
|
|
@@ -1173,21 +1173,21 @@ function zt(e) {
|
|
|
1173
1173
|
if (e.constructor.name === "Function") {
|
|
1174
1174
|
const t = e();
|
|
1175
1175
|
if (sr(t))
|
|
1176
|
-
throw
|
|
1176
|
+
throw de(fe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1177
1177
|
return ht = t;
|
|
1178
1178
|
} else
|
|
1179
|
-
throw
|
|
1179
|
+
throw de(fe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
1180
1180
|
} else
|
|
1181
|
-
throw
|
|
1181
|
+
throw de(fe.NOT_SUPPORT_LOCALE_TYPE);
|
|
1182
1182
|
}
|
|
1183
1183
|
function oo(e, t, n) {
|
|
1184
1184
|
return [.../* @__PURE__ */ new Set([
|
|
1185
1185
|
n,
|
|
1186
|
-
...z(t) ? t : U(t) ? Object.keys(t) :
|
|
1186
|
+
...z(t) ? t : U(t) ? Object.keys(t) : k(t) ? [t] : [n]
|
|
1187
1187
|
])];
|
|
1188
1188
|
}
|
|
1189
1189
|
function Nn(e, t, n) {
|
|
1190
|
-
const r =
|
|
1190
|
+
const r = k(n) ? n : et, o = e;
|
|
1191
1191
|
o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1192
1192
|
let a = o.__localeChainCache.get(r);
|
|
1193
1193
|
if (!a) {
|
|
@@ -1196,7 +1196,7 @@ function Nn(e, t, n) {
|
|
|
1196
1196
|
for (; z(i); )
|
|
1197
1197
|
i = en(a, i, t);
|
|
1198
1198
|
const m = z(t) || !M(t) ? t : t.default ? t.default : null;
|
|
1199
|
-
i =
|
|
1199
|
+
i = k(m) ? [m] : m, z(i) && en(a, i, !1), o.__localeChainCache.set(r, a);
|
|
1200
1200
|
}
|
|
1201
1201
|
return a;
|
|
1202
1202
|
}
|
|
@@ -1204,7 +1204,7 @@ function en(e, t, n) {
|
|
|
1204
1204
|
let r = !0;
|
|
1205
1205
|
for (let o = 0; o < t.length && Q(r); o++) {
|
|
1206
1206
|
const a = t[o];
|
|
1207
|
-
|
|
1207
|
+
k(a) && (r = ao(e, t[o], n));
|
|
1208
1208
|
}
|
|
1209
1209
|
return r;
|
|
1210
1210
|
}
|
|
@@ -1226,8 +1226,8 @@ function so(e, t, n) {
|
|
|
1226
1226
|
}
|
|
1227
1227
|
return r;
|
|
1228
1228
|
}
|
|
1229
|
-
const
|
|
1230
|
-
|
|
1229
|
+
const be = [];
|
|
1230
|
+
be[
|
|
1231
1231
|
0
|
|
1232
1232
|
/* States.BEFORE_PATH */
|
|
1233
1233
|
] = {
|
|
@@ -1249,7 +1249,7 @@ ve[
|
|
|
1249
1249
|
/* States.AFTER_PATH */
|
|
1250
1250
|
]
|
|
1251
1251
|
};
|
|
1252
|
-
|
|
1252
|
+
be[
|
|
1253
1253
|
1
|
|
1254
1254
|
/* States.IN_PATH */
|
|
1255
1255
|
] = {
|
|
@@ -1270,7 +1270,7 @@ ve[
|
|
|
1270
1270
|
/* States.AFTER_PATH */
|
|
1271
1271
|
]
|
|
1272
1272
|
};
|
|
1273
|
-
|
|
1273
|
+
be[
|
|
1274
1274
|
2
|
|
1275
1275
|
/* States.BEFORE_IDENT */
|
|
1276
1276
|
] = {
|
|
@@ -1289,7 +1289,7 @@ ve[
|
|
|
1289
1289
|
/* Actions.APPEND */
|
|
1290
1290
|
]
|
|
1291
1291
|
};
|
|
1292
|
-
|
|
1292
|
+
be[
|
|
1293
1293
|
3
|
|
1294
1294
|
/* States.IN_IDENT */
|
|
1295
1295
|
] = {
|
|
@@ -1324,7 +1324,7 @@ ve[
|
|
|
1324
1324
|
/* Actions.PUSH */
|
|
1325
1325
|
]
|
|
1326
1326
|
};
|
|
1327
|
-
|
|
1327
|
+
be[
|
|
1328
1328
|
4
|
|
1329
1329
|
/* States.IN_SUB_PATH */
|
|
1330
1330
|
] = {
|
|
@@ -1355,7 +1355,7 @@ ve[
|
|
|
1355
1355
|
/* Actions.APPEND */
|
|
1356
1356
|
]
|
|
1357
1357
|
};
|
|
1358
|
-
|
|
1358
|
+
be[
|
|
1359
1359
|
5
|
|
1360
1360
|
/* States.IN_SINGLE_QUOTE */
|
|
1361
1361
|
] = {
|
|
@@ -1371,7 +1371,7 @@ ve[
|
|
|
1371
1371
|
/* Actions.APPEND */
|
|
1372
1372
|
]
|
|
1373
1373
|
};
|
|
1374
|
-
|
|
1374
|
+
be[
|
|
1375
1375
|
6
|
|
1376
1376
|
/* States.IN_DOUBLE_QUOTE */
|
|
1377
1377
|
] = {
|
|
@@ -1438,7 +1438,7 @@ function mo(e) {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
function fo(e) {
|
|
1440
1440
|
const t = [];
|
|
1441
|
-
let n = -1, r = 0, o = 0, a, i, m, c,
|
|
1441
|
+
let n = -1, r = 0, o = 0, a, i, m, c, y, h, O;
|
|
1442
1442
|
const p = [];
|
|
1443
1443
|
p[
|
|
1444
1444
|
0
|
|
@@ -1477,16 +1477,16 @@ function fo(e) {
|
|
|
1477
1477
|
}
|
|
1478
1478
|
};
|
|
1479
1479
|
function f() {
|
|
1480
|
-
const
|
|
1481
|
-
if (r === 5 &&
|
|
1482
|
-
return n++, m = "\\" +
|
|
1480
|
+
const S = e[n + 1];
|
|
1481
|
+
if (r === 5 && S === "'" || r === 6 && S === '"')
|
|
1482
|
+
return n++, m = "\\" + S, p[
|
|
1483
1483
|
0
|
|
1484
1484
|
/* Actions.APPEND */
|
|
1485
1485
|
](), !0;
|
|
1486
1486
|
}
|
|
1487
1487
|
for (; r !== null; )
|
|
1488
1488
|
if (n++, a = e[n], !(a === "\\" && f())) {
|
|
1489
|
-
if (c = co(a), O =
|
|
1489
|
+
if (c = co(a), O = be[r], y = O[c] || O.l || 8, y === 8 || (r = y[0], y[1] !== void 0 && (h = p[y[1]], h && (m = a, h() === !1))))
|
|
1490
1490
|
return;
|
|
1491
1491
|
if (r === 7)
|
|
1492
1492
|
return t;
|
|
@@ -1513,23 +1513,23 @@ function po(e, t) {
|
|
|
1513
1513
|
return o;
|
|
1514
1514
|
}
|
|
1515
1515
|
const Eo = "10.0.5", rt = -1, et = "en-US", nn = "", rn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1516
|
-
function
|
|
1516
|
+
function yo() {
|
|
1517
1517
|
return {
|
|
1518
|
-
upper: (e, t) => t === "text" &&
|
|
1519
|
-
lower: (e, t) => t === "text" &&
|
|
1520
|
-
capitalize: (e, t) => t === "text" &&
|
|
1518
|
+
upper: (e, t) => t === "text" && k(e) ? e.toUpperCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1519
|
+
lower: (e, t) => t === "text" && k(e) ? e.toLowerCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1520
|
+
capitalize: (e, t) => t === "text" && k(e) ? rn(e) : t === "vnode" && U(e) && "__v_isVNode" in e ? rn(e.children) : e
|
|
1521
1521
|
};
|
|
1522
1522
|
}
|
|
1523
1523
|
let Rn;
|
|
1524
|
-
function
|
|
1524
|
+
function go(e) {
|
|
1525
1525
|
Rn = e;
|
|
1526
1526
|
}
|
|
1527
1527
|
let An;
|
|
1528
|
-
function
|
|
1528
|
+
function bo(e) {
|
|
1529
1529
|
An = e;
|
|
1530
1530
|
}
|
|
1531
1531
|
let Ln;
|
|
1532
|
-
function
|
|
1532
|
+
function vo(e) {
|
|
1533
1533
|
Ln = e;
|
|
1534
1534
|
}
|
|
1535
1535
|
let On = null;
|
|
@@ -1542,7 +1542,7 @@ const on = (e) => {
|
|
|
1542
1542
|
}, Io = () => Cn;
|
|
1543
1543
|
let an = 0;
|
|
1544
1544
|
function No(e = {}) {
|
|
1545
|
-
const t = Y(e.onWarn) ? e.onWarn : ur, n =
|
|
1545
|
+
const t = Y(e.onWarn) ? e.onWarn : ur, n = k(e.version) ? e.version : Eo, r = k(e.locale) || Y(e.locale) ? e.locale : et, o = Y(r) ? et : r, a = z(e.fallbackLocale) || M(e.fallbackLocale) || k(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o, i = M(e.messages) ? e.messages : Tt(o), m = M(e.datetimeFormats) ? e.datetimeFormats : Tt(o), c = M(e.numberFormats) ? e.numberFormats : Tt(o), y = te(H(), e.modifiers, yo()), h = e.pluralRules || H(), O = Y(e.missing) ? e.missing : null, p = Q(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, f = Q(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0, S = !!e.fallbackFormat, T = !!e.unresolving, g = Y(e.postTranslation) ? e.postTranslation : null, u = M(e.processor) ? e.processor : null, b = Q(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, E = Y(e.messageCompiler) ? e.messageCompiler : Rn, R = Y(e.messageResolver) ? e.messageResolver : An || _o, A = Y(e.localeFallbacker) ? e.localeFallbacker : Ln || oo, _ = U(e.fallbackContext) ? e.fallbackContext : void 0, L = e, P = U(L.__datetimeFormatters) ? L.__datetimeFormatters : /* @__PURE__ */ new Map(), w = U(L.__numberFormatters) ? L.__numberFormatters : /* @__PURE__ */ new Map(), B = U(L.__meta) ? L.__meta : {};
|
|
1546
1546
|
an++;
|
|
1547
1547
|
const C = {
|
|
1548
1548
|
version: n,
|
|
@@ -1550,21 +1550,21 @@ function No(e = {}) {
|
|
|
1550
1550
|
locale: r,
|
|
1551
1551
|
fallbackLocale: a,
|
|
1552
1552
|
messages: i,
|
|
1553
|
-
modifiers:
|
|
1553
|
+
modifiers: y,
|
|
1554
1554
|
pluralRules: h,
|
|
1555
1555
|
missing: O,
|
|
1556
1556
|
missingWarn: p,
|
|
1557
1557
|
fallbackWarn: f,
|
|
1558
|
-
fallbackFormat:
|
|
1558
|
+
fallbackFormat: S,
|
|
1559
1559
|
unresolving: T,
|
|
1560
|
-
postTranslation:
|
|
1560
|
+
postTranslation: g,
|
|
1561
1561
|
processor: u,
|
|
1562
|
-
warnHtmlMessage:
|
|
1562
|
+
warnHtmlMessage: b,
|
|
1563
1563
|
escapeParameter: N,
|
|
1564
1564
|
messageCompiler: E,
|
|
1565
1565
|
messageResolver: R,
|
|
1566
1566
|
localeFallbacker: A,
|
|
1567
|
-
fallbackContext:
|
|
1567
|
+
fallbackContext: _,
|
|
1568
1568
|
onWarn: t,
|
|
1569
1569
|
__meta: B
|
|
1570
1570
|
};
|
|
@@ -1575,7 +1575,7 @@ function Ht(e, t, n, r, o) {
|
|
|
1575
1575
|
const { missing: a, onWarn: i } = e;
|
|
1576
1576
|
if (a !== null) {
|
|
1577
1577
|
const m = a(e, n, t, o);
|
|
1578
|
-
return
|
|
1578
|
+
return k(m) ? m : t;
|
|
1579
1579
|
} else
|
|
1580
1580
|
return t;
|
|
1581
1581
|
}
|
|
@@ -1596,28 +1596,28 @@ function Ao(e, t) {
|
|
|
1596
1596
|
return !1;
|
|
1597
1597
|
}
|
|
1598
1598
|
function sn(e, ...t) {
|
|
1599
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __datetimeFormatters: m } = e, [c,
|
|
1599
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __datetimeFormatters: m } = e, [c, y, h, O] = Rt(...t), p = Q(h.missingWarn) ? h.missingWarn : e.missingWarn;
|
|
1600
1600
|
Q(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn;
|
|
1601
|
-
const f = !!h.part,
|
|
1601
|
+
const f = !!h.part, S = $t(e, h), T = i(
|
|
1602
1602
|
e,
|
|
1603
1603
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1604
1604
|
o,
|
|
1605
|
-
|
|
1605
|
+
S
|
|
1606
1606
|
);
|
|
1607
|
-
if (!
|
|
1608
|
-
return new Intl.DateTimeFormat(
|
|
1609
|
-
let
|
|
1607
|
+
if (!k(c) || c === "")
|
|
1608
|
+
return new Intl.DateTimeFormat(S, O).format(y);
|
|
1609
|
+
let g = {}, u, b = null;
|
|
1610
1610
|
const N = "datetime format";
|
|
1611
|
-
for (let A = 0; A < T.length && (u = T[A],
|
|
1611
|
+
for (let A = 0; A < T.length && (u = T[A], g = n[u] || {}, b = g[c], !M(b)); A++)
|
|
1612
1612
|
Ht(e, c, u, p, N);
|
|
1613
|
-
if (!M(
|
|
1613
|
+
if (!M(b) || !k(u))
|
|
1614
1614
|
return r ? rt : c;
|
|
1615
1615
|
let E = `${u}__${c}`;
|
|
1616
1616
|
tt(O) || (E = `${E}__${JSON.stringify(O)}`);
|
|
1617
1617
|
let R = m.get(E);
|
|
1618
|
-
return R || (R = new Intl.DateTimeFormat(u, te({},
|
|
1618
|
+
return R || (R = new Intl.DateTimeFormat(u, te({}, b, O)), m.set(E, R)), f ? R.formatToParts(y) : R.format(y);
|
|
1619
1619
|
}
|
|
1620
|
-
const
|
|
1620
|
+
const Sn = [
|
|
1621
1621
|
"localeMatcher",
|
|
1622
1622
|
"weekday",
|
|
1623
1623
|
"era",
|
|
@@ -1642,28 +1642,28 @@ const kn = [
|
|
|
1642
1642
|
function Rt(...e) {
|
|
1643
1643
|
const [t, n, r, o] = e, a = H();
|
|
1644
1644
|
let i = H(), m;
|
|
1645
|
-
if (
|
|
1645
|
+
if (k(t)) {
|
|
1646
1646
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1647
1647
|
if (!c)
|
|
1648
|
-
throw
|
|
1649
|
-
const
|
|
1650
|
-
m = new Date(
|
|
1648
|
+
throw de(fe.INVALID_ISO_DATE_ARGUMENT);
|
|
1649
|
+
const y = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
|
|
1650
|
+
m = new Date(y);
|
|
1651
1651
|
try {
|
|
1652
1652
|
m.toISOString();
|
|
1653
1653
|
} catch {
|
|
1654
|
-
throw
|
|
1654
|
+
throw de(fe.INVALID_ISO_DATE_ARGUMENT);
|
|
1655
1655
|
}
|
|
1656
1656
|
} else if (rr(t)) {
|
|
1657
1657
|
if (isNaN(t.getTime()))
|
|
1658
|
-
throw
|
|
1658
|
+
throw de(fe.INVALID_DATE_ARGUMENT);
|
|
1659
1659
|
m = t;
|
|
1660
1660
|
} else if (ee(t))
|
|
1661
1661
|
m = t;
|
|
1662
1662
|
else
|
|
1663
|
-
throw
|
|
1664
|
-
return
|
|
1665
|
-
|
|
1666
|
-
}),
|
|
1663
|
+
throw de(fe.INVALID_ARGUMENT);
|
|
1664
|
+
return k(n) ? a.key = n : M(n) && Object.keys(n).forEach((c) => {
|
|
1665
|
+
Sn.includes(c) ? i[c] = n[c] : a[c] = n[c];
|
|
1666
|
+
}), k(r) ? a.locale = r : M(r) && (i = r), M(o) && (i = o), [a.key || "", m, a, i];
|
|
1667
1667
|
}
|
|
1668
1668
|
function ln(e, t, n) {
|
|
1669
1669
|
const r = e;
|
|
@@ -1673,28 +1673,28 @@ function ln(e, t, n) {
|
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
1675
1675
|
function un(e, ...t) {
|
|
1676
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __numberFormatters: m } = e, [c,
|
|
1676
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __numberFormatters: m } = e, [c, y, h, O] = At(...t), p = Q(h.missingWarn) ? h.missingWarn : e.missingWarn;
|
|
1677
1677
|
Q(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn;
|
|
1678
|
-
const f = !!h.part,
|
|
1678
|
+
const f = !!h.part, S = $t(e, h), T = i(
|
|
1679
1679
|
e,
|
|
1680
1680
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1681
1681
|
o,
|
|
1682
|
-
|
|
1682
|
+
S
|
|
1683
1683
|
);
|
|
1684
|
-
if (!
|
|
1685
|
-
return new Intl.NumberFormat(
|
|
1686
|
-
let
|
|
1684
|
+
if (!k(c) || c === "")
|
|
1685
|
+
return new Intl.NumberFormat(S, O).format(y);
|
|
1686
|
+
let g = {}, u, b = null;
|
|
1687
1687
|
const N = "number format";
|
|
1688
|
-
for (let A = 0; A < T.length && (u = T[A],
|
|
1688
|
+
for (let A = 0; A < T.length && (u = T[A], g = n[u] || {}, b = g[c], !M(b)); A++)
|
|
1689
1689
|
Ht(e, c, u, p, N);
|
|
1690
|
-
if (!M(
|
|
1690
|
+
if (!M(b) || !k(u))
|
|
1691
1691
|
return r ? rt : c;
|
|
1692
1692
|
let E = `${u}__${c}`;
|
|
1693
1693
|
tt(O) || (E = `${E}__${JSON.stringify(O)}`);
|
|
1694
1694
|
let R = m.get(E);
|
|
1695
|
-
return R || (R = new Intl.NumberFormat(u, te({},
|
|
1695
|
+
return R || (R = new Intl.NumberFormat(u, te({}, b, O)), m.set(E, R)), f ? R.formatToParts(y) : R.format(y);
|
|
1696
1696
|
}
|
|
1697
|
-
const
|
|
1697
|
+
const kn = [
|
|
1698
1698
|
"localeMatcher",
|
|
1699
1699
|
"style",
|
|
1700
1700
|
"currency",
|
|
@@ -1720,11 +1720,11 @@ function At(...e) {
|
|
|
1720
1720
|
const [t, n, r, o] = e, a = H();
|
|
1721
1721
|
let i = H();
|
|
1722
1722
|
if (!ee(t))
|
|
1723
|
-
throw
|
|
1723
|
+
throw de(fe.INVALID_ARGUMENT);
|
|
1724
1724
|
const m = t;
|
|
1725
|
-
return
|
|
1726
|
-
|
|
1727
|
-
}),
|
|
1725
|
+
return k(n) ? a.key = n : M(n) && Object.keys(n).forEach((c) => {
|
|
1726
|
+
kn.includes(c) ? i[c] = n[c] : a[c] = n[c];
|
|
1727
|
+
}), k(r) ? a.locale = r : M(r) && (i = r), M(o) && (i = o), [a.key || "", m, a, i];
|
|
1728
1728
|
}
|
|
1729
1729
|
function cn(e, t, n) {
|
|
1730
1730
|
const r = e;
|
|
@@ -1733,7 +1733,7 @@ function cn(e, t, n) {
|
|
|
1733
1733
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1734
1734
|
}
|
|
1735
1735
|
}
|
|
1736
|
-
const Lo = (e) => e, Oo = (e) => "", Co = "text",
|
|
1736
|
+
const Lo = (e) => e, Oo = (e) => "", Co = "text", So = (e) => e.length === 0 ? "" : Mt(e), ko = lr;
|
|
1737
1737
|
function mn(e, t) {
|
|
1738
1738
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1739
1739
|
}
|
|
@@ -1745,59 +1745,59 @@ function Do(e, t) {
|
|
|
1745
1745
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1746
1746
|
}
|
|
1747
1747
|
function wo(e = {}) {
|
|
1748
|
-
const t = e.locale, n = Po(e), r = U(e.pluralRules) &&
|
|
1748
|
+
const t = e.locale, n = Po(e), r = U(e.pluralRules) && k(t) && Y(e.pluralRules[t]) ? e.pluralRules[t] : mn, o = U(e.pluralRules) && k(t) && Y(e.pluralRules[t]) ? mn : void 0, a = (u) => u[r(n, u.length, o)], i = e.list || [], m = (u) => i[u], c = e.named || H();
|
|
1749
1749
|
ee(e.pluralIndex) && Do(n, c);
|
|
1750
|
-
const
|
|
1751
|
-
function h(u,
|
|
1752
|
-
const N = Y(e.messages) ? e.messages(u, !!
|
|
1750
|
+
const y = (u) => c[u];
|
|
1751
|
+
function h(u, b) {
|
|
1752
|
+
const N = Y(e.messages) ? e.messages(u, !!b) : U(e.messages) ? e.messages[u] : !1;
|
|
1753
1753
|
return N || (e.parent ? e.parent.message(u) : Oo);
|
|
1754
1754
|
}
|
|
1755
|
-
const O = (u) => e.modifiers ? e.modifiers[u] : Lo, p = M(e.processor) && Y(e.processor.normalize) ? e.processor.normalize :
|
|
1755
|
+
const O = (u) => e.modifiers ? e.modifiers[u] : Lo, p = M(e.processor) && Y(e.processor.normalize) ? e.processor.normalize : So, f = M(e.processor) && Y(e.processor.interpolate) ? e.processor.interpolate : ko, S = M(e.processor) && k(e.processor.type) ? e.processor.type : Co, g = {
|
|
1756
1756
|
list: m,
|
|
1757
|
-
named:
|
|
1757
|
+
named: y,
|
|
1758
1758
|
plural: a,
|
|
1759
|
-
linked: (u, ...
|
|
1760
|
-
const [N, E] =
|
|
1759
|
+
linked: (u, ...b) => {
|
|
1760
|
+
const [N, E] = b;
|
|
1761
1761
|
let R = "text", A = "";
|
|
1762
|
-
|
|
1763
|
-
const
|
|
1762
|
+
b.length === 1 ? U(N) ? (A = N.modifier || A, R = N.type || R) : k(N) && (A = N || A) : b.length === 2 && (k(N) && (A = N || A), k(E) && (R = E || R));
|
|
1763
|
+
const _ = h(u, !0)(g), L = (
|
|
1764
1764
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1765
|
-
R === "vnode" && z(
|
|
1765
|
+
R === "vnode" && z(_) && A ? _[0] : _
|
|
1766
1766
|
);
|
|
1767
1767
|
return A ? O(A)(L, R) : L;
|
|
1768
1768
|
},
|
|
1769
1769
|
message: h,
|
|
1770
|
-
type:
|
|
1770
|
+
type: S,
|
|
1771
1771
|
interpolate: f,
|
|
1772
1772
|
normalize: p,
|
|
1773
1773
|
values: te(H(), i, c)
|
|
1774
1774
|
};
|
|
1775
|
-
return
|
|
1775
|
+
return g;
|
|
1776
1776
|
}
|
|
1777
1777
|
const fn = () => "", re = (e) => Y(e);
|
|
1778
|
-
function
|
|
1779
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: i, messages: m } = e, [c,
|
|
1780
|
-
p && Fo(
|
|
1781
|
-
let [u,
|
|
1778
|
+
function dn(e, ...t) {
|
|
1779
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: i, messages: m } = e, [c, y] = Lt(...t), h = Q(y.missingWarn) ? y.missingWarn : e.missingWarn, O = Q(y.fallbackWarn) ? y.fallbackWarn : e.fallbackWarn, p = Q(y.escapeParameter) ? y.escapeParameter : e.escapeParameter, f = !!y.resolvedMessage, S = k(y.default) || Q(y.default) ? Q(y.default) ? a ? c : () => c : y.default : n ? a ? c : () => c : null, T = n || S != null && (k(S) || Y(S)), g = $t(e, y);
|
|
1780
|
+
p && Fo(y);
|
|
1781
|
+
let [u, b, N] = f ? [
|
|
1782
1782
|
c,
|
|
1783
|
-
|
|
1784
|
-
m[
|
|
1785
|
-
] : Pn(e, c,
|
|
1786
|
-
if (!f && !(
|
|
1783
|
+
g,
|
|
1784
|
+
m[g] || H()
|
|
1785
|
+
] : Pn(e, c, g, i, O, h), E = u, R = c;
|
|
1786
|
+
if (!f && !(k(E) || Se(E) || re(E)) && T && (E = S, R = E), !f && (!(k(E) || Se(E) || re(E)) || !k(b)))
|
|
1787
1787
|
return o ? rt : c;
|
|
1788
1788
|
let A = !1;
|
|
1789
|
-
const
|
|
1789
|
+
const _ = () => {
|
|
1790
1790
|
A = !0;
|
|
1791
|
-
}, L = re(E) ? E : Dn(e, c,
|
|
1791
|
+
}, L = re(E) ? E : Dn(e, c, b, E, R, _);
|
|
1792
1792
|
if (A)
|
|
1793
1793
|
return E;
|
|
1794
|
-
const P = Vo(e,
|
|
1794
|
+
const P = Vo(e, b, N, y), w = wo(P), B = Mo(e, L, w), C = r ? r(B, c) : B;
|
|
1795
1795
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1796
1796
|
const Ne = {
|
|
1797
1797
|
timestamp: Date.now(),
|
|
1798
|
-
key:
|
|
1799
|
-
locale:
|
|
1800
|
-
format:
|
|
1798
|
+
key: k(c) ? c : re(E) ? E.key : "",
|
|
1799
|
+
locale: b || (re(E) ? E.locale : ""),
|
|
1800
|
+
format: k(E) ? E : re(E) ? E.source : "",
|
|
1801
1801
|
message: C
|
|
1802
1802
|
};
|
|
1803
1803
|
Ne.meta = te({}, e.__meta, /* @__PURE__ */ To() || {}), to(Ne);
|
|
@@ -1805,37 +1805,37 @@ function _n(e, ...t) {
|
|
|
1805
1805
|
return C;
|
|
1806
1806
|
}
|
|
1807
1807
|
function Fo(e) {
|
|
1808
|
-
z(e.list) ? e.list = e.list.map((t) =>
|
|
1809
|
-
|
|
1808
|
+
z(e.list) ? e.list = e.list.map((t) => k(t) ? Xt(t) : t) : U(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1809
|
+
k(e.named[t]) && (e.named[t] = Xt(e.named[t]));
|
|
1810
1810
|
});
|
|
1811
1811
|
}
|
|
1812
1812
|
function Pn(e, t, n, r, o, a) {
|
|
1813
|
-
const { messages: i, onWarn: m, messageResolver: c, localeFallbacker:
|
|
1813
|
+
const { messages: i, onWarn: m, messageResolver: c, localeFallbacker: y } = e, h = y(e, r, n);
|
|
1814
1814
|
let O = H(), p, f = null;
|
|
1815
|
-
const
|
|
1816
|
-
for (let T = 0; T < h.length && (p = h[T], O = i[p] || H(), (f = c(O, t)) === null && (f = O[t]), !(
|
|
1815
|
+
const S = "translate";
|
|
1816
|
+
for (let T = 0; T < h.length && (p = h[T], O = i[p] || H(), (f = c(O, t)) === null && (f = O[t]), !(k(f) || Se(f) || re(f))); T++)
|
|
1817
1817
|
if (!Ao(p, h)) {
|
|
1818
|
-
const
|
|
1818
|
+
const g = Ht(
|
|
1819
1819
|
e,
|
|
1820
1820
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1821
1821
|
t,
|
|
1822
1822
|
p,
|
|
1823
1823
|
a,
|
|
1824
|
-
|
|
1824
|
+
S
|
|
1825
1825
|
);
|
|
1826
|
-
|
|
1826
|
+
g !== t && (f = g);
|
|
1827
1827
|
}
|
|
1828
1828
|
return [f, p, O];
|
|
1829
1829
|
}
|
|
1830
1830
|
function Dn(e, t, n, r, o, a) {
|
|
1831
1831
|
const { messageCompiler: i, warnHtmlMessage: m } = e;
|
|
1832
1832
|
if (re(r)) {
|
|
1833
|
-
const
|
|
1834
|
-
return
|
|
1833
|
+
const y = r;
|
|
1834
|
+
return y.locale = y.locale || n, y.key = y.key || t, y;
|
|
1835
1835
|
}
|
|
1836
1836
|
if (i == null) {
|
|
1837
|
-
const
|
|
1838
|
-
return
|
|
1837
|
+
const y = () => r;
|
|
1838
|
+
return y.locale = n, y.key = t, y;
|
|
1839
1839
|
}
|
|
1840
1840
|
const c = i(r, Uo(e, n, o, r, m, a));
|
|
1841
1841
|
return c.locale = n, c.key = t, c.source = r, c;
|
|
@@ -1845,10 +1845,10 @@ function Mo(e, t, n) {
|
|
|
1845
1845
|
}
|
|
1846
1846
|
function Lt(...e) {
|
|
1847
1847
|
const [t, n, r] = e, o = H();
|
|
1848
|
-
if (!
|
|
1849
|
-
throw
|
|
1848
|
+
if (!k(t) && !ee(t) && !re(t) && !Se(t))
|
|
1849
|
+
throw de(fe.INVALID_ARGUMENT);
|
|
1850
1850
|
const a = ee(t) ? String(t) : (re(t), t);
|
|
1851
|
-
return ee(n) ? o.plural = n :
|
|
1851
|
+
return ee(n) ? o.plural = n : k(n) ? o.default = n : M(n) && !tt(n) ? o.named = n : z(n) && (o.list = n), ee(r) ? o.plural = r : k(r) ? o.default = r : M(r) && te(o, r), [a, o];
|
|
1852
1852
|
}
|
|
1853
1853
|
function Uo(e, t, n, r, o, a) {
|
|
1854
1854
|
return {
|
|
@@ -1862,42 +1862,42 @@ function Uo(e, t, n, r, o, a) {
|
|
|
1862
1862
|
};
|
|
1863
1863
|
}
|
|
1864
1864
|
function Vo(e, t, n, r) {
|
|
1865
|
-
const { modifiers: o, pluralRules: a, messageResolver: i, fallbackLocale: m, fallbackWarn: c, missingWarn:
|
|
1865
|
+
const { modifiers: o, pluralRules: a, messageResolver: i, fallbackLocale: m, fallbackWarn: c, missingWarn: y, fallbackContext: h } = e, p = {
|
|
1866
1866
|
locale: t,
|
|
1867
1867
|
modifiers: o,
|
|
1868
1868
|
pluralRules: a,
|
|
1869
|
-
messages: (f,
|
|
1869
|
+
messages: (f, S) => {
|
|
1870
1870
|
let T = i(n, f);
|
|
1871
|
-
if (T == null && (h ||
|
|
1872
|
-
const [, ,
|
|
1871
|
+
if (T == null && (h || S)) {
|
|
1872
|
+
const [, , g] = Pn(
|
|
1873
1873
|
h || e,
|
|
1874
1874
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1875
1875
|
f,
|
|
1876
1876
|
t,
|
|
1877
1877
|
m,
|
|
1878
1878
|
c,
|
|
1879
|
-
|
|
1879
|
+
y
|
|
1880
1880
|
);
|
|
1881
|
-
T = i(
|
|
1881
|
+
T = i(g, f);
|
|
1882
1882
|
}
|
|
1883
|
-
if (
|
|
1884
|
-
let
|
|
1885
|
-
const
|
|
1886
|
-
|
|
1883
|
+
if (k(T) || Se(T)) {
|
|
1884
|
+
let g = !1;
|
|
1885
|
+
const b = Dn(e, f, t, T, f, () => {
|
|
1886
|
+
g = !0;
|
|
1887
1887
|
});
|
|
1888
|
-
return
|
|
1888
|
+
return g ? fn : b;
|
|
1889
1889
|
} else return re(T) ? T : fn;
|
|
1890
1890
|
}
|
|
1891
1891
|
};
|
|
1892
1892
|
return e.processor && (p.processor = e.processor), r.list && (p.list = r.list), r.named && (p.named = r.named), ee(r.plural) && (p.pluralIndex = r.plural), p;
|
|
1893
1893
|
}
|
|
1894
1894
|
wr();
|
|
1895
|
-
var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/
|
|
1895
|
+
var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_d41d1c82-7e6b-4ab9-ab7f-d4a2b40ff7fd", 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_d41d1c82-7e6b-4ab9-ab7f-d4a2b40ff7fd", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", GTM_ID: "GTM-WR8XHXLH", FIREBASE_MESSAGING_SENDER_ID: "128512026847", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "production", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.6.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-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-zzez732dna-as.a.run.app", VITE_FEATURE_FLAG_API_KEY: "6GhcttsJ9Rj9cTevcdrpin", SYSTEMD_EXEC_PID: "1898", ACTIONS_ORCHESTRATION_ID: "46f6c719-79f0-4a7e-9457-0c490879bede.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: "20260705.232.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:15565", GITHUB_WORKFLOW: "Publish mf-menu prod", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", REMY_URL: "https://remy.feedmeapi.com/v1", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.11/x64", GITHUB_RUN_ID: "29262069549", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapi.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "033ccb80475ab319db33a61e900b34fc6933dace", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.4/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "production", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu-prod.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_44c367c1-a452-41ab-bcf9-7b02e6b131ce", INVOCATION_ID: "0f63f8619f0b45b5b6d1c0e0ab0c322f", 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: "174", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-2MP52PC24R", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", VITE_LICENSE_API_URL: "https://license-v2.feedmeapi.com", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000088067", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/portal", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.32.57", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", GTM_DEBUG: "false", FIREBASE_PROJECT_ID: "feedme-253402", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "033ccb80475ab319db33a61e900b34fc6933dace", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_d41d1c82-7e6b-4ab9-ab7f-d4a2b40ff7fd", 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_d41d1c82-7e6b-4ab9-ab7f-d4a2b40ff7fd", 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_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_d41d1c82-7e6b-4ab9-ab7f-d4a2b40ff7fd", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
1896
1896
|
const Ho = "10.0.5";
|
|
1897
1897
|
function Go() {
|
|
1898
1898
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Te().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Te().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Te().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Te().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1899
1899
|
}
|
|
1900
|
-
const
|
|
1900
|
+
const ke = {
|
|
1901
1901
|
// composer module errors
|
|
1902
1902
|
UNEXPECTED_RETURN_TYPE: ro,
|
|
1903
1903
|
// 24
|
|
@@ -1913,7 +1913,7 @@ const Se = {
|
|
|
1913
1913
|
function $e(e, ...t) {
|
|
1914
1914
|
return nt(e, null, void 0);
|
|
1915
1915
|
}
|
|
1916
|
-
const Ot = /* @__PURE__ */ Ie("__translateVNode"), Ct = /* @__PURE__ */ Ie("__datetimeParts"),
|
|
1916
|
+
const Ot = /* @__PURE__ */ Ie("__translateVNode"), Ct = /* @__PURE__ */ Ie("__datetimeParts"), St = /* @__PURE__ */ Ie("__numberParts"), Wo = Ie("__setPluralRules"), wn = /* @__PURE__ */ Ie("__injectWithOption"), kt = /* @__PURE__ */ Ie("__dispose");
|
|
1917
1917
|
function He(e) {
|
|
1918
1918
|
if (!U(e))
|
|
1919
1919
|
return e;
|
|
@@ -1939,10 +1939,10 @@ function Fn(e, t) {
|
|
|
1939
1939
|
const { messages: n, __i18n: r, messageResolver: o, flatJson: a } = t, i = M(n) ? n : z(r) ? H() : { [e]: H() };
|
|
1940
1940
|
if (z(r) && r.forEach((m) => {
|
|
1941
1941
|
if ("locale" in m && "resource" in m) {
|
|
1942
|
-
const { locale: c, resource:
|
|
1943
|
-
c ? (i[c] = i[c] || H(), Je(
|
|
1942
|
+
const { locale: c, resource: y } = m;
|
|
1943
|
+
c ? (i[c] = i[c] || H(), Je(y, i[c])) : Je(y, i);
|
|
1944
1944
|
} else
|
|
1945
|
-
|
|
1945
|
+
k(m) && Je(JSON.parse(m), i);
|
|
1946
1946
|
}), o == null && a)
|
|
1947
1947
|
for (const m in i)
|
|
1948
1948
|
le(i, m) && He(i[m]);
|
|
@@ -1976,12 +1976,12 @@ function Bo(e, t, n) {
|
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function _n(e) {
|
|
1980
1980
|
return X(Bn, null, e, 0);
|
|
1981
1981
|
}
|
|
1982
1982
|
const pn = "__INTLIFY_META__", En = () => [], xo = () => !1;
|
|
1983
|
-
let
|
|
1984
|
-
function
|
|
1983
|
+
let yn = 0;
|
|
1984
|
+
function gn(e) {
|
|
1985
1985
|
return (t, n, r, o) => e(n, r, Dt() || void 0, o);
|
|
1986
1986
|
}
|
|
1987
1987
|
const Ko = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
@@ -1994,21 +1994,21 @@ function Yo(e = {}) {
|
|
|
1994
1994
|
let i = Q(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1995
1995
|
const m = a(
|
|
1996
1996
|
// prettier-ignore
|
|
1997
|
-
t && i ? t.locale.value :
|
|
1997
|
+
t && i ? t.locale.value : k(e.locale) ? e.locale : et
|
|
1998
1998
|
), c = a(
|
|
1999
1999
|
// prettier-ignore
|
|
2000
|
-
t && i ? t.fallbackLocale.value :
|
|
2001
|
-
),
|
|
2002
|
-
let p = t ? t.missingWarn : Q(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, f = t ? t.fallbackWarn : Q(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0,
|
|
2000
|
+
t && i ? t.fallbackLocale.value : k(e.fallbackLocale) || z(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
2001
|
+
), y = a(Fn(m.value, e)), h = a(M(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), O = a(M(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
2002
|
+
let p = t ? t.missingWarn : Q(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, f = t ? t.fallbackWarn : Q(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0, S = t ? t.fallbackRoot : Q(e.fallbackRoot) ? e.fallbackRoot : !0, T = !!e.fallbackFormat, g = Y(e.missing) ? e.missing : null, u = Y(e.missing) ? gn(e.missing) : null, b = Y(e.postTranslation) ? e.postTranslation : null, N = t ? t.warnHtmlMessage : Q(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
|
|
2003
2003
|
const R = t ? t.modifiers : M(e.modifiers) ? e.modifiers : {};
|
|
2004
|
-
let A = e.pluralRules || t && t.pluralRules,
|
|
2005
|
-
|
|
2004
|
+
let A = e.pluralRules || t && t.pluralRules, _;
|
|
2005
|
+
_ = (() => {
|
|
2006
2006
|
r && on(null);
|
|
2007
|
-
const
|
|
2007
|
+
const d = {
|
|
2008
2008
|
version: Ho,
|
|
2009
2009
|
locale: m.value,
|
|
2010
2010
|
fallbackLocale: c.value,
|
|
2011
|
-
messages:
|
|
2011
|
+
messages: y.value,
|
|
2012
2012
|
modifiers: R,
|
|
2013
2013
|
pluralRules: A,
|
|
2014
2014
|
missing: u === null ? void 0 : u,
|
|
@@ -2016,124 +2016,124 @@ function Yo(e = {}) {
|
|
|
2016
2016
|
fallbackWarn: f,
|
|
2017
2017
|
fallbackFormat: T,
|
|
2018
2018
|
unresolving: !0,
|
|
2019
|
-
postTranslation:
|
|
2019
|
+
postTranslation: b === null ? void 0 : b,
|
|
2020
2020
|
warnHtmlMessage: N,
|
|
2021
2021
|
escapeParameter: E,
|
|
2022
2022
|
messageResolver: e.messageResolver,
|
|
2023
2023
|
messageCompiler: e.messageCompiler,
|
|
2024
2024
|
__meta: { framework: "vue" }
|
|
2025
2025
|
};
|
|
2026
|
-
|
|
2027
|
-
const I = No(
|
|
2026
|
+
d.datetimeFormats = h.value, d.numberFormats = O.value, d.__datetimeFormatters = M(_) ? _.__datetimeFormatters : void 0, d.__numberFormatters = M(_) ? _.__numberFormatters : void 0;
|
|
2027
|
+
const I = No(d);
|
|
2028
2028
|
return r && on(I), I;
|
|
2029
|
-
})(), we(
|
|
2029
|
+
})(), we(_, m.value, c.value);
|
|
2030
2030
|
function P() {
|
|
2031
2031
|
return [
|
|
2032
2032
|
m.value,
|
|
2033
2033
|
c.value,
|
|
2034
|
-
|
|
2034
|
+
y.value,
|
|
2035
2035
|
h.value,
|
|
2036
2036
|
O.value
|
|
2037
2037
|
];
|
|
2038
2038
|
}
|
|
2039
2039
|
const w = W({
|
|
2040
2040
|
get: () => m.value,
|
|
2041
|
-
set: (
|
|
2042
|
-
m.value =
|
|
2041
|
+
set: (d) => {
|
|
2042
|
+
m.value = d, _.locale = m.value;
|
|
2043
2043
|
}
|
|
2044
2044
|
}), B = W({
|
|
2045
2045
|
get: () => c.value,
|
|
2046
|
-
set: (
|
|
2047
|
-
c.value =
|
|
2046
|
+
set: (d) => {
|
|
2047
|
+
c.value = d, _.fallbackLocale = c.value, we(_, m.value, d);
|
|
2048
2048
|
}
|
|
2049
|
-
}), C = W(() =>
|
|
2049
|
+
}), C = W(() => y.value), Ne = /* @__PURE__ */ W(() => h.value), ot = /* @__PURE__ */ W(() => O.value);
|
|
2050
2050
|
function at() {
|
|
2051
|
-
return Y(
|
|
2051
|
+
return Y(b) ? b : null;
|
|
2052
2052
|
}
|
|
2053
|
-
function st(
|
|
2054
|
-
|
|
2053
|
+
function st(d) {
|
|
2054
|
+
b = d, _.postTranslation = d;
|
|
2055
2055
|
}
|
|
2056
2056
|
function lt() {
|
|
2057
|
-
return
|
|
2057
|
+
return g;
|
|
2058
2058
|
}
|
|
2059
|
-
function ut(
|
|
2060
|
-
|
|
2059
|
+
function ut(d) {
|
|
2060
|
+
d !== null && (u = gn(d)), g = d, _.missing = u;
|
|
2061
2061
|
}
|
|
2062
|
-
const ce = (
|
|
2062
|
+
const ce = (d, I, G, J, ve, Ye) => {
|
|
2063
2063
|
P();
|
|
2064
2064
|
let Le;
|
|
2065
2065
|
try {
|
|
2066
|
-
$o.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2066
|
+
$o.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (_.fallbackContext = t ? Io() : void 0), Le = d(_);
|
|
2067
2067
|
} finally {
|
|
2068
|
-
__INTLIFY_PROD_DEVTOOLS__, r || (
|
|
2068
|
+
__INTLIFY_PROD_DEVTOOLS__, r || (_.fallbackContext = void 0);
|
|
2069
2069
|
}
|
|
2070
2070
|
if (G !== "translate exists" && // for not `te` (e.g `t`)
|
|
2071
2071
|
ee(Le) && Le === rt || G === "translate exists" && !Le) {
|
|
2072
2072
|
const [$n, Va] = I();
|
|
2073
|
-
return t &&
|
|
2073
|
+
return t && S ? J(t) : ve($n);
|
|
2074
2074
|
} else {
|
|
2075
2075
|
if (Ye(Le))
|
|
2076
2076
|
return Le;
|
|
2077
|
-
throw $e(
|
|
2077
|
+
throw $e(ke.UNEXPECTED_RETURN_TYPE);
|
|
2078
2078
|
}
|
|
2079
2079
|
};
|
|
2080
|
-
function Be(...
|
|
2081
|
-
return ce((I) => Reflect.apply(
|
|
2080
|
+
function Be(...d) {
|
|
2081
|
+
return ce((I) => Reflect.apply(dn, null, [I, ...d]), () => Lt(...d), "translate", (I) => Reflect.apply(I.t, I, [...d]), (I) => I, (I) => k(I));
|
|
2082
2082
|
}
|
|
2083
|
-
function xe(...
|
|
2084
|
-
const [I, G, J] =
|
|
2083
|
+
function xe(...d) {
|
|
2084
|
+
const [I, G, J] = d;
|
|
2085
2085
|
if (J && !U(J))
|
|
2086
|
-
throw $e(
|
|
2086
|
+
throw $e(ke.INVALID_ARGUMENT);
|
|
2087
2087
|
return Be(I, G, te({ resolvedMessage: !0 }, J || {}));
|
|
2088
2088
|
}
|
|
2089
|
-
function it(...
|
|
2090
|
-
return ce((I) => Reflect.apply(sn, null, [I, ...
|
|
2089
|
+
function it(...d) {
|
|
2090
|
+
return ce((I) => Reflect.apply(sn, null, [I, ...d]), () => Rt(...d), "datetime format", (I) => Reflect.apply(I.d, I, [...d]), () => nn, (I) => k(I));
|
|
2091
2091
|
}
|
|
2092
|
-
function ct(...
|
|
2093
|
-
return ce((I) => Reflect.apply(un, null, [I, ...
|
|
2092
|
+
function ct(...d) {
|
|
2093
|
+
return ce((I) => Reflect.apply(un, null, [I, ...d]), () => At(...d), "number format", (I) => Reflect.apply(I.n, I, [...d]), () => nn, (I) => k(I));
|
|
2094
2094
|
}
|
|
2095
|
-
function mt(
|
|
2096
|
-
return
|
|
2095
|
+
function mt(d) {
|
|
2096
|
+
return d.map((I) => k(I) || ee(I) || Q(I) ? _n(String(I)) : I);
|
|
2097
2097
|
}
|
|
2098
2098
|
const ft = {
|
|
2099
2099
|
normalize: mt,
|
|
2100
|
-
interpolate: (
|
|
2100
|
+
interpolate: (d) => d,
|
|
2101
2101
|
type: "vnode"
|
|
2102
2102
|
};
|
|
2103
|
-
function
|
|
2103
|
+
function dt(...d) {
|
|
2104
2104
|
return ce((I) => {
|
|
2105
2105
|
let G;
|
|
2106
2106
|
const J = I;
|
|
2107
2107
|
try {
|
|
2108
|
-
J.processor = ft, G = Reflect.apply(
|
|
2108
|
+
J.processor = ft, G = Reflect.apply(dn, null, [J, ...d]);
|
|
2109
2109
|
} finally {
|
|
2110
2110
|
J.processor = null;
|
|
2111
2111
|
}
|
|
2112
2112
|
return G;
|
|
2113
|
-
}, () => Lt(...
|
|
2113
|
+
}, () => Lt(...d), "translate", (I) => I[Ot](...d), (I) => [_n(I)], (I) => z(I));
|
|
2114
2114
|
}
|
|
2115
|
-
function Ke(...
|
|
2116
|
-
return ce((I) => Reflect.apply(un, null, [I, ...
|
|
2115
|
+
function Ke(...d) {
|
|
2116
|
+
return ce((I) => Reflect.apply(un, null, [I, ...d]), () => At(...d), "number format", (I) => I[St](...d), En, (I) => k(I) || z(I));
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2119
|
-
return ce((I) => Reflect.apply(sn, null, [I, ...
|
|
2118
|
+
function _t(...d) {
|
|
2119
|
+
return ce((I) => Reflect.apply(sn, null, [I, ...d]), () => Rt(...d), "datetime format", (I) => I[Ct](...d), En, (I) => k(I) || z(I));
|
|
2120
2120
|
}
|
|
2121
|
-
function pt(
|
|
2122
|
-
A =
|
|
2121
|
+
function pt(d) {
|
|
2122
|
+
A = d, _.pluralRules = A;
|
|
2123
2123
|
}
|
|
2124
|
-
function Et(
|
|
2124
|
+
function Et(d, I) {
|
|
2125
2125
|
return ce(() => {
|
|
2126
|
-
if (!
|
|
2126
|
+
if (!d)
|
|
2127
2127
|
return !1;
|
|
2128
|
-
const G =
|
|
2129
|
-
return
|
|
2130
|
-
}, () => [
|
|
2128
|
+
const G = k(I) ? I : m.value, J = Re(G), ve = _.messageResolver(J, d);
|
|
2129
|
+
return Se(ve) || re(ve) || k(ve);
|
|
2130
|
+
}, () => [d], "translate exists", (G) => Reflect.apply(G.te, G, [d, I]), xo, (G) => Q(G));
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function yt(d) {
|
|
2133
2133
|
let I = null;
|
|
2134
|
-
const G = Nn(
|
|
2134
|
+
const G = Nn(_, c.value, m.value);
|
|
2135
2135
|
for (let J = 0; J < G.length; J++) {
|
|
2136
|
-
const
|
|
2136
|
+
const ve = y.value[G[J]] || {}, Ye = _.messageResolver(ve, d);
|
|
2137
2137
|
if (Ye != null) {
|
|
2138
2138
|
I = Ye;
|
|
2139
2139
|
break;
|
|
@@ -2141,65 +2141,65 @@ function Yo(e = {}) {
|
|
|
2141
2141
|
}
|
|
2142
2142
|
return I;
|
|
2143
2143
|
}
|
|
2144
|
-
function Pe(
|
|
2145
|
-
const I =
|
|
2146
|
-
return I ?? (t ? t.tm(
|
|
2144
|
+
function Pe(d) {
|
|
2145
|
+
const I = yt(d);
|
|
2146
|
+
return I ?? (t ? t.tm(d) || {} : {});
|
|
2147
2147
|
}
|
|
2148
|
-
function Re(
|
|
2149
|
-
return
|
|
2148
|
+
function Re(d) {
|
|
2149
|
+
return y.value[d] || {};
|
|
2150
2150
|
}
|
|
2151
|
-
function Ae(
|
|
2151
|
+
function Ae(d, I) {
|
|
2152
2152
|
if (o) {
|
|
2153
|
-
const G = { [
|
|
2153
|
+
const G = { [d]: I };
|
|
2154
2154
|
for (const J in G)
|
|
2155
2155
|
le(G, J) && He(G[J]);
|
|
2156
|
-
I = G[
|
|
2156
|
+
I = G[d];
|
|
2157
2157
|
}
|
|
2158
|
-
|
|
2158
|
+
y.value[d] = I, _.messages = y.value;
|
|
2159
2159
|
}
|
|
2160
|
-
function De(
|
|
2161
|
-
|
|
2162
|
-
const G = { [
|
|
2160
|
+
function De(d, I) {
|
|
2161
|
+
y.value[d] = y.value[d] || {};
|
|
2162
|
+
const G = { [d]: I };
|
|
2163
2163
|
if (o)
|
|
2164
2164
|
for (const J in G)
|
|
2165
2165
|
le(G, J) && He(G[J]);
|
|
2166
|
-
I = G[
|
|
2166
|
+
I = G[d], Je(I, y.value[d]), _.messages = y.value;
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2169
|
-
return h.value[
|
|
2168
|
+
function gt(d) {
|
|
2169
|
+
return h.value[d] || {};
|
|
2170
2170
|
}
|
|
2171
|
-
function s(
|
|
2172
|
-
h.value[
|
|
2171
|
+
function s(d, I) {
|
|
2172
|
+
h.value[d] = I, _.datetimeFormats = h.value, ln(_, d, I);
|
|
2173
2173
|
}
|
|
2174
|
-
function l(
|
|
2175
|
-
h.value[
|
|
2174
|
+
function l(d, I) {
|
|
2175
|
+
h.value[d] = te(h.value[d] || {}, I), _.datetimeFormats = h.value, ln(_, d, I);
|
|
2176
2176
|
}
|
|
2177
|
-
function
|
|
2178
|
-
return O.value[
|
|
2177
|
+
function v(d) {
|
|
2178
|
+
return O.value[d] || {};
|
|
2179
2179
|
}
|
|
2180
|
-
function D(
|
|
2181
|
-
O.value[
|
|
2180
|
+
function D(d, I) {
|
|
2181
|
+
O.value[d] = I, _.numberFormats = O.value, cn(_, d, I);
|
|
2182
2182
|
}
|
|
2183
|
-
function q(
|
|
2184
|
-
O.value[
|
|
2183
|
+
function q(d, I) {
|
|
2184
|
+
O.value[d] = te(O.value[d] || {}, I), _.numberFormats = O.value, cn(_, d, I);
|
|
2185
2185
|
}
|
|
2186
|
-
|
|
2187
|
-
i && (m.value =
|
|
2188
|
-
}), Ze(t.fallbackLocale, (
|
|
2189
|
-
i && (c.value =
|
|
2186
|
+
yn++, t && Yt && (Ze(t.locale, (d) => {
|
|
2187
|
+
i && (m.value = d, _.locale = d, we(_, m.value, c.value));
|
|
2188
|
+
}), Ze(t.fallbackLocale, (d) => {
|
|
2189
|
+
i && (c.value = d, _.fallbackLocale = d, we(_, m.value, c.value));
|
|
2190
2190
|
}));
|
|
2191
2191
|
const F = {
|
|
2192
|
-
id:
|
|
2192
|
+
id: yn,
|
|
2193
2193
|
locale: w,
|
|
2194
2194
|
fallbackLocale: B,
|
|
2195
2195
|
get inheritLocale() {
|
|
2196
2196
|
return i;
|
|
2197
2197
|
},
|
|
2198
|
-
set inheritLocale(
|
|
2199
|
-
i =
|
|
2198
|
+
set inheritLocale(d) {
|
|
2199
|
+
i = d, d && t && (m.value = t.locale.value, c.value = t.fallbackLocale.value, we(_, m.value, c.value));
|
|
2200
2200
|
},
|
|
2201
2201
|
get availableLocales() {
|
|
2202
|
-
return Object.keys(
|
|
2202
|
+
return Object.keys(y.value).sort();
|
|
2203
2203
|
},
|
|
2204
2204
|
messages: C,
|
|
2205
2205
|
get modifiers() {
|
|
@@ -2214,38 +2214,38 @@ function Yo(e = {}) {
|
|
|
2214
2214
|
get missingWarn() {
|
|
2215
2215
|
return p;
|
|
2216
2216
|
},
|
|
2217
|
-
set missingWarn(
|
|
2218
|
-
p =
|
|
2217
|
+
set missingWarn(d) {
|
|
2218
|
+
p = d, _.missingWarn = p;
|
|
2219
2219
|
},
|
|
2220
2220
|
get fallbackWarn() {
|
|
2221
2221
|
return f;
|
|
2222
2222
|
},
|
|
2223
|
-
set fallbackWarn(
|
|
2224
|
-
f =
|
|
2223
|
+
set fallbackWarn(d) {
|
|
2224
|
+
f = d, _.fallbackWarn = f;
|
|
2225
2225
|
},
|
|
2226
2226
|
get fallbackRoot() {
|
|
2227
|
-
return
|
|
2227
|
+
return S;
|
|
2228
2228
|
},
|
|
2229
|
-
set fallbackRoot(
|
|
2230
|
-
|
|
2229
|
+
set fallbackRoot(d) {
|
|
2230
|
+
S = d;
|
|
2231
2231
|
},
|
|
2232
2232
|
get fallbackFormat() {
|
|
2233
2233
|
return T;
|
|
2234
2234
|
},
|
|
2235
|
-
set fallbackFormat(
|
|
2236
|
-
T =
|
|
2235
|
+
set fallbackFormat(d) {
|
|
2236
|
+
T = d, _.fallbackFormat = T;
|
|
2237
2237
|
},
|
|
2238
2238
|
get warnHtmlMessage() {
|
|
2239
2239
|
return N;
|
|
2240
2240
|
},
|
|
2241
|
-
set warnHtmlMessage(
|
|
2242
|
-
N =
|
|
2241
|
+
set warnHtmlMessage(d) {
|
|
2242
|
+
N = d, _.warnHtmlMessage = d;
|
|
2243
2243
|
},
|
|
2244
2244
|
get escapeParameter() {
|
|
2245
2245
|
return E;
|
|
2246
2246
|
},
|
|
2247
|
-
set escapeParameter(
|
|
2248
|
-
E =
|
|
2247
|
+
set escapeParameter(d) {
|
|
2248
|
+
E = d, _.escapeParameter = d;
|
|
2249
2249
|
},
|
|
2250
2250
|
t: Be,
|
|
2251
2251
|
getLocaleMessage: Re,
|
|
@@ -2257,7 +2257,7 @@ function Yo(e = {}) {
|
|
|
2257
2257
|
setMissingHandler: ut,
|
|
2258
2258
|
[Wo]: pt
|
|
2259
2259
|
};
|
|
2260
|
-
return F.datetimeFormats = Ne, F.numberFormats = ot, F.rt = xe, F.te = Et, F.tm = Pe, F.d = it, F.n = ct, F.getDateTimeFormat =
|
|
2260
|
+
return F.datetimeFormats = Ne, F.numberFormats = ot, F.rt = xe, F.te = Et, F.tm = Pe, F.d = it, F.n = ct, F.getDateTimeFormat = gt, F.setDateTimeFormat = s, F.mergeDateTimeFormat = l, F.getNumberFormat = v, F.setNumberFormat = D, F.mergeNumberFormat = q, F[wn] = n, F[Ot] = dt, F[Ct] = _t, F[St] = Ke, F;
|
|
2261
2261
|
}
|
|
2262
2262
|
const Gt = {
|
|
2263
2263
|
tag: {
|
|
@@ -2281,14 +2281,14 @@ function jo({ slots: e }, t) {
|
|
|
2281
2281
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, o) => [
|
|
2282
2282
|
...r,
|
|
2283
2283
|
// prettier-ignore
|
|
2284
|
-
...o.type ===
|
|
2284
|
+
...o.type === _e ? o.children : [o]
|
|
2285
2285
|
], []) : t.reduce((n, r) => {
|
|
2286
2286
|
const o = e[r];
|
|
2287
2287
|
return o && (n[r] = o()), n;
|
|
2288
2288
|
}, H());
|
|
2289
2289
|
}
|
|
2290
2290
|
function Un() {
|
|
2291
|
-
return
|
|
2291
|
+
return _e;
|
|
2292
2292
|
}
|
|
2293
2293
|
te({
|
|
2294
2294
|
keypath: {
|
|
@@ -2301,22 +2301,22 @@ te({
|
|
|
2301
2301
|
}
|
|
2302
2302
|
}, Gt);
|
|
2303
2303
|
function Xo(e) {
|
|
2304
|
-
return z(e) && !
|
|
2304
|
+
return z(e) && !k(e[0]);
|
|
2305
2305
|
}
|
|
2306
2306
|
function Vn(e, t, n, r) {
|
|
2307
2307
|
const { slots: o, attrs: a } = t;
|
|
2308
2308
|
return () => {
|
|
2309
2309
|
const i = { part: !0 };
|
|
2310
2310
|
let m = H();
|
|
2311
|
-
e.locale && (i.locale = e.locale),
|
|
2311
|
+
e.locale && (i.locale = e.locale), k(e.format) ? i.key = e.format : U(e.format) && (k(e.format.key) && (i.key = e.format.key), m = Object.keys(e.format).reduce((p, f) => n.includes(f) ? te(H(), p, { [f]: e.format[f] }) : p, H()));
|
|
2312
2312
|
const c = r(e.value, i, m);
|
|
2313
|
-
let
|
|
2314
|
-
z(c) ?
|
|
2315
|
-
const
|
|
2313
|
+
let y = [i.key];
|
|
2314
|
+
z(c) ? y = c.map((p, f) => {
|
|
2315
|
+
const S = o[p.type], T = S ? S({ [p.type]: p.value, index: f, parts: c }) : [p.value];
|
|
2316
2316
|
return Xo(T) && (T[0].key = `${p.type}-${f}`), T;
|
|
2317
|
-
}) :
|
|
2318
|
-
const h = te(H(), a), O =
|
|
2319
|
-
return hn(O, h,
|
|
2317
|
+
}) : k(c) && (y = [c]);
|
|
2318
|
+
const h = te(H(), a), O = k(e.tag) || U(e.tag) ? e.tag : Un();
|
|
2319
|
+
return hn(O, h, y);
|
|
2320
2320
|
};
|
|
2321
2321
|
}
|
|
2322
2322
|
te({
|
|
@@ -2341,9 +2341,9 @@ const qo = /* @__PURE__ */ Ie("global-vue-i18n");
|
|
|
2341
2341
|
function We(e = {}) {
|
|
2342
2342
|
const t = Dt();
|
|
2343
2343
|
if (t == null)
|
|
2344
|
-
throw $e(
|
|
2344
|
+
throw $e(ke.MUST_BE_CALL_SETUP_TOP);
|
|
2345
2345
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2346
|
-
throw $e(
|
|
2346
|
+
throw $e(ke.NOT_INSTALLED);
|
|
2347
2347
|
const n = Jo(t), r = Zo(n), o = Mn(t), a = Qo(e, o);
|
|
2348
2348
|
if (a === "global")
|
|
2349
2349
|
return Bo(r, e, o), r;
|
|
@@ -2355,14 +2355,14 @@ function We(e = {}) {
|
|
|
2355
2355
|
let m = i.__getInstance(t);
|
|
2356
2356
|
if (m == null) {
|
|
2357
2357
|
const c = te({}, e);
|
|
2358
|
-
"__i18n" in o && (c.__i18n = o.__i18n), r && (c.__root = r), m = Yo(c), i.__composerExtend && (m[
|
|
2358
|
+
"__i18n" in o && (c.__i18n = o.__i18n), r && (c.__root = r), m = Yo(c), i.__composerExtend && (m[kt] = i.__composerExtend(m)), ta(i, t, m), i.__setInstance(t, m);
|
|
2359
2359
|
}
|
|
2360
2360
|
return m;
|
|
2361
2361
|
}
|
|
2362
2362
|
function Jo(e) {
|
|
2363
2363
|
const t = Hn(e.isCE ? qo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2364
2364
|
if (!t)
|
|
2365
|
-
throw $e(e.isCE ?
|
|
2365
|
+
throw $e(e.isCE ? ke.NOT_INSTALLED_WITH_PROVIDE : ke.UNEXPECTED_ERROR);
|
|
2366
2366
|
return t;
|
|
2367
2367
|
}
|
|
2368
2368
|
function Qo(e, t) {
|
|
@@ -2393,18 +2393,18 @@ function ea(e, t = !1) {
|
|
|
2393
2393
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2394
2394
|
}
|
|
2395
2395
|
function ta(e, t, n) {
|
|
2396
|
-
|
|
2396
|
+
vn(() => {
|
|
2397
2397
|
}, t), Wn(() => {
|
|
2398
2398
|
const r = n;
|
|
2399
2399
|
e.__deleteInstance(t);
|
|
2400
|
-
const o = r[
|
|
2401
|
-
o && (o(), delete r[
|
|
2400
|
+
const o = r[kt];
|
|
2401
|
+
o && (o(), delete r[kt]);
|
|
2402
2402
|
}, t);
|
|
2403
2403
|
}
|
|
2404
2404
|
Go();
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2405
|
+
go(Zr);
|
|
2406
|
+
bo(po);
|
|
2407
|
+
vo(Nn);
|
|
2408
2408
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2409
2409
|
const e = Te();
|
|
2410
2410
|
e.__INTLIFY__ = !0, zr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
@@ -2496,8 +2496,8 @@ function aa() {
|
|
|
2496
2496
|
}
|
|
2497
2497
|
function Xa(e = {}) {
|
|
2498
2498
|
const t = W(() => {
|
|
2499
|
-
var c,
|
|
2500
|
-
const i = ((c = e.menuItems) == null ? void 0 : c.value) || [], m = ((
|
|
2499
|
+
var c, y;
|
|
2500
|
+
const i = ((c = e.menuItems) == null ? void 0 : c.value) || [], m = ((y = e.categories) == null ? void 0 : y.value) || [];
|
|
2501
2501
|
return [
|
|
2502
2502
|
{
|
|
2503
2503
|
type: "string",
|
|
@@ -2535,8 +2535,8 @@ function Xa(e = {}) {
|
|
|
2535
2535
|
const m = Kt.cloneDeep(i);
|
|
2536
2536
|
return m != null && m.rules && (m.rules = m.rules.map((c) => {
|
|
2537
2537
|
if ("property" in c && c.property === "category" && Array.isArray(c.value)) {
|
|
2538
|
-
const
|
|
2539
|
-
return { ...c, value:
|
|
2538
|
+
const y = c.value.map((h) => r.value[h]);
|
|
2539
|
+
return { ...c, value: y };
|
|
2540
2540
|
}
|
|
2541
2541
|
return c;
|
|
2542
2542
|
})), m;
|
|
@@ -2545,8 +2545,8 @@ function Xa(e = {}) {
|
|
|
2545
2545
|
const m = Kt.cloneDeep(i);
|
|
2546
2546
|
return m != null && m.rules && (m.rules = m.rules.map((c) => {
|
|
2547
2547
|
if ("property" in c && c.property === "category" && Array.isArray(c.value)) {
|
|
2548
|
-
const
|
|
2549
|
-
return { ...c, value:
|
|
2548
|
+
const y = c.value.map((h) => n.value[h]);
|
|
2549
|
+
return { ...c, value: y };
|
|
2550
2550
|
}
|
|
2551
2551
|
return c;
|
|
2552
2552
|
})), m;
|
|
@@ -2565,7 +2565,7 @@ const sa = {
|
|
|
2565
2565
|
class: "break-all fm-typo-en-body-lg-400 line-clamp-1"
|
|
2566
2566
|
}, ia = {
|
|
2567
2567
|
class: "flex"
|
|
2568
|
-
},
|
|
2568
|
+
}, bn = /* @__PURE__ */ ie({
|
|
2569
2569
|
__name: "RuleConditionSelector",
|
|
2570
2570
|
props: {
|
|
2571
2571
|
ruleKey: {
|
|
@@ -2605,38 +2605,38 @@ const sa = {
|
|
|
2605
2605
|
} = xt({
|
|
2606
2606
|
valueSource: W(() => a.state.menu.modules.item || []),
|
|
2607
2607
|
entity: "item"
|
|
2608
|
-
}), c = oa(),
|
|
2609
|
-
label:
|
|
2610
|
-
value: `restaurant_attr_${
|
|
2611
|
-
})), ...i.value.map((
|
|
2612
|
-
label: `Restaurant ${
|
|
2613
|
-
value: `restaurant_custom_${
|
|
2614
|
-
})), ...
|
|
2615
|
-
label:
|
|
2616
|
-
value: `item_attr_${
|
|
2617
|
-
})), ...m.value.map((
|
|
2618
|
-
label: `Product ${
|
|
2619
|
-
value: `item_custom_${
|
|
2608
|
+
}), c = oa(), y = aa(), h = oe(r.ruleKey), O = W(() => [...c.map((_) => ({
|
|
2609
|
+
label: _.label,
|
|
2610
|
+
value: `restaurant_attr_${_.value}`
|
|
2611
|
+
})), ...i.value.map((_) => ({
|
|
2612
|
+
label: `Restaurant ${_.key}`,
|
|
2613
|
+
value: `restaurant_custom_${_.key}`
|
|
2614
|
+
})), ...y.map((_) => ({
|
|
2615
|
+
label: _.label,
|
|
2616
|
+
value: `item_attr_${_.value}`
|
|
2617
|
+
})), ...m.value.map((_) => ({
|
|
2618
|
+
label: `Product ${_.key}`,
|
|
2619
|
+
value: `item_custom_${_.key}`
|
|
2620
2620
|
}))]), p = oe(r.values), f = W(() => {
|
|
2621
|
-
const
|
|
2622
|
-
if (!
|
|
2623
|
-
if (
|
|
2624
|
-
const L =
|
|
2621
|
+
const _ = h.value;
|
|
2622
|
+
if (!_) return [];
|
|
2623
|
+
if (_.startsWith("restaurant_attr_")) {
|
|
2624
|
+
const L = _.replace("restaurant_attr_", ""), P = c.find((w) => w.value === L);
|
|
2625
2625
|
if (P && Array.isArray(P.options))
|
|
2626
2626
|
return P.options;
|
|
2627
|
-
} else if (
|
|
2628
|
-
const L =
|
|
2627
|
+
} else if (_.startsWith("restaurant_custom_")) {
|
|
2628
|
+
const L = _.replace("restaurant_custom_", ""), P = i.value.find((w) => w.key === L);
|
|
2629
2629
|
if (P && Array.isArray(P.values))
|
|
2630
2630
|
return P.values.map((w) => ({
|
|
2631
2631
|
label: w,
|
|
2632
2632
|
value: w
|
|
2633
2633
|
}));
|
|
2634
|
-
} else if (
|
|
2635
|
-
const L =
|
|
2634
|
+
} else if (_.startsWith("item_attr_")) {
|
|
2635
|
+
const L = _.replace("item_attr_", ""), P = y.find((w) => w.value === L);
|
|
2636
2636
|
if (P && Array.isArray(P.options))
|
|
2637
2637
|
return P.options;
|
|
2638
|
-
} else if (
|
|
2639
|
-
const L =
|
|
2638
|
+
} else if (_.startsWith("item_custom_")) {
|
|
2639
|
+
const L = _.replace("item_custom_", ""), P = m.value.find((w) => w.key === L);
|
|
2640
2640
|
if (P && Array.isArray(P.values))
|
|
2641
2641
|
return P.values.map((w) => ({
|
|
2642
2642
|
label: w,
|
|
@@ -2644,7 +2644,7 @@ const sa = {
|
|
|
2644
2644
|
}));
|
|
2645
2645
|
}
|
|
2646
2646
|
return [];
|
|
2647
|
-
}),
|
|
2647
|
+
}), S = oe(r.operator), T = [{
|
|
2648
2648
|
label: n("menu.rule_groups.condition_view.operator.in"),
|
|
2649
2649
|
value: "$in"
|
|
2650
2650
|
}, {
|
|
@@ -2653,10 +2653,10 @@ const sa = {
|
|
|
2653
2653
|
}, {
|
|
2654
2654
|
label: n("menu.rule_groups.condition_view.operator.starts_with"),
|
|
2655
2655
|
value: "$startsWith"
|
|
2656
|
-
}],
|
|
2657
|
-
const
|
|
2656
|
+
}], g = oe(""), u = oe(!1), b = W(() => {
|
|
2657
|
+
const _ = f.value, L = Array.isArray(p.value) ? p.value : [], P = L.map((B) => _.find((C) => C.value === B)).filter(Boolean);
|
|
2658
2658
|
let w = [];
|
|
2659
|
-
if (
|
|
2659
|
+
if (g.value ? w = _.filter((B) => B.label.toLowerCase().includes(g.value.toLowerCase()) && !L.includes(B.value)) : w = _.filter((B) => !L.includes(B.value)), u.value) {
|
|
2660
2660
|
const B = P.map((C) => ({
|
|
2661
2661
|
...C,
|
|
2662
2662
|
disabled: !0
|
|
@@ -2665,29 +2665,29 @@ const sa = {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
return [...P, ...w];
|
|
2667
2667
|
}), N = W(() => {
|
|
2668
|
-
let
|
|
2669
|
-
return
|
|
2668
|
+
let _ = O.value;
|
|
2669
|
+
return _ = _.filter((L) => !r.selectedKeys.includes(L.value) || L.value === h.value), g.value ? _.filter((L) => L.label.toLowerCase().includes(g.value.toLowerCase())) : _;
|
|
2670
2670
|
});
|
|
2671
|
-
Ze(() => h.value, (
|
|
2671
|
+
Ze(() => h.value, (_) => {
|
|
2672
2672
|
p.value = [];
|
|
2673
2673
|
});
|
|
2674
|
-
function E(
|
|
2675
|
-
if (
|
|
2676
|
-
const L =
|
|
2674
|
+
function E(_) {
|
|
2675
|
+
if (_.startsWith("restaurant_custom_")) {
|
|
2676
|
+
const L = _.replace("restaurant_custom_", ""), P = i.value.find((w) => w.key === L);
|
|
2677
2677
|
return (P == null ? void 0 : P.type) || "string";
|
|
2678
|
-
} else if (
|
|
2679
|
-
const L =
|
|
2678
|
+
} else if (_.startsWith("item_custom_")) {
|
|
2679
|
+
const L = _.replace("item_custom_", ""), P = m.value.find((w) => w.key === L);
|
|
2680
2680
|
return (P == null ? void 0 : P.type) || "string";
|
|
2681
2681
|
}
|
|
2682
2682
|
return "string";
|
|
2683
2683
|
}
|
|
2684
|
-
function R(
|
|
2685
|
-
const P = E(
|
|
2686
|
-
switch (
|
|
2684
|
+
function R(_, L) {
|
|
2685
|
+
const P = E(_ === "ruleKey" ? L : h.value);
|
|
2686
|
+
switch (_) {
|
|
2687
2687
|
case "ruleKey":
|
|
2688
2688
|
o("update:modelValue", {
|
|
2689
2689
|
ruleKey: L,
|
|
2690
|
-
operator:
|
|
2690
|
+
operator: S.value,
|
|
2691
2691
|
values: p.value,
|
|
2692
2692
|
uniqueKey: r.uniqueKey,
|
|
2693
2693
|
type: P,
|
|
@@ -2707,7 +2707,7 @@ const sa = {
|
|
|
2707
2707
|
case "ruleValues":
|
|
2708
2708
|
o("update:modelValue", {
|
|
2709
2709
|
ruleKey: h.value,
|
|
2710
|
-
operator:
|
|
2710
|
+
operator: S.value,
|
|
2711
2711
|
values: L,
|
|
2712
2712
|
uniqueKey: r.uniqueKey,
|
|
2713
2713
|
type: P,
|
|
@@ -2725,7 +2725,7 @@ const sa = {
|
|
|
2725
2725
|
action: "delete"
|
|
2726
2726
|
});
|
|
2727
2727
|
}
|
|
2728
|
-
return (
|
|
2728
|
+
return (_, L) => {
|
|
2729
2729
|
const P = pe("FmSearch"), w = pe("FmSelect"), B = pe("FmButton");
|
|
2730
2730
|
return x(), j("div", sa, [V("div", la, [X(w, {
|
|
2731
2731
|
class: "flex w-full",
|
|
@@ -2737,15 +2737,15 @@ const sa = {
|
|
|
2737
2737
|
}, {
|
|
2738
2738
|
"prepend-menu": ae(() => [X(P, {
|
|
2739
2739
|
class: "px-8",
|
|
2740
|
-
modelValue:
|
|
2741
|
-
"onUpdate:modelValue": L[0] || (L[0] = (C) =>
|
|
2740
|
+
modelValue: g.value,
|
|
2741
|
+
"onUpdate:modelValue": L[0] || (L[0] = (C) => g.value = C),
|
|
2742
2742
|
placeholder: K(n)("common.filter")
|
|
2743
2743
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
2744
2744
|
_: 1
|
|
2745
2745
|
}, 8, ["modelValue", "items", "placeholder"]), X(w, {
|
|
2746
2746
|
class: "flex w-full",
|
|
2747
|
-
modelValue:
|
|
2748
|
-
"onUpdate:modelValue": [L[3] || (L[3] = (C) =>
|
|
2747
|
+
modelValue: S.value,
|
|
2748
|
+
"onUpdate:modelValue": [L[3] || (L[3] = (C) => S.value = C), L[4] || (L[4] = (C) => R("operator", C))],
|
|
2749
2749
|
placeholder: K(n)("menu.rule_groups.condition_view.select_item"),
|
|
2750
2750
|
items: T,
|
|
2751
2751
|
rules: [(C) => h.value && !C ? K(n)("menu.rule_groups.condition_view.required") : !0]
|
|
@@ -2755,7 +2755,7 @@ const sa = {
|
|
|
2755
2755
|
}]),
|
|
2756
2756
|
modelValue: p.value,
|
|
2757
2757
|
"onUpdate:modelValue": [L[7] || (L[7] = (C) => p.value = C), L[8] || (L[8] = (C) => R("ruleValues", C))],
|
|
2758
|
-
items:
|
|
2758
|
+
items: b.value,
|
|
2759
2759
|
placeholder: K(n)("menu.rule_groups.condition_view.select_item"),
|
|
2760
2760
|
multiselect: "",
|
|
2761
2761
|
"hide-chips": "",
|
|
@@ -2765,8 +2765,8 @@ const sa = {
|
|
|
2765
2765
|
default: ae(() => [V("div", ua, Z(p.value.join(", ")), 1)]),
|
|
2766
2766
|
"prepend-menu": ae(() => [V("div", ia, [X(P, {
|
|
2767
2767
|
class: "px-8",
|
|
2768
|
-
modelValue:
|
|
2769
|
-
"onUpdate:modelValue": L[5] || (L[5] = (C) =>
|
|
2768
|
+
modelValue: g.value,
|
|
2769
|
+
"onUpdate:modelValue": L[5] || (L[5] = (C) => g.value = C),
|
|
2770
2770
|
placeholder: K(n)("common.filter")
|
|
2771
2771
|
}, null, 8, ["modelValue", "placeholder"]), X(B, {
|
|
2772
2772
|
variant: K(he).Tertiary,
|
|
@@ -2789,7 +2789,7 @@ const sa = {
|
|
|
2789
2789
|
class: "fm-typo-en-body-lg-600"
|
|
2790
2790
|
}, fa = {
|
|
2791
2791
|
class: "flex flex-col gap-16"
|
|
2792
|
-
},
|
|
2792
|
+
}, da = /* @__PURE__ */ ie({
|
|
2793
2793
|
__name: "RuleCondition",
|
|
2794
2794
|
props: {
|
|
2795
2795
|
modelValue: {}
|
|
@@ -2812,7 +2812,7 @@ const sa = {
|
|
|
2812
2812
|
}), c = W(() => {
|
|
2813
2813
|
var f;
|
|
2814
2814
|
return ((f = r.modelValue.itemRule) == null ? void 0 : f.itemCustomAttributes) ?? {};
|
|
2815
|
-
}),
|
|
2815
|
+
}), y = oe([...(a.value.rules ?? []).map((f) => ({
|
|
2816
2816
|
...f,
|
|
2817
2817
|
id: crypto.randomUUID(),
|
|
2818
2818
|
property: `restaurant_attr_${f.property}`
|
|
@@ -2829,22 +2829,22 @@ const sa = {
|
|
|
2829
2829
|
id: crypto.randomUUID(),
|
|
2830
2830
|
property: `item_custom_${f.property}`
|
|
2831
2831
|
}))]);
|
|
2832
|
-
|
|
2833
|
-
|
|
2832
|
+
vn(() => {
|
|
2833
|
+
y.value.length === 0 && p();
|
|
2834
2834
|
});
|
|
2835
2835
|
const h = oe([]);
|
|
2836
2836
|
function O(f) {
|
|
2837
|
-
const
|
|
2837
|
+
const S = f.uniqueKey.split("_"), T = S[0] === "newCondition";
|
|
2838
2838
|
if (f.action === "delete")
|
|
2839
2839
|
if (T)
|
|
2840
|
-
h.value = h.value.filter((
|
|
2840
|
+
h.value = h.value.filter((g) => g.key !== f.uniqueKey);
|
|
2841
2841
|
else {
|
|
2842
|
-
const
|
|
2843
|
-
|
|
2842
|
+
const g = S.slice(1).join("_");
|
|
2843
|
+
y.value = y.value.filter((u) => u.id !== g);
|
|
2844
2844
|
}
|
|
2845
2845
|
else if (f.action === "update")
|
|
2846
2846
|
if (T)
|
|
2847
|
-
h.value = h.value.filter((
|
|
2847
|
+
h.value = h.value.filter((g) => g.key !== f.uniqueKey), y.value.push({
|
|
2848
2848
|
id: crypto.randomUUID(),
|
|
2849
2849
|
property: f.ruleKey,
|
|
2850
2850
|
operator: f.operator,
|
|
@@ -2852,9 +2852,9 @@ const sa = {
|
|
|
2852
2852
|
type: f.type
|
|
2853
2853
|
});
|
|
2854
2854
|
else {
|
|
2855
|
-
const
|
|
2856
|
-
u !== -1 && (
|
|
2857
|
-
id:
|
|
2855
|
+
const g = S.slice(1).join("_"), u = y.value.findIndex((b) => b.id === g);
|
|
2856
|
+
u !== -1 && (y.value[u] = {
|
|
2857
|
+
id: g,
|
|
2858
2858
|
// Keep the same ID
|
|
2859
2859
|
property: f.ruleKey,
|
|
2860
2860
|
operator: f.operator,
|
|
@@ -2862,48 +2862,48 @@ const sa = {
|
|
|
2862
2862
|
type: f.type
|
|
2863
2863
|
});
|
|
2864
2864
|
}
|
|
2865
|
-
o("update:modelValue",
|
|
2865
|
+
o("update:modelValue", y.value);
|
|
2866
2866
|
}
|
|
2867
2867
|
function p() {
|
|
2868
2868
|
h.value.push({
|
|
2869
2869
|
key: `newCondition_${h.value.length}`
|
|
2870
2870
|
});
|
|
2871
2871
|
}
|
|
2872
|
-
return Ze(() =>
|
|
2872
|
+
return Ze(() => y.value.length + h.value.length, (f) => {
|
|
2873
2873
|
f === 0 && p();
|
|
2874
|
-
}), (f,
|
|
2874
|
+
}), (f, S) => {
|
|
2875
2875
|
const T = pe("FmButton");
|
|
2876
|
-
return x(), j("div", ca, [V("p", ma, Z(K(n)("menu.rule_groups.condition_view.condition")), 1), V("div", fa, [(x(!0), j(
|
|
2877
|
-
key:
|
|
2878
|
-
}, [X(
|
|
2879
|
-
ruleKey:
|
|
2880
|
-
operator:
|
|
2881
|
-
values:
|
|
2882
|
-
"unique-key": `condition_${
|
|
2883
|
-
"selected-keys":
|
|
2884
|
-
"onUpdate:modelValue":
|
|
2876
|
+
return x(), j("div", ca, [V("p", ma, Z(K(n)("menu.rule_groups.condition_view.condition")), 1), V("div", fa, [(x(!0), j(_e, null, Me(y.value, (g) => (x(), j("div", {
|
|
2877
|
+
key: g.id
|
|
2878
|
+
}, [X(bn, {
|
|
2879
|
+
ruleKey: g.property,
|
|
2880
|
+
operator: g.operator,
|
|
2881
|
+
values: g.value,
|
|
2882
|
+
"unique-key": `condition_${g.id}`,
|
|
2883
|
+
"selected-keys": y.value.map((u) => u.property),
|
|
2884
|
+
"onUpdate:modelValue": S[0] || (S[0] = (u) => {
|
|
2885
2885
|
O(u);
|
|
2886
2886
|
})
|
|
2887
|
-
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (x(!0), j(
|
|
2888
|
-
key:
|
|
2889
|
-
}, [X(
|
|
2887
|
+
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (x(!0), j(_e, null, Me(h.value, (g) => (x(), j("div", {
|
|
2888
|
+
key: g.key
|
|
2889
|
+
}, [X(bn, {
|
|
2890
2890
|
ruleKey: "",
|
|
2891
2891
|
operator: "",
|
|
2892
|
-
"unique-key":
|
|
2892
|
+
"unique-key": g.key,
|
|
2893
2893
|
values: [],
|
|
2894
|
-
"selected-keys":
|
|
2895
|
-
"onUpdate:modelValue":
|
|
2894
|
+
"selected-keys": y.value.map((u) => u.property),
|
|
2895
|
+
"onUpdate:modelValue": S[1] || (S[1] = (u) => {
|
|
2896
2896
|
O(u);
|
|
2897
2897
|
})
|
|
2898
2898
|
}, null, 8, ["unique-key", "selected-keys"])]))), 128)), X(T, {
|
|
2899
2899
|
variant: K(he).Plain,
|
|
2900
2900
|
"prepend-icon": "add",
|
|
2901
2901
|
label: K(n)("menu.rule_groups.condition_view.add_condition"),
|
|
2902
|
-
onClick:
|
|
2902
|
+
onClick: S[2] || (S[2] = se((g) => p(), ["stop"]))
|
|
2903
2903
|
}, null, 8, ["variant", "label"])])]);
|
|
2904
2904
|
};
|
|
2905
2905
|
}
|
|
2906
|
-
}),
|
|
2906
|
+
}), _a = { class: "flex w-full items-center space-x-8" }, pa = { class: "w-24" }, Ea = { class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden" }, ya = { class: "whitespace-nowrap" }, ga = { class: "fm-typo-en-body-lg-600 whitespace-nowrap" }, ba = /* @__PURE__ */ ie({
|
|
2907
2907
|
__name: "RuleConditionListView",
|
|
2908
2908
|
props: {
|
|
2909
2909
|
number: {
|
|
@@ -2947,11 +2947,11 @@ const sa = {
|
|
|
2947
2947
|
};
|
|
2948
2948
|
return (o, a) => {
|
|
2949
2949
|
const i = pe("FmMenu");
|
|
2950
|
-
return x(), j("div",
|
|
2950
|
+
return x(), j("div", _a, [
|
|
2951
2951
|
V("p", pa, Z(e.number) + ".", 1),
|
|
2952
2952
|
V("div", Ea, [
|
|
2953
|
-
V("p",
|
|
2954
|
-
V("p",
|
|
2953
|
+
V("p", ya, Z(e.property), 1),
|
|
2954
|
+
V("p", ga, Z(r[e.operator]), 1),
|
|
2955
2955
|
X(i, {
|
|
2956
2956
|
trigger: "hover",
|
|
2957
2957
|
closeOnMouseLeave: ""
|
|
@@ -2964,7 +2964,7 @@ const sa = {
|
|
|
2964
2964
|
}, Z(e.value.join(", ")), 513)
|
|
2965
2965
|
]),
|
|
2966
2966
|
default: ae(() => [
|
|
2967
|
-
(x(!0), j(
|
|
2967
|
+
(x(!0), j(_e, null, Me(e.value, (m) => (x(), j("div", {
|
|
2968
2968
|
key: m,
|
|
2969
2969
|
class: "flex flex-col px-8 space-y-8"
|
|
2970
2970
|
}, [
|
|
@@ -2984,7 +2984,7 @@ function qa(e) {
|
|
|
2984
2984
|
function Ja(e) {
|
|
2985
2985
|
return Xn(e) ? null : Kn.build(e);
|
|
2986
2986
|
}
|
|
2987
|
-
const
|
|
2987
|
+
const va = {
|
|
2988
2988
|
class: "flex items-center gap-24"
|
|
2989
2989
|
}, ha = {
|
|
2990
2990
|
key: 0,
|
|
@@ -3019,7 +3019,7 @@ const ba = {
|
|
|
3019
3019
|
const c = W(() => {
|
|
3020
3020
|
var T;
|
|
3021
3021
|
return ((T = i.modelValue.restaurantRule) == null ? void 0 : T.restaurantAttributes) ?? {};
|
|
3022
|
-
}),
|
|
3022
|
+
}), y = W(() => {
|
|
3023
3023
|
var T;
|
|
3024
3024
|
return ((T = i.modelValue.restaurantRule) == null ? void 0 : T.restaurantCustomAttributes) ?? {};
|
|
3025
3025
|
}), h = W(() => {
|
|
@@ -3028,16 +3028,16 @@ const ba = {
|
|
|
3028
3028
|
}), O = W(() => {
|
|
3029
3029
|
var T;
|
|
3030
3030
|
return ((T = i.modelValue.itemRule) == null ? void 0 : T.itemCustomAttributes) ?? {};
|
|
3031
|
-
}), p = oe([...c.value.rules ?? [], ...
|
|
3032
|
-
function
|
|
3033
|
-
var E, R, A,
|
|
3034
|
-
const T = i.modelValue,
|
|
3031
|
+
}), p = oe([...c.value.rules ?? [], ...y.value.rules ?? [], ...h.value.rules ?? [], ...O.value.rules ?? []]), f = oe([]);
|
|
3032
|
+
function S() {
|
|
3033
|
+
var E, R, A, _, L, P, w, B;
|
|
3034
|
+
const T = i.modelValue, g = [], u = [], b = [], N = [];
|
|
3035
3035
|
if (f.value.length === 0) {
|
|
3036
3036
|
a(!1);
|
|
3037
3037
|
return;
|
|
3038
3038
|
}
|
|
3039
3039
|
f.value.forEach((C) => {
|
|
3040
|
-
C.property.startsWith("restaurant_attr") ?
|
|
3040
|
+
C.property.startsWith("restaurant_attr") ? g.push({
|
|
3041
3041
|
property: C.property.replace("restaurant_attr_", ""),
|
|
3042
3042
|
operator: C.operator,
|
|
3043
3043
|
value: C.value,
|
|
@@ -3047,7 +3047,7 @@ const ba = {
|
|
|
3047
3047
|
operator: C.operator,
|
|
3048
3048
|
value: C.value,
|
|
3049
3049
|
type: C.type
|
|
3050
|
-
}) : C.property.startsWith("item_attr") ?
|
|
3050
|
+
}) : C.property.startsWith("item_attr") ? b.push({
|
|
3051
3051
|
property: C.property.replace("item_attr_", ""),
|
|
3052
3052
|
operator: C.operator,
|
|
3053
3053
|
value: C.value,
|
|
@@ -3061,16 +3061,16 @@ const ba = {
|
|
|
3061
3061
|
}), T.restaurantRule = {
|
|
3062
3062
|
restaurantAttributes: {
|
|
3063
3063
|
logic: ((R = (E = T.restaurantRule) == null ? void 0 : E.restaurantAttributes) == null ? void 0 : R.logic) ?? "AND",
|
|
3064
|
-
rules:
|
|
3064
|
+
rules: g
|
|
3065
3065
|
},
|
|
3066
3066
|
restaurantCustomAttributes: {
|
|
3067
|
-
logic: ((
|
|
3067
|
+
logic: ((_ = (A = T.restaurantRule) == null ? void 0 : A.restaurantCustomAttributes) == null ? void 0 : _.logic) ?? "AND",
|
|
3068
3068
|
rules: u
|
|
3069
3069
|
}
|
|
3070
3070
|
}, T.itemRule = {
|
|
3071
3071
|
itemAttributes: {
|
|
3072
3072
|
logic: ((P = (L = T.itemRule) == null ? void 0 : L.itemAttributes) == null ? void 0 : P.logic) ?? "AND",
|
|
3073
|
-
rules:
|
|
3073
|
+
rules: b
|
|
3074
3074
|
},
|
|
3075
3075
|
itemCustomAttributes: {
|
|
3076
3076
|
logic: ((B = (w = T.itemRule) == null ? void 0 : w.itemCustomAttributes) == null ? void 0 : B.logic) ?? "AND",
|
|
@@ -3080,25 +3080,25 @@ const ba = {
|
|
|
3080
3080
|
menuRule: T
|
|
3081
3081
|
});
|
|
3082
3082
|
}
|
|
3083
|
-
return (T,
|
|
3084
|
-
const u = pe("FmButton"),
|
|
3085
|
-
return x(), j(
|
|
3083
|
+
return (T, g) => {
|
|
3084
|
+
const u = pe("FmButton"), b = pe("FmSideSheet");
|
|
3085
|
+
return x(), j(_e, null, [Qe(T.$slots, "default", {
|
|
3086
3086
|
trigger: a
|
|
3087
|
-
}), X(
|
|
3087
|
+
}), X(b, {
|
|
3088
3088
|
modelValue: o.value,
|
|
3089
|
-
"onUpdate:modelValue":
|
|
3089
|
+
"onUpdate:modelValue": g[3] || (g[3] = (N) => o.value = N),
|
|
3090
3090
|
"max-width": 760,
|
|
3091
3091
|
"close-button": !1,
|
|
3092
3092
|
"is-container": K(qn).FmForm,
|
|
3093
3093
|
"is-container-props": {
|
|
3094
|
-
onValidationSuccess:
|
|
3094
|
+
onValidationSuccess: S,
|
|
3095
3095
|
blameFormChildOnValidationFailed: !0
|
|
3096
3096
|
}
|
|
3097
3097
|
}, {
|
|
3098
|
-
"side-sheet-header": ae(() => [V("div",
|
|
3098
|
+
"side-sheet-header": ae(() => [V("div", va, [X(u, {
|
|
3099
3099
|
variant: K(he).Tertiary,
|
|
3100
3100
|
"prepend-icon": "arrow_back",
|
|
3101
|
-
onClick:
|
|
3101
|
+
onClick: g[0] || (g[0] = se((N) => a(), ["stop"]))
|
|
3102
3102
|
}, null, 8, ["variant"]), T.isEditMode && p.value.length > 0 ? (x(), j("div", ha, Z(K(r)("menu.rule_groups.condition_view.edit_condition")), 1)) : (x(), j("div", Ta, Z(K(r)("menu.rule_groups.condition_view.add_condition")), 1))])]),
|
|
3103
3103
|
"side-sheet-footer": ae(() => [V("div", Ia, [X(u, {
|
|
3104
3104
|
variant: "primary",
|
|
@@ -3107,12 +3107,12 @@ const ba = {
|
|
|
3107
3107
|
}, null, 8, ["label"]), X(u, {
|
|
3108
3108
|
variant: "secondary",
|
|
3109
3109
|
label: K(r)("common.cancel"),
|
|
3110
|
-
onClick:
|
|
3110
|
+
onClick: g[2] || (g[2] = se((N) => a(!1), ["stop"]))
|
|
3111
3111
|
}, null, 8, ["label"])])]),
|
|
3112
|
-
default: ae(() => [X(
|
|
3112
|
+
default: ae(() => [X(da, {
|
|
3113
3113
|
class: "p-16",
|
|
3114
3114
|
"model-value": T.modelValue,
|
|
3115
|
-
"onUpdate:modelValue":
|
|
3115
|
+
"onUpdate:modelValue": g[1] || (g[1] = (N) => {
|
|
3116
3116
|
f.value = N;
|
|
3117
3117
|
})
|
|
3118
3118
|
}, null, 8, ["model-value"])]),
|
|
@@ -3131,9 +3131,9 @@ const ba = {
|
|
|
3131
3131
|
class: "flex flex-col space-y-8"
|
|
3132
3132
|
}, Ca = {
|
|
3133
3133
|
class: "fm-typo-en-body-lg-600"
|
|
3134
|
-
}, ka = {
|
|
3135
|
-
class: "flex items-center space-x-8"
|
|
3136
3134
|
}, Sa = {
|
|
3135
|
+
class: "flex items-center space-x-8"
|
|
3136
|
+
}, ka = {
|
|
3137
3137
|
class: "w-24"
|
|
3138
3138
|
}, Pa = {
|
|
3139
3139
|
class: "flex break-all fm-typo-en-body-lg-400 line-clamp-1 space-x-8"
|
|
@@ -3180,16 +3180,16 @@ const ba = {
|
|
|
3180
3180
|
const {
|
|
3181
3181
|
t: n
|
|
3182
3182
|
} = We(), r = e, o = {
|
|
3183
|
-
[
|
|
3184
|
-
[
|
|
3185
|
-
[
|
|
3183
|
+
[bt.enum.ALL]: "ALL",
|
|
3184
|
+
[bt.enum.POS_ONLY]: "POS ONLY",
|
|
3185
|
+
[bt.enum.NONE]: "NONE"
|
|
3186
3186
|
}, a = t, i = oe(), m = W(() => {
|
|
3187
3187
|
var p, f;
|
|
3188
3188
|
return ((f = (p = r.modelValue.restaurantRule) == null ? void 0 : p.restaurantAttributes) == null ? void 0 : f.rules) ?? [];
|
|
3189
3189
|
}), c = W(() => {
|
|
3190
3190
|
var p, f;
|
|
3191
3191
|
return ((f = (p = r.modelValue.restaurantRule) == null ? void 0 : p.restaurantCustomAttributes) == null ? void 0 : f.rules) ?? [];
|
|
3192
|
-
}),
|
|
3192
|
+
}), y = W(() => {
|
|
3193
3193
|
var p, f;
|
|
3194
3194
|
return ((f = (p = r.modelValue.itemRule) == null ? void 0 : p.itemAttributes) == null ? void 0 : f.rules) ?? [];
|
|
3195
3195
|
}), h = W(() => {
|
|
@@ -3201,7 +3201,7 @@ const ba = {
|
|
|
3201
3201
|
})), ...c.value.map((p) => ({
|
|
3202
3202
|
...p,
|
|
3203
3203
|
property: `${n("menu.catalog.usage.restaurant")} ${p.property}`
|
|
3204
|
-
})), ...
|
|
3204
|
+
})), ...y.value.map((p) => ({
|
|
3205
3205
|
...p,
|
|
3206
3206
|
property: `${n("menu.product.title")} ${p.property}`
|
|
3207
3207
|
})), ...h.value.map((p) => ({
|
|
@@ -3209,71 +3209,71 @@ const ba = {
|
|
|
3209
3209
|
property: `${n("menu.product.title")} ${p.property}`
|
|
3210
3210
|
}))]);
|
|
3211
3211
|
return (p, f) => {
|
|
3212
|
-
const
|
|
3213
|
-
return x(), j(
|
|
3212
|
+
const S = pe("FmButton"), T = pe("FmMenu");
|
|
3213
|
+
return x(), j(_e, null, [V("div", Ra, [e.title ? (x(), j("p", Aa, Z(e.title), 1)) : Fe("", !0), V("div", La, [e.isCatalogLinkItemRuleView ? (x(), Bt(S, {
|
|
3214
3214
|
key: 1,
|
|
3215
3215
|
variant: K(he).Tertiary,
|
|
3216
3216
|
class: "cursor-pointer",
|
|
3217
3217
|
"prepend-icon": "edit",
|
|
3218
3218
|
"text-color": " text-fm-color-primary",
|
|
3219
|
-
onClick: f[1] || (f[1] = se((
|
|
3219
|
+
onClick: f[1] || (f[1] = se((g) => e.isCatalogLinkItemRuleView ? p.$emit("open-catalog-link-item-rule-form") : null, ["stop"]))
|
|
3220
3220
|
}, null, 8, ["variant"])) : (x(), Bt(Na, {
|
|
3221
3221
|
key: 0,
|
|
3222
3222
|
ref_key: "ruleFormRef",
|
|
3223
3223
|
ref: i,
|
|
3224
3224
|
"model-value": r.modelValue,
|
|
3225
3225
|
"is-edit-mode": !0,
|
|
3226
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
3227
|
-
a("update:model-value",
|
|
3226
|
+
"onUpdate:modelValue": f[0] || (f[0] = (g) => {
|
|
3227
|
+
a("update:model-value", g);
|
|
3228
3228
|
})
|
|
3229
3229
|
}, {
|
|
3230
3230
|
default: ae(({
|
|
3231
|
-
trigger:
|
|
3232
|
-
}) => [X(
|
|
3231
|
+
trigger: g
|
|
3232
|
+
}) => [X(S, {
|
|
3233
3233
|
variant: K(he).Tertiary,
|
|
3234
3234
|
class: "cursor-pointer",
|
|
3235
3235
|
"prepend-icon": "edit",
|
|
3236
3236
|
"text-color": " text-fm-color-primary",
|
|
3237
|
-
onClick: se((u) =>
|
|
3237
|
+
onClick: se((u) => g(), ["stop"])
|
|
3238
3238
|
}, null, 8, ["variant", "onClick"])]),
|
|
3239
3239
|
_: 1
|
|
3240
|
-
}, 8, ["model-value"])), X(
|
|
3240
|
+
}, 8, ["model-value"])), X(S, {
|
|
3241
3241
|
variant: K(he).Tertiary,
|
|
3242
3242
|
class: "cursor-pointer",
|
|
3243
3243
|
"prepend-icon": "file_copy",
|
|
3244
3244
|
"text-color": " text-fm-color-primary",
|
|
3245
|
-
onClick: f[2] || (f[2] = se((
|
|
3246
|
-
}, null, 8, ["variant"]), X(
|
|
3245
|
+
onClick: f[2] || (f[2] = se((g) => p.$emit("copy-rule", r.modelValue._id), ["stop"]))
|
|
3246
|
+
}, null, 8, ["variant"]), X(S, {
|
|
3247
3247
|
variant: K(he).Tertiary,
|
|
3248
3248
|
class: "cursor-pointer",
|
|
3249
3249
|
"prepend-icon": "delete",
|
|
3250
3250
|
"text-color": " text-fm-color-typo-error",
|
|
3251
3251
|
onClick: f[3] || (f[3] = se(() => a("delete-rule", r.modelValue._id), ["stop"]))
|
|
3252
|
-
}, null, 8, ["variant"])])]), V("div", Oa, [V("p", Ca, Z(K(n)("menu.rule_groups.condition_view.when")), 1), e.ruleGroupNames ? (x(!0), j(
|
|
3252
|
+
}, null, 8, ["variant"])])]), V("div", Oa, [V("p", Ca, Z(K(n)("menu.rule_groups.condition_view.when")), 1), e.ruleGroupNames ? (x(!0), j(_e, {
|
|
3253
3253
|
key: 0
|
|
3254
|
-
}, Me(e.ruleGroupNames, (
|
|
3255
|
-
key:
|
|
3256
|
-
}, [V("div",
|
|
3254
|
+
}, Me(e.ruleGroupNames, (g, u) => (x(), j("div", {
|
|
3255
|
+
key: g
|
|
3256
|
+
}, [V("div", Sa, [V("p", ka, Z(u + 1) + ".", 1), V("div", Pa, [V("p", null, Z(K(n)("menu.rule_groups.condition_view.in_rule_group")), 1), X(T, {
|
|
3257
3257
|
trigger: "hover",
|
|
3258
3258
|
closeOnMouseLeave: ""
|
|
3259
3259
|
}, {
|
|
3260
3260
|
"menu-button": ae(() => [V("p", {
|
|
3261
3261
|
ref_for: !0,
|
|
3262
3262
|
ref: "valueTextRef",
|
|
3263
|
-
onClick: f[4] || (f[4] = se((
|
|
3263
|
+
onClick: f[4] || (f[4] = se((b) => e.isCatalogLinkItemRuleView ? p.$emit("open-catalog-link-item-rule-form") : null, ["stop"])),
|
|
3264
3264
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate"
|
|
3265
|
-
}, Z(
|
|
3266
|
-
default: ae(() => [V("p", Da, Z(
|
|
3265
|
+
}, Z(g), 513)]),
|
|
3266
|
+
default: ae(() => [V("p", Da, Z(g), 1)]),
|
|
3267
3267
|
_: 2
|
|
3268
|
-
}, 1024)])])]))), 128)) : Fe("", !0), (x(!0), j(
|
|
3269
|
-
var
|
|
3268
|
+
}, 1024)])])]))), 128)) : Fe("", !0), (x(!0), j(_e, null, Me(O.value, (g, u) => {
|
|
3269
|
+
var b;
|
|
3270
3270
|
return x(), j("div", {
|
|
3271
|
-
key:
|
|
3272
|
-
}, [X(
|
|
3273
|
-
number: u + (((
|
|
3274
|
-
property:
|
|
3275
|
-
operator:
|
|
3276
|
-
value:
|
|
3271
|
+
key: g.property
|
|
3272
|
+
}, [X(ba, {
|
|
3273
|
+
number: u + (((b = e.ruleGroupNames) == null ? void 0 : b.length) ?? 0) + 1,
|
|
3274
|
+
property: g.property,
|
|
3275
|
+
operator: g.operator,
|
|
3276
|
+
value: g.value,
|
|
3277
3277
|
isCatalogLinkItemRuleView: e.isCatalogLinkItemRuleView,
|
|
3278
3278
|
onOpenCatalogLinkItemRuleForm: f[5] || (f[5] = (N) => p.$emit("open-catalog-link-item-rule-form")),
|
|
3279
3279
|
onOpenRuleConditionForm: f[6] || (f[6] = (N) => {
|
|
@@ -3285,7 +3285,7 @@ const ba = {
|
|
|
3285
3285
|
class: "fm-typo-en-body-lg-600 text-fm-color-neutral-gray-300"
|
|
3286
3286
|
}, "is", -1)), V("p", {
|
|
3287
3287
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate",
|
|
3288
|
-
onClick: f[7] || (f[7] = se((
|
|
3288
|
+
onClick: f[7] || (f[7] = se((g) => e.isCatalogLinkItemRuleView ? p.$emit("open-catalog-link-item-rule-form") : null, ["stop"]))
|
|
3289
3289
|
}, Z(o[e.orderFrom]), 1)])])) : Fe("", !0)], 64);
|
|
3290
3290
|
};
|
|
3291
3291
|
}
|
|
@@ -3298,8 +3298,8 @@ export {
|
|
|
3298
3298
|
Na as d,
|
|
3299
3299
|
ja as e,
|
|
3300
3300
|
Ja as f,
|
|
3301
|
-
|
|
3302
|
-
|
|
3301
|
+
ba as g,
|
|
3302
|
+
da as h,
|
|
3303
3303
|
qa as m,
|
|
3304
3304
|
We as u
|
|
3305
3305
|
};
|