@feedmepos/mf-menu 0.32.84-dev.1 → 0.32.85-dev.1
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-C0CJza2q.js → App-BHQ_fslI.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BSoX-vdS.js → ApplyProduct.vue_vue_type_script_setup_true_lang-L4ttHc7o.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-Zb_wxRhM.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-BGD3hvG1.js} +3 -3
- package/dist/{Catalog-DBM3kYSx.js → Catalog-BkWRy_YO.js} +6 -6
- package/dist/{CatalogBinding-DZrL3XdA.js → CatalogBinding-BiQOSd7E.js} +3 -3
- package/dist/{Category-Bn4gKAEx.js → Category-Cf9mFsyk.js} +4 -4
- package/dist/{Category-DFTUBtuz.js → Category-DS-VrY_n.js} +4 -4
- package/dist/{CookingGuide-B1ck6hOY.js → CookingGuide-Bb37D02U.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang--qmx0gaj.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CtwQBg2x.js} +1 -1
- package/dist/{Group-Btvfhg2_.js → Group-Czm0iL4C.js} +3 -3
- package/dist/{Group-CxbrS8LX.js → Group-kN4n4qar.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-WlKR7vnP.js → Group.vue_vue_type_script_setup_true_lang-B9E-Qi22.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BdGLiSeH.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B4QYgrCl.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Ck4OcekO.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CfxLjai8.js} +7 -7
- package/dist/{Ingredient-C6BmEu3Y.js → Ingredient-D5okLBTD.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-yvo4FOzt.js → InventoryBinding.vue_vue_type_script_setup_true_lang-V99gY-nw.js} +2 -2
- package/dist/{LinkProductSideSheet-BciRCFgw.js → LinkProductSideSheet-BXZisTJh.js} +4 -4
- package/dist/{MenuSetting-ua6e0J96.js → MenuSetting-CALFfoas.js} +7 -7
- package/dist/{OrderPacing-DsSb0d82.js → OrderPacing-Cix63PIA.js} +5 -5
- package/dist/{PrintRoute-By7rKEeY.js → PrintRoute-CKYx6qMt.js} +5 -5
- package/dist/{Product-BvuX4kla.js → Product-yzjmCAvt.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Q92ZObBx.js → Product.vue_vue_type_script_setup_true_lang-BMfdmIfG.js} +14 -14
- package/dist/{ProductInternalTools-BtNmXtBF.js → ProductInternalTools-C_7x4zQH.js} +6 -6
- package/dist/{Products-BDP44ubL.js → Products-CFcIIXaQ.js} +58 -58
- package/dist/{Publish-B_sq_Rdm.js → Publish-D44XMlqB.js} +4 -4
- package/dist/{Recipe-DB7b28aL.js → Recipe-BrJpVM00.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DxiI6Yg2.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-Bset_bVY.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DHnqK3HS.js → RuleView.vue_vue_type_script_setup_true_lang-CoSBMY0g.js} +386 -386
- package/dist/{Scheduler-DSWgbQqO.js → Scheduler-SM-5iAhd.js} +3 -3
- package/dist/{ServingSequence-DGmKHdVL.js → ServingSequence-DG1Ku1jD.js} +3 -3
- package/dist/{Setting-CLrVzQni.js → Setting-Bj29D5vL.js} +5 -5
- package/dist/{Subcategory-RGVFEs_8.js → Subcategory-wtnI-XVv.js} +6 -6
- package/dist/{Takeaway-q1XPt-xG.js → Takeaway-Bjw7nM78.js} +1 -1
- package/dist/{Takeaway-C0B2-YY0.js → Takeaway-pcAOv6-O.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-D2xNekdv.js → Takeaway.vue_vue_type_script_setup_true_lang-DpIEZtt8.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DG4rqFP5.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CHLca1XQ.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DeOLLmms.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-nLcMDMRe.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BM_TcYip.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DXTwmoa2.js} +16 -16
- package/dist/{Unit-CaDn4AB7.js → Unit-BSZqzuL_.js} +2 -2
- package/dist/{Variant-BlZkFuwb.js → Variant-8jUdTs-g.js} +3 -3
- package/dist/{_id_-7CmnuauP.js → _id_-DFEFGwTk.js} +10 -10
- package/dist/{app-DDg9y6nS.js → app-BIOT86Jl.js} +1 -1
- package/dist/{app-DvfEk_tx.js → app-C_W6pUNz.js} +114 -114
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/GroupManager/unavailableOptions.d.ts +19 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-CqHj18wq.js → linked-status-BbELfJPA.js} +2 -2
- package/dist/assets/{menu-export-BEuvHQDu.js → menu-export-DWL1zkRJ.js} +2 -2
- package/dist/assets/{override-menu-ioMaRcaH.js → override-menu-as5aQ12W.js} +2 -2
- package/dist/assets/{validate-menu-BN1dXwXL.js → validate-menu-D0CucpYl.js} +2 -2
- package/dist/{catalog-D9azICZp.js → catalog-Dr_3fejB.js} +1 -1
- package/dist/{catalogSetting-C6S9C3VK.js → catalogSetting-DIXFtjtd.js} +1 -1
- package/dist/{currency-Ip3nWHBD.js → currency-D5AzLt8g.js} +1 -1
- package/dist/{dayjs.min-D8s9B1CS.js → dayjs.min-iknUN306.js} +2 -2
- package/dist/{discardConfirm-BjinlfVb.js → discardConfirm-BeijXz67.js} +1 -1
- package/dist/{index-B1rT1gBF.js → index-DFU93A1e.js} +5 -5
- package/dist/{index-DiF-CeuH.js → index-DKu-mHCN.js} +6 -6
- package/dist/{index-B-rFt9Jy.js → index-DfYcyGnd.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-HQ-O91gV.js → index.vue_vue_type_script_setup_true_lang-Dm6SwdK_.js} +883 -883
- package/dist/{item-Cyw-rGsb.js → item-ClYCOsd0.js} +3753 -3720
- package/dist/{jszip.min-DyzVhWhL.js → jszip.min-DFP1kQ0Y.js} +3 -3
- package/dist/{linkProducts-Dvljyse1.js → linkProducts-BI0GhCPX.js} +4 -4
- package/dist/{memberPricing-COMDAgBA.js → memberPricing-o80l5wQR.js} +1 -1
- package/dist/{menu-_pIw2GFF.js → menu-DOssaHpb.js} +1 -1
- package/dist/{menuV2--SWLAQrl.js → menuV2-AECnP5Rt.js} +65 -65
- package/dist/{order_pacing-DvvQbf-W.js → order_pacing-D-SA1JIl.js} +5 -5
- package/dist/{priceTier-COyenLLF.js → priceTier-BrENno35.js} +1 -1
- package/dist/{rules-D6Tuu57X.js → rules-CcVkkMbf.js} +3 -3
- package/dist/{scheduler-Y40zEk8u.js → scheduler-BVgmIM1a.js} +5 -5
- package/dist/{toExcel-sjWRPlid.js → toExcel-CO0c8LYl.js} +2 -2
- package/dist/{unit-BBIfO-BP.js → unit-CW-dfJ2c.js} +3 -3
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as ce, createElementBlock as X, openBlock as K, normalizeClass as Pt, renderSlot as Qe, createCommentVNode as Fe, createVNode as q, createElementVNode as V, toDisplayString as z, withCtx as se, getCurrentInstance as Dt, inject as Hn, ref as oe, shallowRef as Gn, computed as x, watch as Ze, onMounted as
|
|
1
|
+
import { defineComponent as ce, createElementBlock as X, openBlock as K, normalizeClass as Pt, renderSlot as Qe, createCommentVNode as Fe, createVNode as q, createElementVNode as V, toDisplayString as z, withCtx as se, getCurrentInstance as Dt, inject as Hn, ref as oe, shallowRef as Gn, computed as x, watch as Ze, onMounted as bn, onUnmounted as Wn, h as hn, Text as Bn, Fragment as pe, resolveComponent as Ee, unref as Y, withModifiers as ae, renderList as Me, createBlock as Bt } from "vue";
|
|
2
2
|
import { x as xn, N as Kn } from "./app-5fxKLAzS.js";
|
|
3
3
|
import { useCoreStore as wt, useI18n as Ge, useCustomAttributes as xt, EMPTY_RULE as Yn, isEmptyMongoQuery as jn, isEmptyRule as Xn } from "@feedmepos/mf-common";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { u as Tn, l as
|
|
5
|
+
import { u as Tn, l as vt } from "./index.vue_vue_type_script_setup_true_lang-Dm6SwdK_.js";
|
|
6
6
|
import { FmButtonVariant as Te, components as qn } from "@feedmepos/ui-library";
|
|
7
|
-
import { l as Kt } from "./discardConfirm-
|
|
7
|
+
import { l as Kt } from "./discardConfirm-BeijXz67.js";
|
|
8
8
|
import "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
9
9
|
const Jn = /* @__PURE__ */ ce({
|
|
10
10
|
__name: "FormColumn",
|
|
@@ -66,7 +66,7 @@ const ar = Object.prototype.hasOwnProperty;
|
|
|
66
66
|
function ue(e, t) {
|
|
67
67
|
return ar.call(e, t);
|
|
68
68
|
}
|
|
69
|
-
const ee = Array.isArray, j = (e) => typeof e == "function",
|
|
69
|
+
const ee = Array.isArray, j = (e) => typeof e == "function", k = (e) => typeof e == "string", Z = (e) => typeof e == "boolean", H = (e) => e !== null && typeof e == "object", lr = (e) => H(e) && j(e.then) && j(e.catch), In = Object.prototype.toString, Ft = (e) => In.call(e), $ = (e) => Ft(e) === "[object Object]", sr = (e) => e == null ? "" : ee(e) || $(e) && e.toString === In ? JSON.stringify(e, null, 2) : String(e);
|
|
70
70
|
function Mt(e, t = "") {
|
|
71
71
|
return e.reduce((n, r, o) => o === 0 ? n + r : n + t + r, "");
|
|
72
72
|
}
|
|
@@ -121,9 +121,9 @@ const fe = " ", fr = "\r", re = `
|
|
|
121
121
|
function pr(e) {
|
|
122
122
|
const t = e;
|
|
123
123
|
let n = 0, r = 1, o = 1, a = 0;
|
|
124
|
-
const i = (N) => t[N] === fr && t[N + 1] === re, m = (N) => t[N] === re, c = (N) => t[N] === _r, E = (N) => t[N] === dr,
|
|
124
|
+
const i = (N) => t[N] === fr && t[N + 1] === re, m = (N) => t[N] === re, c = (N) => t[N] === _r, E = (N) => t[N] === dr, b = (N) => i(N) || m(N) || c(N) || E(N), L = () => n, _ = () => r, f = () => o, S = () => a, h = (N) => i(N) || c(N) || E(N) ? re : t[N], y = () => h(n), u = () => h(n + a);
|
|
125
125
|
function g() {
|
|
126
|
-
return a = 0,
|
|
126
|
+
return a = 0, b(n) && (r++, o = 0), i(n) && n++, n++, o++, t[n];
|
|
127
127
|
}
|
|
128
128
|
function I() {
|
|
129
129
|
return i(n + a) && a++, a++, t[n + a];
|
|
@@ -134,7 +134,7 @@ function pr(e) {
|
|
|
134
134
|
function O(N = 0) {
|
|
135
135
|
a = N;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function A() {
|
|
138
138
|
const N = n + a;
|
|
139
139
|
for (; N !== n; )
|
|
140
140
|
g();
|
|
@@ -144,7 +144,7 @@ function pr(e) {
|
|
|
144
144
|
index: L,
|
|
145
145
|
line: _,
|
|
146
146
|
column: f,
|
|
147
|
-
peekOffset:
|
|
147
|
+
peekOffset: S,
|
|
148
148
|
charAt: h,
|
|
149
149
|
currentChar: y,
|
|
150
150
|
currentPeek: u,
|
|
@@ -152,7 +152,7 @@ function pr(e) {
|
|
|
152
152
|
peek: I,
|
|
153
153
|
reset: p,
|
|
154
154
|
resetPeek: O,
|
|
155
|
-
skipToPeek:
|
|
155
|
+
skipToPeek: A
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
158
|
const ye = void 0, Er = ".", qt = "'", gr = "tokenizer";
|
|
@@ -169,28 +169,28 @@ function yr(e, t = {}) {
|
|
|
169
169
|
braceNest: 0,
|
|
170
170
|
inLinked: !1,
|
|
171
171
|
text: ""
|
|
172
|
-
}, E = () => c, { onError:
|
|
173
|
-
function L(l, s,
|
|
172
|
+
}, E = () => c, { onError: b } = t;
|
|
173
|
+
function L(l, s, v, ...P) {
|
|
174
174
|
const J = E();
|
|
175
|
-
if (s.column +=
|
|
175
|
+
if (s.column += v, s.offset += v, b) {
|
|
176
176
|
const M = n ? It(J.startLoc, s) : null, d = nt(l, M, {
|
|
177
177
|
domain: gr,
|
|
178
178
|
args: P
|
|
179
179
|
});
|
|
180
|
-
|
|
180
|
+
b(d);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
function _(l, s,
|
|
183
|
+
function _(l, s, v) {
|
|
184
184
|
l.endLoc = a(), l.currentType = s;
|
|
185
185
|
const P = { type: s };
|
|
186
|
-
return n && (P.loc = It(l.startLoc, l.endLoc)),
|
|
186
|
+
return n && (P.loc = It(l.startLoc, l.endLoc)), v != null && (P.value = v), P;
|
|
187
187
|
}
|
|
188
188
|
const f = (l) => _(
|
|
189
189
|
l,
|
|
190
190
|
13
|
|
191
191
|
/* TokenTypes.EOF */
|
|
192
192
|
);
|
|
193
|
-
function
|
|
193
|
+
function S(l, s) {
|
|
194
194
|
return l.currentChar() === s ? (l.next(), s) : (L(G.EXPECTED_TOKEN, a(), 0, s), "");
|
|
195
195
|
}
|
|
196
196
|
function h(l) {
|
|
@@ -218,56 +218,56 @@ function yr(e, t = {}) {
|
|
|
218
218
|
return s >= 48 && s <= 57;
|
|
219
219
|
}
|
|
220
220
|
function I(l, s) {
|
|
221
|
-
const { currentType:
|
|
222
|
-
if (
|
|
221
|
+
const { currentType: v } = s;
|
|
222
|
+
if (v !== 2)
|
|
223
223
|
return !1;
|
|
224
224
|
h(l);
|
|
225
225
|
const P = u(l.currentPeek());
|
|
226
226
|
return l.resetPeek(), P;
|
|
227
227
|
}
|
|
228
228
|
function p(l, s) {
|
|
229
|
-
const { currentType:
|
|
230
|
-
if (
|
|
229
|
+
const { currentType: v } = s;
|
|
230
|
+
if (v !== 2)
|
|
231
231
|
return !1;
|
|
232
232
|
h(l);
|
|
233
233
|
const P = l.currentPeek() === "-" ? l.peek() : l.currentPeek(), J = g(P);
|
|
234
234
|
return l.resetPeek(), J;
|
|
235
235
|
}
|
|
236
236
|
function O(l, s) {
|
|
237
|
-
const { currentType:
|
|
238
|
-
if (
|
|
237
|
+
const { currentType: v } = s;
|
|
238
|
+
if (v !== 2)
|
|
239
239
|
return !1;
|
|
240
240
|
h(l);
|
|
241
241
|
const P = l.currentPeek() === qt;
|
|
242
242
|
return l.resetPeek(), P;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
const { currentType:
|
|
246
|
-
if (
|
|
244
|
+
function A(l, s) {
|
|
245
|
+
const { currentType: v } = s;
|
|
246
|
+
if (v !== 7)
|
|
247
247
|
return !1;
|
|
248
248
|
h(l);
|
|
249
249
|
const P = l.currentPeek() === ".";
|
|
250
250
|
return l.resetPeek(), P;
|
|
251
251
|
}
|
|
252
252
|
function N(l, s) {
|
|
253
|
-
const { currentType:
|
|
254
|
-
if (
|
|
253
|
+
const { currentType: v } = s;
|
|
254
|
+
if (v !== 8)
|
|
255
255
|
return !1;
|
|
256
256
|
h(l);
|
|
257
257
|
const P = u(l.currentPeek());
|
|
258
258
|
return l.resetPeek(), P;
|
|
259
259
|
}
|
|
260
260
|
function C(l, s) {
|
|
261
|
-
const { currentType:
|
|
262
|
-
if (!(
|
|
261
|
+
const { currentType: v } = s;
|
|
262
|
+
if (!(v === 7 || v === 11))
|
|
263
263
|
return !1;
|
|
264
264
|
h(l);
|
|
265
265
|
const P = l.currentPeek() === ":";
|
|
266
266
|
return l.resetPeek(), P;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
const { currentType:
|
|
270
|
-
if (
|
|
268
|
+
function R(l, s) {
|
|
269
|
+
const { currentType: v } = s;
|
|
270
|
+
if (v !== 9)
|
|
271
271
|
return !1;
|
|
272
272
|
const P = () => {
|
|
273
273
|
const M = l.currentPeek();
|
|
@@ -281,15 +281,15 @@ function yr(e, t = {}) {
|
|
|
281
281
|
return l.resetPeek(), s;
|
|
282
282
|
}
|
|
283
283
|
function F(l, s = !0) {
|
|
284
|
-
const
|
|
284
|
+
const v = (J = !1, M = "") => {
|
|
285
285
|
const d = l.currentPeek();
|
|
286
|
-
return d === "{" || d === "@" || !d ? J : d === "|" ? !(M === fe || M === re) : d === fe ? (l.peek(),
|
|
287
|
-
}, P =
|
|
286
|
+
return d === "{" || d === "@" || !d ? J : d === "|" ? !(M === fe || M === re) : d === fe ? (l.peek(), v(!0, fe)) : d === re ? (l.peek(), v(!0, re)) : !0;
|
|
287
|
+
}, P = v();
|
|
288
288
|
return s && l.resetPeek(), P;
|
|
289
289
|
}
|
|
290
290
|
function D(l, s) {
|
|
291
|
-
const
|
|
292
|
-
return
|
|
291
|
+
const v = l.currentChar();
|
|
292
|
+
return v === ye ? ye : s(v) ? (l.next(), v) : null;
|
|
293
293
|
}
|
|
294
294
|
function U(l) {
|
|
295
295
|
const s = l.charCodeAt(0);
|
|
@@ -331,36 +331,36 @@ function yr(e, t = {}) {
|
|
|
331
331
|
return D(l, me);
|
|
332
332
|
}
|
|
333
333
|
function xe(l) {
|
|
334
|
-
let s = "",
|
|
334
|
+
let s = "", v = "";
|
|
335
335
|
for (; s = ut(l); )
|
|
336
|
-
|
|
337
|
-
return
|
|
336
|
+
v += s;
|
|
337
|
+
return v;
|
|
338
338
|
}
|
|
339
339
|
function it(l) {
|
|
340
340
|
let s = "";
|
|
341
341
|
for (; ; ) {
|
|
342
|
-
const
|
|
343
|
-
if (
|
|
342
|
+
const v = l.currentChar();
|
|
343
|
+
if (v === "{" || v === "}" || v === "@" || v === "|" || !v)
|
|
344
344
|
break;
|
|
345
|
-
if (
|
|
345
|
+
if (v === fe || v === re)
|
|
346
346
|
if (F(l))
|
|
347
|
-
s +=
|
|
347
|
+
s += v, l.next();
|
|
348
348
|
else {
|
|
349
349
|
if (w(l))
|
|
350
350
|
break;
|
|
351
|
-
s +=
|
|
351
|
+
s += v, l.next();
|
|
352
352
|
}
|
|
353
353
|
else
|
|
354
|
-
s +=
|
|
354
|
+
s += v, l.next();
|
|
355
355
|
}
|
|
356
356
|
return s;
|
|
357
357
|
}
|
|
358
358
|
function ct(l) {
|
|
359
359
|
y(l);
|
|
360
|
-
let s = "",
|
|
360
|
+
let s = "", v = "";
|
|
361
361
|
for (; s = lt(l); )
|
|
362
|
-
|
|
363
|
-
return l.currentChar() === ye && L(G.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
362
|
+
v += s;
|
|
363
|
+
return l.currentChar() === ye && L(G.UNTERMINATED_CLOSING_BRACE, a(), 0), v;
|
|
364
364
|
}
|
|
365
365
|
function mt(l) {
|
|
366
366
|
y(l);
|
|
@@ -371,12 +371,12 @@ function yr(e, t = {}) {
|
|
|
371
371
|
return l !== qt && l !== re;
|
|
372
372
|
}
|
|
373
373
|
function ft(l) {
|
|
374
|
-
y(l),
|
|
375
|
-
let s = "",
|
|
374
|
+
y(l), S(l, "'");
|
|
375
|
+
let s = "", v = "";
|
|
376
376
|
for (; s = D(l, Wt); )
|
|
377
|
-
s === "\\" ?
|
|
377
|
+
s === "\\" ? v += dt(l) : v += s;
|
|
378
378
|
const P = l.currentChar();
|
|
379
|
-
return P === re || P === ye ? (L(G.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), P === re && (l.next(),
|
|
379
|
+
return P === re || P === ye ? (L(G.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), P === re && (l.next(), S(l, "'")), v) : (S(l, "'"), v);
|
|
380
380
|
}
|
|
381
381
|
function dt(l) {
|
|
382
382
|
const s = l.currentChar();
|
|
@@ -392,10 +392,10 @@ function yr(e, t = {}) {
|
|
|
392
392
|
return L(G.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, s), "";
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
|
-
function Ke(l, s,
|
|
396
|
-
|
|
395
|
+
function Ke(l, s, v) {
|
|
396
|
+
S(l, s);
|
|
397
397
|
let P = "";
|
|
398
|
-
for (let J = 0; J <
|
|
398
|
+
for (let J = 0; J < v; J++) {
|
|
399
399
|
const M = Be(l);
|
|
400
400
|
if (!M) {
|
|
401
401
|
L(G.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${s}${P}${l.currentChar()}`);
|
|
@@ -410,76 +410,76 @@ function yr(e, t = {}) {
|
|
|
410
410
|
}
|
|
411
411
|
function pt(l) {
|
|
412
412
|
y(l);
|
|
413
|
-
let s = "",
|
|
413
|
+
let s = "", v = "";
|
|
414
414
|
for (; s = D(l, _t); )
|
|
415
|
-
|
|
416
|
-
return
|
|
415
|
+
v += s;
|
|
416
|
+
return v;
|
|
417
417
|
}
|
|
418
418
|
function Et(l) {
|
|
419
|
-
let s = "",
|
|
419
|
+
let s = "", v = "";
|
|
420
420
|
for (; s = ot(l); )
|
|
421
|
-
|
|
422
|
-
return
|
|
421
|
+
v += s;
|
|
422
|
+
return v;
|
|
423
423
|
}
|
|
424
424
|
function gt(l) {
|
|
425
|
-
const s = (
|
|
425
|
+
const s = (v) => {
|
|
426
426
|
const P = l.currentChar();
|
|
427
|
-
return P === "{" || P === "@" || P === "|" || P === "(" || P === ")" || !P || P === fe ?
|
|
427
|
+
return P === "{" || P === "@" || P === "|" || P === "(" || P === ")" || !P || P === fe ? v : (v += P, l.next(), s(v));
|
|
428
428
|
};
|
|
429
429
|
return s("");
|
|
430
430
|
}
|
|
431
431
|
function Pe(l) {
|
|
432
432
|
y(l);
|
|
433
|
-
const s =
|
|
433
|
+
const s = S(
|
|
434
434
|
l,
|
|
435
435
|
"|"
|
|
436
436
|
/* TokenChars.Pipe */
|
|
437
437
|
);
|
|
438
438
|
return y(l), s;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
let
|
|
440
|
+
function Re(l, s) {
|
|
441
|
+
let v = null;
|
|
442
442
|
switch (l.currentChar()) {
|
|
443
443
|
case "{":
|
|
444
|
-
return s.braceNest >= 1 && L(G.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), l.next(),
|
|
444
|
+
return s.braceNest >= 1 && L(G.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), l.next(), v = _(
|
|
445
445
|
s,
|
|
446
446
|
2,
|
|
447
447
|
"{"
|
|
448
448
|
/* TokenChars.BraceLeft */
|
|
449
|
-
), y(l), s.braceNest++,
|
|
449
|
+
), y(l), s.braceNest++, v;
|
|
450
450
|
case "}":
|
|
451
|
-
return s.braceNest > 0 && s.currentType === 2 && L(G.EMPTY_PLACEHOLDER, a(), 0), l.next(),
|
|
451
|
+
return s.braceNest > 0 && s.currentType === 2 && L(G.EMPTY_PLACEHOLDER, a(), 0), l.next(), v = _(
|
|
452
452
|
s,
|
|
453
453
|
3,
|
|
454
454
|
"}"
|
|
455
455
|
/* TokenChars.BraceRight */
|
|
456
|
-
), s.braceNest--, s.braceNest > 0 && y(l), s.inLinked && s.braceNest === 0 && (s.inLinked = !1),
|
|
456
|
+
), s.braceNest--, s.braceNest > 0 && y(l), s.inLinked && s.braceNest === 0 && (s.inLinked = !1), v;
|
|
457
457
|
case "@":
|
|
458
|
-
return s.braceNest > 0 && L(G.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
458
|
+
return s.braceNest > 0 && L(G.UNTERMINATED_CLOSING_BRACE, a(), 0), v = Ae(l, s) || f(s), s.braceNest = 0, v;
|
|
459
459
|
default: {
|
|
460
460
|
let J = !0, M = !0, d = !0;
|
|
461
461
|
if (w(l))
|
|
462
|
-
return s.braceNest > 0 && L(G.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
462
|
+
return s.braceNest > 0 && L(G.UNTERMINATED_CLOSING_BRACE, a(), 0), v = _(s, 1, Pe(l)), s.braceNest = 0, s.inLinked = !1, v;
|
|
463
463
|
if (s.braceNest > 0 && (s.currentType === 4 || s.currentType === 5 || s.currentType === 6))
|
|
464
464
|
return L(G.UNTERMINATED_CLOSING_BRACE, a(), 0), s.braceNest = 0, De(l, s);
|
|
465
465
|
if (J = I(l, s))
|
|
466
|
-
return
|
|
466
|
+
return v = _(s, 4, ct(l)), y(l), v;
|
|
467
467
|
if (M = p(l, s))
|
|
468
|
-
return
|
|
468
|
+
return v = _(s, 5, mt(l)), y(l), v;
|
|
469
469
|
if (d = O(l, s))
|
|
470
|
-
return
|
|
470
|
+
return v = _(s, 6, ft(l)), y(l), v;
|
|
471
471
|
if (!J && !M && !d)
|
|
472
|
-
return
|
|
472
|
+
return v = _(s, 12, pt(l)), L(G.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, v.value), y(l), v;
|
|
473
473
|
break;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
return
|
|
476
|
+
return v;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
479
|
-
const { currentType:
|
|
478
|
+
function Ae(l, s) {
|
|
479
|
+
const { currentType: v } = s;
|
|
480
480
|
let P = null;
|
|
481
481
|
const J = l.currentChar();
|
|
482
|
-
switch ((
|
|
482
|
+
switch ((v === 7 || v === 8 || v === 11 || v === 9) && (J === re || J === fe) && L(G.INVALID_LINKED_FORMAT, a(), 0), J) {
|
|
483
483
|
case "@":
|
|
484
484
|
return l.next(), P = _(
|
|
485
485
|
s,
|
|
@@ -502,21 +502,21 @@ function yr(e, t = {}) {
|
|
|
502
502
|
/* TokenChars.LinkedDelimiter */
|
|
503
503
|
);
|
|
504
504
|
default:
|
|
505
|
-
return w(l) ? (P = _(s, 1, Pe(l)), s.braceNest = 0, s.inLinked = !1, P) :
|
|
505
|
+
return w(l) ? (P = _(s, 1, Pe(l)), s.braceNest = 0, s.inLinked = !1, P) : A(l, s) || C(l, s) ? (y(l), Ae(l, s)) : N(l, s) ? (y(l), _(s, 11, Et(l))) : R(l, s) ? (y(l), J === "{" ? Re(l, s) || P : _(s, 10, gt(l))) : (v === 7 && L(G.INVALID_LINKED_FORMAT, a(), 0), s.braceNest = 0, s.inLinked = !1, De(l, s));
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
function De(l, s) {
|
|
509
|
-
let
|
|
509
|
+
let v = {
|
|
510
510
|
type: 13
|
|
511
511
|
/* TokenTypes.EOF */
|
|
512
512
|
};
|
|
513
513
|
if (s.braceNest > 0)
|
|
514
|
-
return Ae(l, s) || f(s);
|
|
515
|
-
if (s.inLinked)
|
|
516
514
|
return Re(l, s) || f(s);
|
|
515
|
+
if (s.inLinked)
|
|
516
|
+
return Ae(l, s) || f(s);
|
|
517
517
|
switch (l.currentChar()) {
|
|
518
518
|
case "{":
|
|
519
|
-
return
|
|
519
|
+
return Re(l, s) || f(s);
|
|
520
520
|
case "}":
|
|
521
521
|
return L(G.UNBALANCED_CLOSING_BRACE, a(), 0), l.next(), _(
|
|
522
522
|
s,
|
|
@@ -525,20 +525,20 @@ function yr(e, t = {}) {
|
|
|
525
525
|
/* TokenChars.BraceRight */
|
|
526
526
|
);
|
|
527
527
|
case "@":
|
|
528
|
-
return
|
|
528
|
+
return Ae(l, s) || f(s);
|
|
529
529
|
default: {
|
|
530
530
|
if (w(l))
|
|
531
|
-
return
|
|
531
|
+
return v = _(s, 1, Pe(l)), s.braceNest = 0, s.inLinked = !1, v;
|
|
532
532
|
if (F(l))
|
|
533
533
|
return _(s, 0, it(l));
|
|
534
534
|
break;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
return
|
|
537
|
+
return v;
|
|
538
538
|
}
|
|
539
539
|
function yt() {
|
|
540
|
-
const { currentType: l, offset: s, startLoc:
|
|
541
|
-
return c.lastType = l, c.lastOffset = s, c.lastStartLoc =
|
|
540
|
+
const { currentType: l, offset: s, startLoc: v, endLoc: P } = c;
|
|
541
|
+
return c.lastType = l, c.lastOffset = s, c.lastStartLoc = v, c.lastEndLoc = P, c.offset = o(), c.startLoc = a(), r.currentChar() === ye ? _(
|
|
542
542
|
c,
|
|
543
543
|
13
|
|
544
544
|
/* TokenTypes.EOF */
|
|
@@ -551,7 +551,7 @@ function yr(e, t = {}) {
|
|
|
551
551
|
context: E
|
|
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 "\\\\":
|
|
@@ -568,10 +568,10 @@ function hr(e, t, n) {
|
|
|
568
568
|
function Tr(e = {}) {
|
|
569
569
|
const t = e.location !== !1, { onError: n } = e;
|
|
570
570
|
function r(u, g, I, p, ...O) {
|
|
571
|
-
const
|
|
572
|
-
if (
|
|
573
|
-
const N = t ? It(I,
|
|
574
|
-
domain:
|
|
571
|
+
const A = u.currentPosition();
|
|
572
|
+
if (A.offset += p, A.column += p, n) {
|
|
573
|
+
const N = t ? It(I, A) : null, C = nt(g, N, {
|
|
574
|
+
domain: vr,
|
|
575
575
|
args: O
|
|
576
576
|
});
|
|
577
577
|
n(C);
|
|
@@ -589,24 +589,24 @@ function Tr(e = {}) {
|
|
|
589
589
|
return p.value = g, a(p, u.currentOffset(), u.currentPosition()), p;
|
|
590
590
|
}
|
|
591
591
|
function m(u, g) {
|
|
592
|
-
const I = u.context(), { lastOffset: p, lastStartLoc: O } = I,
|
|
593
|
-
return
|
|
592
|
+
const I = u.context(), { lastOffset: p, lastStartLoc: O } = I, A = o(5, p, O);
|
|
593
|
+
return A.index = parseInt(g, 10), u.nextToken(), a(A, u.currentOffset(), u.currentPosition()), A;
|
|
594
594
|
}
|
|
595
595
|
function c(u, g) {
|
|
596
|
-
const I = u.context(), { lastOffset: p, lastStartLoc: O } = I,
|
|
597
|
-
return
|
|
596
|
+
const I = u.context(), { lastOffset: p, lastStartLoc: O } = I, A = o(4, p, O);
|
|
597
|
+
return A.key = g, u.nextToken(), a(A, u.currentOffset(), u.currentPosition()), A;
|
|
598
598
|
}
|
|
599
599
|
function E(u, g) {
|
|
600
|
-
const I = u.context(), { lastOffset: p, lastStartLoc: O } = I,
|
|
601
|
-
return
|
|
600
|
+
const I = u.context(), { lastOffset: p, lastStartLoc: O } = I, A = o(9, p, O);
|
|
601
|
+
return A.value = g.replace(br, hr), u.nextToken(), a(A, u.currentOffset(), u.currentPosition()), A;
|
|
602
602
|
}
|
|
603
|
-
function
|
|
604
|
-
const g = u.nextToken(), I = u.context(), { lastOffset: p, lastStartLoc: O } = I,
|
|
605
|
-
return g.type !== 11 ? (r(u, G.UNEXPECTED_EMPTY_LINKED_MODIFIER, I.lastStartLoc, 0),
|
|
603
|
+
function b(u) {
|
|
604
|
+
const g = u.nextToken(), I = u.context(), { lastOffset: p, lastStartLoc: O } = I, A = o(8, p, O);
|
|
605
|
+
return g.type !== 11 ? (r(u, G.UNEXPECTED_EMPTY_LINKED_MODIFIER, I.lastStartLoc, 0), A.value = "", a(A, p, O), {
|
|
606
606
|
nextConsumeToken: g,
|
|
607
|
-
node:
|
|
608
|
-
}) : (g.value == null && r(u, G.UNEXPECTED_LEXICAL_ANALYSIS, I.lastStartLoc, 0, ie(g)),
|
|
609
|
-
node:
|
|
607
|
+
node: A
|
|
608
|
+
}) : (g.value == null && r(u, G.UNEXPECTED_LEXICAL_ANALYSIS, I.lastStartLoc, 0, ie(g)), A.value = g.value || "", a(A, u.currentOffset(), u.currentPosition()), {
|
|
609
|
+
node: A
|
|
610
610
|
});
|
|
611
611
|
}
|
|
612
612
|
function L(u, g) {
|
|
@@ -617,7 +617,7 @@ function Tr(e = {}) {
|
|
|
617
617
|
const g = u.context(), I = o(6, g.offset, g.startLoc);
|
|
618
618
|
let p = u.nextToken();
|
|
619
619
|
if (p.type === 8) {
|
|
620
|
-
const O =
|
|
620
|
+
const O = b(u);
|
|
621
621
|
I.modifier = O.node, p = O.nextConsumeToken || u.nextToken();
|
|
622
622
|
}
|
|
623
623
|
switch (p.type !== 9 && r(u, G.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ie(p)), p = u.nextToken(), p.type === 2 && (p = u.nextToken()), p.type) {
|
|
@@ -635,8 +635,8 @@ function Tr(e = {}) {
|
|
|
635
635
|
break;
|
|
636
636
|
default: {
|
|
637
637
|
r(u, G.UNEXPECTED_EMPTY_LINKED_KEY, g.lastStartLoc, 0);
|
|
638
|
-
const O = u.context(),
|
|
639
|
-
return
|
|
638
|
+
const O = u.context(), A = o(7, O.offset, O.startLoc);
|
|
639
|
+
return A.value = "", a(A, O.offset, O.startLoc), I.key = A, a(I, O.offset, O.startLoc), {
|
|
640
640
|
nextConsumeToken: p,
|
|
641
641
|
node: I
|
|
642
642
|
};
|
|
@@ -649,25 +649,25 @@ function Tr(e = {}) {
|
|
|
649
649
|
function f(u) {
|
|
650
650
|
const g = u.context(), I = g.currentType === 1 ? u.currentOffset() : g.offset, p = g.currentType === 1 ? g.endLoc : g.startLoc, O = o(2, I, p);
|
|
651
651
|
O.items = [];
|
|
652
|
-
let
|
|
652
|
+
let A = null;
|
|
653
653
|
do {
|
|
654
|
-
const
|
|
655
|
-
switch (
|
|
654
|
+
const R = A || u.nextToken();
|
|
655
|
+
switch (A = null, R.type) {
|
|
656
656
|
case 0:
|
|
657
|
-
|
|
657
|
+
R.value == null && r(u, G.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ie(R)), O.items.push(i(u, R.value || ""));
|
|
658
658
|
break;
|
|
659
659
|
case 5:
|
|
660
|
-
|
|
660
|
+
R.value == null && r(u, G.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ie(R)), O.items.push(m(u, R.value || ""));
|
|
661
661
|
break;
|
|
662
662
|
case 4:
|
|
663
|
-
|
|
663
|
+
R.value == null && r(u, G.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ie(R)), O.items.push(c(u, R.value || ""));
|
|
664
664
|
break;
|
|
665
665
|
case 6:
|
|
666
|
-
|
|
666
|
+
R.value == null && r(u, G.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, ie(R)), O.items.push(E(u, R.value || ""));
|
|
667
667
|
break;
|
|
668
668
|
case 7: {
|
|
669
669
|
const w = _(u);
|
|
670
|
-
O.items.push(w.node),
|
|
670
|
+
O.items.push(w.node), A = w.nextConsumeToken || null;
|
|
671
671
|
break;
|
|
672
672
|
}
|
|
673
673
|
}
|
|
@@ -675,20 +675,20 @@ function Tr(e = {}) {
|
|
|
675
675
|
const N = g.currentType === 1 ? g.lastOffset : u.currentOffset(), C = g.currentType === 1 ? g.lastEndLoc : u.currentPosition();
|
|
676
676
|
return a(O, N, C), O;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function S(u, g, I, p) {
|
|
679
679
|
const O = u.context();
|
|
680
|
-
let
|
|
680
|
+
let A = p.items.length === 0;
|
|
681
681
|
const N = o(1, g, I);
|
|
682
682
|
N.cases = [], N.cases.push(p);
|
|
683
683
|
do {
|
|
684
684
|
const C = f(u);
|
|
685
|
-
|
|
685
|
+
A || (A = C.items.length === 0), N.cases.push(C);
|
|
686
686
|
} while (O.currentType !== 13);
|
|
687
|
-
return
|
|
687
|
+
return A && r(u, G.MUST_HAVE_MESSAGES_IN_PLURAL, I, 0), a(N, u.currentOffset(), u.currentPosition()), N;
|
|
688
688
|
}
|
|
689
689
|
function h(u) {
|
|
690
690
|
const g = u.context(), { offset: I, startLoc: p } = g, O = f(u);
|
|
691
|
-
return g.currentType === 13 ? O :
|
|
691
|
+
return g.currentType === 13 ? O : S(u, I, p, O);
|
|
692
692
|
}
|
|
693
693
|
function y(u) {
|
|
694
694
|
const g = yr(u, ne({}, e)), I = g.context(), p = o(0, I.offset, I.startLoc);
|
|
@@ -763,7 +763,7 @@ function Nr(e, t = {}) {
|
|
|
763
763
|
const r = n.context();
|
|
764
764
|
e.helpers = Array.from(r.helpers);
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Rr(e) {
|
|
767
767
|
const t = e.body;
|
|
768
768
|
return t.type === 2 ? Qt(t) : t.cases.forEach((n) => Qt(n)), e;
|
|
769
769
|
}
|
|
@@ -835,7 +835,7 @@ function Oe(e) {
|
|
|
835
835
|
}
|
|
836
836
|
delete e.type;
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function Ar(e, t) {
|
|
839
839
|
const { filename: n, breakLineCode: r, needIndent: o } = t, a = t.location !== !1, i = {
|
|
840
840
|
filename: n,
|
|
841
841
|
code: "",
|
|
@@ -856,7 +856,7 @@ function Rr(e, t) {
|
|
|
856
856
|
const u = y ? r : "";
|
|
857
857
|
c(o ? u + " ".repeat(h) : u);
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function b(h = !0) {
|
|
860
860
|
const y = ++i.indentLevel;
|
|
861
861
|
h && E(y);
|
|
862
862
|
}
|
|
@@ -870,7 +870,7 @@ function Rr(e, t) {
|
|
|
870
870
|
return {
|
|
871
871
|
context: m,
|
|
872
872
|
push: c,
|
|
873
|
-
indent:
|
|
873
|
+
indent: b,
|
|
874
874
|
deindent: L,
|
|
875
875
|
newline: _,
|
|
876
876
|
helper: (h) => `_${h}`,
|
|
@@ -908,14 +908,14 @@ function Cr(e, t) {
|
|
|
908
908
|
e.deindent(r()), e.push("])");
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function Sr(e, t) {
|
|
912
912
|
t.body ? Ce(e, t.body) : e.push("null");
|
|
913
913
|
}
|
|
914
914
|
function Ce(e, t) {
|
|
915
915
|
const { helper: n } = e;
|
|
916
916
|
switch (t.type) {
|
|
917
917
|
case 0:
|
|
918
|
-
|
|
918
|
+
Sr(e, t);
|
|
919
919
|
break;
|
|
920
920
|
case 1:
|
|
921
921
|
Cr(e, t);
|
|
@@ -958,16 +958,16 @@ function Ce(e, t) {
|
|
|
958
958
|
break;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
const
|
|
962
|
-
const n =
|
|
961
|
+
const kr = (e, t = {}) => {
|
|
962
|
+
const n = k(t.mode) ? t.mode : "normal", r = k(t.filename) ? t.filename : "message.intl";
|
|
963
963
|
t.sourceMap;
|
|
964
964
|
const o = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
965
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], m =
|
|
965
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], m = Ar(e, {
|
|
966
966
|
filename: r,
|
|
967
967
|
breakLineCode: o,
|
|
968
968
|
needIndent: a
|
|
969
969
|
});
|
|
970
|
-
m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(a), i.length > 0 && (m.push(`const { ${Mt(i.map((
|
|
970
|
+
m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(a), i.length > 0 && (m.push(`const { ${Mt(i.map((b) => `${b}: _${b}`), ", ")} } = ctx`), m.newline()), m.push("return "), Ce(m, e), m.deindent(a), m.push("}"), delete e.helpers;
|
|
971
971
|
const { code: c, map: E } = m.context();
|
|
972
972
|
return {
|
|
973
973
|
ast: e,
|
|
@@ -978,13 +978,13 @@ const Sr = (e, t = {}) => {
|
|
|
978
978
|
};
|
|
979
979
|
function Pr(e, t = {}) {
|
|
980
980
|
const n = ne({}, t), r = !!n.jit, o = !!n.minify, a = n.optimize == null ? !0 : n.optimize, m = Tr(n).parse(e);
|
|
981
|
-
return r ? (a &&
|
|
981
|
+
return r ? (a && Rr(m), o && Oe(m), { ast: m, code: "" }) : (Nr(m, n), kr(m, n));
|
|
982
982
|
}
|
|
983
983
|
var Dr = { env: { NODE_ENV: "production" } };
|
|
984
984
|
function wr() {
|
|
985
985
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ie().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ie().__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 ve(e, Mr);
|
|
1009
1009
|
}
|
|
1010
1010
|
const Vr = ["c", "cases"];
|
|
1011
1011
|
function $r(e) {
|
|
1012
|
-
return
|
|
1012
|
+
return ve(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 ve(e, Hr);
|
|
1026
1026
|
}
|
|
1027
1027
|
const Wr = ["i", "items"];
|
|
1028
1028
|
function Br(e) {
|
|
1029
|
-
return
|
|
1029
|
+
return ve(e, Wr, []);
|
|
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 ve(e, xr);
|
|
1069
1069
|
}
|
|
1070
1070
|
const Kr = ["v", "value"];
|
|
1071
1071
|
function Xe(e, t) {
|
|
1072
|
-
const n =
|
|
1072
|
+
const n = ve(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 ve(e, Yr);
|
|
1080
1080
|
}
|
|
1081
1081
|
const Xr = ["k", "key"];
|
|
1082
1082
|
function qr(e) {
|
|
1083
|
-
const t =
|
|
1083
|
+
const t = ve(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 ve(e, t, n) {
|
|
1092
1092
|
for (let r = 0; r < t.length; r++) {
|
|
1093
1093
|
const o = t[r];
|
|
1094
1094
|
if (ue(e, o) && e[o] != null)
|
|
@@ -1101,7 +1101,7 @@ function Ue(e) {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
const Jr = (e) => e;
|
|
1103
1103
|
let qe = W();
|
|
1104
|
-
function
|
|
1104
|
+
function Se(e) {
|
|
1105
1105
|
return H(e) && Vt(e) === 0 && (ue(e, "b") || ue(e, "body"));
|
|
1106
1106
|
}
|
|
1107
1107
|
function Qr(e, t = {}) {
|
|
@@ -1113,7 +1113,7 @@ function Qr(e, t = {}) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
// @__NO_SIDE_EFFECTS__
|
|
1115
1115
|
function Zr(e, t) {
|
|
1116
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1116
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && k(e)) {
|
|
1117
1117
|
Z(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1118
1118
|
const r = (t.onCacheKey || Jr)(e), o = qe[r];
|
|
1119
1119
|
if (o)
|
|
@@ -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;
|
|
@@ -1166,7 +1166,7 @@ function $t(e, t) {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
let ht;
|
|
1168
1168
|
function zt(e) {
|
|
1169
|
-
if (
|
|
1169
|
+
if (k(e))
|
|
1170
1170
|
return e;
|
|
1171
1171
|
if (j(e)) {
|
|
1172
1172
|
if (e.resolvedOnce && ht != null)
|
|
@@ -1184,11 +1184,11 @@ function zt(e) {
|
|
|
1184
1184
|
function oo(e, t, n) {
|
|
1185
1185
|
return [.../* @__PURE__ */ new Set([
|
|
1186
1186
|
n,
|
|
1187
|
-
...ee(t) ? t : H(t) ? Object.keys(t) :
|
|
1187
|
+
...ee(t) ? t : H(t) ? Object.keys(t) : k(t) ? [t] : [n]
|
|
1188
1188
|
])];
|
|
1189
1189
|
}
|
|
1190
1190
|
function Nn(e, t, n) {
|
|
1191
|
-
const r =
|
|
1191
|
+
const r = k(n) ? n : et, o = e;
|
|
1192
1192
|
o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1193
1193
|
let a = o.__localeChainCache.get(r);
|
|
1194
1194
|
if (!a) {
|
|
@@ -1197,7 +1197,7 @@ function Nn(e, t, n) {
|
|
|
1197
1197
|
for (; ee(i); )
|
|
1198
1198
|
i = en(a, i, t);
|
|
1199
1199
|
const m = ee(t) || !$(t) ? t : t.default ? t.default : null;
|
|
1200
|
-
i =
|
|
1200
|
+
i = k(m) ? [m] : m, ee(i) && en(a, i, !1), o.__localeChainCache.set(r, a);
|
|
1201
1201
|
}
|
|
1202
1202
|
return a;
|
|
1203
1203
|
}
|
|
@@ -1205,7 +1205,7 @@ function en(e, t, n) {
|
|
|
1205
1205
|
let r = !0;
|
|
1206
1206
|
for (let o = 0; o < t.length && Z(r); o++) {
|
|
1207
1207
|
const a = t[o];
|
|
1208
|
-
|
|
1208
|
+
k(a) && (r = ao(e, t[o], n));
|
|
1209
1209
|
}
|
|
1210
1210
|
return r;
|
|
1211
1211
|
}
|
|
@@ -1227,8 +1227,8 @@ function lo(e, t, n) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
return r;
|
|
1229
1229
|
}
|
|
1230
|
-
const
|
|
1231
|
-
|
|
1230
|
+
const be = [];
|
|
1231
|
+
be[
|
|
1232
1232
|
0
|
|
1233
1233
|
/* States.BEFORE_PATH */
|
|
1234
1234
|
] = {
|
|
@@ -1250,7 +1250,7 @@ ve[
|
|
|
1250
1250
|
/* States.AFTER_PATH */
|
|
1251
1251
|
]
|
|
1252
1252
|
};
|
|
1253
|
-
|
|
1253
|
+
be[
|
|
1254
1254
|
1
|
|
1255
1255
|
/* States.IN_PATH */
|
|
1256
1256
|
] = {
|
|
@@ -1271,7 +1271,7 @@ ve[
|
|
|
1271
1271
|
/* States.AFTER_PATH */
|
|
1272
1272
|
]
|
|
1273
1273
|
};
|
|
1274
|
-
|
|
1274
|
+
be[
|
|
1275
1275
|
2
|
|
1276
1276
|
/* States.BEFORE_IDENT */
|
|
1277
1277
|
] = {
|
|
@@ -1290,7 +1290,7 @@ ve[
|
|
|
1290
1290
|
/* Actions.APPEND */
|
|
1291
1291
|
]
|
|
1292
1292
|
};
|
|
1293
|
-
|
|
1293
|
+
be[
|
|
1294
1294
|
3
|
|
1295
1295
|
/* States.IN_IDENT */
|
|
1296
1296
|
] = {
|
|
@@ -1325,7 +1325,7 @@ ve[
|
|
|
1325
1325
|
/* Actions.PUSH */
|
|
1326
1326
|
]
|
|
1327
1327
|
};
|
|
1328
|
-
|
|
1328
|
+
be[
|
|
1329
1329
|
4
|
|
1330
1330
|
/* States.IN_SUB_PATH */
|
|
1331
1331
|
] = {
|
|
@@ -1356,7 +1356,7 @@ ve[
|
|
|
1356
1356
|
/* Actions.APPEND */
|
|
1357
1357
|
]
|
|
1358
1358
|
};
|
|
1359
|
-
|
|
1359
|
+
be[
|
|
1360
1360
|
5
|
|
1361
1361
|
/* States.IN_SINGLE_QUOTE */
|
|
1362
1362
|
] = {
|
|
@@ -1372,7 +1372,7 @@ ve[
|
|
|
1372
1372
|
/* Actions.APPEND */
|
|
1373
1373
|
]
|
|
1374
1374
|
};
|
|
1375
|
-
|
|
1375
|
+
be[
|
|
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, E,
|
|
1442
|
+
let n = -1, r = 0, o = 0, a, i, m, c, E, b, L;
|
|
1443
1443
|
const _ = [];
|
|
1444
1444
|
_[
|
|
1445
1445
|
0
|
|
@@ -1478,16 +1478,16 @@ function fo(e) {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
};
|
|
1480
1480
|
function f() {
|
|
1481
|
-
const
|
|
1482
|
-
if (r === 5 &&
|
|
1483
|
-
return n++, m = "\\" +
|
|
1481
|
+
const S = e[n + 1];
|
|
1482
|
+
if (r === 5 && S === "'" || r === 6 && S === '"')
|
|
1483
|
+
return n++, m = "\\" + S, _[
|
|
1484
1484
|
0
|
|
1485
1485
|
/* Actions.APPEND */
|
|
1486
1486
|
](), !0;
|
|
1487
1487
|
}
|
|
1488
1488
|
for (; r !== null; )
|
|
1489
1489
|
if (n++, a = e[n], !(a === "\\" && f())) {
|
|
1490
|
-
if (c = co(a), L =
|
|
1490
|
+
if (c = co(a), L = be[r], E = L[c] || L.l || 8, E === 8 || (r = E[0], E[1] !== void 0 && (b = _[E[1]], b && (m = a, b() === !1))))
|
|
1491
1491
|
return;
|
|
1492
1492
|
if (r === 7)
|
|
1493
1493
|
return t;
|
|
@@ -1516,21 +1516,21 @@ function po(e, t) {
|
|
|
1516
1516
|
const Eo = "10.0.5", rt = -1, et = "en-US", nn = "", rn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1517
1517
|
function go() {
|
|
1518
1518
|
return {
|
|
1519
|
-
upper: (e, t) => t === "text" &&
|
|
1520
|
-
lower: (e, t) => t === "text" &&
|
|
1521
|
-
capitalize: (e, t) => t === "text" &&
|
|
1519
|
+
upper: (e, t) => t === "text" && k(e) ? e.toUpperCase() : t === "vnode" && H(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1520
|
+
lower: (e, t) => t === "text" && k(e) ? e.toLowerCase() : t === "vnode" && H(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1521
|
+
capitalize: (e, t) => t === "text" && k(e) ? rn(e) : t === "vnode" && H(e) && "__v_isVNode" in e ? rn(e.children) : e
|
|
1522
1522
|
};
|
|
1523
1523
|
}
|
|
1524
|
-
let An;
|
|
1525
|
-
function yo(e) {
|
|
1526
|
-
An = e;
|
|
1527
|
-
}
|
|
1528
1524
|
let Rn;
|
|
1529
|
-
function
|
|
1525
|
+
function yo(e) {
|
|
1530
1526
|
Rn = e;
|
|
1531
1527
|
}
|
|
1532
|
-
let
|
|
1528
|
+
let An;
|
|
1533
1529
|
function vo(e) {
|
|
1530
|
+
An = e;
|
|
1531
|
+
}
|
|
1532
|
+
let Ln;
|
|
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 = j(e.onWarn) ? e.onWarn : ur, n =
|
|
1546
|
+
const t = j(e.onWarn) ? e.onWarn : ur, n = k(e.version) ? e.version : Eo, r = k(e.locale) || j(e.locale) ? e.locale : et, o = j(r) ? et : r, a = ee(e.fallbackLocale) || $(e.fallbackLocale) || k(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o, i = $(e.messages) ? e.messages : Tt(o), m = $(e.datetimeFormats) ? e.datetimeFormats : Tt(o), c = $(e.numberFormats) ? e.numberFormats : Tt(o), E = ne(W(), e.modifiers, go()), b = e.pluralRules || W(), L = j(e.missing) ? e.missing : null, _ = Z(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, f = Z(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0, S = !!e.fallbackFormat, h = !!e.unresolving, y = j(e.postTranslation) ? e.postTranslation : null, u = $(e.processor) ? e.processor : null, g = Z(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, I = !!e.escapeParameter, p = j(e.messageCompiler) ? e.messageCompiler : Rn, O = j(e.messageResolver) ? e.messageResolver : An || _o, A = j(e.localeFallbacker) ? e.localeFallbacker : Ln || oo, N = H(e.fallbackContext) ? e.fallbackContext : void 0, C = e, R = H(C.__datetimeFormatters) ? C.__datetimeFormatters : /* @__PURE__ */ new Map(), w = H(C.__numberFormatters) ? C.__numberFormatters : /* @__PURE__ */ new Map(), F = H(C.__meta) ? C.__meta : {};
|
|
1547
1547
|
an++;
|
|
1548
1548
|
const D = {
|
|
1549
1549
|
version: n,
|
|
@@ -1552,11 +1552,11 @@ function No(e = {}) {
|
|
|
1552
1552
|
fallbackLocale: a,
|
|
1553
1553
|
messages: i,
|
|
1554
1554
|
modifiers: E,
|
|
1555
|
-
pluralRules:
|
|
1555
|
+
pluralRules: b,
|
|
1556
1556
|
missing: L,
|
|
1557
1557
|
missingWarn: _,
|
|
1558
1558
|
fallbackWarn: f,
|
|
1559
|
-
fallbackFormat:
|
|
1559
|
+
fallbackFormat: S,
|
|
1560
1560
|
unresolving: h,
|
|
1561
1561
|
postTranslation: y,
|
|
1562
1562
|
processor: u,
|
|
@@ -1564,19 +1564,19 @@ function No(e = {}) {
|
|
|
1564
1564
|
escapeParameter: I,
|
|
1565
1565
|
messageCompiler: p,
|
|
1566
1566
|
messageResolver: O,
|
|
1567
|
-
localeFallbacker:
|
|
1567
|
+
localeFallbacker: A,
|
|
1568
1568
|
fallbackContext: N,
|
|
1569
1569
|
onWarn: t,
|
|
1570
1570
|
__meta: F
|
|
1571
1571
|
};
|
|
1572
|
-
return D.datetimeFormats = m, D.numberFormats = c, D.__datetimeFormatters =
|
|
1572
|
+
return D.datetimeFormats = m, D.numberFormats = c, D.__datetimeFormatters = R, D.__numberFormatters = w, __INTLIFY_PROD_DEVTOOLS__ && eo(D, n, F), D;
|
|
1573
1573
|
}
|
|
1574
1574
|
const Tt = (e) => ({ [e]: W() });
|
|
1575
1575
|
function Ht(e, t, n, r, o) {
|
|
1576
1576
|
const { missing: a, onWarn: i } = e;
|
|
1577
1577
|
if (a !== null) {
|
|
1578
1578
|
const m = a(e, n, t, o);
|
|
1579
|
-
return
|
|
1579
|
+
return k(m) ? m : t;
|
|
1580
1580
|
} else
|
|
1581
1581
|
return t;
|
|
1582
1582
|
}
|
|
@@ -1584,41 +1584,41 @@ function we(e, t, n) {
|
|
|
1584
1584
|
const r = e;
|
|
1585
1585
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function Ro(e, t) {
|
|
1588
1588
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1590
|
+
function Ao(e, t) {
|
|
1591
1591
|
const n = t.indexOf(e);
|
|
1592
1592
|
if (n === -1)
|
|
1593
1593
|
return !1;
|
|
1594
1594
|
for (let r = n + 1; r < t.length; r++)
|
|
1595
|
-
if (
|
|
1595
|
+
if (Ro(e, t[r]))
|
|
1596
1596
|
return !0;
|
|
1597
1597
|
return !1;
|
|
1598
1598
|
}
|
|
1599
1599
|
function ln(e, ...t) {
|
|
1600
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __datetimeFormatters: m } = e, [c, E,
|
|
1601
|
-
Z(
|
|
1602
|
-
const f = !!
|
|
1600
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __datetimeFormatters: m } = e, [c, E, b, L] = Rt(...t), _ = Z(b.missingWarn) ? b.missingWarn : e.missingWarn;
|
|
1601
|
+
Z(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn;
|
|
1602
|
+
const f = !!b.part, S = $t(e, b), h = i(
|
|
1603
1603
|
e,
|
|
1604
1604
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1605
1605
|
o,
|
|
1606
|
-
|
|
1606
|
+
S
|
|
1607
1607
|
);
|
|
1608
|
-
if (!
|
|
1609
|
-
return new Intl.DateTimeFormat(
|
|
1608
|
+
if (!k(c) || c === "")
|
|
1609
|
+
return new Intl.DateTimeFormat(S, L).format(E);
|
|
1610
1610
|
let y = {}, u, g = null;
|
|
1611
1611
|
const I = "datetime format";
|
|
1612
|
-
for (let
|
|
1612
|
+
for (let A = 0; A < h.length && (u = h[A], y = n[u] || {}, g = y[c], !$(g)); A++)
|
|
1613
1613
|
Ht(e, c, u, _, I);
|
|
1614
|
-
if (!$(g) || !
|
|
1614
|
+
if (!$(g) || !k(u))
|
|
1615
1615
|
return r ? rt : c;
|
|
1616
1616
|
let p = `${u}__${c}`;
|
|
1617
1617
|
tt(L) || (p = `${p}__${JSON.stringify(L)}`);
|
|
1618
1618
|
let O = m.get(p);
|
|
1619
1619
|
return O || (O = new Intl.DateTimeFormat(u, ne({}, g, L)), m.set(p, O)), f ? O.formatToParts(E) : O.format(E);
|
|
1620
1620
|
}
|
|
1621
|
-
const
|
|
1621
|
+
const Sn = [
|
|
1622
1622
|
"localeMatcher",
|
|
1623
1623
|
"weekday",
|
|
1624
1624
|
"era",
|
|
@@ -1640,10 +1640,10 @@ const kn = [
|
|
|
1640
1640
|
"hourCycle",
|
|
1641
1641
|
"fractionalSecondDigits"
|
|
1642
1642
|
];
|
|
1643
|
-
function
|
|
1643
|
+
function Rt(...e) {
|
|
1644
1644
|
const [t, n, r, o] = e, a = W();
|
|
1645
1645
|
let i = W(), m;
|
|
1646
|
-
if (
|
|
1646
|
+
if (k(t)) {
|
|
1647
1647
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1648
1648
|
if (!c)
|
|
1649
1649
|
throw _e(de.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1662,9 +1662,9 @@ function At(...e) {
|
|
|
1662
1662
|
m = t;
|
|
1663
1663
|
else
|
|
1664
1664
|
throw _e(de.INVALID_ARGUMENT);
|
|
1665
|
-
return
|
|
1666
|
-
|
|
1667
|
-
}),
|
|
1665
|
+
return k(n) ? a.key = n : $(n) && Object.keys(n).forEach((c) => {
|
|
1666
|
+
Sn.includes(c) ? i[c] = n[c] : a[c] = n[c];
|
|
1667
|
+
}), k(r) ? a.locale = r : $(r) && (i = r), $(o) && (i = o), [a.key || "", m, a, i];
|
|
1668
1668
|
}
|
|
1669
1669
|
function sn(e, t, n) {
|
|
1670
1670
|
const r = e;
|
|
@@ -1674,28 +1674,28 @@ function sn(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, E,
|
|
1678
|
-
Z(
|
|
1679
|
-
const f = !!
|
|
1677
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __numberFormatters: m } = e, [c, E, b, L] = At(...t), _ = Z(b.missingWarn) ? b.missingWarn : e.missingWarn;
|
|
1678
|
+
Z(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn;
|
|
1679
|
+
const f = !!b.part, S = $t(e, b), h = i(
|
|
1680
1680
|
e,
|
|
1681
1681
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1682
1682
|
o,
|
|
1683
|
-
|
|
1683
|
+
S
|
|
1684
1684
|
);
|
|
1685
|
-
if (!
|
|
1686
|
-
return new Intl.NumberFormat(
|
|
1685
|
+
if (!k(c) || c === "")
|
|
1686
|
+
return new Intl.NumberFormat(S, L).format(E);
|
|
1687
1687
|
let y = {}, u, g = null;
|
|
1688
1688
|
const I = "number format";
|
|
1689
|
-
for (let
|
|
1689
|
+
for (let A = 0; A < h.length && (u = h[A], y = n[u] || {}, g = y[c], !$(g)); A++)
|
|
1690
1690
|
Ht(e, c, u, _, I);
|
|
1691
|
-
if (!$(g) || !
|
|
1691
|
+
if (!$(g) || !k(u))
|
|
1692
1692
|
return r ? rt : c;
|
|
1693
1693
|
let p = `${u}__${c}`;
|
|
1694
1694
|
tt(L) || (p = `${p}__${JSON.stringify(L)}`);
|
|
1695
1695
|
let O = m.get(p);
|
|
1696
1696
|
return O || (O = new Intl.NumberFormat(u, ne({}, g, L)), m.set(p, O)), f ? O.formatToParts(E) : O.format(E);
|
|
1697
1697
|
}
|
|
1698
|
-
const
|
|
1698
|
+
const kn = [
|
|
1699
1699
|
"localeMatcher",
|
|
1700
1700
|
"style",
|
|
1701
1701
|
"currency",
|
|
@@ -1717,15 +1717,15 @@ const Sn = [
|
|
|
1717
1717
|
"roundingIncrement",
|
|
1718
1718
|
"trailingZeroDisplay"
|
|
1719
1719
|
];
|
|
1720
|
-
function
|
|
1720
|
+
function At(...e) {
|
|
1721
1721
|
const [t, n, r, o] = e, a = W();
|
|
1722
1722
|
let i = W();
|
|
1723
1723
|
if (!te(t))
|
|
1724
1724
|
throw _e(de.INVALID_ARGUMENT);
|
|
1725
1725
|
const m = t;
|
|
1726
|
-
return
|
|
1727
|
-
|
|
1728
|
-
}),
|
|
1726
|
+
return k(n) ? a.key = n : $(n) && Object.keys(n).forEach((c) => {
|
|
1727
|
+
kn.includes(c) ? i[c] = n[c] : a[c] = n[c];
|
|
1728
|
+
}), k(r) ? a.locale = r : $(r) && (i = r), $(o) && (i = o), [a.key || "", m, a, i];
|
|
1729
1729
|
}
|
|
1730
1730
|
function cn(e, t, n) {
|
|
1731
1731
|
const r = e;
|
|
@@ -1734,7 +1734,7 @@ function cn(e, t, n) {
|
|
|
1734
1734
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
const Lo = (e) => e, Oo = (e) => "", Co = "text",
|
|
1737
|
+
const Lo = (e) => e, Oo = (e) => "", Co = "text", So = (e) => e.length === 0 ? "" : Mt(e), ko = sr;
|
|
1738
1738
|
function mn(e, t) {
|
|
1739
1739
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1740
1740
|
}
|
|
@@ -1746,29 +1746,29 @@ function Do(e, t) {
|
|
|
1746
1746
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1747
1747
|
}
|
|
1748
1748
|
function wo(e = {}) {
|
|
1749
|
-
const t = e.locale, n = Po(e), r = H(e.pluralRules) &&
|
|
1749
|
+
const t = e.locale, n = Po(e), r = H(e.pluralRules) && k(t) && j(e.pluralRules[t]) ? e.pluralRules[t] : mn, o = H(e.pluralRules) && k(t) && j(e.pluralRules[t]) ? mn : void 0, a = (u) => u[r(n, u.length, o)], i = e.list || [], m = (u) => i[u], c = e.named || W();
|
|
1750
1750
|
te(e.pluralIndex) && Do(n, c);
|
|
1751
1751
|
const E = (u) => c[u];
|
|
1752
|
-
function
|
|
1752
|
+
function b(u, g) {
|
|
1753
1753
|
const I = j(e.messages) ? e.messages(u, !!g) : H(e.messages) ? e.messages[u] : !1;
|
|
1754
1754
|
return I || (e.parent ? e.parent.message(u) : Oo);
|
|
1755
1755
|
}
|
|
1756
|
-
const L = (u) => e.modifiers ? e.modifiers[u] : Lo, _ = $(e.processor) && j(e.processor.normalize) ? e.processor.normalize :
|
|
1756
|
+
const L = (u) => e.modifiers ? e.modifiers[u] : Lo, _ = $(e.processor) && j(e.processor.normalize) ? e.processor.normalize : So, f = $(e.processor) && j(e.processor.interpolate) ? e.processor.interpolate : ko, S = $(e.processor) && k(e.processor.type) ? e.processor.type : Co, y = {
|
|
1757
1757
|
list: m,
|
|
1758
1758
|
named: E,
|
|
1759
1759
|
plural: a,
|
|
1760
1760
|
linked: (u, ...g) => {
|
|
1761
1761
|
const [I, p] = g;
|
|
1762
|
-
let O = "text",
|
|
1763
|
-
g.length === 1 ? H(I) ? (
|
|
1764
|
-
const N =
|
|
1762
|
+
let O = "text", A = "";
|
|
1763
|
+
g.length === 1 ? H(I) ? (A = I.modifier || A, O = I.type || O) : k(I) && (A = I || A) : g.length === 2 && (k(I) && (A = I || A), k(p) && (O = p || O));
|
|
1764
|
+
const N = b(u, !0)(y), C = (
|
|
1765
1765
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1766
|
-
O === "vnode" && ee(N) &&
|
|
1766
|
+
O === "vnode" && ee(N) && A ? N[0] : N
|
|
1767
1767
|
);
|
|
1768
|
-
return
|
|
1768
|
+
return A ? L(A)(C, O) : C;
|
|
1769
1769
|
},
|
|
1770
|
-
message:
|
|
1771
|
-
type:
|
|
1770
|
+
message: b,
|
|
1771
|
+
type: S,
|
|
1772
1772
|
interpolate: f,
|
|
1773
1773
|
normalize: _,
|
|
1774
1774
|
values: ne(W(), i, c)
|
|
@@ -1777,28 +1777,28 @@ function wo(e = {}) {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
const fn = () => "", le = (e) => j(e);
|
|
1779
1779
|
function dn(e, ...t) {
|
|
1780
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: i, messages: m } = e, [c, E] = Lt(...t),
|
|
1780
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: i, messages: m } = e, [c, E] = Lt(...t), b = Z(E.missingWarn) ? E.missingWarn : e.missingWarn, L = Z(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, _ = Z(E.escapeParameter) ? E.escapeParameter : e.escapeParameter, f = !!E.resolvedMessage, S = k(E.default) || Z(E.default) ? Z(E.default) ? a ? c : () => c : E.default : n ? a ? c : () => c : null, h = n || S != null && (k(S) || j(S)), y = $t(e, E);
|
|
1781
1781
|
_ && Fo(E);
|
|
1782
1782
|
let [u, g, I] = f ? [
|
|
1783
1783
|
c,
|
|
1784
1784
|
y,
|
|
1785
1785
|
m[y] || W()
|
|
1786
|
-
] : Pn(e, c, y, i, L,
|
|
1787
|
-
if (!f && !(
|
|
1786
|
+
] : Pn(e, c, y, i, L, b), p = u, O = c;
|
|
1787
|
+
if (!f && !(k(p) || Se(p) || le(p)) && h && (p = S, O = p), !f && (!(k(p) || Se(p) || le(p)) || !k(g)))
|
|
1788
1788
|
return o ? rt : c;
|
|
1789
|
-
let
|
|
1789
|
+
let A = !1;
|
|
1790
1790
|
const N = () => {
|
|
1791
|
-
|
|
1791
|
+
A = !0;
|
|
1792
1792
|
}, C = le(p) ? p : Dn(e, c, g, p, O, N);
|
|
1793
|
-
if (
|
|
1793
|
+
if (A)
|
|
1794
1794
|
return p;
|
|
1795
|
-
const
|
|
1795
|
+
const R = Vo(e, g, I, E), w = wo(R), F = Mo(e, C, w), D = r ? r(F, c) : F;
|
|
1796
1796
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1797
1797
|
const U = {
|
|
1798
1798
|
timestamp: Date.now(),
|
|
1799
|
-
key:
|
|
1799
|
+
key: k(c) ? c : le(p) ? p.key : "",
|
|
1800
1800
|
locale: g || (le(p) ? p.locale : ""),
|
|
1801
|
-
format:
|
|
1801
|
+
format: k(p) ? p : le(p) ? p.source : "",
|
|
1802
1802
|
message: D
|
|
1803
1803
|
};
|
|
1804
1804
|
U.meta = ne({}, e.__meta, /* @__PURE__ */ To() || {}), to(U);
|
|
@@ -1806,23 +1806,23 @@ function dn(e, ...t) {
|
|
|
1806
1806
|
return D;
|
|
1807
1807
|
}
|
|
1808
1808
|
function Fo(e) {
|
|
1809
|
-
ee(e.list) ? e.list = e.list.map((t) =>
|
|
1810
|
-
|
|
1809
|
+
ee(e.list) ? e.list = e.list.map((t) => k(t) ? Xt(t) : t) : H(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1810
|
+
k(e.named[t]) && (e.named[t] = Xt(e.named[t]));
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
1813
|
function Pn(e, t, n, r, o, a) {
|
|
1814
|
-
const { messages: i, onWarn: m, messageResolver: c, localeFallbacker: E } = e,
|
|
1814
|
+
const { messages: i, onWarn: m, messageResolver: c, localeFallbacker: E } = e, b = E(e, r, n);
|
|
1815
1815
|
let L = W(), _, f = null;
|
|
1816
|
-
const
|
|
1817
|
-
for (let h = 0; h <
|
|
1818
|
-
if (!
|
|
1816
|
+
const S = "translate";
|
|
1817
|
+
for (let h = 0; h < b.length && (_ = b[h], L = i[_] || W(), (f = c(L, t)) === null && (f = L[t]), !(k(f) || Se(f) || le(f))); h++)
|
|
1818
|
+
if (!Ao(_, b)) {
|
|
1819
1819
|
const y = Ht(
|
|
1820
1820
|
e,
|
|
1821
1821
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1822
1822
|
t,
|
|
1823
1823
|
_,
|
|
1824
1824
|
a,
|
|
1825
|
-
|
|
1825
|
+
S
|
|
1826
1826
|
);
|
|
1827
1827
|
y !== t && (f = y);
|
|
1828
1828
|
}
|
|
@@ -1846,10 +1846,10 @@ function Mo(e, t, n) {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
function Lt(...e) {
|
|
1848
1848
|
const [t, n, r] = e, o = W();
|
|
1849
|
-
if (!
|
|
1849
|
+
if (!k(t) && !te(t) && !le(t) && !Se(t))
|
|
1850
1850
|
throw _e(de.INVALID_ARGUMENT);
|
|
1851
1851
|
const a = te(t) ? String(t) : (le(t), t);
|
|
1852
|
-
return te(n) ? o.plural = n :
|
|
1852
|
+
return te(n) ? o.plural = n : k(n) ? o.default = n : $(n) && !tt(n) ? o.named = n : ee(n) && (o.list = n), te(r) ? o.plural = r : k(r) ? o.default = r : $(r) && ne(o, r), [a, o];
|
|
1853
1853
|
}
|
|
1854
1854
|
function Uo(e, t, n, r, o, a) {
|
|
1855
1855
|
return {
|
|
@@ -1863,15 +1863,15 @@ 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: E, fallbackContext:
|
|
1866
|
+
const { modifiers: o, pluralRules: a, messageResolver: i, fallbackLocale: m, fallbackWarn: c, missingWarn: E, fallbackContext: b } = e, _ = {
|
|
1867
1867
|
locale: t,
|
|
1868
1868
|
modifiers: o,
|
|
1869
1869
|
pluralRules: a,
|
|
1870
|
-
messages: (f,
|
|
1870
|
+
messages: (f, S) => {
|
|
1871
1871
|
let h = i(n, f);
|
|
1872
|
-
if (h == null && (
|
|
1872
|
+
if (h == null && (b || S)) {
|
|
1873
1873
|
const [, , y] = Pn(
|
|
1874
|
-
|
|
1874
|
+
b || e,
|
|
1875
1875
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1876
1876
|
f,
|
|
1877
1877
|
t,
|
|
@@ -1881,7 +1881,7 @@ function Vo(e, t, n, r) {
|
|
|
1881
1881
|
);
|
|
1882
1882
|
h = i(y, f);
|
|
1883
1883
|
}
|
|
1884
|
-
if (
|
|
1884
|
+
if (k(h) || Se(h)) {
|
|
1885
1885
|
let y = !1;
|
|
1886
1886
|
const g = Dn(e, f, t, h, f, () => {
|
|
1887
1887
|
y = !0;
|
|
@@ -1893,12 +1893,12 @@ function Vo(e, t, n, r) {
|
|
|
1893
1893
|
return e.processor && (_.processor = e.processor), r.list && (_.list = r.list), r.named && (_.named = r.named), te(r.plural) && (_.pluralIndex = r.plural), _;
|
|
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_e6ff6e31-2c5e-4ab9-b805-5d34297fbde0", 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_e6ff6e31-2c5e-4ab9-b805-5d34297fbde0", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.8.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", 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-rsrq3ogsuq-as.a.run.app", VITE_FEATURE_FLAG_API_KEY: "MaGoXrEWuEJNpWgKTqseee", SYSTEMD_EXEC_PID: "1839", ACTIONS_ORCHESTRATION_ID: "9ab326c3-85e9-4548-8c02-eaedabdc31c5.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: "20261026.180.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_e6ff6e31-2c5e-4ab9-b805-5d34297fbde0", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:16474", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "40844078248", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c457d5288592d626065f7d6974a3f3ede7d1e4b1", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.10/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu26", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_f43f50bf-967a-4bde-87dd-f7bae116d648", INVOCATION_ID: "ddf81891c10c422a8a0c34fe148fe97b", 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: "612", GITHUB_TRIGGERING_ACTOR: "fanhousanbu", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", RUNNER_NAME: "GitHub Actions 1000239461", 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.85-dev.1", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "c457d5288592d626065f7d6974a3f3ede7d1e4b1", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "fanhousanbu", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_e6ff6e31-2c5e-4ab9-b805-5d34297fbde0", JAVA_HOME: "/usr/lib/jvm/temurin-25-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "6702542", 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_e6ff6e31-2c5e-4ab9-b805-5d34297fbde0", 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_e6ff6e31-2c5e-4ab9-b805-5d34297fbde0", 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: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_e6ff6e31-2c5e-4ab9-b805-5d34297fbde0", 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" && (Ie().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Ie().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Ie().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ie().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1900
1900
|
}
|
|
1901
|
-
const
|
|
1901
|
+
const ke = {
|
|
1902
1902
|
// composer module errors
|
|
1903
1903
|
UNEXPECTED_RETURN_TYPE: ro,
|
|
1904
1904
|
// 24
|
|
@@ -1914,7 +1914,7 @@ const Se = {
|
|
|
1914
1914
|
function $e(e, ...t) {
|
|
1915
1915
|
return nt(e, null, void 0);
|
|
1916
1916
|
}
|
|
1917
|
-
const Ot = /* @__PURE__ */ Ne("__translateVNode"), Ct = /* @__PURE__ */ Ne("__datetimeParts"),
|
|
1917
|
+
const Ot = /* @__PURE__ */ Ne("__translateVNode"), Ct = /* @__PURE__ */ Ne("__datetimeParts"), St = /* @__PURE__ */ Ne("__numberParts"), Wo = Ne("__setPluralRules"), wn = /* @__PURE__ */ Ne("__injectWithOption"), kt = /* @__PURE__ */ Ne("__dispose");
|
|
1918
1918
|
function He(e) {
|
|
1919
1919
|
if (!H(e))
|
|
1920
1920
|
return e;
|
|
@@ -1943,7 +1943,7 @@ function Fn(e, t) {
|
|
|
1943
1943
|
const { locale: c, resource: E } = m;
|
|
1944
1944
|
c ? (i[c] = i[c] || W(), Je(E, i[c])) : Je(E, i);
|
|
1945
1945
|
} else
|
|
1946
|
-
|
|
1946
|
+
k(m) && Je(JSON.parse(m), i);
|
|
1947
1947
|
}), o == null && a)
|
|
1948
1948
|
for (const m in i)
|
|
1949
1949
|
ue(i, m) && He(i[m]);
|
|
@@ -1995,14 +1995,14 @@ function Yo(e = {}) {
|
|
|
1995
1995
|
let i = Z(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1996
1996
|
const m = a(
|
|
1997
1997
|
// prettier-ignore
|
|
1998
|
-
t && i ? t.locale.value :
|
|
1998
|
+
t && i ? t.locale.value : k(e.locale) ? e.locale : et
|
|
1999
1999
|
), c = a(
|
|
2000
2000
|
// prettier-ignore
|
|
2001
|
-
t && i ? t.fallbackLocale.value :
|
|
2002
|
-
), E = a(Fn(m.value, e)),
|
|
2003
|
-
let _ = t ? t.missingWarn : Z(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, f = t ? t.fallbackWarn : Z(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0,
|
|
2001
|
+
t && i ? t.fallbackLocale.value : k(e.fallbackLocale) || ee(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
2002
|
+
), E = a(Fn(m.value, e)), b = a($(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), L = a($(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
2003
|
+
let _ = t ? t.missingWarn : Z(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, f = t ? t.fallbackWarn : Z(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0, S = t ? t.fallbackRoot : Z(e.fallbackRoot) ? e.fallbackRoot : !0, h = !!e.fallbackFormat, y = j(e.missing) ? e.missing : null, u = j(e.missing) ? yn(e.missing) : null, g = j(e.postTranslation) ? e.postTranslation : null, I = t ? t.warnHtmlMessage : Z(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, p = !!e.escapeParameter;
|
|
2004
2004
|
const O = t ? t.modifiers : $(e.modifiers) ? e.modifiers : {};
|
|
2005
|
-
let
|
|
2005
|
+
let A = e.pluralRules || t && t.pluralRules, N;
|
|
2006
2006
|
N = (() => {
|
|
2007
2007
|
r && on(null);
|
|
2008
2008
|
const d = {
|
|
@@ -2011,7 +2011,7 @@ function Yo(e = {}) {
|
|
|
2011
2011
|
fallbackLocale: c.value,
|
|
2012
2012
|
messages: E.value,
|
|
2013
2013
|
modifiers: O,
|
|
2014
|
-
pluralRules:
|
|
2014
|
+
pluralRules: A,
|
|
2015
2015
|
missing: u === null ? void 0 : u,
|
|
2016
2016
|
missingWarn: _,
|
|
2017
2017
|
fallbackWarn: f,
|
|
@@ -2024,16 +2024,16 @@ function Yo(e = {}) {
|
|
|
2024
2024
|
messageCompiler: e.messageCompiler,
|
|
2025
2025
|
__meta: { framework: "vue" }
|
|
2026
2026
|
};
|
|
2027
|
-
d.datetimeFormats =
|
|
2027
|
+
d.datetimeFormats = b.value, d.numberFormats = L.value, d.__datetimeFormatters = $(N) ? N.__datetimeFormatters : void 0, d.__numberFormatters = $(N) ? N.__numberFormatters : void 0;
|
|
2028
2028
|
const T = No(d);
|
|
2029
2029
|
return r && on(T), T;
|
|
2030
2030
|
})(), we(N, m.value, c.value);
|
|
2031
|
-
function
|
|
2031
|
+
function R() {
|
|
2032
2032
|
return [
|
|
2033
2033
|
m.value,
|
|
2034
2034
|
c.value,
|
|
2035
2035
|
E.value,
|
|
2036
|
-
|
|
2036
|
+
b.value,
|
|
2037
2037
|
L.value
|
|
2038
2038
|
];
|
|
2039
2039
|
}
|
|
@@ -2047,7 +2047,7 @@ function Yo(e = {}) {
|
|
|
2047
2047
|
set: (d) => {
|
|
2048
2048
|
c.value = d, N.fallbackLocale = c.value, we(N, m.value, d);
|
|
2049
2049
|
}
|
|
2050
|
-
}), D = x(() => E.value), U = /* @__PURE__ */ x(() =>
|
|
2050
|
+
}), D = x(() => E.value), U = /* @__PURE__ */ x(() => b.value), ot = /* @__PURE__ */ x(() => L.value);
|
|
2051
2051
|
function at() {
|
|
2052
2052
|
return j(g) ? g : null;
|
|
2053
2053
|
}
|
|
@@ -2061,7 +2061,7 @@ function Yo(e = {}) {
|
|
|
2061
2061
|
d !== null && (u = yn(d)), y = d, N.missing = u;
|
|
2062
2062
|
}
|
|
2063
2063
|
const me = (d, T, B, Q, he, Ye) => {
|
|
2064
|
-
|
|
2064
|
+
R();
|
|
2065
2065
|
let Le;
|
|
2066
2066
|
try {
|
|
2067
2067
|
$o.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (N.fallbackContext = t ? Io() : void 0), Le = d(N);
|
|
@@ -2071,30 +2071,30 @@ function Yo(e = {}) {
|
|
|
2071
2071
|
if (B !== "translate exists" && // for not `te` (e.g `t`)
|
|
2072
2072
|
te(Le) && Le === rt || B === "translate exists" && !Le) {
|
|
2073
2073
|
const [$n, Ua] = T();
|
|
2074
|
-
return t &&
|
|
2074
|
+
return t && S ? Q(t) : he($n);
|
|
2075
2075
|
} else {
|
|
2076
2076
|
if (Ye(Le))
|
|
2077
2077
|
return Le;
|
|
2078
|
-
throw $e(
|
|
2078
|
+
throw $e(ke.UNEXPECTED_RETURN_TYPE);
|
|
2079
2079
|
}
|
|
2080
2080
|
};
|
|
2081
2081
|
function Be(...d) {
|
|
2082
|
-
return me((T) => Reflect.apply(dn, null, [T, ...d]), () => Lt(...d), "translate", (T) => Reflect.apply(T.t, T, [...d]), (T) => T, (T) =>
|
|
2082
|
+
return me((T) => Reflect.apply(dn, null, [T, ...d]), () => Lt(...d), "translate", (T) => Reflect.apply(T.t, T, [...d]), (T) => T, (T) => k(T));
|
|
2083
2083
|
}
|
|
2084
2084
|
function xe(...d) {
|
|
2085
2085
|
const [T, B, Q] = d;
|
|
2086
2086
|
if (Q && !H(Q))
|
|
2087
|
-
throw $e(
|
|
2087
|
+
throw $e(ke.INVALID_ARGUMENT);
|
|
2088
2088
|
return Be(T, B, ne({ resolvedMessage: !0 }, Q || {}));
|
|
2089
2089
|
}
|
|
2090
2090
|
function it(...d) {
|
|
2091
|
-
return me((T) => Reflect.apply(ln, null, [T, ...d]), () =>
|
|
2091
|
+
return me((T) => Reflect.apply(ln, null, [T, ...d]), () => Rt(...d), "datetime format", (T) => Reflect.apply(T.d, T, [...d]), () => nn, (T) => k(T));
|
|
2092
2092
|
}
|
|
2093
2093
|
function ct(...d) {
|
|
2094
|
-
return me((T) => Reflect.apply(un, null, [T, ...d]), () =>
|
|
2094
|
+
return me((T) => Reflect.apply(un, null, [T, ...d]), () => At(...d), "number format", (T) => Reflect.apply(T.n, T, [...d]), () => nn, (T) => k(T));
|
|
2095
2095
|
}
|
|
2096
2096
|
function mt(d) {
|
|
2097
|
-
return d.map((T) =>
|
|
2097
|
+
return d.map((T) => k(T) || te(T) || Z(T) ? _n(String(T)) : T);
|
|
2098
2098
|
}
|
|
2099
2099
|
const ft = {
|
|
2100
2100
|
normalize: mt,
|
|
@@ -2114,20 +2114,20 @@ function Yo(e = {}) {
|
|
|
2114
2114
|
}, () => Lt(...d), "translate", (T) => T[Ot](...d), (T) => [_n(T)], (T) => ee(T));
|
|
2115
2115
|
}
|
|
2116
2116
|
function Ke(...d) {
|
|
2117
|
-
return me((T) => Reflect.apply(un, null, [T, ...d]), () =>
|
|
2117
|
+
return me((T) => Reflect.apply(un, null, [T, ...d]), () => At(...d), "number format", (T) => T[St](...d), En, (T) => k(T) || ee(T));
|
|
2118
2118
|
}
|
|
2119
2119
|
function _t(...d) {
|
|
2120
|
-
return me((T) => Reflect.apply(ln, null, [T, ...d]), () =>
|
|
2120
|
+
return me((T) => Reflect.apply(ln, null, [T, ...d]), () => Rt(...d), "datetime format", (T) => T[Ct](...d), En, (T) => k(T) || ee(T));
|
|
2121
2121
|
}
|
|
2122
2122
|
function pt(d) {
|
|
2123
|
-
|
|
2123
|
+
A = d, N.pluralRules = A;
|
|
2124
2124
|
}
|
|
2125
2125
|
function Et(d, T) {
|
|
2126
2126
|
return me(() => {
|
|
2127
2127
|
if (!d)
|
|
2128
2128
|
return !1;
|
|
2129
|
-
const B =
|
|
2130
|
-
return
|
|
2129
|
+
const B = k(T) ? T : m.value, Q = Re(B), he = N.messageResolver(Q, d);
|
|
2130
|
+
return Se(he) || le(he) || k(he);
|
|
2131
2131
|
}, () => [d], "translate exists", (B) => Reflect.apply(B.te, B, [d, T]), xo, (B) => Z(B));
|
|
2132
2132
|
}
|
|
2133
2133
|
function gt(d) {
|
|
@@ -2146,10 +2146,10 @@ function Yo(e = {}) {
|
|
|
2146
2146
|
const T = gt(d);
|
|
2147
2147
|
return T ?? (t ? t.tm(d) || {} : {});
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function Re(d) {
|
|
2150
2150
|
return E.value[d] || {};
|
|
2151
2151
|
}
|
|
2152
|
-
function
|
|
2152
|
+
function Ae(d, T) {
|
|
2153
2153
|
if (o) {
|
|
2154
2154
|
const B = { [d]: T };
|
|
2155
2155
|
for (const Q in B)
|
|
@@ -2167,15 +2167,15 @@ function Yo(e = {}) {
|
|
|
2167
2167
|
T = B[d], Je(T, E.value[d]), N.messages = E.value;
|
|
2168
2168
|
}
|
|
2169
2169
|
function yt(d) {
|
|
2170
|
-
return
|
|
2170
|
+
return b.value[d] || {};
|
|
2171
2171
|
}
|
|
2172
2172
|
function l(d, T) {
|
|
2173
|
-
|
|
2173
|
+
b.value[d] = T, N.datetimeFormats = b.value, sn(N, d, T);
|
|
2174
2174
|
}
|
|
2175
2175
|
function s(d, T) {
|
|
2176
|
-
|
|
2176
|
+
b.value[d] = ne(b.value[d] || {}, T), N.datetimeFormats = b.value, sn(N, d, T);
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2178
|
+
function v(d) {
|
|
2179
2179
|
return L.value[d] || {};
|
|
2180
2180
|
}
|
|
2181
2181
|
function P(d, T) {
|
|
@@ -2207,7 +2207,7 @@ function Yo(e = {}) {
|
|
|
2207
2207
|
return O;
|
|
2208
2208
|
},
|
|
2209
2209
|
get pluralRules() {
|
|
2210
|
-
return
|
|
2210
|
+
return A || {};
|
|
2211
2211
|
},
|
|
2212
2212
|
get isGlobal() {
|
|
2213
2213
|
return r;
|
|
@@ -2225,10 +2225,10 @@ function Yo(e = {}) {
|
|
|
2225
2225
|
f = d, N.fallbackWarn = f;
|
|
2226
2226
|
},
|
|
2227
2227
|
get fallbackRoot() {
|
|
2228
|
-
return
|
|
2228
|
+
return S;
|
|
2229
2229
|
},
|
|
2230
2230
|
set fallbackRoot(d) {
|
|
2231
|
-
|
|
2231
|
+
S = d;
|
|
2232
2232
|
},
|
|
2233
2233
|
get fallbackFormat() {
|
|
2234
2234
|
return h;
|
|
@@ -2249,8 +2249,8 @@ function Yo(e = {}) {
|
|
|
2249
2249
|
p = d, N.escapeParameter = d;
|
|
2250
2250
|
},
|
|
2251
2251
|
t: Be,
|
|
2252
|
-
getLocaleMessage:
|
|
2253
|
-
setLocaleMessage:
|
|
2252
|
+
getLocaleMessage: Re,
|
|
2253
|
+
setLocaleMessage: Ae,
|
|
2254
2254
|
mergeLocaleMessage: De,
|
|
2255
2255
|
getPostTranslationHandler: at,
|
|
2256
2256
|
setPostTranslationHandler: lt,
|
|
@@ -2258,7 +2258,7 @@ function Yo(e = {}) {
|
|
|
2258
2258
|
setMissingHandler: ut,
|
|
2259
2259
|
[Wo]: pt
|
|
2260
2260
|
};
|
|
2261
|
-
return M.datetimeFormats = U, M.numberFormats = ot, M.rt = xe, M.te = Et, M.tm = Pe, M.d = it, M.n = ct, M.getDateTimeFormat = yt, M.setDateTimeFormat = l, M.mergeDateTimeFormat = s, M.getNumberFormat =
|
|
2261
|
+
return M.datetimeFormats = U, M.numberFormats = ot, M.rt = xe, M.te = Et, M.tm = Pe, M.d = it, M.n = ct, M.getDateTimeFormat = yt, M.setDateTimeFormat = l, M.mergeDateTimeFormat = s, M.getNumberFormat = v, M.setNumberFormat = P, M.mergeNumberFormat = J, M[wn] = n, M[Ot] = dt, M[Ct] = _t, M[St] = Ke, M;
|
|
2262
2262
|
}
|
|
2263
2263
|
const Gt = {
|
|
2264
2264
|
tag: {
|
|
@@ -2302,22 +2302,22 @@ ne({
|
|
|
2302
2302
|
}
|
|
2303
2303
|
}, Gt);
|
|
2304
2304
|
function Xo(e) {
|
|
2305
|
-
return ee(e) && !
|
|
2305
|
+
return ee(e) && !k(e[0]);
|
|
2306
2306
|
}
|
|
2307
2307
|
function Vn(e, t, n, r) {
|
|
2308
2308
|
const { slots: o, attrs: a } = t;
|
|
2309
2309
|
return () => {
|
|
2310
2310
|
const i = { part: !0 };
|
|
2311
2311
|
let m = W();
|
|
2312
|
-
e.locale && (i.locale = e.locale),
|
|
2312
|
+
e.locale && (i.locale = e.locale), k(e.format) ? i.key = e.format : H(e.format) && (k(e.format.key) && (i.key = e.format.key), m = Object.keys(e.format).reduce((_, f) => n.includes(f) ? ne(W(), _, { [f]: e.format[f] }) : _, W()));
|
|
2313
2313
|
const c = r(e.value, i, m);
|
|
2314
2314
|
let E = [i.key];
|
|
2315
2315
|
ee(c) ? E = c.map((_, f) => {
|
|
2316
|
-
const
|
|
2316
|
+
const S = o[_.type], h = S ? S({ [_.type]: _.value, index: f, parts: c }) : [_.value];
|
|
2317
2317
|
return Xo(h) && (h[0].key = `${_.type}-${f}`), h;
|
|
2318
|
-
}) :
|
|
2319
|
-
const
|
|
2320
|
-
return hn(L,
|
|
2318
|
+
}) : k(c) && (E = [c]);
|
|
2319
|
+
const b = ne(W(), a), L = k(e.tag) || H(e.tag) ? e.tag : Un();
|
|
2320
|
+
return hn(L, b, E);
|
|
2321
2321
|
};
|
|
2322
2322
|
}
|
|
2323
2323
|
ne({
|
|
@@ -2342,9 +2342,9 @@ const qo = /* @__PURE__ */ Ne("global-vue-i18n");
|
|
|
2342
2342
|
function We(e = {}) {
|
|
2343
2343
|
const t = Dt();
|
|
2344
2344
|
if (t == null)
|
|
2345
|
-
throw $e(
|
|
2345
|
+
throw $e(ke.MUST_BE_CALL_SETUP_TOP);
|
|
2346
2346
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2347
|
-
throw $e(
|
|
2347
|
+
throw $e(ke.NOT_INSTALLED);
|
|
2348
2348
|
const n = Jo(t), r = Zo(n), o = Mn(t), a = Qo(e, o);
|
|
2349
2349
|
if (a === "global")
|
|
2350
2350
|
return Bo(r, e, o), r;
|
|
@@ -2356,14 +2356,14 @@ function We(e = {}) {
|
|
|
2356
2356
|
let m = i.__getInstance(t);
|
|
2357
2357
|
if (m == null) {
|
|
2358
2358
|
const c = ne({}, e);
|
|
2359
|
-
"__i18n" in o && (c.__i18n = o.__i18n), r && (c.__root = r), m = Yo(c), i.__composerExtend && (m[
|
|
2359
|
+
"__i18n" in o && (c.__i18n = o.__i18n), r && (c.__root = r), m = Yo(c), i.__composerExtend && (m[kt] = i.__composerExtend(m)), ta(i, t, m), i.__setInstance(t, m);
|
|
2360
2360
|
}
|
|
2361
2361
|
return m;
|
|
2362
2362
|
}
|
|
2363
2363
|
function Jo(e) {
|
|
2364
2364
|
const t = Hn(e.isCE ? qo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2365
2365
|
if (!t)
|
|
2366
|
-
throw $e(e.isCE ?
|
|
2366
|
+
throw $e(e.isCE ? ke.NOT_INSTALLED_WITH_PROVIDE : ke.UNEXPECTED_ERROR);
|
|
2367
2367
|
return t;
|
|
2368
2368
|
}
|
|
2369
2369
|
function Qo(e, t) {
|
|
@@ -2394,18 +2394,18 @@ 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), Wn(() => {
|
|
2399
2399
|
const r = n;
|
|
2400
2400
|
e.__deleteInstance(t);
|
|
2401
|
-
const o = r[
|
|
2402
|
-
o && (o(), delete r[
|
|
2401
|
+
const o = r[kt];
|
|
2402
|
+
o && (o(), delete r[kt]);
|
|
2403
2403
|
}, t);
|
|
2404
2404
|
}
|
|
2405
2405
|
Go();
|
|
2406
2406
|
yo(Zr);
|
|
2407
|
-
|
|
2408
|
-
|
|
2407
|
+
vo(po);
|
|
2408
|
+
bo(Nn);
|
|
2409
2409
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2410
2410
|
const e = Ie();
|
|
2411
2411
|
e.__INTLIFY__ = !0, zr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
@@ -2504,19 +2504,19 @@ function Xa(e = {}) {
|
|
|
2504
2504
|
type: "string",
|
|
2505
2505
|
key: "name",
|
|
2506
2506
|
entity: "item",
|
|
2507
|
-
values: ge(i.filter((
|
|
2507
|
+
values: ge(i.filter((b) => !!b.name).map((b) => b.name))
|
|
2508
2508
|
},
|
|
2509
2509
|
{
|
|
2510
2510
|
type: "string",
|
|
2511
2511
|
key: "code",
|
|
2512
2512
|
entity: "item",
|
|
2513
|
-
values: ge(i.filter((
|
|
2513
|
+
values: ge(i.filter((b) => !!b.code).map((b) => b.code))
|
|
2514
2514
|
},
|
|
2515
2515
|
{
|
|
2516
2516
|
type: "string",
|
|
2517
2517
|
key: "category",
|
|
2518
2518
|
entity: "item",
|
|
2519
|
-
values: ge(m.filter((
|
|
2519
|
+
values: ge(m.filter((b) => !!b.name).map((b) => b.name))
|
|
2520
2520
|
}
|
|
2521
2521
|
];
|
|
2522
2522
|
}), n = x(() => {
|
|
@@ -2536,7 +2536,7 @@ function Xa(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 E = c.value.map((
|
|
2539
|
+
const E = c.value.map((b) => r.value[b]);
|
|
2540
2540
|
return { ...c, value: E };
|
|
2541
2541
|
}
|
|
2542
2542
|
return c;
|
|
@@ -2546,7 +2546,7 @@ function Xa(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 E = c.value.map((
|
|
2549
|
+
const E = c.value.map((b) => n.value[b]);
|
|
2550
2550
|
return { ...c, value: E };
|
|
2551
2551
|
}
|
|
2552
2552
|
return c;
|
|
@@ -2564,7 +2564,7 @@ const la = {
|
|
|
2564
2564
|
class: "flex w-full justify-between gap-16"
|
|
2565
2565
|
}, ua = {
|
|
2566
2566
|
class: "break-all fm-typo-en-body-lg-400 line-clamp-1"
|
|
2567
|
-
},
|
|
2567
|
+
}, vn = /* @__PURE__ */ ce({
|
|
2568
2568
|
__name: "RuleConditionSelector",
|
|
2569
2569
|
props: {
|
|
2570
2570
|
ruleKey: {
|
|
@@ -2604,7 +2604,7 @@ const la = {
|
|
|
2604
2604
|
} = xt({
|
|
2605
2605
|
valueSource: x(() => a.state.menu.modules.item || []),
|
|
2606
2606
|
entity: "item"
|
|
2607
|
-
}), c = oa(), E = aa(),
|
|
2607
|
+
}), c = oa(), E = aa(), b = oe(r.ruleKey), L = x(() => [...c.map((C) => ({
|
|
2608
2608
|
label: C.label,
|
|
2609
2609
|
value: `restaurant_attr_${C.value}`
|
|
2610
2610
|
})), ...i.value.map((C) => ({
|
|
@@ -2617,25 +2617,25 @@ const la = {
|
|
|
2617
2617
|
label: `Product ${C.key}`,
|
|
2618
2618
|
value: `item_custom_${C.key}`
|
|
2619
2619
|
}))]), _ = oe(r.values), f = x(() => {
|
|
2620
|
-
const C =
|
|
2620
|
+
const C = b.value;
|
|
2621
2621
|
if (!C) return [];
|
|
2622
2622
|
if (C.startsWith("restaurant_attr_")) {
|
|
2623
|
-
const
|
|
2623
|
+
const R = C.replace("restaurant_attr_", ""), w = c.find((F) => F.value === R);
|
|
2624
2624
|
if (w && Array.isArray(w.options))
|
|
2625
2625
|
return w.options;
|
|
2626
2626
|
} else if (C.startsWith("restaurant_custom_")) {
|
|
2627
|
-
const
|
|
2627
|
+
const R = C.replace("restaurant_custom_", ""), w = i.value.find((F) => F.key === R);
|
|
2628
2628
|
if (w && Array.isArray(w.values))
|
|
2629
2629
|
return w.values.map((F) => ({
|
|
2630
2630
|
label: F,
|
|
2631
2631
|
value: F
|
|
2632
2632
|
}));
|
|
2633
2633
|
} else if (C.startsWith("item_attr_")) {
|
|
2634
|
-
const
|
|
2634
|
+
const R = C.replace("item_attr_", ""), w = E.find((F) => F.value === R);
|
|
2635
2635
|
if (w && Array.isArray(w.options))
|
|
2636
2636
|
return w.options;
|
|
2637
2637
|
} else if (C.startsWith("item_custom_")) {
|
|
2638
|
-
const
|
|
2638
|
+
const R = C.replace("item_custom_", ""), w = m.value.find((F) => F.key === R);
|
|
2639
2639
|
if (w && Array.isArray(w.values))
|
|
2640
2640
|
return w.values.map((F) => ({
|
|
2641
2641
|
label: F,
|
|
@@ -2643,7 +2643,7 @@ const la = {
|
|
|
2643
2643
|
}));
|
|
2644
2644
|
}
|
|
2645
2645
|
return [];
|
|
2646
|
-
}),
|
|
2646
|
+
}), S = oe(r.operator), h = [{
|
|
2647
2647
|
label: n("menu.rule_groups.condition_view.operator.in"),
|
|
2648
2648
|
value: "$in"
|
|
2649
2649
|
}, {
|
|
@@ -2653,9 +2653,9 @@ const la = {
|
|
|
2653
2653
|
label: n("menu.rule_groups.condition_view.operator.starts_with"),
|
|
2654
2654
|
value: "$startsWith"
|
|
2655
2655
|
}], y = oe(""), u = oe(""), g = oe(!1), I = x(() => {
|
|
2656
|
-
const C = f.value,
|
|
2656
|
+
const C = f.value, R = Array.isArray(_.value) ? _.value : [], w = R.map((D) => C.find((U) => U.value === D)).filter(Boolean);
|
|
2657
2657
|
let F = [];
|
|
2658
|
-
if (u.value ? F = C.filter((D) => D.label.toLowerCase().includes(u.value.toLowerCase()) && !
|
|
2658
|
+
if (u.value ? F = C.filter((D) => D.label.toLowerCase().includes(u.value.toLowerCase()) && !R.includes(D.value)) : F = C.filter((D) => !R.includes(D.value)), g.value) {
|
|
2659
2659
|
const D = w.map((U) => ({
|
|
2660
2660
|
...U,
|
|
2661
2661
|
disabled: !0
|
|
@@ -2665,28 +2665,28 @@ const la = {
|
|
|
2665
2665
|
return [...w, ...F];
|
|
2666
2666
|
}), p = x(() => {
|
|
2667
2667
|
let C = L.value;
|
|
2668
|
-
return C = C.filter((
|
|
2668
|
+
return C = C.filter((R) => !r.selectedKeys.includes(R.value) || R.value === b.value), y.value ? C.filter((R) => R.label.toLowerCase().includes(y.value.toLowerCase())) : C;
|
|
2669
2669
|
});
|
|
2670
|
-
Ze(() =>
|
|
2670
|
+
Ze(() => b.value, (C) => {
|
|
2671
2671
|
_.value = [];
|
|
2672
2672
|
});
|
|
2673
2673
|
function O(C) {
|
|
2674
2674
|
if (C.startsWith("restaurant_custom_")) {
|
|
2675
|
-
const
|
|
2675
|
+
const R = C.replace("restaurant_custom_", ""), w = i.value.find((F) => F.key === R);
|
|
2676
2676
|
return (w == null ? void 0 : w.type) || "string";
|
|
2677
2677
|
} else if (C.startsWith("item_custom_")) {
|
|
2678
|
-
const
|
|
2678
|
+
const R = C.replace("item_custom_", ""), w = m.value.find((F) => F.key === R);
|
|
2679
2679
|
return (w == null ? void 0 : w.type) || "string";
|
|
2680
2680
|
}
|
|
2681
2681
|
return "string";
|
|
2682
2682
|
}
|
|
2683
|
-
function
|
|
2684
|
-
const w = O(C === "ruleKey" ?
|
|
2683
|
+
function A(C, R) {
|
|
2684
|
+
const w = O(C === "ruleKey" ? R : b.value);
|
|
2685
2685
|
switch (C) {
|
|
2686
2686
|
case "ruleKey":
|
|
2687
2687
|
o("update:modelValue", {
|
|
2688
|
-
ruleKey:
|
|
2689
|
-
operator:
|
|
2688
|
+
ruleKey: R,
|
|
2689
|
+
operator: S.value,
|
|
2690
2690
|
values: _.value,
|
|
2691
2691
|
uniqueKey: r.uniqueKey,
|
|
2692
2692
|
type: w,
|
|
@@ -2695,8 +2695,8 @@ const la = {
|
|
|
2695
2695
|
break;
|
|
2696
2696
|
case "operator":
|
|
2697
2697
|
o("update:modelValue", {
|
|
2698
|
-
ruleKey:
|
|
2699
|
-
operator:
|
|
2698
|
+
ruleKey: b.value,
|
|
2699
|
+
operator: R,
|
|
2700
2700
|
values: _.value,
|
|
2701
2701
|
uniqueKey: r.uniqueKey,
|
|
2702
2702
|
type: w,
|
|
@@ -2705,9 +2705,9 @@ const la = {
|
|
|
2705
2705
|
break;
|
|
2706
2706
|
case "ruleValues":
|
|
2707
2707
|
o("update:modelValue", {
|
|
2708
|
-
ruleKey:
|
|
2709
|
-
operator:
|
|
2710
|
-
values:
|
|
2708
|
+
ruleKey: b.value,
|
|
2709
|
+
operator: S.value,
|
|
2710
|
+
values: R,
|
|
2711
2711
|
uniqueKey: r.uniqueKey,
|
|
2712
2712
|
type: w,
|
|
2713
2713
|
action: "update"
|
|
@@ -2724,68 +2724,68 @@ const la = {
|
|
|
2724
2724
|
action: "delete"
|
|
2725
2725
|
});
|
|
2726
2726
|
}
|
|
2727
|
-
return (C,
|
|
2727
|
+
return (C, R) => {
|
|
2728
2728
|
const w = Ee("FmSearch"), F = Ee("FmSelect"), D = Ee("FmButton");
|
|
2729
2729
|
return K(), X("div", la, [V("div", sa, [q(F, {
|
|
2730
2730
|
class: "flex w-full",
|
|
2731
|
-
modelValue:
|
|
2732
|
-
"onUpdate:modelValue": [
|
|
2731
|
+
modelValue: b.value,
|
|
2732
|
+
"onUpdate:modelValue": [R[2] || (R[2] = (U) => b.value = U), R[3] || (R[3] = (U) => A("ruleKey", U))],
|
|
2733
2733
|
items: p.value,
|
|
2734
2734
|
placeholder: Y(n)("menu.rule_groups.condition_view.select_item"),
|
|
2735
2735
|
"menu-id": "rule-filter-keys-menu"
|
|
2736
2736
|
}, {
|
|
2737
2737
|
"prepend-menu": se(() => [V("div", {
|
|
2738
|
-
onClick:
|
|
2738
|
+
onClick: R[1] || (R[1] = ae(() => {
|
|
2739
2739
|
}, ["stop"]))
|
|
2740
2740
|
}, [q(w, {
|
|
2741
2741
|
class: "px-8",
|
|
2742
2742
|
modelValue: y.value,
|
|
2743
|
-
"onUpdate:modelValue":
|
|
2743
|
+
"onUpdate:modelValue": R[0] || (R[0] = (U) => y.value = U),
|
|
2744
2744
|
placeholder: Y(n)("common.filter")
|
|
2745
2745
|
}, null, 8, ["modelValue", "placeholder"])])]),
|
|
2746
2746
|
_: 1
|
|
2747
2747
|
}, 8, ["modelValue", "items", "placeholder"]), q(F, {
|
|
2748
2748
|
class: "flex w-full",
|
|
2749
|
-
modelValue:
|
|
2750
|
-
"onUpdate:modelValue": [
|
|
2749
|
+
modelValue: S.value,
|
|
2750
|
+
"onUpdate:modelValue": [R[4] || (R[4] = (U) => S.value = U), R[5] || (R[5] = (U) => A("operator", U))],
|
|
2751
2751
|
placeholder: Y(n)("menu.rule_groups.condition_view.select_item"),
|
|
2752
2752
|
items: h,
|
|
2753
|
-
rules: [(U) =>
|
|
2753
|
+
rules: [(U) => b.value && !U ? Y(n)("menu.rule_groups.condition_view.required") : !0]
|
|
2754
2754
|
}, null, 8, ["modelValue", "placeholder", "rules"]), q(F, {
|
|
2755
2755
|
class: Pt(["flex w-full", {
|
|
2756
2756
|
"hide-selected-items": g.value
|
|
2757
2757
|
}]),
|
|
2758
2758
|
modelValue: _.value,
|
|
2759
|
-
"onUpdate:modelValue": [
|
|
2759
|
+
"onUpdate:modelValue": [R[9] || (R[9] = (U) => _.value = U), R[10] || (R[10] = (U) => A("ruleValues", U))],
|
|
2760
2760
|
items: I.value,
|
|
2761
2761
|
placeholder: Y(n)("menu.rule_groups.condition_view.select_item"),
|
|
2762
2762
|
multiselect: "",
|
|
2763
2763
|
"hide-chips": "",
|
|
2764
2764
|
"menu-id": "rule-filter-values-menu",
|
|
2765
|
-
rules: [(U) =>
|
|
2765
|
+
rules: [(U) => b.value && (!U || U.length === 0) ? Y(n)("menu.rule_groups.condition_view.required") : !0]
|
|
2766
2766
|
}, {
|
|
2767
2767
|
default: se(() => [V("div", ua, z(_.value.join(", ")), 1)]),
|
|
2768
2768
|
"prepend-menu": se(() => [V("div", {
|
|
2769
2769
|
class: "flex",
|
|
2770
|
-
onClick:
|
|
2770
|
+
onClick: R[8] || (R[8] = ae(() => {
|
|
2771
2771
|
}, ["stop"]))
|
|
2772
2772
|
}, [q(w, {
|
|
2773
2773
|
class: "px-8",
|
|
2774
2774
|
modelValue: u.value,
|
|
2775
|
-
"onUpdate:modelValue":
|
|
2775
|
+
"onUpdate:modelValue": R[6] || (R[6] = (U) => u.value = U),
|
|
2776
2776
|
placeholder: Y(n)("common.filter")
|
|
2777
2777
|
}, null, 8, ["modelValue", "placeholder"]), q(D, {
|
|
2778
2778
|
variant: Y(Te).Tertiary,
|
|
2779
2779
|
icon: g.value ? "check_box_outline_blank" : "check_box",
|
|
2780
2780
|
iconColor: "neutral-gray-300",
|
|
2781
2781
|
overwriteIconOutline: "filled",
|
|
2782
|
-
onClick:
|
|
2782
|
+
onClick: R[7] || (R[7] = (U) => g.value = !g.value)
|
|
2783
2783
|
}, null, 8, ["variant", "icon"])])]),
|
|
2784
2784
|
_: 1
|
|
2785
2785
|
}, 8, ["class", "modelValue", "items", "placeholder", "rules"])]), q(D, {
|
|
2786
2786
|
variant: "tertiary",
|
|
2787
2787
|
"prepend-icon": "close",
|
|
2788
|
-
onClick:
|
|
2788
|
+
onClick: R[11] || (R[11] = ae((U) => N(), ["stop"]))
|
|
2789
2789
|
})]);
|
|
2790
2790
|
};
|
|
2791
2791
|
}
|
|
@@ -2835,22 +2835,22 @@ const la = {
|
|
|
2835
2835
|
id: crypto.randomUUID(),
|
|
2836
2836
|
property: `item_custom_${f.property}`
|
|
2837
2837
|
}))]);
|
|
2838
|
-
|
|
2838
|
+
bn(() => {
|
|
2839
2839
|
E.value.length === 0 && _();
|
|
2840
2840
|
});
|
|
2841
|
-
const
|
|
2841
|
+
const b = oe([]);
|
|
2842
2842
|
function L(f) {
|
|
2843
|
-
const
|
|
2843
|
+
const S = f.uniqueKey.split("_"), h = S[0] === "newCondition";
|
|
2844
2844
|
if (f.action === "delete")
|
|
2845
2845
|
if (h)
|
|
2846
|
-
|
|
2846
|
+
b.value = b.value.filter((y) => y.key !== f.uniqueKey);
|
|
2847
2847
|
else {
|
|
2848
|
-
const y =
|
|
2848
|
+
const y = S.slice(1).join("_");
|
|
2849
2849
|
E.value = E.value.filter((u) => u.id !== y);
|
|
2850
2850
|
}
|
|
2851
2851
|
else if (f.action === "update")
|
|
2852
2852
|
if (h)
|
|
2853
|
-
|
|
2853
|
+
b.value = b.value.filter((y) => y.key !== f.uniqueKey), E.value.push({
|
|
2854
2854
|
id: crypto.randomUUID(),
|
|
2855
2855
|
property: f.ruleKey,
|
|
2856
2856
|
operator: f.operator,
|
|
@@ -2858,7 +2858,7 @@ const la = {
|
|
|
2858
2858
|
type: f.type
|
|
2859
2859
|
});
|
|
2860
2860
|
else {
|
|
2861
|
-
const y =
|
|
2861
|
+
const y = S.slice(1).join("_"), u = E.value.findIndex((g) => g.id === y);
|
|
2862
2862
|
u !== -1 && (E.value[u] = {
|
|
2863
2863
|
id: y,
|
|
2864
2864
|
// Keep the same ID
|
|
@@ -2871,41 +2871,41 @@ const la = {
|
|
|
2871
2871
|
o("update:modelValue", E.value);
|
|
2872
2872
|
}
|
|
2873
2873
|
function _() {
|
|
2874
|
-
|
|
2875
|
-
key: `newCondition_${
|
|
2874
|
+
b.value.push({
|
|
2875
|
+
key: `newCondition_${b.value.length}`
|
|
2876
2876
|
});
|
|
2877
2877
|
}
|
|
2878
|
-
return Ze(() => E.value.length +
|
|
2878
|
+
return Ze(() => E.value.length + b.value.length, (f) => {
|
|
2879
2879
|
f === 0 && _();
|
|
2880
|
-
}), (f,
|
|
2880
|
+
}), (f, S) => {
|
|
2881
2881
|
const h = Ee("FmButton");
|
|
2882
2882
|
return K(), X("div", ia, [V("p", ca, z(Y(n)("menu.rule_groups.condition_view.condition")), 1), V("div", ma, [(K(!0), X(pe, null, Me(E.value, (y) => (K(), X("div", {
|
|
2883
2883
|
key: y.id
|
|
2884
|
-
}, [q(
|
|
2884
|
+
}, [q(vn, {
|
|
2885
2885
|
ruleKey: y.property,
|
|
2886
2886
|
operator: y.operator,
|
|
2887
2887
|
values: y.value,
|
|
2888
2888
|
"unique-key": `condition_${y.id}`,
|
|
2889
2889
|
"selected-keys": E.value.map((u) => u.property),
|
|
2890
|
-
"onUpdate:modelValue":
|
|
2890
|
+
"onUpdate:modelValue": S[0] || (S[0] = (u) => {
|
|
2891
2891
|
L(u);
|
|
2892
2892
|
})
|
|
2893
|
-
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (K(!0), X(pe, null, Me(
|
|
2893
|
+
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (K(!0), X(pe, null, Me(b.value, (y) => (K(), X("div", {
|
|
2894
2894
|
key: y.key
|
|
2895
|
-
}, [q(
|
|
2895
|
+
}, [q(vn, {
|
|
2896
2896
|
ruleKey: "",
|
|
2897
2897
|
operator: "",
|
|
2898
2898
|
"unique-key": y.key,
|
|
2899
2899
|
values: [],
|
|
2900
2900
|
"selected-keys": E.value.map((u) => u.property),
|
|
2901
|
-
"onUpdate:modelValue":
|
|
2901
|
+
"onUpdate:modelValue": S[1] || (S[1] = (u) => {
|
|
2902
2902
|
L(u);
|
|
2903
2903
|
})
|
|
2904
2904
|
}, null, 8, ["unique-key", "selected-keys"])]))), 128)), q(h, {
|
|
2905
2905
|
variant: Y(Te).Plain,
|
|
2906
2906
|
"prepend-icon": "add",
|
|
2907
2907
|
label: Y(n)("menu.rule_groups.condition_view.add_condition"),
|
|
2908
|
-
onClick:
|
|
2908
|
+
onClick: S[2] || (S[2] = ae((y) => _(), ["stop"]))
|
|
2909
2909
|
}, null, 8, ["variant", "label"])])]);
|
|
2910
2910
|
};
|
|
2911
2911
|
}
|
|
@@ -2990,9 +2990,9 @@ function qa(e) {
|
|
|
2990
2990
|
function Ja(e) {
|
|
2991
2991
|
return Xn(e) ? null : Kn.build(e);
|
|
2992
2992
|
}
|
|
2993
|
-
const
|
|
2993
|
+
const va = {
|
|
2994
2994
|
class: "flex items-center gap-24"
|
|
2995
|
-
},
|
|
2995
|
+
}, ba = {
|
|
2996
2996
|
key: 0,
|
|
2997
2997
|
class: "fm-typo-en-headline-lg-600"
|
|
2998
2998
|
}, ha = {
|
|
@@ -3028,15 +3028,15 @@ const ba = {
|
|
|
3028
3028
|
}), E = x(() => {
|
|
3029
3029
|
var h;
|
|
3030
3030
|
return ((h = i.modelValue.restaurantRule) == null ? void 0 : h.restaurantCustomAttributes) ?? {};
|
|
3031
|
-
}),
|
|
3031
|
+
}), b = x(() => {
|
|
3032
3032
|
var h;
|
|
3033
3033
|
return ((h = i.modelValue.itemRule) == null ? void 0 : h.itemAttributes) ?? {};
|
|
3034
3034
|
}), L = x(() => {
|
|
3035
3035
|
var h;
|
|
3036
3036
|
return ((h = i.modelValue.itemRule) == null ? void 0 : h.itemCustomAttributes) ?? {};
|
|
3037
|
-
}), _ = oe([...c.value.rules ?? [], ...E.value.rules ?? [], ...
|
|
3038
|
-
function
|
|
3039
|
-
var p, O,
|
|
3037
|
+
}), _ = oe([...c.value.rules ?? [], ...E.value.rules ?? [], ...b.value.rules ?? [], ...L.value.rules ?? []]), f = oe([]);
|
|
3038
|
+
function S() {
|
|
3039
|
+
var p, O, A, N, C, R, w, F;
|
|
3040
3040
|
const h = i.modelValue, y = [], u = [], g = [], I = [];
|
|
3041
3041
|
if (f.value.length === 0) {
|
|
3042
3042
|
a(!1);
|
|
@@ -3070,12 +3070,12 @@ const ba = {
|
|
|
3070
3070
|
rules: y
|
|
3071
3071
|
},
|
|
3072
3072
|
restaurantCustomAttributes: {
|
|
3073
|
-
logic: ((N = (
|
|
3073
|
+
logic: ((N = (A = h.restaurantRule) == null ? void 0 : A.restaurantCustomAttributes) == null ? void 0 : N.logic) ?? "AND",
|
|
3074
3074
|
rules: u
|
|
3075
3075
|
}
|
|
3076
3076
|
}, h.itemRule = {
|
|
3077
3077
|
itemAttributes: {
|
|
3078
|
-
logic: ((
|
|
3078
|
+
logic: ((R = (C = h.itemRule) == null ? void 0 : C.itemAttributes) == null ? void 0 : R.logic) ?? "AND",
|
|
3079
3079
|
rules: g
|
|
3080
3080
|
},
|
|
3081
3081
|
itemCustomAttributes: {
|
|
@@ -3097,15 +3097,15 @@ const ba = {
|
|
|
3097
3097
|
"close-button": !1,
|
|
3098
3098
|
"is-container": Y(qn).FmForm,
|
|
3099
3099
|
"is-container-props": {
|
|
3100
|
-
onValidationSuccess:
|
|
3100
|
+
onValidationSuccess: S,
|
|
3101
3101
|
blameFormChildOnValidationFailed: !0
|
|
3102
3102
|
}
|
|
3103
3103
|
}, {
|
|
3104
|
-
"side-sheet-header": se(() => [V("div",
|
|
3104
|
+
"side-sheet-header": se(() => [V("div", va, [q(u, {
|
|
3105
3105
|
variant: Y(Te).Tertiary,
|
|
3106
3106
|
"prepend-icon": "arrow_back",
|
|
3107
3107
|
onClick: y[0] || (y[0] = ae((I) => a(), ["stop"]))
|
|
3108
|
-
}, null, 8, ["variant"]), h.isEditMode && _.value.length > 0 ? (K(), X("div",
|
|
3108
|
+
}, null, 8, ["variant"]), h.isEditMode && _.value.length > 0 ? (K(), X("div", ba, z(Y(r)("menu.rule_groups.condition_view.edit_condition")), 1)) : (K(), X("div", ha, z(Y(r)("menu.rule_groups.condition_view.add_condition")), 1))])]),
|
|
3109
3109
|
"side-sheet-footer": se(() => [V("div", Ta, [q(u, {
|
|
3110
3110
|
variant: "primary",
|
|
3111
3111
|
label: Y(r)("common.save"),
|
|
@@ -3128,10 +3128,10 @@ const ba = {
|
|
|
3128
3128
|
}
|
|
3129
3129
|
}), Na = {
|
|
3130
3130
|
class: "flex items-center justify-between pb-8"
|
|
3131
|
-
},
|
|
3131
|
+
}, Ra = {
|
|
3132
3132
|
key: 0,
|
|
3133
3133
|
class: "text-fm-color-neutral-gray-300"
|
|
3134
|
-
},
|
|
3134
|
+
}, Aa = {
|
|
3135
3135
|
class: "flex gap-8"
|
|
3136
3136
|
}, La = {
|
|
3137
3137
|
class: "flex flex-col space-y-8"
|
|
@@ -3139,9 +3139,9 @@ const ba = {
|
|
|
3139
3139
|
class: "fm-typo-en-body-lg-600"
|
|
3140
3140
|
}, Ca = {
|
|
3141
3141
|
class: "flex items-center space-x-8"
|
|
3142
|
-
}, ka = {
|
|
3143
|
-
class: "w-24"
|
|
3144
3142
|
}, Sa = {
|
|
3143
|
+
class: "w-24"
|
|
3144
|
+
}, ka = {
|
|
3145
3145
|
class: "flex break-all fm-typo-en-body-lg-400 line-clamp-1 space-x-8"
|
|
3146
3146
|
}, Pa = {
|
|
3147
3147
|
class: "px-8"
|
|
@@ -3186,9 +3186,9 @@ const ba = {
|
|
|
3186
3186
|
const {
|
|
3187
3187
|
t: n
|
|
3188
3188
|
} = We(), r = e, o = {
|
|
3189
|
-
[
|
|
3190
|
-
[
|
|
3191
|
-
[
|
|
3189
|
+
[vt.enum.ALL]: "ALL",
|
|
3190
|
+
[vt.enum.POS_ONLY]: "POS ONLY",
|
|
3191
|
+
[vt.enum.NONE]: "NONE"
|
|
3192
3192
|
}, a = t, i = oe(), m = x(() => {
|
|
3193
3193
|
var _, f;
|
|
3194
3194
|
return ((f = (_ = r.modelValue.restaurantRule) == null ? void 0 : _.restaurantAttributes) == null ? void 0 : f.rules) ?? [];
|
|
@@ -3198,7 +3198,7 @@ const ba = {
|
|
|
3198
3198
|
}), E = x(() => {
|
|
3199
3199
|
var _, f;
|
|
3200
3200
|
return ((f = (_ = r.modelValue.itemRule) == null ? void 0 : _.itemAttributes) == null ? void 0 : f.rules) ?? [];
|
|
3201
|
-
}),
|
|
3201
|
+
}), b = x(() => {
|
|
3202
3202
|
var _, f;
|
|
3203
3203
|
return ((f = (_ = r.modelValue.itemRule) == null ? void 0 : _.itemCustomAttributes) == null ? void 0 : f.rules) ?? [];
|
|
3204
3204
|
}), L = x(() => [...m.value.map((_) => ({
|
|
@@ -3210,13 +3210,13 @@ const ba = {
|
|
|
3210
3210
|
})), ...E.value.map((_) => ({
|
|
3211
3211
|
..._,
|
|
3212
3212
|
property: `${n("menu.product.title")} ${_.property}`
|
|
3213
|
-
})), ...
|
|
3213
|
+
})), ...b.value.map((_) => ({
|
|
3214
3214
|
..._,
|
|
3215
3215
|
property: `${n("menu.product.title")} ${_.property}`
|
|
3216
3216
|
}))]);
|
|
3217
3217
|
return (_, f) => {
|
|
3218
|
-
const
|
|
3219
|
-
return K(), X(pe, null, [V("div", Na, [e.title ? (K(), X("p",
|
|
3218
|
+
const S = Ee("FmButton"), h = Ee("FmMenu");
|
|
3219
|
+
return K(), X(pe, null, [V("div", Na, [e.title ? (K(), X("p", Ra, z(e.title), 1)) : Fe("", !0), V("div", Aa, [e.isCatalogLinkItemRuleView ? (K(), Bt(S, {
|
|
3220
3220
|
key: 1,
|
|
3221
3221
|
variant: Y(Te).Tertiary,
|
|
3222
3222
|
class: "cursor-pointer",
|
|
@@ -3235,7 +3235,7 @@ const ba = {
|
|
|
3235
3235
|
}, {
|
|
3236
3236
|
default: se(({
|
|
3237
3237
|
trigger: y
|
|
3238
|
-
}) => [q(
|
|
3238
|
+
}) => [q(S, {
|
|
3239
3239
|
variant: Y(Te).Tertiary,
|
|
3240
3240
|
class: "cursor-pointer",
|
|
3241
3241
|
"prepend-icon": "edit",
|
|
@@ -3243,13 +3243,13 @@ const ba = {
|
|
|
3243
3243
|
onClick: ae((u) => y(), ["stop"])
|
|
3244
3244
|
}, null, 8, ["variant", "onClick"])]),
|
|
3245
3245
|
_: 1
|
|
3246
|
-
}, 8, ["model-value"])), q(
|
|
3246
|
+
}, 8, ["model-value"])), q(S, {
|
|
3247
3247
|
variant: Y(Te).Tertiary,
|
|
3248
3248
|
class: "cursor-pointer",
|
|
3249
3249
|
"prepend-icon": "file_copy",
|
|
3250
3250
|
"text-color": " text-fm-color-primary",
|
|
3251
3251
|
onClick: f[2] || (f[2] = ae((y) => _.$emit("copy-rule", r.modelValue._id), ["stop"]))
|
|
3252
|
-
}, null, 8, ["variant"]), q(
|
|
3252
|
+
}, null, 8, ["variant"]), q(S, {
|
|
3253
3253
|
variant: Y(Te).Tertiary,
|
|
3254
3254
|
class: "cursor-pointer",
|
|
3255
3255
|
"prepend-icon": "delete",
|
|
@@ -3259,7 +3259,7 @@ const ba = {
|
|
|
3259
3259
|
key: 0
|
|
3260
3260
|
}, Me(e.ruleGroupNames, (y, u) => (K(), X("div", {
|
|
3261
3261
|
key: y
|
|
3262
|
-
}, [V("div", Ca, [V("p",
|
|
3262
|
+
}, [V("div", Ca, [V("p", Sa, z(u + 1) + ".", 1), V("div", ka, [V("p", null, z(Y(n)("menu.rule_groups.condition_view.in_rule_group")), 1), q(h, {
|
|
3263
3263
|
trigger: "hover",
|
|
3264
3264
|
closeOnMouseLeave: ""
|
|
3265
3265
|
}, {
|