@feedmepos/mf-menu 0.32.72 → 0.32.73
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-BqlWMfMd.js → App-Bf03MA88.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CGm_HCN-.js → ApplyProduct.vue_vue_type_script_setup_true_lang-B1ZOcPu1.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-DKwW-KuQ.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-D0L3H0ZG.js} +3 -3
- package/dist/{Catalog-DmSqkb83.js → Catalog-HrQFd5Gf.js} +6 -6
- package/dist/{Category-Dlj54Cvf.js → Category-8yNR-X1A.js} +4 -4
- package/dist/{Category-BViqkFeL.js → Category-FZsqkjjv.js} +4 -4
- package/dist/{CookingGuide-CTy27R3R.js → CookingGuide-DZ5w_9EC.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DnkFD9Qo.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DVlMrpkQ.js} +1 -1
- package/dist/{Group-CCHCA3-l.js → Group-CJm6hCWe.js} +3 -3
- package/dist/{Group-B_XL8419.js → Group-fJGTsqFa.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-D4UZ_9r_.js → Group.vue_vue_type_script_setup_true_lang-D0yWF7Xc.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Hq-gI8hs.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-K1e0N-Ww.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CMNiLTsy.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DxoxvqVs.js} +212 -212
- package/dist/{Ingredient-BKMpffiK.js → Ingredient-D0e2BNgG.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B-A8Yae3.js → InventoryBinding.vue_vue_type_script_setup_true_lang-SvzuFZGG.js} +2 -2
- package/dist/{LinkProductSideSheet-C0OwARv3.js → LinkProductSideSheet-C5AKJHx9.js} +4 -4
- package/dist/{MenuSetting-t2SC98j8.js → MenuSetting-CkdHN5ky.js} +7 -7
- package/dist/{OrderPacing-BeOxlK5N.js → OrderPacing-AlI0t99w.js} +5 -5
- package/dist/{PrintRoute-BehVCEKW.js → PrintRoute-S7to_Ja9.js} +5 -5
- package/dist/{Product-JhmPZPy5.js → Product-D3YceYkb.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-CaIdoW_3.js → Product.vue_vue_type_script_setup_true_lang-CdP5nFLm.js} +14 -14
- package/dist/{ProductInternalTools-BaOhffU-.js → ProductInternalTools-BXGilY2C.js} +6 -6
- package/dist/{Products-BEL7jDXA.js → Products-CcJUkcRW.js} +32 -32
- package/dist/{Publish-0paPWlI9.js → Publish-CKGNpAx3.js} +4 -4
- package/dist/{Recipe-C2EDxRF-.js → Recipe-mk8oA9m_.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BpGAz8tp.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-N3Un25EZ.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DP2Sx5Ik.js → RuleView.vue_vue_type_script_setup_true_lang-ozbcoSez.js} +362 -362
- package/dist/{Scheduler-Q5uM5gxh.js → Scheduler-DAM09LOX.js} +3 -3
- package/dist/{ServingSequence-T4C9GPzV.js → ServingSequence-CncpkznR.js} +3 -3
- package/dist/{Setting-Ck9fOSnA.js → Setting-ClaalU9t.js} +5 -5
- package/dist/{Subcategory-DA9P_jgR.js → Subcategory-BHAMGtWj.js} +6 -6
- package/dist/{Takeaway-BWHTHlyY.js → Takeaway-C8Xefobp.js} +1 -1
- package/dist/{Takeaway-BhBwxuQ1.js → Takeaway-DmS8tBJz.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CoW3ltrF.js → Takeaway.vue_vue_type_script_setup_true_lang-C8gPc9nk.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-B_NVIotA.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-BDmNmWb0.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DKAvaKvf.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CsxJPE5r.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-KLajCLq6.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Cf3Qcm8Q.js} +15 -15
- package/dist/{Unit-Cn8MfZ3t.js → Unit-Cd3vO-wC.js} +2 -2
- package/dist/{Variant-D8YObOjv.js → Variant-DBCavafw.js} +3 -3
- package/dist/{_id_-D3xdoF7g.js → _id_-DCQdbN9V.js} +10 -10
- package/dist/{app-DW6oW0Ma.js → app-CxvpA6tG.js} +57 -57
- package/dist/{app-CytlajzP.js → app-aZW57BZg.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +11 -5
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +5 -15
- package/dist/assets/{linked-status-6NCMYr9j.js → linked-status-CTYst9BT.js} +2 -2
- package/dist/assets/{menu-export-B0G2UoQu.js → menu-export-SUAOyYoh.js} +34 -34
- package/dist/assets/{override-menu-BLTWWMwC.js → override-menu-_2UkxFjy.js} +2 -2
- package/dist/assets/{validate-menu-Bw1SjjTD.js → validate-menu-C4p2Q0tV.js} +2 -2
- package/dist/{catalog-D-eYUu3U.js → catalog-B28_brHj.js} +1 -1
- package/dist/{catalogSetting-DTuat7sH.js → catalogSetting-Cejyk6uH.js} +1 -1
- package/dist/{currency-Dj_Wt0Hv.js → currency-wNkc4Z0A.js} +1 -1
- package/dist/{dayjs.min-DEj15U1R.js → dayjs.min-Dlgh8coL.js} +2 -2
- package/dist/{discardConfirm-D8fV6Aag.js → discardConfirm-BbGmy3co.js} +1 -1
- package/dist/{index-DM0Bzsz_.js → index-0kpQfvHB.js} +1 -1
- package/dist/{index-Kuoa82jl.js → index-Cy8hTieX.js} +6 -6
- package/dist/{index--oIuzXeT.js → index-eQIHkX_i.js} +5 -5
- package/dist/{index.vue_vue_type_script_setup_true_lang-COHdIM2S.js → index.vue_vue_type_script_setup_true_lang-Dn7y0J8m.js} +451 -445
- package/dist/{item-DY5crb6D.js → item-Pl488uTh.js} +679 -682
- package/dist/{jszip.min-BZ1Z78MP.js → jszip.min-CUmSTnh2.js} +3 -3
- package/dist/{linkProducts-96XgmBUL.js → linkProducts-BpMibpzz.js} +4 -4
- package/dist/{memberPricing-WDnr_fBu.js → memberPricing-DVBTtTAw.js} +1 -1
- package/dist/{menu-xKq7gpBv.js → menu-CLJze7N5.js} +1 -1
- package/dist/{menuV2-y6RgekH4.js → menuV2-CRioXM-a.js} +39 -39
- package/dist/{order_pacing-5FfwO1W8.js → order_pacing-tdC-Swwv.js} +5 -5
- package/dist/packages/shared/src/components/form/ImageDropField.vue.d.ts +5 -0
- package/dist/{priceTier-C-qqjKEP.js → priceTier-nCiHkoUd.js} +1 -1
- package/dist/{rules-BUN28pvZ.js → rules-B33FYEnp.js} +3 -3
- package/dist/{scheduler-CHwF5zGU.js → scheduler-BbZ2-af3.js} +5 -5
- package/dist/{toExcel-Doi2nxOH.js → toExcel-mFDQ3bjo.js} +2 -2
- package/dist/{unit-BnAly_uA.js → unit-DNJ6h92K.js} +3 -3
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
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 B, 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 B, watch as Ze, onMounted as bn, onUnmounted as Bn, h as hn, Text as Wn, Fragment as de, resolveComponent as pe, unref as K, withModifiers as se, renderList as Me, createBlock as Wt } from "vue";
|
|
2
2
|
import { x as xn, N as Kn } from "./app-5fxKLAzS.js";
|
|
3
3
|
import { useCoreStore as 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, k as
|
|
5
|
+
import { u as Tn, k as vt } from "./index.vue_vue_type_script_setup_true_lang-Dn7y0J8m.js";
|
|
6
6
|
import { FmButtonVariant as he, components as qn } from "@feedmepos/ui-library";
|
|
7
|
-
import { l as Kt } from "./discardConfirm-
|
|
7
|
+
import { l as Kt } from "./discardConfirm-BbGmy3co.js";
|
|
8
8
|
import "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
9
9
|
const Jn = /* @__PURE__ */ ie({
|
|
10
10
|
__name: "FormColumn",
|
|
@@ -121,8 +121,8 @@ const me = " ", fr = "\r", ne = `
|
|
|
121
121
|
function pr(e) {
|
|
122
122
|
const t = e;
|
|
123
123
|
let n = 0, r = 1, o = 1, a = 0;
|
|
124
|
-
const i = (d) => t[d] === fr && t[d + 1] === ne, m = (d) => t[d] === ne, c = (d) => t[d] === dr,
|
|
125
|
-
function
|
|
124
|
+
const i = (d) => t[d] === fr && t[d + 1] === ne, m = (d) => t[d] === ne, c = (d) => t[d] === dr, y = (d) => t[d] === _r, h = (d) => i(d) || m(d) || c(d) || y(d), O = () => n, p = () => r, f = () => o, S = () => a, T = (d) => i(d) || c(d) || y(d) ? ne : t[d], g = () => T(n), u = () => T(n + a);
|
|
125
|
+
function v() {
|
|
126
126
|
return a = 0, h(n) && (r++, o = 0), i(n) && n++, n++, o++, t[n];
|
|
127
127
|
}
|
|
128
128
|
function N() {
|
|
@@ -137,7 +137,7 @@ function pr(e) {
|
|
|
137
137
|
function A() {
|
|
138
138
|
const d = n + a;
|
|
139
139
|
for (; d !== n; )
|
|
140
|
-
|
|
140
|
+
v();
|
|
141
141
|
a = 0;
|
|
142
142
|
}
|
|
143
143
|
return {
|
|
@@ -146,17 +146,17 @@ function pr(e) {
|
|
|
146
146
|
column: f,
|
|
147
147
|
peekOffset: S,
|
|
148
148
|
charAt: T,
|
|
149
|
-
currentChar:
|
|
149
|
+
currentChar: g,
|
|
150
150
|
currentPeek: u,
|
|
151
|
-
next:
|
|
151
|
+
next: v,
|
|
152
152
|
peek: N,
|
|
153
153
|
reset: E,
|
|
154
154
|
resetPeek: R,
|
|
155
155
|
skipToPeek: A
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
const
|
|
159
|
-
function
|
|
158
|
+
const ye = void 0, Er = ".", qt = "'", yr = "tokenizer";
|
|
159
|
+
function gr(e, t = {}) {
|
|
160
160
|
const n = t.location !== !1, r = pr(e), o = () => r.index(), a = () => ir(r.line(), r.column(), r.index()), i = a(), m = o(), c = {
|
|
161
161
|
currentType: 13,
|
|
162
162
|
offset: m,
|
|
@@ -169,21 +169,21 @@ function yr(e, t = {}) {
|
|
|
169
169
|
braceNest: 0,
|
|
170
170
|
inLinked: !1,
|
|
171
171
|
text: ""
|
|
172
|
-
},
|
|
173
|
-
function O(s, l,
|
|
174
|
-
const q =
|
|
175
|
-
if (l.column +=
|
|
172
|
+
}, y = () => c, { onError: h } = t;
|
|
173
|
+
function O(s, l, b, ...D) {
|
|
174
|
+
const q = y();
|
|
175
|
+
if (l.column += b, l.offset += b, h) {
|
|
176
176
|
const F = n ? It(q.startLoc, l) : null, _ = nt(s, F, {
|
|
177
|
-
domain:
|
|
177
|
+
domain: yr,
|
|
178
178
|
args: D
|
|
179
179
|
});
|
|
180
180
|
h(_);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
function p(s, l,
|
|
183
|
+
function p(s, l, b) {
|
|
184
184
|
s.endLoc = a(), s.currentType = l;
|
|
185
185
|
const D = { type: l };
|
|
186
|
-
return n && (D.loc = It(s.startLoc, s.endLoc)),
|
|
186
|
+
return n && (D.loc = It(s.startLoc, s.endLoc)), b != null && (D.value = b), D;
|
|
187
187
|
}
|
|
188
188
|
const f = (s) => p(
|
|
189
189
|
s,
|
|
@@ -199,75 +199,75 @@ function yr(e, t = {}) {
|
|
|
199
199
|
l += s.currentPeek(), s.peek();
|
|
200
200
|
return l;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function g(s) {
|
|
203
203
|
const l = T(s);
|
|
204
204
|
return s.skipToPeek(), l;
|
|
205
205
|
}
|
|
206
206
|
function u(s) {
|
|
207
|
-
if (s ===
|
|
207
|
+
if (s === ye)
|
|
208
208
|
return !1;
|
|
209
209
|
const l = s.charCodeAt(0);
|
|
210
210
|
return l >= 97 && l <= 122 || // a-z
|
|
211
211
|
l >= 65 && l <= 90 || // A-Z
|
|
212
212
|
l === 95;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
if (s ===
|
|
214
|
+
function v(s) {
|
|
215
|
+
if (s === ye)
|
|
216
216
|
return !1;
|
|
217
217
|
const l = s.charCodeAt(0);
|
|
218
218
|
return l >= 48 && l <= 57;
|
|
219
219
|
}
|
|
220
220
|
function N(s, l) {
|
|
221
|
-
const { currentType:
|
|
222
|
-
if (
|
|
221
|
+
const { currentType: b } = l;
|
|
222
|
+
if (b !== 2)
|
|
223
223
|
return !1;
|
|
224
224
|
T(s);
|
|
225
225
|
const D = u(s.currentPeek());
|
|
226
226
|
return s.resetPeek(), D;
|
|
227
227
|
}
|
|
228
228
|
function E(s, l) {
|
|
229
|
-
const { currentType:
|
|
230
|
-
if (
|
|
229
|
+
const { currentType: b } = l;
|
|
230
|
+
if (b !== 2)
|
|
231
231
|
return !1;
|
|
232
232
|
T(s);
|
|
233
|
-
const D = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), q =
|
|
233
|
+
const D = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), q = v(D);
|
|
234
234
|
return s.resetPeek(), q;
|
|
235
235
|
}
|
|
236
236
|
function R(s, l) {
|
|
237
|
-
const { currentType:
|
|
238
|
-
if (
|
|
237
|
+
const { currentType: b } = l;
|
|
238
|
+
if (b !== 2)
|
|
239
239
|
return !1;
|
|
240
240
|
T(s);
|
|
241
241
|
const D = s.currentPeek() === qt;
|
|
242
242
|
return s.resetPeek(), D;
|
|
243
243
|
}
|
|
244
244
|
function A(s, l) {
|
|
245
|
-
const { currentType:
|
|
246
|
-
if (
|
|
245
|
+
const { currentType: b } = l;
|
|
246
|
+
if (b !== 7)
|
|
247
247
|
return !1;
|
|
248
248
|
T(s);
|
|
249
249
|
const D = s.currentPeek() === ".";
|
|
250
250
|
return s.resetPeek(), D;
|
|
251
251
|
}
|
|
252
252
|
function d(s, l) {
|
|
253
|
-
const { currentType:
|
|
254
|
-
if (
|
|
253
|
+
const { currentType: b } = l;
|
|
254
|
+
if (b !== 8)
|
|
255
255
|
return !1;
|
|
256
256
|
T(s);
|
|
257
257
|
const D = u(s.currentPeek());
|
|
258
258
|
return s.resetPeek(), D;
|
|
259
259
|
}
|
|
260
260
|
function L(s, l) {
|
|
261
|
-
const { currentType:
|
|
262
|
-
if (!(
|
|
261
|
+
const { currentType: b } = l;
|
|
262
|
+
if (!(b === 7 || b === 11))
|
|
263
263
|
return !1;
|
|
264
264
|
T(s);
|
|
265
265
|
const D = s.currentPeek() === ":";
|
|
266
266
|
return s.resetPeek(), D;
|
|
267
267
|
}
|
|
268
268
|
function P(s, l) {
|
|
269
|
-
const { currentType:
|
|
270
|
-
if (
|
|
269
|
+
const { currentType: b } = l;
|
|
270
|
+
if (b !== 9)
|
|
271
271
|
return !1;
|
|
272
272
|
const D = () => {
|
|
273
273
|
const F = s.currentPeek();
|
|
@@ -281,15 +281,15 @@ function yr(e, t = {}) {
|
|
|
281
281
|
return s.resetPeek(), l;
|
|
282
282
|
}
|
|
283
283
|
function W(s, l = !0) {
|
|
284
|
-
const
|
|
284
|
+
const b = (q = !1, F = "") => {
|
|
285
285
|
const _ = s.currentPeek();
|
|
286
|
-
return _ === "{" || _ === "@" || !_ ? q : _ === "|" ? !(F === me || F === ne) : _ === me ? (s.peek(),
|
|
287
|
-
}, D =
|
|
286
|
+
return _ === "{" || _ === "@" || !_ ? q : _ === "|" ? !(F === me || F === ne) : _ === me ? (s.peek(), b(!0, me)) : _ === ne ? (s.peek(), b(!0, ne)) : !0;
|
|
287
|
+
}, D = b();
|
|
288
288
|
return l && s.resetPeek(), D;
|
|
289
289
|
}
|
|
290
290
|
function C(s, l) {
|
|
291
|
-
const
|
|
292
|
-
return
|
|
291
|
+
const b = s.currentChar();
|
|
292
|
+
return b === ye ? ye : l(b) ? (s.next(), b) : null;
|
|
293
293
|
}
|
|
294
294
|
function Ne(s) {
|
|
295
295
|
const l = s.charCodeAt(0);
|
|
@@ -331,52 +331,52 @@ function yr(e, t = {}) {
|
|
|
331
331
|
return C(s, ce);
|
|
332
332
|
}
|
|
333
333
|
function xe(s) {
|
|
334
|
-
let l = "",
|
|
334
|
+
let l = "", b = "";
|
|
335
335
|
for (; l = ut(s); )
|
|
336
|
-
|
|
337
|
-
return
|
|
336
|
+
b += l;
|
|
337
|
+
return b;
|
|
338
338
|
}
|
|
339
339
|
function it(s) {
|
|
340
340
|
let l = "";
|
|
341
341
|
for (; ; ) {
|
|
342
|
-
const
|
|
343
|
-
if (
|
|
342
|
+
const b = s.currentChar();
|
|
343
|
+
if (b === "{" || b === "}" || b === "@" || b === "|" || !b)
|
|
344
344
|
break;
|
|
345
|
-
if (
|
|
345
|
+
if (b === me || b === ne)
|
|
346
346
|
if (W(s))
|
|
347
|
-
l +=
|
|
347
|
+
l += b, s.next();
|
|
348
348
|
else {
|
|
349
349
|
if (w(s))
|
|
350
350
|
break;
|
|
351
|
-
l +=
|
|
351
|
+
l += b, s.next();
|
|
352
352
|
}
|
|
353
353
|
else
|
|
354
|
-
l +=
|
|
354
|
+
l += b, s.next();
|
|
355
355
|
}
|
|
356
356
|
return l;
|
|
357
357
|
}
|
|
358
358
|
function ct(s) {
|
|
359
|
-
|
|
360
|
-
let l = "",
|
|
359
|
+
g(s);
|
|
360
|
+
let l = "", b = "";
|
|
361
361
|
for (; l = st(s); )
|
|
362
|
-
|
|
363
|
-
return s.currentChar() ===
|
|
362
|
+
b += l;
|
|
363
|
+
return s.currentChar() === ye && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), b;
|
|
364
364
|
}
|
|
365
365
|
function mt(s) {
|
|
366
|
-
|
|
366
|
+
g(s);
|
|
367
367
|
let l = "";
|
|
368
|
-
return s.currentChar() === "-" ? (s.next(), l += `-${xe(s)}`) : l += xe(s), s.currentChar() ===
|
|
368
|
+
return s.currentChar() === "-" ? (s.next(), l += `-${xe(s)}`) : l += xe(s), s.currentChar() === ye && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), l;
|
|
369
369
|
}
|
|
370
370
|
function Bt(s) {
|
|
371
371
|
return s !== qt && s !== ne;
|
|
372
372
|
}
|
|
373
373
|
function ft(s) {
|
|
374
|
-
|
|
375
|
-
let l = "",
|
|
374
|
+
g(s), S(s, "'");
|
|
375
|
+
let l = "", b = "";
|
|
376
376
|
for (; l = C(s, Bt); )
|
|
377
|
-
l === "\\" ?
|
|
377
|
+
l === "\\" ? b += _t(s) : b += l;
|
|
378
378
|
const D = s.currentChar();
|
|
379
|
-
return D === ne || D ===
|
|
379
|
+
return D === ne || D === ye ? (O($.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), D === ne && (s.next(), S(s, "'")), b) : (S(s, "'"), b);
|
|
380
380
|
}
|
|
381
381
|
function _t(s) {
|
|
382
382
|
const l = s.currentChar();
|
|
@@ -392,10 +392,10 @@ function yr(e, t = {}) {
|
|
|
392
392
|
return O($.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, l), "";
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
function Ke(s, l,
|
|
395
|
+
function Ke(s, l, b) {
|
|
396
396
|
S(s, l);
|
|
397
397
|
let D = "";
|
|
398
|
-
for (let q = 0; q <
|
|
398
|
+
for (let q = 0; q < b; q++) {
|
|
399
399
|
const F = We(s);
|
|
400
400
|
if (!F) {
|
|
401
401
|
O($.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${l}${D}${s.currentChar()}`);
|
|
@@ -409,77 +409,77 @@ function yr(e, t = {}) {
|
|
|
409
409
|
return s !== "{" && s !== "}" && s !== me && s !== ne;
|
|
410
410
|
}
|
|
411
411
|
function pt(s) {
|
|
412
|
-
|
|
413
|
-
let l = "",
|
|
412
|
+
g(s);
|
|
413
|
+
let l = "", b = "";
|
|
414
414
|
for (; l = C(s, dt); )
|
|
415
|
-
|
|
416
|
-
return
|
|
415
|
+
b += l;
|
|
416
|
+
return b;
|
|
417
417
|
}
|
|
418
418
|
function Et(s) {
|
|
419
|
-
let l = "",
|
|
419
|
+
let l = "", b = "";
|
|
420
420
|
for (; l = ot(s); )
|
|
421
|
-
|
|
422
|
-
return
|
|
421
|
+
b += l;
|
|
422
|
+
return b;
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
const l = (
|
|
424
|
+
function yt(s) {
|
|
425
|
+
const l = (b) => {
|
|
426
426
|
const D = s.currentChar();
|
|
427
|
-
return D === "{" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === me ?
|
|
427
|
+
return D === "{" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === me ? b : (b += D, s.next(), l(b));
|
|
428
428
|
};
|
|
429
429
|
return l("");
|
|
430
430
|
}
|
|
431
431
|
function Pe(s) {
|
|
432
|
-
|
|
432
|
+
g(s);
|
|
433
433
|
const l = S(
|
|
434
434
|
s,
|
|
435
435
|
"|"
|
|
436
436
|
/* TokenChars.Pipe */
|
|
437
437
|
);
|
|
438
|
-
return
|
|
438
|
+
return g(s), l;
|
|
439
439
|
}
|
|
440
440
|
function Re(s, l) {
|
|
441
|
-
let
|
|
441
|
+
let b = null;
|
|
442
442
|
switch (s.currentChar()) {
|
|
443
443
|
case "{":
|
|
444
|
-
return l.braceNest >= 1 && O($.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(),
|
|
444
|
+
return l.braceNest >= 1 && O($.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), b = p(
|
|
445
445
|
l,
|
|
446
446
|
2,
|
|
447
447
|
"{"
|
|
448
448
|
/* TokenChars.BraceLeft */
|
|
449
|
-
),
|
|
449
|
+
), g(s), l.braceNest++, b;
|
|
450
450
|
case "}":
|
|
451
|
-
return l.braceNest > 0 && l.currentType === 2 && O($.EMPTY_PLACEHOLDER, a(), 0), s.next(),
|
|
451
|
+
return l.braceNest > 0 && l.currentType === 2 && O($.EMPTY_PLACEHOLDER, a(), 0), s.next(), b = p(
|
|
452
452
|
l,
|
|
453
453
|
3,
|
|
454
454
|
"}"
|
|
455
455
|
/* TokenChars.BraceRight */
|
|
456
|
-
), l.braceNest--, l.braceNest > 0 &&
|
|
456
|
+
), l.braceNest--, l.braceNest > 0 && g(s), l.inLinked && l.braceNest === 0 && (l.inLinked = !1), b;
|
|
457
457
|
case "@":
|
|
458
|
-
return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
458
|
+
return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), b = Ae(s, l) || f(l), l.braceNest = 0, b;
|
|
459
459
|
default: {
|
|
460
460
|
let q = !0, F = !0, _ = !0;
|
|
461
461
|
if (w(s))
|
|
462
|
-
return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
462
|
+
return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), b = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, b;
|
|
463
463
|
if (l.braceNest > 0 && (l.currentType === 4 || l.currentType === 5 || l.currentType === 6))
|
|
464
464
|
return O($.UNTERMINATED_CLOSING_BRACE, a(), 0), l.braceNest = 0, De(s, l);
|
|
465
465
|
if (q = N(s, l))
|
|
466
|
-
return
|
|
466
|
+
return b = p(l, 4, ct(s)), g(s), b;
|
|
467
467
|
if (F = E(s, l))
|
|
468
|
-
return
|
|
468
|
+
return b = p(l, 5, mt(s)), g(s), b;
|
|
469
469
|
if (_ = R(s, l))
|
|
470
|
-
return
|
|
470
|
+
return b = p(l, 6, ft(s)), g(s), b;
|
|
471
471
|
if (!q && !F && !_)
|
|
472
|
-
return
|
|
472
|
+
return b = p(l, 12, pt(s)), O($.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, b.value), g(s), b;
|
|
473
473
|
break;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
return
|
|
476
|
+
return b;
|
|
477
477
|
}
|
|
478
478
|
function Ae(s, l) {
|
|
479
|
-
const { currentType:
|
|
479
|
+
const { currentType: b } = l;
|
|
480
480
|
let D = null;
|
|
481
481
|
const q = s.currentChar();
|
|
482
|
-
switch ((
|
|
482
|
+
switch ((b === 7 || b === 8 || b === 11 || b === 9) && (q === ne || q === me) && O($.INVALID_LINKED_FORMAT, a(), 0), q) {
|
|
483
483
|
case "@":
|
|
484
484
|
return s.next(), D = p(
|
|
485
485
|
l,
|
|
@@ -488,25 +488,25 @@ function yr(e, t = {}) {
|
|
|
488
488
|
/* TokenChars.LinkedAlias */
|
|
489
489
|
), l.inLinked = !0, D;
|
|
490
490
|
case ".":
|
|
491
|
-
return
|
|
491
|
+
return g(s), s.next(), p(
|
|
492
492
|
l,
|
|
493
493
|
8,
|
|
494
494
|
"."
|
|
495
495
|
/* TokenChars.LinkedDot */
|
|
496
496
|
);
|
|
497
497
|
case ":":
|
|
498
|
-
return
|
|
498
|
+
return g(s), s.next(), p(
|
|
499
499
|
l,
|
|
500
500
|
9,
|
|
501
501
|
":"
|
|
502
502
|
/* TokenChars.LinkedDelimiter */
|
|
503
503
|
);
|
|
504
504
|
default:
|
|
505
|
-
return w(s) ? (D = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, D) : A(s, l) || L(s, l) ? (
|
|
505
|
+
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)) : d(s, l) ? (g(s), p(l, 11, Et(s))) : P(s, l) ? (g(s), q === "{" ? Re(s, l) || D : p(l, 10, yt(s))) : (b === 7 && O($.INVALID_LINKED_FORMAT, a(), 0), l.braceNest = 0, l.inLinked = !1, De(s, l));
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
function De(s, l) {
|
|
509
|
-
let
|
|
509
|
+
let b = {
|
|
510
510
|
type: 13
|
|
511
511
|
/* TokenTypes.EOF */
|
|
512
512
|
};
|
|
@@ -528,30 +528,30 @@ function yr(e, t = {}) {
|
|
|
528
528
|
return Ae(s, l) || f(l);
|
|
529
529
|
default: {
|
|
530
530
|
if (w(s))
|
|
531
|
-
return
|
|
531
|
+
return b = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, b;
|
|
532
532
|
if (W(s))
|
|
533
533
|
return p(l, 0, it(s));
|
|
534
534
|
break;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
return
|
|
537
|
+
return b;
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
const { currentType: s, offset: l, startLoc:
|
|
541
|
-
return c.lastType = s, c.lastOffset = l, c.lastStartLoc =
|
|
539
|
+
function gt() {
|
|
540
|
+
const { currentType: s, offset: l, startLoc: b, endLoc: D } = c;
|
|
541
|
+
return c.lastType = s, c.lastOffset = l, c.lastStartLoc = b, c.lastEndLoc = D, c.offset = o(), c.startLoc = a(), r.currentChar() === ye ? p(
|
|
542
542
|
c,
|
|
543
543
|
13
|
|
544
544
|
/* TokenTypes.EOF */
|
|
545
545
|
) : De(r, c);
|
|
546
546
|
}
|
|
547
547
|
return {
|
|
548
|
-
nextToken:
|
|
548
|
+
nextToken: gt,
|
|
549
549
|
currentOffset: o,
|
|
550
550
|
currentPosition: a,
|
|
551
|
-
context:
|
|
551
|
+
context: y
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
const
|
|
554
|
+
const vr = "parser", br = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
555
555
|
function hr(e, t, n) {
|
|
556
556
|
switch (e) {
|
|
557
557
|
case "\\\\":
|
|
@@ -567,74 +567,74 @@ function hr(e, t, n) {
|
|
|
567
567
|
}
|
|
568
568
|
function Tr(e = {}) {
|
|
569
569
|
const t = e.location !== !1, { onError: n } = e;
|
|
570
|
-
function r(u,
|
|
570
|
+
function r(u, v, N, E, ...R) {
|
|
571
571
|
const A = u.currentPosition();
|
|
572
572
|
if (A.offset += E, A.column += E, n) {
|
|
573
|
-
const d = t ? It(N, A) : null, L = nt(
|
|
574
|
-
domain:
|
|
573
|
+
const d = t ? It(N, A) : null, L = nt(v, d, {
|
|
574
|
+
domain: vr,
|
|
575
575
|
args: R
|
|
576
576
|
});
|
|
577
577
|
n(L);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
function o(u,
|
|
580
|
+
function o(u, v, N) {
|
|
581
581
|
const E = { type: u };
|
|
582
|
-
return t && (E.start =
|
|
582
|
+
return t && (E.start = v, E.end = v, E.loc = { start: N, end: N }), E;
|
|
583
583
|
}
|
|
584
|
-
function a(u,
|
|
585
|
-
t && (u.end =
|
|
584
|
+
function a(u, v, N, E) {
|
|
585
|
+
t && (u.end = v, u.loc && (u.loc.end = N));
|
|
586
586
|
}
|
|
587
|
-
function i(u,
|
|
587
|
+
function i(u, v) {
|
|
588
588
|
const N = u.context(), E = o(3, N.offset, N.startLoc);
|
|
589
|
-
return E.value =
|
|
589
|
+
return E.value = v, a(E, u.currentOffset(), u.currentPosition()), E;
|
|
590
590
|
}
|
|
591
|
-
function m(u,
|
|
591
|
+
function m(u, v) {
|
|
592
592
|
const N = u.context(), { lastOffset: E, lastStartLoc: R } = N, A = o(5, E, R);
|
|
593
|
-
return A.index = parseInt(
|
|
593
|
+
return A.index = parseInt(v, 10), u.nextToken(), a(A, u.currentOffset(), u.currentPosition()), A;
|
|
594
594
|
}
|
|
595
|
-
function c(u,
|
|
595
|
+
function c(u, v) {
|
|
596
596
|
const N = u.context(), { lastOffset: E, lastStartLoc: R } = N, A = o(4, E, R);
|
|
597
|
-
return A.key =
|
|
597
|
+
return A.key = v, u.nextToken(), a(A, u.currentOffset(), u.currentPosition()), A;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function y(u, v) {
|
|
600
600
|
const N = u.context(), { lastOffset: E, lastStartLoc: R } = N, A = o(9, E, R);
|
|
601
|
-
return A.value =
|
|
601
|
+
return A.value = v.replace(br, hr), u.nextToken(), a(A, u.currentOffset(), u.currentPosition()), A;
|
|
602
602
|
}
|
|
603
603
|
function h(u) {
|
|
604
|
-
const
|
|
605
|
-
return
|
|
606
|
-
nextConsumeToken:
|
|
604
|
+
const v = u.nextToken(), N = u.context(), { lastOffset: E, lastStartLoc: R } = N, A = o(8, E, R);
|
|
605
|
+
return v.type !== 11 ? (r(u, $.UNEXPECTED_EMPTY_LINKED_MODIFIER, N.lastStartLoc, 0), A.value = "", a(A, E, R), {
|
|
606
|
+
nextConsumeToken: v,
|
|
607
607
|
node: A
|
|
608
|
-
}) : (
|
|
608
|
+
}) : (v.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, ue(v)), A.value = v.value || "", a(A, u.currentOffset(), u.currentPosition()), {
|
|
609
609
|
node: A
|
|
610
610
|
});
|
|
611
611
|
}
|
|
612
|
-
function O(u,
|
|
612
|
+
function O(u, v) {
|
|
613
613
|
const N = u.context(), E = o(7, N.offset, N.startLoc);
|
|
614
|
-
return E.value =
|
|
614
|
+
return E.value = v, a(E, u.currentOffset(), u.currentPosition()), E;
|
|
615
615
|
}
|
|
616
616
|
function p(u) {
|
|
617
|
-
const
|
|
617
|
+
const v = u.context(), N = o(6, v.offset, v.startLoc);
|
|
618
618
|
let E = u.nextToken();
|
|
619
619
|
if (E.type === 8) {
|
|
620
620
|
const R = h(u);
|
|
621
621
|
N.modifier = R.node, E = R.nextConsumeToken || u.nextToken();
|
|
622
622
|
}
|
|
623
|
-
switch (E.type !== 9 && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
623
|
+
switch (E.type !== 9 && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(E)), E = u.nextToken(), E.type === 2 && (E = u.nextToken()), E.type) {
|
|
624
624
|
case 10:
|
|
625
|
-
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
625
|
+
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(E)), N.key = O(u, E.value || "");
|
|
626
626
|
break;
|
|
627
627
|
case 4:
|
|
628
|
-
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
628
|
+
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(E)), N.key = c(u, E.value || "");
|
|
629
629
|
break;
|
|
630
630
|
case 5:
|
|
631
|
-
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
631
|
+
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(E)), N.key = m(u, E.value || "");
|
|
632
632
|
break;
|
|
633
633
|
case 6:
|
|
634
|
-
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
634
|
+
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(E)), N.key = y(u, E.value || "");
|
|
635
635
|
break;
|
|
636
636
|
default: {
|
|
637
|
-
r(u, $.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
637
|
+
r(u, $.UNEXPECTED_EMPTY_LINKED_KEY, v.lastStartLoc, 0);
|
|
638
638
|
const R = u.context(), A = o(7, R.offset, R.startLoc);
|
|
639
639
|
return A.value = "", a(A, R.offset, R.startLoc), N.key = A, a(N, R.offset, R.startLoc), {
|
|
640
640
|
nextConsumeToken: E,
|
|
@@ -647,23 +647,23 @@ function Tr(e = {}) {
|
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
649
|
function f(u) {
|
|
650
|
-
const
|
|
650
|
+
const v = u.context(), N = v.currentType === 1 ? u.currentOffset() : v.offset, E = v.currentType === 1 ? v.endLoc : v.startLoc, R = o(2, N, E);
|
|
651
651
|
R.items = [];
|
|
652
652
|
let A = null;
|
|
653
653
|
do {
|
|
654
654
|
const P = A || u.nextToken();
|
|
655
655
|
switch (A = null, P.type) {
|
|
656
656
|
case 0:
|
|
657
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
657
|
+
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(P)), R.items.push(i(u, P.value || ""));
|
|
658
658
|
break;
|
|
659
659
|
case 5:
|
|
660
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
660
|
+
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(P)), R.items.push(m(u, P.value || ""));
|
|
661
661
|
break;
|
|
662
662
|
case 4:
|
|
663
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
663
|
+
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(P)), R.items.push(c(u, P.value || ""));
|
|
664
664
|
break;
|
|
665
665
|
case 6:
|
|
666
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
666
|
+
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(P)), R.items.push(y(u, P.value || ""));
|
|
667
667
|
break;
|
|
668
668
|
case 7: {
|
|
669
669
|
const w = p(u);
|
|
@@ -671,14 +671,14 @@ function Tr(e = {}) {
|
|
|
671
671
|
break;
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
} while (
|
|
675
|
-
const d =
|
|
674
|
+
} while (v.currentType !== 13 && v.currentType !== 1);
|
|
675
|
+
const d = v.currentType === 1 ? v.lastOffset : u.currentOffset(), L = v.currentType === 1 ? v.lastEndLoc : u.currentPosition();
|
|
676
676
|
return a(R, d, L), R;
|
|
677
677
|
}
|
|
678
|
-
function S(u,
|
|
678
|
+
function S(u, v, N, E) {
|
|
679
679
|
const R = u.context();
|
|
680
680
|
let A = E.items.length === 0;
|
|
681
|
-
const d = o(1,
|
|
681
|
+
const d = o(1, v, N);
|
|
682
682
|
d.cases = [], d.cases.push(E);
|
|
683
683
|
do {
|
|
684
684
|
const L = f(u);
|
|
@@ -687,14 +687,14 @@ function Tr(e = {}) {
|
|
|
687
687
|
return A && r(u, $.MUST_HAVE_MESSAGES_IN_PLURAL, N, 0), a(d, u.currentOffset(), u.currentPosition()), d;
|
|
688
688
|
}
|
|
689
689
|
function T(u) {
|
|
690
|
-
const
|
|
691
|
-
return
|
|
690
|
+
const v = u.context(), { offset: N, startLoc: E } = v, R = f(u);
|
|
691
|
+
return v.currentType === 13 ? R : S(u, N, E, R);
|
|
692
692
|
}
|
|
693
|
-
function
|
|
694
|
-
const
|
|
695
|
-
return t && E.loc && (E.loc.source = u), E.body = T(
|
|
693
|
+
function g(u) {
|
|
694
|
+
const v = gr(u, te({}, e)), N = v.context(), E = o(0, N.offset, N.startLoc);
|
|
695
|
+
return t && E.loc && (E.loc.source = u), E.body = T(v), e.onCacheKey && (E.cacheKey = e.onCacheKey(u)), N.currentType !== 13 && r(v, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, u[N.offset] || ""), a(E, v.currentOffset(), v.currentPosition()), E;
|
|
696
696
|
}
|
|
697
|
-
return { parse:
|
|
697
|
+
return { parse: g };
|
|
698
698
|
}
|
|
699
699
|
function ue(e) {
|
|
700
700
|
if (e.type === 13)
|
|
@@ -849,23 +849,23 @@ function Ar(e, t) {
|
|
|
849
849
|
};
|
|
850
850
|
a && e.loc && (i.source = e.loc.source);
|
|
851
851
|
const m = () => i;
|
|
852
|
-
function c(T,
|
|
852
|
+
function c(T, g) {
|
|
853
853
|
i.code += T;
|
|
854
854
|
}
|
|
855
|
-
function
|
|
856
|
-
const u =
|
|
855
|
+
function y(T, g = !0) {
|
|
856
|
+
const u = g ? r : "";
|
|
857
857
|
c(o ? u + " ".repeat(T) : u);
|
|
858
858
|
}
|
|
859
859
|
function h(T = !0) {
|
|
860
|
-
const
|
|
861
|
-
T &&
|
|
860
|
+
const g = ++i.indentLevel;
|
|
861
|
+
T && y(g);
|
|
862
862
|
}
|
|
863
863
|
function O(T = !0) {
|
|
864
|
-
const
|
|
865
|
-
T &&
|
|
864
|
+
const g = --i.indentLevel;
|
|
865
|
+
T && y(g);
|
|
866
866
|
}
|
|
867
867
|
function p() {
|
|
868
|
-
|
|
868
|
+
y(i.indentLevel);
|
|
869
869
|
}
|
|
870
870
|
return {
|
|
871
871
|
context: m,
|
|
@@ -968,11 +968,11 @@ const kr = (e, t = {}) => {
|
|
|
968
968
|
needIndent: a
|
|
969
969
|
});
|
|
970
970
|
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;
|
|
971
|
-
const { code: c, map:
|
|
971
|
+
const { code: c, map: y } = m.context();
|
|
972
972
|
return {
|
|
973
973
|
ast: e,
|
|
974
974
|
code: c,
|
|
975
|
-
map:
|
|
975
|
+
map: y ? y.toJSON() : void 0
|
|
976
976
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
977
977
|
};
|
|
978
978
|
};
|
|
@@ -984,7 +984,7 @@ var Dr = { env: { NODE_ENV: "production" } };
|
|
|
984
984
|
function wr() {
|
|
985
985
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Te().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Te().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function bt(e) {
|
|
988
988
|
return (n) => Fr(n, e);
|
|
989
989
|
}
|
|
990
990
|
function Fr(e, t) {
|
|
@@ -1005,11 +1005,11 @@ function Fr(e, t) {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
const Mr = ["b", "body"];
|
|
1007
1007
|
function Ur(e) {
|
|
1008
|
-
return
|
|
1008
|
+
return ge(e, Mr);
|
|
1009
1009
|
}
|
|
1010
1010
|
const Vr = ["c", "cases"];
|
|
1011
1011
|
function $r(e) {
|
|
1012
|
-
return
|
|
1012
|
+
return ge(e, Vr, []);
|
|
1013
1013
|
}
|
|
1014
1014
|
function Zt(e, t) {
|
|
1015
1015
|
const n = Gr(t);
|
|
@@ -1022,11 +1022,11 @@ function Zt(e, t) {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
const Hr = ["s", "static"];
|
|
1024
1024
|
function Gr(e) {
|
|
1025
|
-
return
|
|
1025
|
+
return ge(e, Hr);
|
|
1026
1026
|
}
|
|
1027
1027
|
const Br = ["i", "items"];
|
|
1028
1028
|
function Wr(e) {
|
|
1029
|
-
return
|
|
1029
|
+
return ge(e, Br, []);
|
|
1030
1030
|
}
|
|
1031
1031
|
function Nt(e, t) {
|
|
1032
1032
|
const n = Vt(t);
|
|
@@ -1065,22 +1065,22 @@ function Nt(e, t) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
const xr = ["t", "type"];
|
|
1067
1067
|
function Vt(e) {
|
|
1068
|
-
return
|
|
1068
|
+
return ge(e, xr);
|
|
1069
1069
|
}
|
|
1070
1070
|
const Kr = ["v", "value"];
|
|
1071
1071
|
function Xe(e, t) {
|
|
1072
|
-
const n =
|
|
1072
|
+
const n = ge(e, Kr);
|
|
1073
1073
|
if (n)
|
|
1074
1074
|
return n;
|
|
1075
1075
|
throw Ue(t);
|
|
1076
1076
|
}
|
|
1077
1077
|
const Yr = ["m", "modifier"];
|
|
1078
1078
|
function jr(e) {
|
|
1079
|
-
return
|
|
1079
|
+
return ge(e, Yr);
|
|
1080
1080
|
}
|
|
1081
1081
|
const Xr = ["k", "key"];
|
|
1082
1082
|
function qr(e) {
|
|
1083
|
-
const t =
|
|
1083
|
+
const t = ge(e, Xr);
|
|
1084
1084
|
if (t)
|
|
1085
1085
|
return t;
|
|
1086
1086
|
throw Ue(
|
|
@@ -1088,7 +1088,7 @@ function qr(e) {
|
|
|
1088
1088
|
/* NodeTypes.Linked */
|
|
1089
1089
|
);
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function ge(e, t, n) {
|
|
1092
1092
|
for (let r = 0; r < t.length; r++) {
|
|
1093
1093
|
const o = t[r];
|
|
1094
1094
|
if (le(e, o) && e[o] != null)
|
|
@@ -1122,15 +1122,15 @@ function Zr(e, t) {
|
|
|
1122
1122
|
...t,
|
|
1123
1123
|
location: Dr.env.NODE_ENV !== "production",
|
|
1124
1124
|
jit: !0
|
|
1125
|
-
}), m =
|
|
1125
|
+
}), m = bt(a);
|
|
1126
1126
|
return i ? m : qe[r] = m;
|
|
1127
1127
|
} else {
|
|
1128
1128
|
const n = e.cacheKey;
|
|
1129
1129
|
if (n) {
|
|
1130
1130
|
const r = qe[n];
|
|
1131
|
-
return r || (qe[n] =
|
|
1131
|
+
return r || (qe[n] = bt(e));
|
|
1132
1132
|
} else
|
|
1133
|
-
return
|
|
1133
|
+
return bt(e);
|
|
1134
1134
|
}
|
|
1135
1135
|
}
|
|
1136
1136
|
let Ve = null;
|
|
@@ -1227,8 +1227,8 @@ function so(e, t, n) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
return r;
|
|
1229
1229
|
}
|
|
1230
|
-
const
|
|
1231
|
-
|
|
1230
|
+
const ve = [];
|
|
1231
|
+
ve[
|
|
1232
1232
|
0
|
|
1233
1233
|
/* States.BEFORE_PATH */
|
|
1234
1234
|
] = {
|
|
@@ -1250,7 +1250,7 @@ ge[
|
|
|
1250
1250
|
/* States.AFTER_PATH */
|
|
1251
1251
|
]
|
|
1252
1252
|
};
|
|
1253
|
-
|
|
1253
|
+
ve[
|
|
1254
1254
|
1
|
|
1255
1255
|
/* States.IN_PATH */
|
|
1256
1256
|
] = {
|
|
@@ -1271,7 +1271,7 @@ ge[
|
|
|
1271
1271
|
/* States.AFTER_PATH */
|
|
1272
1272
|
]
|
|
1273
1273
|
};
|
|
1274
|
-
|
|
1274
|
+
ve[
|
|
1275
1275
|
2
|
|
1276
1276
|
/* States.BEFORE_IDENT */
|
|
1277
1277
|
] = {
|
|
@@ -1290,7 +1290,7 @@ ge[
|
|
|
1290
1290
|
/* Actions.APPEND */
|
|
1291
1291
|
]
|
|
1292
1292
|
};
|
|
1293
|
-
|
|
1293
|
+
ve[
|
|
1294
1294
|
3
|
|
1295
1295
|
/* States.IN_IDENT */
|
|
1296
1296
|
] = {
|
|
@@ -1325,7 +1325,7 @@ ge[
|
|
|
1325
1325
|
/* Actions.PUSH */
|
|
1326
1326
|
]
|
|
1327
1327
|
};
|
|
1328
|
-
|
|
1328
|
+
ve[
|
|
1329
1329
|
4
|
|
1330
1330
|
/* States.IN_SUB_PATH */
|
|
1331
1331
|
] = {
|
|
@@ -1356,7 +1356,7 @@ ge[
|
|
|
1356
1356
|
/* Actions.APPEND */
|
|
1357
1357
|
]
|
|
1358
1358
|
};
|
|
1359
|
-
|
|
1359
|
+
ve[
|
|
1360
1360
|
5
|
|
1361
1361
|
/* States.IN_SINGLE_QUOTE */
|
|
1362
1362
|
] = {
|
|
@@ -1372,7 +1372,7 @@ ge[
|
|
|
1372
1372
|
/* Actions.APPEND */
|
|
1373
1373
|
]
|
|
1374
1374
|
};
|
|
1375
|
-
|
|
1375
|
+
ve[
|
|
1376
1376
|
6
|
|
1377
1377
|
/* States.IN_DOUBLE_QUOTE */
|
|
1378
1378
|
] = {
|
|
@@ -1439,7 +1439,7 @@ function mo(e) {
|
|
|
1439
1439
|
}
|
|
1440
1440
|
function fo(e) {
|
|
1441
1441
|
const t = [];
|
|
1442
|
-
let n = -1, r = 0, o = 0, a, i, m, c,
|
|
1442
|
+
let n = -1, r = 0, o = 0, a, i, m, c, y, h, O;
|
|
1443
1443
|
const p = [];
|
|
1444
1444
|
p[
|
|
1445
1445
|
0
|
|
@@ -1487,7 +1487,7 @@ function fo(e) {
|
|
|
1487
1487
|
}
|
|
1488
1488
|
for (; r !== null; )
|
|
1489
1489
|
if (n++, a = e[n], !(a === "\\" && f())) {
|
|
1490
|
-
if (c = co(a), O =
|
|
1490
|
+
if (c = co(a), O = ve[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))))
|
|
1491
1491
|
return;
|
|
1492
1492
|
if (r === 7)
|
|
1493
1493
|
return t;
|
|
@@ -1514,7 +1514,7 @@ function po(e, t) {
|
|
|
1514
1514
|
return o;
|
|
1515
1515
|
}
|
|
1516
1516
|
const Eo = "10.0.5", rt = -1, et = "en-US", nn = "", rn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1517
|
-
function
|
|
1517
|
+
function yo() {
|
|
1518
1518
|
return {
|
|
1519
1519
|
upper: (e, t) => t === "text" && k(e) ? e.toUpperCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1520
1520
|
lower: (e, t) => t === "text" && k(e) ? e.toLowerCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
@@ -1522,15 +1522,15 @@ function bo() {
|
|
|
1522
1522
|
};
|
|
1523
1523
|
}
|
|
1524
1524
|
let Rn;
|
|
1525
|
-
function
|
|
1525
|
+
function go(e) {
|
|
1526
1526
|
Rn = e;
|
|
1527
1527
|
}
|
|
1528
1528
|
let An;
|
|
1529
|
-
function
|
|
1529
|
+
function vo(e) {
|
|
1530
1530
|
An = e;
|
|
1531
1531
|
}
|
|
1532
1532
|
let Ln;
|
|
1533
|
-
function
|
|
1533
|
+
function bo(e) {
|
|
1534
1534
|
Ln = e;
|
|
1535
1535
|
}
|
|
1536
1536
|
let On = null;
|
|
@@ -1543,7 +1543,7 @@ const on = (e) => {
|
|
|
1543
1543
|
}, Io = () => Cn;
|
|
1544
1544
|
let an = 0;
|
|
1545
1545
|
function No(e = {}) {
|
|
1546
|
-
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),
|
|
1546
|
+
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, v = 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, d = 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(), W = U(L.__meta) ? L.__meta : {};
|
|
1547
1547
|
an++;
|
|
1548
1548
|
const C = {
|
|
1549
1549
|
version: n,
|
|
@@ -1551,16 +1551,16 @@ function No(e = {}) {
|
|
|
1551
1551
|
locale: r,
|
|
1552
1552
|
fallbackLocale: a,
|
|
1553
1553
|
messages: i,
|
|
1554
|
-
modifiers:
|
|
1554
|
+
modifiers: y,
|
|
1555
1555
|
pluralRules: h,
|
|
1556
1556
|
missing: O,
|
|
1557
1557
|
missingWarn: p,
|
|
1558
1558
|
fallbackWarn: f,
|
|
1559
1559
|
fallbackFormat: S,
|
|
1560
1560
|
unresolving: T,
|
|
1561
|
-
postTranslation:
|
|
1561
|
+
postTranslation: g,
|
|
1562
1562
|
processor: u,
|
|
1563
|
-
warnHtmlMessage:
|
|
1563
|
+
warnHtmlMessage: v,
|
|
1564
1564
|
escapeParameter: N,
|
|
1565
1565
|
messageCompiler: E,
|
|
1566
1566
|
messageResolver: R,
|
|
@@ -1597,7 +1597,7 @@ function Ao(e, t) {
|
|
|
1597
1597
|
return !1;
|
|
1598
1598
|
}
|
|
1599
1599
|
function sn(e, ...t) {
|
|
1600
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __datetimeFormatters: m } = e, [c,
|
|
1600
|
+
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;
|
|
1601
1601
|
Q(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn;
|
|
1602
1602
|
const f = !!h.part, S = $t(e, h), T = i(
|
|
1603
1603
|
e,
|
|
@@ -1606,17 +1606,17 @@ function sn(e, ...t) {
|
|
|
1606
1606
|
S
|
|
1607
1607
|
);
|
|
1608
1608
|
if (!k(c) || c === "")
|
|
1609
|
-
return new Intl.DateTimeFormat(S, O).format(
|
|
1610
|
-
let
|
|
1609
|
+
return new Intl.DateTimeFormat(S, O).format(y);
|
|
1610
|
+
let g = {}, u, v = null;
|
|
1611
1611
|
const N = "datetime format";
|
|
1612
|
-
for (let A = 0; A < T.length && (u = T[A],
|
|
1612
|
+
for (let A = 0; A < T.length && (u = T[A], g = n[u] || {}, v = g[c], !M(v)); A++)
|
|
1613
1613
|
Ht(e, c, u, p, N);
|
|
1614
|
-
if (!M(
|
|
1614
|
+
if (!M(v) || !k(u))
|
|
1615
1615
|
return r ? rt : c;
|
|
1616
1616
|
let E = `${u}__${c}`;
|
|
1617
1617
|
tt(O) || (E = `${E}__${JSON.stringify(O)}`);
|
|
1618
1618
|
let R = m.get(E);
|
|
1619
|
-
return R || (R = new Intl.DateTimeFormat(u, te({},
|
|
1619
|
+
return R || (R = new Intl.DateTimeFormat(u, te({}, v, O)), m.set(E, R)), f ? R.formatToParts(y) : R.format(y);
|
|
1620
1620
|
}
|
|
1621
1621
|
const Sn = [
|
|
1622
1622
|
"localeMatcher",
|
|
@@ -1647,8 +1647,8 @@ function Rt(...e) {
|
|
|
1647
1647
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1648
1648
|
if (!c)
|
|
1649
1649
|
throw _e(fe.INVALID_ISO_DATE_ARGUMENT);
|
|
1650
|
-
const
|
|
1651
|
-
m = new Date(
|
|
1650
|
+
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();
|
|
1651
|
+
m = new Date(y);
|
|
1652
1652
|
try {
|
|
1653
1653
|
m.toISOString();
|
|
1654
1654
|
} catch {
|
|
@@ -1674,7 +1674,7 @@ function ln(e, t, n) {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
1676
|
function un(e, ...t) {
|
|
1677
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __numberFormatters: m } = e, [c,
|
|
1677
|
+
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;
|
|
1678
1678
|
Q(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn;
|
|
1679
1679
|
const f = !!h.part, S = $t(e, h), T = i(
|
|
1680
1680
|
e,
|
|
@@ -1683,17 +1683,17 @@ function un(e, ...t) {
|
|
|
1683
1683
|
S
|
|
1684
1684
|
);
|
|
1685
1685
|
if (!k(c) || c === "")
|
|
1686
|
-
return new Intl.NumberFormat(S, O).format(
|
|
1687
|
-
let
|
|
1686
|
+
return new Intl.NumberFormat(S, O).format(y);
|
|
1687
|
+
let g = {}, u, v = null;
|
|
1688
1688
|
const N = "number format";
|
|
1689
|
-
for (let A = 0; A < T.length && (u = T[A],
|
|
1689
|
+
for (let A = 0; A < T.length && (u = T[A], g = n[u] || {}, v = g[c], !M(v)); A++)
|
|
1690
1690
|
Ht(e, c, u, p, N);
|
|
1691
|
-
if (!M(
|
|
1691
|
+
if (!M(v) || !k(u))
|
|
1692
1692
|
return r ? rt : c;
|
|
1693
1693
|
let E = `${u}__${c}`;
|
|
1694
1694
|
tt(O) || (E = `${E}__${JSON.stringify(O)}`);
|
|
1695
1695
|
let R = m.get(E);
|
|
1696
|
-
return R || (R = new Intl.NumberFormat(u, te({},
|
|
1696
|
+
return R || (R = new Intl.NumberFormat(u, te({}, v, O)), m.set(E, R)), f ? R.formatToParts(y) : R.format(y);
|
|
1697
1697
|
}
|
|
1698
1698
|
const kn = [
|
|
1699
1699
|
"localeMatcher",
|
|
@@ -1748,20 +1748,20 @@ function Do(e, t) {
|
|
|
1748
1748
|
function wo(e = {}) {
|
|
1749
1749
|
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();
|
|
1750
1750
|
ee(e.pluralIndex) && Do(n, c);
|
|
1751
|
-
const
|
|
1752
|
-
function h(u,
|
|
1753
|
-
const N = Y(e.messages) ? e.messages(u, !!
|
|
1751
|
+
const y = (u) => c[u];
|
|
1752
|
+
function h(u, v) {
|
|
1753
|
+
const N = Y(e.messages) ? e.messages(u, !!v) : U(e.messages) ? e.messages[u] : !1;
|
|
1754
1754
|
return N || (e.parent ? e.parent.message(u) : Oo);
|
|
1755
1755
|
}
|
|
1756
|
-
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,
|
|
1756
|
+
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 = {
|
|
1757
1757
|
list: m,
|
|
1758
|
-
named:
|
|
1758
|
+
named: y,
|
|
1759
1759
|
plural: a,
|
|
1760
|
-
linked: (u, ...
|
|
1761
|
-
const [N, E] =
|
|
1760
|
+
linked: (u, ...v) => {
|
|
1761
|
+
const [N, E] = v;
|
|
1762
1762
|
let R = "text", A = "";
|
|
1763
|
-
|
|
1764
|
-
const d = h(u, !0)(
|
|
1763
|
+
v.length === 1 ? U(N) ? (A = N.modifier || A, R = N.type || R) : k(N) && (A = N || A) : v.length === 2 && (k(N) && (A = N || A), k(E) && (R = E || R));
|
|
1764
|
+
const d = h(u, !0)(g), L = (
|
|
1765
1765
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1766
1766
|
R === "vnode" && z(d) && A ? d[0] : d
|
|
1767
1767
|
);
|
|
@@ -1773,31 +1773,31 @@ function wo(e = {}) {
|
|
|
1773
1773
|
normalize: p,
|
|
1774
1774
|
values: te(H(), i, c)
|
|
1775
1775
|
};
|
|
1776
|
-
return
|
|
1776
|
+
return g;
|
|
1777
1777
|
}
|
|
1778
1778
|
const fn = () => "", re = (e) => Y(e);
|
|
1779
1779
|
function _n(e, ...t) {
|
|
1780
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: i, messages: m } = e, [c,
|
|
1781
|
-
p && Fo(
|
|
1782
|
-
let [u,
|
|
1780
|
+
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);
|
|
1781
|
+
p && Fo(y);
|
|
1782
|
+
let [u, v, N] = f ? [
|
|
1783
1783
|
c,
|
|
1784
|
-
|
|
1785
|
-
m[
|
|
1786
|
-
] : Pn(e, c,
|
|
1787
|
-
if (!f && !(k(E) || Se(E) || re(E)) && T && (E = S, R = E), !f && (!(k(E) || Se(E) || re(E)) || !k(
|
|
1784
|
+
g,
|
|
1785
|
+
m[g] || H()
|
|
1786
|
+
] : Pn(e, c, g, i, O, h), E = u, R = c;
|
|
1787
|
+
if (!f && !(k(E) || Se(E) || re(E)) && T && (E = S, R = E), !f && (!(k(E) || Se(E) || re(E)) || !k(v)))
|
|
1788
1788
|
return o ? rt : c;
|
|
1789
1789
|
let A = !1;
|
|
1790
1790
|
const d = () => {
|
|
1791
1791
|
A = !0;
|
|
1792
|
-
}, L = re(E) ? E : Dn(e, c,
|
|
1792
|
+
}, L = re(E) ? E : Dn(e, c, v, E, R, d);
|
|
1793
1793
|
if (A)
|
|
1794
1794
|
return E;
|
|
1795
|
-
const P = Vo(e,
|
|
1795
|
+
const P = Vo(e, v, N, y), w = wo(P), W = Mo(e, L, w), C = r ? r(W, c) : W;
|
|
1796
1796
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1797
1797
|
const Ne = {
|
|
1798
1798
|
timestamp: Date.now(),
|
|
1799
1799
|
key: k(c) ? c : re(E) ? E.key : "",
|
|
1800
|
-
locale:
|
|
1800
|
+
locale: v || (re(E) ? E.locale : ""),
|
|
1801
1801
|
format: k(E) ? E : re(E) ? E.source : "",
|
|
1802
1802
|
message: C
|
|
1803
1803
|
};
|
|
@@ -1811,12 +1811,12 @@ function Fo(e) {
|
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
1813
|
function Pn(e, t, n, r, o, a) {
|
|
1814
|
-
const { messages: i, onWarn: m, messageResolver: c, localeFallbacker:
|
|
1814
|
+
const { messages: i, onWarn: m, messageResolver: c, localeFallbacker: y } = e, h = y(e, r, n);
|
|
1815
1815
|
let O = H(), p, f = null;
|
|
1816
1816
|
const S = "translate";
|
|
1817
1817
|
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++)
|
|
1818
1818
|
if (!Ao(p, h)) {
|
|
1819
|
-
const
|
|
1819
|
+
const g = Ht(
|
|
1820
1820
|
e,
|
|
1821
1821
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1822
1822
|
t,
|
|
@@ -1824,19 +1824,19 @@ function Pn(e, t, n, r, o, a) {
|
|
|
1824
1824
|
a,
|
|
1825
1825
|
S
|
|
1826
1826
|
);
|
|
1827
|
-
|
|
1827
|
+
g !== t && (f = g);
|
|
1828
1828
|
}
|
|
1829
1829
|
return [f, p, O];
|
|
1830
1830
|
}
|
|
1831
1831
|
function Dn(e, t, n, r, o, a) {
|
|
1832
1832
|
const { messageCompiler: i, warnHtmlMessage: m } = e;
|
|
1833
1833
|
if (re(r)) {
|
|
1834
|
-
const
|
|
1835
|
-
return
|
|
1834
|
+
const y = r;
|
|
1835
|
+
return y.locale = y.locale || n, y.key = y.key || t, y;
|
|
1836
1836
|
}
|
|
1837
1837
|
if (i == null) {
|
|
1838
|
-
const
|
|
1839
|
-
return
|
|
1838
|
+
const y = () => r;
|
|
1839
|
+
return y.locale = n, y.key = t, y;
|
|
1840
1840
|
}
|
|
1841
1841
|
const c = i(r, Uo(e, n, o, r, m, a));
|
|
1842
1842
|
return c.locale = n, c.key = t, c.source = r, c;
|
|
@@ -1863,37 +1863,37 @@ function Uo(e, t, n, r, o, a) {
|
|
|
1863
1863
|
};
|
|
1864
1864
|
}
|
|
1865
1865
|
function Vo(e, t, n, r) {
|
|
1866
|
-
const { modifiers: o, pluralRules: a, messageResolver: i, fallbackLocale: m, fallbackWarn: c, missingWarn:
|
|
1866
|
+
const { modifiers: o, pluralRules: a, messageResolver: i, fallbackLocale: m, fallbackWarn: c, missingWarn: y, fallbackContext: h } = e, p = {
|
|
1867
1867
|
locale: t,
|
|
1868
1868
|
modifiers: o,
|
|
1869
1869
|
pluralRules: a,
|
|
1870
1870
|
messages: (f, S) => {
|
|
1871
1871
|
let T = i(n, f);
|
|
1872
1872
|
if (T == null && (h || S)) {
|
|
1873
|
-
const [, ,
|
|
1873
|
+
const [, , g] = Pn(
|
|
1874
1874
|
h || e,
|
|
1875
1875
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1876
1876
|
f,
|
|
1877
1877
|
t,
|
|
1878
1878
|
m,
|
|
1879
1879
|
c,
|
|
1880
|
-
|
|
1880
|
+
y
|
|
1881
1881
|
);
|
|
1882
|
-
T = i(
|
|
1882
|
+
T = i(g, f);
|
|
1883
1883
|
}
|
|
1884
1884
|
if (k(T) || Se(T)) {
|
|
1885
|
-
let
|
|
1886
|
-
const
|
|
1887
|
-
|
|
1885
|
+
let g = !1;
|
|
1886
|
+
const v = Dn(e, f, t, T, f, () => {
|
|
1887
|
+
g = !0;
|
|
1888
1888
|
});
|
|
1889
|
-
return
|
|
1889
|
+
return g ? fn : v;
|
|
1890
1890
|
} else return re(T) ? T : fn;
|
|
1891
1891
|
}
|
|
1892
1892
|
};
|
|
1893
1893
|
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;
|
|
1894
1894
|
}
|
|
1895
1895
|
wr();
|
|
1896
|
-
var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/
|
|
1896
|
+
var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_de7c0d4e-2c5b-497d-88c8-86fc8059e463", 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_de7c0d4e-2c5b-497d-88c8-86fc8059e463", 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.7.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: "1812", ACTIONS_ORCHESTRATION_ID: "b380ebcf-e45d-4e6c-8bcf-901f5d32573a.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: "20260823.283.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_de7c0d4e-2c5b-497d-88c8-86fc8059e463", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12713", 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.14/x64", GITHUB_RUN_ID: "33477380322", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapi.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "fa2a3902adfffbc4563bee939d564c3f0a50f30e", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.7/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_7634e9c2-b36c-431b-9401-aa38f9c26571", INVOCATION_ID: "48ac2661a69a42faad72c01b61206dc6", 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: "184", 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 1000131128", 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.73", 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: "fa2a3902adfffbc4563bee939d564c3f0a50f30e", 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_de7c0d4e-2c5b-497d-88c8-86fc8059e463", 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_de7c0d4e-2c5b-497d-88c8-86fc8059e463", 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", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_de7c0d4e-2c5b-497d-88c8-86fc8059e463", 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_de7c0d4e-2c5b-497d-88c8-86fc8059e463", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
1897
1897
|
const Ho = "10.0.5";
|
|
1898
1898
|
function Go() {
|
|
1899
1899
|
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);
|
|
@@ -1940,8 +1940,8 @@ function Fn(e, t) {
|
|
|
1940
1940
|
const { messages: n, __i18n: r, messageResolver: o, flatJson: a } = t, i = M(n) ? n : z(r) ? H() : { [e]: H() };
|
|
1941
1941
|
if (z(r) && r.forEach((m) => {
|
|
1942
1942
|
if ("locale" in m && "resource" in m) {
|
|
1943
|
-
const { locale: c, resource:
|
|
1944
|
-
c ? (i[c] = i[c] || H(), Je(
|
|
1943
|
+
const { locale: c, resource: y } = m;
|
|
1944
|
+
c ? (i[c] = i[c] || H(), Je(y, i[c])) : Je(y, i);
|
|
1945
1945
|
} else
|
|
1946
1946
|
k(m) && Je(JSON.parse(m), i);
|
|
1947
1947
|
}), o == null && a)
|
|
@@ -1981,8 +1981,8 @@ function dn(e) {
|
|
|
1981
1981
|
return X(Wn, null, e, 0);
|
|
1982
1982
|
}
|
|
1983
1983
|
const pn = "__INTLIFY_META__", En = () => [], xo = () => !1;
|
|
1984
|
-
let
|
|
1985
|
-
function
|
|
1984
|
+
let yn = 0;
|
|
1985
|
+
function gn(e) {
|
|
1986
1986
|
return (t, n, r, o) => e(n, r, Dt() || void 0, o);
|
|
1987
1987
|
}
|
|
1988
1988
|
const Ko = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
@@ -1999,8 +1999,8 @@ function Yo(e = {}) {
|
|
|
1999
1999
|
), c = a(
|
|
2000
2000
|
// prettier-ignore
|
|
2001
2001
|
t && i ? t.fallbackLocale.value : k(e.fallbackLocale) || z(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
2002
|
-
),
|
|
2003
|
-
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,
|
|
2002
|
+
), y = a(Fn(m.value, e)), h = a(M(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), O = a(M(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
2003
|
+
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, v = Y(e.postTranslation) ? e.postTranslation : null, N = t ? t.warnHtmlMessage : Q(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
|
|
2004
2004
|
const R = t ? t.modifiers : M(e.modifiers) ? e.modifiers : {};
|
|
2005
2005
|
let A = e.pluralRules || t && t.pluralRules, d;
|
|
2006
2006
|
d = (() => {
|
|
@@ -2009,7 +2009,7 @@ function Yo(e = {}) {
|
|
|
2009
2009
|
version: Ho,
|
|
2010
2010
|
locale: m.value,
|
|
2011
2011
|
fallbackLocale: c.value,
|
|
2012
|
-
messages:
|
|
2012
|
+
messages: y.value,
|
|
2013
2013
|
modifiers: R,
|
|
2014
2014
|
pluralRules: A,
|
|
2015
2015
|
missing: u === null ? void 0 : u,
|
|
@@ -2017,7 +2017,7 @@ function Yo(e = {}) {
|
|
|
2017
2017
|
fallbackWarn: f,
|
|
2018
2018
|
fallbackFormat: T,
|
|
2019
2019
|
unresolving: !0,
|
|
2020
|
-
postTranslation:
|
|
2020
|
+
postTranslation: v === null ? void 0 : v,
|
|
2021
2021
|
warnHtmlMessage: N,
|
|
2022
2022
|
escapeParameter: E,
|
|
2023
2023
|
messageResolver: e.messageResolver,
|
|
@@ -2032,7 +2032,7 @@ function Yo(e = {}) {
|
|
|
2032
2032
|
return [
|
|
2033
2033
|
m.value,
|
|
2034
2034
|
c.value,
|
|
2035
|
-
|
|
2035
|
+
y.value,
|
|
2036
2036
|
h.value,
|
|
2037
2037
|
O.value
|
|
2038
2038
|
];
|
|
@@ -2047,20 +2047,20 @@ function Yo(e = {}) {
|
|
|
2047
2047
|
set: (_) => {
|
|
2048
2048
|
c.value = _, d.fallbackLocale = c.value, we(d, m.value, _);
|
|
2049
2049
|
}
|
|
2050
|
-
}), C = B(() =>
|
|
2050
|
+
}), C = B(() => y.value), Ne = /* @__PURE__ */ B(() => h.value), ot = /* @__PURE__ */ B(() => O.value);
|
|
2051
2051
|
function at() {
|
|
2052
|
-
return Y(
|
|
2052
|
+
return Y(v) ? v : null;
|
|
2053
2053
|
}
|
|
2054
2054
|
function st(_) {
|
|
2055
|
-
|
|
2055
|
+
v = _, d.postTranslation = _;
|
|
2056
2056
|
}
|
|
2057
2057
|
function lt() {
|
|
2058
|
-
return
|
|
2058
|
+
return g;
|
|
2059
2059
|
}
|
|
2060
2060
|
function ut(_) {
|
|
2061
|
-
_ !== null && (u =
|
|
2061
|
+
_ !== null && (u = gn(_)), g = _, d.missing = u;
|
|
2062
2062
|
}
|
|
2063
|
-
const ce = (_, I, G, J,
|
|
2063
|
+
const ce = (_, I, G, J, be, Ye) => {
|
|
2064
2064
|
P();
|
|
2065
2065
|
let Le;
|
|
2066
2066
|
try {
|
|
@@ -2071,7 +2071,7 @@ function Yo(e = {}) {
|
|
|
2071
2071
|
if (G !== "translate exists" && // for not `te` (e.g `t`)
|
|
2072
2072
|
ee(Le) && Le === rt || G === "translate exists" && !Le) {
|
|
2073
2073
|
const [$n, Va] = I();
|
|
2074
|
-
return t && S ? J(t) :
|
|
2074
|
+
return t && S ? J(t) : be($n);
|
|
2075
2075
|
} else {
|
|
2076
2076
|
if (Ye(Le))
|
|
2077
2077
|
return Le;
|
|
@@ -2126,15 +2126,15 @@ function Yo(e = {}) {
|
|
|
2126
2126
|
return ce(() => {
|
|
2127
2127
|
if (!_)
|
|
2128
2128
|
return !1;
|
|
2129
|
-
const G = k(I) ? I : m.value, J = Re(G),
|
|
2130
|
-
return Se(
|
|
2129
|
+
const G = k(I) ? I : m.value, J = Re(G), be = d.messageResolver(J, _);
|
|
2130
|
+
return Se(be) || re(be) || k(be);
|
|
2131
2131
|
}, () => [_], "translate exists", (G) => Reflect.apply(G.te, G, [_, I]), xo, (G) => Q(G));
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function yt(_) {
|
|
2134
2134
|
let I = null;
|
|
2135
2135
|
const G = Nn(d, c.value, m.value);
|
|
2136
2136
|
for (let J = 0; J < G.length; J++) {
|
|
2137
|
-
const
|
|
2137
|
+
const be = y.value[G[J]] || {}, Ye = d.messageResolver(be, _);
|
|
2138
2138
|
if (Ye != null) {
|
|
2139
2139
|
I = Ye;
|
|
2140
2140
|
break;
|
|
@@ -2143,11 +2143,11 @@ function Yo(e = {}) {
|
|
|
2143
2143
|
return I;
|
|
2144
2144
|
}
|
|
2145
2145
|
function Pe(_) {
|
|
2146
|
-
const I =
|
|
2146
|
+
const I = yt(_);
|
|
2147
2147
|
return I ?? (t ? t.tm(_) || {} : {});
|
|
2148
2148
|
}
|
|
2149
2149
|
function Re(_) {
|
|
2150
|
-
return
|
|
2150
|
+
return y.value[_] || {};
|
|
2151
2151
|
}
|
|
2152
2152
|
function Ae(_, I) {
|
|
2153
2153
|
if (o) {
|
|
@@ -2156,17 +2156,17 @@ function Yo(e = {}) {
|
|
|
2156
2156
|
le(G, J) && He(G[J]);
|
|
2157
2157
|
I = G[_];
|
|
2158
2158
|
}
|
|
2159
|
-
|
|
2159
|
+
y.value[_] = I, d.messages = y.value;
|
|
2160
2160
|
}
|
|
2161
2161
|
function De(_, I) {
|
|
2162
|
-
|
|
2162
|
+
y.value[_] = y.value[_] || {};
|
|
2163
2163
|
const G = { [_]: I };
|
|
2164
2164
|
if (o)
|
|
2165
2165
|
for (const J in G)
|
|
2166
2166
|
le(G, J) && He(G[J]);
|
|
2167
|
-
I = G[_], Je(I,
|
|
2167
|
+
I = G[_], Je(I, y.value[_]), d.messages = y.value;
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2169
|
+
function gt(_) {
|
|
2170
2170
|
return h.value[_] || {};
|
|
2171
2171
|
}
|
|
2172
2172
|
function s(_, I) {
|
|
@@ -2175,7 +2175,7 @@ function Yo(e = {}) {
|
|
|
2175
2175
|
function l(_, I) {
|
|
2176
2176
|
h.value[_] = te(h.value[_] || {}, I), d.datetimeFormats = h.value, ln(d, _, I);
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2178
|
+
function b(_) {
|
|
2179
2179
|
return O.value[_] || {};
|
|
2180
2180
|
}
|
|
2181
2181
|
function D(_, I) {
|
|
@@ -2184,13 +2184,13 @@ function Yo(e = {}) {
|
|
|
2184
2184
|
function q(_, I) {
|
|
2185
2185
|
O.value[_] = te(O.value[_] || {}, I), d.numberFormats = O.value, cn(d, _, I);
|
|
2186
2186
|
}
|
|
2187
|
-
|
|
2187
|
+
yn++, t && Yt && (Ze(t.locale, (_) => {
|
|
2188
2188
|
i && (m.value = _, d.locale = _, we(d, m.value, c.value));
|
|
2189
2189
|
}), Ze(t.fallbackLocale, (_) => {
|
|
2190
2190
|
i && (c.value = _, d.fallbackLocale = _, we(d, m.value, c.value));
|
|
2191
2191
|
}));
|
|
2192
2192
|
const F = {
|
|
2193
|
-
id:
|
|
2193
|
+
id: yn,
|
|
2194
2194
|
locale: w,
|
|
2195
2195
|
fallbackLocale: W,
|
|
2196
2196
|
get inheritLocale() {
|
|
@@ -2200,7 +2200,7 @@ function Yo(e = {}) {
|
|
|
2200
2200
|
i = _, _ && t && (m.value = t.locale.value, c.value = t.fallbackLocale.value, we(d, m.value, c.value));
|
|
2201
2201
|
},
|
|
2202
2202
|
get availableLocales() {
|
|
2203
|
-
return Object.keys(
|
|
2203
|
+
return Object.keys(y.value).sort();
|
|
2204
2204
|
},
|
|
2205
2205
|
messages: C,
|
|
2206
2206
|
get modifiers() {
|
|
@@ -2258,7 +2258,7 @@ function Yo(e = {}) {
|
|
|
2258
2258
|
setMissingHandler: ut,
|
|
2259
2259
|
[Bo]: pt
|
|
2260
2260
|
};
|
|
2261
|
-
return F.datetimeFormats = Ne, F.numberFormats = ot, F.rt = xe, F.te = Et, F.tm = Pe, F.d = it, F.n = ct, F.getDateTimeFormat =
|
|
2261
|
+
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 = b, F.setNumberFormat = D, F.mergeNumberFormat = q, F[wn] = n, F[Ot] = _t, F[Ct] = dt, F[St] = Ke, F;
|
|
2262
2262
|
}
|
|
2263
2263
|
const Gt = {
|
|
2264
2264
|
tag: {
|
|
@@ -2311,13 +2311,13 @@ function Vn(e, t, n, r) {
|
|
|
2311
2311
|
let m = H();
|
|
2312
2312
|
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()));
|
|
2313
2313
|
const c = r(e.value, i, m);
|
|
2314
|
-
let
|
|
2315
|
-
z(c) ?
|
|
2314
|
+
let y = [i.key];
|
|
2315
|
+
z(c) ? y = c.map((p, f) => {
|
|
2316
2316
|
const S = o[p.type], T = S ? S({ [p.type]: p.value, index: f, parts: c }) : [p.value];
|
|
2317
2317
|
return Xo(T) && (T[0].key = `${p.type}-${f}`), T;
|
|
2318
|
-
}) : k(c) && (
|
|
2318
|
+
}) : k(c) && (y = [c]);
|
|
2319
2319
|
const h = te(H(), a), O = k(e.tag) || U(e.tag) ? e.tag : Un();
|
|
2320
|
-
return hn(O, h,
|
|
2320
|
+
return hn(O, h, y);
|
|
2321
2321
|
};
|
|
2322
2322
|
}
|
|
2323
2323
|
te({
|
|
@@ -2394,7 +2394,7 @@ function ea(e, t = !1) {
|
|
|
2394
2394
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2395
2395
|
}
|
|
2396
2396
|
function ta(e, t, n) {
|
|
2397
|
-
|
|
2397
|
+
bn(() => {
|
|
2398
2398
|
}, t), Bn(() => {
|
|
2399
2399
|
const r = n;
|
|
2400
2400
|
e.__deleteInstance(t);
|
|
@@ -2403,9 +2403,9 @@ function ta(e, t, n) {
|
|
|
2403
2403
|
}, t);
|
|
2404
2404
|
}
|
|
2405
2405
|
Go();
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2406
|
+
go(Zr);
|
|
2407
|
+
vo(po);
|
|
2408
|
+
bo(Nn);
|
|
2409
2409
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2410
2410
|
const e = Te();
|
|
2411
2411
|
e.__INTLIFY__ = !0, zr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
@@ -2497,8 +2497,8 @@ function aa() {
|
|
|
2497
2497
|
}
|
|
2498
2498
|
function qa(e = {}) {
|
|
2499
2499
|
const t = B(() => {
|
|
2500
|
-
var c,
|
|
2501
|
-
const i = ((c = e.menuItems) == null ? void 0 : c.value) || [], m = ((
|
|
2500
|
+
var c, y;
|
|
2501
|
+
const i = ((c = e.menuItems) == null ? void 0 : c.value) || [], m = ((y = e.categories) == null ? void 0 : y.value) || [];
|
|
2502
2502
|
return [
|
|
2503
2503
|
{
|
|
2504
2504
|
type: "string",
|
|
@@ -2536,8 +2536,8 @@ function qa(e = {}) {
|
|
|
2536
2536
|
const m = Kt.cloneDeep(i);
|
|
2537
2537
|
return m != null && m.rules && (m.rules = m.rules.map((c) => {
|
|
2538
2538
|
if ("property" in c && c.property === "category" && Array.isArray(c.value)) {
|
|
2539
|
-
const
|
|
2540
|
-
return { ...c, value:
|
|
2539
|
+
const y = c.value.map((h) => r.value[h]);
|
|
2540
|
+
return { ...c, value: y };
|
|
2541
2541
|
}
|
|
2542
2542
|
return c;
|
|
2543
2543
|
})), m;
|
|
@@ -2546,8 +2546,8 @@ function qa(e = {}) {
|
|
|
2546
2546
|
const m = Kt.cloneDeep(i);
|
|
2547
2547
|
return m != null && m.rules && (m.rules = m.rules.map((c) => {
|
|
2548
2548
|
if ("property" in c && c.property === "category" && Array.isArray(c.value)) {
|
|
2549
|
-
const
|
|
2550
|
-
return { ...c, value:
|
|
2549
|
+
const y = c.value.map((h) => n.value[h]);
|
|
2550
|
+
return { ...c, value: y };
|
|
2551
2551
|
}
|
|
2552
2552
|
return c;
|
|
2553
2553
|
})), m;
|
|
@@ -2566,7 +2566,7 @@ const sa = {
|
|
|
2566
2566
|
class: "break-all fm-typo-en-body-lg-400 line-clamp-1"
|
|
2567
2567
|
}, ia = {
|
|
2568
2568
|
class: "flex"
|
|
2569
|
-
},
|
|
2569
|
+
}, vn = /* @__PURE__ */ ie({
|
|
2570
2570
|
__name: "RuleConditionSelector",
|
|
2571
2571
|
props: {
|
|
2572
2572
|
ruleKey: {
|
|
@@ -2606,13 +2606,13 @@ const sa = {
|
|
|
2606
2606
|
} = xt({
|
|
2607
2607
|
valueSource: B(() => a.state.menu.modules.item || []),
|
|
2608
2608
|
entity: "item"
|
|
2609
|
-
}), c = oa(),
|
|
2609
|
+
}), c = oa(), y = aa(), h = oe(r.ruleKey), O = B(() => [...c.map((d) => ({
|
|
2610
2610
|
label: d.label,
|
|
2611
2611
|
value: `restaurant_attr_${d.value}`
|
|
2612
2612
|
})), ...i.value.map((d) => ({
|
|
2613
2613
|
label: `Restaurant ${d.key}`,
|
|
2614
2614
|
value: `restaurant_custom_${d.key}`
|
|
2615
|
-
})), ...
|
|
2615
|
+
})), ...y.map((d) => ({
|
|
2616
2616
|
label: d.label,
|
|
2617
2617
|
value: `item_attr_${d.value}`
|
|
2618
2618
|
})), ...m.value.map((d) => ({
|
|
@@ -2633,7 +2633,7 @@ const sa = {
|
|
|
2633
2633
|
value: w
|
|
2634
2634
|
}));
|
|
2635
2635
|
} else if (d.startsWith("item_attr_")) {
|
|
2636
|
-
const L = d.replace("item_attr_", ""), P =
|
|
2636
|
+
const L = d.replace("item_attr_", ""), P = y.find((w) => w.value === L);
|
|
2637
2637
|
if (P && Array.isArray(P.options))
|
|
2638
2638
|
return P.options;
|
|
2639
2639
|
} else if (d.startsWith("item_custom_")) {
|
|
@@ -2654,10 +2654,10 @@ const sa = {
|
|
|
2654
2654
|
}, {
|
|
2655
2655
|
label: n("menu.rule_groups.condition_view.operator.starts_with"),
|
|
2656
2656
|
value: "$startsWith"
|
|
2657
|
-
}],
|
|
2657
|
+
}], g = oe(""), u = oe(!1), v = B(() => {
|
|
2658
2658
|
const d = f.value, L = Array.isArray(p.value) ? p.value : [], P = L.map((W) => d.find((C) => C.value === W)).filter(Boolean);
|
|
2659
2659
|
let w = [];
|
|
2660
|
-
if (
|
|
2660
|
+
if (g.value ? w = d.filter((W) => W.label.toLowerCase().includes(g.value.toLowerCase()) && !L.includes(W.value)) : w = d.filter((W) => !L.includes(W.value)), u.value) {
|
|
2661
2661
|
const W = P.map((C) => ({
|
|
2662
2662
|
...C,
|
|
2663
2663
|
disabled: !0
|
|
@@ -2667,7 +2667,7 @@ const sa = {
|
|
|
2667
2667
|
return [...P, ...w];
|
|
2668
2668
|
}), N = B(() => {
|
|
2669
2669
|
let d = O.value;
|
|
2670
|
-
return d = d.filter((L) => !r.selectedKeys.includes(L.value) || L.value === h.value),
|
|
2670
|
+
return d = d.filter((L) => !r.selectedKeys.includes(L.value) || L.value === h.value), g.value ? d.filter((L) => L.label.toLowerCase().includes(g.value.toLowerCase())) : d;
|
|
2671
2671
|
});
|
|
2672
2672
|
Ze(() => h.value, (d) => {
|
|
2673
2673
|
p.value = [];
|
|
@@ -2738,8 +2738,8 @@ const sa = {
|
|
|
2738
2738
|
}, {
|
|
2739
2739
|
"prepend-menu": ae(() => [X(P, {
|
|
2740
2740
|
class: "px-8",
|
|
2741
|
-
modelValue:
|
|
2742
|
-
"onUpdate:modelValue": L[0] || (L[0] = (C) =>
|
|
2741
|
+
modelValue: g.value,
|
|
2742
|
+
"onUpdate:modelValue": L[0] || (L[0] = (C) => g.value = C),
|
|
2743
2743
|
placeholder: K(n)("common.filter")
|
|
2744
2744
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
2745
2745
|
_: 1
|
|
@@ -2756,7 +2756,7 @@ const sa = {
|
|
|
2756
2756
|
}]),
|
|
2757
2757
|
modelValue: p.value,
|
|
2758
2758
|
"onUpdate:modelValue": [L[7] || (L[7] = (C) => p.value = C), L[8] || (L[8] = (C) => R("ruleValues", C))],
|
|
2759
|
-
items:
|
|
2759
|
+
items: v.value,
|
|
2760
2760
|
placeholder: K(n)("menu.rule_groups.condition_view.select_item"),
|
|
2761
2761
|
multiselect: "",
|
|
2762
2762
|
"hide-chips": "",
|
|
@@ -2766,8 +2766,8 @@ const sa = {
|
|
|
2766
2766
|
default: ae(() => [V("div", ua, Z(p.value.join(", ")), 1)]),
|
|
2767
2767
|
"prepend-menu": ae(() => [V("div", ia, [X(P, {
|
|
2768
2768
|
class: "px-8",
|
|
2769
|
-
modelValue:
|
|
2770
|
-
"onUpdate:modelValue": L[5] || (L[5] = (C) =>
|
|
2769
|
+
modelValue: g.value,
|
|
2770
|
+
"onUpdate:modelValue": L[5] || (L[5] = (C) => g.value = C),
|
|
2771
2771
|
placeholder: K(n)("common.filter")
|
|
2772
2772
|
}, null, 8, ["modelValue", "placeholder"]), X(W, {
|
|
2773
2773
|
variant: K(he).Tertiary,
|
|
@@ -2813,7 +2813,7 @@ const sa = {
|
|
|
2813
2813
|
}), c = B(() => {
|
|
2814
2814
|
var f;
|
|
2815
2815
|
return ((f = r.modelValue.itemRule) == null ? void 0 : f.itemCustomAttributes) ?? {};
|
|
2816
|
-
}),
|
|
2816
|
+
}), y = oe([...(a.value.rules ?? []).map((f) => ({
|
|
2817
2817
|
...f,
|
|
2818
2818
|
id: crypto.randomUUID(),
|
|
2819
2819
|
property: `restaurant_attr_${f.property}`
|
|
@@ -2830,22 +2830,22 @@ const sa = {
|
|
|
2830
2830
|
id: crypto.randomUUID(),
|
|
2831
2831
|
property: `item_custom_${f.property}`
|
|
2832
2832
|
}))]);
|
|
2833
|
-
|
|
2834
|
-
|
|
2833
|
+
bn(() => {
|
|
2834
|
+
y.value.length === 0 && p();
|
|
2835
2835
|
});
|
|
2836
2836
|
const h = oe([]);
|
|
2837
2837
|
function O(f) {
|
|
2838
2838
|
const S = f.uniqueKey.split("_"), T = S[0] === "newCondition";
|
|
2839
2839
|
if (f.action === "delete")
|
|
2840
2840
|
if (T)
|
|
2841
|
-
h.value = h.value.filter((
|
|
2841
|
+
h.value = h.value.filter((g) => g.key !== f.uniqueKey);
|
|
2842
2842
|
else {
|
|
2843
|
-
const
|
|
2844
|
-
|
|
2843
|
+
const g = S.slice(1).join("_");
|
|
2844
|
+
y.value = y.value.filter((u) => u.id !== g);
|
|
2845
2845
|
}
|
|
2846
2846
|
else if (f.action === "update")
|
|
2847
2847
|
if (T)
|
|
2848
|
-
h.value = h.value.filter((
|
|
2848
|
+
h.value = h.value.filter((g) => g.key !== f.uniqueKey), y.value.push({
|
|
2849
2849
|
id: crypto.randomUUID(),
|
|
2850
2850
|
property: f.ruleKey,
|
|
2851
2851
|
operator: f.operator,
|
|
@@ -2853,9 +2853,9 @@ const sa = {
|
|
|
2853
2853
|
type: f.type
|
|
2854
2854
|
});
|
|
2855
2855
|
else {
|
|
2856
|
-
const
|
|
2857
|
-
u !== -1 && (
|
|
2858
|
-
id:
|
|
2856
|
+
const g = S.slice(1).join("_"), u = y.value.findIndex((v) => v.id === g);
|
|
2857
|
+
u !== -1 && (y.value[u] = {
|
|
2858
|
+
id: g,
|
|
2859
2859
|
// Keep the same ID
|
|
2860
2860
|
property: f.ruleKey,
|
|
2861
2861
|
operator: f.operator,
|
|
@@ -2863,36 +2863,36 @@ const sa = {
|
|
|
2863
2863
|
type: f.type
|
|
2864
2864
|
});
|
|
2865
2865
|
}
|
|
2866
|
-
o("update:modelValue",
|
|
2866
|
+
o("update:modelValue", y.value);
|
|
2867
2867
|
}
|
|
2868
2868
|
function p() {
|
|
2869
2869
|
h.value.push({
|
|
2870
2870
|
key: `newCondition_${h.value.length}`
|
|
2871
2871
|
});
|
|
2872
2872
|
}
|
|
2873
|
-
return Ze(() =>
|
|
2873
|
+
return Ze(() => y.value.length + h.value.length, (f) => {
|
|
2874
2874
|
f === 0 && p();
|
|
2875
2875
|
}), (f, S) => {
|
|
2876
2876
|
const T = pe("FmButton");
|
|
2877
|
-
return x(), j("div", ca, [V("p", ma, Z(K(n)("menu.rule_groups.condition_view.condition")), 1), V("div", fa, [(x(!0), j(de, null, Me(
|
|
2878
|
-
key:
|
|
2879
|
-
}, [X(
|
|
2880
|
-
ruleKey:
|
|
2881
|
-
operator:
|
|
2882
|
-
values:
|
|
2883
|
-
"unique-key": `condition_${
|
|
2884
|
-
"selected-keys":
|
|
2877
|
+
return x(), j("div", ca, [V("p", ma, Z(K(n)("menu.rule_groups.condition_view.condition")), 1), V("div", fa, [(x(!0), j(de, null, Me(y.value, (g) => (x(), j("div", {
|
|
2878
|
+
key: g.id
|
|
2879
|
+
}, [X(vn, {
|
|
2880
|
+
ruleKey: g.property,
|
|
2881
|
+
operator: g.operator,
|
|
2882
|
+
values: g.value,
|
|
2883
|
+
"unique-key": `condition_${g.id}`,
|
|
2884
|
+
"selected-keys": y.value.map((u) => u.property),
|
|
2885
2885
|
"onUpdate:modelValue": S[0] || (S[0] = (u) => {
|
|
2886
2886
|
O(u);
|
|
2887
2887
|
})
|
|
2888
|
-
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (x(!0), j(de, null, Me(h.value, (
|
|
2889
|
-
key:
|
|
2890
|
-
}, [X(
|
|
2888
|
+
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (x(!0), j(de, null, Me(h.value, (g) => (x(), j("div", {
|
|
2889
|
+
key: g.key
|
|
2890
|
+
}, [X(vn, {
|
|
2891
2891
|
ruleKey: "",
|
|
2892
2892
|
operator: "",
|
|
2893
|
-
"unique-key":
|
|
2893
|
+
"unique-key": g.key,
|
|
2894
2894
|
values: [],
|
|
2895
|
-
"selected-keys":
|
|
2895
|
+
"selected-keys": y.value.map((u) => u.property),
|
|
2896
2896
|
"onUpdate:modelValue": S[1] || (S[1] = (u) => {
|
|
2897
2897
|
O(u);
|
|
2898
2898
|
})
|
|
@@ -2900,11 +2900,11 @@ const sa = {
|
|
|
2900
2900
|
variant: K(he).Plain,
|
|
2901
2901
|
"prepend-icon": "add",
|
|
2902
2902
|
label: K(n)("menu.rule_groups.condition_view.add_condition"),
|
|
2903
|
-
onClick: S[2] || (S[2] = se((
|
|
2903
|
+
onClick: S[2] || (S[2] = se((g) => p(), ["stop"]))
|
|
2904
2904
|
}, null, 8, ["variant", "label"])])]);
|
|
2905
2905
|
};
|
|
2906
2906
|
}
|
|
2907
|
-
}), da = { 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" },
|
|
2907
|
+
}), da = { 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" }, va = /* @__PURE__ */ ie({
|
|
2908
2908
|
__name: "RuleConditionListView",
|
|
2909
2909
|
props: {
|
|
2910
2910
|
number: {
|
|
@@ -2951,8 +2951,8 @@ const sa = {
|
|
|
2951
2951
|
return x(), j("div", da, [
|
|
2952
2952
|
V("p", pa, Z(e.number) + ".", 1),
|
|
2953
2953
|
V("div", Ea, [
|
|
2954
|
-
V("p",
|
|
2955
|
-
V("p",
|
|
2954
|
+
V("p", ya, Z(e.property), 1),
|
|
2955
|
+
V("p", ga, Z(r[e.operator]), 1),
|
|
2956
2956
|
X(i, {
|
|
2957
2957
|
trigger: "hover",
|
|
2958
2958
|
closeOnMouseLeave: ""
|
|
@@ -2985,7 +2985,7 @@ function Ja(e) {
|
|
|
2985
2985
|
function Qa(e) {
|
|
2986
2986
|
return Xn(e) ? null : Kn.build(e);
|
|
2987
2987
|
}
|
|
2988
|
-
const
|
|
2988
|
+
const ba = {
|
|
2989
2989
|
class: "flex items-center gap-24"
|
|
2990
2990
|
}, ha = {
|
|
2991
2991
|
key: 0,
|
|
@@ -3020,7 +3020,7 @@ const va = {
|
|
|
3020
3020
|
const c = B(() => {
|
|
3021
3021
|
var T;
|
|
3022
3022
|
return ((T = i.modelValue.restaurantRule) == null ? void 0 : T.restaurantAttributes) ?? {};
|
|
3023
|
-
}),
|
|
3023
|
+
}), y = B(() => {
|
|
3024
3024
|
var T;
|
|
3025
3025
|
return ((T = i.modelValue.restaurantRule) == null ? void 0 : T.restaurantCustomAttributes) ?? {};
|
|
3026
3026
|
}), h = B(() => {
|
|
@@ -3029,16 +3029,16 @@ const va = {
|
|
|
3029
3029
|
}), O = B(() => {
|
|
3030
3030
|
var T;
|
|
3031
3031
|
return ((T = i.modelValue.itemRule) == null ? void 0 : T.itemCustomAttributes) ?? {};
|
|
3032
|
-
}), p = oe([...c.value.rules ?? [], ...
|
|
3032
|
+
}), p = oe([...c.value.rules ?? [], ...y.value.rules ?? [], ...h.value.rules ?? [], ...O.value.rules ?? []]), f = oe([]);
|
|
3033
3033
|
function S() {
|
|
3034
3034
|
var E, R, A, d, L, P, w, W;
|
|
3035
|
-
const T = i.modelValue,
|
|
3035
|
+
const T = i.modelValue, g = [], u = [], v = [], N = [];
|
|
3036
3036
|
if (f.value.length === 0) {
|
|
3037
3037
|
a(!1);
|
|
3038
3038
|
return;
|
|
3039
3039
|
}
|
|
3040
3040
|
f.value.forEach((C) => {
|
|
3041
|
-
C.property.startsWith("restaurant_attr") ?
|
|
3041
|
+
C.property.startsWith("restaurant_attr") ? g.push({
|
|
3042
3042
|
property: C.property.replace("restaurant_attr_", ""),
|
|
3043
3043
|
operator: C.operator,
|
|
3044
3044
|
value: C.value,
|
|
@@ -3048,7 +3048,7 @@ const va = {
|
|
|
3048
3048
|
operator: C.operator,
|
|
3049
3049
|
value: C.value,
|
|
3050
3050
|
type: C.type
|
|
3051
|
-
}) : C.property.startsWith("item_attr") ?
|
|
3051
|
+
}) : C.property.startsWith("item_attr") ? v.push({
|
|
3052
3052
|
property: C.property.replace("item_attr_", ""),
|
|
3053
3053
|
operator: C.operator,
|
|
3054
3054
|
value: C.value,
|
|
@@ -3062,7 +3062,7 @@ const va = {
|
|
|
3062
3062
|
}), T.restaurantRule = {
|
|
3063
3063
|
restaurantAttributes: {
|
|
3064
3064
|
logic: ((R = (E = T.restaurantRule) == null ? void 0 : E.restaurantAttributes) == null ? void 0 : R.logic) ?? "AND",
|
|
3065
|
-
rules:
|
|
3065
|
+
rules: g
|
|
3066
3066
|
},
|
|
3067
3067
|
restaurantCustomAttributes: {
|
|
3068
3068
|
logic: ((d = (A = T.restaurantRule) == null ? void 0 : A.restaurantCustomAttributes) == null ? void 0 : d.logic) ?? "AND",
|
|
@@ -3071,7 +3071,7 @@ const va = {
|
|
|
3071
3071
|
}, T.itemRule = {
|
|
3072
3072
|
itemAttributes: {
|
|
3073
3073
|
logic: ((P = (L = T.itemRule) == null ? void 0 : L.itemAttributes) == null ? void 0 : P.logic) ?? "AND",
|
|
3074
|
-
rules:
|
|
3074
|
+
rules: v
|
|
3075
3075
|
},
|
|
3076
3076
|
itemCustomAttributes: {
|
|
3077
3077
|
logic: ((W = (w = T.itemRule) == null ? void 0 : w.itemCustomAttributes) == null ? void 0 : W.logic) ?? "AND",
|
|
@@ -3081,13 +3081,13 @@ const va = {
|
|
|
3081
3081
|
menuRule: T
|
|
3082
3082
|
});
|
|
3083
3083
|
}
|
|
3084
|
-
return (T,
|
|
3085
|
-
const u = pe("FmButton"),
|
|
3084
|
+
return (T, g) => {
|
|
3085
|
+
const u = pe("FmButton"), v = pe("FmSideSheet");
|
|
3086
3086
|
return x(), j(de, null, [Qe(T.$slots, "default", {
|
|
3087
3087
|
trigger: a
|
|
3088
|
-
}), X(
|
|
3088
|
+
}), X(v, {
|
|
3089
3089
|
modelValue: o.value,
|
|
3090
|
-
"onUpdate:modelValue":
|
|
3090
|
+
"onUpdate:modelValue": g[3] || (g[3] = (N) => o.value = N),
|
|
3091
3091
|
"max-width": 760,
|
|
3092
3092
|
"close-button": !1,
|
|
3093
3093
|
"is-container": K(qn).FmForm,
|
|
@@ -3096,10 +3096,10 @@ const va = {
|
|
|
3096
3096
|
blameFormChildOnValidationFailed: !0
|
|
3097
3097
|
}
|
|
3098
3098
|
}, {
|
|
3099
|
-
"side-sheet-header": ae(() => [V("div",
|
|
3099
|
+
"side-sheet-header": ae(() => [V("div", ba, [X(u, {
|
|
3100
3100
|
variant: K(he).Tertiary,
|
|
3101
3101
|
"prepend-icon": "arrow_back",
|
|
3102
|
-
onClick:
|
|
3102
|
+
onClick: g[0] || (g[0] = se((N) => a(), ["stop"]))
|
|
3103
3103
|
}, 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))])]),
|
|
3104
3104
|
"side-sheet-footer": ae(() => [V("div", Ia, [X(u, {
|
|
3105
3105
|
variant: "primary",
|
|
@@ -3108,12 +3108,12 @@ const va = {
|
|
|
3108
3108
|
}, null, 8, ["label"]), X(u, {
|
|
3109
3109
|
variant: "secondary",
|
|
3110
3110
|
label: K(r)("common.cancel"),
|
|
3111
|
-
onClick:
|
|
3111
|
+
onClick: g[2] || (g[2] = se((N) => a(!1), ["stop"]))
|
|
3112
3112
|
}, null, 8, ["label"])])]),
|
|
3113
3113
|
default: ae(() => [X(_a, {
|
|
3114
3114
|
class: "p-16",
|
|
3115
3115
|
"model-value": T.modelValue,
|
|
3116
|
-
"onUpdate:modelValue":
|
|
3116
|
+
"onUpdate:modelValue": g[1] || (g[1] = (N) => {
|
|
3117
3117
|
f.value = N;
|
|
3118
3118
|
})
|
|
3119
3119
|
}, null, 8, ["model-value"])]),
|
|
@@ -3181,16 +3181,16 @@ const va = {
|
|
|
3181
3181
|
const {
|
|
3182
3182
|
t: n
|
|
3183
3183
|
} = Be(), r = e, o = {
|
|
3184
|
-
[
|
|
3185
|
-
[
|
|
3186
|
-
[
|
|
3184
|
+
[vt.enum.ALL]: "ALL",
|
|
3185
|
+
[vt.enum.POS_ONLY]: "POS ONLY",
|
|
3186
|
+
[vt.enum.NONE]: "NONE"
|
|
3187
3187
|
}, a = t, i = oe(), m = B(() => {
|
|
3188
3188
|
var p, f;
|
|
3189
3189
|
return ((f = (p = r.modelValue.restaurantRule) == null ? void 0 : p.restaurantAttributes) == null ? void 0 : f.rules) ?? [];
|
|
3190
3190
|
}), c = B(() => {
|
|
3191
3191
|
var p, f;
|
|
3192
3192
|
return ((f = (p = r.modelValue.restaurantRule) == null ? void 0 : p.restaurantCustomAttributes) == null ? void 0 : f.rules) ?? [];
|
|
3193
|
-
}),
|
|
3193
|
+
}), y = B(() => {
|
|
3194
3194
|
var p, f;
|
|
3195
3195
|
return ((f = (p = r.modelValue.itemRule) == null ? void 0 : p.itemAttributes) == null ? void 0 : f.rules) ?? [];
|
|
3196
3196
|
}), h = B(() => {
|
|
@@ -3202,7 +3202,7 @@ const va = {
|
|
|
3202
3202
|
})), ...c.value.map((p) => ({
|
|
3203
3203
|
...p,
|
|
3204
3204
|
property: `${n("menu.catalog.usage.restaurant")} ${p.property}`
|
|
3205
|
-
})), ...
|
|
3205
|
+
})), ...y.value.map((p) => ({
|
|
3206
3206
|
...p,
|
|
3207
3207
|
property: `${n("menu.product.title")} ${p.property}`
|
|
3208
3208
|
})), ...h.value.map((p) => ({
|
|
@@ -3217,25 +3217,25 @@ const va = {
|
|
|
3217
3217
|
class: "cursor-pointer",
|
|
3218
3218
|
"prepend-icon": "edit",
|
|
3219
3219
|
"text-color": " text-fm-color-primary",
|
|
3220
|
-
onClick: f[1] || (f[1] = se((
|
|
3220
|
+
onClick: f[1] || (f[1] = se((g) => e.isCatalogLinkItemRuleView ? p.$emit("open-catalog-link-item-rule-form") : null, ["stop"]))
|
|
3221
3221
|
}, null, 8, ["variant"])) : (x(), Wt(Na, {
|
|
3222
3222
|
key: 0,
|
|
3223
3223
|
ref_key: "ruleFormRef",
|
|
3224
3224
|
ref: i,
|
|
3225
3225
|
"model-value": r.modelValue,
|
|
3226
3226
|
"is-edit-mode": !0,
|
|
3227
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
3228
|
-
a("update:model-value",
|
|
3227
|
+
"onUpdate:modelValue": f[0] || (f[0] = (g) => {
|
|
3228
|
+
a("update:model-value", g);
|
|
3229
3229
|
})
|
|
3230
3230
|
}, {
|
|
3231
3231
|
default: ae(({
|
|
3232
|
-
trigger:
|
|
3232
|
+
trigger: g
|
|
3233
3233
|
}) => [X(S, {
|
|
3234
3234
|
variant: K(he).Tertiary,
|
|
3235
3235
|
class: "cursor-pointer",
|
|
3236
3236
|
"prepend-icon": "edit",
|
|
3237
3237
|
"text-color": " text-fm-color-primary",
|
|
3238
|
-
onClick: se((u) =>
|
|
3238
|
+
onClick: se((u) => g(), ["stop"])
|
|
3239
3239
|
}, null, 8, ["variant", "onClick"])]),
|
|
3240
3240
|
_: 1
|
|
3241
3241
|
}, 8, ["model-value"])), X(S, {
|
|
@@ -3243,7 +3243,7 @@ const va = {
|
|
|
3243
3243
|
class: "cursor-pointer",
|
|
3244
3244
|
"prepend-icon": "file_copy",
|
|
3245
3245
|
"text-color": " text-fm-color-primary",
|
|
3246
|
-
onClick: f[2] || (f[2] = se((
|
|
3246
|
+
onClick: f[2] || (f[2] = se((g) => p.$emit("copy-rule", r.modelValue._id), ["stop"]))
|
|
3247
3247
|
}, null, 8, ["variant"]), X(S, {
|
|
3248
3248
|
variant: K(he).Tertiary,
|
|
3249
3249
|
class: "cursor-pointer",
|
|
@@ -3252,8 +3252,8 @@ const va = {
|
|
|
3252
3252
|
onClick: f[3] || (f[3] = se(() => a("delete-rule", r.modelValue._id), ["stop"]))
|
|
3253
3253
|
}, null, 8, ["variant"])])]), V("div", Oa, [V("p", Ca, Z(K(n)("menu.rule_groups.condition_view.when")), 1), e.ruleGroupNames ? (x(!0), j(de, {
|
|
3254
3254
|
key: 0
|
|
3255
|
-
}, Me(e.ruleGroupNames, (
|
|
3256
|
-
key:
|
|
3255
|
+
}, Me(e.ruleGroupNames, (g, u) => (x(), j("div", {
|
|
3256
|
+
key: g
|
|
3257
3257
|
}, [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, {
|
|
3258
3258
|
trigger: "hover",
|
|
3259
3259
|
closeOnMouseLeave: ""
|
|
@@ -3261,20 +3261,20 @@ const va = {
|
|
|
3261
3261
|
"menu-button": ae(() => [V("p", {
|
|
3262
3262
|
ref_for: !0,
|
|
3263
3263
|
ref: "valueTextRef",
|
|
3264
|
-
onClick: f[4] || (f[4] = se((
|
|
3264
|
+
onClick: f[4] || (f[4] = se((v) => e.isCatalogLinkItemRuleView ? p.$emit("open-catalog-link-item-rule-form") : null, ["stop"])),
|
|
3265
3265
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate"
|
|
3266
|
-
}, Z(
|
|
3267
|
-
default: ae(() => [V("p", Da, Z(
|
|
3266
|
+
}, Z(g), 513)]),
|
|
3267
|
+
default: ae(() => [V("p", Da, Z(g), 1)]),
|
|
3268
3268
|
_: 2
|
|
3269
|
-
}, 1024)])])]))), 128)) : Fe("", !0), (x(!0), j(de, null, Me(O.value, (
|
|
3270
|
-
var
|
|
3269
|
+
}, 1024)])])]))), 128)) : Fe("", !0), (x(!0), j(de, null, Me(O.value, (g, u) => {
|
|
3270
|
+
var v;
|
|
3271
3271
|
return x(), j("div", {
|
|
3272
|
-
key:
|
|
3273
|
-
}, [X(
|
|
3274
|
-
number: u + (((
|
|
3275
|
-
property:
|
|
3276
|
-
operator:
|
|
3277
|
-
value:
|
|
3272
|
+
key: g.property
|
|
3273
|
+
}, [X(va, {
|
|
3274
|
+
number: u + (((v = e.ruleGroupNames) == null ? void 0 : v.length) ?? 0) + 1,
|
|
3275
|
+
property: g.property,
|
|
3276
|
+
operator: g.operator,
|
|
3277
|
+
value: g.value,
|
|
3278
3278
|
isCatalogLinkItemRuleView: e.isCatalogLinkItemRuleView,
|
|
3279
3279
|
onOpenCatalogLinkItemRuleForm: f[5] || (f[5] = (N) => p.$emit("open-catalog-link-item-rule-form")),
|
|
3280
3280
|
onOpenRuleConditionForm: f[6] || (f[6] = (N) => {
|
|
@@ -3286,7 +3286,7 @@ const va = {
|
|
|
3286
3286
|
class: "fm-typo-en-body-lg-600 text-fm-color-neutral-gray-300"
|
|
3287
3287
|
}, "is", -1)), V("p", {
|
|
3288
3288
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate",
|
|
3289
|
-
onClick: f[7] || (f[7] = se((
|
|
3289
|
+
onClick: f[7] || (f[7] = se((g) => e.isCatalogLinkItemRuleView ? p.$emit("open-catalog-link-item-rule-form") : null, ["stop"]))
|
|
3290
3290
|
}, Z(o[e.orderFrom]), 1)])])) : Fe("", !0)], 64);
|
|
3291
3291
|
};
|
|
3292
3292
|
}
|
|
@@ -3299,7 +3299,7 @@ export {
|
|
|
3299
3299
|
Na as d,
|
|
3300
3300
|
Xa as e,
|
|
3301
3301
|
Qa as f,
|
|
3302
|
-
|
|
3302
|
+
va as g,
|
|
3303
3303
|
_a as h,
|
|
3304
3304
|
Ja as m,
|
|
3305
3305
|
Be as u
|