@feedmepos/mf-menu 0.32.55 → 0.32.56

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.
Files changed (79) hide show
  1. package/dist/{App-D9i97kPC.js → App-BUePFRjb.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BxhzKypm.js → ApplyProduct.vue_vue_type_script_setup_true_lang-oPq3AcV2.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-kPOpOatz.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-r2W9cuVe.js} +2 -2
  4. package/dist/{Catalog-DFJXgNsO.js → Catalog-uo0vO8uy.js} +6 -6
  5. package/dist/{Category-FaheENIM.js → Category-BvetZzck.js} +4 -4
  6. package/dist/{Category-DcN5huA8.js → Category-CHN6aSPS.js} +4 -4
  7. package/dist/{CookingGuide-w9A6JMSR.js → CookingGuide-DU8D0T0w.js} +5 -5
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BGCVlZ7J.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DIxKLpe8.js} +1 -1
  9. package/dist/{Group-Dy8HcG_Y.js → Group-BFGFyGhC.js} +3 -3
  10. package/dist/{Group-DdqHR86E.js → Group-Cd1OoALN.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-Dvq7j79a.js → Group.vue_vue_type_script_setup_true_lang-Dyb9On55.js} +8 -8
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BBcE09pP.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-XcNt0ZBv.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DbIKyjW3.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dw3IXPUL.js} +7 -7
  14. package/dist/{Ingredient-gj1v3spC.js → Ingredient-CXU04qIu.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DV-RjIZv.js → InventoryBinding.vue_vue_type_script_setup_true_lang-q9DVgfMD.js} +2 -2
  16. package/dist/LinkProductSideSheet-CaFKMMSd.js +721 -0
  17. package/dist/MenuSetting-EeJdFNfx.js +685 -0
  18. package/dist/{OrderPacing-D0FFFm3T.js → OrderPacing-Db4P-2ea.js} +6 -6
  19. package/dist/{PrintRoute-Cgcxblv_.js → PrintRoute-CSScKjFa.js} +4 -4
  20. package/dist/{Product-Nti0T9iE.js → Product-tvbYvK5u.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-DyWLMrUC.js → Product.vue_vue_type_script_setup_true_lang-BQ_PgMDP.js} +12 -12
  22. package/dist/{ProductInternalTools-oOMZV7kK.js → ProductInternalTools-D2rmgEby.js} +6 -6
  23. package/dist/{Products-9elHDYp6.js → Products-WPvLY_wr.js} +43 -43
  24. package/dist/{Publish-Bi33tD6L.js → Publish-BJ9rz75C.js} +3 -3
  25. package/dist/{Recipe-BSysXC_H.js → Recipe-BMRTd58L.js} +4 -4
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BqsEM8Kj.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BefgcG34.js} +1 -1
  27. package/dist/RuleView.vue_vue_type_script_setup_true_lang-DlzIboPc.js +3305 -0
  28. package/dist/{Scheduler-CmXIA0tH.js → Scheduler-CHQ5YcBq.js} +3 -3
  29. package/dist/{ServingSequence-CPVOcSSM.js → ServingSequence-BtXSEzfn.js} +3 -3
  30. package/dist/{Setting-BQPHY7B-.js → Setting-BnXj1uTa.js} +5 -5
  31. package/dist/{Subcategory-DQAT58lU.js → Subcategory-miGPIoku.js} +5 -5
  32. package/dist/{Takeaway-DOi4Xogf.js → Takeaway-DtVvfRQy.js} +1 -1
  33. package/dist/{Takeaway-DtyEbDDB.js → Takeaway-zaChLDgt.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CNccXS8u.js → Takeaway.vue_vue_type_script_setup_true_lang-BFnbiGsG.js} +5 -5
  35. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-D9VV1s1E.js → Thumbnail.vue_vue_type_script_setup_true_lang-CNYxe969.js} +4 -4
  36. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-Cpg0cCuJ.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-D4fWF46n.js} +1 -1
  37. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CGXXpcYQ.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DLqeQRkH.js} +2 -2
  38. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DUxEgL0r.js +5974 -0
  39. package/dist/{Unit-BVGd9vOo.js → Unit-BaLVANd9.js} +2 -2
  40. package/dist/{Variant-wgsEnYNH.js → Variant-Bnb4SllS.js} +3 -3
  41. package/dist/{_id_-XLbzesLX.js → _id_-btH88hnV.js} +9 -9
  42. package/dist/{app-DBDi3v7O.js → app-BO16t-ps.js} +32 -32
  43. package/dist/{app-DXZuPEOd.js → app-D1a9CqKF.js} +1 -1
  44. package/dist/app.js +1 -1
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +6 -0
  46. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +35 -29
  47. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -0
  48. package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleView.vue.d.ts +2 -0
  49. package/dist/apps/mf-menu/src/components/rule_group/RuleView.vue.d.ts +2 -0
  50. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  51. package/dist/assets/{override-menu-BiwqdooM.js → linked-status-zxrRiX3x.js} +3 -3
  52. package/dist/assets/{menu-export-BemM1bWH.js → menu-export-DXB8Py6r.js} +2 -2
  53. package/dist/assets/{linked-status-BELOy4Ju.js → override-menu-CEIJGR_x.js} +3 -3
  54. package/dist/assets/{validate-menu-mNalZZpy.js → validate-menu-DN3P-OR7.js} +2 -2
  55. package/dist/{catalog-Beh91hfF.js → catalog-COu1SO_p.js} +1 -1
  56. package/dist/{catalogSetting-CvotY0sm.js → catalogSetting-D34fLwdB.js} +1 -1
  57. package/dist/{currency-DWU0Lz6M.js → currency-DlfcFoj5.js} +1 -1
  58. package/dist/{dayjs.min-b9_NYDqQ.js → dayjs.min-xM9KAjrx.js} +2 -2
  59. package/dist/{index-ZpjMtEkL.js → index-B5d_uvVc.js} +5 -5
  60. package/dist/{index-B2zWt4Ih.js → index-ByEp1JD0.js} +5 -5
  61. package/dist/{index.vue_vue_type_script_setup_true_lang-CSSSNBt8.js → index.vue_vue_type_script_setup_true_lang-DAJSG8i1.js} +6 -6
  62. package/dist/{item-DtR73Afo.js → item-CtfWra_w.js} +19 -19
  63. package/dist/{jszip.min-DgMmizjt.js → jszip.min-CNLaYb3p.js} +175 -175
  64. package/dist/{memberPricing-RVw5I6LL.js → memberPricing-DSqwOAgM.js} +1 -1
  65. package/dist/{menu-CaFnkDPh.js → menu-DUsES-YM.js} +1 -1
  66. package/dist/{menuV2-CphaxHaj.js → menuV2-BaY8Z_1c.js} +39 -39
  67. package/dist/mf-menu.css +1 -1
  68. package/dist/{order_pacing-CUyiMmGB.js → order_pacing-B5a8Fch-.js} +5 -5
  69. package/dist/{priceTier-CGLpjMw4.js → priceTier-bxvu4c84.js} +1 -1
  70. package/dist/{rules-3d19nDAK.js → rules-CTd3QZhN.js} +3 -3
  71. package/dist/{scheduler-CyPQu2Jd.js → scheduler-DIl9SPsA.js} +4 -4
  72. package/dist/{toExcel-Dbqi_aWn.js → toExcel-CUAEPhEv.js} +2 -2
  73. package/dist/{unit-CidyefuC.js → unit-DThoovpF.js} +3 -3
  74. package/package.json +1 -1
  75. package/dist/LinkProductSideSheet-Bwt2W9XG.js +0 -687
  76. package/dist/MenuSetting-CRCDO92S.js +0 -648
  77. package/dist/RuleView.vue_vue_type_script_setup_true_lang-Cxl5Mvc1.js +0 -3285
  78. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dl-6UT3T.js +0 -5940
  79. /package/dist/{vuedraggable-CK8z7qA8.js → RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js} +0 -0
@@ -0,0 +1,3305 @@
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 bn, onUnmounted as Wn, h as hn, Text as Bn, Fragment as _e, resolveComponent as pe, unref as K, withModifiers as se, renderList as Me, createBlock as Bt } from "vue";
2
+ import { x as xn, N as Kn } from "./app-5fxKLAzS.js";
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
+ import "@vue/devtools-api";
5
+ import { u as Tn, H as Kt, U as vt } from "./index.vue_vue_type_script_setup_true_lang-DAJSG8i1.js";
6
+ import { FmButtonVariant as he, components as qn } from "@feedmepos/ui-library";
7
+ import "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
8
+ const Jn = /* @__PURE__ */ ie({
9
+ __name: "FormColumn",
10
+ props: {
11
+ shrinkable: { type: Boolean }
12
+ },
13
+ setup(e) {
14
+ return (t, n) => (x(), j("div", {
15
+ class: Pt(["flex-1 flex flex-col space-y-24", { "min-h-0": t.shrinkable }])
16
+ }, [
17
+ Qe(t.$slots, "default")
18
+ ], 2));
19
+ }
20
+ }), Qn = {
21
+ key: 0,
22
+ class: "flex flex-row justify-between items-center"
23
+ }, Zn = { class: "space-y-4" }, zn = { class: "fm-typo-en-title-sm-600" }, er = {
24
+ key: 0,
25
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
26
+ }, Ya = /* @__PURE__ */ ie({
27
+ __name: "FormSection",
28
+ props: {
29
+ title: {},
30
+ subTitle: {},
31
+ shrinkable: { type: Boolean }
32
+ },
33
+ setup(e) {
34
+ return (t, n) => (x(), j("div", {
35
+ class: Pt(["flex flex-col space-y-16", { "min-h-0": t.shrinkable }])
36
+ }, [
37
+ t.title ? (x(), j("div", Qn, [
38
+ V("div", Zn, [
39
+ V("p", zn, Z(t.title), 1),
40
+ t.subTitle ? (x(), j("p", er, Z(t.subTitle), 1)) : Fe("", !0)
41
+ ]),
42
+ Qe(t.$slots, "append-title")
43
+ ])) : Fe("", !0),
44
+ X(Jn, { shrinkable: t.shrinkable }, {
45
+ default: ae(() => [
46
+ Qe(t.$slots, "default")
47
+ ]),
48
+ _: 3
49
+ }, 8, ["shrinkable"])
50
+ ], 2));
51
+ }
52
+ });
53
+ /*!
54
+ * shared v10.0.5
55
+ * (c) 2024 kazuya kawaguchi
56
+ * Released under the MIT License.
57
+ */
58
+ const Yt = typeof window < "u", Ie = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), tr = (e, t, n) => nr({ l: e, k: t, s: n }), nr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ee = (e) => typeof e == "number" && isFinite(e), rr = (e) => Ft(e) === "[object Date]", ze = (e) => Ft(e) === "[object RegExp]", tt = (e) => M(e) && Object.keys(e).length === 0, te = Object.assign, or = Object.create, H = (e = null) => or(e);
59
+ let jt;
60
+ const Te = () => jt || (jt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : H());
61
+ function Xt(e) {
62
+ return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
63
+ }
64
+ const ar = Object.prototype.hasOwnProperty;
65
+ function le(e, t) {
66
+ return ar.call(e, t);
67
+ }
68
+ 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
+ function Mt(e, t = "") {
70
+ return e.reduce((n, r, o) => o === 0 ? n + r : n + t + r, "");
71
+ }
72
+ function ur(e, t) {
73
+ typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
74
+ }
75
+ const je = (e) => !U(e) || z(e);
76
+ function Je(e, t) {
77
+ if (je(e) || je(t))
78
+ throw new Error("Invalid value");
79
+ const n = [{ src: e, des: t }];
80
+ for (; n.length; ) {
81
+ const { src: r, des: o } = n.pop();
82
+ Object.keys(r).forEach((a) => {
83
+ a !== "__proto__" && (U(r[a]) && !U(o[a]) && (o[a] = Array.isArray(r[a]) ? [] : H()), je(o[a]) || je(r[a]) ? o[a] = r[a] : n.push({ src: r[a], des: o[a] }));
84
+ });
85
+ }
86
+ }
87
+ function ir(e, t, n) {
88
+ return { line: e, column: t, offset: n };
89
+ }
90
+ function It(e, t, n) {
91
+ return { start: e, end: t };
92
+ }
93
+ const $ = {
94
+ // tokenizer error codes
95
+ EXPECTED_TOKEN: 1,
96
+ INVALID_TOKEN_IN_PLACEHOLDER: 2,
97
+ UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
98
+ UNKNOWN_ESCAPE_SEQUENCE: 4,
99
+ INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
100
+ UNBALANCED_CLOSING_BRACE: 6,
101
+ UNTERMINATED_CLOSING_BRACE: 7,
102
+ EMPTY_PLACEHOLDER: 8,
103
+ NOT_ALLOW_NEST_PLACEHOLDER: 9,
104
+ INVALID_LINKED_FORMAT: 10,
105
+ // parser error codes
106
+ MUST_HAVE_MESSAGES_IN_PLURAL: 11,
107
+ UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
108
+ UNEXPECTED_EMPTY_LINKED_KEY: 13,
109
+ UNEXPECTED_LEXICAL_ANALYSIS: 14
110
+ }, cr = 17;
111
+ function nt(e, t, n = {}) {
112
+ const { domain: r, messages: o, args: a } = n, i = e, m = new SyntaxError(String(i));
113
+ return m.code = e, t && (m.location = t), m.domain = r, m;
114
+ }
115
+ function mr(e) {
116
+ throw e;
117
+ }
118
+ const me = " ", fr = "\r", ne = `
119
+ `, dr = "\u2028", _r = "\u2029";
120
+ function pr(e) {
121
+ const t = e;
122
+ let n = 0, r = 1, o = 1, a = 0;
123
+ const i = (_) => t[_] === fr && t[_ + 1] === ne, m = (_) => t[_] === ne, c = (_) => t[_] === _r, g = (_) => t[_] === dr, h = (_) => i(_) || m(_) || c(_) || g(_), O = () => n, p = () => r, f = () => o, k = () => a, T = (_) => i(_) || c(_) || g(_) ? ne : t[_], y = () => T(n), u = () => T(n + a);
124
+ function v() {
125
+ return a = 0, h(n) && (r++, o = 0), i(n) && n++, n++, o++, t[n];
126
+ }
127
+ function N() {
128
+ return i(n + a) && a++, a++, t[n + a];
129
+ }
130
+ function E() {
131
+ n = 0, r = 1, o = 1, a = 0;
132
+ }
133
+ function R(_ = 0) {
134
+ a = _;
135
+ }
136
+ function A() {
137
+ const _ = n + a;
138
+ for (; _ !== n; )
139
+ v();
140
+ a = 0;
141
+ }
142
+ return {
143
+ index: O,
144
+ line: p,
145
+ column: f,
146
+ peekOffset: k,
147
+ charAt: T,
148
+ currentChar: y,
149
+ currentPeek: u,
150
+ next: v,
151
+ peek: N,
152
+ reset: E,
153
+ resetPeek: R,
154
+ skipToPeek: A
155
+ };
156
+ }
157
+ const ge = void 0, Er = ".", qt = "'", gr = "tokenizer";
158
+ function yr(e, t = {}) {
159
+ const n = t.location !== !1, r = pr(e), o = () => r.index(), a = () => ir(r.line(), r.column(), r.index()), i = a(), m = o(), c = {
160
+ currentType: 13,
161
+ offset: m,
162
+ startLoc: i,
163
+ endLoc: i,
164
+ lastType: 13,
165
+ lastOffset: m,
166
+ lastStartLoc: i,
167
+ lastEndLoc: i,
168
+ braceNest: 0,
169
+ inLinked: !1,
170
+ text: ""
171
+ }, g = () => c, { onError: h } = t;
172
+ function O(s, l, b, ...D) {
173
+ const q = g();
174
+ if (l.column += b, l.offset += b, h) {
175
+ const F = n ? It(q.startLoc, l) : null, d = nt(s, F, {
176
+ domain: gr,
177
+ args: D
178
+ });
179
+ h(d);
180
+ }
181
+ }
182
+ function p(s, l, b) {
183
+ s.endLoc = a(), s.currentType = l;
184
+ const D = { type: l };
185
+ return n && (D.loc = It(s.startLoc, s.endLoc)), b != null && (D.value = b), D;
186
+ }
187
+ const f = (s) => p(
188
+ s,
189
+ 13
190
+ /* TokenTypes.EOF */
191
+ );
192
+ function k(s, l) {
193
+ return s.currentChar() === l ? (s.next(), l) : (O($.EXPECTED_TOKEN, a(), 0, l), "");
194
+ }
195
+ function T(s) {
196
+ let l = "";
197
+ for (; s.currentPeek() === me || s.currentPeek() === ne; )
198
+ l += s.currentPeek(), s.peek();
199
+ return l;
200
+ }
201
+ function y(s) {
202
+ const l = T(s);
203
+ return s.skipToPeek(), l;
204
+ }
205
+ function u(s) {
206
+ if (s === ge)
207
+ return !1;
208
+ const l = s.charCodeAt(0);
209
+ return l >= 97 && l <= 122 || // a-z
210
+ l >= 65 && l <= 90 || // A-Z
211
+ l === 95;
212
+ }
213
+ function v(s) {
214
+ if (s === ge)
215
+ return !1;
216
+ const l = s.charCodeAt(0);
217
+ return l >= 48 && l <= 57;
218
+ }
219
+ function N(s, l) {
220
+ const { currentType: b } = l;
221
+ if (b !== 2)
222
+ return !1;
223
+ T(s);
224
+ const D = u(s.currentPeek());
225
+ return s.resetPeek(), D;
226
+ }
227
+ function E(s, l) {
228
+ const { currentType: b } = l;
229
+ if (b !== 2)
230
+ return !1;
231
+ T(s);
232
+ const D = s.currentPeek() === "-" ? s.peek() : s.currentPeek(), q = v(D);
233
+ return s.resetPeek(), q;
234
+ }
235
+ function R(s, l) {
236
+ const { currentType: b } = l;
237
+ if (b !== 2)
238
+ return !1;
239
+ T(s);
240
+ const D = s.currentPeek() === qt;
241
+ return s.resetPeek(), D;
242
+ }
243
+ function A(s, l) {
244
+ const { currentType: b } = l;
245
+ if (b !== 7)
246
+ return !1;
247
+ T(s);
248
+ const D = s.currentPeek() === ".";
249
+ return s.resetPeek(), D;
250
+ }
251
+ function _(s, l) {
252
+ const { currentType: b } = l;
253
+ if (b !== 8)
254
+ return !1;
255
+ T(s);
256
+ const D = u(s.currentPeek());
257
+ return s.resetPeek(), D;
258
+ }
259
+ function L(s, l) {
260
+ const { currentType: b } = l;
261
+ if (!(b === 7 || b === 11))
262
+ return !1;
263
+ T(s);
264
+ const D = s.currentPeek() === ":";
265
+ return s.resetPeek(), D;
266
+ }
267
+ function P(s, l) {
268
+ const { currentType: b } = l;
269
+ if (b !== 9)
270
+ return !1;
271
+ const D = () => {
272
+ const F = s.currentPeek();
273
+ return F === "{" ? u(s.peek()) : F === "@" || F === "|" || F === ":" || F === "." || F === me || !F ? !1 : F === ne ? (s.peek(), D()) : B(s, !1);
274
+ }, q = D();
275
+ return s.resetPeek(), q;
276
+ }
277
+ function w(s) {
278
+ T(s);
279
+ const l = s.currentPeek() === "|";
280
+ return s.resetPeek(), l;
281
+ }
282
+ function B(s, l = !0) {
283
+ const b = (q = !1, F = "") => {
284
+ const d = s.currentPeek();
285
+ return d === "{" || d === "@" || !d ? q : d === "|" ? !(F === me || F === ne) : d === me ? (s.peek(), b(!0, me)) : d === ne ? (s.peek(), b(!0, ne)) : !0;
286
+ }, D = b();
287
+ return l && s.resetPeek(), D;
288
+ }
289
+ function C(s, l) {
290
+ const b = s.currentChar();
291
+ return b === ge ? ge : l(b) ? (s.next(), b) : null;
292
+ }
293
+ function Ne(s) {
294
+ const l = s.charCodeAt(0);
295
+ return l >= 97 && l <= 122 || // a-z
296
+ l >= 65 && l <= 90 || // A-Z
297
+ l >= 48 && l <= 57 || // 0-9
298
+ l === 95 || // _
299
+ l === 36;
300
+ }
301
+ function ot(s) {
302
+ return C(s, Ne);
303
+ }
304
+ function at(s) {
305
+ const l = s.charCodeAt(0);
306
+ return l >= 97 && l <= 122 || // a-z
307
+ l >= 65 && l <= 90 || // A-Z
308
+ l >= 48 && l <= 57 || // 0-9
309
+ l === 95 || // _
310
+ l === 36 || // $
311
+ l === 45;
312
+ }
313
+ function st(s) {
314
+ return C(s, at);
315
+ }
316
+ function lt(s) {
317
+ const l = s.charCodeAt(0);
318
+ return l >= 48 && l <= 57;
319
+ }
320
+ function ut(s) {
321
+ return C(s, lt);
322
+ }
323
+ function ce(s) {
324
+ const l = s.charCodeAt(0);
325
+ return l >= 48 && l <= 57 || // 0-9
326
+ l >= 65 && l <= 70 || // A-F
327
+ l >= 97 && l <= 102;
328
+ }
329
+ function Be(s) {
330
+ return C(s, ce);
331
+ }
332
+ function xe(s) {
333
+ let l = "", b = "";
334
+ for (; l = ut(s); )
335
+ b += l;
336
+ return b;
337
+ }
338
+ function it(s) {
339
+ let l = "";
340
+ for (; ; ) {
341
+ const b = s.currentChar();
342
+ if (b === "{" || b === "}" || b === "@" || b === "|" || !b)
343
+ break;
344
+ if (b === me || b === ne)
345
+ if (B(s))
346
+ l += b, s.next();
347
+ else {
348
+ if (w(s))
349
+ break;
350
+ l += b, s.next();
351
+ }
352
+ else
353
+ l += b, s.next();
354
+ }
355
+ return l;
356
+ }
357
+ function ct(s) {
358
+ y(s);
359
+ let l = "", b = "";
360
+ for (; l = st(s); )
361
+ b += l;
362
+ return s.currentChar() === ge && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), b;
363
+ }
364
+ function mt(s) {
365
+ y(s);
366
+ let l = "";
367
+ return s.currentChar() === "-" ? (s.next(), l += `-${xe(s)}`) : l += xe(s), s.currentChar() === ge && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), l;
368
+ }
369
+ function Wt(s) {
370
+ return s !== qt && s !== ne;
371
+ }
372
+ function ft(s) {
373
+ y(s), k(s, "'");
374
+ let l = "", b = "";
375
+ for (; l = C(s, Wt); )
376
+ l === "\\" ? b += dt(s) : b += l;
377
+ const D = s.currentChar();
378
+ return D === ne || D === ge ? (O($.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), D === ne && (s.next(), k(s, "'")), b) : (k(s, "'"), b);
379
+ }
380
+ function dt(s) {
381
+ const l = s.currentChar();
382
+ switch (l) {
383
+ case "\\":
384
+ case "'":
385
+ return s.next(), `\\${l}`;
386
+ case "u":
387
+ return Ke(s, l, 4);
388
+ case "U":
389
+ return Ke(s, l, 6);
390
+ default:
391
+ return O($.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, l), "";
392
+ }
393
+ }
394
+ function Ke(s, l, b) {
395
+ k(s, l);
396
+ let D = "";
397
+ for (let q = 0; q < b; q++) {
398
+ const F = Be(s);
399
+ if (!F) {
400
+ O($.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${l}${D}${s.currentChar()}`);
401
+ break;
402
+ }
403
+ D += F;
404
+ }
405
+ return `\\${l}${D}`;
406
+ }
407
+ function _t(s) {
408
+ return s !== "{" && s !== "}" && s !== me && s !== ne;
409
+ }
410
+ function pt(s) {
411
+ y(s);
412
+ let l = "", b = "";
413
+ for (; l = C(s, _t); )
414
+ b += l;
415
+ return b;
416
+ }
417
+ function Et(s) {
418
+ let l = "", b = "";
419
+ for (; l = ot(s); )
420
+ b += l;
421
+ return b;
422
+ }
423
+ function gt(s) {
424
+ const l = (b) => {
425
+ const D = s.currentChar();
426
+ return D === "{" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === me ? b : (b += D, s.next(), l(b));
427
+ };
428
+ return l("");
429
+ }
430
+ function Pe(s) {
431
+ y(s);
432
+ const l = k(
433
+ s,
434
+ "|"
435
+ /* TokenChars.Pipe */
436
+ );
437
+ return y(s), l;
438
+ }
439
+ function Re(s, l) {
440
+ let b = null;
441
+ switch (s.currentChar()) {
442
+ case "{":
443
+ return l.braceNest >= 1 && O($.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), s.next(), b = p(
444
+ l,
445
+ 2,
446
+ "{"
447
+ /* TokenChars.BraceLeft */
448
+ ), y(s), l.braceNest++, b;
449
+ case "}":
450
+ return l.braceNest > 0 && l.currentType === 2 && O($.EMPTY_PLACEHOLDER, a(), 0), s.next(), b = p(
451
+ l,
452
+ 3,
453
+ "}"
454
+ /* TokenChars.BraceRight */
455
+ ), l.braceNest--, l.braceNest > 0 && y(s), l.inLinked && l.braceNest === 0 && (l.inLinked = !1), b;
456
+ case "@":
457
+ return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), b = Ae(s, l) || f(l), l.braceNest = 0, b;
458
+ default: {
459
+ let q = !0, F = !0, d = !0;
460
+ if (w(s))
461
+ return l.braceNest > 0 && O($.UNTERMINATED_CLOSING_BRACE, a(), 0), b = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, b;
462
+ if (l.braceNest > 0 && (l.currentType === 4 || l.currentType === 5 || l.currentType === 6))
463
+ return O($.UNTERMINATED_CLOSING_BRACE, a(), 0), l.braceNest = 0, De(s, l);
464
+ if (q = N(s, l))
465
+ return b = p(l, 4, ct(s)), y(s), b;
466
+ if (F = E(s, l))
467
+ return b = p(l, 5, mt(s)), y(s), b;
468
+ if (d = R(s, l))
469
+ return b = p(l, 6, ft(s)), y(s), b;
470
+ if (!q && !F && !d)
471
+ return b = p(l, 12, pt(s)), O($.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, b.value), y(s), b;
472
+ break;
473
+ }
474
+ }
475
+ return b;
476
+ }
477
+ function Ae(s, l) {
478
+ const { currentType: b } = l;
479
+ let D = null;
480
+ const q = s.currentChar();
481
+ switch ((b === 7 || b === 8 || b === 11 || b === 9) && (q === ne || q === me) && O($.INVALID_LINKED_FORMAT, a(), 0), q) {
482
+ case "@":
483
+ return s.next(), D = p(
484
+ l,
485
+ 7,
486
+ "@"
487
+ /* TokenChars.LinkedAlias */
488
+ ), l.inLinked = !0, D;
489
+ case ".":
490
+ return y(s), s.next(), p(
491
+ l,
492
+ 8,
493
+ "."
494
+ /* TokenChars.LinkedDot */
495
+ );
496
+ case ":":
497
+ return y(s), s.next(), p(
498
+ l,
499
+ 9,
500
+ ":"
501
+ /* TokenChars.LinkedDelimiter */
502
+ );
503
+ default:
504
+ return w(s) ? (D = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, D) : A(s, l) || L(s, l) ? (y(s), Ae(s, l)) : _(s, l) ? (y(s), p(l, 11, Et(s))) : P(s, l) ? (y(s), q === "{" ? Re(s, l) || D : p(l, 10, gt(s))) : (b === 7 && O($.INVALID_LINKED_FORMAT, a(), 0), l.braceNest = 0, l.inLinked = !1, De(s, l));
505
+ }
506
+ }
507
+ function De(s, l) {
508
+ let b = {
509
+ type: 13
510
+ /* TokenTypes.EOF */
511
+ };
512
+ if (l.braceNest > 0)
513
+ return Re(s, l) || f(l);
514
+ if (l.inLinked)
515
+ return Ae(s, l) || f(l);
516
+ switch (s.currentChar()) {
517
+ case "{":
518
+ return Re(s, l) || f(l);
519
+ case "}":
520
+ return O($.UNBALANCED_CLOSING_BRACE, a(), 0), s.next(), p(
521
+ l,
522
+ 3,
523
+ "}"
524
+ /* TokenChars.BraceRight */
525
+ );
526
+ case "@":
527
+ return Ae(s, l) || f(l);
528
+ default: {
529
+ if (w(s))
530
+ return b = p(l, 1, Pe(s)), l.braceNest = 0, l.inLinked = !1, b;
531
+ if (B(s))
532
+ return p(l, 0, it(s));
533
+ break;
534
+ }
535
+ }
536
+ return b;
537
+ }
538
+ function yt() {
539
+ const { currentType: s, offset: l, startLoc: b, endLoc: D } = c;
540
+ return c.lastType = s, c.lastOffset = l, c.lastStartLoc = b, c.lastEndLoc = D, c.offset = o(), c.startLoc = a(), r.currentChar() === ge ? p(
541
+ c,
542
+ 13
543
+ /* TokenTypes.EOF */
544
+ ) : De(r, c);
545
+ }
546
+ return {
547
+ nextToken: yt,
548
+ currentOffset: o,
549
+ currentPosition: a,
550
+ context: g
551
+ };
552
+ }
553
+ const vr = "parser", br = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
554
+ function hr(e, t, n) {
555
+ switch (e) {
556
+ case "\\\\":
557
+ return "\\";
558
+ // eslint-disable-next-line no-useless-escape
559
+ case "\\'":
560
+ return "'";
561
+ default: {
562
+ const r = parseInt(t || n, 16);
563
+ return r <= 55295 || r >= 57344 ? String.fromCodePoint(r) : "�";
564
+ }
565
+ }
566
+ }
567
+ function Tr(e = {}) {
568
+ const t = e.location !== !1, { onError: n } = e;
569
+ function r(u, v, N, E, ...R) {
570
+ const A = u.currentPosition();
571
+ if (A.offset += E, A.column += E, n) {
572
+ const _ = t ? It(N, A) : null, L = nt(v, _, {
573
+ domain: vr,
574
+ args: R
575
+ });
576
+ n(L);
577
+ }
578
+ }
579
+ function o(u, v, N) {
580
+ const E = { type: u };
581
+ return t && (E.start = v, E.end = v, E.loc = { start: N, end: N }), E;
582
+ }
583
+ function a(u, v, N, E) {
584
+ t && (u.end = v, u.loc && (u.loc.end = N));
585
+ }
586
+ function i(u, v) {
587
+ const N = u.context(), E = o(3, N.offset, N.startLoc);
588
+ return E.value = v, a(E, u.currentOffset(), u.currentPosition()), E;
589
+ }
590
+ function m(u, v) {
591
+ const N = u.context(), { lastOffset: E, lastStartLoc: R } = N, A = o(5, E, R);
592
+ return A.index = parseInt(v, 10), u.nextToken(), a(A, u.currentOffset(), u.currentPosition()), A;
593
+ }
594
+ function c(u, v) {
595
+ const N = u.context(), { lastOffset: E, lastStartLoc: R } = N, A = o(4, E, R);
596
+ return A.key = v, u.nextToken(), a(A, u.currentOffset(), u.currentPosition()), A;
597
+ }
598
+ function g(u, v) {
599
+ const N = u.context(), { lastOffset: E, lastStartLoc: R } = N, A = o(9, E, R);
600
+ return A.value = v.replace(br, hr), u.nextToken(), a(A, u.currentOffset(), u.currentPosition()), A;
601
+ }
602
+ function h(u) {
603
+ const v = u.nextToken(), N = u.context(), { lastOffset: E, lastStartLoc: R } = N, A = o(8, E, R);
604
+ return v.type !== 11 ? (r(u, $.UNEXPECTED_EMPTY_LINKED_MODIFIER, N.lastStartLoc, 0), A.value = "", a(A, E, R), {
605
+ nextConsumeToken: v,
606
+ node: A
607
+ }) : (v.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, ue(v)), A.value = v.value || "", a(A, u.currentOffset(), u.currentPosition()), {
608
+ node: A
609
+ });
610
+ }
611
+ function O(u, v) {
612
+ const N = u.context(), E = o(7, N.offset, N.startLoc);
613
+ return E.value = v, a(E, u.currentOffset(), u.currentPosition()), E;
614
+ }
615
+ function p(u) {
616
+ const v = u.context(), N = o(6, v.offset, v.startLoc);
617
+ let E = u.nextToken();
618
+ if (E.type === 8) {
619
+ const R = h(u);
620
+ N.modifier = R.node, E = R.nextConsumeToken || u.nextToken();
621
+ }
622
+ switch (E.type !== 9 && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(E)), E = u.nextToken(), E.type === 2 && (E = u.nextToken()), E.type) {
623
+ case 10:
624
+ E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(E)), N.key = O(u, E.value || "");
625
+ break;
626
+ case 4:
627
+ E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(E)), N.key = c(u, E.value || "");
628
+ break;
629
+ case 5:
630
+ E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(E)), N.key = m(u, E.value || "");
631
+ break;
632
+ case 6:
633
+ E.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(E)), N.key = g(u, E.value || "");
634
+ break;
635
+ default: {
636
+ r(u, $.UNEXPECTED_EMPTY_LINKED_KEY, v.lastStartLoc, 0);
637
+ const R = u.context(), A = o(7, R.offset, R.startLoc);
638
+ return A.value = "", a(A, R.offset, R.startLoc), N.key = A, a(N, R.offset, R.startLoc), {
639
+ nextConsumeToken: E,
640
+ node: N
641
+ };
642
+ }
643
+ }
644
+ return a(N, u.currentOffset(), u.currentPosition()), {
645
+ node: N
646
+ };
647
+ }
648
+ function f(u) {
649
+ const v = u.context(), N = v.currentType === 1 ? u.currentOffset() : v.offset, E = v.currentType === 1 ? v.endLoc : v.startLoc, R = o(2, N, E);
650
+ R.items = [];
651
+ let A = null;
652
+ do {
653
+ const P = A || u.nextToken();
654
+ switch (A = null, P.type) {
655
+ case 0:
656
+ P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(P)), R.items.push(i(u, P.value || ""));
657
+ break;
658
+ case 5:
659
+ P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(P)), R.items.push(m(u, P.value || ""));
660
+ break;
661
+ case 4:
662
+ P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(P)), R.items.push(c(u, P.value || ""));
663
+ break;
664
+ case 6:
665
+ P.value == null && r(u, $.UNEXPECTED_LEXICAL_ANALYSIS, v.lastStartLoc, 0, ue(P)), R.items.push(g(u, P.value || ""));
666
+ break;
667
+ case 7: {
668
+ const w = p(u);
669
+ R.items.push(w.node), A = w.nextConsumeToken || null;
670
+ break;
671
+ }
672
+ }
673
+ } while (v.currentType !== 13 && v.currentType !== 1);
674
+ const _ = v.currentType === 1 ? v.lastOffset : u.currentOffset(), L = v.currentType === 1 ? v.lastEndLoc : u.currentPosition();
675
+ return a(R, _, L), R;
676
+ }
677
+ function k(u, v, N, E) {
678
+ const R = u.context();
679
+ let A = E.items.length === 0;
680
+ const _ = o(1, v, N);
681
+ _.cases = [], _.cases.push(E);
682
+ do {
683
+ const L = f(u);
684
+ A || (A = L.items.length === 0), _.cases.push(L);
685
+ } while (R.currentType !== 13);
686
+ return A && r(u, $.MUST_HAVE_MESSAGES_IN_PLURAL, N, 0), a(_, u.currentOffset(), u.currentPosition()), _;
687
+ }
688
+ function T(u) {
689
+ const v = u.context(), { offset: N, startLoc: E } = v, R = f(u);
690
+ return v.currentType === 13 ? R : k(u, N, E, R);
691
+ }
692
+ function y(u) {
693
+ const v = yr(u, te({}, e)), N = v.context(), E = o(0, N.offset, N.startLoc);
694
+ return t && E.loc && (E.loc.source = u), E.body = T(v), e.onCacheKey && (E.cacheKey = e.onCacheKey(u)), N.currentType !== 13 && r(v, $.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, u[N.offset] || ""), a(E, v.currentOffset(), v.currentPosition()), E;
695
+ }
696
+ return { parse: y };
697
+ }
698
+ function ue(e) {
699
+ if (e.type === 13)
700
+ return "EOF";
701
+ const t = (e.value || "").replace(/\r?\n/gu, "\\n");
702
+ return t.length > 10 ? t.slice(0, 9) + "…" : t;
703
+ }
704
+ function Ir(e, t = {}) {
705
+ const n = {
706
+ ast: e,
707
+ helpers: /* @__PURE__ */ new Set()
708
+ };
709
+ return { context: () => n, helper: (a) => (n.helpers.add(a), a) };
710
+ }
711
+ function Jt(e, t) {
712
+ for (let n = 0; n < e.length; n++)
713
+ Ut(e[n], t);
714
+ }
715
+ function Ut(e, t) {
716
+ switch (e.type) {
717
+ case 1:
718
+ Jt(e.cases, t), t.helper(
719
+ "plural"
720
+ /* HelperNameMap.PLURAL */
721
+ );
722
+ break;
723
+ case 2:
724
+ Jt(e.items, t);
725
+ break;
726
+ case 6: {
727
+ Ut(e.key, t), t.helper(
728
+ "linked"
729
+ /* HelperNameMap.LINKED */
730
+ ), t.helper(
731
+ "type"
732
+ /* HelperNameMap.TYPE */
733
+ );
734
+ break;
735
+ }
736
+ case 5:
737
+ t.helper(
738
+ "interpolate"
739
+ /* HelperNameMap.INTERPOLATE */
740
+ ), t.helper(
741
+ "list"
742
+ /* HelperNameMap.LIST */
743
+ );
744
+ break;
745
+ case 4:
746
+ t.helper(
747
+ "interpolate"
748
+ /* HelperNameMap.INTERPOLATE */
749
+ ), t.helper(
750
+ "named"
751
+ /* HelperNameMap.NAMED */
752
+ );
753
+ break;
754
+ }
755
+ }
756
+ function Nr(e, t = {}) {
757
+ const n = Ir(e);
758
+ n.helper(
759
+ "normalize"
760
+ /* HelperNameMap.NORMALIZE */
761
+ ), e.body && Ut(e.body, n);
762
+ const r = n.context();
763
+ e.helpers = Array.from(r.helpers);
764
+ }
765
+ function Rr(e) {
766
+ const t = e.body;
767
+ return t.type === 2 ? Qt(t) : t.cases.forEach((n) => Qt(n)), e;
768
+ }
769
+ function Qt(e) {
770
+ if (e.items.length === 1) {
771
+ const t = e.items[0];
772
+ (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
773
+ } else {
774
+ const t = [];
775
+ for (let n = 0; n < e.items.length; n++) {
776
+ const r = e.items[n];
777
+ if (!(r.type === 3 || r.type === 9) || r.value == null)
778
+ break;
779
+ t.push(r.value);
780
+ }
781
+ if (t.length === e.items.length) {
782
+ e.static = Mt(t);
783
+ for (let n = 0; n < e.items.length; n++) {
784
+ const r = e.items[n];
785
+ (r.type === 3 || r.type === 9) && delete r.value;
786
+ }
787
+ }
788
+ }
789
+ }
790
+ function Oe(e) {
791
+ switch (e.t = e.type, e.type) {
792
+ case 0: {
793
+ const t = e;
794
+ Oe(t.body), t.b = t.body, delete t.body;
795
+ break;
796
+ }
797
+ case 1: {
798
+ const t = e, n = t.cases;
799
+ for (let r = 0; r < n.length; r++)
800
+ Oe(n[r]);
801
+ t.c = n, delete t.cases;
802
+ break;
803
+ }
804
+ case 2: {
805
+ const t = e, n = t.items;
806
+ for (let r = 0; r < n.length; r++)
807
+ Oe(n[r]);
808
+ t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
809
+ break;
810
+ }
811
+ case 3:
812
+ case 9:
813
+ case 8:
814
+ case 7: {
815
+ const t = e;
816
+ t.value && (t.v = t.value, delete t.value);
817
+ break;
818
+ }
819
+ case 6: {
820
+ const t = e;
821
+ Oe(t.key), t.k = t.key, delete t.key, t.modifier && (Oe(t.modifier), t.m = t.modifier, delete t.modifier);
822
+ break;
823
+ }
824
+ case 5: {
825
+ const t = e;
826
+ t.i = t.index, delete t.index;
827
+ break;
828
+ }
829
+ case 4: {
830
+ const t = e;
831
+ t.k = t.key, delete t.key;
832
+ break;
833
+ }
834
+ }
835
+ delete e.type;
836
+ }
837
+ function Ar(e, t) {
838
+ const { filename: n, breakLineCode: r, needIndent: o } = t, a = t.location !== !1, i = {
839
+ filename: n,
840
+ code: "",
841
+ column: 1,
842
+ line: 1,
843
+ offset: 0,
844
+ map: void 0,
845
+ breakLineCode: r,
846
+ needIndent: o,
847
+ indentLevel: 0
848
+ };
849
+ a && e.loc && (i.source = e.loc.source);
850
+ const m = () => i;
851
+ function c(T, y) {
852
+ i.code += T;
853
+ }
854
+ function g(T, y = !0) {
855
+ const u = y ? r : "";
856
+ c(o ? u + " ".repeat(T) : u);
857
+ }
858
+ function h(T = !0) {
859
+ const y = ++i.indentLevel;
860
+ T && g(y);
861
+ }
862
+ function O(T = !0) {
863
+ const y = --i.indentLevel;
864
+ T && g(y);
865
+ }
866
+ function p() {
867
+ g(i.indentLevel);
868
+ }
869
+ return {
870
+ context: m,
871
+ push: c,
872
+ indent: h,
873
+ deindent: O,
874
+ newline: p,
875
+ helper: (T) => `_${T}`,
876
+ needIndent: () => i.needIndent
877
+ };
878
+ }
879
+ function Lr(e, t) {
880
+ const { helper: n } = e;
881
+ e.push(`${n(
882
+ "linked"
883
+ /* HelperNameMap.LINKED */
884
+ )}(`), Ce(e, t.key), t.modifier ? (e.push(", "), Ce(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
885
+ }
886
+ function Or(e, t) {
887
+ const { helper: n, needIndent: r } = e;
888
+ e.push(`${n(
889
+ "normalize"
890
+ /* HelperNameMap.NORMALIZE */
891
+ )}([`), e.indent(r());
892
+ const o = t.items.length;
893
+ for (let a = 0; a < o && (Ce(e, t.items[a]), a !== o - 1); a++)
894
+ e.push(", ");
895
+ e.deindent(r()), e.push("])");
896
+ }
897
+ function Cr(e, t) {
898
+ const { helper: n, needIndent: r } = e;
899
+ if (t.cases.length > 1) {
900
+ e.push(`${n(
901
+ "plural"
902
+ /* HelperNameMap.PLURAL */
903
+ )}([`), e.indent(r());
904
+ const o = t.cases.length;
905
+ for (let a = 0; a < o && (Ce(e, t.cases[a]), a !== o - 1); a++)
906
+ e.push(", ");
907
+ e.deindent(r()), e.push("])");
908
+ }
909
+ }
910
+ function kr(e, t) {
911
+ t.body ? Ce(e, t.body) : e.push("null");
912
+ }
913
+ function Ce(e, t) {
914
+ const { helper: n } = e;
915
+ switch (t.type) {
916
+ case 0:
917
+ kr(e, t);
918
+ break;
919
+ case 1:
920
+ Cr(e, t);
921
+ break;
922
+ case 2:
923
+ Or(e, t);
924
+ break;
925
+ case 6:
926
+ Lr(e, t);
927
+ break;
928
+ case 8:
929
+ e.push(JSON.stringify(t.value), t);
930
+ break;
931
+ case 7:
932
+ e.push(JSON.stringify(t.value), t);
933
+ break;
934
+ case 5:
935
+ e.push(`${n(
936
+ "interpolate"
937
+ /* HelperNameMap.INTERPOLATE */
938
+ )}(${n(
939
+ "list"
940
+ /* HelperNameMap.LIST */
941
+ )}(${t.index}))`, t);
942
+ break;
943
+ case 4:
944
+ e.push(`${n(
945
+ "interpolate"
946
+ /* HelperNameMap.INTERPOLATE */
947
+ )}(${n(
948
+ "named"
949
+ /* HelperNameMap.NAMED */
950
+ )}(${JSON.stringify(t.key)}))`, t);
951
+ break;
952
+ case 9:
953
+ e.push(JSON.stringify(t.value), t);
954
+ break;
955
+ case 3:
956
+ e.push(JSON.stringify(t.value), t);
957
+ break;
958
+ }
959
+ }
960
+ const Sr = (e, t = {}) => {
961
+ const n = S(t.mode) ? t.mode : "normal", r = S(t.filename) ? t.filename : "message.intl";
962
+ t.sourceMap;
963
+ const o = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
964
+ `, a = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], m = Ar(e, {
965
+ filename: r,
966
+ breakLineCode: o,
967
+ needIndent: a
968
+ });
969
+ m.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), m.indent(a), i.length > 0 && (m.push(`const { ${Mt(i.map((h) => `${h}: _${h}`), ", ")} } = ctx`), m.newline()), m.push("return "), Ce(m, e), m.deindent(a), m.push("}"), delete e.helpers;
970
+ const { code: c, map: g } = m.context();
971
+ return {
972
+ ast: e,
973
+ code: c,
974
+ map: g ? g.toJSON() : void 0
975
+ // eslint-disable-line @typescript-eslint/no-explicit-any
976
+ };
977
+ };
978
+ function Pr(e, t = {}) {
979
+ const n = te({}, t), r = !!n.jit, o = !!n.minify, a = n.optimize == null ? !0 : n.optimize, m = Tr(n).parse(e);
980
+ return r ? (a && Rr(m), o && Oe(m), { ast: m, code: "" }) : (Nr(m, n), Sr(m, n));
981
+ }
982
+ var Dr = { env: { NODE_ENV: "production" } };
983
+ function wr() {
984
+ typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Te().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Te().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
985
+ }
986
+ function bt(e) {
987
+ return (n) => Fr(n, e);
988
+ }
989
+ function Fr(e, t) {
990
+ const n = Ur(t);
991
+ if (n == null)
992
+ throw Ue(
993
+ 0
994
+ /* NodeTypes.Resource */
995
+ );
996
+ if (Vt(n) === 1) {
997
+ const a = $r(n);
998
+ return e.plural(a.reduce((i, m) => [
999
+ ...i,
1000
+ Zt(e, m)
1001
+ ], []));
1002
+ } else
1003
+ return Zt(e, n);
1004
+ }
1005
+ const Mr = ["b", "body"];
1006
+ function Ur(e) {
1007
+ return ye(e, Mr);
1008
+ }
1009
+ const Vr = ["c", "cases"];
1010
+ function $r(e) {
1011
+ return ye(e, Vr, []);
1012
+ }
1013
+ function Zt(e, t) {
1014
+ const n = Gr(t);
1015
+ if (n != null)
1016
+ return e.type === "text" ? n : e.normalize([n]);
1017
+ {
1018
+ const r = Br(t).reduce((o, a) => [...o, Nt(e, a)], []);
1019
+ return e.normalize(r);
1020
+ }
1021
+ }
1022
+ const Hr = ["s", "static"];
1023
+ function Gr(e) {
1024
+ return ye(e, Hr);
1025
+ }
1026
+ const Wr = ["i", "items"];
1027
+ function Br(e) {
1028
+ return ye(e, Wr, []);
1029
+ }
1030
+ function Nt(e, t) {
1031
+ const n = Vt(t);
1032
+ switch (n) {
1033
+ case 3:
1034
+ return Xe(t, n);
1035
+ case 9:
1036
+ return Xe(t, n);
1037
+ case 4: {
1038
+ const r = t;
1039
+ if (le(r, "k") && r.k)
1040
+ return e.interpolate(e.named(r.k));
1041
+ if (le(r, "key") && r.key)
1042
+ return e.interpolate(e.named(r.key));
1043
+ throw Ue(n);
1044
+ }
1045
+ case 5: {
1046
+ const r = t;
1047
+ if (le(r, "i") && ee(r.i))
1048
+ return e.interpolate(e.list(r.i));
1049
+ if (le(r, "index") && ee(r.index))
1050
+ return e.interpolate(e.list(r.index));
1051
+ throw Ue(n);
1052
+ }
1053
+ case 6: {
1054
+ const r = t, o = jr(r), a = qr(r);
1055
+ return e.linked(Nt(e, a), o ? Nt(e, o) : void 0, e.type);
1056
+ }
1057
+ case 7:
1058
+ return Xe(t, n);
1059
+ case 8:
1060
+ return Xe(t, n);
1061
+ default:
1062
+ throw new Error(`unhandled node on format message part: ${n}`);
1063
+ }
1064
+ }
1065
+ const xr = ["t", "type"];
1066
+ function Vt(e) {
1067
+ return ye(e, xr);
1068
+ }
1069
+ const Kr = ["v", "value"];
1070
+ function Xe(e, t) {
1071
+ const n = ye(e, Kr);
1072
+ if (n)
1073
+ return n;
1074
+ throw Ue(t);
1075
+ }
1076
+ const Yr = ["m", "modifier"];
1077
+ function jr(e) {
1078
+ return ye(e, Yr);
1079
+ }
1080
+ const Xr = ["k", "key"];
1081
+ function qr(e) {
1082
+ const t = ye(e, Xr);
1083
+ if (t)
1084
+ return t;
1085
+ throw Ue(
1086
+ 6
1087
+ /* NodeTypes.Linked */
1088
+ );
1089
+ }
1090
+ function ye(e, t, n) {
1091
+ for (let r = 0; r < t.length; r++) {
1092
+ const o = t[r];
1093
+ if (le(e, o) && e[o] != null)
1094
+ return e[o];
1095
+ }
1096
+ return n;
1097
+ }
1098
+ function Ue(e) {
1099
+ return new Error(`unhandled node type: ${e}`);
1100
+ }
1101
+ const Jr = (e) => e;
1102
+ let qe = H();
1103
+ function ke(e) {
1104
+ return U(e) && Vt(e) === 0 && (le(e, "b") || le(e, "body"));
1105
+ }
1106
+ function Qr(e, t = {}) {
1107
+ let n = !1;
1108
+ const r = t.onError || mr;
1109
+ return t.onError = (o) => {
1110
+ n = !0, r(o);
1111
+ }, { ...Pr(e, t), detectError: n };
1112
+ }
1113
+ // @__NO_SIDE_EFFECTS__
1114
+ function Zr(e, t) {
1115
+ if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && S(e)) {
1116
+ Q(t.warnHtmlMessage) && t.warnHtmlMessage;
1117
+ const r = (t.onCacheKey || Jr)(e), o = qe[r];
1118
+ if (o)
1119
+ return o;
1120
+ const { ast: a, detectError: i } = Qr(e, {
1121
+ ...t,
1122
+ location: Dr.env.NODE_ENV !== "production",
1123
+ jit: !0
1124
+ }), m = bt(a);
1125
+ return i ? m : qe[r] = m;
1126
+ } else {
1127
+ const n = e.cacheKey;
1128
+ if (n) {
1129
+ const r = qe[n];
1130
+ return r || (qe[n] = bt(e));
1131
+ } else
1132
+ return bt(e);
1133
+ }
1134
+ }
1135
+ let Ve = null;
1136
+ function zr(e) {
1137
+ Ve = e;
1138
+ }
1139
+ function eo(e, t, n) {
1140
+ Ve && Ve.emit("i18n:init", {
1141
+ timestamp: Date.now(),
1142
+ i18n: e,
1143
+ version: t,
1144
+ meta: n
1145
+ });
1146
+ }
1147
+ const to = /* @__PURE__ */ no("function:translate");
1148
+ function no(e) {
1149
+ return (t) => Ve && Ve.emit(e, t);
1150
+ }
1151
+ const fe = {
1152
+ INVALID_ARGUMENT: cr,
1153
+ // 17
1154
+ INVALID_DATE_ARGUMENT: 18,
1155
+ INVALID_ISO_DATE_ARGUMENT: 19,
1156
+ NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1157
+ NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1158
+ NOT_SUPPORT_LOCALE_TYPE: 23
1159
+ }, ro = 24;
1160
+ function de(e) {
1161
+ return nt(e, null, void 0);
1162
+ }
1163
+ function $t(e, t) {
1164
+ return t.locale != null ? zt(t.locale) : zt(e.locale);
1165
+ }
1166
+ let ht;
1167
+ function zt(e) {
1168
+ if (S(e))
1169
+ return e;
1170
+ if (Y(e)) {
1171
+ if (e.resolvedOnce && ht != null)
1172
+ return ht;
1173
+ if (e.constructor.name === "Function") {
1174
+ const t = e();
1175
+ if (sr(t))
1176
+ throw de(fe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1177
+ return ht = t;
1178
+ } else
1179
+ throw de(fe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1180
+ } else
1181
+ throw de(fe.NOT_SUPPORT_LOCALE_TYPE);
1182
+ }
1183
+ function oo(e, t, n) {
1184
+ return [.../* @__PURE__ */ new Set([
1185
+ n,
1186
+ ...z(t) ? t : U(t) ? Object.keys(t) : S(t) ? [t] : [n]
1187
+ ])];
1188
+ }
1189
+ function Nn(e, t, n) {
1190
+ const r = S(n) ? n : et, o = e;
1191
+ o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
1192
+ let a = o.__localeChainCache.get(r);
1193
+ if (!a) {
1194
+ a = [];
1195
+ let i = [n];
1196
+ for (; z(i); )
1197
+ i = en(a, i, t);
1198
+ const m = z(t) || !M(t) ? t : t.default ? t.default : null;
1199
+ i = S(m) ? [m] : m, z(i) && en(a, i, !1), o.__localeChainCache.set(r, a);
1200
+ }
1201
+ return a;
1202
+ }
1203
+ function en(e, t, n) {
1204
+ let r = !0;
1205
+ for (let o = 0; o < t.length && Q(r); o++) {
1206
+ const a = t[o];
1207
+ S(a) && (r = ao(e, t[o], n));
1208
+ }
1209
+ return r;
1210
+ }
1211
+ function ao(e, t, n) {
1212
+ let r;
1213
+ const o = t.split("-");
1214
+ do {
1215
+ const a = o.join("-");
1216
+ r = so(e, a, n), o.splice(-1, 1);
1217
+ } while (o.length && r === !0);
1218
+ return r;
1219
+ }
1220
+ function so(e, t, n) {
1221
+ let r = !1;
1222
+ if (!e.includes(t) && (r = !0, t)) {
1223
+ r = t[t.length - 1] !== "!";
1224
+ const o = t.replace(/!/g, "");
1225
+ e.push(o), (z(n) || M(n)) && n[o] && (r = n[o]);
1226
+ }
1227
+ return r;
1228
+ }
1229
+ const ve = [];
1230
+ ve[
1231
+ 0
1232
+ /* States.BEFORE_PATH */
1233
+ ] = {
1234
+ w: [
1235
+ 0
1236
+ /* States.BEFORE_PATH */
1237
+ ],
1238
+ i: [
1239
+ 3,
1240
+ 0
1241
+ /* Actions.APPEND */
1242
+ ],
1243
+ "[": [
1244
+ 4
1245
+ /* States.IN_SUB_PATH */
1246
+ ],
1247
+ o: [
1248
+ 7
1249
+ /* States.AFTER_PATH */
1250
+ ]
1251
+ };
1252
+ ve[
1253
+ 1
1254
+ /* States.IN_PATH */
1255
+ ] = {
1256
+ w: [
1257
+ 1
1258
+ /* States.IN_PATH */
1259
+ ],
1260
+ ".": [
1261
+ 2
1262
+ /* States.BEFORE_IDENT */
1263
+ ],
1264
+ "[": [
1265
+ 4
1266
+ /* States.IN_SUB_PATH */
1267
+ ],
1268
+ o: [
1269
+ 7
1270
+ /* States.AFTER_PATH */
1271
+ ]
1272
+ };
1273
+ ve[
1274
+ 2
1275
+ /* States.BEFORE_IDENT */
1276
+ ] = {
1277
+ w: [
1278
+ 2
1279
+ /* States.BEFORE_IDENT */
1280
+ ],
1281
+ i: [
1282
+ 3,
1283
+ 0
1284
+ /* Actions.APPEND */
1285
+ ],
1286
+ 0: [
1287
+ 3,
1288
+ 0
1289
+ /* Actions.APPEND */
1290
+ ]
1291
+ };
1292
+ ve[
1293
+ 3
1294
+ /* States.IN_IDENT */
1295
+ ] = {
1296
+ i: [
1297
+ 3,
1298
+ 0
1299
+ /* Actions.APPEND */
1300
+ ],
1301
+ 0: [
1302
+ 3,
1303
+ 0
1304
+ /* Actions.APPEND */
1305
+ ],
1306
+ w: [
1307
+ 1,
1308
+ 1
1309
+ /* Actions.PUSH */
1310
+ ],
1311
+ ".": [
1312
+ 2,
1313
+ 1
1314
+ /* Actions.PUSH */
1315
+ ],
1316
+ "[": [
1317
+ 4,
1318
+ 1
1319
+ /* Actions.PUSH */
1320
+ ],
1321
+ o: [
1322
+ 7,
1323
+ 1
1324
+ /* Actions.PUSH */
1325
+ ]
1326
+ };
1327
+ ve[
1328
+ 4
1329
+ /* States.IN_SUB_PATH */
1330
+ ] = {
1331
+ "'": [
1332
+ 5,
1333
+ 0
1334
+ /* Actions.APPEND */
1335
+ ],
1336
+ '"': [
1337
+ 6,
1338
+ 0
1339
+ /* Actions.APPEND */
1340
+ ],
1341
+ "[": [
1342
+ 4,
1343
+ 2
1344
+ /* Actions.INC_SUB_PATH_DEPTH */
1345
+ ],
1346
+ "]": [
1347
+ 1,
1348
+ 3
1349
+ /* Actions.PUSH_SUB_PATH */
1350
+ ],
1351
+ o: 8,
1352
+ l: [
1353
+ 4,
1354
+ 0
1355
+ /* Actions.APPEND */
1356
+ ]
1357
+ };
1358
+ ve[
1359
+ 5
1360
+ /* States.IN_SINGLE_QUOTE */
1361
+ ] = {
1362
+ "'": [
1363
+ 4,
1364
+ 0
1365
+ /* Actions.APPEND */
1366
+ ],
1367
+ o: 8,
1368
+ l: [
1369
+ 5,
1370
+ 0
1371
+ /* Actions.APPEND */
1372
+ ]
1373
+ };
1374
+ ve[
1375
+ 6
1376
+ /* States.IN_DOUBLE_QUOTE */
1377
+ ] = {
1378
+ '"': [
1379
+ 4,
1380
+ 0
1381
+ /* Actions.APPEND */
1382
+ ],
1383
+ o: 8,
1384
+ l: [
1385
+ 6,
1386
+ 0
1387
+ /* Actions.APPEND */
1388
+ ]
1389
+ };
1390
+ const lo = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1391
+ function uo(e) {
1392
+ return lo.test(e);
1393
+ }
1394
+ function io(e) {
1395
+ const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
1396
+ return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1397
+ }
1398
+ function co(e) {
1399
+ if (e == null)
1400
+ return "o";
1401
+ switch (e.charCodeAt(0)) {
1402
+ case 91:
1403
+ // [
1404
+ case 93:
1405
+ // ]
1406
+ case 46:
1407
+ // .
1408
+ case 34:
1409
+ // "
1410
+ case 39:
1411
+ return e;
1412
+ case 95:
1413
+ // _
1414
+ case 36:
1415
+ // $
1416
+ case 45:
1417
+ return "i";
1418
+ case 9:
1419
+ // Tab (HT)
1420
+ case 10:
1421
+ // Newline (LF)
1422
+ case 13:
1423
+ // Return (CR)
1424
+ case 160:
1425
+ // No-break space (NBSP)
1426
+ case 65279:
1427
+ // Byte Order Mark (BOM)
1428
+ case 8232:
1429
+ // Line Separator (LS)
1430
+ case 8233:
1431
+ return "w";
1432
+ }
1433
+ return "i";
1434
+ }
1435
+ function mo(e) {
1436
+ const t = e.trim();
1437
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : uo(t) ? io(t) : "*" + t;
1438
+ }
1439
+ function fo(e) {
1440
+ const t = [];
1441
+ let n = -1, r = 0, o = 0, a, i, m, c, g, h, O;
1442
+ const p = [];
1443
+ p[
1444
+ 0
1445
+ /* Actions.APPEND */
1446
+ ] = () => {
1447
+ i === void 0 ? i = m : i += m;
1448
+ }, p[
1449
+ 1
1450
+ /* Actions.PUSH */
1451
+ ] = () => {
1452
+ i !== void 0 && (t.push(i), i = void 0);
1453
+ }, p[
1454
+ 2
1455
+ /* Actions.INC_SUB_PATH_DEPTH */
1456
+ ] = () => {
1457
+ p[
1458
+ 0
1459
+ /* Actions.APPEND */
1460
+ ](), o++;
1461
+ }, p[
1462
+ 3
1463
+ /* Actions.PUSH_SUB_PATH */
1464
+ ] = () => {
1465
+ if (o > 0)
1466
+ o--, r = 4, p[
1467
+ 0
1468
+ /* Actions.APPEND */
1469
+ ]();
1470
+ else {
1471
+ if (o = 0, i === void 0 || (i = mo(i), i === !1))
1472
+ return !1;
1473
+ p[
1474
+ 1
1475
+ /* Actions.PUSH */
1476
+ ]();
1477
+ }
1478
+ };
1479
+ function f() {
1480
+ const k = e[n + 1];
1481
+ if (r === 5 && k === "'" || r === 6 && k === '"')
1482
+ return n++, m = "\\" + k, p[
1483
+ 0
1484
+ /* Actions.APPEND */
1485
+ ](), !0;
1486
+ }
1487
+ for (; r !== null; )
1488
+ if (n++, a = e[n], !(a === "\\" && f())) {
1489
+ if (c = co(a), O = ve[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
+ return;
1491
+ if (r === 7)
1492
+ return t;
1493
+ }
1494
+ }
1495
+ const tn = /* @__PURE__ */ new Map();
1496
+ function _o(e, t) {
1497
+ return U(e) ? e[t] : null;
1498
+ }
1499
+ function po(e, t) {
1500
+ if (!U(e))
1501
+ return null;
1502
+ let n = tn.get(t);
1503
+ if (n || (n = fo(t), n && tn.set(t, n)), !n)
1504
+ return null;
1505
+ const r = n.length;
1506
+ let o = e, a = 0;
1507
+ for (; a < r; ) {
1508
+ const i = o[n[a]];
1509
+ if (i === void 0 || Y(o))
1510
+ return null;
1511
+ o = i, a++;
1512
+ }
1513
+ return o;
1514
+ }
1515
+ const Eo = "10.0.5", rt = -1, et = "en-US", nn = "", rn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1516
+ function go() {
1517
+ return {
1518
+ upper: (e, t) => t === "text" && S(e) ? e.toUpperCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
1519
+ lower: (e, t) => t === "text" && S(e) ? e.toLowerCase() : t === "vnode" && U(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
1520
+ capitalize: (e, t) => t === "text" && S(e) ? rn(e) : t === "vnode" && U(e) && "__v_isVNode" in e ? rn(e.children) : e
1521
+ };
1522
+ }
1523
+ let Rn;
1524
+ function yo(e) {
1525
+ Rn = e;
1526
+ }
1527
+ let An;
1528
+ function vo(e) {
1529
+ An = e;
1530
+ }
1531
+ let Ln;
1532
+ function bo(e) {
1533
+ Ln = e;
1534
+ }
1535
+ let On = null;
1536
+ const ho = /* @__NO_SIDE_EFFECTS__ */ (e) => {
1537
+ On = e;
1538
+ }, To = /* @__NO_SIDE_EFFECTS__ */ () => On;
1539
+ let Cn = null;
1540
+ const on = (e) => {
1541
+ Cn = e;
1542
+ }, Io = () => Cn;
1543
+ let an = 0;
1544
+ function No(e = {}) {
1545
+ 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, v = Q(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, E = Y(e.messageCompiler) ? e.messageCompiler : Rn, R = Y(e.messageResolver) ? e.messageResolver : An || _o, A = Y(e.localeFallbacker) ? e.localeFallbacker : Ln || oo, _ = 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
+ an++;
1547
+ const C = {
1548
+ version: n,
1549
+ cid: an,
1550
+ locale: r,
1551
+ fallbackLocale: a,
1552
+ messages: i,
1553
+ modifiers: g,
1554
+ pluralRules: h,
1555
+ missing: O,
1556
+ missingWarn: p,
1557
+ fallbackWarn: f,
1558
+ fallbackFormat: k,
1559
+ unresolving: T,
1560
+ postTranslation: y,
1561
+ processor: u,
1562
+ warnHtmlMessage: v,
1563
+ escapeParameter: N,
1564
+ messageCompiler: E,
1565
+ messageResolver: R,
1566
+ localeFallbacker: A,
1567
+ fallbackContext: _,
1568
+ onWarn: t,
1569
+ __meta: B
1570
+ };
1571
+ return C.datetimeFormats = m, C.numberFormats = c, C.__datetimeFormatters = P, C.__numberFormatters = w, __INTLIFY_PROD_DEVTOOLS__ && eo(C, n, B), C;
1572
+ }
1573
+ const Tt = (e) => ({ [e]: H() });
1574
+ function Ht(e, t, n, r, o) {
1575
+ const { missing: a, onWarn: i } = e;
1576
+ if (a !== null) {
1577
+ const m = a(e, n, t, o);
1578
+ return S(m) ? m : t;
1579
+ } else
1580
+ return t;
1581
+ }
1582
+ function we(e, t, n) {
1583
+ const r = e;
1584
+ r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
1585
+ }
1586
+ function Ro(e, t) {
1587
+ return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
1588
+ }
1589
+ function Ao(e, t) {
1590
+ const n = t.indexOf(e);
1591
+ if (n === -1)
1592
+ return !1;
1593
+ for (let r = n + 1; r < t.length; r++)
1594
+ if (Ro(e, t[r]))
1595
+ return !0;
1596
+ return !1;
1597
+ }
1598
+ function sn(e, ...t) {
1599
+ const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __datetimeFormatters: m } = e, [c, g, h, O] = Rt(...t), p = Q(h.missingWarn) ? h.missingWarn : e.missingWarn;
1600
+ Q(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn;
1601
+ const f = !!h.part, k = $t(e, h), T = i(
1602
+ e,
1603
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1604
+ o,
1605
+ k
1606
+ );
1607
+ if (!S(c) || c === "")
1608
+ return new Intl.DateTimeFormat(k, O).format(g);
1609
+ let y = {}, u, v = null;
1610
+ const N = "datetime format";
1611
+ for (let A = 0; A < T.length && (u = T[A], y = n[u] || {}, v = y[c], !M(v)); A++)
1612
+ Ht(e, c, u, p, N);
1613
+ if (!M(v) || !S(u))
1614
+ return r ? rt : c;
1615
+ let E = `${u}__${c}`;
1616
+ tt(O) || (E = `${E}__${JSON.stringify(O)}`);
1617
+ let R = m.get(E);
1618
+ return R || (R = new Intl.DateTimeFormat(u, te({}, v, O)), m.set(E, R)), f ? R.formatToParts(g) : R.format(g);
1619
+ }
1620
+ const kn = [
1621
+ "localeMatcher",
1622
+ "weekday",
1623
+ "era",
1624
+ "year",
1625
+ "month",
1626
+ "day",
1627
+ "hour",
1628
+ "minute",
1629
+ "second",
1630
+ "timeZoneName",
1631
+ "formatMatcher",
1632
+ "hour12",
1633
+ "timeZone",
1634
+ "dateStyle",
1635
+ "timeStyle",
1636
+ "calendar",
1637
+ "dayPeriod",
1638
+ "numberingSystem",
1639
+ "hourCycle",
1640
+ "fractionalSecondDigits"
1641
+ ];
1642
+ function Rt(...e) {
1643
+ const [t, n, r, o] = e, a = H();
1644
+ let i = H(), m;
1645
+ if (S(t)) {
1646
+ const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
1647
+ if (!c)
1648
+ throw de(fe.INVALID_ISO_DATE_ARGUMENT);
1649
+ const g = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
1650
+ m = new Date(g);
1651
+ try {
1652
+ m.toISOString();
1653
+ } catch {
1654
+ throw de(fe.INVALID_ISO_DATE_ARGUMENT);
1655
+ }
1656
+ } else if (rr(t)) {
1657
+ if (isNaN(t.getTime()))
1658
+ throw de(fe.INVALID_DATE_ARGUMENT);
1659
+ m = t;
1660
+ } else if (ee(t))
1661
+ m = t;
1662
+ else
1663
+ throw de(fe.INVALID_ARGUMENT);
1664
+ return S(n) ? a.key = n : M(n) && Object.keys(n).forEach((c) => {
1665
+ kn.includes(c) ? i[c] = n[c] : a[c] = n[c];
1666
+ }), S(r) ? a.locale = r : M(r) && (i = r), M(o) && (i = o), [a.key || "", m, a, i];
1667
+ }
1668
+ function ln(e, t, n) {
1669
+ const r = e;
1670
+ for (const o in n) {
1671
+ const a = `${t}__${o}`;
1672
+ r.__datetimeFormatters.has(a) && r.__datetimeFormatters.delete(a);
1673
+ }
1674
+ }
1675
+ function un(e, ...t) {
1676
+ const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: i } = e, { __numberFormatters: m } = e, [c, g, h, O] = At(...t), p = Q(h.missingWarn) ? h.missingWarn : e.missingWarn;
1677
+ Q(h.fallbackWarn) ? h.fallbackWarn : e.fallbackWarn;
1678
+ const f = !!h.part, k = $t(e, h), T = i(
1679
+ e,
1680
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1681
+ o,
1682
+ k
1683
+ );
1684
+ if (!S(c) || c === "")
1685
+ return new Intl.NumberFormat(k, O).format(g);
1686
+ let y = {}, u, v = null;
1687
+ const N = "number format";
1688
+ for (let A = 0; A < T.length && (u = T[A], y = n[u] || {}, v = y[c], !M(v)); A++)
1689
+ Ht(e, c, u, p, N);
1690
+ if (!M(v) || !S(u))
1691
+ return r ? rt : c;
1692
+ let E = `${u}__${c}`;
1693
+ tt(O) || (E = `${E}__${JSON.stringify(O)}`);
1694
+ let R = m.get(E);
1695
+ return R || (R = new Intl.NumberFormat(u, te({}, v, O)), m.set(E, R)), f ? R.formatToParts(g) : R.format(g);
1696
+ }
1697
+ const Sn = [
1698
+ "localeMatcher",
1699
+ "style",
1700
+ "currency",
1701
+ "currencyDisplay",
1702
+ "currencySign",
1703
+ "useGrouping",
1704
+ "minimumIntegerDigits",
1705
+ "minimumFractionDigits",
1706
+ "maximumFractionDigits",
1707
+ "minimumSignificantDigits",
1708
+ "maximumSignificantDigits",
1709
+ "compactDisplay",
1710
+ "notation",
1711
+ "signDisplay",
1712
+ "unit",
1713
+ "unitDisplay",
1714
+ "roundingMode",
1715
+ "roundingPriority",
1716
+ "roundingIncrement",
1717
+ "trailingZeroDisplay"
1718
+ ];
1719
+ function At(...e) {
1720
+ const [t, n, r, o] = e, a = H();
1721
+ let i = H();
1722
+ if (!ee(t))
1723
+ throw de(fe.INVALID_ARGUMENT);
1724
+ const m = t;
1725
+ return S(n) ? a.key = n : M(n) && Object.keys(n).forEach((c) => {
1726
+ Sn.includes(c) ? i[c] = n[c] : a[c] = n[c];
1727
+ }), S(r) ? a.locale = r : M(r) && (i = r), M(o) && (i = o), [a.key || "", m, a, i];
1728
+ }
1729
+ function cn(e, t, n) {
1730
+ const r = e;
1731
+ for (const o in n) {
1732
+ const a = `${t}__${o}`;
1733
+ r.__numberFormatters.has(a) && r.__numberFormatters.delete(a);
1734
+ }
1735
+ }
1736
+ const Lo = (e) => e, Oo = (e) => "", Co = "text", ko = (e) => e.length === 0 ? "" : Mt(e), So = lr;
1737
+ function mn(e, t) {
1738
+ return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
1739
+ }
1740
+ function Po(e) {
1741
+ const t = ee(e.pluralIndex) ? e.pluralIndex : -1;
1742
+ return e.named && (ee(e.named.count) || ee(e.named.n)) ? ee(e.named.count) ? e.named.count : ee(e.named.n) ? e.named.n : t : t;
1743
+ }
1744
+ function Do(e, t) {
1745
+ t.count || (t.count = e), t.n || (t.n = e);
1746
+ }
1747
+ function wo(e = {}) {
1748
+ 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
+ ee(e.pluralIndex) && Do(n, c);
1750
+ const g = (u) => c[u];
1751
+ function h(u, v) {
1752
+ const N = Y(e.messages) ? e.messages(u, !!v) : U(e.messages) ? e.messages[u] : !1;
1753
+ return N || (e.parent ? e.parent.message(u) : Oo);
1754
+ }
1755
+ 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
+ list: m,
1757
+ named: g,
1758
+ plural: a,
1759
+ linked: (u, ...v) => {
1760
+ const [N, E] = v;
1761
+ let R = "text", A = "";
1762
+ v.length === 1 ? U(N) ? (A = N.modifier || A, R = N.type || R) : S(N) && (A = N || A) : v.length === 2 && (S(N) && (A = N || A), S(E) && (R = E || R));
1763
+ const _ = h(u, !0)(y), L = (
1764
+ // The message in vnode resolved with linked are returned as an array by processor.nomalize
1765
+ R === "vnode" && z(_) && A ? _[0] : _
1766
+ );
1767
+ return A ? O(A)(L, R) : L;
1768
+ },
1769
+ message: h,
1770
+ type: k,
1771
+ interpolate: f,
1772
+ normalize: p,
1773
+ values: te(H(), i, c)
1774
+ };
1775
+ return y;
1776
+ }
1777
+ const fn = () => "", re = (e) => Y(e);
1778
+ function dn(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, 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
+ p && Fo(g);
1781
+ let [u, v, N] = f ? [
1782
+ c,
1783
+ y,
1784
+ m[y] || H()
1785
+ ] : Pn(e, c, y, i, O, h), E = u, R = c;
1786
+ if (!f && !(S(E) || ke(E) || re(E)) && T && (E = k, R = E), !f && (!(S(E) || ke(E) || re(E)) || !S(v)))
1787
+ return o ? rt : c;
1788
+ let A = !1;
1789
+ const _ = () => {
1790
+ A = !0;
1791
+ }, L = re(E) ? E : Dn(e, c, v, E, R, _);
1792
+ if (A)
1793
+ return E;
1794
+ const P = Vo(e, v, N, g), w = wo(P), B = Mo(e, L, w), C = r ? r(B, c) : B;
1795
+ if (__INTLIFY_PROD_DEVTOOLS__) {
1796
+ const Ne = {
1797
+ timestamp: Date.now(),
1798
+ key: S(c) ? c : re(E) ? E.key : "",
1799
+ locale: v || (re(E) ? E.locale : ""),
1800
+ format: S(E) ? E : re(E) ? E.source : "",
1801
+ message: C
1802
+ };
1803
+ Ne.meta = te({}, e.__meta, /* @__PURE__ */ To() || {}), to(Ne);
1804
+ }
1805
+ return C;
1806
+ }
1807
+ function Fo(e) {
1808
+ z(e.list) ? e.list = e.list.map((t) => S(t) ? Xt(t) : t) : U(e.named) && Object.keys(e.named).forEach((t) => {
1809
+ S(e.named[t]) && (e.named[t] = Xt(e.named[t]));
1810
+ });
1811
+ }
1812
+ function Pn(e, t, n, r, o, a) {
1813
+ const { messages: i, onWarn: m, messageResolver: c, localeFallbacker: g } = e, h = g(e, r, n);
1814
+ let O = H(), p, f = null;
1815
+ const k = "translate";
1816
+ 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
+ if (!Ao(p, h)) {
1818
+ const y = Ht(
1819
+ e,
1820
+ // eslint-disable-line @typescript-eslint/no-explicit-any
1821
+ t,
1822
+ p,
1823
+ a,
1824
+ k
1825
+ );
1826
+ y !== t && (f = y);
1827
+ }
1828
+ return [f, p, O];
1829
+ }
1830
+ function Dn(e, t, n, r, o, a) {
1831
+ const { messageCompiler: i, warnHtmlMessage: m } = e;
1832
+ if (re(r)) {
1833
+ const g = r;
1834
+ return g.locale = g.locale || n, g.key = g.key || t, g;
1835
+ }
1836
+ if (i == null) {
1837
+ const g = () => r;
1838
+ return g.locale = n, g.key = t, g;
1839
+ }
1840
+ const c = i(r, Uo(e, n, o, r, m, a));
1841
+ return c.locale = n, c.key = t, c.source = r, c;
1842
+ }
1843
+ function Mo(e, t, n) {
1844
+ return t(n);
1845
+ }
1846
+ function Lt(...e) {
1847
+ const [t, n, r] = e, o = H();
1848
+ if (!S(t) && !ee(t) && !re(t) && !ke(t))
1849
+ throw de(fe.INVALID_ARGUMENT);
1850
+ const a = ee(t) ? String(t) : (re(t), t);
1851
+ 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
+ function Uo(e, t, n, r, o, a) {
1854
+ return {
1855
+ locale: t,
1856
+ key: n,
1857
+ warnHtmlMessage: o,
1858
+ onError: (i) => {
1859
+ throw a && a(i), i;
1860
+ },
1861
+ onCacheKey: (i) => tr(t, n, i)
1862
+ };
1863
+ }
1864
+ function Vo(e, t, n, r) {
1865
+ const { modifiers: o, pluralRules: a, messageResolver: i, fallbackLocale: m, fallbackWarn: c, missingWarn: g, fallbackContext: h } = e, p = {
1866
+ locale: t,
1867
+ modifiers: o,
1868
+ pluralRules: a,
1869
+ messages: (f, k) => {
1870
+ let T = i(n, f);
1871
+ if (T == null && (h || k)) {
1872
+ const [, , y] = Pn(
1873
+ h || e,
1874
+ // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
1875
+ f,
1876
+ t,
1877
+ m,
1878
+ c,
1879
+ g
1880
+ );
1881
+ T = i(y, f);
1882
+ }
1883
+ if (S(T) || ke(T)) {
1884
+ let y = !1;
1885
+ const v = Dn(e, f, t, T, f, () => {
1886
+ y = !0;
1887
+ });
1888
+ return y ? fn : v;
1889
+ } else return re(T) ? T : fn;
1890
+ }
1891
+ };
1892
+ return e.processor && (p.processor = e.processor), r.list && (p.list = r.list), r.named && (p.named = r.named), ee(r.plural) && (p.pluralIndex = r.plural), p;
1893
+ }
1894
+ wr();
1895
+ var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_0dfce15b-3c31-478d-a179-75a3b61debd7", 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_0dfce15b-3c31-478d-a179-75a3b61debd7", 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: "1866", ACTIONS_ORCHESTRATION_ID: "af1aeeeb-44b2-4338-8559-a47daf475a5a.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: "20260628.225.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:15661", 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.11/x64", GITHUB_RUN_ID: "28935670658", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f5d35f5abcffbea06c5d95104d8453b21220e53b", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.4/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_5bdc5ef0-6744-483f-8b55-3328a9a47b86", INVOCATION_ID: "5542f67cbff346b1a9173260cb7cba24", 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: "571", 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 1000085920", 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.56", 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: "f5d35f5abcffbea06c5d95104d8453b21220e53b", 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_0dfce15b-3c31-478d-a179-75a3b61debd7", 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_0dfce15b-3c31-478d-a179-75a3b61debd7", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "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_0dfce15b-3c31-478d-a179-75a3b61debd7", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
1896
+ const Ho = "10.0.5";
1897
+ function Go() {
1898
+ typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (Te().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (Te().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Te().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Te().__INTLIFY_PROD_DEVTOOLS__ = !1);
1899
+ }
1900
+ const Se = {
1901
+ // composer module errors
1902
+ UNEXPECTED_RETURN_TYPE: ro,
1903
+ // 24
1904
+ // legacy module errors
1905
+ INVALID_ARGUMENT: 25,
1906
+ // i18n module errors
1907
+ MUST_BE_CALL_SETUP_TOP: 26,
1908
+ NOT_INSTALLED: 27,
1909
+ NOT_INSTALLED_WITH_PROVIDE: 31,
1910
+ // unexpected error
1911
+ UNEXPECTED_ERROR: 32
1912
+ };
1913
+ function $e(e, ...t) {
1914
+ return nt(e, null, void 0);
1915
+ }
1916
+ 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
+ function He(e) {
1918
+ if (!U(e))
1919
+ return e;
1920
+ for (const t in e)
1921
+ if (le(e, t))
1922
+ if (!t.includes("."))
1923
+ U(e[t]) && He(e[t]);
1924
+ else {
1925
+ const n = t.split("."), r = n.length - 1;
1926
+ let o = e, a = !1;
1927
+ for (let i = 0; i < r; i++) {
1928
+ if (n[i] in o || (o[n[i]] = H()), !U(o[n[i]])) {
1929
+ a = !0;
1930
+ break;
1931
+ }
1932
+ o = o[n[i]];
1933
+ }
1934
+ a || (o[n[r]] = e[t], delete e[t]), U(o[n[r]]) && He(o[n[r]]);
1935
+ }
1936
+ return e;
1937
+ }
1938
+ function Fn(e, t) {
1939
+ const { messages: n, __i18n: r, messageResolver: o, flatJson: a } = t, i = M(n) ? n : z(r) ? H() : { [e]: H() };
1940
+ if (z(r) && r.forEach((m) => {
1941
+ if ("locale" in m && "resource" in m) {
1942
+ const { locale: c, resource: g } = m;
1943
+ c ? (i[c] = i[c] || H(), Je(g, i[c])) : Je(g, i);
1944
+ } else
1945
+ S(m) && Je(JSON.parse(m), i);
1946
+ }), o == null && a)
1947
+ for (const m in i)
1948
+ le(i, m) && He(i[m]);
1949
+ return i;
1950
+ }
1951
+ function Mn(e) {
1952
+ return e.type;
1953
+ }
1954
+ function Bo(e, t, n) {
1955
+ let r = U(t.messages) ? t.messages : H();
1956
+ "__i18nGlobal" in n && (r = Fn(e.locale.value, {
1957
+ messages: r,
1958
+ __i18n: n.__i18nGlobal
1959
+ }));
1960
+ const o = Object.keys(r);
1961
+ o.length && o.forEach((a) => {
1962
+ e.mergeLocaleMessage(a, r[a]);
1963
+ });
1964
+ {
1965
+ if (U(t.datetimeFormats)) {
1966
+ const a = Object.keys(t.datetimeFormats);
1967
+ a.length && a.forEach((i) => {
1968
+ e.mergeDateTimeFormat(i, t.datetimeFormats[i]);
1969
+ });
1970
+ }
1971
+ if (U(t.numberFormats)) {
1972
+ const a = Object.keys(t.numberFormats);
1973
+ a.length && a.forEach((i) => {
1974
+ e.mergeNumberFormat(i, t.numberFormats[i]);
1975
+ });
1976
+ }
1977
+ }
1978
+ }
1979
+ function _n(e) {
1980
+ return X(Bn, null, e, 0);
1981
+ }
1982
+ const pn = "__INTLIFY_META__", En = () => [], xo = () => !1;
1983
+ let gn = 0;
1984
+ function yn(e) {
1985
+ return (t, n, r, o) => e(n, r, Dt() || void 0, o);
1986
+ }
1987
+ const Ko = /* @__NO_SIDE_EFFECTS__ */ () => {
1988
+ const e = Dt();
1989
+ let t = null;
1990
+ return e && (t = Mn(e)[pn]) ? { [pn]: t } : null;
1991
+ };
1992
+ function Yo(e = {}) {
1993
+ const { __root: t, __injectWithOption: n } = e, r = t === void 0, o = e.flatJson, a = Yt ? oe : Gn;
1994
+ let i = Q(e.inheritLocale) ? e.inheritLocale : !0;
1995
+ const m = a(
1996
+ // prettier-ignore
1997
+ t && i ? t.locale.value : S(e.locale) ? e.locale : et
1998
+ ), c = a(
1999
+ // prettier-ignore
2000
+ t && i ? t.fallbackLocale.value : S(e.fallbackLocale) || z(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : m.value
2001
+ ), 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, 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, v = Y(e.postTranslation) ? e.postTranslation : null, N = t ? t.warnHtmlMessage : Q(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, E = !!e.escapeParameter;
2003
+ const R = t ? t.modifiers : M(e.modifiers) ? e.modifiers : {};
2004
+ let A = e.pluralRules || t && t.pluralRules, _;
2005
+ _ = (() => {
2006
+ r && on(null);
2007
+ const d = {
2008
+ version: Ho,
2009
+ locale: m.value,
2010
+ fallbackLocale: c.value,
2011
+ messages: g.value,
2012
+ modifiers: R,
2013
+ pluralRules: A,
2014
+ missing: u === null ? void 0 : u,
2015
+ missingWarn: p,
2016
+ fallbackWarn: f,
2017
+ fallbackFormat: T,
2018
+ unresolving: !0,
2019
+ postTranslation: v === null ? void 0 : v,
2020
+ warnHtmlMessage: N,
2021
+ escapeParameter: E,
2022
+ messageResolver: e.messageResolver,
2023
+ messageCompiler: e.messageCompiler,
2024
+ __meta: { framework: "vue" }
2025
+ };
2026
+ d.datetimeFormats = h.value, d.numberFormats = O.value, d.__datetimeFormatters = M(_) ? _.__datetimeFormatters : void 0, d.__numberFormatters = M(_) ? _.__numberFormatters : void 0;
2027
+ const I = No(d);
2028
+ return r && on(I), I;
2029
+ })(), we(_, m.value, c.value);
2030
+ function P() {
2031
+ return [
2032
+ m.value,
2033
+ c.value,
2034
+ g.value,
2035
+ h.value,
2036
+ O.value
2037
+ ];
2038
+ }
2039
+ const w = W({
2040
+ get: () => m.value,
2041
+ set: (d) => {
2042
+ m.value = d, _.locale = m.value;
2043
+ }
2044
+ }), B = W({
2045
+ get: () => c.value,
2046
+ set: (d) => {
2047
+ c.value = d, _.fallbackLocale = c.value, we(_, m.value, d);
2048
+ }
2049
+ }), C = W(() => g.value), Ne = /* @__PURE__ */ W(() => h.value), ot = /* @__PURE__ */ W(() => O.value);
2050
+ function at() {
2051
+ return Y(v) ? v : null;
2052
+ }
2053
+ function st(d) {
2054
+ v = d, _.postTranslation = d;
2055
+ }
2056
+ function lt() {
2057
+ return y;
2058
+ }
2059
+ function ut(d) {
2060
+ d !== null && (u = yn(d)), y = d, _.missing = u;
2061
+ }
2062
+ const ce = (d, I, G, J, be, Ye) => {
2063
+ P();
2064
+ let Le;
2065
+ try {
2066
+ $o.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (_.fallbackContext = t ? Io() : void 0), Le = d(_);
2067
+ } finally {
2068
+ __INTLIFY_PROD_DEVTOOLS__, r || (_.fallbackContext = void 0);
2069
+ }
2070
+ if (G !== "translate exists" && // for not `te` (e.g `t`)
2071
+ ee(Le) && Le === rt || G === "translate exists" && !Le) {
2072
+ const [$n, Va] = I();
2073
+ return t && k ? J(t) : be($n);
2074
+ } else {
2075
+ if (Ye(Le))
2076
+ return Le;
2077
+ throw $e(Se.UNEXPECTED_RETURN_TYPE);
2078
+ }
2079
+ };
2080
+ function Be(...d) {
2081
+ return ce((I) => Reflect.apply(dn, null, [I, ...d]), () => Lt(...d), "translate", (I) => Reflect.apply(I.t, I, [...d]), (I) => I, (I) => S(I));
2082
+ }
2083
+ function xe(...d) {
2084
+ const [I, G, J] = d;
2085
+ if (J && !U(J))
2086
+ throw $e(Se.INVALID_ARGUMENT);
2087
+ return Be(I, G, te({ resolvedMessage: !0 }, J || {}));
2088
+ }
2089
+ function it(...d) {
2090
+ return ce((I) => Reflect.apply(sn, null, [I, ...d]), () => Rt(...d), "datetime format", (I) => Reflect.apply(I.d, I, [...d]), () => nn, (I) => S(I));
2091
+ }
2092
+ function ct(...d) {
2093
+ return ce((I) => Reflect.apply(un, null, [I, ...d]), () => At(...d), "number format", (I) => Reflect.apply(I.n, I, [...d]), () => nn, (I) => S(I));
2094
+ }
2095
+ function mt(d) {
2096
+ return d.map((I) => S(I) || ee(I) || Q(I) ? _n(String(I)) : I);
2097
+ }
2098
+ const ft = {
2099
+ normalize: mt,
2100
+ interpolate: (d) => d,
2101
+ type: "vnode"
2102
+ };
2103
+ function dt(...d) {
2104
+ return ce((I) => {
2105
+ let G;
2106
+ const J = I;
2107
+ try {
2108
+ J.processor = ft, G = Reflect.apply(dn, null, [J, ...d]);
2109
+ } finally {
2110
+ J.processor = null;
2111
+ }
2112
+ return G;
2113
+ }, () => Lt(...d), "translate", (I) => I[Ot](...d), (I) => [_n(I)], (I) => z(I));
2114
+ }
2115
+ function Ke(...d) {
2116
+ return ce((I) => Reflect.apply(un, null, [I, ...d]), () => At(...d), "number format", (I) => I[kt](...d), En, (I) => S(I) || z(I));
2117
+ }
2118
+ function _t(...d) {
2119
+ return ce((I) => Reflect.apply(sn, null, [I, ...d]), () => Rt(...d), "datetime format", (I) => I[Ct](...d), En, (I) => S(I) || z(I));
2120
+ }
2121
+ function pt(d) {
2122
+ A = d, _.pluralRules = A;
2123
+ }
2124
+ function Et(d, I) {
2125
+ return ce(() => {
2126
+ if (!d)
2127
+ return !1;
2128
+ const G = S(I) ? I : m.value, J = Re(G), be = _.messageResolver(J, d);
2129
+ return ke(be) || re(be) || S(be);
2130
+ }, () => [d], "translate exists", (G) => Reflect.apply(G.te, G, [d, I]), xo, (G) => Q(G));
2131
+ }
2132
+ function gt(d) {
2133
+ let I = null;
2134
+ const G = Nn(_, c.value, m.value);
2135
+ for (let J = 0; J < G.length; J++) {
2136
+ const be = g.value[G[J]] || {}, Ye = _.messageResolver(be, d);
2137
+ if (Ye != null) {
2138
+ I = Ye;
2139
+ break;
2140
+ }
2141
+ }
2142
+ return I;
2143
+ }
2144
+ function Pe(d) {
2145
+ const I = gt(d);
2146
+ return I ?? (t ? t.tm(d) || {} : {});
2147
+ }
2148
+ function Re(d) {
2149
+ return g.value[d] || {};
2150
+ }
2151
+ function Ae(d, I) {
2152
+ if (o) {
2153
+ const G = { [d]: I };
2154
+ for (const J in G)
2155
+ le(G, J) && He(G[J]);
2156
+ I = G[d];
2157
+ }
2158
+ g.value[d] = I, _.messages = g.value;
2159
+ }
2160
+ function De(d, I) {
2161
+ g.value[d] = g.value[d] || {};
2162
+ const G = { [d]: I };
2163
+ if (o)
2164
+ for (const J in G)
2165
+ le(G, J) && He(G[J]);
2166
+ I = G[d], Je(I, g.value[d]), _.messages = g.value;
2167
+ }
2168
+ function yt(d) {
2169
+ return h.value[d] || {};
2170
+ }
2171
+ function s(d, I) {
2172
+ h.value[d] = I, _.datetimeFormats = h.value, ln(_, d, I);
2173
+ }
2174
+ function l(d, I) {
2175
+ h.value[d] = te(h.value[d] || {}, I), _.datetimeFormats = h.value, ln(_, d, I);
2176
+ }
2177
+ function b(d) {
2178
+ return O.value[d] || {};
2179
+ }
2180
+ function D(d, I) {
2181
+ O.value[d] = I, _.numberFormats = O.value, cn(_, d, I);
2182
+ }
2183
+ function q(d, I) {
2184
+ O.value[d] = te(O.value[d] || {}, I), _.numberFormats = O.value, cn(_, d, I);
2185
+ }
2186
+ gn++, t && Yt && (Ze(t.locale, (d) => {
2187
+ i && (m.value = d, _.locale = d, we(_, m.value, c.value));
2188
+ }), Ze(t.fallbackLocale, (d) => {
2189
+ i && (c.value = d, _.fallbackLocale = d, we(_, m.value, c.value));
2190
+ }));
2191
+ const F = {
2192
+ id: gn,
2193
+ locale: w,
2194
+ fallbackLocale: B,
2195
+ get inheritLocale() {
2196
+ return i;
2197
+ },
2198
+ set inheritLocale(d) {
2199
+ i = d, d && t && (m.value = t.locale.value, c.value = t.fallbackLocale.value, we(_, m.value, c.value));
2200
+ },
2201
+ get availableLocales() {
2202
+ return Object.keys(g.value).sort();
2203
+ },
2204
+ messages: C,
2205
+ get modifiers() {
2206
+ return R;
2207
+ },
2208
+ get pluralRules() {
2209
+ return A || {};
2210
+ },
2211
+ get isGlobal() {
2212
+ return r;
2213
+ },
2214
+ get missingWarn() {
2215
+ return p;
2216
+ },
2217
+ set missingWarn(d) {
2218
+ p = d, _.missingWarn = p;
2219
+ },
2220
+ get fallbackWarn() {
2221
+ return f;
2222
+ },
2223
+ set fallbackWarn(d) {
2224
+ f = d, _.fallbackWarn = f;
2225
+ },
2226
+ get fallbackRoot() {
2227
+ return k;
2228
+ },
2229
+ set fallbackRoot(d) {
2230
+ k = d;
2231
+ },
2232
+ get fallbackFormat() {
2233
+ return T;
2234
+ },
2235
+ set fallbackFormat(d) {
2236
+ T = d, _.fallbackFormat = T;
2237
+ },
2238
+ get warnHtmlMessage() {
2239
+ return N;
2240
+ },
2241
+ set warnHtmlMessage(d) {
2242
+ N = d, _.warnHtmlMessage = d;
2243
+ },
2244
+ get escapeParameter() {
2245
+ return E;
2246
+ },
2247
+ set escapeParameter(d) {
2248
+ E = d, _.escapeParameter = d;
2249
+ },
2250
+ t: Be,
2251
+ getLocaleMessage: Re,
2252
+ setLocaleMessage: Ae,
2253
+ mergeLocaleMessage: De,
2254
+ getPostTranslationHandler: at,
2255
+ setPostTranslationHandler: st,
2256
+ getMissingHandler: lt,
2257
+ setMissingHandler: ut,
2258
+ [Wo]: pt
2259
+ };
2260
+ return F.datetimeFormats = Ne, F.numberFormats = ot, F.rt = xe, F.te = Et, F.tm = Pe, F.d = it, F.n = ct, F.getDateTimeFormat = yt, F.setDateTimeFormat = s, F.mergeDateTimeFormat = l, F.getNumberFormat = b, F.setNumberFormat = D, F.mergeNumberFormat = q, F[wn] = n, F[Ot] = dt, F[Ct] = _t, F[kt] = Ke, F;
2261
+ }
2262
+ const Gt = {
2263
+ tag: {
2264
+ type: [String, Object]
2265
+ },
2266
+ locale: {
2267
+ type: String
2268
+ },
2269
+ scope: {
2270
+ type: String,
2271
+ // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
2272
+ validator: (e) => e === "parent" || e === "global",
2273
+ default: "parent"
2274
+ /* ComponentI18nScope */
2275
+ },
2276
+ i18n: {
2277
+ type: Object
2278
+ }
2279
+ };
2280
+ function jo({ slots: e }, t) {
2281
+ return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, o) => [
2282
+ ...r,
2283
+ // prettier-ignore
2284
+ ...o.type === _e ? o.children : [o]
2285
+ ], []) : t.reduce((n, r) => {
2286
+ const o = e[r];
2287
+ return o && (n[r] = o()), n;
2288
+ }, H());
2289
+ }
2290
+ function Un() {
2291
+ return _e;
2292
+ }
2293
+ te({
2294
+ keypath: {
2295
+ type: String,
2296
+ required: !0
2297
+ },
2298
+ plural: {
2299
+ type: [Number, String],
2300
+ validator: (e) => ee(e) || !isNaN(e)
2301
+ }
2302
+ }, Gt);
2303
+ function Xo(e) {
2304
+ return z(e) && !S(e[0]);
2305
+ }
2306
+ function Vn(e, t, n, r) {
2307
+ const { slots: o, attrs: a } = t;
2308
+ return () => {
2309
+ const i = { part: !0 };
2310
+ let m = H();
2311
+ 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
+ const c = r(e.value, i, m);
2313
+ let g = [i.key];
2314
+ z(c) ? g = c.map((p, f) => {
2315
+ const k = o[p.type], T = k ? k({ [p.type]: p.value, index: f, parts: c }) : [p.value];
2316
+ return Xo(T) && (T[0].key = `${p.type}-${f}`), T;
2317
+ }) : S(c) && (g = [c]);
2318
+ const h = te(H(), a), O = S(e.tag) || U(e.tag) ? e.tag : Un();
2319
+ return hn(O, h, g);
2320
+ };
2321
+ }
2322
+ te({
2323
+ value: {
2324
+ type: Number,
2325
+ required: !0
2326
+ },
2327
+ format: {
2328
+ type: [String, Object]
2329
+ }
2330
+ }, Gt);
2331
+ te({
2332
+ value: {
2333
+ type: [Number, Date],
2334
+ required: !0
2335
+ },
2336
+ format: {
2337
+ type: [String, Object]
2338
+ }
2339
+ }, Gt);
2340
+ const qo = /* @__PURE__ */ Ie("global-vue-i18n");
2341
+ function We(e = {}) {
2342
+ const t = Dt();
2343
+ if (t == null)
2344
+ throw $e(Se.MUST_BE_CALL_SETUP_TOP);
2345
+ if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
2346
+ throw $e(Se.NOT_INSTALLED);
2347
+ const n = Jo(t), r = Zo(n), o = Mn(t), a = Qo(e, o);
2348
+ if (a === "global")
2349
+ return Bo(r, e, o), r;
2350
+ if (a === "parent") {
2351
+ let c = zo(n, t, e.__useComponent);
2352
+ return c == null && (c = r), c;
2353
+ }
2354
+ const i = n;
2355
+ let m = i.__getInstance(t);
2356
+ if (m == null) {
2357
+ const c = te({}, e);
2358
+ "__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
+ return m;
2361
+ }
2362
+ function Jo(e) {
2363
+ const t = Hn(e.isCE ? qo : e.appContext.app.__VUE_I18N_SYMBOL__);
2364
+ if (!t)
2365
+ throw $e(e.isCE ? Se.NOT_INSTALLED_WITH_PROVIDE : Se.UNEXPECTED_ERROR);
2366
+ return t;
2367
+ }
2368
+ function Qo(e, t) {
2369
+ return tt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
2370
+ }
2371
+ function Zo(e) {
2372
+ return e.mode === "composition" ? e.global : e.global.__composer;
2373
+ }
2374
+ function zo(e, t, n = !1) {
2375
+ let r = null;
2376
+ const o = t.root;
2377
+ let a = ea(t, n);
2378
+ for (; a != null; ) {
2379
+ const i = e;
2380
+ if (e.mode === "composition")
2381
+ r = i.__getInstance(a);
2382
+ else if (__VUE_I18N_LEGACY_API__) {
2383
+ const m = i.__getInstance(a);
2384
+ m != null && (r = m.__composer, n && r && !r[wn] && (r = null));
2385
+ }
2386
+ if (r != null || o === a)
2387
+ break;
2388
+ a = a.parent;
2389
+ }
2390
+ return r;
2391
+ }
2392
+ function ea(e, t = !1) {
2393
+ return e == null ? null : t && e.vnode.ctx || e.parent;
2394
+ }
2395
+ function ta(e, t, n) {
2396
+ bn(() => {
2397
+ }, t), Wn(() => {
2398
+ const r = n;
2399
+ e.__deleteInstance(t);
2400
+ const o = r[St];
2401
+ o && (o(), delete r[St]);
2402
+ }, t);
2403
+ }
2404
+ Go();
2405
+ yo(Zr);
2406
+ vo(po);
2407
+ bo(Nn);
2408
+ if (__INTLIFY_PROD_DEVTOOLS__) {
2409
+ const e = Te();
2410
+ e.__INTLIFY__ = !0, zr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
2411
+ }
2412
+ function Ee(e) {
2413
+ return Array.from(new Set(e));
2414
+ }
2415
+ function ja() {
2416
+ const e = wt();
2417
+ return {
2418
+ restaurantAttributes: W(() => [
2419
+ {
2420
+ type: "string",
2421
+ key: "name",
2422
+ entity: "restaurant",
2423
+ values: Ee(
2424
+ e.restaurants.value.filter((n) => {
2425
+ var r;
2426
+ return !!((r = n.profile) != null && r.name);
2427
+ }).map((n) => n.profile.name)
2428
+ )
2429
+ },
2430
+ {
2431
+ type: "string",
2432
+ key: "code",
2433
+ entity: "restaurant",
2434
+ values: Ee(
2435
+ e.restaurants.value.filter((n) => {
2436
+ var r;
2437
+ return !!((r = n.profile) != null && r.code);
2438
+ }).map((n) => n.profile.code)
2439
+ )
2440
+ }
2441
+ ])
2442
+ };
2443
+ }
2444
+ function na(e, t) {
2445
+ return t.split(".").reduce((n, r) => n == null ? void 0 : n[r], e);
2446
+ }
2447
+ function ra(e, t) {
2448
+ return Ee(
2449
+ e.map((n) => na(n.profile, t)).filter(Boolean)
2450
+ ).map((n) => ({
2451
+ label: n,
2452
+ value: n
2453
+ }));
2454
+ }
2455
+ function oa() {
2456
+ const e = wt(), { t } = Ge(), n = e.restaurants.value;
2457
+ return [
2458
+ "name",
2459
+ "code",
2460
+ "address.city",
2461
+ "address.postcode",
2462
+ "address.state"
2463
+ ].map((o) => ({
2464
+ label: t(
2465
+ `menu.rule_groups.condition_view.attribute.restaurant_${o.replace("address.", "")}`
2466
+ ),
2467
+ value: o,
2468
+ options: ra(n, o)
2469
+ }));
2470
+ }
2471
+ function aa() {
2472
+ const e = Tn(), { t } = Ge(), n = e.state.menu.modules.item, r = e.categories;
2473
+ return [
2474
+ {
2475
+ label: t("menu.rule_groups.condition_view.attribute.product_name"),
2476
+ value: "name",
2477
+ options: Ee(n.filter((o) => !!o.name).map((o) => o.name)).map(
2478
+ (o) => ({ label: o, value: o })
2479
+ )
2480
+ },
2481
+ {
2482
+ label: t("menu.rule_groups.condition_view.attribute.product_code"),
2483
+ value: "code",
2484
+ options: Ee(n.filter((o) => !!o.code).map((o) => o.code)).map(
2485
+ (o) => ({ label: o, value: o })
2486
+ )
2487
+ },
2488
+ {
2489
+ label: t("menu.rule_groups.condition_view.attribute.product_category"),
2490
+ value: "category",
2491
+ options: Ee(r.filter((o) => !!o.name).map((o) => o.name)).map(
2492
+ (o) => ({ label: o, value: o })
2493
+ )
2494
+ }
2495
+ ];
2496
+ }
2497
+ function Xa(e = {}) {
2498
+ const t = W(() => {
2499
+ var c, g;
2500
+ const i = ((c = e.menuItems) == null ? void 0 : c.value) || [], m = ((g = e.categories) == null ? void 0 : g.value) || [];
2501
+ return [
2502
+ {
2503
+ type: "string",
2504
+ key: "name",
2505
+ entity: "item",
2506
+ values: Ee(i.filter((h) => !!h.name).map((h) => h.name))
2507
+ },
2508
+ {
2509
+ type: "string",
2510
+ key: "code",
2511
+ entity: "item",
2512
+ values: Ee(i.filter((h) => !!h.code).map((h) => h.code))
2513
+ },
2514
+ {
2515
+ type: "string",
2516
+ key: "category",
2517
+ entity: "item",
2518
+ values: Ee(m.filter((h) => !!h.name).map((h) => h.name))
2519
+ }
2520
+ ];
2521
+ }), n = W(() => {
2522
+ var m;
2523
+ const i = {};
2524
+ return (m = e.categories) == null || m.value.forEach((c) => {
2525
+ i[c.name] = c._id;
2526
+ }), i;
2527
+ }), r = W(() => {
2528
+ var m;
2529
+ const i = {};
2530
+ return (m = e.categories) == null || m.value.forEach((c) => {
2531
+ i[c._id] = c.name;
2532
+ }), i;
2533
+ });
2534
+ function o(i) {
2535
+ const m = Kt.cloneDeep(i);
2536
+ return m != null && m.rules && (m.rules = m.rules.map((c) => {
2537
+ if ("property" in c && c.property === "category" && Array.isArray(c.value)) {
2538
+ const g = c.value.map((h) => r.value[h]);
2539
+ return { ...c, value: g };
2540
+ }
2541
+ return c;
2542
+ })), m;
2543
+ }
2544
+ function a(i) {
2545
+ const m = Kt.cloneDeep(i);
2546
+ return m != null && m.rules && (m.rules = m.rules.map((c) => {
2547
+ if ("property" in c && c.property === "category" && Array.isArray(c.value)) {
2548
+ const g = c.value.map((h) => n.value[h]);
2549
+ return { ...c, value: g };
2550
+ }
2551
+ return c;
2552
+ })), m;
2553
+ }
2554
+ return {
2555
+ itemAttributes: t,
2556
+ convertCategoryIdToName: o,
2557
+ convertCategoryNameToId: a
2558
+ };
2559
+ }
2560
+ const sa = {
2561
+ class: "flex justify-between gap-8"
2562
+ }, la = {
2563
+ class: "flex w-full justify-between gap-16"
2564
+ }, ua = {
2565
+ class: "break-all fm-typo-en-body-lg-400 line-clamp-1"
2566
+ }, ia = {
2567
+ class: "flex"
2568
+ }, vn = /* @__PURE__ */ ie({
2569
+ __name: "RuleConditionSelector",
2570
+ props: {
2571
+ ruleKey: {
2572
+ type: String,
2573
+ required: !0
2574
+ },
2575
+ operator: {
2576
+ type: String,
2577
+ required: !0
2578
+ },
2579
+ values: {
2580
+ type: Array,
2581
+ required: !0
2582
+ },
2583
+ uniqueKey: {
2584
+ type: String,
2585
+ required: !0
2586
+ },
2587
+ selectedKeys: {
2588
+ type: Array,
2589
+ default: () => []
2590
+ }
2591
+ },
2592
+ emits: ["update:modelValue"],
2593
+ setup(e, {
2594
+ emit: t
2595
+ }) {
2596
+ const {
2597
+ t: n
2598
+ } = Ge(), r = e, o = t, a = Tn(), {
2599
+ attributes: i
2600
+ } = xt({
2601
+ valueSource: wt().restaurants,
2602
+ entity: "restaurant"
2603
+ }), {
2604
+ attributes: m
2605
+ } = xt({
2606
+ valueSource: W(() => a.state.menu.modules.item || []),
2607
+ entity: "item"
2608
+ }), c = oa(), g = aa(), h = oe(r.ruleKey), O = W(() => [...c.map((_) => ({
2609
+ label: _.label,
2610
+ value: `restaurant_attr_${_.value}`
2611
+ })), ...i.value.map((_) => ({
2612
+ label: `Restaurant ${_.key}`,
2613
+ value: `restaurant_custom_${_.key}`
2614
+ })), ...g.map((_) => ({
2615
+ label: _.label,
2616
+ value: `item_attr_${_.value}`
2617
+ })), ...m.value.map((_) => ({
2618
+ label: `Product ${_.key}`,
2619
+ value: `item_custom_${_.key}`
2620
+ }))]), p = oe(r.values), f = W(() => {
2621
+ const _ = h.value;
2622
+ if (!_) return [];
2623
+ if (_.startsWith("restaurant_attr_")) {
2624
+ const L = _.replace("restaurant_attr_", ""), P = c.find((w) => w.value === L);
2625
+ if (P && Array.isArray(P.options))
2626
+ return P.options;
2627
+ } else if (_.startsWith("restaurant_custom_")) {
2628
+ const L = _.replace("restaurant_custom_", ""), P = i.value.find((w) => w.key === L);
2629
+ if (P && Array.isArray(P.values))
2630
+ return P.values.map((w) => ({
2631
+ label: w,
2632
+ value: w
2633
+ }));
2634
+ } else if (_.startsWith("item_attr_")) {
2635
+ const L = _.replace("item_attr_", ""), P = g.find((w) => w.value === L);
2636
+ if (P && Array.isArray(P.options))
2637
+ return P.options;
2638
+ } else if (_.startsWith("item_custom_")) {
2639
+ const L = _.replace("item_custom_", ""), P = m.value.find((w) => w.key === L);
2640
+ if (P && Array.isArray(P.values))
2641
+ return P.values.map((w) => ({
2642
+ label: w,
2643
+ value: w
2644
+ }));
2645
+ }
2646
+ return [];
2647
+ }), k = oe(r.operator), T = [{
2648
+ label: n("menu.rule_groups.condition_view.operator.in"),
2649
+ value: "$in"
2650
+ }, {
2651
+ label: n("menu.rule_groups.condition_view.operator.not_in"),
2652
+ value: "$nin"
2653
+ }, {
2654
+ label: n("menu.rule_groups.condition_view.operator.starts_with"),
2655
+ value: "$startsWith"
2656
+ }], y = oe(""), u = oe(!1), v = W(() => {
2657
+ const _ = f.value, L = Array.isArray(p.value) ? p.value : [], P = L.map((B) => _.find((C) => C.value === B)).filter(Boolean);
2658
+ let w = [];
2659
+ if (y.value ? w = _.filter((B) => B.label.toLowerCase().includes(y.value.toLowerCase()) && !L.includes(B.value)) : w = _.filter((B) => !L.includes(B.value)), u.value) {
2660
+ const B = P.map((C) => ({
2661
+ ...C,
2662
+ disabled: !0
2663
+ }));
2664
+ return [...w, ...B];
2665
+ }
2666
+ return [...P, ...w];
2667
+ }), N = W(() => {
2668
+ let _ = O.value;
2669
+ return _ = _.filter((L) => !r.selectedKeys.includes(L.value) || L.value === h.value), y.value ? _.filter((L) => L.label.toLowerCase().includes(y.value.toLowerCase())) : _;
2670
+ });
2671
+ Ze(() => h.value, (_) => {
2672
+ p.value = [];
2673
+ });
2674
+ function E(_) {
2675
+ if (_.startsWith("restaurant_custom_")) {
2676
+ const L = _.replace("restaurant_custom_", ""), P = i.value.find((w) => w.key === L);
2677
+ return (P == null ? void 0 : P.type) || "string";
2678
+ } else if (_.startsWith("item_custom_")) {
2679
+ const L = _.replace("item_custom_", ""), P = m.value.find((w) => w.key === L);
2680
+ return (P == null ? void 0 : P.type) || "string";
2681
+ }
2682
+ return "string";
2683
+ }
2684
+ function R(_, L) {
2685
+ const P = E(_ === "ruleKey" ? L : h.value);
2686
+ switch (_) {
2687
+ case "ruleKey":
2688
+ o("update:modelValue", {
2689
+ ruleKey: L,
2690
+ operator: k.value,
2691
+ values: p.value,
2692
+ uniqueKey: r.uniqueKey,
2693
+ type: P,
2694
+ action: "update"
2695
+ });
2696
+ break;
2697
+ case "operator":
2698
+ o("update:modelValue", {
2699
+ ruleKey: h.value,
2700
+ operator: L,
2701
+ values: p.value,
2702
+ uniqueKey: r.uniqueKey,
2703
+ type: P,
2704
+ action: "update"
2705
+ });
2706
+ break;
2707
+ case "ruleValues":
2708
+ o("update:modelValue", {
2709
+ ruleKey: h.value,
2710
+ operator: k.value,
2711
+ values: L,
2712
+ uniqueKey: r.uniqueKey,
2713
+ type: P,
2714
+ action: "update"
2715
+ });
2716
+ break;
2717
+ }
2718
+ }
2719
+ function A() {
2720
+ o("update:modelValue", {
2721
+ ruleKey: null,
2722
+ operator: null,
2723
+ values: null,
2724
+ uniqueKey: r.uniqueKey,
2725
+ action: "delete"
2726
+ });
2727
+ }
2728
+ return (_, L) => {
2729
+ const P = pe("FmSearch"), w = pe("FmSelect"), B = pe("FmButton");
2730
+ return x(), j("div", sa, [V("div", la, [X(w, {
2731
+ class: "flex w-full",
2732
+ modelValue: h.value,
2733
+ "onUpdate:modelValue": [L[1] || (L[1] = (C) => h.value = C), L[2] || (L[2] = (C) => R("ruleKey", C))],
2734
+ items: N.value,
2735
+ placeholder: K(n)("menu.rule_groups.condition_view.select_item"),
2736
+ "menu-id": "rule-filter-keys-menu"
2737
+ }, {
2738
+ "prepend-menu": ae(() => [X(P, {
2739
+ class: "px-8",
2740
+ modelValue: y.value,
2741
+ "onUpdate:modelValue": L[0] || (L[0] = (C) => y.value = C),
2742
+ placeholder: K(n)("common.filter")
2743
+ }, null, 8, ["modelValue", "placeholder"])]),
2744
+ _: 1
2745
+ }, 8, ["modelValue", "items", "placeholder"]), X(w, {
2746
+ class: "flex w-full",
2747
+ modelValue: k.value,
2748
+ "onUpdate:modelValue": [L[3] || (L[3] = (C) => k.value = C), L[4] || (L[4] = (C) => R("operator", C))],
2749
+ placeholder: K(n)("menu.rule_groups.condition_view.select_item"),
2750
+ items: T,
2751
+ rules: [(C) => h.value && !C ? K(n)("menu.rule_groups.condition_view.required") : !0]
2752
+ }, null, 8, ["modelValue", "placeholder", "rules"]), X(w, {
2753
+ class: Pt(["flex w-full", {
2754
+ "hide-selected-items": u.value
2755
+ }]),
2756
+ modelValue: p.value,
2757
+ "onUpdate:modelValue": [L[7] || (L[7] = (C) => p.value = C), L[8] || (L[8] = (C) => R("ruleValues", C))],
2758
+ items: v.value,
2759
+ placeholder: K(n)("menu.rule_groups.condition_view.select_item"),
2760
+ multiselect: "",
2761
+ "hide-chips": "",
2762
+ "menu-id": "rule-filter-values-menu",
2763
+ rules: [(C) => h.value && (!C || C.length === 0) ? K(n)("menu.rule_groups.condition_view.required") : !0]
2764
+ }, {
2765
+ default: ae(() => [V("div", ua, Z(p.value.join(", ")), 1)]),
2766
+ "prepend-menu": ae(() => [V("div", ia, [X(P, {
2767
+ class: "px-8",
2768
+ modelValue: y.value,
2769
+ "onUpdate:modelValue": L[5] || (L[5] = (C) => y.value = C),
2770
+ placeholder: K(n)("common.filter")
2771
+ }, null, 8, ["modelValue", "placeholder"]), X(B, {
2772
+ variant: K(he).Tertiary,
2773
+ icon: u.value ? "check_box_outline_blank" : "check_box",
2774
+ iconColor: "neutral-gray-300",
2775
+ overwriteIconOutline: "filled",
2776
+ onClick: L[6] || (L[6] = (C) => u.value = !u.value)
2777
+ }, null, 8, ["variant", "icon"])])]),
2778
+ _: 1
2779
+ }, 8, ["class", "modelValue", "items", "placeholder", "rules"])]), X(B, {
2780
+ variant: "tertiary",
2781
+ "prepend-icon": "close",
2782
+ onClick: L[9] || (L[9] = se((C) => A(), ["stop"]))
2783
+ })]);
2784
+ };
2785
+ }
2786
+ }), ca = {
2787
+ class: "flex flex-col gap-16"
2788
+ }, ma = {
2789
+ class: "fm-typo-en-body-lg-600"
2790
+ }, fa = {
2791
+ class: "flex flex-col gap-16"
2792
+ }, da = /* @__PURE__ */ ie({
2793
+ __name: "RuleCondition",
2794
+ props: {
2795
+ modelValue: {}
2796
+ },
2797
+ emits: ["update:modelValue"],
2798
+ setup(e, {
2799
+ emit: t
2800
+ }) {
2801
+ const {
2802
+ t: n
2803
+ } = Ge(), r = e, o = t, a = W(() => {
2804
+ var f;
2805
+ return ((f = r.modelValue.restaurantRule) == null ? void 0 : f.restaurantAttributes) ?? {};
2806
+ }), i = W(() => {
2807
+ var f;
2808
+ return ((f = r.modelValue.restaurantRule) == null ? void 0 : f.restaurantCustomAttributes) ?? {};
2809
+ }), m = W(() => {
2810
+ var f;
2811
+ return ((f = r.modelValue.itemRule) == null ? void 0 : f.itemAttributes) ?? {};
2812
+ }), c = W(() => {
2813
+ var f;
2814
+ return ((f = r.modelValue.itemRule) == null ? void 0 : f.itemCustomAttributes) ?? {};
2815
+ }), g = oe([...(a.value.rules ?? []).map((f) => ({
2816
+ ...f,
2817
+ id: crypto.randomUUID(),
2818
+ property: `restaurant_attr_${f.property}`
2819
+ })), ...(i.value.rules ?? []).map((f) => ({
2820
+ ...f,
2821
+ id: crypto.randomUUID(),
2822
+ property: `restaurant_custom_${f.property}`
2823
+ })), ...(m.value.rules ?? []).map((f) => ({
2824
+ ...f,
2825
+ id: crypto.randomUUID(),
2826
+ property: `item_attr_${f.property}`
2827
+ })), ...(c.value.rules ?? []).map((f) => ({
2828
+ ...f,
2829
+ id: crypto.randomUUID(),
2830
+ property: `item_custom_${f.property}`
2831
+ }))]);
2832
+ bn(() => {
2833
+ g.value.length === 0 && p();
2834
+ });
2835
+ const h = oe([]);
2836
+ function O(f) {
2837
+ const k = f.uniqueKey.split("_"), T = k[0] === "newCondition";
2838
+ if (f.action === "delete")
2839
+ if (T)
2840
+ h.value = h.value.filter((y) => y.key !== f.uniqueKey);
2841
+ else {
2842
+ const y = k.slice(1).join("_");
2843
+ g.value = g.value.filter((u) => u.id !== y);
2844
+ }
2845
+ else if (f.action === "update")
2846
+ if (T)
2847
+ h.value = h.value.filter((y) => y.key !== f.uniqueKey), g.value.push({
2848
+ id: crypto.randomUUID(),
2849
+ property: f.ruleKey,
2850
+ operator: f.operator,
2851
+ value: f.values,
2852
+ type: f.type
2853
+ });
2854
+ else {
2855
+ const y = k.slice(1).join("_"), u = g.value.findIndex((v) => v.id === y);
2856
+ u !== -1 && (g.value[u] = {
2857
+ id: y,
2858
+ // Keep the same ID
2859
+ property: f.ruleKey,
2860
+ operator: f.operator,
2861
+ value: f.values,
2862
+ type: f.type
2863
+ });
2864
+ }
2865
+ o("update:modelValue", g.value);
2866
+ }
2867
+ function p() {
2868
+ h.value.push({
2869
+ key: `newCondition_${h.value.length}`
2870
+ });
2871
+ }
2872
+ return Ze(() => g.value.length + h.value.length, (f) => {
2873
+ f === 0 && p();
2874
+ }), (f, k) => {
2875
+ const T = pe("FmButton");
2876
+ return x(), j("div", ca, [V("p", ma, Z(K(n)("menu.rule_groups.condition_view.condition")), 1), V("div", fa, [(x(!0), j(_e, null, Me(g.value, (y) => (x(), j("div", {
2877
+ key: y.id
2878
+ }, [X(vn, {
2879
+ ruleKey: y.property,
2880
+ operator: y.operator,
2881
+ values: y.value,
2882
+ "unique-key": `condition_${y.id}`,
2883
+ "selected-keys": g.value.map((u) => u.property),
2884
+ "onUpdate:modelValue": k[0] || (k[0] = (u) => {
2885
+ O(u);
2886
+ })
2887
+ }, null, 8, ["ruleKey", "operator", "values", "unique-key", "selected-keys"])]))), 128)), (x(!0), j(_e, null, Me(h.value, (y) => (x(), j("div", {
2888
+ key: y.key
2889
+ }, [X(vn, {
2890
+ ruleKey: "",
2891
+ operator: "",
2892
+ "unique-key": y.key,
2893
+ values: [],
2894
+ "selected-keys": g.value.map((u) => u.property),
2895
+ "onUpdate:modelValue": k[1] || (k[1] = (u) => {
2896
+ O(u);
2897
+ })
2898
+ }, null, 8, ["unique-key", "selected-keys"])]))), 128)), X(T, {
2899
+ variant: K(he).Plain,
2900
+ "prepend-icon": "add",
2901
+ label: K(n)("menu.rule_groups.condition_view.add_condition"),
2902
+ onClick: k[2] || (k[2] = se((y) => p(), ["stop"]))
2903
+ }, null, 8, ["variant", "label"])])]);
2904
+ };
2905
+ }
2906
+ }), _a = { class: "flex w-full items-center space-x-8" }, pa = { class: "w-24" }, Ea = { class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden" }, ga = { class: "whitespace-nowrap" }, ya = { class: "fm-typo-en-body-lg-600 whitespace-nowrap" }, va = /* @__PURE__ */ ie({
2907
+ __name: "RuleConditionListView",
2908
+ props: {
2909
+ number: {
2910
+ type: Number,
2911
+ required: !0
2912
+ },
2913
+ property: {
2914
+ type: String,
2915
+ required: !0
2916
+ },
2917
+ operator: {
2918
+ type: String,
2919
+ required: !0
2920
+ },
2921
+ value: {
2922
+ type: Array,
2923
+ required: !0
2924
+ },
2925
+ isCatalogLinkItemRuleView: {
2926
+ type: Boolean,
2927
+ required: !1,
2928
+ default: !1
2929
+ }
2930
+ },
2931
+ emits: ["open-catalog-link-item-rule-form", "open-rule-condition-form"],
2932
+ setup(e, { emit: t }) {
2933
+ const { t: n } = We(), r = {
2934
+ $eq: n("menu.rule_groups.condition_view.operator.equals_to"),
2935
+ $ne: n("menu.rule_groups.condition_view.operator.not_equals_to"),
2936
+ $in: n("menu.rule_groups.condition_view.operator.in"),
2937
+ $nin: n("menu.rule_groups.condition_view.operator.not_in"),
2938
+ $regex: n("menu.rule_groups.condition_view.operator.matches_regex"),
2939
+ $contains: n("menu.rule_groups.condition_view.operator.contains"),
2940
+ $startsWith: n("menu.rule_groups.condition_view.operator.starts_with"),
2941
+ $endsWith: n("menu.rule_groups.condition_view.operator.ends_with"),
2942
+ $gt: n("menu.rule_groups.condition_view.operator.greater_than"),
2943
+ $gte: n("menu.rule_groups.condition_view.operator.greater_than_or_equals_to"),
2944
+ $lt: n("menu.rule_groups.condition_view.operator.less_than"),
2945
+ $lte: n("menu.rule_groups.condition_view.operator.less_than_or_equals_to"),
2946
+ $between: n("menu.rule_groups.condition_view.operator.between")
2947
+ };
2948
+ return (o, a) => {
2949
+ const i = pe("FmMenu");
2950
+ return x(), j("div", _a, [
2951
+ V("p", pa, Z(e.number) + ".", 1),
2952
+ V("div", Ea, [
2953
+ V("p", ga, Z(e.property), 1),
2954
+ V("p", ya, Z(r[e.operator]), 1),
2955
+ X(i, {
2956
+ trigger: "hover",
2957
+ closeOnMouseLeave: ""
2958
+ }, {
2959
+ "menu-button": ae(() => [
2960
+ V("p", {
2961
+ ref: "valueTextRef",
2962
+ onClick: a[0] || (a[0] = se((m) => e.isCatalogLinkItemRuleView ? o.$emit("open-catalog-link-item-rule-form") : o.$emit("open-rule-condition-form"), ["stop"])),
2963
+ class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate"
2964
+ }, Z(e.value.join(", ")), 513)
2965
+ ]),
2966
+ default: ae(() => [
2967
+ (x(!0), j(_e, null, Me(e.value, (m) => (x(), j("div", {
2968
+ key: m,
2969
+ class: "flex flex-col px-8 space-y-8"
2970
+ }, [
2971
+ V("p", null, Z(m), 1)
2972
+ ]))), 128))
2973
+ ]),
2974
+ _: 1
2975
+ })
2976
+ ])
2977
+ ]);
2978
+ };
2979
+ }
2980
+ });
2981
+ function qa(e) {
2982
+ return jn(e) ? Yn : xn.build(e);
2983
+ }
2984
+ function Ja(e) {
2985
+ return Xn(e) ? null : Kn.build(e);
2986
+ }
2987
+ const ba = {
2988
+ class: "flex items-center gap-24"
2989
+ }, ha = {
2990
+ key: 0,
2991
+ class: "fm-typo-en-headline-lg-600"
2992
+ }, Ta = {
2993
+ key: 1,
2994
+ class: "fm-typo-en-headline-lg-600"
2995
+ }, Ia = {
2996
+ class: "flex gap-16 items-center"
2997
+ }, Na = /* @__PURE__ */ ie({
2998
+ __name: "RuleForm",
2999
+ props: {
3000
+ modelValue: {},
3001
+ isEditMode: {
3002
+ type: Boolean
3003
+ }
3004
+ },
3005
+ emits: ["update:modelValue"],
3006
+ setup(e, {
3007
+ expose: t,
3008
+ emit: n
3009
+ }) {
3010
+ const {
3011
+ t: r
3012
+ } = Ge(), o = oe(!1), a = (T) => {
3013
+ typeof T == "boolean" ? o.value = T : o.value = !o.value;
3014
+ }, i = e, m = n;
3015
+ t({
3016
+ show: o,
3017
+ trigger: a
3018
+ });
3019
+ const c = W(() => {
3020
+ var T;
3021
+ return ((T = i.modelValue.restaurantRule) == null ? void 0 : T.restaurantAttributes) ?? {};
3022
+ }), g = W(() => {
3023
+ var T;
3024
+ return ((T = i.modelValue.restaurantRule) == null ? void 0 : T.restaurantCustomAttributes) ?? {};
3025
+ }), h = W(() => {
3026
+ var T;
3027
+ return ((T = i.modelValue.itemRule) == null ? void 0 : T.itemAttributes) ?? {};
3028
+ }), O = W(() => {
3029
+ var T;
3030
+ return ((T = i.modelValue.itemRule) == null ? void 0 : T.itemCustomAttributes) ?? {};
3031
+ }), p = oe([...c.value.rules ?? [], ...g.value.rules ?? [], ...h.value.rules ?? [], ...O.value.rules ?? []]), f = oe([]);
3032
+ function k() {
3033
+ var E, R, A, _, L, P, w, B;
3034
+ const T = i.modelValue, y = [], u = [], v = [], N = [];
3035
+ if (f.value.length === 0) {
3036
+ a(!1);
3037
+ return;
3038
+ }
3039
+ f.value.forEach((C) => {
3040
+ C.property.startsWith("restaurant_attr") ? y.push({
3041
+ property: C.property.replace("restaurant_attr_", ""),
3042
+ operator: C.operator,
3043
+ value: C.value,
3044
+ type: C.type
3045
+ }) : C.property.startsWith("restaurant_custom") ? u.push({
3046
+ property: C.property.replace("restaurant_custom_", ""),
3047
+ operator: C.operator,
3048
+ value: C.value,
3049
+ type: C.type
3050
+ }) : C.property.startsWith("item_attr") ? v.push({
3051
+ property: C.property.replace("item_attr_", ""),
3052
+ operator: C.operator,
3053
+ value: C.value,
3054
+ type: C.type
3055
+ }) : C.property.startsWith("item_custom") && N.push({
3056
+ property: C.property.replace("item_custom_", ""),
3057
+ operator: C.operator,
3058
+ value: C.value,
3059
+ type: C.type
3060
+ });
3061
+ }), T.restaurantRule = {
3062
+ restaurantAttributes: {
3063
+ logic: ((R = (E = T.restaurantRule) == null ? void 0 : E.restaurantAttributes) == null ? void 0 : R.logic) ?? "AND",
3064
+ rules: y
3065
+ },
3066
+ restaurantCustomAttributes: {
3067
+ logic: ((_ = (A = T.restaurantRule) == null ? void 0 : A.restaurantCustomAttributes) == null ? void 0 : _.logic) ?? "AND",
3068
+ rules: u
3069
+ }
3070
+ }, T.itemRule = {
3071
+ itemAttributes: {
3072
+ logic: ((P = (L = T.itemRule) == null ? void 0 : L.itemAttributes) == null ? void 0 : P.logic) ?? "AND",
3073
+ rules: v
3074
+ },
3075
+ itemCustomAttributes: {
3076
+ logic: ((B = (w = T.itemRule) == null ? void 0 : w.itemCustomAttributes) == null ? void 0 : B.logic) ?? "AND",
3077
+ rules: N
3078
+ }
3079
+ }, a(!1), m("update:modelValue", {
3080
+ menuRule: T
3081
+ });
3082
+ }
3083
+ return (T, y) => {
3084
+ const u = pe("FmButton"), v = pe("FmSideSheet");
3085
+ return x(), j(_e, null, [Qe(T.$slots, "default", {
3086
+ trigger: a
3087
+ }), X(v, {
3088
+ modelValue: o.value,
3089
+ "onUpdate:modelValue": y[3] || (y[3] = (N) => o.value = N),
3090
+ "max-width": 760,
3091
+ "close-button": !1,
3092
+ "is-container": K(qn).FmForm,
3093
+ "is-container-props": {
3094
+ onValidationSuccess: k,
3095
+ blameFormChildOnValidationFailed: !0
3096
+ }
3097
+ }, {
3098
+ "side-sheet-header": ae(() => [V("div", ba, [X(u, {
3099
+ variant: K(he).Tertiary,
3100
+ "prepend-icon": "arrow_back",
3101
+ onClick: y[0] || (y[0] = se((N) => a(), ["stop"]))
3102
+ }, null, 8, ["variant"]), T.isEditMode && p.value.length > 0 ? (x(), j("div", ha, Z(K(r)("menu.rule_groups.condition_view.edit_condition")), 1)) : (x(), j("div", Ta, Z(K(r)("menu.rule_groups.condition_view.add_condition")), 1))])]),
3103
+ "side-sheet-footer": ae(() => [V("div", Ia, [X(u, {
3104
+ variant: "primary",
3105
+ label: K(r)("common.save"),
3106
+ type: "submit"
3107
+ }, null, 8, ["label"]), X(u, {
3108
+ variant: "secondary",
3109
+ label: K(r)("common.cancel"),
3110
+ onClick: y[2] || (y[2] = se((N) => a(!1), ["stop"]))
3111
+ }, null, 8, ["label"])])]),
3112
+ default: ae(() => [X(da, {
3113
+ class: "p-16",
3114
+ "model-value": T.modelValue,
3115
+ "onUpdate:modelValue": y[1] || (y[1] = (N) => {
3116
+ f.value = N;
3117
+ })
3118
+ }, null, 8, ["model-value"])]),
3119
+ _: 1
3120
+ }, 8, ["modelValue", "is-container", "is-container-props"])], 64);
3121
+ };
3122
+ }
3123
+ }), Ra = {
3124
+ class: "flex items-center justify-between pb-8"
3125
+ }, Aa = {
3126
+ key: 0,
3127
+ class: "text-fm-color-neutral-gray-300"
3128
+ }, La = {
3129
+ class: "flex gap-8"
3130
+ }, Oa = {
3131
+ class: "flex flex-col space-y-8"
3132
+ }, Ca = {
3133
+ class: "fm-typo-en-body-lg-600"
3134
+ }, ka = {
3135
+ class: "flex items-center space-x-8"
3136
+ }, Sa = {
3137
+ class: "w-24"
3138
+ }, Pa = {
3139
+ class: "flex break-all fm-typo-en-body-lg-400 line-clamp-1 space-x-8"
3140
+ }, Da = {
3141
+ class: "px-8"
3142
+ }, wa = {
3143
+ key: 0,
3144
+ class: "flex flex-col space-y-8"
3145
+ }, Fa = {
3146
+ class: "fm-typo-en-body-lg-600"
3147
+ }, Ma = {
3148
+ class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden"
3149
+ }, Ua = {
3150
+ class: "whitespace-nowrap"
3151
+ }, Qa = /* @__PURE__ */ ie({
3152
+ __name: "RuleView",
3153
+ props: {
3154
+ modelValue: {
3155
+ type: Object,
3156
+ required: !0
3157
+ },
3158
+ title: {
3159
+ type: String,
3160
+ required: !1
3161
+ },
3162
+ isCatalogLinkItemRuleView: {
3163
+ type: Boolean,
3164
+ required: !1,
3165
+ default: !1
3166
+ },
3167
+ ruleGroupNames: {
3168
+ type: Array,
3169
+ required: !1
3170
+ },
3171
+ orderFrom: {
3172
+ type: String,
3173
+ required: !1
3174
+ }
3175
+ },
3176
+ emits: ["update:model-value", "delete-rule", "open-catalog-link-item-rule-form", "copy-rule"],
3177
+ setup(e, {
3178
+ emit: t
3179
+ }) {
3180
+ const {
3181
+ t: n
3182
+ } = We(), r = e, o = {
3183
+ [vt.enum.ALL]: "ALL",
3184
+ [vt.enum.POS_ONLY]: "POS ONLY",
3185
+ [vt.enum.NONE]: "NONE"
3186
+ }, a = t, i = oe(), m = W(() => {
3187
+ var p, f;
3188
+ return ((f = (p = r.modelValue.restaurantRule) == null ? void 0 : p.restaurantAttributes) == null ? void 0 : f.rules) ?? [];
3189
+ }), c = W(() => {
3190
+ var p, f;
3191
+ return ((f = (p = r.modelValue.restaurantRule) == null ? void 0 : p.restaurantCustomAttributes) == null ? void 0 : f.rules) ?? [];
3192
+ }), g = W(() => {
3193
+ var p, f;
3194
+ return ((f = (p = r.modelValue.itemRule) == null ? void 0 : p.itemAttributes) == null ? void 0 : f.rules) ?? [];
3195
+ }), h = W(() => {
3196
+ var p, f;
3197
+ return ((f = (p = r.modelValue.itemRule) == null ? void 0 : p.itemCustomAttributes) == null ? void 0 : f.rules) ?? [];
3198
+ }), O = W(() => [...m.value.map((p) => ({
3199
+ ...p,
3200
+ property: `${n("menu.catalog.usage.restaurant")} ${p.property}`
3201
+ })), ...c.value.map((p) => ({
3202
+ ...p,
3203
+ property: `${n("menu.catalog.usage.restaurant")} ${p.property}`
3204
+ })), ...g.value.map((p) => ({
3205
+ ...p,
3206
+ property: `${n("menu.product.title")} ${p.property}`
3207
+ })), ...h.value.map((p) => ({
3208
+ ...p,
3209
+ property: `${n("menu.product.title")} ${p.property}`
3210
+ }))]);
3211
+ return (p, f) => {
3212
+ const k = pe("FmButton"), T = pe("FmMenu");
3213
+ return x(), j(_e, null, [V("div", Ra, [e.title ? (x(), j("p", Aa, Z(e.title), 1)) : Fe("", !0), V("div", La, [e.isCatalogLinkItemRuleView ? (x(), Bt(k, {
3214
+ key: 1,
3215
+ variant: K(he).Tertiary,
3216
+ class: "cursor-pointer",
3217
+ "prepend-icon": "edit",
3218
+ "text-color": " text-fm-color-primary",
3219
+ onClick: f[1] || (f[1] = se((y) => e.isCatalogLinkItemRuleView ? p.$emit("open-catalog-link-item-rule-form") : null, ["stop"]))
3220
+ }, null, 8, ["variant"])) : (x(), Bt(Na, {
3221
+ key: 0,
3222
+ ref_key: "ruleFormRef",
3223
+ ref: i,
3224
+ "model-value": r.modelValue,
3225
+ "is-edit-mode": !0,
3226
+ "onUpdate:modelValue": f[0] || (f[0] = (y) => {
3227
+ a("update:model-value", y);
3228
+ })
3229
+ }, {
3230
+ default: ae(({
3231
+ trigger: y
3232
+ }) => [X(k, {
3233
+ variant: K(he).Tertiary,
3234
+ class: "cursor-pointer",
3235
+ "prepend-icon": "edit",
3236
+ "text-color": " text-fm-color-primary",
3237
+ onClick: se((u) => y(), ["stop"])
3238
+ }, null, 8, ["variant", "onClick"])]),
3239
+ _: 1
3240
+ }, 8, ["model-value"])), X(k, {
3241
+ variant: K(he).Tertiary,
3242
+ class: "cursor-pointer",
3243
+ "prepend-icon": "file_copy",
3244
+ "text-color": " text-fm-color-primary",
3245
+ onClick: f[2] || (f[2] = se((y) => p.$emit("copy-rule", r.modelValue._id), ["stop"]))
3246
+ }, null, 8, ["variant"]), X(k, {
3247
+ variant: K(he).Tertiary,
3248
+ class: "cursor-pointer",
3249
+ "prepend-icon": "delete",
3250
+ "text-color": " text-fm-color-typo-error",
3251
+ onClick: f[3] || (f[3] = se(() => a("delete-rule", r.modelValue._id), ["stop"]))
3252
+ }, null, 8, ["variant"])])]), V("div", Oa, [V("p", Ca, Z(K(n)("menu.rule_groups.condition_view.when")), 1), e.ruleGroupNames ? (x(!0), j(_e, {
3253
+ key: 0
3254
+ }, Me(e.ruleGroupNames, (y, u) => (x(), j("div", {
3255
+ key: y
3256
+ }, [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
+ trigger: "hover",
3258
+ closeOnMouseLeave: ""
3259
+ }, {
3260
+ "menu-button": ae(() => [V("p", {
3261
+ ref_for: !0,
3262
+ ref: "valueTextRef",
3263
+ onClick: f[4] || (f[4] = se((v) => e.isCatalogLinkItemRuleView ? p.$emit("open-catalog-link-item-rule-form") : null, ["stop"])),
3264
+ class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate"
3265
+ }, Z(y), 513)]),
3266
+ default: ae(() => [V("p", Da, Z(y), 1)]),
3267
+ _: 2
3268
+ }, 1024)])])]))), 128)) : Fe("", !0), (x(!0), j(_e, null, Me(O.value, (y, u) => {
3269
+ var v;
3270
+ return x(), j("div", {
3271
+ key: y.property
3272
+ }, [X(va, {
3273
+ number: u + (((v = e.ruleGroupNames) == null ? void 0 : v.length) ?? 0) + 1,
3274
+ property: y.property,
3275
+ operator: y.operator,
3276
+ value: y.value,
3277
+ isCatalogLinkItemRuleView: e.isCatalogLinkItemRuleView,
3278
+ onOpenCatalogLinkItemRuleForm: f[5] || (f[5] = (N) => p.$emit("open-catalog-link-item-rule-form")),
3279
+ onOpenRuleConditionForm: f[6] || (f[6] = (N) => {
3280
+ var E;
3281
+ return (E = i.value) == null ? void 0 : E.trigger();
3282
+ })
3283
+ }, null, 8, ["number", "property", "operator", "value", "isCatalogLinkItemRuleView"])]);
3284
+ }), 128))]), e.orderFrom ? (x(), j("div", wa, [V("p", Fa, Z(K(n)("menu.rule_groups.condition_view.then")), 1), V("div", Ma, [V("p", Ua, Z(K(n)("menu.rule_groups.condition_view.product_availability")), 1), f[8] || (f[8] = V("p", {
3285
+ class: "fm-typo-en-body-lg-600 text-fm-color-neutral-gray-300"
3286
+ }, "is", -1)), V("p", {
3287
+ class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate",
3288
+ onClick: f[7] || (f[7] = se((y) => e.isCatalogLinkItemRuleView ? p.$emit("open-catalog-link-item-rule-form") : null, ["stop"]))
3289
+ }, Z(o[e.orderFrom]), 1)])])) : Fe("", !0)], 64);
3290
+ };
3291
+ }
3292
+ });
3293
+ export {
3294
+ Ya as _,
3295
+ Jn as a,
3296
+ Xa as b,
3297
+ Qa as c,
3298
+ Na as d,
3299
+ ja as e,
3300
+ Ja as f,
3301
+ va as g,
3302
+ da as h,
3303
+ qa as m,
3304
+ We as u
3305
+ };