@feedmepos/mf-menu 0.32.62 → 0.32.63-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-CE4fZP2_.js → App-DhfTGlgM.js} +467 -462
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-PpYjjdOP.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C_JKiJRD.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
- package/dist/{Catalog-C2MyXkps.js → Catalog-WuZJfM6l.js} +78 -78
- package/dist/{Category-B7Uxbyug.js → Category-BeIo7XWY.js} +20 -20
- package/dist/{Category-BoV0MYQp.js → Category-D-cQQCPS.js} +19 -19
- package/dist/{CookingGuide-Bdyj8XMv.js → CookingGuide-B-yvD9ZA.js} +88 -88
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-EDbgLHTU.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
- package/dist/{Group-BuFbi0Z-.js → Group-13i5igrS.js} +5 -5
- package/dist/{Group-DYpxc5ui.js → Group-CY8lUzQG.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-B5Uw2Rzm.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-COYg8e7h.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-YY25YW4B.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
- package/dist/{Ingredient-Ddw06I0B.js → Ingredient-vrUOW6gk.js} +49 -49
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CsWdL5Lz.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
- package/dist/{LinkProductSideSheet-COAMZqOM.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
- package/dist/{MenuSetting--G1_lGoV.js → MenuSetting-Di2xwm00.js} +10 -10
- package/dist/{OrderPacing-DnvLJh5M.js → OrderPacing-CCe-IcGO.js} +28 -28
- package/dist/{PrintRoute-CP-3JGP3.js → PrintRoute-CcfObcHY.js} +27 -27
- package/dist/{Product-D-q15-Qw.js → Product-ChUVnMgG.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-BaOg60Q6.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
- package/dist/{ProductInternalTools-wYn0bzml.js → ProductInternalTools-D9HXhgo5.js} +80 -79
- package/dist/{Products-CxEsB-7l.js → Products-Bly2ktEC.js} +75 -74
- package/dist/{Publish-BCljLztW.js → Publish-C8ubb8Qf.js} +113 -113
- package/dist/{Recipe-DgfobgnQ.js → Recipe-BpMRLsyO.js} +32 -32
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BgDVFKRI.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DCbrAMxd.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +474 -473
- package/dist/{Scheduler-C-LJs7Gl.js → Scheduler-CiB4b2Fn.js} +9 -9
- package/dist/{ServingSequence-BoaDRfsc.js → ServingSequence-BlcyW-dv.js} +18 -18
- package/dist/{Setting-BfFqBD9u.js → Setting-DqkL6YYU.js} +31 -31
- package/dist/{Subcategory-BsnC9ZSS.js → Subcategory-B4Jg_wtT.js} +43 -43
- package/dist/{Takeaway-PilRifJP.js → Takeaway-5G3f7jWT.js} +1 -1
- package/dist/{Takeaway-dSEAc70g.js → Takeaway-5rFPYYNA.js} +16 -16
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CgioM0sV.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CHf3g1ia.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-A43XxqyC.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js} +8 -9
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +5836 -0
- package/dist/{Unit-DW1dFJas.js → Unit-CAkdmQLg.js} +2 -2
- package/dist/{Variant-CzLzrt2N.js → Variant-BbLQqbAK.js} +13 -13
- package/dist/{_id_-qfASfKMD.js → _id_-Dzacr40I.js} +13 -13
- package/dist/{app-BB33yKM6.js → app-4yWs09Fr.js} +495 -495
- package/dist/{app-CJnEQz-U.js → app-Deov1985.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +161 -0
- package/dist/apps/mf-menu/src/app.d.ts +340 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +150 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/CustomDimensionDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +16 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +75 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
- package/dist/apps/mf-menu/src/composable/remyImageTarget.d.ts +5 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +14 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/src/types/rule.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +3 -2
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +8 -8
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-VaVE9Pyh.js → linked-status-B2WLhKkV.js} +3 -3
- package/dist/assets/{menu-export-DD9Zt6XH.js → menu-export-Dcw5a_dN.js} +3 -3
- package/dist/assets/{override-menu-DZCgrhuF.js → override-menu-cBe2aMY6.js} +3 -3
- package/dist/assets/{validate-menu-BFsQlikL.js → validate-menu-BM-5GK85.js} +2 -2
- package/dist/{catalog-Cvn1ZMGp.js → catalog-DKygS2Cs.js} +6 -6
- package/dist/{catalogSetting-D2bOCGW7.js → catalogSetting-Bn2TplvM.js} +1 -1
- package/dist/currency-DXgNHtK8.js +7 -0
- package/dist/dayjs.min-DpX65tgj.js +7 -0
- package/dist/discardConfirm-DZwzKO-Q.js +3704 -0
- package/dist/{index-B2fxLO4K.js → index-B48KLyqg.js} +61 -61
- package/dist/{index-CizrxT_e.js → index-BEocaqRK.js} +30 -30
- package/dist/index-K-MBqJJo.js +222 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-gaRM4vfS.js → index.vue_vue_type_script_setup_true_lang-Nl505vPi.js} +44918 -51563
- package/dist/item-Da3ArD-G.js +13213 -0
- package/dist/{jszip.min-BXLegUsz.js → jszip.min-Cc2eR4Cq.js} +119 -119
- package/dist/linkProducts-GNuUxFEE.js +331 -0
- package/dist/{memberPricing-CizI1rUM.js → memberPricing-T-jr7tn1.js} +1 -1
- package/dist/{menu-BCed1YCE.js → menu-DSDRAil-.js} +1 -1
- package/dist/{menuV2-Bo9AHrdr.js → menuV2-fTlJdjxi.js} +162 -160
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-BkfQeNeC.js → order_pacing-Dgo1fySS.js} +17 -17
- package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
- package/dist/{priceTier-rjuK-b6U.js → priceTier-aT_gIfrN.js} +3 -3
- package/dist/{rules-DHX_hK6G.js → rules-Cx2hkV20.js} +8 -8
- package/dist/{scheduler-BsfPbtM2.js → scheduler-Bd-q7yF8.js} +62 -62
- package/dist/{toExcel-DJHljg_L.js → toExcel-qfjR83qT.js} +2 -2
- package/dist/{unit-BxTWR1dZ.js → unit-n1T9grbM.js} +64 -64
- package/package.json +3 -3
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DGqao47l.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DY1umres.js +0 -6058
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +0 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +0 -38
- package/dist/currency-DQDsuXB5.js +0 -7
- package/dist/dayjs.min-CzUkrXIR.js +0 -7
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-CisutoS9.js +0 -156
- package/dist/item-DOHVD6CN.js +0 -9098
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as ie, createElementBlock as j, openBlock as x, normalizeClass as Pt, renderSlot as Qe, createCommentVNode as Fe, createVNode as X, createElementVNode as V, toDisplayString as Z, withCtx as ae, getCurrentInstance as Dt, inject as Hn, ref as oe, shallowRef as Gn, computed as
|
|
1
|
+
import { defineComponent as ie, createElementBlock as j, openBlock as x, normalizeClass as Pt, renderSlot as Qe, createCommentVNode as Fe, createVNode as X, createElementVNode as V, toDisplayString as Z, withCtx as ae, getCurrentInstance as Dt, inject as Hn, ref as oe, shallowRef as Gn, computed as W, watch as Ze, onMounted as vn, onUnmounted as Wn, h as hn, Text as Bn, Fragment as de, resolveComponent as pe, unref as K, withModifiers as se, renderList as Me, createBlock as Bt } from "vue";
|
|
2
2
|
import { x as xn, N as Kn } from "./app-5fxKLAzS.js";
|
|
3
3
|
import { useCoreStore as wt, useI18n as Ge, useCustomAttributes as xt, EMPTY_RULE as Yn, isEmptyMongoQuery as jn, isEmptyRule as Xn } from "@feedmepos/mf-common";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { u as Tn,
|
|
5
|
+
import { u as Tn, k as bt } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
6
6
|
import { FmButtonVariant as he, components as qn } from "@feedmepos/ui-library";
|
|
7
|
+
import { l as Kt } from "./discardConfirm-DZwzKO-Q.js";
|
|
7
8
|
import "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
8
9
|
const Jn = /* @__PURE__ */ ie({
|
|
9
10
|
__name: "FormColumn",
|
|
@@ -23,7 +24,7 @@ const Jn = /* @__PURE__ */ ie({
|
|
|
23
24
|
}, Zn = { class: "space-y-4" }, zn = { class: "fm-typo-en-title-sm-600" }, er = {
|
|
24
25
|
key: 0,
|
|
25
26
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
26
|
-
},
|
|
27
|
+
}, ja = /* @__PURE__ */ ie({
|
|
27
28
|
__name: "FormSection",
|
|
28
29
|
props: {
|
|
29
30
|
title: {},
|
|
@@ -65,7 +66,7 @@ const ar = Object.prototype.hasOwnProperty;
|
|
|
65
66
|
function le(e, t) {
|
|
66
67
|
return ar.call(e, t);
|
|
67
68
|
}
|
|
68
|
-
const z = Array.isArray, Y = (e) => typeof e == "function",
|
|
69
|
+
const z = Array.isArray, Y = (e) => typeof e == "function", S = (e) => typeof e == "string", Q = (e) => typeof e == "boolean", U = (e) => e !== null && typeof e == "object", sr = (e) => U(e) && Y(e.then) && Y(e.catch), In = Object.prototype.toString, Ft = (e) => In.call(e), M = (e) => Ft(e) === "[object Object]", lr = (e) => e == null ? "" : z(e) || M(e) && e.toString === In ? JSON.stringify(e, null, 2) : String(e);
|
|
69
70
|
function Mt(e, t = "") {
|
|
70
71
|
return e.reduce((n, r, o) => o === 0 ? n + r : n + t + r, "");
|
|
71
72
|
}
|
|
@@ -120,7 +121,7 @@ const me = " ", fr = "\r", ne = `
|
|
|
120
121
|
function pr(e) {
|
|
121
122
|
const t = e;
|
|
122
123
|
let n = 0, r = 1, o = 1, a = 0;
|
|
123
|
-
const i = (d) => t[d] === fr && t[d + 1] === ne, m = (d) => t[d] === ne, c = (d) => t[d] === dr,
|
|
124
|
+
const i = (d) => t[d] === fr && t[d + 1] === ne, m = (d) => t[d] === ne, c = (d) => t[d] === dr, g = (d) => t[d] === _r, h = (d) => i(d) || m(d) || c(d) || g(d), O = () => n, p = () => r, f = () => o, k = () => a, T = (d) => i(d) || c(d) || g(d) ? ne : t[d], y = () => T(n), u = () => T(n + a);
|
|
124
125
|
function b() {
|
|
125
126
|
return a = 0, h(n) && (r++, o = 0), i(n) && n++, n++, o++, t[n];
|
|
126
127
|
}
|
|
@@ -130,10 +131,10 @@ function pr(e) {
|
|
|
130
131
|
function E() {
|
|
131
132
|
n = 0, r = 1, o = 1, a = 0;
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
+
function A(d = 0) {
|
|
134
135
|
a = d;
|
|
135
136
|
}
|
|
136
|
-
function
|
|
137
|
+
function R() {
|
|
137
138
|
const d = n + a;
|
|
138
139
|
for (; d !== n; )
|
|
139
140
|
b();
|
|
@@ -143,19 +144,19 @@ function pr(e) {
|
|
|
143
144
|
index: O,
|
|
144
145
|
line: p,
|
|
145
146
|
column: f,
|
|
146
|
-
peekOffset:
|
|
147
|
+
peekOffset: k,
|
|
147
148
|
charAt: T,
|
|
148
|
-
currentChar:
|
|
149
|
+
currentChar: y,
|
|
149
150
|
currentPeek: u,
|
|
150
151
|
next: b,
|
|
151
152
|
peek: N,
|
|
152
153
|
reset: E,
|
|
153
|
-
resetPeek:
|
|
154
|
-
skipToPeek:
|
|
154
|
+
resetPeek: A,
|
|
155
|
+
skipToPeek: R
|
|
155
156
|
};
|
|
156
157
|
}
|
|
157
|
-
const
|
|
158
|
-
function
|
|
158
|
+
const ge = void 0, Er = ".", qt = "'", gr = "tokenizer";
|
|
159
|
+
function yr(e, t = {}) {
|
|
159
160
|
const n = t.location !== !1, r = pr(e), o = () => r.index(), a = () => ir(r.line(), r.column(), r.index()), i = a(), m = o(), c = {
|
|
160
161
|
currentType: 13,
|
|
161
162
|
offset: m,
|
|
@@ -168,12 +169,12 @@ function gr(e, t = {}) {
|
|
|
168
169
|
braceNest: 0,
|
|
169
170
|
inLinked: !1,
|
|
170
171
|
text: ""
|
|
171
|
-
},
|
|
172
|
+
}, g = () => c, { onError: h } = t;
|
|
172
173
|
function O(s, l, v, ...D) {
|
|
173
|
-
const q =
|
|
174
|
+
const q = g();
|
|
174
175
|
if (l.column += v, l.offset += v, h) {
|
|
175
176
|
const F = n ? It(q.startLoc, l) : null, _ = nt(s, F, {
|
|
176
|
-
domain:
|
|
177
|
+
domain: gr,
|
|
177
178
|
args: D
|
|
178
179
|
});
|
|
179
180
|
h(_);
|
|
@@ -189,7 +190,7 @@ function gr(e, t = {}) {
|
|
|
189
190
|
13
|
|
190
191
|
/* TokenTypes.EOF */
|
|
191
192
|
);
|
|
192
|
-
function
|
|
193
|
+
function k(s, l) {
|
|
193
194
|
return s.currentChar() === l ? (s.next(), l) : (O($.EXPECTED_TOKEN, a(), 0, l), "");
|
|
194
195
|
}
|
|
195
196
|
function T(s) {
|
|
@@ -198,12 +199,12 @@ function gr(e, t = {}) {
|
|
|
198
199
|
l += s.currentPeek(), s.peek();
|
|
199
200
|
return l;
|
|
200
201
|
}
|
|
201
|
-
function
|
|
202
|
+
function y(s) {
|
|
202
203
|
const l = T(s);
|
|
203
204
|
return s.skipToPeek(), l;
|
|
204
205
|
}
|
|
205
206
|
function u(s) {
|
|
206
|
-
if (s ===
|
|
207
|
+
if (s === ge)
|
|
207
208
|
return !1;
|
|
208
209
|
const l = s.charCodeAt(0);
|
|
209
210
|
return l >= 97 && l <= 122 || // a-z
|
|
@@ -211,7 +212,7 @@ function gr(e, t = {}) {
|
|
|
211
212
|
l === 95;
|
|
212
213
|
}
|
|
213
214
|
function b(s) {
|
|
214
|
-
if (s ===
|
|
215
|
+
if (s === ge)
|
|
215
216
|
return !1;
|
|
216
217
|
const l = s.charCodeAt(0);
|
|
217
218
|
return l >= 48 && l <= 57;
|
|
@@ -232,7 +233,7 @@ function gr(e, t = {}) {
|
|
|
232
233
|
const D = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), q = b(D);
|
|
233
234
|
return s.resetPeek(), q;
|
|
234
235
|
}
|
|
235
|
-
function
|
|
236
|
+
function A(s, l) {
|
|
236
237
|
const { currentType: v } = l;
|
|
237
238
|
if (v !== 2)
|
|
238
239
|
return !1;
|
|
@@ -240,7 +241,7 @@ function gr(e, t = {}) {
|
|
|
240
241
|
const D = s.currentPeek() === qt;
|
|
241
242
|
return s.resetPeek(), D;
|
|
242
243
|
}
|
|
243
|
-
function
|
|
244
|
+
function R(s, l) {
|
|
244
245
|
const { currentType: v } = l;
|
|
245
246
|
if (v !== 7)
|
|
246
247
|
return !1;
|
|
@@ -270,7 +271,7 @@ function gr(e, t = {}) {
|
|
|
270
271
|
return !1;
|
|
271
272
|
const D = () => {
|
|
272
273
|
const F = s.currentPeek();
|
|
273
|
-
return F === "{" ? u(s.peek()) : F === "@" || F === "|" || F === ":" || F === "." || F === me || !F ? !1 : F === ne ? (s.peek(), D()) :
|
|
274
|
+
return F === "{" ? u(s.peek()) : F === "@" || F === "|" || F === ":" || F === "." || F === me || !F ? !1 : F === ne ? (s.peek(), D()) : B(s, !1);
|
|
274
275
|
}, q = D();
|
|
275
276
|
return s.resetPeek(), q;
|
|
276
277
|
}
|
|
@@ -279,7 +280,7 @@ function gr(e, t = {}) {
|
|
|
279
280
|
const l = s.currentPeek() === "|";
|
|
280
281
|
return s.resetPeek(), l;
|
|
281
282
|
}
|
|
282
|
-
function
|
|
283
|
+
function B(s, l = !0) {
|
|
283
284
|
const v = (q = !1, F = "") => {
|
|
284
285
|
const _ = s.currentPeek();
|
|
285
286
|
return _ === "{" || _ === "@" || !_ ? q : _ === "|" ? !(F === me || F === ne) : _ === me ? (s.peek(), v(!0, me)) : _ === ne ? (s.peek(), v(!0, ne)) : !0;
|
|
@@ -288,7 +289,7 @@ function gr(e, t = {}) {
|
|
|
288
289
|
}
|
|
289
290
|
function C(s, l) {
|
|
290
291
|
const v = s.currentChar();
|
|
291
|
-
return v ===
|
|
292
|
+
return v === ge ? ge : l(v) ? (s.next(), v) : null;
|
|
292
293
|
}
|
|
293
294
|
function Ne(s) {
|
|
294
295
|
const l = s.charCodeAt(0);
|
|
@@ -326,7 +327,7 @@ function gr(e, t = {}) {
|
|
|
326
327
|
l >= 65 && l <= 70 || // A-F
|
|
327
328
|
l >= 97 && l <= 102;
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
+
function Be(s) {
|
|
330
331
|
return C(s, ce);
|
|
331
332
|
}
|
|
332
333
|
function xe(s) {
|
|
@@ -342,7 +343,7 @@ function gr(e, t = {}) {
|
|
|
342
343
|
if (v === "{" || v === "}" || v === "@" || v === "|" || !v)
|
|
343
344
|
break;
|
|
344
345
|
if (v === me || v === ne)
|
|
345
|
-
if (
|
|
346
|
+
if (B(s))
|
|
346
347
|
l += v, s.next();
|
|
347
348
|
else {
|
|
348
349
|
if (w(s))
|
|
@@ -355,27 +356,27 @@ function gr(e, t = {}) {
|
|
|
355
356
|
return l;
|
|
356
357
|
}
|
|
357
358
|
function ct(s) {
|
|
358
|
-
|
|
359
|
+
y(s);
|
|
359
360
|
let l = "", v = "";
|
|
360
361
|
for (; l = st(s); )
|
|
361
362
|
v += l;
|
|
362
|
-
return s.currentChar() ===
|
|
363
|
+
return s.currentChar() === ge && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), v;
|
|
363
364
|
}
|
|
364
365
|
function mt(s) {
|
|
365
|
-
|
|
366
|
+
y(s);
|
|
366
367
|
let l = "";
|
|
367
|
-
return s.currentChar() === "-" ? (s.next(), l += `-${xe(s)}`) : l += xe(s), s.currentChar() ===
|
|
368
|
+
return s.currentChar() === "-" ? (s.next(), l += `-${xe(s)}`) : l += xe(s), s.currentChar() === ge && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), l;
|
|
368
369
|
}
|
|
369
|
-
function
|
|
370
|
+
function Wt(s) {
|
|
370
371
|
return s !== qt && s !== ne;
|
|
371
372
|
}
|
|
372
373
|
function ft(s) {
|
|
373
|
-
|
|
374
|
+
y(s), k(s, "'");
|
|
374
375
|
let l = "", v = "";
|
|
375
|
-
for (; l = C(s,
|
|
376
|
+
for (; l = C(s, Wt); )
|
|
376
377
|
l === "\\" ? v += _t(s) : v += l;
|
|
377
378
|
const D = s.currentChar();
|
|
378
|
-
return D === ne || D ===
|
|
379
|
+
return D === ne || D === ge ? (O($.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), D === ne && (s.next(), k(s, "'")), v) : (k(s, "'"), v);
|
|
379
380
|
}
|
|
380
381
|
function _t(s) {
|
|
381
382
|
const l = s.currentChar();
|
|
@@ -392,10 +393,10 @@ function gr(e, t = {}) {
|
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
395
|
function Ke(s, l, v) {
|
|
395
|
-
|
|
396
|
+
k(s, l);
|
|
396
397
|
let D = "";
|
|
397
398
|
for (let q = 0; q < v; q++) {
|
|
398
|
-
const F =
|
|
399
|
+
const F = Be(s);
|
|
399
400
|
if (!F) {
|
|
400
401
|
O($.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${l}${D}${s.currentChar()}`);
|
|
401
402
|
break;
|
|
@@ -408,7 +409,7 @@ function gr(e, t = {}) {
|
|
|
408
409
|
return s !== "{" && s !== "}" && s !== me && s !== ne;
|
|
409
410
|
}
|
|
410
411
|
function pt(s) {
|
|
411
|
-
|
|
412
|
+
y(s);
|
|
412
413
|
let l = "", v = "";
|
|
413
414
|
for (; l = C(s, dt); )
|
|
414
415
|
v += l;
|
|
@@ -420,7 +421,7 @@ function gr(e, t = {}) {
|
|
|
420
421
|
v += l;
|
|
421
422
|
return v;
|
|
422
423
|
}
|
|
423
|
-
function
|
|
424
|
+
function gt(s) {
|
|
424
425
|
const l = (v) => {
|
|
425
426
|
const D = s.currentChar();
|
|
426
427
|
return D === "{" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === me ? v : (v += D, s.next(), l(v));
|
|
@@ -428,15 +429,15 @@ function gr(e, t = {}) {
|
|
|
428
429
|
return l("");
|
|
429
430
|
}
|
|
430
431
|
function Pe(s) {
|
|
431
|
-
|
|
432
|
-
const l =
|
|
432
|
+
y(s);
|
|
433
|
+
const l = k(
|
|
433
434
|
s,
|
|
434
435
|
"|"
|
|
435
436
|
/* TokenChars.Pipe */
|
|
436
437
|
);
|
|
437
|
-
return
|
|
438
|
+
return y(s), l;
|
|
438
439
|
}
|
|
439
|
-
function
|
|
440
|
+
function Ae(s, l) {
|
|
440
441
|
let v = null;
|
|
441
442
|
switch (s.currentChar()) {
|
|
442
443
|
case "{":
|
|
@@ -445,16 +446,16 @@ function gr(e, t = {}) {
|
|
|
445
446
|
2,
|
|
446
447
|
"{"
|
|
447
448
|
/* TokenChars.BraceLeft */
|
|
448
|
-
),
|
|
449
|
+
), y(s), l.braceNest++, v;
|
|
449
450
|
case "}":
|
|
450
451
|
return l.braceNest > 0 && l.currentType === 2 && O($.EMPTY_PLACEHOLDER, a(), 0), s.next(), v = p(
|
|
451
452
|
l,
|
|
452
453
|
3,
|
|
453
454
|
"}"
|
|
454
455
|
/* TokenChars.BraceRight */
|
|
455
|
-
), l.braceNest--, l.braceNest > 0 &&
|
|
456
|
+
), l.braceNest--, l.braceNest > 0 && y(s), l.inLinked && l.braceNest === 0 && (l.inLinked = !1), v;
|
|
456
457
|
case "@":
|
|
457
|
-
return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), v =
|
|
458
|
+
return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), v = Re(s, l) || f(l), l.braceNest = 0, v;
|
|
458
459
|
default: {
|
|
459
460
|
let q = !0, F = !0, _ = !0;
|
|
460
461
|
if (w(s))
|
|
@@ -462,19 +463,19 @@ function gr(e, t = {}) {
|
|
|
462
463
|
if (l.braceNest > 0 && (l.currentType === 4 || l.currentType === 5 || l.currentType === 6))
|
|
463
464
|
return O($.UNTERMINATED_CLOSING_BRACE, a(), 0), l.braceNest = 0, De(s, l);
|
|
464
465
|
if (q = N(s, l))
|
|
465
|
-
return v = p(l, 4, ct(s)),
|
|
466
|
+
return v = p(l, 4, ct(s)), y(s), v;
|
|
466
467
|
if (F = E(s, l))
|
|
467
|
-
return v = p(l, 5, mt(s)),
|
|
468
|
-
if (_ =
|
|
469
|
-
return v = p(l, 6, ft(s)),
|
|
468
|
+
return v = p(l, 5, mt(s)), y(s), v;
|
|
469
|
+
if (_ = A(s, l))
|
|
470
|
+
return v = p(l, 6, ft(s)), y(s), v;
|
|
470
471
|
if (!q && !F && !_)
|
|
471
|
-
return v = p(l, 12, pt(s)), O($.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, v.value),
|
|
472
|
+
return v = p(l, 12, pt(s)), O($.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, v.value), y(s), v;
|
|
472
473
|
break;
|
|
473
474
|
}
|
|
474
475
|
}
|
|
475
476
|
return v;
|
|
476
477
|
}
|
|
477
|
-
function
|
|
478
|
+
function Re(s, l) {
|
|
478
479
|
const { currentType: v } = l;
|
|
479
480
|
let D = null;
|
|
480
481
|
const q = s.currentChar();
|
|
@@ -487,21 +488,21 @@ function gr(e, t = {}) {
|
|
|
487
488
|
/* TokenChars.LinkedAlias */
|
|
488
489
|
), l.inLinked = !0, D;
|
|
489
490
|
case ".":
|
|
490
|
-
return
|
|
491
|
+
return y(s), s.next(), p(
|
|
491
492
|
l,
|
|
492
493
|
8,
|
|
493
494
|
"."
|
|
494
495
|
/* TokenChars.LinkedDot */
|
|
495
496
|
);
|
|
496
497
|
case ":":
|
|
497
|
-
return
|
|
498
|
+
return y(s), s.next(), p(
|
|
498
499
|
l,
|
|
499
500
|
9,
|
|
500
501
|
":"
|
|
501
502
|
/* TokenChars.LinkedDelimiter */
|
|
502
503
|
);
|
|
503
504
|
default:
|
|
504
|
-
return w(s) ? (D = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, D) :
|
|
505
|
+
return w(s) ? (D = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, D) : R(s, l) || L(s, l) ? (y(s), Re(s, l)) : d(s, l) ? (y(s), p(l, 11, Et(s))) : P(s, l) ? (y(s), q === "{" ? Ae(s, l) || D : p(l, 10, gt(s))) : (v === 7 && O($.INVALID_LINKED_FORMAT, a(), 0), l.braceNest = 0, l.inLinked = !1, De(s, l));
|
|
505
506
|
}
|
|
506
507
|
}
|
|
507
508
|
function De(s, l) {
|
|
@@ -510,12 +511,12 @@ function gr(e, t = {}) {
|
|
|
510
511
|
/* TokenTypes.EOF */
|
|
511
512
|
};
|
|
512
513
|
if (l.braceNest > 0)
|
|
513
|
-
return Re(s, l) || f(l);
|
|
514
|
-
if (l.inLinked)
|
|
515
514
|
return Ae(s, l) || f(l);
|
|
515
|
+
if (l.inLinked)
|
|
516
|
+
return Re(s, l) || f(l);
|
|
516
517
|
switch (s.currentChar()) {
|
|
517
518
|
case "{":
|
|
518
|
-
return
|
|
519
|
+
return Ae(s, l) || f(l);
|
|
519
520
|
case "}":
|
|
520
521
|
return O($.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), p(
|
|
521
522
|
l,
|
|
@@ -524,30 +525,30 @@ function gr(e, t = {}) {
|
|
|
524
525
|
/* TokenChars.BraceRight */
|
|
525
526
|
);
|
|
526
527
|
case "@":
|
|
527
|
-
return
|
|
528
|
+
return Re(s, l) || f(l);
|
|
528
529
|
default: {
|
|
529
530
|
if (w(s))
|
|
530
531
|
return v = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, v;
|
|
531
|
-
if (
|
|
532
|
+
if (B(s))
|
|
532
533
|
return p(l, 0, it(s));
|
|
533
534
|
break;
|
|
534
535
|
}
|
|
535
536
|
}
|
|
536
537
|
return v;
|
|
537
538
|
}
|
|
538
|
-
function
|
|
539
|
+
function yt() {
|
|
539
540
|
const { currentType: s, offset: l, startLoc: v, endLoc: D } = c;
|
|
540
|
-
return c.lastType = s, c.lastOffset = l, c.lastStartLoc = v, c.lastEndLoc = D, c.offset = o(), c.startLoc = a(), r.currentChar() ===
|
|
541
|
+
return c.lastType = s, c.lastOffset = l, c.lastStartLoc = v, c.lastEndLoc = D, c.offset = o(), c.startLoc = a(), r.currentChar() === ge ? p(
|
|
541
542
|
c,
|
|
542
543
|
13
|
|
543
544
|
/* TokenTypes.EOF */
|
|
544
545
|
) : De(r, c);
|
|
545
546
|
}
|
|
546
547
|
return {
|
|
547
|
-
nextToken:
|
|
548
|
+
nextToken: yt,
|
|
548
549
|
currentOffset: o,
|
|
549
550
|
currentPosition: a,
|
|
550
|
-
context:
|
|
551
|
+
context: g
|
|
551
552
|
};
|
|
552
553
|
}
|
|
553
554
|
const br = "parser", vr = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
@@ -566,12 +567,12 @@ function hr(e, t, n) {
|
|
|
566
567
|
}
|
|
567
568
|
function Tr(e = {}) {
|
|
568
569
|
const t = e.location !== !1, { onError: n } = e;
|
|
569
|
-
function r(u, b, N, E, ...
|
|
570
|
-
const
|
|
571
|
-
if (
|
|
572
|
-
const d = t ? It(N,
|
|
570
|
+
function r(u, b, N, E, ...A) {
|
|
571
|
+
const R = u.currentPosition();
|
|
572
|
+
if (R.offset += E, R.column += E, n) {
|
|
573
|
+
const d = t ? It(N, R) : null, L = nt(b, d, {
|
|
573
574
|
domain: br,
|
|
574
|
-
args:
|
|
575
|
+
args: A
|
|
575
576
|
});
|
|
576
577
|
n(L);
|
|
577
578
|
}
|
|
@@ -588,24 +589,24 @@ function Tr(e = {}) {
|
|
|
588
589
|
return E.value = b, a(E, u.currentOffset(), u.currentPosition()), E;
|
|
589
590
|
}
|
|
590
591
|
function m(u, b) {
|
|
591
|
-
const N = u.context(), { lastOffset: E, lastStartLoc:
|
|
592
|
-
return
|
|
592
|
+
const N = u.context(), { lastOffset: E, lastStartLoc: A } = N, R = o(5, E, A);
|
|
593
|
+
return R.index = parseInt(b, 10), u.nextToken(), a(R, u.currentOffset(), u.currentPosition()), R;
|
|
593
594
|
}
|
|
594
595
|
function c(u, b) {
|
|
595
|
-
const N = u.context(), { lastOffset: E, lastStartLoc:
|
|
596
|
-
return
|
|
596
|
+
const N = u.context(), { lastOffset: E, lastStartLoc: A } = N, R = o(4, E, A);
|
|
597
|
+
return R.key = b, u.nextToken(), a(R, u.currentOffset(), u.currentPosition()), R;
|
|
597
598
|
}
|
|
598
|
-
function
|
|
599
|
-
const N = u.context(), { lastOffset: E, lastStartLoc:
|
|
600
|
-
return
|
|
599
|
+
function g(u, b) {
|
|
600
|
+
const N = u.context(), { lastOffset: E, lastStartLoc: A } = N, R = o(9, E, A);
|
|
601
|
+
return R.value = b.replace(vr, hr), u.nextToken(), a(R, u.currentOffset(), u.currentPosition()), R;
|
|
601
602
|
}
|
|
602
603
|
function h(u) {
|
|
603
|
-
const b = u.nextToken(), N = u.context(), { lastOffset: E, lastStartLoc:
|
|
604
|
-
return b.type !== 11 ? (r(u, $.UNEXPECTED_EMPTY_LINKED_MODIFIER, N.lastStartLoc, 0),
|
|
604
|
+
const b = u.nextToken(), N = u.context(), { lastOffset: E, lastStartLoc: A } = N, R = o(8, E, A);
|
|
605
|
+
return b.type !== 11 ? (r(u, $.UNEXPECTED_EMPTY_LINKED_MODIFIER, N.lastStartLoc, 0), R.value = "", a(R, E, A), {
|
|
605
606
|
nextConsumeToken: b,
|
|
606
|
-
node:
|
|
607
|
-
}) : (b.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, ue(b)),
|
|
608
|
-
node:
|
|
607
|
+
node: R
|
|
608
|
+
}) : (b.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, ue(b)), R.value = b.value || "", a(R, u.currentOffset(), u.currentPosition()), {
|
|
609
|
+
node: R
|
|
609
610
|
});
|
|
610
611
|
}
|
|
611
612
|
function O(u, b) {
|
|
@@ -616,8 +617,8 @@ function Tr(e = {}) {
|
|
|
616
617
|
const b = u.context(), N = o(6, b.offset, b.startLoc);
|
|
617
618
|
let E = u.nextToken();
|
|
618
619
|
if (E.type === 8) {
|
|
619
|
-
const
|
|
620
|
-
N.modifier =
|
|
620
|
+
const A = h(u);
|
|
621
|
+
N.modifier = A.node, E = A.nextConsumeToken || u.nextToken();
|
|
621
622
|
}
|
|
622
623
|
switch (E.type !== 9 && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(E)), E = u.nextToken(), E.type === 2 && (E = u.nextToken()), E.type) {
|
|
623
624
|
case 10:
|
|
@@ -630,12 +631,12 @@ function Tr(e = {}) {
|
|
|
630
631
|
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(E)), N.key = m(u, E.value || "");
|
|
631
632
|
break;
|
|
632
633
|
case 6:
|
|
633
|
-
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(E)), N.key =
|
|
634
|
+
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(E)), N.key = g(u, E.value || "");
|
|
634
635
|
break;
|
|
635
636
|
default: {
|
|
636
637
|
r(u, $.UNEXPECTED_EMPTY_LINKED_KEY, b.lastStartLoc, 0);
|
|
637
|
-
const
|
|
638
|
-
return
|
|
638
|
+
const A = u.context(), R = o(7, A.offset, A.startLoc);
|
|
639
|
+
return R.value = "", a(R, A.offset, A.startLoc), N.key = R, a(N, A.offset, A.startLoc), {
|
|
639
640
|
nextConsumeToken: E,
|
|
640
641
|
node: N
|
|
641
642
|
};
|
|
@@ -646,54 +647,54 @@ function Tr(e = {}) {
|
|
|
646
647
|
};
|
|
647
648
|
}
|
|
648
649
|
function f(u) {
|
|
649
|
-
const b = u.context(), N = b.currentType === 1 ? u.currentOffset() : b.offset, E = b.currentType === 1 ? b.endLoc : b.startLoc,
|
|
650
|
-
|
|
651
|
-
let
|
|
650
|
+
const b = u.context(), N = b.currentType === 1 ? u.currentOffset() : b.offset, E = b.currentType === 1 ? b.endLoc : b.startLoc, A = o(2, N, E);
|
|
651
|
+
A.items = [];
|
|
652
|
+
let R = null;
|
|
652
653
|
do {
|
|
653
|
-
const P =
|
|
654
|
-
switch (
|
|
654
|
+
const P = R || u.nextToken();
|
|
655
|
+
switch (R = null, P.type) {
|
|
655
656
|
case 0:
|
|
656
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(P)),
|
|
657
|
+
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(P)), A.items.push(i(u, P.value || ""));
|
|
657
658
|
break;
|
|
658
659
|
case 5:
|
|
659
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(P)),
|
|
660
|
+
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(P)), A.items.push(m(u, P.value || ""));
|
|
660
661
|
break;
|
|
661
662
|
case 4:
|
|
662
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(P)),
|
|
663
|
+
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(P)), A.items.push(c(u, P.value || ""));
|
|
663
664
|
break;
|
|
664
665
|
case 6:
|
|
665
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(P)),
|
|
666
|
+
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(P)), A.items.push(g(u, P.value || ""));
|
|
666
667
|
break;
|
|
667
668
|
case 7: {
|
|
668
669
|
const w = p(u);
|
|
669
|
-
|
|
670
|
+
A.items.push(w.node), R = w.nextConsumeToken || null;
|
|
670
671
|
break;
|
|
671
672
|
}
|
|
672
673
|
}
|
|
673
674
|
} while (b.currentType !== 13 && b.currentType !== 1);
|
|
674
675
|
const d = b.currentType === 1 ? b.lastOffset : u.currentOffset(), L = b.currentType === 1 ? b.lastEndLoc : u.currentPosition();
|
|
675
|
-
return a(
|
|
676
|
+
return a(A, d, L), A;
|
|
676
677
|
}
|
|
677
|
-
function
|
|
678
|
-
const
|
|
679
|
-
let
|
|
678
|
+
function k(u, b, N, E) {
|
|
679
|
+
const A = u.context();
|
|
680
|
+
let R = E.items.length === 0;
|
|
680
681
|
const d = o(1, b, N);
|
|
681
682
|
d.cases = [], d.cases.push(E);
|
|
682
683
|
do {
|
|
683
684
|
const L = f(u);
|
|
684
|
-
|
|
685
|
-
} while (
|
|
686
|
-
return
|
|
685
|
+
R || (R = L.items.length === 0), d.cases.push(L);
|
|
686
|
+
} while (A.currentType !== 13);
|
|
687
|
+
return R && r(u, $.MUST_HAVE_MESSAGES_IN_PLURAL, N, 0), a(d, u.currentOffset(), u.currentPosition()), d;
|
|
687
688
|
}
|
|
688
689
|
function T(u) {
|
|
689
|
-
const b = u.context(), { offset: N, startLoc: E } = b,
|
|
690
|
-
return b.currentType === 13 ?
|
|
690
|
+
const b = u.context(), { offset: N, startLoc: E } = b, A = f(u);
|
|
691
|
+
return b.currentType === 13 ? A : k(u, N, E, A);
|
|
691
692
|
}
|
|
692
|
-
function
|
|
693
|
-
const b =
|
|
693
|
+
function y(u) {
|
|
694
|
+
const b = yr(u, te({}, e)), N = b.context(), E = o(0, N.offset, N.startLoc);
|
|
694
695
|
return t && E.loc && (E.loc.source = u), E.body = T(b), e.onCacheKey && (E.cacheKey = e.onCacheKey(u)), N.currentType !== 13 && r(b, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, u[N.offset] || ""), a(E, b.currentOffset(), b.currentPosition()), E;
|
|
695
696
|
}
|
|
696
|
-
return { parse:
|
|
697
|
+
return { parse: y };
|
|
697
698
|
}
|
|
698
699
|
function ue(e) {
|
|
699
700
|
if (e.type === 13)
|
|
@@ -762,7 +763,7 @@ function Nr(e, t = {}) {
|
|
|
762
763
|
const r = n.context();
|
|
763
764
|
e.helpers = Array.from(r.helpers);
|
|
764
765
|
}
|
|
765
|
-
function
|
|
766
|
+
function Ar(e) {
|
|
766
767
|
const t = e.body;
|
|
767
768
|
return t.type === 2 ? Qt(t) : t.cases.forEach((n) => Qt(n)), e;
|
|
768
769
|
}
|
|
@@ -834,7 +835,7 @@ function Oe(e) {
|
|
|
834
835
|
}
|
|
835
836
|
delete e.type;
|
|
836
837
|
}
|
|
837
|
-
function
|
|
838
|
+
function Rr(e, t) {
|
|
838
839
|
const { filename: n, breakLineCode: r, needIndent: o } = t, a = t.location !== !1, i = {
|
|
839
840
|
filename: n,
|
|
840
841
|
code: "",
|
|
@@ -848,23 +849,23 @@ function Ar(e, t) {
|
|
|
848
849
|
};
|
|
849
850
|
a && e.loc && (i.source = e.loc.source);
|
|
850
851
|
const m = () => i;
|
|
851
|
-
function c(T,
|
|
852
|
+
function c(T, y) {
|
|
852
853
|
i.code += T;
|
|
853
854
|
}
|
|
854
|
-
function
|
|
855
|
-
const u =
|
|
855
|
+
function g(T, y = !0) {
|
|
856
|
+
const u = y ? r : "";
|
|
856
857
|
c(o ? u + " ".repeat(T) : u);
|
|
857
858
|
}
|
|
858
859
|
function h(T = !0) {
|
|
859
|
-
const
|
|
860
|
-
T && y
|
|
860
|
+
const y = ++i.indentLevel;
|
|
861
|
+
T && g(y);
|
|
861
862
|
}
|
|
862
863
|
function O(T = !0) {
|
|
863
|
-
const
|
|
864
|
-
T && y
|
|
864
|
+
const y = --i.indentLevel;
|
|
865
|
+
T && g(y);
|
|
865
866
|
}
|
|
866
867
|
function p() {
|
|
867
|
-
|
|
868
|
+
g(i.indentLevel);
|
|
868
869
|
}
|
|
869
870
|
return {
|
|
870
871
|
context: m,
|
|
@@ -907,14 +908,14 @@ function Cr(e, t) {
|
|
|
907
908
|
e.deindent(r()), e.push("])");
|
|
908
909
|
}
|
|
909
910
|
}
|
|
910
|
-
function
|
|
911
|
+
function kr(e, t) {
|
|
911
912
|
t.body ? Ce(e, t.body) : e.push("null");
|
|
912
913
|
}
|
|
913
914
|
function Ce(e, t) {
|
|
914
915
|
const { helper: n } = e;
|
|
915
916
|
switch (t.type) {
|
|
916
917
|
case 0:
|
|
917
|
-
|
|
918
|
+
kr(e, t);
|
|
918
919
|
break;
|
|
919
920
|
case 1:
|
|
920
921
|
Cr(e, t);
|
|
@@ -957,27 +958,27 @@ function Ce(e, t) {
|
|
|
957
958
|
break;
|
|
958
959
|
}
|
|
959
960
|
}
|
|
960
|
-
const
|
|
961
|
-
const n =
|
|
961
|
+
const Sr = (e, t = {}) => {
|
|
962
|
+
const n = S(t.mode) ? t.mode : "normal", r = S(t.filename) ? t.filename : "message.intl";
|
|
962
963
|
t.sourceMap;
|
|
963
964
|
const o = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
964
|
-
`, a = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], m =
|
|
965
|
+
`, a = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], m = Rr(e, {
|
|
965
966
|
filename: r,
|
|
966
967
|
breakLineCode: o,
|
|
967
968
|
needIndent: a
|
|
968
969
|
});
|
|
969
970
|
m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(a), i.length > 0 && (m.push(`const { ${Mt(i.map((h) => `${h}: _${h}`), ", ")} } = ctx`), m.newline()), m.push("return "), Ce(m, e), m.deindent(a), m.push("}"), delete e.helpers;
|
|
970
|
-
const { code: c, map:
|
|
971
|
+
const { code: c, map: g } = m.context();
|
|
971
972
|
return {
|
|
972
973
|
ast: e,
|
|
973
974
|
code: c,
|
|
974
|
-
map:
|
|
975
|
+
map: g ? g.toJSON() : void 0
|
|
975
976
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
976
977
|
};
|
|
977
978
|
};
|
|
978
979
|
function Pr(e, t = {}) {
|
|
979
980
|
const n = te({}, t), r = !!n.jit, o = !!n.minify, a = n.optimize == null ? !0 : n.optimize, m = Tr(n).parse(e);
|
|
980
|
-
return r ? (a &&
|
|
981
|
+
return r ? (a && Ar(m), o && Oe(m), { ast: m, code: "" }) : (Nr(m, n), Sr(m, n));
|
|
981
982
|
}
|
|
982
983
|
var Dr = { env: { NODE_ENV: "production" } };
|
|
983
984
|
function wr() {
|
|
@@ -1004,28 +1005,28 @@ function Fr(e, t) {
|
|
|
1004
1005
|
}
|
|
1005
1006
|
const Mr = ["b", "body"];
|
|
1006
1007
|
function Ur(e) {
|
|
1007
|
-
return
|
|
1008
|
+
return ye(e, Mr);
|
|
1008
1009
|
}
|
|
1009
1010
|
const Vr = ["c", "cases"];
|
|
1010
1011
|
function $r(e) {
|
|
1011
|
-
return
|
|
1012
|
+
return ye(e, Vr, []);
|
|
1012
1013
|
}
|
|
1013
1014
|
function Zt(e, t) {
|
|
1014
1015
|
const n = Gr(t);
|
|
1015
1016
|
if (n != null)
|
|
1016
1017
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1017
1018
|
{
|
|
1018
|
-
const r =
|
|
1019
|
+
const r = Br(t).reduce((o, a) => [...o, Nt(e, a)], []);
|
|
1019
1020
|
return e.normalize(r);
|
|
1020
1021
|
}
|
|
1021
1022
|
}
|
|
1022
1023
|
const Hr = ["s", "static"];
|
|
1023
1024
|
function Gr(e) {
|
|
1024
|
-
return
|
|
1025
|
+
return ye(e, Hr);
|
|
1025
1026
|
}
|
|
1026
|
-
const
|
|
1027
|
-
function
|
|
1028
|
-
return
|
|
1027
|
+
const Wr = ["i", "items"];
|
|
1028
|
+
function Br(e) {
|
|
1029
|
+
return ye(e, Wr, []);
|
|
1029
1030
|
}
|
|
1030
1031
|
function Nt(e, t) {
|
|
1031
1032
|
const n = Vt(t);
|
|
@@ -1064,22 +1065,22 @@ function Nt(e, t) {
|
|
|
1064
1065
|
}
|
|
1065
1066
|
const xr = ["t", "type"];
|
|
1066
1067
|
function Vt(e) {
|
|
1067
|
-
return
|
|
1068
|
+
return ye(e, xr);
|
|
1068
1069
|
}
|
|
1069
1070
|
const Kr = ["v", "value"];
|
|
1070
1071
|
function Xe(e, t) {
|
|
1071
|
-
const n =
|
|
1072
|
+
const n = ye(e, Kr);
|
|
1072
1073
|
if (n)
|
|
1073
1074
|
return n;
|
|
1074
1075
|
throw Ue(t);
|
|
1075
1076
|
}
|
|
1076
1077
|
const Yr = ["m", "modifier"];
|
|
1077
1078
|
function jr(e) {
|
|
1078
|
-
return
|
|
1079
|
+
return ye(e, Yr);
|
|
1079
1080
|
}
|
|
1080
1081
|
const Xr = ["k", "key"];
|
|
1081
1082
|
function qr(e) {
|
|
1082
|
-
const t =
|
|
1083
|
+
const t = ye(e, Xr);
|
|
1083
1084
|
if (t)
|
|
1084
1085
|
return t;
|
|
1085
1086
|
throw Ue(
|
|
@@ -1087,7 +1088,7 @@ function qr(e) {
|
|
|
1087
1088
|
/* NodeTypes.Linked */
|
|
1088
1089
|
);
|
|
1089
1090
|
}
|
|
1090
|
-
function
|
|
1091
|
+
function ye(e, t, n) {
|
|
1091
1092
|
for (let r = 0; r < t.length; r++) {
|
|
1092
1093
|
const o = t[r];
|
|
1093
1094
|
if (le(e, o) && e[o] != null)
|
|
@@ -1100,7 +1101,7 @@ function Ue(e) {
|
|
|
1100
1101
|
}
|
|
1101
1102
|
const Jr = (e) => e;
|
|
1102
1103
|
let qe = H();
|
|
1103
|
-
function
|
|
1104
|
+
function ke(e) {
|
|
1104
1105
|
return U(e) && Vt(e) === 0 && (le(e, "b") || le(e, "body"));
|
|
1105
1106
|
}
|
|
1106
1107
|
function Qr(e, t = {}) {
|
|
@@ -1112,7 +1113,7 @@ function Qr(e, t = {}) {
|
|
|
1112
1113
|
}
|
|
1113
1114
|
// @__NO_SIDE_EFFECTS__
|
|
1114
1115
|
function Zr(e, t) {
|
|
1115
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1116
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && S(e)) {
|
|
1116
1117
|
Q(t.warnHtmlMessage) && t.warnHtmlMessage;
|
|
1117
1118
|
const r = (t.onCacheKey || Jr)(e), o = qe[r];
|
|
1118
1119
|
if (o)
|
|
@@ -1165,7 +1166,7 @@ function $t(e, t) {
|
|
|
1165
1166
|
}
|
|
1166
1167
|
let ht;
|
|
1167
1168
|
function zt(e) {
|
|
1168
|
-
if (
|
|
1169
|
+
if (S(e))
|
|
1169
1170
|
return e;
|
|
1170
1171
|
if (Y(e)) {
|
|
1171
1172
|
if (e.resolvedOnce && ht != null)
|
|
@@ -1183,11 +1184,11 @@ function zt(e) {
|
|
|
1183
1184
|
function oo(e, t, n) {
|
|
1184
1185
|
return [.../* @__PURE__ */ new Set([
|
|
1185
1186
|
n,
|
|
1186
|
-
...z(t) ? t : U(t) ? Object.keys(t) :
|
|
1187
|
+
...z(t) ? t : U(t) ? Object.keys(t) : S(t) ? [t] : [n]
|
|
1187
1188
|
])];
|
|
1188
1189
|
}
|
|
1189
1190
|
function Nn(e, t, n) {
|
|
1190
|
-
const r =
|
|
1191
|
+
const r = S(n) ? n : et, o = e;
|
|
1191
1192
|
o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1192
1193
|
let a = o.__localeChainCache.get(r);
|
|
1193
1194
|
if (!a) {
|
|
@@ -1196,7 +1197,7 @@ function Nn(e, t, n) {
|
|
|
1196
1197
|
for (; z(i); )
|
|
1197
1198
|
i = en(a, i, t);
|
|
1198
1199
|
const m = z(t) || !M(t) ? t : t.default ? t.default : null;
|
|
1199
|
-
i =
|
|
1200
|
+
i = S(m) ? [m] : m, z(i) && en(a, i, !1), o.__localeChainCache.set(r, a);
|
|
1200
1201
|
}
|
|
1201
1202
|
return a;
|
|
1202
1203
|
}
|
|
@@ -1204,7 +1205,7 @@ function en(e, t, n) {
|
|
|
1204
1205
|
let r = !0;
|
|
1205
1206
|
for (let o = 0; o < t.length && Q(r); o++) {
|
|
1206
1207
|
const a = t[o];
|
|
1207
|
-
|
|
1208
|
+
S(a) && (r = ao(e, t[o], n));
|
|
1208
1209
|
}
|
|
1209
1210
|
return r;
|
|
1210
1211
|
}
|
|
@@ -1438,7 +1439,7 @@ function mo(e) {
|
|
|
1438
1439
|
}
|
|
1439
1440
|
function fo(e) {
|
|
1440
1441
|
const t = [];
|
|
1441
|
-
let n = -1, r = 0, o = 0, a, i, m, c,
|
|
1442
|
+
let n = -1, r = 0, o = 0, a, i, m, c, g, h, O;
|
|
1442
1443
|
const p = [];
|
|
1443
1444
|
p[
|
|
1444
1445
|
0
|
|
@@ -1477,16 +1478,16 @@ function fo(e) {
|
|
|
1477
1478
|
}
|
|
1478
1479
|
};
|
|
1479
1480
|
function f() {
|
|
1480
|
-
const
|
|
1481
|
-
if (r === 5 &&
|
|
1482
|
-
return n++, m = "\\" +
|
|
1481
|
+
const k = e[n + 1];
|
|
1482
|
+
if (r === 5 && k === "'" || r === 6 && k === '"')
|
|
1483
|
+
return n++, m = "\\" + k, p[
|
|
1483
1484
|
0
|
|
1484
1485
|
/* Actions.APPEND */
|
|
1485
1486
|
](), !0;
|
|
1486
1487
|
}
|
|
1487
1488
|
for (; r !== null; )
|
|
1488
1489
|
if (n++, a = e[n], !(a === "\\" && f())) {
|
|
1489
|
-
if (c = co(a), O = be[r],
|
|
1490
|
+
if (c = co(a), O = be[r], g = O[c] || O.l || 8, g === 8 || (r = g[0], g[1] !== void 0 && (h = p[g[1]], h && (m = a, h() === !1))))
|
|
1490
1491
|
return;
|
|
1491
1492
|
if (r === 7)
|
|
1492
1493
|
return t;
|
|
@@ -1513,21 +1514,21 @@ function po(e, t) {
|
|
|
1513
1514
|
return o;
|
|
1514
1515
|
}
|
|
1515
1516
|
const Eo = "10.0.5", rt = -1, et = "en-US", nn = "", rn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1516
|
-
function
|
|
1517
|
+
function go() {
|
|
1517
1518
|
return {
|
|
1518
|
-
upper: (e, t) => t === "text" &&
|
|
1519
|
-
lower: (e, t) => t === "text" &&
|
|
1520
|
-
capitalize: (e, t) => t === "text" &&
|
|
1519
|
+
upper: (e, t) => t === "text" && S(e) ? e.toUpperCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1520
|
+
lower: (e, t) => t === "text" && S(e) ? e.toLowerCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1521
|
+
capitalize: (e, t) => t === "text" && S(e) ? rn(e) : t === "vnode" && U(e) && "__v_isVNode" in e ? rn(e.children) : e
|
|
1521
1522
|
};
|
|
1522
1523
|
}
|
|
1523
|
-
let Rn;
|
|
1524
|
-
function go(e) {
|
|
1525
|
-
Rn = e;
|
|
1526
|
-
}
|
|
1527
1524
|
let An;
|
|
1528
|
-
function
|
|
1525
|
+
function yo(e) {
|
|
1529
1526
|
An = e;
|
|
1530
1527
|
}
|
|
1528
|
+
let Rn;
|
|
1529
|
+
function bo(e) {
|
|
1530
|
+
Rn = e;
|
|
1531
|
+
}
|
|
1531
1532
|
let Ln;
|
|
1532
1533
|
function vo(e) {
|
|
1533
1534
|
Ln = e;
|
|
@@ -1542,7 +1543,7 @@ const on = (e) => {
|
|
|
1542
1543
|
}, Io = () => Cn;
|
|
1543
1544
|
let an = 0;
|
|
1544
1545
|
function No(e = {}) {
|
|
1545
|
-
const t = Y(e.onWarn) ? e.onWarn : ur, n =
|
|
1546
|
+
const t = Y(e.onWarn) ? e.onWarn : ur, n = S(e.version) ? e.version : Eo, r = S(e.locale) || Y(e.locale) ? e.locale : et, o = Y(r) ? et : r, a = z(e.fallbackLocale) || M(e.fallbackLocale) || S(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o, i = M(e.messages) ? e.messages : Tt(o), m = M(e.datetimeFormats) ? e.datetimeFormats : Tt(o), c = M(e.numberFormats) ? e.numberFormats : Tt(o), g = te(H(), e.modifiers, go()), h = e.pluralRules || H(), O = Y(e.missing) ? e.missing : null, p = Q(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, f = Q(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0, k = !!e.fallbackFormat, T = !!e.unresolving, y = Y(e.postTranslation) ? e.postTranslation : null, u = M(e.processor) ? e.processor : null, b = Q(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, E = Y(e.messageCompiler) ? e.messageCompiler : An, A = Y(e.messageResolver) ? e.messageResolver : Rn || _o, R = Y(e.localeFallbacker) ? e.localeFallbacker : Ln || oo, d = U(e.fallbackContext) ? e.fallbackContext : void 0, L = e, P = U(L.__datetimeFormatters) ? L.__datetimeFormatters : /* @__PURE__ */ new Map(), w = U(L.__numberFormatters) ? L.__numberFormatters : /* @__PURE__ */ new Map(), B = U(L.__meta) ? L.__meta : {};
|
|
1546
1547
|
an++;
|
|
1547
1548
|
const C = {
|
|
1548
1549
|
version: n,
|
|
@@ -1550,32 +1551,32 @@ function No(e = {}) {
|
|
|
1550
1551
|
locale: r,
|
|
1551
1552
|
fallbackLocale: a,
|
|
1552
1553
|
messages: i,
|
|
1553
|
-
modifiers:
|
|
1554
|
+
modifiers: g,
|
|
1554
1555
|
pluralRules: h,
|
|
1555
1556
|
missing: O,
|
|
1556
1557
|
missingWarn: p,
|
|
1557
1558
|
fallbackWarn: f,
|
|
1558
|
-
fallbackFormat:
|
|
1559
|
+
fallbackFormat: k,
|
|
1559
1560
|
unresolving: T,
|
|
1560
|
-
postTranslation:
|
|
1561
|
+
postTranslation: y,
|
|
1561
1562
|
processor: u,
|
|
1562
1563
|
warnHtmlMessage: b,
|
|
1563
1564
|
escapeParameter: N,
|
|
1564
1565
|
messageCompiler: E,
|
|
1565
|
-
messageResolver:
|
|
1566
|
-
localeFallbacker:
|
|
1566
|
+
messageResolver: A,
|
|
1567
|
+
localeFallbacker: R,
|
|
1567
1568
|
fallbackContext: d,
|
|
1568
1569
|
onWarn: t,
|
|
1569
|
-
__meta:
|
|
1570
|
+
__meta: B
|
|
1570
1571
|
};
|
|
1571
|
-
return C.datetimeFormats = m, C.numberFormats = c, C.__datetimeFormatters = P, C.__numberFormatters = w, __INTLIFY_PROD_DEVTOOLS__ && eo(C, n,
|
|
1572
|
+
return C.datetimeFormats = m, C.numberFormats = c, C.__datetimeFormatters = P, C.__numberFormatters = w, __INTLIFY_PROD_DEVTOOLS__ && eo(C, n, B), C;
|
|
1572
1573
|
}
|
|
1573
1574
|
const Tt = (e) => ({ [e]: H() });
|
|
1574
1575
|
function Ht(e, t, n, r, o) {
|
|
1575
1576
|
const { missing: a, onWarn: i } = e;
|
|
1576
1577
|
if (a !== null) {
|
|
1577
1578
|
const m = a(e, n, t, o);
|
|
1578
|
-
return
|
|
1579
|
+
return S(m) ? m : t;
|
|
1579
1580
|
} else
|
|
1580
1581
|
return t;
|
|
1581
1582
|
}
|
|
@@ -1583,41 +1584,41 @@ function we(e, t, n) {
|
|
|
1583
1584
|
const r = e;
|
|
1584
1585
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1585
1586
|
}
|
|
1586
|
-
function
|
|
1587
|
+
function Ao(e, t) {
|
|
1587
1588
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1588
1589
|
}
|
|
1589
|
-
function
|
|
1590
|
+
function Ro(e, t) {
|
|
1590
1591
|
const n = t.indexOf(e);
|
|
1591
1592
|
if (n === -1)
|
|
1592
1593
|
return !1;
|
|
1593
1594
|
for (let r = n + 1; r < t.length; r++)
|
|
1594
|
-
if (
|
|
1595
|
+
if (Ao(e, t[r]))
|
|
1595
1596
|
return !0;
|
|
1596
1597
|
return !1;
|
|
1597
1598
|
}
|
|
1598
1599
|
function sn(e, ...t) {
|
|
1599
|
-
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __datetimeFormatters: m } = e, [c,
|
|
1600
|
+
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __datetimeFormatters: m } = e, [c, g, h, O] = At(...t), p = Q(h.missingWarn) ? h.missingWarn : e.missingWarn;
|
|
1600
1601
|
Q(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn;
|
|
1601
|
-
const f = !!h.part,
|
|
1602
|
+
const f = !!h.part, k = $t(e, h), T = i(
|
|
1602
1603
|
e,
|
|
1603
1604
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1604
1605
|
o,
|
|
1605
|
-
|
|
1606
|
+
k
|
|
1606
1607
|
);
|
|
1607
|
-
if (!
|
|
1608
|
-
return new Intl.DateTimeFormat(
|
|
1609
|
-
let
|
|
1608
|
+
if (!S(c) || c === "")
|
|
1609
|
+
return new Intl.DateTimeFormat(k, O).format(g);
|
|
1610
|
+
let y = {}, u, b = null;
|
|
1610
1611
|
const N = "datetime format";
|
|
1611
|
-
for (let
|
|
1612
|
+
for (let R = 0; R < T.length && (u = T[R], y = n[u] || {}, b = y[c], !M(b)); R++)
|
|
1612
1613
|
Ht(e, c, u, p, N);
|
|
1613
|
-
if (!M(b) || !
|
|
1614
|
+
if (!M(b) || !S(u))
|
|
1614
1615
|
return r ? rt : c;
|
|
1615
1616
|
let E = `${u}__${c}`;
|
|
1616
1617
|
tt(O) || (E = `${E}__${JSON.stringify(O)}`);
|
|
1617
|
-
let
|
|
1618
|
-
return
|
|
1618
|
+
let A = m.get(E);
|
|
1619
|
+
return A || (A = new Intl.DateTimeFormat(u, te({}, b, O)), m.set(E, A)), f ? A.formatToParts(g) : A.format(g);
|
|
1619
1620
|
}
|
|
1620
|
-
const
|
|
1621
|
+
const kn = [
|
|
1621
1622
|
"localeMatcher",
|
|
1622
1623
|
"weekday",
|
|
1623
1624
|
"era",
|
|
@@ -1639,15 +1640,15 @@ const Sn = [
|
|
|
1639
1640
|
"hourCycle",
|
|
1640
1641
|
"fractionalSecondDigits"
|
|
1641
1642
|
];
|
|
1642
|
-
function
|
|
1643
|
+
function At(...e) {
|
|
1643
1644
|
const [t, n, r, o] = e, a = H();
|
|
1644
1645
|
let i = H(), m;
|
|
1645
|
-
if (
|
|
1646
|
+
if (S(t)) {
|
|
1646
1647
|
const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1647
1648
|
if (!c)
|
|
1648
1649
|
throw _e(fe.INVALID_ISO_DATE_ARGUMENT);
|
|
1649
|
-
const
|
|
1650
|
-
m = new Date(
|
|
1650
|
+
const g = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
|
|
1651
|
+
m = new Date(g);
|
|
1651
1652
|
try {
|
|
1652
1653
|
m.toISOString();
|
|
1653
1654
|
} catch {
|
|
@@ -1661,9 +1662,9 @@ function Rt(...e) {
|
|
|
1661
1662
|
m = t;
|
|
1662
1663
|
else
|
|
1663
1664
|
throw _e(fe.INVALID_ARGUMENT);
|
|
1664
|
-
return
|
|
1665
|
-
|
|
1666
|
-
}),
|
|
1665
|
+
return S(n) ? a.key = n : M(n) && Object.keys(n).forEach((c) => {
|
|
1666
|
+
kn.includes(c) ? i[c] = n[c] : a[c] = n[c];
|
|
1667
|
+
}), S(r) ? a.locale = r : M(r) && (i = r), M(o) && (i = o), [a.key || "", m, a, i];
|
|
1667
1668
|
}
|
|
1668
1669
|
function ln(e, t, n) {
|
|
1669
1670
|
const r = e;
|
|
@@ -1673,28 +1674,28 @@ function ln(e, t, n) {
|
|
|
1673
1674
|
}
|
|
1674
1675
|
}
|
|
1675
1676
|
function un(e, ...t) {
|
|
1676
|
-
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __numberFormatters: m } = e, [c,
|
|
1677
|
+
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __numberFormatters: m } = e, [c, g, h, O] = Rt(...t), p = Q(h.missingWarn) ? h.missingWarn : e.missingWarn;
|
|
1677
1678
|
Q(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn;
|
|
1678
|
-
const f = !!h.part,
|
|
1679
|
+
const f = !!h.part, k = $t(e, h), T = i(
|
|
1679
1680
|
e,
|
|
1680
1681
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1681
1682
|
o,
|
|
1682
|
-
|
|
1683
|
+
k
|
|
1683
1684
|
);
|
|
1684
|
-
if (!
|
|
1685
|
-
return new Intl.NumberFormat(
|
|
1686
|
-
let
|
|
1685
|
+
if (!S(c) || c === "")
|
|
1686
|
+
return new Intl.NumberFormat(k, O).format(g);
|
|
1687
|
+
let y = {}, u, b = null;
|
|
1687
1688
|
const N = "number format";
|
|
1688
|
-
for (let
|
|
1689
|
+
for (let R = 0; R < T.length && (u = T[R], y = n[u] || {}, b = y[c], !M(b)); R++)
|
|
1689
1690
|
Ht(e, c, u, p, N);
|
|
1690
|
-
if (!M(b) || !
|
|
1691
|
+
if (!M(b) || !S(u))
|
|
1691
1692
|
return r ? rt : c;
|
|
1692
1693
|
let E = `${u}__${c}`;
|
|
1693
1694
|
tt(O) || (E = `${E}__${JSON.stringify(O)}`);
|
|
1694
|
-
let
|
|
1695
|
-
return
|
|
1695
|
+
let A = m.get(E);
|
|
1696
|
+
return A || (A = new Intl.NumberFormat(u, te({}, b, O)), m.set(E, A)), f ? A.formatToParts(g) : A.format(g);
|
|
1696
1697
|
}
|
|
1697
|
-
const
|
|
1698
|
+
const Sn = [
|
|
1698
1699
|
"localeMatcher",
|
|
1699
1700
|
"style",
|
|
1700
1701
|
"currency",
|
|
@@ -1716,15 +1717,15 @@ const kn = [
|
|
|
1716
1717
|
"roundingIncrement",
|
|
1717
1718
|
"trailingZeroDisplay"
|
|
1718
1719
|
];
|
|
1719
|
-
function
|
|
1720
|
+
function Rt(...e) {
|
|
1720
1721
|
const [t, n, r, o] = e, a = H();
|
|
1721
1722
|
let i = H();
|
|
1722
1723
|
if (!ee(t))
|
|
1723
1724
|
throw _e(fe.INVALID_ARGUMENT);
|
|
1724
1725
|
const m = t;
|
|
1725
|
-
return
|
|
1726
|
-
|
|
1727
|
-
}),
|
|
1726
|
+
return S(n) ? a.key = n : M(n) && Object.keys(n).forEach((c) => {
|
|
1727
|
+
Sn.includes(c) ? i[c] = n[c] : a[c] = n[c];
|
|
1728
|
+
}), S(r) ? a.locale = r : M(r) && (i = r), M(o) && (i = o), [a.key || "", m, a, i];
|
|
1728
1729
|
}
|
|
1729
1730
|
function cn(e, t, n) {
|
|
1730
1731
|
const r = e;
|
|
@@ -1733,7 +1734,7 @@ function cn(e, t, n) {
|
|
|
1733
1734
|
r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
|
|
1734
1735
|
}
|
|
1735
1736
|
}
|
|
1736
|
-
const Lo = (e) => e, Oo = (e) => "", Co = "text",
|
|
1737
|
+
const Lo = (e) => e, Oo = (e) => "", Co = "text", ko = (e) => e.length === 0 ? "" : Mt(e), So = lr;
|
|
1737
1738
|
function mn(e, t) {
|
|
1738
1739
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1739
1740
|
}
|
|
@@ -1745,59 +1746,59 @@ function Do(e, t) {
|
|
|
1745
1746
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1746
1747
|
}
|
|
1747
1748
|
function wo(e = {}) {
|
|
1748
|
-
const t = e.locale, n = Po(e), r = U(e.pluralRules) &&
|
|
1749
|
+
const t = e.locale, n = Po(e), r = U(e.pluralRules) && S(t) && Y(e.pluralRules[t]) ? e.pluralRules[t] : mn, o = U(e.pluralRules) && S(t) && Y(e.pluralRules[t]) ? mn : void 0, a = (u) => u[r(n, u.length, o)], i = e.list || [], m = (u) => i[u], c = e.named || H();
|
|
1749
1750
|
ee(e.pluralIndex) && Do(n, c);
|
|
1750
|
-
const
|
|
1751
|
+
const g = (u) => c[u];
|
|
1751
1752
|
function h(u, b) {
|
|
1752
1753
|
const N = Y(e.messages) ? e.messages(u, !!b) : U(e.messages) ? e.messages[u] : !1;
|
|
1753
1754
|
return N || (e.parent ? e.parent.message(u) : Oo);
|
|
1754
1755
|
}
|
|
1755
|
-
const O = (u) => e.modifiers ? e.modifiers[u] : Lo, p = M(e.processor) && Y(e.processor.normalize) ? e.processor.normalize :
|
|
1756
|
+
const O = (u) => e.modifiers ? e.modifiers[u] : Lo, p = M(e.processor) && Y(e.processor.normalize) ? e.processor.normalize : ko, f = M(e.processor) && Y(e.processor.interpolate) ? e.processor.interpolate : So, k = M(e.processor) && S(e.processor.type) ? e.processor.type : Co, y = {
|
|
1756
1757
|
list: m,
|
|
1757
|
-
named:
|
|
1758
|
+
named: g,
|
|
1758
1759
|
plural: a,
|
|
1759
1760
|
linked: (u, ...b) => {
|
|
1760
1761
|
const [N, E] = b;
|
|
1761
|
-
let
|
|
1762
|
-
b.length === 1 ? U(N) ? (
|
|
1763
|
-
const d = h(u, !0)(
|
|
1762
|
+
let A = "text", R = "";
|
|
1763
|
+
b.length === 1 ? U(N) ? (R = N.modifier || R, A = N.type || A) : S(N) && (R = N || R) : b.length === 2 && (S(N) && (R = N || R), S(E) && (A = E || A));
|
|
1764
|
+
const d = h(u, !0)(y), L = (
|
|
1764
1765
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1765
|
-
|
|
1766
|
+
A === "vnode" && z(d) && R ? d[0] : d
|
|
1766
1767
|
);
|
|
1767
|
-
return
|
|
1768
|
+
return R ? O(R)(L, A) : L;
|
|
1768
1769
|
},
|
|
1769
1770
|
message: h,
|
|
1770
|
-
type:
|
|
1771
|
+
type: k,
|
|
1771
1772
|
interpolate: f,
|
|
1772
1773
|
normalize: p,
|
|
1773
1774
|
values: te(H(), i, c)
|
|
1774
1775
|
};
|
|
1775
|
-
return
|
|
1776
|
+
return y;
|
|
1776
1777
|
}
|
|
1777
1778
|
const fn = () => "", re = (e) => Y(e);
|
|
1778
1779
|
function _n(e, ...t) {
|
|
1779
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: i, messages: m } = e, [c,
|
|
1780
|
-
p && Fo(
|
|
1780
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: i, messages: m } = e, [c, g] = Lt(...t), h = Q(g.missingWarn) ? g.missingWarn : e.missingWarn, O = Q(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, p = Q(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, f = !!g.resolvedMessage, k = S(g.default) || Q(g.default) ? Q(g.default) ? a ? c : () => c : g.default : n ? a ? c : () => c : null, T = n || k != null && (S(k) || Y(k)), y = $t(e, g);
|
|
1781
|
+
p && Fo(g);
|
|
1781
1782
|
let [u, b, N] = f ? [
|
|
1782
1783
|
c,
|
|
1783
|
-
|
|
1784
|
-
m[
|
|
1785
|
-
] : Pn(e, c,
|
|
1786
|
-
if (!f && !(
|
|
1784
|
+
y,
|
|
1785
|
+
m[y] || H()
|
|
1786
|
+
] : Pn(e, c, y, i, O, h), E = u, A = c;
|
|
1787
|
+
if (!f && !(S(E) || ke(E) || re(E)) && T && (E = k, A = E), !f && (!(S(E) || ke(E) || re(E)) || !S(b)))
|
|
1787
1788
|
return o ? rt : c;
|
|
1788
|
-
let
|
|
1789
|
+
let R = !1;
|
|
1789
1790
|
const d = () => {
|
|
1790
|
-
|
|
1791
|
-
}, L = re(E) ? E : Dn(e, c, b, E,
|
|
1792
|
-
if (
|
|
1791
|
+
R = !0;
|
|
1792
|
+
}, L = re(E) ? E : Dn(e, c, b, E, A, d);
|
|
1793
|
+
if (R)
|
|
1793
1794
|
return E;
|
|
1794
|
-
const P = Vo(e, b, N,
|
|
1795
|
+
const P = Vo(e, b, N, g), w = wo(P), B = Mo(e, L, w), C = r ? r(B, c) : B;
|
|
1795
1796
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
1796
1797
|
const Ne = {
|
|
1797
1798
|
timestamp: Date.now(),
|
|
1798
|
-
key:
|
|
1799
|
+
key: S(c) ? c : re(E) ? E.key : "",
|
|
1799
1800
|
locale: b || (re(E) ? E.locale : ""),
|
|
1800
|
-
format:
|
|
1801
|
+
format: S(E) ? E : re(E) ? E.source : "",
|
|
1801
1802
|
message: C
|
|
1802
1803
|
};
|
|
1803
1804
|
Ne.meta = te({}, e.__meta, /* @__PURE__ */ To() || {}), to(Ne);
|
|
@@ -1805,37 +1806,37 @@ function _n(e, ...t) {
|
|
|
1805
1806
|
return C;
|
|
1806
1807
|
}
|
|
1807
1808
|
function Fo(e) {
|
|
1808
|
-
z(e.list) ? e.list = e.list.map((t) =>
|
|
1809
|
-
|
|
1809
|
+
z(e.list) ? e.list = e.list.map((t) => S(t) ? Xt(t) : t) : U(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1810
|
+
S(e.named[t]) && (e.named[t] = Xt(e.named[t]));
|
|
1810
1811
|
});
|
|
1811
1812
|
}
|
|
1812
1813
|
function Pn(e, t, n, r, o, a) {
|
|
1813
|
-
const { messages: i, onWarn: m, messageResolver: c, localeFallbacker:
|
|
1814
|
+
const { messages: i, onWarn: m, messageResolver: c, localeFallbacker: g } = e, h = g(e, r, n);
|
|
1814
1815
|
let O = H(), p, f = null;
|
|
1815
|
-
const
|
|
1816
|
-
for (let T = 0; T < h.length && (p = h[T], O = i[p] || H(), (f = c(O, t)) === null && (f = O[t]), !(
|
|
1817
|
-
if (!
|
|
1818
|
-
const
|
|
1816
|
+
const k = "translate";
|
|
1817
|
+
for (let T = 0; T < h.length && (p = h[T], O = i[p] || H(), (f = c(O, t)) === null && (f = O[t]), !(S(f) || ke(f) || re(f))); T++)
|
|
1818
|
+
if (!Ro(p, h)) {
|
|
1819
|
+
const y = Ht(
|
|
1819
1820
|
e,
|
|
1820
1821
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1821
1822
|
t,
|
|
1822
1823
|
p,
|
|
1823
1824
|
a,
|
|
1824
|
-
|
|
1825
|
+
k
|
|
1825
1826
|
);
|
|
1826
|
-
|
|
1827
|
+
y !== t && (f = y);
|
|
1827
1828
|
}
|
|
1828
1829
|
return [f, p, O];
|
|
1829
1830
|
}
|
|
1830
1831
|
function Dn(e, t, n, r, o, a) {
|
|
1831
1832
|
const { messageCompiler: i, warnHtmlMessage: m } = e;
|
|
1832
1833
|
if (re(r)) {
|
|
1833
|
-
const
|
|
1834
|
-
return
|
|
1834
|
+
const g = r;
|
|
1835
|
+
return g.locale = g.locale || n, g.key = g.key || t, g;
|
|
1835
1836
|
}
|
|
1836
1837
|
if (i == null) {
|
|
1837
|
-
const
|
|
1838
|
-
return
|
|
1838
|
+
const g = () => r;
|
|
1839
|
+
return g.locale = n, g.key = t, g;
|
|
1839
1840
|
}
|
|
1840
1841
|
const c = i(r, Uo(e, n, o, r, m, a));
|
|
1841
1842
|
return c.locale = n, c.key = t, c.source = r, c;
|
|
@@ -1845,10 +1846,10 @@ function Mo(e, t, n) {
|
|
|
1845
1846
|
}
|
|
1846
1847
|
function Lt(...e) {
|
|
1847
1848
|
const [t, n, r] = e, o = H();
|
|
1848
|
-
if (!
|
|
1849
|
+
if (!S(t) && !ee(t) && !re(t) && !ke(t))
|
|
1849
1850
|
throw _e(fe.INVALID_ARGUMENT);
|
|
1850
1851
|
const a = ee(t) ? String(t) : (re(t), t);
|
|
1851
|
-
return ee(n) ? o.plural = n :
|
|
1852
|
+
return ee(n) ? o.plural = n : S(n) ? o.default = n : M(n) && !tt(n) ? o.named = n : z(n) && (o.list = n), ee(r) ? o.plural = r : S(r) ? o.default = r : M(r) && te(o, r), [a, o];
|
|
1852
1853
|
}
|
|
1853
1854
|
function Uo(e, t, n, r, o, a) {
|
|
1854
1855
|
return {
|
|
@@ -1862,42 +1863,42 @@ function Uo(e, t, n, r, o, a) {
|
|
|
1862
1863
|
};
|
|
1863
1864
|
}
|
|
1864
1865
|
function Vo(e, t, n, r) {
|
|
1865
|
-
const { modifiers: o, pluralRules: a, messageResolver: i, fallbackLocale: m, fallbackWarn: c, missingWarn:
|
|
1866
|
+
const { modifiers: o, pluralRules: a, messageResolver: i, fallbackLocale: m, fallbackWarn: c, missingWarn: g, fallbackContext: h } = e, p = {
|
|
1866
1867
|
locale: t,
|
|
1867
1868
|
modifiers: o,
|
|
1868
1869
|
pluralRules: a,
|
|
1869
|
-
messages: (f,
|
|
1870
|
+
messages: (f, k) => {
|
|
1870
1871
|
let T = i(n, f);
|
|
1871
|
-
if (T == null && (h ||
|
|
1872
|
-
const [, ,
|
|
1872
|
+
if (T == null && (h || k)) {
|
|
1873
|
+
const [, , y] = Pn(
|
|
1873
1874
|
h || e,
|
|
1874
1875
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1875
1876
|
f,
|
|
1876
1877
|
t,
|
|
1877
1878
|
m,
|
|
1878
1879
|
c,
|
|
1879
|
-
|
|
1880
|
+
g
|
|
1880
1881
|
);
|
|
1881
|
-
T = i(
|
|
1882
|
+
T = i(y, f);
|
|
1882
1883
|
}
|
|
1883
|
-
if (
|
|
1884
|
-
let
|
|
1884
|
+
if (S(T) || ke(T)) {
|
|
1885
|
+
let y = !1;
|
|
1885
1886
|
const b = Dn(e, f, t, T, f, () => {
|
|
1886
|
-
|
|
1887
|
+
y = !0;
|
|
1887
1888
|
});
|
|
1888
|
-
return
|
|
1889
|
+
return y ? fn : b;
|
|
1889
1890
|
} else return re(T) ? T : fn;
|
|
1890
1891
|
}
|
|
1891
1892
|
};
|
|
1892
1893
|
return e.processor && (p.processor = e.processor), r.list && (p.list = r.list), r.named && (p.named = r.named), ee(r.plural) && (p.pluralIndex = r.plural), p;
|
|
1893
1894
|
}
|
|
1894
1895
|
wr();
|
|
1895
|
-
var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_39510aae-1b8c-43d9-9d54-55674f9aedbc", 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_39510aae-1b8c-43d9-9d54-55674f9aedbc", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", GTM_ID: "GTM-WR8XHXLH", FIREBASE_MESSAGING_SENDER_ID: "128512026847", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "production", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.6.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-zzez732dna-as.a.run.app", VITE_FEATURE_FLAG_API_KEY: "6GhcttsJ9Rj9cTevcdrpin", SYSTEMD_EXEC_PID: "1908", ACTIONS_ORCHESTRATION_ID: "125c0df2-a12f-47d3-90f0-6f9fd2391762.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: "20260720.247.2", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_39510aae-1b8c-43d9-9d54-55674f9aedbc", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:10786", GITHUB_WORKFLOW: "Publish mf-menu prod", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", REMY_URL: "https://remy.feedmeapi.com/v1", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.12/x64", GITHUB_RUN_ID: "30870071291", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapi.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "ef698a60f3410275ed2238ec2f8a0e01275a355a", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "production", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu-prod.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_3daefcf7-12ea-4124-b2e0-1d6b2bbc1854", INVOCATION_ID: "68063b6827a94f818a34e3472b69023d", 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: "178", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-2MP52PC24R", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", VITE_LICENSE_API_URL: "https://license-v2.feedmeapi.com", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000103406", 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.62", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", GTM_DEBUG: "false", FIREBASE_PROJECT_ID: "feedme-253402", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "ef698a60f3410275ed2238ec2f8a0e01275a355a", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_39510aae-1b8c-43d9-9d54-55674f9aedbc", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "7780463", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_39510aae-1b8c-43d9-9d54-55674f9aedbc", 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_39510aae-1b8c-43d9-9d54-55674f9aedbc", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_39510aae-1b8c-43d9-9d54-55674f9aedbc", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
1896
|
+
var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_7568684a-b6a9-48f6-b82b-c05a92ab0064", 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_7568684a-b6a9-48f6-b82b-c05a92ab0064", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", 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.6.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", VITE_FEATURE_FLAG_API_KEY: "MaGoXrEWuEJNpWgKTqseee", SYSTEMD_EXEC_PID: "1802", ACTIONS_ORCHESTRATION_ID: "03686535-356d-4815-a3a1-1bfe0edc3374.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: "20260720.247.2", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_7568684a-b6a9-48f6-b82b-c05a92ab0064", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:12630", 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.12/x64", GITHUB_RUN_ID: "31193639463", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "b26c69a65b69f0618de8663106f6f6255e8fd04b", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/KDI-5049-multiple-images-aspect-ratios", 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_3b8bf86f-521b-47fd-b285-36a33db911d5", INVOCATION_ID: "046a3876256a428fa8fe2bfb6c4c299b", 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: "580", GITHUB_TRIGGERING_ACTOR: "heiseshandian", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", VITE_LICENSE_API_URL: "https://license-v2-dev.feedmeapi.com", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000106815", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5049-multiple-images-aspect-ratios", 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.63-dev.1", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "b26c69a65b69f0618de8663106f6f6255e8fd04b", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5049-multiple-images-aspect-ratios", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_7568684a-b6a9-48f6-b82b-c05a92ab0064", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "7780463", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_7568684a-b6a9-48f6-b82b-c05a92ab0064", 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_7568684a-b6a9-48f6-b82b-c05a92ab0064", 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_7568684a-b6a9-48f6-b82b-c05a92ab0064", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
1896
1897
|
const Ho = "10.0.5";
|
|
1897
1898
|
function Go() {
|
|
1898
1899
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Te().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Te().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Te().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Te().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1899
1900
|
}
|
|
1900
|
-
const
|
|
1901
|
+
const Se = {
|
|
1901
1902
|
// composer module errors
|
|
1902
1903
|
UNEXPECTED_RETURN_TYPE: ro,
|
|
1903
1904
|
// 24
|
|
@@ -1913,7 +1914,7 @@ const ke = {
|
|
|
1913
1914
|
function $e(e, ...t) {
|
|
1914
1915
|
return nt(e, null, void 0);
|
|
1915
1916
|
}
|
|
1916
|
-
const Ot = /* @__PURE__ */ Ie("__translateVNode"), Ct = /* @__PURE__ */ Ie("__datetimeParts"),
|
|
1917
|
+
const Ot = /* @__PURE__ */ Ie("__translateVNode"), Ct = /* @__PURE__ */ Ie("__datetimeParts"), kt = /* @__PURE__ */ Ie("__numberParts"), Wo = Ie("__setPluralRules"), wn = /* @__PURE__ */ Ie("__injectWithOption"), St = /* @__PURE__ */ Ie("__dispose");
|
|
1917
1918
|
function He(e) {
|
|
1918
1919
|
if (!U(e))
|
|
1919
1920
|
return e;
|
|
@@ -1939,10 +1940,10 @@ function Fn(e, t) {
|
|
|
1939
1940
|
const { messages: n, __i18n: r, messageResolver: o, flatJson: a } = t, i = M(n) ? n : z(r) ? H() : { [e]: H() };
|
|
1940
1941
|
if (z(r) && r.forEach((m) => {
|
|
1941
1942
|
if ("locale" in m && "resource" in m) {
|
|
1942
|
-
const { locale: c, resource:
|
|
1943
|
-
c ? (i[c] = i[c] || H(), Je(
|
|
1943
|
+
const { locale: c, resource: g } = m;
|
|
1944
|
+
c ? (i[c] = i[c] || H(), Je(g, i[c])) : Je(g, i);
|
|
1944
1945
|
} else
|
|
1945
|
-
|
|
1946
|
+
S(m) && Je(JSON.parse(m), i);
|
|
1946
1947
|
}), o == null && a)
|
|
1947
1948
|
for (const m in i)
|
|
1948
1949
|
le(i, m) && He(i[m]);
|
|
@@ -1951,7 +1952,7 @@ function Fn(e, t) {
|
|
|
1951
1952
|
function Mn(e) {
|
|
1952
1953
|
return e.type;
|
|
1953
1954
|
}
|
|
1954
|
-
function
|
|
1955
|
+
function Bo(e, t, n) {
|
|
1955
1956
|
let r = U(t.messages) ? t.messages : H();
|
|
1956
1957
|
"__i18nGlobal" in n && (r = Fn(e.locale.value, {
|
|
1957
1958
|
messages: r,
|
|
@@ -1977,11 +1978,11 @@ function Wo(e, t, n) {
|
|
|
1977
1978
|
}
|
|
1978
1979
|
}
|
|
1979
1980
|
function dn(e) {
|
|
1980
|
-
return X(
|
|
1981
|
+
return X(Bn, null, e, 0);
|
|
1981
1982
|
}
|
|
1982
1983
|
const pn = "__INTLIFY_META__", En = () => [], xo = () => !1;
|
|
1983
|
-
let
|
|
1984
|
-
function
|
|
1984
|
+
let gn = 0;
|
|
1985
|
+
function yn(e) {
|
|
1985
1986
|
return (t, n, r, o) => e(n, r, Dt() || void 0, o);
|
|
1986
1987
|
}
|
|
1987
1988
|
const Ko = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
@@ -1994,23 +1995,23 @@ function Yo(e = {}) {
|
|
|
1994
1995
|
let i = Q(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1995
1996
|
const m = a(
|
|
1996
1997
|
// prettier-ignore
|
|
1997
|
-
t && i ? t.locale.value :
|
|
1998
|
+
t && i ? t.locale.value : S(e.locale) ? e.locale : et
|
|
1998
1999
|
), c = a(
|
|
1999
2000
|
// prettier-ignore
|
|
2000
|
-
t && i ? t.fallbackLocale.value :
|
|
2001
|
-
),
|
|
2002
|
-
let p = t ? t.missingWarn : Q(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, f = t ? t.fallbackWarn : Q(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0,
|
|
2003
|
-
const
|
|
2004
|
-
let
|
|
2001
|
+
t && i ? t.fallbackLocale.value : S(e.fallbackLocale) || z(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
2002
|
+
), g = a(Fn(m.value, e)), h = a(M(e.datetimeFormats) ? e.datetimeFormats : { [m.value]: {} }), O = a(M(e.numberFormats) ? e.numberFormats : { [m.value]: {} });
|
|
2003
|
+
let p = t ? t.missingWarn : Q(e.missingWarn) || ze(e.missingWarn) ? e.missingWarn : !0, f = t ? t.fallbackWarn : Q(e.fallbackWarn) || ze(e.fallbackWarn) ? e.fallbackWarn : !0, k = t ? t.fallbackRoot : Q(e.fallbackRoot) ? e.fallbackRoot : !0, T = !!e.fallbackFormat, y = Y(e.missing) ? e.missing : null, u = Y(e.missing) ? yn(e.missing) : null, b = Y(e.postTranslation) ? e.postTranslation : null, N = t ? t.warnHtmlMessage : Q(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
|
|
2004
|
+
const A = t ? t.modifiers : M(e.modifiers) ? e.modifiers : {};
|
|
2005
|
+
let R = e.pluralRules || t && t.pluralRules, d;
|
|
2005
2006
|
d = (() => {
|
|
2006
2007
|
r && on(null);
|
|
2007
2008
|
const _ = {
|
|
2008
2009
|
version: Ho,
|
|
2009
2010
|
locale: m.value,
|
|
2010
2011
|
fallbackLocale: c.value,
|
|
2011
|
-
messages:
|
|
2012
|
-
modifiers:
|
|
2013
|
-
pluralRules:
|
|
2012
|
+
messages: g.value,
|
|
2013
|
+
modifiers: A,
|
|
2014
|
+
pluralRules: R,
|
|
2014
2015
|
missing: u === null ? void 0 : u,
|
|
2015
2016
|
missingWarn: p,
|
|
2016
2017
|
fallbackWarn: f,
|
|
@@ -2031,22 +2032,22 @@ function Yo(e = {}) {
|
|
|
2031
2032
|
return [
|
|
2032
2033
|
m.value,
|
|
2033
2034
|
c.value,
|
|
2034
|
-
|
|
2035
|
+
g.value,
|
|
2035
2036
|
h.value,
|
|
2036
2037
|
O.value
|
|
2037
2038
|
];
|
|
2038
2039
|
}
|
|
2039
|
-
const w =
|
|
2040
|
+
const w = W({
|
|
2040
2041
|
get: () => m.value,
|
|
2041
2042
|
set: (_) => {
|
|
2042
2043
|
m.value = _, d.locale = m.value;
|
|
2043
2044
|
}
|
|
2044
|
-
}),
|
|
2045
|
+
}), B = W({
|
|
2045
2046
|
get: () => c.value,
|
|
2046
2047
|
set: (_) => {
|
|
2047
2048
|
c.value = _, d.fallbackLocale = c.value, we(d, m.value, _);
|
|
2048
2049
|
}
|
|
2049
|
-
}), C =
|
|
2050
|
+
}), C = W(() => g.value), Ne = /* @__PURE__ */ W(() => h.value), ot = /* @__PURE__ */ W(() => O.value);
|
|
2050
2051
|
function at() {
|
|
2051
2052
|
return Y(b) ? b : null;
|
|
2052
2053
|
}
|
|
@@ -2054,10 +2055,10 @@ function Yo(e = {}) {
|
|
|
2054
2055
|
b = _, d.postTranslation = _;
|
|
2055
2056
|
}
|
|
2056
2057
|
function lt() {
|
|
2057
|
-
return
|
|
2058
|
+
return y;
|
|
2058
2059
|
}
|
|
2059
2060
|
function ut(_) {
|
|
2060
|
-
_ !== null && (u =
|
|
2061
|
+
_ !== null && (u = yn(_)), y = _, d.missing = u;
|
|
2061
2062
|
}
|
|
2062
2063
|
const ce = (_, I, G, J, ve, Ye) => {
|
|
2063
2064
|
P();
|
|
@@ -2070,30 +2071,30 @@ function Yo(e = {}) {
|
|
|
2070
2071
|
if (G !== "translate exists" && // for not `te` (e.g `t`)
|
|
2071
2072
|
ee(Le) && Le === rt || G === "translate exists" && !Le) {
|
|
2072
2073
|
const [$n, Va] = I();
|
|
2073
|
-
return t &&
|
|
2074
|
+
return t && k ? J(t) : ve($n);
|
|
2074
2075
|
} else {
|
|
2075
2076
|
if (Ye(Le))
|
|
2076
2077
|
return Le;
|
|
2077
|
-
throw $e(
|
|
2078
|
+
throw $e(Se.UNEXPECTED_RETURN_TYPE);
|
|
2078
2079
|
}
|
|
2079
2080
|
};
|
|
2080
|
-
function
|
|
2081
|
-
return ce((I) => Reflect.apply(_n, null, [I, ..._]), () => Lt(..._), "translate", (I) => Reflect.apply(I.t, I, [..._]), (I) => I, (I) =>
|
|
2081
|
+
function Be(..._) {
|
|
2082
|
+
return ce((I) => Reflect.apply(_n, null, [I, ..._]), () => Lt(..._), "translate", (I) => Reflect.apply(I.t, I, [..._]), (I) => I, (I) => S(I));
|
|
2082
2083
|
}
|
|
2083
2084
|
function xe(..._) {
|
|
2084
2085
|
const [I, G, J] = _;
|
|
2085
2086
|
if (J && !U(J))
|
|
2086
|
-
throw $e(
|
|
2087
|
-
return
|
|
2087
|
+
throw $e(Se.INVALID_ARGUMENT);
|
|
2088
|
+
return Be(I, G, te({ resolvedMessage: !0 }, J || {}));
|
|
2088
2089
|
}
|
|
2089
2090
|
function it(..._) {
|
|
2090
|
-
return ce((I) => Reflect.apply(sn, null, [I, ..._]), () =>
|
|
2091
|
+
return ce((I) => Reflect.apply(sn, null, [I, ..._]), () => At(..._), "datetime format", (I) => Reflect.apply(I.d, I, [..._]), () => nn, (I) => S(I));
|
|
2091
2092
|
}
|
|
2092
2093
|
function ct(..._) {
|
|
2093
|
-
return ce((I) => Reflect.apply(un, null, [I, ..._]), () =>
|
|
2094
|
+
return ce((I) => Reflect.apply(un, null, [I, ..._]), () => Rt(..._), "number format", (I) => Reflect.apply(I.n, I, [..._]), () => nn, (I) => S(I));
|
|
2094
2095
|
}
|
|
2095
2096
|
function mt(_) {
|
|
2096
|
-
return _.map((I) =>
|
|
2097
|
+
return _.map((I) => S(I) || ee(I) || Q(I) ? dn(String(I)) : I);
|
|
2097
2098
|
}
|
|
2098
2099
|
const ft = {
|
|
2099
2100
|
normalize: mt,
|
|
@@ -2113,27 +2114,27 @@ function Yo(e = {}) {
|
|
|
2113
2114
|
}, () => Lt(..._), "translate", (I) => I[Ot](..._), (I) => [dn(I)], (I) => z(I));
|
|
2114
2115
|
}
|
|
2115
2116
|
function Ke(..._) {
|
|
2116
|
-
return ce((I) => Reflect.apply(un, null, [I, ..._]), () =>
|
|
2117
|
+
return ce((I) => Reflect.apply(un, null, [I, ..._]), () => Rt(..._), "number format", (I) => I[kt](..._), En, (I) => S(I) || z(I));
|
|
2117
2118
|
}
|
|
2118
2119
|
function dt(..._) {
|
|
2119
|
-
return ce((I) => Reflect.apply(sn, null, [I, ..._]), () =>
|
|
2120
|
+
return ce((I) => Reflect.apply(sn, null, [I, ..._]), () => At(..._), "datetime format", (I) => I[Ct](..._), En, (I) => S(I) || z(I));
|
|
2120
2121
|
}
|
|
2121
2122
|
function pt(_) {
|
|
2122
|
-
|
|
2123
|
+
R = _, d.pluralRules = R;
|
|
2123
2124
|
}
|
|
2124
2125
|
function Et(_, I) {
|
|
2125
2126
|
return ce(() => {
|
|
2126
2127
|
if (!_)
|
|
2127
2128
|
return !1;
|
|
2128
|
-
const G =
|
|
2129
|
-
return
|
|
2129
|
+
const G = S(I) ? I : m.value, J = Ae(G), ve = d.messageResolver(J, _);
|
|
2130
|
+
return ke(ve) || re(ve) || S(ve);
|
|
2130
2131
|
}, () => [_], "translate exists", (G) => Reflect.apply(G.te, G, [_, I]), xo, (G) => Q(G));
|
|
2131
2132
|
}
|
|
2132
|
-
function
|
|
2133
|
+
function gt(_) {
|
|
2133
2134
|
let I = null;
|
|
2134
2135
|
const G = Nn(d, c.value, m.value);
|
|
2135
2136
|
for (let J = 0; J < G.length; J++) {
|
|
2136
|
-
const ve =
|
|
2137
|
+
const ve = g.value[G[J]] || {}, Ye = d.messageResolver(ve, _);
|
|
2137
2138
|
if (Ye != null) {
|
|
2138
2139
|
I = Ye;
|
|
2139
2140
|
break;
|
|
@@ -2142,30 +2143,30 @@ function Yo(e = {}) {
|
|
|
2142
2143
|
return I;
|
|
2143
2144
|
}
|
|
2144
2145
|
function Pe(_) {
|
|
2145
|
-
const I =
|
|
2146
|
+
const I = gt(_);
|
|
2146
2147
|
return I ?? (t ? t.tm(_) || {} : {});
|
|
2147
2148
|
}
|
|
2148
|
-
function
|
|
2149
|
-
return
|
|
2149
|
+
function Ae(_) {
|
|
2150
|
+
return g.value[_] || {};
|
|
2150
2151
|
}
|
|
2151
|
-
function
|
|
2152
|
+
function Re(_, I) {
|
|
2152
2153
|
if (o) {
|
|
2153
2154
|
const G = { [_]: I };
|
|
2154
2155
|
for (const J in G)
|
|
2155
2156
|
le(G, J) && He(G[J]);
|
|
2156
2157
|
I = G[_];
|
|
2157
2158
|
}
|
|
2158
|
-
|
|
2159
|
+
g.value[_] = I, d.messages = g.value;
|
|
2159
2160
|
}
|
|
2160
2161
|
function De(_, I) {
|
|
2161
|
-
|
|
2162
|
+
g.value[_] = g.value[_] || {};
|
|
2162
2163
|
const G = { [_]: I };
|
|
2163
2164
|
if (o)
|
|
2164
2165
|
for (const J in G)
|
|
2165
2166
|
le(G, J) && He(G[J]);
|
|
2166
|
-
I = G[_], Je(I,
|
|
2167
|
+
I = G[_], Je(I, g.value[_]), d.messages = g.value;
|
|
2167
2168
|
}
|
|
2168
|
-
function
|
|
2169
|
+
function yt(_) {
|
|
2169
2170
|
return h.value[_] || {};
|
|
2170
2171
|
}
|
|
2171
2172
|
function s(_, I) {
|
|
@@ -2183,15 +2184,15 @@ function Yo(e = {}) {
|
|
|
2183
2184
|
function q(_, I) {
|
|
2184
2185
|
O.value[_] = te(O.value[_] || {}, I), d.numberFormats = O.value, cn(d, _, I);
|
|
2185
2186
|
}
|
|
2186
|
-
|
|
2187
|
+
gn++, t && Yt && (Ze(t.locale, (_) => {
|
|
2187
2188
|
i && (m.value = _, d.locale = _, we(d, m.value, c.value));
|
|
2188
2189
|
}), Ze(t.fallbackLocale, (_) => {
|
|
2189
2190
|
i && (c.value = _, d.fallbackLocale = _, we(d, m.value, c.value));
|
|
2190
2191
|
}));
|
|
2191
2192
|
const F = {
|
|
2192
|
-
id:
|
|
2193
|
+
id: gn,
|
|
2193
2194
|
locale: w,
|
|
2194
|
-
fallbackLocale:
|
|
2195
|
+
fallbackLocale: B,
|
|
2195
2196
|
get inheritLocale() {
|
|
2196
2197
|
return i;
|
|
2197
2198
|
},
|
|
@@ -2199,14 +2200,14 @@ function Yo(e = {}) {
|
|
|
2199
2200
|
i = _, _ && t && (m.value = t.locale.value, c.value = t.fallbackLocale.value, we(d, m.value, c.value));
|
|
2200
2201
|
},
|
|
2201
2202
|
get availableLocales() {
|
|
2202
|
-
return Object.keys(
|
|
2203
|
+
return Object.keys(g.value).sort();
|
|
2203
2204
|
},
|
|
2204
2205
|
messages: C,
|
|
2205
2206
|
get modifiers() {
|
|
2206
|
-
return
|
|
2207
|
+
return A;
|
|
2207
2208
|
},
|
|
2208
2209
|
get pluralRules() {
|
|
2209
|
-
return
|
|
2210
|
+
return R || {};
|
|
2210
2211
|
},
|
|
2211
2212
|
get isGlobal() {
|
|
2212
2213
|
return r;
|
|
@@ -2224,10 +2225,10 @@ function Yo(e = {}) {
|
|
|
2224
2225
|
f = _, d.fallbackWarn = f;
|
|
2225
2226
|
},
|
|
2226
2227
|
get fallbackRoot() {
|
|
2227
|
-
return
|
|
2228
|
+
return k;
|
|
2228
2229
|
},
|
|
2229
2230
|
set fallbackRoot(_) {
|
|
2230
|
-
|
|
2231
|
+
k = _;
|
|
2231
2232
|
},
|
|
2232
2233
|
get fallbackFormat() {
|
|
2233
2234
|
return T;
|
|
@@ -2247,17 +2248,17 @@ function Yo(e = {}) {
|
|
|
2247
2248
|
set escapeParameter(_) {
|
|
2248
2249
|
E = _, d.escapeParameter = _;
|
|
2249
2250
|
},
|
|
2250
|
-
t:
|
|
2251
|
-
getLocaleMessage:
|
|
2252
|
-
setLocaleMessage:
|
|
2251
|
+
t: Be,
|
|
2252
|
+
getLocaleMessage: Ae,
|
|
2253
|
+
setLocaleMessage: Re,
|
|
2253
2254
|
mergeLocaleMessage: De,
|
|
2254
2255
|
getPostTranslationHandler: at,
|
|
2255
2256
|
setPostTranslationHandler: st,
|
|
2256
2257
|
getMissingHandler: lt,
|
|
2257
2258
|
setMissingHandler: ut,
|
|
2258
|
-
[
|
|
2259
|
+
[Wo]: pt
|
|
2259
2260
|
};
|
|
2260
|
-
return F.datetimeFormats = Ne, F.numberFormats = ot, F.rt = xe, F.te = Et, F.tm = Pe, F.d = it, F.n = ct, F.getDateTimeFormat =
|
|
2261
|
+
return F.datetimeFormats = Ne, F.numberFormats = ot, F.rt = xe, F.te = Et, F.tm = Pe, F.d = it, F.n = ct, F.getDateTimeFormat = yt, F.setDateTimeFormat = s, F.mergeDateTimeFormat = l, F.getNumberFormat = v, F.setNumberFormat = D, F.mergeNumberFormat = q, F[wn] = n, F[Ot] = _t, F[Ct] = dt, F[kt] = Ke, F;
|
|
2261
2262
|
}
|
|
2262
2263
|
const Gt = {
|
|
2263
2264
|
tag: {
|
|
@@ -2301,22 +2302,22 @@ te({
|
|
|
2301
2302
|
}
|
|
2302
2303
|
}, Gt);
|
|
2303
2304
|
function Xo(e) {
|
|
2304
|
-
return z(e) && !
|
|
2305
|
+
return z(e) && !S(e[0]);
|
|
2305
2306
|
}
|
|
2306
2307
|
function Vn(e, t, n, r) {
|
|
2307
2308
|
const { slots: o, attrs: a } = t;
|
|
2308
2309
|
return () => {
|
|
2309
2310
|
const i = { part: !0 };
|
|
2310
2311
|
let m = H();
|
|
2311
|
-
e.locale && (i.locale = e.locale),
|
|
2312
|
+
e.locale && (i.locale = e.locale), S(e.format) ? i.key = e.format : U(e.format) && (S(e.format.key) && (i.key = e.format.key), m = Object.keys(e.format).reduce((p, f) => n.includes(f) ? te(H(), p, { [f]: e.format[f] }) : p, H()));
|
|
2312
2313
|
const c = r(e.value, i, m);
|
|
2313
|
-
let
|
|
2314
|
-
z(c) ?
|
|
2315
|
-
const
|
|
2314
|
+
let g = [i.key];
|
|
2315
|
+
z(c) ? g = c.map((p, f) => {
|
|
2316
|
+
const k = o[p.type], T = k ? k({ [p.type]: p.value, index: f, parts: c }) : [p.value];
|
|
2316
2317
|
return Xo(T) && (T[0].key = `${p.type}-${f}`), T;
|
|
2317
|
-
}) :
|
|
2318
|
-
const h = te(H(), a), O =
|
|
2319
|
-
return hn(O, h,
|
|
2318
|
+
}) : S(c) && (g = [c]);
|
|
2319
|
+
const h = te(H(), a), O = S(e.tag) || U(e.tag) ? e.tag : Un();
|
|
2320
|
+
return hn(O, h, g);
|
|
2320
2321
|
};
|
|
2321
2322
|
}
|
|
2322
2323
|
te({
|
|
@@ -2338,15 +2339,15 @@ te({
|
|
|
2338
2339
|
}
|
|
2339
2340
|
}, Gt);
|
|
2340
2341
|
const qo = /* @__PURE__ */ Ie("global-vue-i18n");
|
|
2341
|
-
function
|
|
2342
|
+
function We(e = {}) {
|
|
2342
2343
|
const t = Dt();
|
|
2343
2344
|
if (t == null)
|
|
2344
|
-
throw $e(
|
|
2345
|
+
throw $e(Se.MUST_BE_CALL_SETUP_TOP);
|
|
2345
2346
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2346
|
-
throw $e(
|
|
2347
|
+
throw $e(Se.NOT_INSTALLED);
|
|
2347
2348
|
const n = Jo(t), r = Zo(n), o = Mn(t), a = Qo(e, o);
|
|
2348
2349
|
if (a === "global")
|
|
2349
|
-
return
|
|
2350
|
+
return Bo(r, e, o), r;
|
|
2350
2351
|
if (a === "parent") {
|
|
2351
2352
|
let c = zo(n, t, e.__useComponent);
|
|
2352
2353
|
return c == null && (c = r), c;
|
|
@@ -2355,14 +2356,14 @@ function Be(e = {}) {
|
|
|
2355
2356
|
let m = i.__getInstance(t);
|
|
2356
2357
|
if (m == null) {
|
|
2357
2358
|
const c = te({}, e);
|
|
2358
|
-
"__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[St] = i.__composerExtend(m)), ta(i, t, m), i.__setInstance(t, m);
|
|
2359
2360
|
}
|
|
2360
2361
|
return m;
|
|
2361
2362
|
}
|
|
2362
2363
|
function Jo(e) {
|
|
2363
2364
|
const t = Hn(e.isCE ? qo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2364
2365
|
if (!t)
|
|
2365
|
-
throw $e(e.isCE ?
|
|
2366
|
+
throw $e(e.isCE ? Se.NOT_INSTALLED_WITH_PROVIDE : Se.UNEXPECTED_ERROR);
|
|
2366
2367
|
return t;
|
|
2367
2368
|
}
|
|
2368
2369
|
function Qo(e, t) {
|
|
@@ -2394,15 +2395,15 @@ function ea(e, t = !1) {
|
|
|
2394
2395
|
}
|
|
2395
2396
|
function ta(e, t, n) {
|
|
2396
2397
|
vn(() => {
|
|
2397
|
-
}, t),
|
|
2398
|
+
}, t), Wn(() => {
|
|
2398
2399
|
const r = n;
|
|
2399
2400
|
e.__deleteInstance(t);
|
|
2400
|
-
const o = r[
|
|
2401
|
-
o && (o(), delete r[
|
|
2401
|
+
const o = r[St];
|
|
2402
|
+
o && (o(), delete r[St]);
|
|
2402
2403
|
}, t);
|
|
2403
2404
|
}
|
|
2404
2405
|
Go();
|
|
2405
|
-
|
|
2406
|
+
yo(Zr);
|
|
2406
2407
|
bo(po);
|
|
2407
2408
|
vo(Nn);
|
|
2408
2409
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
@@ -2412,10 +2413,10 @@ if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
|
2412
2413
|
function Ee(e) {
|
|
2413
2414
|
return Array.from(new Set(e));
|
|
2414
2415
|
}
|
|
2415
|
-
function
|
|
2416
|
+
function Xa() {
|
|
2416
2417
|
const e = wt();
|
|
2417
2418
|
return {
|
|
2418
|
-
restaurantAttributes:
|
|
2419
|
+
restaurantAttributes: W(() => [
|
|
2419
2420
|
{
|
|
2420
2421
|
type: "string",
|
|
2421
2422
|
key: "name",
|
|
@@ -2494,10 +2495,10 @@ function aa() {
|
|
|
2494
2495
|
}
|
|
2495
2496
|
];
|
|
2496
2497
|
}
|
|
2497
|
-
function
|
|
2498
|
-
const t =
|
|
2499
|
-
var c,
|
|
2500
|
-
const i = ((c = e.menuItems) == null ? void 0 : c.value) || [], m = ((
|
|
2498
|
+
function qa(e = {}) {
|
|
2499
|
+
const t = W(() => {
|
|
2500
|
+
var c, g;
|
|
2501
|
+
const i = ((c = e.menuItems) == null ? void 0 : c.value) || [], m = ((g = e.categories) == null ? void 0 : g.value) || [];
|
|
2501
2502
|
return [
|
|
2502
2503
|
{
|
|
2503
2504
|
type: "string",
|
|
@@ -2518,13 +2519,13 @@ function Xa(e = {}) {
|
|
|
2518
2519
|
values: Ee(m.filter((h) => !!h.name).map((h) => h.name))
|
|
2519
2520
|
}
|
|
2520
2521
|
];
|
|
2521
|
-
}), n =
|
|
2522
|
+
}), n = W(() => {
|
|
2522
2523
|
var m;
|
|
2523
2524
|
const i = {};
|
|
2524
2525
|
return (m = e.categories) == null || m.value.forEach((c) => {
|
|
2525
2526
|
i[c.name] = c._id;
|
|
2526
2527
|
}), i;
|
|
2527
|
-
}), r =
|
|
2528
|
+
}), r = W(() => {
|
|
2528
2529
|
var m;
|
|
2529
2530
|
const i = {};
|
|
2530
2531
|
return (m = e.categories) == null || m.value.forEach((c) => {
|
|
@@ -2535,8 +2536,8 @@ function Xa(e = {}) {
|
|
|
2535
2536
|
const m = Kt.cloneDeep(i);
|
|
2536
2537
|
return m != null && m.rules && (m.rules = m.rules.map((c) => {
|
|
2537
2538
|
if ("property" in c && c.property === "category" && Array.isArray(c.value)) {
|
|
2538
|
-
const
|
|
2539
|
-
return { ...c, value:
|
|
2539
|
+
const g = c.value.map((h) => r.value[h]);
|
|
2540
|
+
return { ...c, value: g };
|
|
2540
2541
|
}
|
|
2541
2542
|
return c;
|
|
2542
2543
|
})), m;
|
|
@@ -2545,8 +2546,8 @@ function Xa(e = {}) {
|
|
|
2545
2546
|
const m = Kt.cloneDeep(i);
|
|
2546
2547
|
return m != null && m.rules && (m.rules = m.rules.map((c) => {
|
|
2547
2548
|
if ("property" in c && c.property === "category" && Array.isArray(c.value)) {
|
|
2548
|
-
const
|
|
2549
|
-
return { ...c, value:
|
|
2549
|
+
const g = c.value.map((h) => n.value[h]);
|
|
2550
|
+
return { ...c, value: g };
|
|
2550
2551
|
}
|
|
2551
2552
|
return c;
|
|
2552
2553
|
})), m;
|
|
@@ -2603,21 +2604,21 @@ const sa = {
|
|
|
2603
2604
|
}), {
|
|
2604
2605
|
attributes: m
|
|
2605
2606
|
} = xt({
|
|
2606
|
-
valueSource:
|
|
2607
|
+
valueSource: W(() => a.state.menu.modules.item || []),
|
|
2607
2608
|
entity: "item"
|
|
2608
|
-
}), c = oa(),
|
|
2609
|
+
}), c = oa(), g = aa(), h = oe(r.ruleKey), O = W(() => [...c.map((d) => ({
|
|
2609
2610
|
label: d.label,
|
|
2610
2611
|
value: `restaurant_attr_${d.value}`
|
|
2611
2612
|
})), ...i.value.map((d) => ({
|
|
2612
2613
|
label: `Restaurant ${d.key}`,
|
|
2613
2614
|
value: `restaurant_custom_${d.key}`
|
|
2614
|
-
})), ...
|
|
2615
|
+
})), ...g.map((d) => ({
|
|
2615
2616
|
label: d.label,
|
|
2616
2617
|
value: `item_attr_${d.value}`
|
|
2617
2618
|
})), ...m.value.map((d) => ({
|
|
2618
2619
|
label: `Product ${d.key}`,
|
|
2619
2620
|
value: `item_custom_${d.key}`
|
|
2620
|
-
}))]), p = oe(r.values), f =
|
|
2621
|
+
}))]), p = oe(r.values), f = W(() => {
|
|
2621
2622
|
const d = h.value;
|
|
2622
2623
|
if (!d) return [];
|
|
2623
2624
|
if (d.startsWith("restaurant_attr_")) {
|
|
@@ -2632,7 +2633,7 @@ const sa = {
|
|
|
2632
2633
|
value: w
|
|
2633
2634
|
}));
|
|
2634
2635
|
} else if (d.startsWith("item_attr_")) {
|
|
2635
|
-
const L = d.replace("item_attr_", ""), P =
|
|
2636
|
+
const L = d.replace("item_attr_", ""), P = g.find((w) => w.value === L);
|
|
2636
2637
|
if (P && Array.isArray(P.options))
|
|
2637
2638
|
return P.options;
|
|
2638
2639
|
} else if (d.startsWith("item_custom_")) {
|
|
@@ -2644,7 +2645,7 @@ const sa = {
|
|
|
2644
2645
|
}));
|
|
2645
2646
|
}
|
|
2646
2647
|
return [];
|
|
2647
|
-
}),
|
|
2648
|
+
}), k = oe(r.operator), T = [{
|
|
2648
2649
|
label: n("menu.rule_groups.condition_view.operator.in"),
|
|
2649
2650
|
value: "$in"
|
|
2650
2651
|
}, {
|
|
@@ -2653,20 +2654,20 @@ const sa = {
|
|
|
2653
2654
|
}, {
|
|
2654
2655
|
label: n("menu.rule_groups.condition_view.operator.starts_with"),
|
|
2655
2656
|
value: "$startsWith"
|
|
2656
|
-
}],
|
|
2657
|
-
const d = f.value, L = Array.isArray(p.value) ? p.value : [], P = L.map((
|
|
2657
|
+
}], y = oe(""), u = oe(!1), b = W(() => {
|
|
2658
|
+
const d = f.value, L = Array.isArray(p.value) ? p.value : [], P = L.map((B) => d.find((C) => C.value === B)).filter(Boolean);
|
|
2658
2659
|
let w = [];
|
|
2659
|
-
if (
|
|
2660
|
-
const
|
|
2660
|
+
if (y.value ? w = d.filter((B) => B.label.toLowerCase().includes(y.value.toLowerCase()) && !L.includes(B.value)) : w = d.filter((B) => !L.includes(B.value)), u.value) {
|
|
2661
|
+
const B = P.map((C) => ({
|
|
2661
2662
|
...C,
|
|
2662
2663
|
disabled: !0
|
|
2663
2664
|
}));
|
|
2664
|
-
return [...w, ...
|
|
2665
|
+
return [...w, ...B];
|
|
2665
2666
|
}
|
|
2666
2667
|
return [...P, ...w];
|
|
2667
|
-
}), N =
|
|
2668
|
+
}), N = W(() => {
|
|
2668
2669
|
let d = O.value;
|
|
2669
|
-
return d = d.filter((L) => !r.selectedKeys.includes(L.value) || L.value === h.value),
|
|
2670
|
+
return d = d.filter((L) => !r.selectedKeys.includes(L.value) || L.value === h.value), y.value ? d.filter((L) => L.label.toLowerCase().includes(y.value.toLowerCase())) : d;
|
|
2670
2671
|
});
|
|
2671
2672
|
Ze(() => h.value, (d) => {
|
|
2672
2673
|
p.value = [];
|
|
@@ -2681,13 +2682,13 @@ const sa = {
|
|
|
2681
2682
|
}
|
|
2682
2683
|
return "string";
|
|
2683
2684
|
}
|
|
2684
|
-
function
|
|
2685
|
+
function A(d, L) {
|
|
2685
2686
|
const P = E(d === "ruleKey" ? L : h.value);
|
|
2686
2687
|
switch (d) {
|
|
2687
2688
|
case "ruleKey":
|
|
2688
2689
|
o("update:modelValue", {
|
|
2689
2690
|
ruleKey: L,
|
|
2690
|
-
operator:
|
|
2691
|
+
operator: k.value,
|
|
2691
2692
|
values: p.value,
|
|
2692
2693
|
uniqueKey: r.uniqueKey,
|
|
2693
2694
|
type: P,
|
|
@@ -2707,7 +2708,7 @@ const sa = {
|
|
|
2707
2708
|
case "ruleValues":
|
|
2708
2709
|
o("update:modelValue", {
|
|
2709
2710
|
ruleKey: h.value,
|
|
2710
|
-
operator:
|
|
2711
|
+
operator: k.value,
|
|
2711
2712
|
values: L,
|
|
2712
2713
|
uniqueKey: r.uniqueKey,
|
|
2713
2714
|
type: P,
|
|
@@ -2716,7 +2717,7 @@ const sa = {
|
|
|
2716
2717
|
break;
|
|
2717
2718
|
}
|
|
2718
2719
|
}
|
|
2719
|
-
function
|
|
2720
|
+
function R() {
|
|
2720
2721
|
o("update:modelValue", {
|
|
2721
2722
|
ruleKey: null,
|
|
2722
2723
|
operator: null,
|
|
@@ -2726,26 +2727,26 @@ const sa = {
|
|
|
2726
2727
|
});
|
|
2727
2728
|
}
|
|
2728
2729
|
return (d, L) => {
|
|
2729
|
-
const P = pe("FmSearch"), w = pe("FmSelect"),
|
|
2730
|
+
const P = pe("FmSearch"), w = pe("FmSelect"), B = pe("FmButton");
|
|
2730
2731
|
return x(), j("div", sa, [V("div", la, [X(w, {
|
|
2731
2732
|
class: "flex w-full",
|
|
2732
2733
|
modelValue: h.value,
|
|
2733
|
-
"onUpdate:modelValue": [L[1] || (L[1] = (C) => h.value = C), L[2] || (L[2] = (C) =>
|
|
2734
|
+
"onUpdate:modelValue": [L[1] || (L[1] = (C) => h.value = C), L[2] || (L[2] = (C) => A("ruleKey", C))],
|
|
2734
2735
|
items: N.value,
|
|
2735
2736
|
placeholder: K(n)("menu.rule_groups.condition_view.select_item"),
|
|
2736
2737
|
"menu-id": "rule-filter-keys-menu"
|
|
2737
2738
|
}, {
|
|
2738
2739
|
"prepend-menu": ae(() => [X(P, {
|
|
2739
2740
|
class: "px-8",
|
|
2740
|
-
modelValue:
|
|
2741
|
-
"onUpdate:modelValue": L[0] || (L[0] = (C) =>
|
|
2741
|
+
modelValue: y.value,
|
|
2742
|
+
"onUpdate:modelValue": L[0] || (L[0] = (C) => y.value = C),
|
|
2742
2743
|
placeholder: K(n)("common.filter")
|
|
2743
2744
|
}, null, 8, ["modelValue", "placeholder"])]),
|
|
2744
2745
|
_: 1
|
|
2745
2746
|
}, 8, ["modelValue", "items", "placeholder"]), X(w, {
|
|
2746
2747
|
class: "flex w-full",
|
|
2747
|
-
modelValue:
|
|
2748
|
-
"onUpdate:modelValue": [L[3] || (L[3] = (C) =>
|
|
2748
|
+
modelValue: k.value,
|
|
2749
|
+
"onUpdate:modelValue": [L[3] || (L[3] = (C) => k.value = C), L[4] || (L[4] = (C) => A("operator", C))],
|
|
2749
2750
|
placeholder: K(n)("menu.rule_groups.condition_view.select_item"),
|
|
2750
2751
|
items: T,
|
|
2751
2752
|
rules: [(C) => h.value && !C ? K(n)("menu.rule_groups.condition_view.required") : !0]
|
|
@@ -2754,7 +2755,7 @@ const sa = {
|
|
|
2754
2755
|
"hide-selected-items": u.value
|
|
2755
2756
|
}]),
|
|
2756
2757
|
modelValue: p.value,
|
|
2757
|
-
"onUpdate:modelValue": [L[7] || (L[7] = (C) => p.value = C), L[8] || (L[8] = (C) =>
|
|
2758
|
+
"onUpdate:modelValue": [L[7] || (L[7] = (C) => p.value = C), L[8] || (L[8] = (C) => A("ruleValues", C))],
|
|
2758
2759
|
items: b.value,
|
|
2759
2760
|
placeholder: K(n)("menu.rule_groups.condition_view.select_item"),
|
|
2760
2761
|
multiselect: "",
|
|
@@ -2765,10 +2766,10 @@ const sa = {
|
|
|
2765
2766
|
default: ae(() => [V("div", ua, Z(p.value.join(", ")), 1)]),
|
|
2766
2767
|
"prepend-menu": ae(() => [V("div", ia, [X(P, {
|
|
2767
2768
|
class: "px-8",
|
|
2768
|
-
modelValue:
|
|
2769
|
-
"onUpdate:modelValue": L[5] || (L[5] = (C) =>
|
|
2769
|
+
modelValue: y.value,
|
|
2770
|
+
"onUpdate:modelValue": L[5] || (L[5] = (C) => y.value = C),
|
|
2770
2771
|
placeholder: K(n)("common.filter")
|
|
2771
|
-
}, null, 8, ["modelValue", "placeholder"]), X(
|
|
2772
|
+
}, null, 8, ["modelValue", "placeholder"]), X(B, {
|
|
2772
2773
|
variant: K(he).Tertiary,
|
|
2773
2774
|
icon: u.value ? "check_box_outline_blank" : "check_box",
|
|
2774
2775
|
iconColor: "neutral-gray-300",
|
|
@@ -2776,10 +2777,10 @@ const sa = {
|
|
|
2776
2777
|
onClick: L[6] || (L[6] = (C) => u.value = !u.value)
|
|
2777
2778
|
}, null, 8, ["variant", "icon"])])]),
|
|
2778
2779
|
_: 1
|
|
2779
|
-
}, 8, ["class", "modelValue", "items", "placeholder", "rules"])]), X(
|
|
2780
|
+
}, 8, ["class", "modelValue", "items", "placeholder", "rules"])]), X(B, {
|
|
2780
2781
|
variant: "tertiary",
|
|
2781
2782
|
"prepend-icon": "close",
|
|
2782
|
-
onClick: L[9] || (L[9] = se((C) =>
|
|
2783
|
+
onClick: L[9] || (L[9] = se((C) => R(), ["stop"]))
|
|
2783
2784
|
})]);
|
|
2784
2785
|
};
|
|
2785
2786
|
}
|
|
@@ -2800,19 +2801,19 @@ const sa = {
|
|
|
2800
2801
|
}) {
|
|
2801
2802
|
const {
|
|
2802
2803
|
t: n
|
|
2803
|
-
} = Ge(), r = e, o = t, a =
|
|
2804
|
+
} = Ge(), r = e, o = t, a = W(() => {
|
|
2804
2805
|
var f;
|
|
2805
2806
|
return ((f = r.modelValue.restaurantRule) == null ? void 0 : f.restaurantAttributes) ?? {};
|
|
2806
|
-
}), i =
|
|
2807
|
+
}), i = W(() => {
|
|
2807
2808
|
var f;
|
|
2808
2809
|
return ((f = r.modelValue.restaurantRule) == null ? void 0 : f.restaurantCustomAttributes) ?? {};
|
|
2809
|
-
}), m =
|
|
2810
|
+
}), m = W(() => {
|
|
2810
2811
|
var f;
|
|
2811
2812
|
return ((f = r.modelValue.itemRule) == null ? void 0 : f.itemAttributes) ?? {};
|
|
2812
|
-
}), c =
|
|
2813
|
+
}), c = W(() => {
|
|
2813
2814
|
var f;
|
|
2814
2815
|
return ((f = r.modelValue.itemRule) == null ? void 0 : f.itemCustomAttributes) ?? {};
|
|
2815
|
-
}),
|
|
2816
|
+
}), g = oe([...(a.value.rules ?? []).map((f) => ({
|
|
2816
2817
|
...f,
|
|
2817
2818
|
id: crypto.randomUUID(),
|
|
2818
2819
|
property: `restaurant_attr_${f.property}`
|
|
@@ -2830,21 +2831,21 @@ const sa = {
|
|
|
2830
2831
|
property: `item_custom_${f.property}`
|
|
2831
2832
|
}))]);
|
|
2832
2833
|
vn(() => {
|
|
2833
|
-
|
|
2834
|
+
g.value.length === 0 && p();
|
|
2834
2835
|
});
|
|
2835
2836
|
const h = oe([]);
|
|
2836
2837
|
function O(f) {
|
|
2837
|
-
const
|
|
2838
|
+
const k = f.uniqueKey.split("_"), T = k[0] === "newCondition";
|
|
2838
2839
|
if (f.action === "delete")
|
|
2839
2840
|
if (T)
|
|
2840
|
-
h.value = h.value.filter((
|
|
2841
|
+
h.value = h.value.filter((y) => y.key !== f.uniqueKey);
|
|
2841
2842
|
else {
|
|
2842
|
-
const
|
|
2843
|
-
|
|
2843
|
+
const y = k.slice(1).join("_");
|
|
2844
|
+
g.value = g.value.filter((u) => u.id !== y);
|
|
2844
2845
|
}
|
|
2845
2846
|
else if (f.action === "update")
|
|
2846
2847
|
if (T)
|
|
2847
|
-
h.value = h.value.filter((
|
|
2848
|
+
h.value = h.value.filter((y) => y.key !== f.uniqueKey), g.value.push({
|
|
2848
2849
|
id: crypto.randomUUID(),
|
|
2849
2850
|
property: f.ruleKey,
|
|
2850
2851
|
operator: f.operator,
|
|
@@ -2852,9 +2853,9 @@ const sa = {
|
|
|
2852
2853
|
type: f.type
|
|
2853
2854
|
});
|
|
2854
2855
|
else {
|
|
2855
|
-
const
|
|
2856
|
-
u !== -1 && (
|
|
2857
|
-
id:
|
|
2856
|
+
const y = k.slice(1).join("_"), u = g.value.findIndex((b) => b.id === y);
|
|
2857
|
+
u !== -1 && (g.value[u] = {
|
|
2858
|
+
id: y,
|
|
2858
2859
|
// Keep the same ID
|
|
2859
2860
|
property: f.ruleKey,
|
|
2860
2861
|
operator: f.operator,
|
|
@@ -2862,48 +2863,48 @@ const sa = {
|
|
|
2862
2863
|
type: f.type
|
|
2863
2864
|
});
|
|
2864
2865
|
}
|
|
2865
|
-
o("update:modelValue",
|
|
2866
|
+
o("update:modelValue", g.value);
|
|
2866
2867
|
}
|
|
2867
2868
|
function p() {
|
|
2868
2869
|
h.value.push({
|
|
2869
2870
|
key: `newCondition_${h.value.length}`
|
|
2870
2871
|
});
|
|
2871
2872
|
}
|
|
2872
|
-
return Ze(() =>
|
|
2873
|
+
return Ze(() => g.value.length + h.value.length, (f) => {
|
|
2873
2874
|
f === 0 && p();
|
|
2874
|
-
}), (f,
|
|
2875
|
+
}), (f, k) => {
|
|
2875
2876
|
const T = pe("FmButton");
|
|
2876
|
-
return x(), j("div", ca, [V("p", ma, Z(K(n)("menu.rule_groups.condition_view.condition")), 1), V("div", fa, [(x(!0), j(de, null, Me(
|
|
2877
|
-
key:
|
|
2877
|
+
return x(), j("div", ca, [V("p", ma, Z(K(n)("menu.rule_groups.condition_view.condition")), 1), V("div", fa, [(x(!0), j(de, null, Me(g.value, (y) => (x(), j("div", {
|
|
2878
|
+
key: y.id
|
|
2878
2879
|
}, [X(bn, {
|
|
2879
|
-
ruleKey:
|
|
2880
|
-
operator:
|
|
2881
|
-
values:
|
|
2882
|
-
"unique-key": `condition_${
|
|
2883
|
-
"selected-keys":
|
|
2884
|
-
"onUpdate:modelValue":
|
|
2880
|
+
ruleKey: y.property,
|
|
2881
|
+
operator: y.operator,
|
|
2882
|
+
values: y.value,
|
|
2883
|
+
"unique-key": `condition_${y.id}`,
|
|
2884
|
+
"selected-keys": g.value.map((u) => u.property),
|
|
2885
|
+
"onUpdate:modelValue": k[0] || (k[0] = (u) => {
|
|
2885
2886
|
O(u);
|
|
2886
2887
|
})
|
|
2887
|
-
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (x(!0), j(de, null, Me(h.value, (
|
|
2888
|
-
key:
|
|
2888
|
+
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (x(!0), j(de, null, Me(h.value, (y) => (x(), j("div", {
|
|
2889
|
+
key: y.key
|
|
2889
2890
|
}, [X(bn, {
|
|
2890
2891
|
ruleKey: "",
|
|
2891
2892
|
operator: "",
|
|
2892
|
-
"unique-key":
|
|
2893
|
+
"unique-key": y.key,
|
|
2893
2894
|
values: [],
|
|
2894
|
-
"selected-keys":
|
|
2895
|
-
"onUpdate:modelValue":
|
|
2895
|
+
"selected-keys": g.value.map((u) => u.property),
|
|
2896
|
+
"onUpdate:modelValue": k[1] || (k[1] = (u) => {
|
|
2896
2897
|
O(u);
|
|
2897
2898
|
})
|
|
2898
2899
|
}, null, 8, ["unique-key", "selected-keys"])]))), 128)), X(T, {
|
|
2899
2900
|
variant: K(he).Plain,
|
|
2900
2901
|
"prepend-icon": "add",
|
|
2901
2902
|
label: K(n)("menu.rule_groups.condition_view.add_condition"),
|
|
2902
|
-
onClick:
|
|
2903
|
+
onClick: k[2] || (k[2] = se((y) => p(), ["stop"]))
|
|
2903
2904
|
}, null, 8, ["variant", "label"])])]);
|
|
2904
2905
|
};
|
|
2905
2906
|
}
|
|
2906
|
-
}), da = { class: "flex w-full items-center space-x-8" }, pa = { class: "w-24" }, Ea = { class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden" },
|
|
2907
|
+
}), da = { class: "flex w-full items-center space-x-8" }, pa = { class: "w-24" }, Ea = { class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden" }, ga = { class: "whitespace-nowrap" }, ya = { class: "fm-typo-en-body-lg-600 whitespace-nowrap" }, ba = /* @__PURE__ */ ie({
|
|
2907
2908
|
__name: "RuleConditionListView",
|
|
2908
2909
|
props: {
|
|
2909
2910
|
number: {
|
|
@@ -2930,7 +2931,7 @@ const sa = {
|
|
|
2930
2931
|
},
|
|
2931
2932
|
emits: ["open-catalog-link-item-rule-form", "open-rule-condition-form"],
|
|
2932
2933
|
setup(e, { emit: t }) {
|
|
2933
|
-
const { t: n } =
|
|
2934
|
+
const { t: n } = We(), r = {
|
|
2934
2935
|
$eq: n("menu.rule_groups.condition_view.operator.equals_to"),
|
|
2935
2936
|
$ne: n("menu.rule_groups.condition_view.operator.not_equals_to"),
|
|
2936
2937
|
$in: n("menu.rule_groups.condition_view.operator.in"),
|
|
@@ -2950,8 +2951,8 @@ const sa = {
|
|
|
2950
2951
|
return x(), j("div", da, [
|
|
2951
2952
|
V("p", pa, Z(e.number) + ".", 1),
|
|
2952
2953
|
V("div", Ea, [
|
|
2953
|
-
V("p",
|
|
2954
|
-
V("p",
|
|
2954
|
+
V("p", ga, Z(e.property), 1),
|
|
2955
|
+
V("p", ya, Z(r[e.operator]), 1),
|
|
2955
2956
|
X(i, {
|
|
2956
2957
|
trigger: "hover",
|
|
2957
2958
|
closeOnMouseLeave: ""
|
|
@@ -2978,10 +2979,10 @@ const sa = {
|
|
|
2978
2979
|
};
|
|
2979
2980
|
}
|
|
2980
2981
|
});
|
|
2981
|
-
function
|
|
2982
|
+
function Ja(e) {
|
|
2982
2983
|
return jn(e) ? Yn : xn.build(e);
|
|
2983
2984
|
}
|
|
2984
|
-
function
|
|
2985
|
+
function Qa(e) {
|
|
2985
2986
|
return Xn(e) ? null : Kn.build(e);
|
|
2986
2987
|
}
|
|
2987
2988
|
const va = {
|
|
@@ -3016,28 +3017,28 @@ const va = {
|
|
|
3016
3017
|
show: o,
|
|
3017
3018
|
trigger: a
|
|
3018
3019
|
});
|
|
3019
|
-
const c =
|
|
3020
|
+
const c = W(() => {
|
|
3020
3021
|
var T;
|
|
3021
3022
|
return ((T = i.modelValue.restaurantRule) == null ? void 0 : T.restaurantAttributes) ?? {};
|
|
3022
|
-
}),
|
|
3023
|
+
}), g = W(() => {
|
|
3023
3024
|
var T;
|
|
3024
3025
|
return ((T = i.modelValue.restaurantRule) == null ? void 0 : T.restaurantCustomAttributes) ?? {};
|
|
3025
|
-
}), h =
|
|
3026
|
+
}), h = W(() => {
|
|
3026
3027
|
var T;
|
|
3027
3028
|
return ((T = i.modelValue.itemRule) == null ? void 0 : T.itemAttributes) ?? {};
|
|
3028
|
-
}), O =
|
|
3029
|
+
}), O = W(() => {
|
|
3029
3030
|
var T;
|
|
3030
3031
|
return ((T = i.modelValue.itemRule) == null ? void 0 : T.itemCustomAttributes) ?? {};
|
|
3031
|
-
}), p = oe([...c.value.rules ?? [], ...
|
|
3032
|
-
function
|
|
3033
|
-
var E,
|
|
3034
|
-
const T = i.modelValue,
|
|
3032
|
+
}), p = oe([...c.value.rules ?? [], ...g.value.rules ?? [], ...h.value.rules ?? [], ...O.value.rules ?? []]), f = oe([]);
|
|
3033
|
+
function k() {
|
|
3034
|
+
var E, A, R, d, L, P, w, B;
|
|
3035
|
+
const T = i.modelValue, y = [], u = [], b = [], N = [];
|
|
3035
3036
|
if (f.value.length === 0) {
|
|
3036
3037
|
a(!1);
|
|
3037
3038
|
return;
|
|
3038
3039
|
}
|
|
3039
3040
|
f.value.forEach((C) => {
|
|
3040
|
-
C.property.startsWith("restaurant_attr") ?
|
|
3041
|
+
C.property.startsWith("restaurant_attr") ? y.push({
|
|
3041
3042
|
property: C.property.replace("restaurant_attr_", ""),
|
|
3042
3043
|
operator: C.operator,
|
|
3043
3044
|
value: C.value,
|
|
@@ -3060,11 +3061,11 @@ const va = {
|
|
|
3060
3061
|
});
|
|
3061
3062
|
}), T.restaurantRule = {
|
|
3062
3063
|
restaurantAttributes: {
|
|
3063
|
-
logic: ((
|
|
3064
|
-
rules:
|
|
3064
|
+
logic: ((A = (E = T.restaurantRule) == null ? void 0 : E.restaurantAttributes) == null ? void 0 : A.logic) ?? "AND",
|
|
3065
|
+
rules: y
|
|
3065
3066
|
},
|
|
3066
3067
|
restaurantCustomAttributes: {
|
|
3067
|
-
logic: ((d = (
|
|
3068
|
+
logic: ((d = (R = T.restaurantRule) == null ? void 0 : R.restaurantCustomAttributes) == null ? void 0 : d.logic) ?? "AND",
|
|
3068
3069
|
rules: u
|
|
3069
3070
|
}
|
|
3070
3071
|
}, T.itemRule = {
|
|
@@ -3073,32 +3074,32 @@ const va = {
|
|
|
3073
3074
|
rules: b
|
|
3074
3075
|
},
|
|
3075
3076
|
itemCustomAttributes: {
|
|
3076
|
-
logic: ((
|
|
3077
|
+
logic: ((B = (w = T.itemRule) == null ? void 0 : w.itemCustomAttributes) == null ? void 0 : B.logic) ?? "AND",
|
|
3077
3078
|
rules: N
|
|
3078
3079
|
}
|
|
3079
3080
|
}, a(!1), m("update:modelValue", {
|
|
3080
3081
|
menuRule: T
|
|
3081
3082
|
});
|
|
3082
3083
|
}
|
|
3083
|
-
return (T,
|
|
3084
|
+
return (T, y) => {
|
|
3084
3085
|
const u = pe("FmButton"), b = pe("FmSideSheet");
|
|
3085
3086
|
return x(), j(de, null, [Qe(T.$slots, "default", {
|
|
3086
3087
|
trigger: a
|
|
3087
3088
|
}), X(b, {
|
|
3088
3089
|
modelValue: o.value,
|
|
3089
|
-
"onUpdate:modelValue":
|
|
3090
|
+
"onUpdate:modelValue": y[3] || (y[3] = (N) => o.value = N),
|
|
3090
3091
|
"max-width": 760,
|
|
3091
3092
|
"close-button": !1,
|
|
3092
3093
|
"is-container": K(qn).FmForm,
|
|
3093
3094
|
"is-container-props": {
|
|
3094
|
-
onValidationSuccess:
|
|
3095
|
+
onValidationSuccess: k,
|
|
3095
3096
|
blameFormChildOnValidationFailed: !0
|
|
3096
3097
|
}
|
|
3097
3098
|
}, {
|
|
3098
3099
|
"side-sheet-header": ae(() => [V("div", va, [X(u, {
|
|
3099
3100
|
variant: K(he).Tertiary,
|
|
3100
3101
|
"prepend-icon": "arrow_back",
|
|
3101
|
-
onClick:
|
|
3102
|
+
onClick: y[0] || (y[0] = se((N) => a(), ["stop"]))
|
|
3102
3103
|
}, null, 8, ["variant"]), T.isEditMode && p.value.length > 0 ? (x(), j("div", ha, Z(K(r)("menu.rule_groups.condition_view.edit_condition")), 1)) : (x(), j("div", Ta, Z(K(r)("menu.rule_groups.condition_view.add_condition")), 1))])]),
|
|
3103
3104
|
"side-sheet-footer": ae(() => [V("div", Ia, [X(u, {
|
|
3104
3105
|
variant: "primary",
|
|
@@ -3107,12 +3108,12 @@ const va = {
|
|
|
3107
3108
|
}, null, 8, ["label"]), X(u, {
|
|
3108
3109
|
variant: "secondary",
|
|
3109
3110
|
label: K(r)("common.cancel"),
|
|
3110
|
-
onClick:
|
|
3111
|
+
onClick: y[2] || (y[2] = se((N) => a(!1), ["stop"]))
|
|
3111
3112
|
}, null, 8, ["label"])])]),
|
|
3112
3113
|
default: ae(() => [X(_a, {
|
|
3113
3114
|
class: "p-16",
|
|
3114
3115
|
"model-value": T.modelValue,
|
|
3115
|
-
"onUpdate:modelValue":
|
|
3116
|
+
"onUpdate:modelValue": y[1] || (y[1] = (N) => {
|
|
3116
3117
|
f.value = N;
|
|
3117
3118
|
})
|
|
3118
3119
|
}, null, 8, ["model-value"])]),
|
|
@@ -3120,9 +3121,9 @@ const va = {
|
|
|
3120
3121
|
}, 8, ["modelValue", "is-container", "is-container-props"])], 64);
|
|
3121
3122
|
};
|
|
3122
3123
|
}
|
|
3123
|
-
}),
|
|
3124
|
+
}), Aa = {
|
|
3124
3125
|
class: "flex items-center justify-between pb-8"
|
|
3125
|
-
},
|
|
3126
|
+
}, Ra = {
|
|
3126
3127
|
key: 0,
|
|
3127
3128
|
class: "text-fm-color-neutral-gray-300"
|
|
3128
3129
|
}, La = {
|
|
@@ -3131,9 +3132,9 @@ const va = {
|
|
|
3131
3132
|
class: "flex flex-col space-y-8"
|
|
3132
3133
|
}, Ca = {
|
|
3133
3134
|
class: "fm-typo-en-body-lg-600"
|
|
3134
|
-
}, Sa = {
|
|
3135
|
-
class: "flex items-center space-x-8"
|
|
3136
3135
|
}, ka = {
|
|
3136
|
+
class: "flex items-center space-x-8"
|
|
3137
|
+
}, Sa = {
|
|
3137
3138
|
class: "w-24"
|
|
3138
3139
|
}, Pa = {
|
|
3139
3140
|
class: "flex break-all fm-typo-en-body-lg-400 line-clamp-1 space-x-8"
|
|
@@ -3148,7 +3149,7 @@ const va = {
|
|
|
3148
3149
|
class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden"
|
|
3149
3150
|
}, Ua = {
|
|
3150
3151
|
class: "whitespace-nowrap"
|
|
3151
|
-
},
|
|
3152
|
+
}, Za = /* @__PURE__ */ ie({
|
|
3152
3153
|
__name: "RuleView",
|
|
3153
3154
|
props: {
|
|
3154
3155
|
modelValue: {
|
|
@@ -3179,29 +3180,29 @@ const va = {
|
|
|
3179
3180
|
}) {
|
|
3180
3181
|
const {
|
|
3181
3182
|
t: n
|
|
3182
|
-
} =
|
|
3183
|
+
} = We(), r = e, o = {
|
|
3183
3184
|
[bt.enum.ALL]: "ALL",
|
|
3184
3185
|
[bt.enum.POS_ONLY]: "POS ONLY",
|
|
3185
3186
|
[bt.enum.NONE]: "NONE"
|
|
3186
|
-
}, a = t, i = oe(), m =
|
|
3187
|
+
}, a = t, i = oe(), m = W(() => {
|
|
3187
3188
|
var p, f;
|
|
3188
3189
|
return ((f = (p = r.modelValue.restaurantRule) == null ? void 0 : p.restaurantAttributes) == null ? void 0 : f.rules) ?? [];
|
|
3189
|
-
}), c =
|
|
3190
|
+
}), c = W(() => {
|
|
3190
3191
|
var p, f;
|
|
3191
3192
|
return ((f = (p = r.modelValue.restaurantRule) == null ? void 0 : p.restaurantCustomAttributes) == null ? void 0 : f.rules) ?? [];
|
|
3192
|
-
}),
|
|
3193
|
+
}), g = W(() => {
|
|
3193
3194
|
var p, f;
|
|
3194
3195
|
return ((f = (p = r.modelValue.itemRule) == null ? void 0 : p.itemAttributes) == null ? void 0 : f.rules) ?? [];
|
|
3195
|
-
}), h =
|
|
3196
|
+
}), h = W(() => {
|
|
3196
3197
|
var p, f;
|
|
3197
3198
|
return ((f = (p = r.modelValue.itemRule) == null ? void 0 : p.itemCustomAttributes) == null ? void 0 : f.rules) ?? [];
|
|
3198
|
-
}), O =
|
|
3199
|
+
}), O = W(() => [...m.value.map((p) => ({
|
|
3199
3200
|
...p,
|
|
3200
3201
|
property: `${n("menu.catalog.usage.restaurant")} ${p.property}`
|
|
3201
3202
|
})), ...c.value.map((p) => ({
|
|
3202
3203
|
...p,
|
|
3203
3204
|
property: `${n("menu.catalog.usage.restaurant")} ${p.property}`
|
|
3204
|
-
})), ...
|
|
3205
|
+
})), ...g.value.map((p) => ({
|
|
3205
3206
|
...p,
|
|
3206
3207
|
property: `${n("menu.product.title")} ${p.property}`
|
|
3207
3208
|
})), ...h.value.map((p) => ({
|
|
@@ -3209,41 +3210,41 @@ const va = {
|
|
|
3209
3210
|
property: `${n("menu.product.title")} ${p.property}`
|
|
3210
3211
|
}))]);
|
|
3211
3212
|
return (p, f) => {
|
|
3212
|
-
const
|
|
3213
|
-
return x(), j(de, null, [V("div",
|
|
3213
|
+
const k = pe("FmButton"), T = pe("FmMenu");
|
|
3214
|
+
return x(), j(de, null, [V("div", Aa, [e.title ? (x(), j("p", Ra, Z(e.title), 1)) : Fe("", !0), V("div", La, [e.isCatalogLinkItemRuleView ? (x(), Bt(k, {
|
|
3214
3215
|
key: 1,
|
|
3215
3216
|
variant: K(he).Tertiary,
|
|
3216
3217
|
class: "cursor-pointer",
|
|
3217
3218
|
"prepend-icon": "edit",
|
|
3218
3219
|
"text-color": " text-fm-color-primary",
|
|
3219
|
-
onClick: f[1] || (f[1] = se((
|
|
3220
|
-
}, null, 8, ["variant"])) : (x(),
|
|
3220
|
+
onClick: f[1] || (f[1] = se((y) => e.isCatalogLinkItemRuleView ? p.$emit("open-catalog-link-item-rule-form") : null, ["stop"]))
|
|
3221
|
+
}, null, 8, ["variant"])) : (x(), Bt(Na, {
|
|
3221
3222
|
key: 0,
|
|
3222
3223
|
ref_key: "ruleFormRef",
|
|
3223
3224
|
ref: i,
|
|
3224
3225
|
"model-value": r.modelValue,
|
|
3225
3226
|
"is-edit-mode": !0,
|
|
3226
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
3227
|
-
a("update:model-value",
|
|
3227
|
+
"onUpdate:modelValue": f[0] || (f[0] = (y) => {
|
|
3228
|
+
a("update:model-value", y);
|
|
3228
3229
|
})
|
|
3229
3230
|
}, {
|
|
3230
3231
|
default: ae(({
|
|
3231
|
-
trigger:
|
|
3232
|
-
}) => [X(
|
|
3232
|
+
trigger: y
|
|
3233
|
+
}) => [X(k, {
|
|
3233
3234
|
variant: K(he).Tertiary,
|
|
3234
3235
|
class: "cursor-pointer",
|
|
3235
3236
|
"prepend-icon": "edit",
|
|
3236
3237
|
"text-color": " text-fm-color-primary",
|
|
3237
|
-
onClick: se((u) =>
|
|
3238
|
+
onClick: se((u) => y(), ["stop"])
|
|
3238
3239
|
}, null, 8, ["variant", "onClick"])]),
|
|
3239
3240
|
_: 1
|
|
3240
|
-
}, 8, ["model-value"])), X(
|
|
3241
|
+
}, 8, ["model-value"])), X(k, {
|
|
3241
3242
|
variant: K(he).Tertiary,
|
|
3242
3243
|
class: "cursor-pointer",
|
|
3243
3244
|
"prepend-icon": "file_copy",
|
|
3244
3245
|
"text-color": " text-fm-color-primary",
|
|
3245
|
-
onClick: f[2] || (f[2] = se((
|
|
3246
|
-
}, null, 8, ["variant"]), X(
|
|
3246
|
+
onClick: f[2] || (f[2] = se((y) => p.$emit("copy-rule", r.modelValue._id), ["stop"]))
|
|
3247
|
+
}, null, 8, ["variant"]), X(k, {
|
|
3247
3248
|
variant: K(he).Tertiary,
|
|
3248
3249
|
class: "cursor-pointer",
|
|
3249
3250
|
"prepend-icon": "delete",
|
|
@@ -3251,9 +3252,9 @@ const va = {
|
|
|
3251
3252
|
onClick: f[3] || (f[3] = se(() => a("delete-rule", r.modelValue._id), ["stop"]))
|
|
3252
3253
|
}, null, 8, ["variant"])])]), V("div", Oa, [V("p", Ca, Z(K(n)("menu.rule_groups.condition_view.when")), 1), e.ruleGroupNames ? (x(!0), j(de, {
|
|
3253
3254
|
key: 0
|
|
3254
|
-
}, Me(e.ruleGroupNames, (
|
|
3255
|
-
key:
|
|
3256
|
-
}, [V("div",
|
|
3255
|
+
}, Me(e.ruleGroupNames, (y, u) => (x(), j("div", {
|
|
3256
|
+
key: y
|
|
3257
|
+
}, [V("div", ka, [V("p", Sa, Z(u + 1) + ".", 1), V("div", Pa, [V("p", null, Z(K(n)("menu.rule_groups.condition_view.in_rule_group")), 1), X(T, {
|
|
3257
3258
|
trigger: "hover",
|
|
3258
3259
|
closeOnMouseLeave: ""
|
|
3259
3260
|
}, {
|
|
@@ -3262,18 +3263,18 @@ const va = {
|
|
|
3262
3263
|
ref: "valueTextRef",
|
|
3263
3264
|
onClick: f[4] || (f[4] = se((b) => e.isCatalogLinkItemRuleView ? p.$emit("open-catalog-link-item-rule-form") : null, ["stop"])),
|
|
3264
3265
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate"
|
|
3265
|
-
}, Z(
|
|
3266
|
-
default: ae(() => [V("p", Da, Z(
|
|
3266
|
+
}, Z(y), 513)]),
|
|
3267
|
+
default: ae(() => [V("p", Da, Z(y), 1)]),
|
|
3267
3268
|
_: 2
|
|
3268
|
-
}, 1024)])])]))), 128)) : Fe("", !0), (x(!0), j(de, null, Me(O.value, (
|
|
3269
|
+
}, 1024)])])]))), 128)) : Fe("", !0), (x(!0), j(de, null, Me(O.value, (y, u) => {
|
|
3269
3270
|
var b;
|
|
3270
3271
|
return x(), j("div", {
|
|
3271
|
-
key:
|
|
3272
|
+
key: y.property
|
|
3272
3273
|
}, [X(ba, {
|
|
3273
3274
|
number: u + (((b = e.ruleGroupNames) == null ? void 0 : b.length) ?? 0) + 1,
|
|
3274
|
-
property:
|
|
3275
|
-
operator:
|
|
3276
|
-
value:
|
|
3275
|
+
property: y.property,
|
|
3276
|
+
operator: y.operator,
|
|
3277
|
+
value: y.value,
|
|
3277
3278
|
isCatalogLinkItemRuleView: e.isCatalogLinkItemRuleView,
|
|
3278
3279
|
onOpenCatalogLinkItemRuleForm: f[5] || (f[5] = (N) => p.$emit("open-catalog-link-item-rule-form")),
|
|
3279
3280
|
onOpenRuleConditionForm: f[6] || (f[6] = (N) => {
|
|
@@ -3285,21 +3286,21 @@ const va = {
|
|
|
3285
3286
|
class: "fm-typo-en-body-lg-600 text-fm-color-neutral-gray-300"
|
|
3286
3287
|
}, "is", -1)), V("p", {
|
|
3287
3288
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate",
|
|
3288
|
-
onClick: f[7] || (f[7] = se((
|
|
3289
|
+
onClick: f[7] || (f[7] = se((y) => e.isCatalogLinkItemRuleView ? p.$emit("open-catalog-link-item-rule-form") : null, ["stop"]))
|
|
3289
3290
|
}, Z(o[e.orderFrom]), 1)])])) : Fe("", !0)], 64);
|
|
3290
3291
|
};
|
|
3291
3292
|
}
|
|
3292
3293
|
});
|
|
3293
3294
|
export {
|
|
3294
|
-
|
|
3295
|
+
ja as _,
|
|
3295
3296
|
Jn as a,
|
|
3296
|
-
|
|
3297
|
-
|
|
3297
|
+
qa as b,
|
|
3298
|
+
Za as c,
|
|
3298
3299
|
Na as d,
|
|
3299
|
-
|
|
3300
|
-
|
|
3300
|
+
Xa as e,
|
|
3301
|
+
Qa as f,
|
|
3301
3302
|
ba as g,
|
|
3302
3303
|
_a as h,
|
|
3303
|
-
|
|
3304
|
-
|
|
3304
|
+
Ja as m,
|
|
3305
|
+
We as u
|
|
3305
3306
|
};
|