@feedmepos/mf-menu 0.32.61-dev.3 → 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-TgWTfhbY.js → App-DhfTGlgM.js} +466 -461
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BeW-aCRL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C8il14gy.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
- package/dist/{Catalog-hnhpn9Of.js → Catalog-WuZJfM6l.js} +78 -78
- package/dist/{Category-DIubPG8Y.js → Category-BeIo7XWY.js} +20 -20
- package/dist/{Category-wXfspM5v.js → Category-D-cQQCPS.js} +19 -19
- package/dist/{CookingGuide-CR1cBZ3S.js → CookingGuide-B-yvD9ZA.js} +88 -88
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DlpZfbx-.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
- package/dist/{Group-DbG3cLfp.js → Group-13i5igrS.js} +5 -5
- package/dist/{Group-DTzbprcr.js → Group-CY8lUzQG.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CMEdW613.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-aLcNgJLb.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CnChdePY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
- package/dist/{Ingredient-BBGzGfS2.js → Ingredient-vrUOW6gk.js} +49 -49
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B9CfZ7oA.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
- package/dist/{LinkProductSideSheet-CLd4LEy4.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
- package/dist/{MenuSetting-BuS9_e0y.js → MenuSetting-Di2xwm00.js} +10 -10
- package/dist/{OrderPacing-2QPouAql.js → OrderPacing-CCe-IcGO.js} +28 -28
- package/dist/{PrintRoute-D-SiyoaP.js → PrintRoute-CcfObcHY.js} +27 -27
- package/dist/{Product-nmlc3rrr.js → Product-ChUVnMgG.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DYn_bqcn.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
- package/dist/{ProductInternalTools-BgDSe1XP.js → ProductInternalTools-D9HXhgo5.js} +80 -79
- package/dist/{Products-BPa6wC-o.js → Products-Bly2ktEC.js} +82 -81
- package/dist/{Publish-DbI1wemN.js → Publish-C8ubb8Qf.js} +113 -113
- package/dist/{Recipe-CAgscHCL.js → Recipe-BpMRLsyO.js} +32 -32
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DNG5WX4W.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DNk48PUl.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +313 -312
- package/dist/{Scheduler-C8TXHcb2.js → Scheduler-CiB4b2Fn.js} +9 -9
- package/dist/{ServingSequence-CQzQWvUA.js → ServingSequence-BlcyW-dv.js} +18 -18
- package/dist/{Setting-gun4ZUQ4.js → Setting-DqkL6YYU.js} +31 -31
- package/dist/{Subcategory-CqcWpp94.js → Subcategory-B4Jg_wtT.js} +43 -43
- package/dist/{Takeaway-DV_ND3Ts.js → Takeaway-5G3f7jWT.js} +1 -1
- package/dist/{Takeaway-DsRU9wBO.js → Takeaway-5rFPYYNA.js} +16 -16
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-GMA7-Hrb.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DAwsbPs4.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DYVBVDBy.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-BcPn6opY.js → Unit-CAkdmQLg.js} +2 -2
- package/dist/{Variant-Wkd9mHWk.js → Variant-BbLQqbAK.js} +13 -13
- package/dist/{_id_-CuOgqnZ3.js → _id_-Dzacr40I.js} +13 -13
- package/dist/{app-BsNMWUZ9.js → app-4yWs09Fr.js} +495 -495
- package/dist/{app-kS8tUq_w.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-CHvHJGH9.js → linked-status-B2WLhKkV.js} +4 -4
- package/dist/assets/{menu-export-Bd2A9o3e.js → menu-export-Dcw5a_dN.js} +3 -3
- package/dist/assets/{override-menu-cifFGmrk.js → override-menu-cBe2aMY6.js} +4 -4
- package/dist/assets/{validate-menu-B8cp1kCt.js → validate-menu-BM-5GK85.js} +3 -3
- package/dist/{catalog-BxfmkFrE.js → catalog-DKygS2Cs.js} +6 -6
- package/dist/{catalogSetting-ebS4mr1i.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-CUrfs4iN.js → index-B48KLyqg.js} +61 -61
- package/dist/{index-BxvnAb0l.js → index-BEocaqRK.js} +30 -30
- package/dist/index-K-MBqJJo.js +222 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-C3c2B-qJ.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-DccvCJln.js → jszip.min-Cc2eR4Cq.js} +52 -52
- package/dist/linkProducts-GNuUxFEE.js +331 -0
- package/dist/{memberPricing-FatZi_6k.js → memberPricing-T-jr7tn1.js} +1 -1
- package/dist/{menu-DcPMF0nf.js → menu-DSDRAil-.js} +1 -1
- package/dist/{menuV2-CVo-19H-.js → menuV2-fTlJdjxi.js} +89 -87
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-CWDYwJcW.js → order_pacing-Dgo1fySS.js} +17 -17
- package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
- package/dist/{priceTier-C58Ixr5m.js → priceTier-aT_gIfrN.js} +3 -3
- package/dist/{rules-DwomOoC9.js → rules-Cx2hkV20.js} +8 -8
- package/dist/{scheduler-CJcxPgeF.js → scheduler-Bd-q7yF8.js} +62 -62
- package/dist/{toExcel-DjWt9SEm.js → toExcel-qfjR83qT.js} +2 -2
- package/dist/{unit-KhTILQfe.js → unit-n1T9grbM.js} +64 -64
- package/package.json +3 -3
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-C5hn1NYM.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BFUOqfDO.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-BM5m7MDE.js +0 -7
- package/dist/dayjs.min-X4vHGjJn.js +0 -7
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-CisutoS9.js +0 -156
- package/dist/item-26-Gw7Ug.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 W, watch as Ze, onMounted as
|
|
1
|
+
import { defineComponent as ie, createElementBlock as j, openBlock as x, normalizeClass as Pt, renderSlot as Qe, createCommentVNode as Fe, createVNode as X, createElementVNode as V, toDisplayString as Z, withCtx as ae, getCurrentInstance as Dt, inject as Hn, ref as oe, shallowRef as Gn, computed as W, watch as Ze, onMounted as vn, onUnmounted as Wn, h as hn, Text as Bn, Fragment as 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,8 +121,8 @@ 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, g = (d) => t[d] === _r, h = (d) => i(d) || m(d) || c(d) || g(d), O = () => n, p = () => r, f = () => o,
|
|
124
|
-
function
|
|
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);
|
|
125
|
+
function b() {
|
|
125
126
|
return a = 0, h(n) && (r++, o = 0), i(n) && n++, n++, o++, t[n];
|
|
126
127
|
}
|
|
127
128
|
function N() {
|
|
@@ -136,18 +137,18 @@ function pr(e) {
|
|
|
136
137
|
function R() {
|
|
137
138
|
const d = n + a;
|
|
138
139
|
for (; d !== n; )
|
|
139
|
-
|
|
140
|
+
b();
|
|
140
141
|
a = 0;
|
|
141
142
|
}
|
|
142
143
|
return {
|
|
143
144
|
index: O,
|
|
144
145
|
line: p,
|
|
145
146
|
column: f,
|
|
146
|
-
peekOffset:
|
|
147
|
+
peekOffset: k,
|
|
147
148
|
charAt: T,
|
|
148
149
|
currentChar: y,
|
|
149
150
|
currentPeek: u,
|
|
150
|
-
next:
|
|
151
|
+
next: b,
|
|
151
152
|
peek: N,
|
|
152
153
|
reset: E,
|
|
153
154
|
resetPeek: A,
|
|
@@ -169,9 +170,9 @@ function yr(e, t = {}) {
|
|
|
169
170
|
inLinked: !1,
|
|
170
171
|
text: ""
|
|
171
172
|
}, g = () => c, { onError: h } = t;
|
|
172
|
-
function O(s, l,
|
|
173
|
+
function O(s, l, v, ...D) {
|
|
173
174
|
const q = g();
|
|
174
|
-
if (l.column +=
|
|
175
|
+
if (l.column += v, l.offset += v, h) {
|
|
175
176
|
const F = n ? It(q.startLoc, l) : null, _ = nt(s, F, {
|
|
176
177
|
domain: gr,
|
|
177
178
|
args: D
|
|
@@ -179,17 +180,17 @@ function yr(e, t = {}) {
|
|
|
179
180
|
h(_);
|
|
180
181
|
}
|
|
181
182
|
}
|
|
182
|
-
function p(s, l,
|
|
183
|
+
function p(s, l, v) {
|
|
183
184
|
s.endLoc = a(), s.currentType = l;
|
|
184
185
|
const D = { type: l };
|
|
185
|
-
return n && (D.loc = It(s.startLoc, s.endLoc)),
|
|
186
|
+
return n && (D.loc = It(s.startLoc, s.endLoc)), v != null && (D.value = v), D;
|
|
186
187
|
}
|
|
187
188
|
const f = (s) => p(
|
|
188
189
|
s,
|
|
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) {
|
|
@@ -210,63 +211,63 @@ function yr(e, t = {}) {
|
|
|
210
211
|
l >= 65 && l <= 90 || // A-Z
|
|
211
212
|
l === 95;
|
|
212
213
|
}
|
|
213
|
-
function
|
|
214
|
+
function b(s) {
|
|
214
215
|
if (s === ge)
|
|
215
216
|
return !1;
|
|
216
217
|
const l = s.charCodeAt(0);
|
|
217
218
|
return l >= 48 && l <= 57;
|
|
218
219
|
}
|
|
219
220
|
function N(s, l) {
|
|
220
|
-
const { currentType:
|
|
221
|
-
if (
|
|
221
|
+
const { currentType: v } = l;
|
|
222
|
+
if (v !== 2)
|
|
222
223
|
return !1;
|
|
223
224
|
T(s);
|
|
224
225
|
const D = u(s.currentPeek());
|
|
225
226
|
return s.resetPeek(), D;
|
|
226
227
|
}
|
|
227
228
|
function E(s, l) {
|
|
228
|
-
const { currentType:
|
|
229
|
-
if (
|
|
229
|
+
const { currentType: v } = l;
|
|
230
|
+
if (v !== 2)
|
|
230
231
|
return !1;
|
|
231
232
|
T(s);
|
|
232
|
-
const D = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), q =
|
|
233
|
+
const D = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), q = b(D);
|
|
233
234
|
return s.resetPeek(), q;
|
|
234
235
|
}
|
|
235
236
|
function A(s, l) {
|
|
236
|
-
const { currentType:
|
|
237
|
-
if (
|
|
237
|
+
const { currentType: v } = l;
|
|
238
|
+
if (v !== 2)
|
|
238
239
|
return !1;
|
|
239
240
|
T(s);
|
|
240
241
|
const D = s.currentPeek() === qt;
|
|
241
242
|
return s.resetPeek(), D;
|
|
242
243
|
}
|
|
243
244
|
function R(s, l) {
|
|
244
|
-
const { currentType:
|
|
245
|
-
if (
|
|
245
|
+
const { currentType: v } = l;
|
|
246
|
+
if (v !== 7)
|
|
246
247
|
return !1;
|
|
247
248
|
T(s);
|
|
248
249
|
const D = s.currentPeek() === ".";
|
|
249
250
|
return s.resetPeek(), D;
|
|
250
251
|
}
|
|
251
252
|
function d(s, l) {
|
|
252
|
-
const { currentType:
|
|
253
|
-
if (
|
|
253
|
+
const { currentType: v } = l;
|
|
254
|
+
if (v !== 8)
|
|
254
255
|
return !1;
|
|
255
256
|
T(s);
|
|
256
257
|
const D = u(s.currentPeek());
|
|
257
258
|
return s.resetPeek(), D;
|
|
258
259
|
}
|
|
259
260
|
function L(s, l) {
|
|
260
|
-
const { currentType:
|
|
261
|
-
if (!(
|
|
261
|
+
const { currentType: v } = l;
|
|
262
|
+
if (!(v === 7 || v === 11))
|
|
262
263
|
return !1;
|
|
263
264
|
T(s);
|
|
264
265
|
const D = s.currentPeek() === ":";
|
|
265
266
|
return s.resetPeek(), D;
|
|
266
267
|
}
|
|
267
268
|
function P(s, l) {
|
|
268
|
-
const { currentType:
|
|
269
|
-
if (
|
|
269
|
+
const { currentType: v } = l;
|
|
270
|
+
if (v !== 9)
|
|
270
271
|
return !1;
|
|
271
272
|
const D = () => {
|
|
272
273
|
const F = s.currentPeek();
|
|
@@ -280,15 +281,15 @@ function yr(e, t = {}) {
|
|
|
280
281
|
return s.resetPeek(), l;
|
|
281
282
|
}
|
|
282
283
|
function B(s, l = !0) {
|
|
283
|
-
const
|
|
284
|
+
const v = (q = !1, F = "") => {
|
|
284
285
|
const _ = s.currentPeek();
|
|
285
|
-
return _ === "{" || _ === "@" || !_ ? q : _ === "|" ? !(F === me || F === ne) : _ === me ? (s.peek(),
|
|
286
|
-
}, D =
|
|
286
|
+
return _ === "{" || _ === "@" || !_ ? q : _ === "|" ? !(F === me || F === ne) : _ === me ? (s.peek(), v(!0, me)) : _ === ne ? (s.peek(), v(!0, ne)) : !0;
|
|
287
|
+
}, D = v();
|
|
287
288
|
return l && s.resetPeek(), D;
|
|
288
289
|
}
|
|
289
290
|
function C(s, l) {
|
|
290
|
-
const
|
|
291
|
-
return
|
|
291
|
+
const v = s.currentChar();
|
|
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);
|
|
@@ -330,36 +331,36 @@ function yr(e, t = {}) {
|
|
|
330
331
|
return C(s, ce);
|
|
331
332
|
}
|
|
332
333
|
function xe(s) {
|
|
333
|
-
let l = "",
|
|
334
|
+
let l = "", v = "";
|
|
334
335
|
for (; l = ut(s); )
|
|
335
|
-
|
|
336
|
-
return
|
|
336
|
+
v += l;
|
|
337
|
+
return v;
|
|
337
338
|
}
|
|
338
339
|
function it(s) {
|
|
339
340
|
let l = "";
|
|
340
341
|
for (; ; ) {
|
|
341
|
-
const
|
|
342
|
-
if (
|
|
342
|
+
const v = s.currentChar();
|
|
343
|
+
if (v === "{" || v === "}" || v === "@" || v === "|" || !v)
|
|
343
344
|
break;
|
|
344
|
-
if (
|
|
345
|
+
if (v === me || v === ne)
|
|
345
346
|
if (B(s))
|
|
346
|
-
l +=
|
|
347
|
+
l += v, s.next();
|
|
347
348
|
else {
|
|
348
349
|
if (w(s))
|
|
349
350
|
break;
|
|
350
|
-
l +=
|
|
351
|
+
l += v, s.next();
|
|
351
352
|
}
|
|
352
353
|
else
|
|
353
|
-
l +=
|
|
354
|
+
l += v, s.next();
|
|
354
355
|
}
|
|
355
356
|
return l;
|
|
356
357
|
}
|
|
357
358
|
function ct(s) {
|
|
358
359
|
y(s);
|
|
359
|
-
let l = "",
|
|
360
|
+
let l = "", v = "";
|
|
360
361
|
for (; l = st(s); )
|
|
361
|
-
|
|
362
|
-
return s.currentChar() === ge && O($.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
362
|
+
v += l;
|
|
363
|
+
return s.currentChar() === ge && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), v;
|
|
363
364
|
}
|
|
364
365
|
function mt(s) {
|
|
365
366
|
y(s);
|
|
@@ -370,12 +371,12 @@ function yr(e, t = {}) {
|
|
|
370
371
|
return s !== qt && s !== ne;
|
|
371
372
|
}
|
|
372
373
|
function ft(s) {
|
|
373
|
-
y(s),
|
|
374
|
-
let l = "",
|
|
374
|
+
y(s), k(s, "'");
|
|
375
|
+
let l = "", v = "";
|
|
375
376
|
for (; l = C(s, Wt); )
|
|
376
|
-
l === "\\" ?
|
|
377
|
+
l === "\\" ? v += _t(s) : v += l;
|
|
377
378
|
const D = s.currentChar();
|
|
378
|
-
return D === ne || D === ge ? (O($.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), D === ne && (s.next(),
|
|
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();
|
|
@@ -391,10 +392,10 @@ function yr(e, t = {}) {
|
|
|
391
392
|
return O($.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, l), "";
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
|
-
function Ke(s, l,
|
|
395
|
-
|
|
395
|
+
function Ke(s, l, v) {
|
|
396
|
+
k(s, l);
|
|
396
397
|
let D = "";
|
|
397
|
-
for (let q = 0; q <
|
|
398
|
+
for (let q = 0; q < v; q++) {
|
|
398
399
|
const F = Be(s);
|
|
399
400
|
if (!F) {
|
|
400
401
|
O($.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${l}${D}${s.currentChar()}`);
|
|
@@ -409,27 +410,27 @@ function yr(e, t = {}) {
|
|
|
409
410
|
}
|
|
410
411
|
function pt(s) {
|
|
411
412
|
y(s);
|
|
412
|
-
let l = "",
|
|
413
|
+
let l = "", v = "";
|
|
413
414
|
for (; l = C(s, dt); )
|
|
414
|
-
|
|
415
|
-
return
|
|
415
|
+
v += l;
|
|
416
|
+
return v;
|
|
416
417
|
}
|
|
417
418
|
function Et(s) {
|
|
418
|
-
let l = "",
|
|
419
|
+
let l = "", v = "";
|
|
419
420
|
for (; l = ot(s); )
|
|
420
|
-
|
|
421
|
-
return
|
|
421
|
+
v += l;
|
|
422
|
+
return v;
|
|
422
423
|
}
|
|
423
424
|
function gt(s) {
|
|
424
|
-
const l = (
|
|
425
|
+
const l = (v) => {
|
|
425
426
|
const D = s.currentChar();
|
|
426
|
-
return D === "{" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === me ?
|
|
427
|
+
return D === "{" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === me ? v : (v += D, s.next(), l(v));
|
|
427
428
|
};
|
|
428
429
|
return l("");
|
|
429
430
|
}
|
|
430
431
|
function Pe(s) {
|
|
431
432
|
y(s);
|
|
432
|
-
const l =
|
|
433
|
+
const l = k(
|
|
433
434
|
s,
|
|
434
435
|
"|"
|
|
435
436
|
/* TokenChars.Pipe */
|
|
@@ -437,48 +438,48 @@ function yr(e, t = {}) {
|
|
|
437
438
|
return y(s), l;
|
|
438
439
|
}
|
|
439
440
|
function Ae(s, l) {
|
|
440
|
-
let
|
|
441
|
+
let v = null;
|
|
441
442
|
switch (s.currentChar()) {
|
|
442
443
|
case "{":
|
|
443
|
-
return l.braceNest >= 1 && O($.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(),
|
|
444
|
+
return l.braceNest >= 1 && O($.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), v = p(
|
|
444
445
|
l,
|
|
445
446
|
2,
|
|
446
447
|
"{"
|
|
447
448
|
/* TokenChars.BraceLeft */
|
|
448
|
-
), y(s), l.braceNest++,
|
|
449
|
+
), y(s), l.braceNest++, v;
|
|
449
450
|
case "}":
|
|
450
|
-
return l.braceNest > 0 && l.currentType === 2 && O($.EMPTY_PLACEHOLDER, a(), 0), s.next(),
|
|
451
|
+
return l.braceNest > 0 && l.currentType === 2 && O($.EMPTY_PLACEHOLDER, a(), 0), s.next(), v = p(
|
|
451
452
|
l,
|
|
452
453
|
3,
|
|
453
454
|
"}"
|
|
454
455
|
/* TokenChars.BraceRight */
|
|
455
|
-
), l.braceNest--, l.braceNest > 0 && y(s), l.inLinked && l.braceNest === 0 && (l.inLinked = !1),
|
|
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),
|
|
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))
|
|
461
|
-
return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0),
|
|
462
|
+
return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), v = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, v;
|
|
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
|
|
466
|
+
return v = p(l, 4, ct(s)), y(s), v;
|
|
466
467
|
if (F = E(s, l))
|
|
467
|
-
return
|
|
468
|
+
return v = p(l, 5, mt(s)), y(s), v;
|
|
468
469
|
if (_ = A(s, l))
|
|
469
|
-
return
|
|
470
|
+
return v = p(l, 6, ft(s)), y(s), v;
|
|
470
471
|
if (!q && !F && !_)
|
|
471
|
-
return
|
|
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
|
-
return
|
|
476
|
+
return v;
|
|
476
477
|
}
|
|
477
478
|
function Re(s, l) {
|
|
478
|
-
const { currentType:
|
|
479
|
+
const { currentType: v } = l;
|
|
479
480
|
let D = null;
|
|
480
481
|
const q = s.currentChar();
|
|
481
|
-
switch ((
|
|
482
|
+
switch ((v === 7 || v === 8 || v === 11 || v === 9) && (q === ne || q === me) && O($.INVALID_LINKED_FORMAT, a(), 0), q) {
|
|
482
483
|
case "@":
|
|
483
484
|
return s.next(), D = p(
|
|
484
485
|
l,
|
|
@@ -501,11 +502,11 @@ function yr(e, t = {}) {
|
|
|
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) : 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))) : (
|
|
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) {
|
|
508
|
-
let
|
|
509
|
+
let v = {
|
|
509
510
|
type: 13
|
|
510
511
|
/* TokenTypes.EOF */
|
|
511
512
|
};
|
|
@@ -527,17 +528,17 @@ function yr(e, t = {}) {
|
|
|
527
528
|
return Re(s, l) || f(l);
|
|
528
529
|
default: {
|
|
529
530
|
if (w(s))
|
|
530
|
-
return
|
|
531
|
+
return v = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, v;
|
|
531
532
|
if (B(s))
|
|
532
533
|
return p(l, 0, it(s));
|
|
533
534
|
break;
|
|
534
535
|
}
|
|
535
536
|
}
|
|
536
|
-
return
|
|
537
|
+
return v;
|
|
537
538
|
}
|
|
538
539
|
function yt() {
|
|
539
|
-
const { currentType: s, offset: l, startLoc:
|
|
540
|
-
return c.lastType = s, c.lastOffset = l, c.lastStartLoc =
|
|
540
|
+
const { currentType: s, offset: l, startLoc: v, endLoc: D } = c;
|
|
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 */
|
|
@@ -550,7 +551,7 @@ function yr(e, t = {}) {
|
|
|
550
551
|
context: g
|
|
551
552
|
};
|
|
552
553
|
}
|
|
553
|
-
const
|
|
554
|
+
const br = "parser", vr = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
554
555
|
function hr(e, t, n) {
|
|
555
556
|
switch (e) {
|
|
556
557
|
case "\\\\":
|
|
@@ -566,74 +567,74 @@ 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,
|
|
570
|
+
function r(u, b, N, E, ...A) {
|
|
570
571
|
const R = u.currentPosition();
|
|
571
572
|
if (R.offset += E, R.column += E, n) {
|
|
572
|
-
const d = t ? It(N, R) : null, L = nt(
|
|
573
|
-
domain:
|
|
573
|
+
const d = t ? It(N, R) : null, L = nt(b, d, {
|
|
574
|
+
domain: br,
|
|
574
575
|
args: A
|
|
575
576
|
});
|
|
576
577
|
n(L);
|
|
577
578
|
}
|
|
578
579
|
}
|
|
579
|
-
function o(u,
|
|
580
|
+
function o(u, b, N) {
|
|
580
581
|
const E = { type: u };
|
|
581
|
-
return t && (E.start =
|
|
582
|
+
return t && (E.start = b, E.end = b, E.loc = { start: N, end: N }), E;
|
|
582
583
|
}
|
|
583
|
-
function a(u,
|
|
584
|
-
t && (u.end =
|
|
584
|
+
function a(u, b, N, E) {
|
|
585
|
+
t && (u.end = b, u.loc && (u.loc.end = N));
|
|
585
586
|
}
|
|
586
|
-
function i(u,
|
|
587
|
+
function i(u, b) {
|
|
587
588
|
const N = u.context(), E = o(3, N.offset, N.startLoc);
|
|
588
|
-
return E.value =
|
|
589
|
+
return E.value = b, a(E, u.currentOffset(), u.currentPosition()), E;
|
|
589
590
|
}
|
|
590
|
-
function m(u,
|
|
591
|
+
function m(u, b) {
|
|
591
592
|
const N = u.context(), { lastOffset: E, lastStartLoc: A } = N, R = o(5, E, A);
|
|
592
|
-
return R.index = parseInt(
|
|
593
|
+
return R.index = parseInt(b, 10), u.nextToken(), a(R, u.currentOffset(), u.currentPosition()), R;
|
|
593
594
|
}
|
|
594
|
-
function c(u,
|
|
595
|
+
function c(u, b) {
|
|
595
596
|
const N = u.context(), { lastOffset: E, lastStartLoc: A } = N, R = o(4, E, A);
|
|
596
|
-
return R.key =
|
|
597
|
+
return R.key = b, u.nextToken(), a(R, u.currentOffset(), u.currentPosition()), R;
|
|
597
598
|
}
|
|
598
|
-
function g(u,
|
|
599
|
+
function g(u, b) {
|
|
599
600
|
const N = u.context(), { lastOffset: E, lastStartLoc: A } = N, R = o(9, E, A);
|
|
600
|
-
return R.value =
|
|
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
|
|
604
|
-
return
|
|
605
|
-
nextConsumeToken:
|
|
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), {
|
|
606
|
+
nextConsumeToken: b,
|
|
606
607
|
node: R
|
|
607
|
-
}) : (
|
|
608
|
+
}) : (b.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, ue(b)), R.value = b.value || "", a(R, u.currentOffset(), u.currentPosition()), {
|
|
608
609
|
node: R
|
|
609
610
|
});
|
|
610
611
|
}
|
|
611
|
-
function O(u,
|
|
612
|
+
function O(u, b) {
|
|
612
613
|
const N = u.context(), E = o(7, N.offset, N.startLoc);
|
|
613
|
-
return E.value =
|
|
614
|
+
return E.value = b, a(E, u.currentOffset(), u.currentPosition()), E;
|
|
614
615
|
}
|
|
615
616
|
function p(u) {
|
|
616
|
-
const
|
|
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
620
|
const A = h(u);
|
|
620
621
|
N.modifier = A.node, E = A.nextConsumeToken || u.nextToken();
|
|
621
622
|
}
|
|
622
|
-
switch (E.type !== 9 && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
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:
|
|
624
|
-
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
625
|
+
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(E)), N.key = O(u, E.value || "");
|
|
625
626
|
break;
|
|
626
627
|
case 4:
|
|
627
|
-
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
628
|
+
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, ue(E)), N.key = c(u, E.value || "");
|
|
628
629
|
break;
|
|
629
630
|
case 5:
|
|
630
|
-
E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
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,
|
|
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
|
-
r(u, $.UNEXPECTED_EMPTY_LINKED_KEY,
|
|
637
|
+
r(u, $.UNEXPECTED_EMPTY_LINKED_KEY, b.lastStartLoc, 0);
|
|
637
638
|
const A = u.context(), R = o(7, A.offset, A.startLoc);
|
|
638
639
|
return R.value = "", a(R, A.offset, A.startLoc), N.key = R, a(N, A.offset, A.startLoc), {
|
|
639
640
|
nextConsumeToken: E,
|
|
@@ -646,23 +647,23 @@ function Tr(e = {}) {
|
|
|
646
647
|
};
|
|
647
648
|
}
|
|
648
649
|
function f(u) {
|
|
649
|
-
const
|
|
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);
|
|
650
651
|
A.items = [];
|
|
651
652
|
let R = null;
|
|
652
653
|
do {
|
|
653
654
|
const P = R || u.nextToken();
|
|
654
655
|
switch (R = null, P.type) {
|
|
655
656
|
case 0:
|
|
656
|
-
P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
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,
|
|
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,
|
|
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,
|
|
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);
|
|
@@ -670,14 +671,14 @@ function Tr(e = {}) {
|
|
|
670
671
|
break;
|
|
671
672
|
}
|
|
672
673
|
}
|
|
673
|
-
} while (
|
|
674
|
-
const d =
|
|
674
|
+
} while (b.currentType !== 13 && b.currentType !== 1);
|
|
675
|
+
const d = b.currentType === 1 ? b.lastOffset : u.currentOffset(), L = b.currentType === 1 ? b.lastEndLoc : u.currentPosition();
|
|
675
676
|
return a(A, d, L), A;
|
|
676
677
|
}
|
|
677
|
-
function
|
|
678
|
+
function k(u, b, N, E) {
|
|
678
679
|
const A = u.context();
|
|
679
680
|
let R = E.items.length === 0;
|
|
680
|
-
const d = o(1,
|
|
681
|
+
const d = o(1, b, N);
|
|
681
682
|
d.cases = [], d.cases.push(E);
|
|
682
683
|
do {
|
|
683
684
|
const L = f(u);
|
|
@@ -686,12 +687,12 @@ function Tr(e = {}) {
|
|
|
686
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
|
|
690
|
-
return
|
|
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
693
|
function y(u) {
|
|
693
|
-
const
|
|
694
|
-
return t && E.loc && (E.loc.source = u), E.body = T(
|
|
694
|
+
const b = yr(u, te({}, e)), N = b.context(), E = o(0, N.offset, N.startLoc);
|
|
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
697
|
return { parse: y };
|
|
697
698
|
}
|
|
@@ -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,8 +958,8 @@ 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
965
|
`, a = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], m = Rr(e, {
|
|
@@ -977,13 +978,13 @@ const kr = (e, t = {}) => {
|
|
|
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 && Ar(m), o && Oe(m), { ast: m, code: "" }) : (Nr(m, n),
|
|
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() {
|
|
984
985
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Te().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Te().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
985
986
|
}
|
|
986
|
-
function
|
|
987
|
+
function vt(e) {
|
|
987
988
|
return (n) => Fr(n, e);
|
|
988
989
|
}
|
|
989
990
|
function Fr(e, t) {
|
|
@@ -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)
|
|
@@ -1121,15 +1122,15 @@ function Zr(e, t) {
|
|
|
1121
1122
|
...t,
|
|
1122
1123
|
location: Dr.env.NODE_ENV !== "production",
|
|
1123
1124
|
jit: !0
|
|
1124
|
-
}), m =
|
|
1125
|
+
}), m = vt(a);
|
|
1125
1126
|
return i ? m : qe[r] = m;
|
|
1126
1127
|
} else {
|
|
1127
1128
|
const n = e.cacheKey;
|
|
1128
1129
|
if (n) {
|
|
1129
1130
|
const r = qe[n];
|
|
1130
|
-
return r || (qe[n] =
|
|
1131
|
+
return r || (qe[n] = vt(e));
|
|
1131
1132
|
} else
|
|
1132
|
-
return
|
|
1133
|
+
return vt(e);
|
|
1133
1134
|
}
|
|
1134
1135
|
}
|
|
1135
1136
|
let Ve = null;
|
|
@@ -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
|
}
|
|
@@ -1226,8 +1227,8 @@ function so(e, t, n) {
|
|
|
1226
1227
|
}
|
|
1227
1228
|
return r;
|
|
1228
1229
|
}
|
|
1229
|
-
const
|
|
1230
|
-
|
|
1230
|
+
const be = [];
|
|
1231
|
+
be[
|
|
1231
1232
|
0
|
|
1232
1233
|
/* States.BEFORE_PATH */
|
|
1233
1234
|
] = {
|
|
@@ -1249,7 +1250,7 @@ ve[
|
|
|
1249
1250
|
/* States.AFTER_PATH */
|
|
1250
1251
|
]
|
|
1251
1252
|
};
|
|
1252
|
-
|
|
1253
|
+
be[
|
|
1253
1254
|
1
|
|
1254
1255
|
/* States.IN_PATH */
|
|
1255
1256
|
] = {
|
|
@@ -1270,7 +1271,7 @@ ve[
|
|
|
1270
1271
|
/* States.AFTER_PATH */
|
|
1271
1272
|
]
|
|
1272
1273
|
};
|
|
1273
|
-
|
|
1274
|
+
be[
|
|
1274
1275
|
2
|
|
1275
1276
|
/* States.BEFORE_IDENT */
|
|
1276
1277
|
] = {
|
|
@@ -1289,7 +1290,7 @@ ve[
|
|
|
1289
1290
|
/* Actions.APPEND */
|
|
1290
1291
|
]
|
|
1291
1292
|
};
|
|
1292
|
-
|
|
1293
|
+
be[
|
|
1293
1294
|
3
|
|
1294
1295
|
/* States.IN_IDENT */
|
|
1295
1296
|
] = {
|
|
@@ -1324,7 +1325,7 @@ ve[
|
|
|
1324
1325
|
/* Actions.PUSH */
|
|
1325
1326
|
]
|
|
1326
1327
|
};
|
|
1327
|
-
|
|
1328
|
+
be[
|
|
1328
1329
|
4
|
|
1329
1330
|
/* States.IN_SUB_PATH */
|
|
1330
1331
|
] = {
|
|
@@ -1355,7 +1356,7 @@ ve[
|
|
|
1355
1356
|
/* Actions.APPEND */
|
|
1356
1357
|
]
|
|
1357
1358
|
};
|
|
1358
|
-
|
|
1359
|
+
be[
|
|
1359
1360
|
5
|
|
1360
1361
|
/* States.IN_SINGLE_QUOTE */
|
|
1361
1362
|
] = {
|
|
@@ -1371,7 +1372,7 @@ ve[
|
|
|
1371
1372
|
/* Actions.APPEND */
|
|
1372
1373
|
]
|
|
1373
1374
|
};
|
|
1374
|
-
|
|
1375
|
+
be[
|
|
1375
1376
|
6
|
|
1376
1377
|
/* States.IN_DOUBLE_QUOTE */
|
|
1377
1378
|
] = {
|
|
@@ -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 =
|
|
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;
|
|
@@ -1515,9 +1516,9 @@ function po(e, t) {
|
|
|
1515
1516
|
const Eo = "10.0.5", rt = -1, et = "en-US", nn = "", rn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1516
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
1524
|
let An;
|
|
@@ -1525,11 +1526,11 @@ function yo(e) {
|
|
|
1525
1526
|
An = e;
|
|
1526
1527
|
}
|
|
1527
1528
|
let Rn;
|
|
1528
|
-
function
|
|
1529
|
+
function bo(e) {
|
|
1529
1530
|
Rn = e;
|
|
1530
1531
|
}
|
|
1531
1532
|
let Ln;
|
|
1532
|
-
function
|
|
1533
|
+
function vo(e) {
|
|
1533
1534
|
Ln = e;
|
|
1534
1535
|
}
|
|
1535
1536
|
let On = null;
|
|
@@ -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,
|
|
@@ -1555,11 +1556,11 @@ function No(e = {}) {
|
|
|
1555
1556
|
missing: O,
|
|
1556
1557
|
missingWarn: p,
|
|
1557
1558
|
fallbackWarn: f,
|
|
1558
|
-
fallbackFormat:
|
|
1559
|
+
fallbackFormat: k,
|
|
1559
1560
|
unresolving: T,
|
|
1560
1561
|
postTranslation: y,
|
|
1561
1562
|
processor: u,
|
|
1562
|
-
warnHtmlMessage:
|
|
1563
|
+
warnHtmlMessage: b,
|
|
1563
1564
|
escapeParameter: N,
|
|
1564
1565
|
messageCompiler: E,
|
|
1565
1566
|
messageResolver: A,
|
|
@@ -1575,7 +1576,7 @@ 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
|
}
|
|
@@ -1598,26 +1599,26 @@ function Ro(e, t) {
|
|
|
1598
1599
|
function sn(e, ...t) {
|
|
1599
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 y = {}, u,
|
|
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 R = 0; R < T.length && (u = T[R], y = n[u] || {},
|
|
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(
|
|
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
1618
|
let A = m.get(E);
|
|
1618
|
-
return A || (A = new Intl.DateTimeFormat(u, te({},
|
|
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",
|
|
@@ -1642,7 +1643,7 @@ const Sn = [
|
|
|
1642
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);
|
|
@@ -1661,9 +1662,9 @@ function At(...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;
|
|
@@ -1675,26 +1676,26 @@ function ln(e, t, n) {
|
|
|
1675
1676
|
function un(e, ...t) {
|
|
1676
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 y = {}, u,
|
|
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 R = 0; R < T.length && (u = T[R], y = n[u] || {},
|
|
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(
|
|
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
1695
|
let A = m.get(E);
|
|
1695
|
-
return A || (A = new Intl.NumberFormat(u, te({},
|
|
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",
|
|
@@ -1722,9 +1723,9 @@ function Rt(...e) {
|
|
|
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,21 +1746,21 @@ 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
1751
|
const g = (u) => c[u];
|
|
1751
|
-
function h(u,
|
|
1752
|
-
const N = Y(e.messages) ? e.messages(u, !!
|
|
1752
|
+
function h(u, b) {
|
|
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
1758
|
named: g,
|
|
1758
1759
|
plural: a,
|
|
1759
|
-
linked: (u, ...
|
|
1760
|
-
const [N, E] =
|
|
1760
|
+
linked: (u, ...b) => {
|
|
1761
|
+
const [N, E] = b;
|
|
1761
1762
|
let A = "text", R = "";
|
|
1762
|
-
|
|
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));
|
|
1763
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
|
|
@@ -1767,7 +1768,7 @@ function wo(e = {}) {
|
|
|
1767
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)
|
|
@@ -1776,28 +1777,28 @@ function wo(e = {}) {
|
|
|
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, 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,
|
|
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);
|
|
1780
1781
|
p && Fo(g);
|
|
1781
|
-
let [u,
|
|
1782
|
+
let [u, b, N] = f ? [
|
|
1782
1783
|
c,
|
|
1783
1784
|
y,
|
|
1784
1785
|
m[y] || H()
|
|
1785
1786
|
] : Pn(e, c, y, i, O, h), E = u, A = c;
|
|
1786
|
-
if (!f && !(
|
|
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
1789
|
let R = !1;
|
|
1789
1790
|
const d = () => {
|
|
1790
1791
|
R = !0;
|
|
1791
|
-
}, L = re(E) ? E : Dn(e, c,
|
|
1792
|
+
}, L = re(E) ? E : Dn(e, c, b, E, A, d);
|
|
1792
1793
|
if (R)
|
|
1793
1794
|
return E;
|
|
1794
|
-
const P = Vo(e,
|
|
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
|
-
locale:
|
|
1800
|
-
format:
|
|
1799
|
+
key: S(c) ? c : re(E) ? E.key : "",
|
|
1800
|
+
locale: b || (re(E) ? E.locale : ""),
|
|
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,15 +1806,15 @@ 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
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]), !(
|
|
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++)
|
|
1817
1818
|
if (!Ro(p, h)) {
|
|
1818
1819
|
const y = Ht(
|
|
1819
1820
|
e,
|
|
@@ -1821,7 +1822,7 @@ function Pn(e, t, n, r, o, a) {
|
|
|
1821
1822
|
t,
|
|
1822
1823
|
p,
|
|
1823
1824
|
a,
|
|
1824
|
-
|
|
1825
|
+
k
|
|
1825
1826
|
);
|
|
1826
1827
|
y !== t && (f = y);
|
|
1827
1828
|
}
|
|
@@ -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 {
|
|
@@ -1866,9 +1867,9 @@ function Vo(e, t, n, r) {
|
|
|
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
|
+
if (T == null && (h || k)) {
|
|
1872
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
|
|
@@ -1880,24 +1881,24 @@ function Vo(e, t, n, r) {
|
|
|
1880
1881
|
);
|
|
1881
1882
|
T = i(y, f);
|
|
1882
1883
|
}
|
|
1883
|
-
if (
|
|
1884
|
+
if (S(T) || ke(T)) {
|
|
1884
1885
|
let y = !1;
|
|
1885
|
-
const
|
|
1886
|
+
const b = Dn(e, f, t, T, f, () => {
|
|
1886
1887
|
y = !0;
|
|
1887
1888
|
});
|
|
1888
|
-
return y ? fn :
|
|
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_71e56bf4-5107-442d-8523-afe71c8fb543", 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_71e56bf4-5107-442d-8523-afe71c8fb543", 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: "1922", ACTIONS_ORCHESTRATION_ID: "8182ff27-17da-4226-9516-c1cc0707b4c0.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_71e56bf4-5107-442d-8523-afe71c8fb543", 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:12960", 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: "30822935074", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "26bb7a5e33cdaf5bb21609f07729bbe0bf062dd5", 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/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_60282d2d-cab8-49a0-8759-85d6075cda31", INVOCATION_ID: "422c9330c5ce4113b42f446513092bfa", 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: "579", 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 1000103271", 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.61-dev.3", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "26bb7a5e33cdaf5bb21609f07729bbe0bf062dd5", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_71e56bf4-5107-442d-8523-afe71c8fb543", 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_71e56bf4-5107-442d-8523-afe71c8fb543", 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_71e56bf4-5107-442d-8523-afe71c8fb543", 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_71e56bf4-5107-442d-8523-afe71c8fb543", 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;
|
|
@@ -1942,7 +1943,7 @@ function Fn(e, t) {
|
|
|
1942
1943
|
const { locale: c, resource: g } = m;
|
|
1943
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]);
|
|
@@ -1994,12 +1995,12 @@ 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
|
+
t && i ? t.fallbackLocale.value : S(e.fallbackLocale) || z(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
|
|
2001
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]: {} });
|
|
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
|
+
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;
|
|
2003
2004
|
const A = t ? t.modifiers : M(e.modifiers) ? e.modifiers : {};
|
|
2004
2005
|
let R = e.pluralRules || t && t.pluralRules, d;
|
|
2005
2006
|
d = (() => {
|
|
@@ -2016,7 +2017,7 @@ function Yo(e = {}) {
|
|
|
2016
2017
|
fallbackWarn: f,
|
|
2017
2018
|
fallbackFormat: T,
|
|
2018
2019
|
unresolving: !0,
|
|
2019
|
-
postTranslation:
|
|
2020
|
+
postTranslation: b === null ? void 0 : b,
|
|
2020
2021
|
warnHtmlMessage: N,
|
|
2021
2022
|
escapeParameter: E,
|
|
2022
2023
|
messageResolver: e.messageResolver,
|
|
@@ -2048,10 +2049,10 @@ function Yo(e = {}) {
|
|
|
2048
2049
|
}
|
|
2049
2050
|
}), C = W(() => g.value), Ne = /* @__PURE__ */ W(() => h.value), ot = /* @__PURE__ */ W(() => O.value);
|
|
2050
2051
|
function at() {
|
|
2051
|
-
return Y(
|
|
2052
|
+
return Y(b) ? b : null;
|
|
2052
2053
|
}
|
|
2053
2054
|
function st(_) {
|
|
2054
|
-
|
|
2055
|
+
b = _, d.postTranslation = _;
|
|
2055
2056
|
}
|
|
2056
2057
|
function lt() {
|
|
2057
2058
|
return y;
|
|
@@ -2059,7 +2060,7 @@ function Yo(e = {}) {
|
|
|
2059
2060
|
function ut(_) {
|
|
2060
2061
|
_ !== null && (u = yn(_)), y = _, d.missing = u;
|
|
2061
2062
|
}
|
|
2062
|
-
const ce = (_, I, G, J,
|
|
2063
|
+
const ce = (_, I, G, J, ve, Ye) => {
|
|
2063
2064
|
P();
|
|
2064
2065
|
let Le;
|
|
2065
2066
|
try {
|
|
@@ -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
2081
|
function Be(..._) {
|
|
2081
|
-
return ce((I) => Reflect.apply(_n, null, [I, ..._]), () => Lt(..._), "translate", (I) => Reflect.apply(I.t, I, [..._]), (I) => I, (I) =>
|
|
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
|
+
throw $e(Se.INVALID_ARGUMENT);
|
|
2087
2088
|
return Be(I, G, te({ resolvedMessage: !0 }, J || {}));
|
|
2088
2089
|
}
|
|
2089
2090
|
function it(..._) {
|
|
2090
|
-
return ce((I) => Reflect.apply(sn, null, [I, ..._]), () => At(..._), "datetime format", (I) => Reflect.apply(I.d, I, [..._]), () => nn, (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, ..._]), () => Rt(..._), "number format", (I) => Reflect.apply(I.n, I, [..._]), () => nn, (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,10 +2114,10 @@ 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, ..._]), () => Rt(..._), "number format", (I) => 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, ..._]), () => At(..._), "datetime format", (I) => I[Ct](..._), En, (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;
|
|
@@ -2125,15 +2126,15 @@ function Yo(e = {}) {
|
|
|
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
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
|
|
2137
|
+
const ve = g.value[G[J]] || {}, Ye = d.messageResolver(ve, _);
|
|
2137
2138
|
if (Ye != null) {
|
|
2138
2139
|
I = Ye;
|
|
2139
2140
|
break;
|
|
@@ -2174,7 +2175,7 @@ function Yo(e = {}) {
|
|
|
2174
2175
|
function l(_, I) {
|
|
2175
2176
|
h.value[_] = te(h.value[_] || {}, I), d.datetimeFormats = h.value, ln(d, _, I);
|
|
2176
2177
|
}
|
|
2177
|
-
function
|
|
2178
|
+
function v(_) {
|
|
2178
2179
|
return O.value[_] || {};
|
|
2179
2180
|
}
|
|
2180
2181
|
function D(_, I) {
|
|
@@ -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;
|
|
@@ -2257,7 +2258,7 @@ function Yo(e = {}) {
|
|
|
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 = yt, F.setDateTimeFormat = s, F.mergeDateTimeFormat = l, F.getNumberFormat =
|
|
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,21 +2302,21 @@ 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
2314
|
let g = [i.key];
|
|
2314
2315
|
z(c) ? g = c.map((p, f) => {
|
|
2315
|
-
const
|
|
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 =
|
|
2318
|
+
}) : S(c) && (g = [c]);
|
|
2319
|
+
const h = te(H(), a), O = S(e.tag) || U(e.tag) ? e.tag : Un();
|
|
2319
2320
|
return hn(O, h, g);
|
|
2320
2321
|
};
|
|
2321
2322
|
}
|
|
@@ -2341,9 +2342,9 @@ const qo = /* @__PURE__ */ Ie("global-vue-i18n");
|
|
|
2341
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
2350
|
return Bo(r, e, o), r;
|
|
@@ -2355,14 +2356,14 @@ function We(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) {
|
|
@@ -2393,18 +2394,18 @@ function ea(e, t = !1) {
|
|
|
2393
2394
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
2394
2395
|
}
|
|
2395
2396
|
function ta(e, t, n) {
|
|
2396
|
-
|
|
2397
|
+
vn(() => {
|
|
2397
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
|
-
|
|
2407
|
+
bo(po);
|
|
2408
|
+
vo(Nn);
|
|
2408
2409
|
if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
2409
2410
|
const e = Te();
|
|
2410
2411
|
e.__INTLIFY__ = !0, zr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
@@ -2412,7 +2413,7 @@ 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
2419
|
restaurantAttributes: W(() => [
|
|
@@ -2494,7 +2495,7 @@ function aa() {
|
|
|
2494
2495
|
}
|
|
2495
2496
|
];
|
|
2496
2497
|
}
|
|
2497
|
-
function
|
|
2498
|
+
function qa(e = {}) {
|
|
2498
2499
|
const t = W(() => {
|
|
2499
2500
|
var c, g;
|
|
2500
2501
|
const i = ((c = e.menuItems) == null ? void 0 : c.value) || [], m = ((g = e.categories) == null ? void 0 : g.value) || [];
|
|
@@ -2565,7 +2566,7 @@ const sa = {
|
|
|
2565
2566
|
class: "break-all fm-typo-en-body-lg-400 line-clamp-1"
|
|
2566
2567
|
}, ia = {
|
|
2567
2568
|
class: "flex"
|
|
2568
|
-
},
|
|
2569
|
+
}, bn = /* @__PURE__ */ ie({
|
|
2569
2570
|
__name: "RuleConditionSelector",
|
|
2570
2571
|
props: {
|
|
2571
2572
|
ruleKey: {
|
|
@@ -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,7 +2654,7 @@ const sa = {
|
|
|
2653
2654
|
}, {
|
|
2654
2655
|
label: n("menu.rule_groups.condition_view.operator.starts_with"),
|
|
2655
2656
|
value: "$startsWith"
|
|
2656
|
-
}], y = oe(""), u = oe(!1),
|
|
2657
|
+
}], y = oe(""), u = oe(!1), b = W(() => {
|
|
2657
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
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) {
|
|
@@ -2687,7 +2688,7 @@ const sa = {
|
|
|
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,
|
|
@@ -2744,8 +2745,8 @@ const sa = {
|
|
|
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]
|
|
@@ -2755,7 +2756,7 @@ const sa = {
|
|
|
2755
2756
|
}]),
|
|
2756
2757
|
modelValue: p.value,
|
|
2757
2758
|
"onUpdate:modelValue": [L[7] || (L[7] = (C) => p.value = C), L[8] || (L[8] = (C) => A("ruleValues", C))],
|
|
2758
|
-
items:
|
|
2759
|
+
items: b.value,
|
|
2759
2760
|
placeholder: K(n)("menu.rule_groups.condition_view.select_item"),
|
|
2760
2761
|
multiselect: "",
|
|
2761
2762
|
"hide-chips": "",
|
|
@@ -2829,17 +2830,17 @@ const sa = {
|
|
|
2829
2830
|
id: crypto.randomUUID(),
|
|
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
2841
|
h.value = h.value.filter((y) => y.key !== f.uniqueKey);
|
|
2841
2842
|
else {
|
|
2842
|
-
const y =
|
|
2843
|
+
const y = k.slice(1).join("_");
|
|
2843
2844
|
g.value = g.value.filter((u) => u.id !== y);
|
|
2844
2845
|
}
|
|
2845
2846
|
else if (f.action === "update")
|
|
@@ -2852,7 +2853,7 @@ const sa = {
|
|
|
2852
2853
|
type: f.type
|
|
2853
2854
|
});
|
|
2854
2855
|
else {
|
|
2855
|
-
const y =
|
|
2856
|
+
const y = k.slice(1).join("_"), u = g.value.findIndex((b) => b.id === y);
|
|
2856
2857
|
u !== -1 && (g.value[u] = {
|
|
2857
2858
|
id: y,
|
|
2858
2859
|
// Keep the same ID
|
|
@@ -2871,39 +2872,39 @@ const sa = {
|
|
|
2871
2872
|
}
|
|
2872
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
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", {
|
|
2877
2878
|
key: y.id
|
|
2878
|
-
}, [X(
|
|
2879
|
+
}, [X(bn, {
|
|
2879
2880
|
ruleKey: y.property,
|
|
2880
2881
|
operator: y.operator,
|
|
2881
2882
|
values: y.value,
|
|
2882
2883
|
"unique-key": `condition_${y.id}`,
|
|
2883
2884
|
"selected-keys": g.value.map((u) => u.property),
|
|
2884
|
-
"onUpdate:modelValue":
|
|
2885
|
+
"onUpdate:modelValue": k[0] || (k[0] = (u) => {
|
|
2885
2886
|
O(u);
|
|
2886
2887
|
})
|
|
2887
2888
|
}, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (x(!0), j(de, null, Me(h.value, (y) => (x(), j("div", {
|
|
2888
2889
|
key: y.key
|
|
2889
|
-
}, [X(
|
|
2890
|
+
}, [X(bn, {
|
|
2890
2891
|
ruleKey: "",
|
|
2891
2892
|
operator: "",
|
|
2892
2893
|
"unique-key": y.key,
|
|
2893
2894
|
values: [],
|
|
2894
2895
|
"selected-keys": g.value.map((u) => u.property),
|
|
2895
|
-
"onUpdate:modelValue":
|
|
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" }, ga = { class: "whitespace-nowrap" }, ya = { class: "fm-typo-en-body-lg-600 whitespace-nowrap" },
|
|
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: {
|
|
@@ -2978,13 +2979,13 @@ 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
|
-
const
|
|
2988
|
+
const va = {
|
|
2988
2989
|
class: "flex items-center gap-24"
|
|
2989
2990
|
}, ha = {
|
|
2990
2991
|
key: 0,
|
|
@@ -3029,9 +3030,9 @@ const ba = {
|
|
|
3029
3030
|
var T;
|
|
3030
3031
|
return ((T = i.modelValue.itemRule) == null ? void 0 : T.itemCustomAttributes) ?? {};
|
|
3031
3032
|
}), p = oe([...c.value.rules ?? [], ...g.value.rules ?? [], ...h.value.rules ?? [], ...O.value.rules ?? []]), f = oe([]);
|
|
3032
|
-
function
|
|
3033
|
+
function k() {
|
|
3033
3034
|
var E, A, R, d, L, P, w, B;
|
|
3034
|
-
const T = i.modelValue, y = [], u = [],
|
|
3035
|
+
const T = i.modelValue, y = [], u = [], b = [], N = [];
|
|
3035
3036
|
if (f.value.length === 0) {
|
|
3036
3037
|
a(!1);
|
|
3037
3038
|
return;
|
|
@@ -3047,7 +3048,7 @@ const ba = {
|
|
|
3047
3048
|
operator: C.operator,
|
|
3048
3049
|
value: C.value,
|
|
3049
3050
|
type: C.type
|
|
3050
|
-
}) : C.property.startsWith("item_attr") ?
|
|
3051
|
+
}) : C.property.startsWith("item_attr") ? b.push({
|
|
3051
3052
|
property: C.property.replace("item_attr_", ""),
|
|
3052
3053
|
operator: C.operator,
|
|
3053
3054
|
value: C.value,
|
|
@@ -3070,7 +3071,7 @@ const ba = {
|
|
|
3070
3071
|
}, T.itemRule = {
|
|
3071
3072
|
itemAttributes: {
|
|
3072
3073
|
logic: ((P = (L = T.itemRule) == null ? void 0 : L.itemAttributes) == null ? void 0 : P.logic) ?? "AND",
|
|
3073
|
-
rules:
|
|
3074
|
+
rules: b
|
|
3074
3075
|
},
|
|
3075
3076
|
itemCustomAttributes: {
|
|
3076
3077
|
logic: ((B = (w = T.itemRule) == null ? void 0 : w.itemCustomAttributes) == null ? void 0 : B.logic) ?? "AND",
|
|
@@ -3081,21 +3082,21 @@ const ba = {
|
|
|
3081
3082
|
});
|
|
3082
3083
|
}
|
|
3083
3084
|
return (T, y) => {
|
|
3084
|
-
const u = pe("FmButton"),
|
|
3085
|
+
const u = pe("FmButton"), b = pe("FmSideSheet");
|
|
3085
3086
|
return x(), j(de, null, [Qe(T.$slots, "default", {
|
|
3086
3087
|
trigger: a
|
|
3087
|
-
}), X(
|
|
3088
|
+
}), X(b, {
|
|
3088
3089
|
modelValue: o.value,
|
|
3089
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
|
-
"side-sheet-header": ae(() => [V("div",
|
|
3099
|
+
"side-sheet-header": ae(() => [V("div", va, [X(u, {
|
|
3099
3100
|
variant: K(he).Tertiary,
|
|
3100
3101
|
"prepend-icon": "arrow_back",
|
|
3101
3102
|
onClick: y[0] || (y[0] = se((N) => a(), ["stop"]))
|
|
@@ -3131,9 +3132,9 @@ const ba = {
|
|
|
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 ba = {
|
|
|
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: {
|
|
@@ -3180,9 +3181,9 @@ const ba = {
|
|
|
3180
3181
|
const {
|
|
3181
3182
|
t: n
|
|
3182
3183
|
} = We(), r = e, o = {
|
|
3183
|
-
[
|
|
3184
|
-
[
|
|
3185
|
-
[
|
|
3184
|
+
[bt.enum.ALL]: "ALL",
|
|
3185
|
+
[bt.enum.POS_ONLY]: "POS ONLY",
|
|
3186
|
+
[bt.enum.NONE]: "NONE"
|
|
3186
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) ?? [];
|
|
@@ -3209,8 +3210,8 @@ const ba = {
|
|
|
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", Aa, [e.title ? (x(), j("p", Ra, Z(e.title), 1)) : Fe("", !0), V("div", La, [e.isCatalogLinkItemRuleView ? (x(), Bt(
|
|
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",
|
|
@@ -3229,7 +3230,7 @@ const ba = {
|
|
|
3229
3230
|
}, {
|
|
3230
3231
|
default: ae(({
|
|
3231
3232
|
trigger: y
|
|
3232
|
-
}) => [X(
|
|
3233
|
+
}) => [X(k, {
|
|
3233
3234
|
variant: K(he).Tertiary,
|
|
3234
3235
|
class: "cursor-pointer",
|
|
3235
3236
|
"prepend-icon": "edit",
|
|
@@ -3237,13 +3238,13 @@ const ba = {
|
|
|
3237
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
3246
|
onClick: f[2] || (f[2] = se((y) => p.$emit("copy-rule", r.modelValue._id), ["stop"]))
|
|
3246
|
-
}, null, 8, ["variant"]), X(
|
|
3247
|
+
}, null, 8, ["variant"]), X(k, {
|
|
3247
3248
|
variant: K(he).Tertiary,
|
|
3248
3249
|
class: "cursor-pointer",
|
|
3249
3250
|
"prepend-icon": "delete",
|
|
@@ -3253,24 +3254,24 @@ const ba = {
|
|
|
3253
3254
|
key: 0
|
|
3254
3255
|
}, Me(e.ruleGroupNames, (y, u) => (x(), j("div", {
|
|
3255
3256
|
key: y
|
|
3256
|
-
}, [V("div",
|
|
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
|
}, {
|
|
3260
3261
|
"menu-button": ae(() => [V("p", {
|
|
3261
3262
|
ref_for: !0,
|
|
3262
3263
|
ref: "valueTextRef",
|
|
3263
|
-
onClick: f[4] || (f[4] = se((
|
|
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
3266
|
}, Z(y), 513)]),
|
|
3266
3267
|
default: ae(() => [V("p", Da, Z(y), 1)]),
|
|
3267
3268
|
_: 2
|
|
3268
3269
|
}, 1024)])])]))), 128)) : Fe("", !0), (x(!0), j(de, null, Me(O.value, (y, u) => {
|
|
3269
|
-
var
|
|
3270
|
+
var b;
|
|
3270
3271
|
return x(), j("div", {
|
|
3271
3272
|
key: y.property
|
|
3272
|
-
}, [X(
|
|
3273
|
-
number: u + (((
|
|
3273
|
+
}, [X(ba, {
|
|
3274
|
+
number: u + (((b = e.ruleGroupNames) == null ? void 0 : b.length) ?? 0) + 1,
|
|
3274
3275
|
property: y.property,
|
|
3275
3276
|
operator: y.operator,
|
|
3276
3277
|
value: y.value,
|
|
@@ -3291,15 +3292,15 @@ const ba = {
|
|
|
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
|
-
|
|
3301
|
-
|
|
3300
|
+
Xa as e,
|
|
3301
|
+
Qa as f,
|
|
3302
|
+
ba as g,
|
|
3302
3303
|
_a as h,
|
|
3303
|
-
|
|
3304
|
+
Ja as m,
|
|
3304
3305
|
We as u
|
|
3305
3306
|
};
|