@wix/blog 1.0.709 → 1.0.710
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_sdk-exports/context-blog-feed/runtime.js +4 -4
- package/_sdk-exports/context-post-by-id/runtime.js +4 -4
- package/_sdk-exports/context-post-by-slug/runtime.js +4 -4
- package/_sdk-exports/context-post-list-item/runtime.js +2 -2
- package/_sdk-exports/context-related-posts/runtime.js +3 -3
- package/build/cjs/context-blog-feed.js +1205 -1177
- package/build/cjs/context-blog-feed.js.map +1 -1
- package/build/cjs/context-post-by-id.js +1148 -1120
- package/build/cjs/context-post-by-id.js.map +1 -1
- package/build/cjs/context-post-by-slug.js +1282 -1254
- package/build/cjs/context-post-by-slug.js.map +1 -1
- package/build/cjs/context-post-list-item.js +5 -5
- package/build/cjs/context-post-list-item.js.map +1 -1
- package/build/cjs/context-related-posts.js +821 -793
- package/build/cjs/context-related-posts.js.map +1 -1
- package/build/es/context-blog-feed.mjs +1205 -1177
- package/build/es/context-blog-feed.mjs.map +1 -1
- package/build/es/context-post-by-id.mjs +1148 -1120
- package/build/es/context-post-by-id.mjs.map +1 -1
- package/build/es/context-post-by-slug.mjs +1282 -1254
- package/build/es/context-post-by-slug.mjs.map +1 -1
- package/build/es/context-post-list-item.mjs +5 -5
- package/build/es/context-post-list-item.mjs.map +1 -1
- package/build/es/context-related-posts.mjs +821 -793
- package/build/es/context-related-posts.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -3,16 +3,17 @@ import { Component as e, Suspense as t, createContext as n, createElement as r,
|
|
|
3
3
|
import { useGetService as d, useService as f } from "@wix/services-manager-react";
|
|
4
4
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
5
5
|
var h = Object.defineProperty;
|
|
6
|
-
var g = (e6, t2) => {
|
|
6
|
+
var g = (e6, t2) => () => (t2 || (e6((t2 = { exports: {} }).exports, t2, t2.exports), e6 = null), t2.exports);
|
|
7
|
+
var _ = (e6, t2) => {
|
|
7
8
|
let n2 = {};
|
|
8
9
|
for (var r2 in e6) h(n2, r2, { get: e6[r2], enumerable: true });
|
|
9
10
|
return t2 || h(n2, Symbol.toStringTag, { value: `Module` }), n2;
|
|
10
11
|
};
|
|
11
|
-
var
|
|
12
|
-
function
|
|
12
|
+
var v = {};
|
|
13
|
+
function y(e6, t2 = false, n2 = (e7) => e7) {
|
|
13
14
|
return () => ({ __type: `event-definition`, type: e6, isDomainEvent: t2, transformations: n2 });
|
|
14
15
|
}
|
|
15
|
-
var
|
|
16
|
+
var b = (e6) => {
|
|
16
17
|
switch (e6) {
|
|
17
18
|
case `get`:
|
|
18
19
|
case `GET`:
|
|
@@ -39,11 +40,11 @@ var y = (e6) => {
|
|
|
39
40
|
throw Error(`Unknown method: ${e6}`);
|
|
40
41
|
}
|
|
41
42
|
};
|
|
42
|
-
var
|
|
43
|
+
var x = (e6) => (t2) => async (n2) => {
|
|
43
44
|
let r2, i2 = (t3) => {
|
|
44
45
|
if (r2 = e6(n2)(t3), r2.url === void 0) throw Error(`Url was not successfully created for this request, please reach out to support channels for assistance.`);
|
|
45
46
|
let { method: i3, url: a2, params: o2 } = r2;
|
|
46
|
-
return { ...r2, method:
|
|
47
|
+
return { ...r2, method: b(i3), url: a2, data: r2.data, params: o2 };
|
|
47
48
|
};
|
|
48
49
|
try {
|
|
49
50
|
let e7 = await t2.request(i2);
|
|
@@ -56,10 +57,10 @@ var b = (e6) => (t2) => async (n2) => {
|
|
|
56
57
|
throw typeof e7 == `object` && e7 && `response` in e7 && typeof e7.response == `object` && e7.response !== null && `data` in e7.response ? e7.response.data : e7;
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
60
|
+
var S = (e6) => e6.__isAmbassador ? true : !!e6().__isAmbassador;
|
|
61
|
+
var C = `__metadata`;
|
|
62
|
+
var w = `edge.wixapis.com`;
|
|
63
|
+
var T = class extends Error {
|
|
63
64
|
message;
|
|
64
65
|
response;
|
|
65
66
|
constructor(e6, t2) {
|
|
@@ -67,108 +68,108 @@ var w = class extends Error {
|
|
|
67
68
|
}
|
|
68
69
|
async details() {
|
|
69
70
|
let e6 = await this.response.json();
|
|
70
|
-
return
|
|
71
|
+
return E(this.response.status, e6?.message, e6?.details, { requestId: this.response.headers.get(`X-Wix-Request-Id`), details: e6 });
|
|
71
72
|
}
|
|
72
73
|
};
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
function
|
|
74
|
+
var E = (e6, t2, n2, r2) => ({ details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2, requestId: r2?.requestId });
|
|
75
|
+
var ee = (e6) => e6?.method && [`post`, `put`, `patch`].includes(e6.method.toLocaleLowerCase()) && e6.body ? { "Content-Type": `application/json` } : {};
|
|
76
|
+
var D = (e6) => e6 && typeof e6 == `object` && !Array.isArray(e6);
|
|
77
|
+
var te = (e6) => e6.__type === `host`;
|
|
78
|
+
function ne(e6, t2) {
|
|
78
79
|
return e6.create(t2);
|
|
79
80
|
}
|
|
80
|
-
var
|
|
81
|
-
function
|
|
82
|
-
return { [
|
|
81
|
+
var re = `x-wix-bi-gateway`;
|
|
82
|
+
function ie(e6, t2, n2) {
|
|
83
|
+
return { [re]: ae({ environment: `js-sdk${n2 ? `-${n2}` : ``}`, "package-name": e6.packageName ?? t2?.PACKAGE_NAME, "method-fqn": e6.methodFqn, entity: e6.entityFqdn }) };
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function ae(e6) {
|
|
85
86
|
return Object.entries(e6).filter(([e7, t2]) => !!t2).map(([e7, t2]) => `${e7}=${t2}`).join(`,`);
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
let t2 = globalThis.__wix_context__, n2 = { client:
|
|
89
|
-
globalThis.__wix_context__ = void 0,
|
|
88
|
+
function oe(e6) {
|
|
89
|
+
let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
|
|
90
|
+
globalThis.__wix_context__ = void 0, v.client = void 0, v.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
|
|
90
91
|
try {
|
|
91
92
|
return e6();
|
|
92
93
|
} finally {
|
|
93
|
-
globalThis.__wix_context__ = t2,
|
|
94
|
+
globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
var
|
|
97
|
-
function
|
|
98
|
-
return
|
|
97
|
+
var se = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
|
|
98
|
+
function ce(e6) {
|
|
99
|
+
return pe(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
|
|
99
100
|
}
|
|
100
|
-
var
|
|
101
|
-
var
|
|
102
|
-
var
|
|
103
|
-
var
|
|
104
|
-
function
|
|
101
|
+
var le = /([\p{Ll}\d])(\p{Lu})/gu;
|
|
102
|
+
var ue = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
|
|
103
|
+
var de = `$1\0$2`;
|
|
104
|
+
var fe = /[^\p{L}\d]+/giu;
|
|
105
|
+
function pe(e6) {
|
|
105
106
|
let t2 = e6.trim();
|
|
106
|
-
t2 = t2.replace(
|
|
107
|
+
t2 = t2.replace(le, de).replace(ue, de), t2 = t2.replace(fe, `\0`);
|
|
107
108
|
let n2 = 0, r2 = t2.length;
|
|
108
109
|
for (; t2.charAt(n2) === `\0`; ) n2++;
|
|
109
110
|
if (n2 === r2) return [];
|
|
110
111
|
for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
|
|
111
112
|
return t2.slice(n2, r2).split(/\0/g);
|
|
112
113
|
}
|
|
113
|
-
var
|
|
114
|
-
var
|
|
115
|
-
var
|
|
116
|
-
function
|
|
114
|
+
var O = (e6) => `validationError` in (e6.response?.data?.details ?? {});
|
|
115
|
+
var me = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
|
|
116
|
+
var he = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
|
|
117
|
+
function ge(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
|
|
117
118
|
if (typeof e6 != `object` || !e6) throw e6;
|
|
118
|
-
if (
|
|
119
|
-
if (
|
|
120
|
-
if (
|
|
121
|
-
let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code:
|
|
122
|
-
return
|
|
119
|
+
if (O(e6)) return _e(e6, t2, n2);
|
|
120
|
+
if (me(e6)) return ye(e6);
|
|
121
|
+
if (he(e6)) {
|
|
122
|
+
let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: ce(n3), data: {} }, requestId: e6.requestId };
|
|
123
|
+
return ve(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
|
|
123
124
|
}
|
|
124
|
-
return
|
|
125
|
+
return be(e6);
|
|
125
126
|
}
|
|
126
|
-
var
|
|
127
|
-
let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 =
|
|
128
|
-
return
|
|
127
|
+
var _e = (e6, t2, n2) => {
|
|
128
|
+
let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = xe(t2, a2, n2)?.sort((e7, t3) => e7.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e7, description: t3 }) => `"${e7}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
|
|
129
|
+
return ve(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
|
|
129
130
|
};
|
|
130
|
-
var
|
|
131
|
-
var
|
|
132
|
-
let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ??
|
|
133
|
-
return
|
|
131
|
+
var ve = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
|
|
132
|
+
var ye = (e6) => {
|
|
133
|
+
let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ?? ce(n2), o2 = e6.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e6.requestId };
|
|
134
|
+
return ve(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
|
|
134
135
|
};
|
|
135
|
-
var
|
|
136
|
-
var
|
|
136
|
+
var be = (e6) => ve(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: ce(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
|
|
137
|
+
var xe = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
|
|
137
138
|
let a2 = { ...e6, ...t2 }, o2 = Object.keys(a2);
|
|
138
139
|
return r2?.filter((e7) => !r2.some((t3) => t3.field.length > e7.field.length && t3.field.startsWith(e7.field) && o2.includes(t3.field))).map((e7) => {
|
|
139
140
|
let r3 = t2[e7.field];
|
|
140
|
-
if (r3) return { ...e7, field:
|
|
141
|
+
if (r3) return { ...e7, field: Se(r3, i2) };
|
|
141
142
|
let s2 = o2?.sort((e8, t3) => t3.length - e8.length)?.find((t3) => e7.field.startsWith(t3));
|
|
142
143
|
if (s2) {
|
|
143
144
|
let t3 = a2[s2];
|
|
144
|
-
if (t3) return { ...e7, field: e7.field.replace(s2,
|
|
145
|
+
if (t3) return { ...e7, field: e7.field.replace(s2, Se(t3, i2)) };
|
|
145
146
|
}
|
|
146
147
|
return n2 ? { ...e7, field: `${i2[0]}.${e7.field}` } : e7;
|
|
147
148
|
});
|
|
148
149
|
};
|
|
149
|
-
var
|
|
150
|
-
let n2 =
|
|
150
|
+
var Se = (e6, t2) => {
|
|
151
|
+
let n2 = Ce(e6);
|
|
151
152
|
return n2 == null ? e6 : e6.replace(`$[${n2}]`, t2[n2]);
|
|
152
153
|
};
|
|
153
|
-
var
|
|
154
|
+
var Ce = (e6) => {
|
|
154
155
|
let t2 = e6.match(/\$\[(?<argIndex>\d+)\]/);
|
|
155
156
|
return t2 && t2.groups && Number(t2.groups.argIndex);
|
|
156
157
|
};
|
|
157
|
-
function
|
|
158
|
-
return
|
|
158
|
+
function we(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
|
|
159
|
+
return oe(() => e6({ request: async (e7) => {
|
|
159
160
|
let i3 = e7({ host: s2?.HTTPHost || `www.wixapis.com` }), a3 = i3;
|
|
160
161
|
a3.method === `GET` && a3.fallback?.length && (a3.params?.toString().length ?? 0) > 4e3 && (a3 = i3.fallback[0]);
|
|
161
|
-
let o3 = s2?.HTTPHost ?? `www.wixapis.com`, u3 = `https://${l2 ?
|
|
162
|
+
let o3 = s2?.HTTPHost ?? `www.wixapis.com`, u3 = `https://${l2 ? w : o3}${a3.url}`;
|
|
162
163
|
a3.params && a3.params.toString() && (u3 += `?${a3.params.toString()}`);
|
|
163
164
|
try {
|
|
164
|
-
let e8 =
|
|
165
|
+
let e8 = ie(i3, t2, c2), o4 = { method: a3.method, ...a3.data && { body: JSON.stringify(a3.data) }, headers: { ...e8 } }, s3 = await n2(u3, o4);
|
|
165
166
|
if (s3.status !== 200) {
|
|
166
167
|
let e9 = null;
|
|
167
168
|
try {
|
|
168
169
|
e9 = await s3.json();
|
|
169
170
|
} catch {
|
|
170
171
|
}
|
|
171
|
-
let t3 =
|
|
172
|
+
let t3 = Ee(s3.status, e9?.message ?? s3.statusText, e9?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e9 }), n3 = ge(t3);
|
|
172
173
|
throw r2?.handleError(n3, { requestOptions: { url: a3.url, method: a3.method, entityFqdn: i3.entityFqdn, methodFqn: i3.methodFqn } }), t3;
|
|
173
174
|
}
|
|
174
175
|
let l3 = await s3.json();
|
|
@@ -178,18 +179,18 @@ function Ce(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
|
|
|
178
179
|
}
|
|
179
180
|
}, fetchWithAuth: n2, wixAPIFetch: i2, getActiveToken: a2, getAuthHeaders: o2 }, { validateRequestSchema: u2 }));
|
|
180
181
|
}
|
|
181
|
-
var
|
|
182
|
+
var Te = class extends Error {
|
|
182
183
|
response;
|
|
183
184
|
requestId;
|
|
184
185
|
constructor(e6) {
|
|
185
186
|
super(), this.response = e6.response, this.requestId = e6.requestId;
|
|
186
187
|
}
|
|
187
188
|
};
|
|
188
|
-
var
|
|
189
|
-
var
|
|
190
|
-
function
|
|
189
|
+
var Ee = (e6, t2, n2, r2) => new Te({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2 }, status: e6 }, requestId: r2?.requestId });
|
|
190
|
+
var De = `.`;
|
|
191
|
+
function Oe(e6, t2, n2) {
|
|
191
192
|
if (e6 == null) throw Error(`Cannot set value on null or undefined`);
|
|
192
|
-
let r2 =
|
|
193
|
+
let r2 = ke(t2), i2 = e6;
|
|
193
194
|
for (let e7 = 0; e7 < r2.length; e7++) {
|
|
194
195
|
let t3 = r2[e7];
|
|
195
196
|
if (e7 === r2.length - 1) {
|
|
@@ -201,21 +202,21 @@ function De(e6, t2, n2) {
|
|
|
201
202
|
}
|
|
202
203
|
return e6;
|
|
203
204
|
}
|
|
204
|
-
function Oe(e6) {
|
|
205
|
-
return Array.isArray(e6) ? e6 : e6.split(Ee).map((e7) => ke(e7) ? Number(e7) : e7);
|
|
206
|
-
}
|
|
207
205
|
function ke(e6) {
|
|
208
|
-
return
|
|
206
|
+
return Array.isArray(e6) ? e6 : e6.split(De).map((e7) => Ae(e7) ? Number(e7) : e7);
|
|
209
207
|
}
|
|
210
208
|
function Ae(e6) {
|
|
209
|
+
return /^\d+$/.test(e6);
|
|
210
|
+
}
|
|
211
|
+
function je(e6) {
|
|
211
212
|
let t2 = {};
|
|
212
|
-
for (let [n2, r2] of Object.entries(e6))
|
|
213
|
+
for (let [n2, r2] of Object.entries(e6)) Me(n2) || Oe(t2, ke(n2), r2);
|
|
213
214
|
return t2;
|
|
214
215
|
}
|
|
215
|
-
function
|
|
216
|
+
function Me(e6) {
|
|
216
217
|
return e6 === `__proto__` || e6 === `constructor` || e6 === `prototype`;
|
|
217
218
|
}
|
|
218
|
-
var
|
|
219
|
+
var Ne = class {
|
|
219
220
|
BRACKET_PATTERN = /\[(\d+)\]/g;
|
|
220
221
|
NUMERIC_PATTERN = /^\d+$/;
|
|
221
222
|
ESCAPED_DOT_PATTERN = /\\\./g;
|
|
@@ -238,7 +239,7 @@ var Me = class {
|
|
|
238
239
|
return e6.replace(this.ESCAPED_DOT_PLACEHOLDER, `\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER, `\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER, `\\[`);
|
|
239
240
|
}
|
|
240
241
|
unflatten() {
|
|
241
|
-
return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e6, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e6)), t2])),
|
|
242
|
+
return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e6, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e6)), t2])), je(this.cleanedModifiedFields);
|
|
242
243
|
}
|
|
243
244
|
flatten(e6) {
|
|
244
245
|
let t2 = {};
|
|
@@ -258,12 +259,12 @@ var Me = class {
|
|
|
258
259
|
if (!Array.isArray(n2)) throw Error(`Expected array at path ${this.buildPathString(r2)}, but got ${typeof n2}`);
|
|
259
260
|
r2.push(`[${e7}]`), n2 = n2[parseInt(e7, 10)];
|
|
260
261
|
}, a2 = (e7, t3) => {
|
|
261
|
-
let i3 = e7 in
|
|
262
|
+
let i3 = e7 in se ? se[e7] : void 0;
|
|
262
263
|
if (i3 && i3 in t3) {
|
|
263
264
|
r2.push(i3), n2 = t3[i3];
|
|
264
265
|
return;
|
|
265
266
|
}
|
|
266
|
-
let a3 =
|
|
267
|
+
let a3 = Le(e7);
|
|
267
268
|
if (a3 && a3 in t3) r2.push(a3), n2 = t3[a3];
|
|
268
269
|
else throw Error(`Cannot find key '${e7}' or its transformations at path ${this.buildPathString(r2)}`);
|
|
269
270
|
}, o2 = (e7, t3) => {
|
|
@@ -287,28 +288,28 @@ var Me = class {
|
|
|
287
288
|
return e6.replace(this.BRACKET_PATTERN, (t2, n2, r2) => r2 > 0 && e6[r2 - 1] === `\\` ? t2 : `.` + n2);
|
|
288
289
|
}
|
|
289
290
|
};
|
|
290
|
-
function
|
|
291
|
+
function Pe(e6, t2) {
|
|
291
292
|
let n2 = e6?.modifiedFields;
|
|
292
293
|
if (!n2) return null;
|
|
293
|
-
let r2 =
|
|
294
|
+
let r2 = Fe(n2);
|
|
294
295
|
if (!r2) return null;
|
|
295
296
|
let { unflattenedModifiedFields: i2, modifiedFieldsManipulator: a2 } = r2;
|
|
296
297
|
e6 = { ...e6, modifiedFields: i2 };
|
|
297
298
|
let o2 = t2(e6), s2 = o2?.modifiedFields;
|
|
298
299
|
if (!s2) return null;
|
|
299
|
-
let c2 =
|
|
300
|
+
let c2 = Ie(s2, a2);
|
|
300
301
|
return c2 === null ? null : (o2.modifiedFields = c2, o2);
|
|
301
302
|
}
|
|
302
|
-
function
|
|
303
|
+
function Fe(e6) {
|
|
303
304
|
if (typeof e6 == `object` && e6 && !Array.isArray(e6)) try {
|
|
304
|
-
let t2 = new
|
|
305
|
+
let t2 = new Ne(e6);
|
|
305
306
|
return { unflattenedModifiedFields: t2.unflatten(), modifiedFieldsManipulator: t2 };
|
|
306
307
|
} catch {
|
|
307
308
|
return null;
|
|
308
309
|
}
|
|
309
310
|
return null;
|
|
310
311
|
}
|
|
311
|
-
function
|
|
312
|
+
function Ie(e6, t2) {
|
|
312
313
|
if (typeof e6 == `object` && e6 && !Array.isArray(e6)) try {
|
|
313
314
|
return t2.flatten(e6);
|
|
314
315
|
} catch {
|
|
@@ -316,10 +317,10 @@ function Fe(e6, t2) {
|
|
|
316
317
|
}
|
|
317
318
|
return null;
|
|
318
319
|
}
|
|
319
|
-
function
|
|
320
|
+
function Le(e6) {
|
|
320
321
|
return e6.replace(/[-_\s]+(.)?/g, (e7, t2) => t2 ? t2.toUpperCase() : ``).replace(/^./, (e7) => e7.toLowerCase());
|
|
321
322
|
}
|
|
322
|
-
function
|
|
323
|
+
function Re() {
|
|
323
324
|
return { emit(e6, ...t2) {
|
|
324
325
|
for (let n2 = 0, r2 = this.events[e6] || [], i2 = r2.length; n2 < i2; n2++) r2[n2](...t2);
|
|
325
326
|
}, events: {}, on(e6, t2) {
|
|
@@ -328,8 +329,8 @@ function Le() {
|
|
|
328
329
|
};
|
|
329
330
|
} };
|
|
330
331
|
}
|
|
331
|
-
var
|
|
332
|
-
function
|
|
332
|
+
var ze = (e6) => e6.__type === `event-definition`;
|
|
333
|
+
function Be(e6, t2, n2, r2) {
|
|
333
334
|
let i2;
|
|
334
335
|
if (e6.isDomainEvent) {
|
|
335
336
|
let { deletedEvent: e7, actionEvent: t3, createdEvent: a3, updatedEvent: o3, ...s3 } = n2, c2 = { ...r2, ...s3 };
|
|
@@ -340,14 +341,14 @@ function ze(e6, t2, n2, r2) {
|
|
|
340
341
|
let e7 = s2.modifiedFields;
|
|
341
342
|
if (typeof e7 == `object` && e7 && !Array.isArray(e7)) {
|
|
342
343
|
o2 = structuredClone(i2);
|
|
343
|
-
let e8 =
|
|
344
|
+
let e8 = Pe(s2, a2);
|
|
344
345
|
if (e8) return t2(e8);
|
|
345
346
|
}
|
|
346
347
|
}
|
|
347
348
|
return t2(a2(o2));
|
|
348
349
|
}
|
|
349
|
-
function
|
|
350
|
-
let t2 = /* @__PURE__ */ new Map(), n2 =
|
|
350
|
+
function Ve(e6) {
|
|
351
|
+
let t2 = /* @__PURE__ */ new Map(), n2 = Re();
|
|
351
352
|
return { initModule(e7) {
|
|
352
353
|
return (r2) => {
|
|
353
354
|
let i2 = t2.get(e7.type) ?? [];
|
|
@@ -357,7 +358,7 @@ function Be(e6) {
|
|
|
357
358
|
let { eventType: r2, identity: i2, instanceId: a2, payload: o2, accountInfo: s2 } = await this.parseJWT(e7), c2 = [...n3.expectedEvents, ...Array.from(t2.keys()).map((e8) => ({ type: e8 }))];
|
|
358
359
|
if (c2.length > 0 && !c2.some(({ type: e8 }) => e8 === r2)) throw Error(`Unexpected event type: ${r2}. Expected one of: ${c2.map((e8) => e8.type).join(`, `)}`);
|
|
359
360
|
let l2 = t2.get(r2) ?? [];
|
|
360
|
-
return await Promise.all(l2.map(({ eventDefinition: e8, handler: t3 }) =>
|
|
361
|
+
return await Promise.all(l2.map(({ eventDefinition: e8, handler: t3 }) => Be(e8, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
|
|
361
362
|
}, async processRequest(e7, t3) {
|
|
362
363
|
let n3 = await e7.text();
|
|
363
364
|
return this.process(n3, t3);
|
|
@@ -376,12 +377,12 @@ function Be(e6) {
|
|
|
376
377
|
let n3 = Array.from(t2.keys()).map((e8) => ({ type: e8 }));
|
|
377
378
|
if (n3.length > 0 && !n3.some(({ type: t3 }) => t3 === e7.eventType)) throw Error(`Unexpected event type: ${e7.eventType}. Expected one of: ${n3.map((e8) => e8.type).join(`, `)}`);
|
|
378
379
|
let r2 = t2.get(e7.eventType) ?? [];
|
|
379
|
-
await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) =>
|
|
380
|
-
}, apps: { AppInstalled:
|
|
380
|
+
await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Be(t3, n4, e7.payload, { instanceId: e7.instanceId, identity: e7.identity })));
|
|
381
|
+
}, apps: { AppInstalled: y(`AppInstalled`)(), AppRemoved: y(`AppRemoved`)() } } };
|
|
381
382
|
}
|
|
382
|
-
var
|
|
383
|
-
function
|
|
384
|
-
let t2 = /* @__PURE__ */ new Map(), n2 =
|
|
383
|
+
var He = (e6) => e6.__type === `service-plugin-definition`;
|
|
384
|
+
function Ue(e6) {
|
|
385
|
+
let t2 = /* @__PURE__ */ new Map(), n2 = Re();
|
|
385
386
|
return { initModule(e7) {
|
|
386
387
|
return (r2) => {
|
|
387
388
|
let i2 = t2.get(e7.componentType.toLowerCase()) ?? [];
|
|
@@ -423,42 +424,42 @@ function He(e6) {
|
|
|
423
424
|
} } };
|
|
424
425
|
}
|
|
425
426
|
var k = `X-Wix-Consistent`;
|
|
426
|
-
function
|
|
427
|
+
function We(e6) {
|
|
427
428
|
let t2 = e6.headers || { Authorization: `` }, n2 = { getAuthHeaders: (e7) => Promise.resolve({ headers: {} }) }, r2 = e6.auth, i2 = typeof r2 == `function` ? r2 : () => r2 ?? n2, a2 = () => i2().getAuthHeaders(e6.host), o2 = () => e6.fetch ?? fetch, s2 = async (n3, r3) => {
|
|
428
429
|
let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [k]: t2[k] } : {} }, l3 = e6.host?.getErrorHandler?.();
|
|
429
430
|
try {
|
|
430
431
|
if (typeof n3 == `string` || n3 instanceof URL) {
|
|
431
432
|
let e7 = await i3(n3, { ...r3, headers: c3 });
|
|
432
433
|
l3?.handleError(e7, { requestOptions: { url: n3.toString(), method: r3?.method } });
|
|
433
|
-
let a3 =
|
|
434
|
+
let a3 = Ge(e7);
|
|
434
435
|
return a3 && (t2[k] = a3), e7;
|
|
435
436
|
}
|
|
436
437
|
{
|
|
437
438
|
for (let [e8, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e8, t3);
|
|
438
439
|
let e7 = await i3(n3, r3);
|
|
439
440
|
l3?.handleError(e7, { requestOptions: { url: n3.url, method: r3?.method } });
|
|
440
|
-
let a3 =
|
|
441
|
+
let a3 = Ge(e7);
|
|
441
442
|
return a3 && (t2[k] = a3), e7;
|
|
442
443
|
}
|
|
443
444
|
} catch (e7) {
|
|
444
445
|
throw l3?.handleError(e7, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e7;
|
|
445
446
|
}
|
|
446
|
-
}, { client: c2, initModule: l2 } =
|
|
447
|
-
let i3 = o2(), s3 = await a2(), c3 =
|
|
447
|
+
}, { client: c2, initModule: l2 } = Ue(i2), { client: u2, initModule: d2 } = Ve(i2), f2 = async (n3, r3) => {
|
|
448
|
+
let i3 = o2(), s3 = await a2(), c3 = ee(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [k]: t2[k] } : {} } }), u3 = Ge(l3);
|
|
448
449
|
return u3 && (t2[k] = u3), l3;
|
|
449
450
|
}, p2 = (t3, n3) => {
|
|
450
|
-
if (
|
|
451
|
-
if (
|
|
452
|
-
if (
|
|
451
|
+
if (ze(t3)) return d2(t3);
|
|
452
|
+
if (He(t3)) return l2(t3);
|
|
453
|
+
if (te(t3) && e6.host) return ne(t3, e6.host);
|
|
453
454
|
if (typeof t3 == `function`) {
|
|
454
455
|
if (`__type` in t3 && t3.__type === `wix_spi_error`) return t3;
|
|
455
456
|
let r3 = e6.host?.apiBaseUrl ?? `www.wixapis.com`, o3 = e6.useCDN === void 0 ? i2().shouldUseCDN : e6.useCDN;
|
|
456
|
-
return
|
|
457
|
+
return we(oe(() => S(t3)) ? x(t3) : t3, n3 ?? {}, f2, e6.host?.getErrorHandler?.(), (e7, t4) => {
|
|
457
458
|
let n4 = new URL(e7, `https://${r3}`);
|
|
458
459
|
return n4.host = r3, n4.protocol = `https`, f2(n4.toString(), t4);
|
|
459
460
|
}, i2().getActiveToken, async () => a2(), { HTTPHost: r3 }, e6.host?.name, o3, e6.validateRequestSchema);
|
|
460
461
|
}
|
|
461
|
-
return
|
|
462
|
+
return D(t3) ? Object.fromEntries(Object.entries(t3).map(([e7, n4]) => [e7, p2(n4, t3[C])])) : t3;
|
|
462
463
|
}, m2 = (e7) => {
|
|
463
464
|
for (let n3 in e7) t2[n3] = e7[n3];
|
|
464
465
|
};
|
|
@@ -466,33 +467,33 @@ function Ue(e6) {
|
|
|
466
467
|
let t3 = i2();
|
|
467
468
|
return t3.getAuthHeaders = t3.getAuthHeaders.bind(void 0, e6.host), t3;
|
|
468
469
|
}, setHeaders: m2, use: p2, enableContext(e7, t3 = { elevated: false }) {
|
|
469
|
-
e7 === `global` ? globalThis.__wix_context__ == null ? t3.elevated ? globalThis.__wix_context__ = { elevatedClient: this } : globalThis.__wix_context__ = { client: this } : t3.elevated ? globalThis.__wix_context__.elevatedClient = this : globalThis.__wix_context__.client = this : t3.elevated ?
|
|
470
|
+
e7 === `global` ? globalThis.__wix_context__ == null ? t3.elevated ? globalThis.__wix_context__ = { elevatedClient: this } : globalThis.__wix_context__ = { client: this } : t3.elevated ? globalThis.__wix_context__.elevatedClient = this : globalThis.__wix_context__.client = this : t3.elevated ? v.elevatedClient = this : v.client = this;
|
|
470
471
|
}, fetch: (t3, n3) => {
|
|
471
472
|
let r3 = e6.host?.apiBaseUrl ?? `www.wixapis.com`, i3 = new URL(t3, `https://${r3}`);
|
|
472
473
|
return i3.host = r3, i3.protocol = `https`, f2(i3.toString(), n3);
|
|
473
474
|
}, fetchWithAuth: s2, async graphql(t3, n3, r3 = { apiVersion: `alpha` }) {
|
|
474
475
|
let i3 = e6?.host?.apiBaseUrl ?? `www.wixapis.com`, a3 = await f2(`https://${i3}/graphql/${r3.apiVersion}`, { method: `POST`, headers: { "Content-Type": `application/json` }, body: JSON.stringify({ query: t3, variables: n3 }) });
|
|
475
|
-
if (a3.status !== 200) throw new
|
|
476
|
+
if (a3.status !== 200) throw new T(`GraphQL request failed with status ${a3.status}`, a3);
|
|
476
477
|
let { data: o3, errors: s3 } = await a3.json();
|
|
477
478
|
return { data: o3 ?? {}, errors: s3 };
|
|
478
479
|
}, webhooks: u2, servicePlugins: c2 };
|
|
479
480
|
}
|
|
480
|
-
function
|
|
481
|
+
function Ge(e6) {
|
|
481
482
|
return e6.headers?.get(`X-Wix-Consistent`) ?? e6.headers?.get(`x-wix-consistent`);
|
|
482
483
|
}
|
|
483
|
-
var
|
|
484
|
-
var
|
|
485
|
-
var
|
|
486
|
-
var
|
|
487
|
-
var
|
|
488
|
-
function
|
|
484
|
+
var Ke = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
|
|
485
|
+
var qe = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
|
|
486
|
+
var Je = `items`;
|
|
487
|
+
var Ye = `pagingMetadata`;
|
|
488
|
+
var Xe = Ke;
|
|
489
|
+
function Ze(e6, t2) {
|
|
489
490
|
return e6?.split(`.`).map((e7) => t2?.[e7] ?? e7).join(`.`);
|
|
490
491
|
}
|
|
491
|
-
var
|
|
492
|
-
function Qe(e6, t2, n2) {
|
|
493
|
-
return (e6 === Ze || e6.endsWith(`.${Ze}`)) && typeof t2 == `string` ? Xe(t2, n2) : t2;
|
|
494
|
-
}
|
|
492
|
+
var Qe = `sort.fieldName`;
|
|
495
493
|
function $e(e6, t2, n2) {
|
|
494
|
+
return (e6 === Qe || e6.endsWith(`.${Qe}`)) && typeof t2 == `string` ? Ze(t2, n2) : t2;
|
|
495
|
+
}
|
|
496
|
+
function et(e6, t2, n2) {
|
|
496
497
|
let r2 = (e7) => n2.includes(e7), i2 = (e7, n3) => {
|
|
497
498
|
if (Array.isArray(e7)) e7.forEach((e8) => {
|
|
498
499
|
i2(e8, n3);
|
|
@@ -502,157 +503,157 @@ function $e(e6, t2, n2) {
|
|
|
502
503
|
Object.keys(a2).forEach((e8) => {
|
|
503
504
|
let o2 = n3 === `` ? e8 : `${n3}.${e8}`;
|
|
504
505
|
if (r2(o2)) return;
|
|
505
|
-
let s2 =
|
|
506
|
-
s2 !== e8 && !(s2 in a2) && (a2[s2] = a2[e8], delete a2[e8]), a2[s2] =
|
|
506
|
+
let s2 = tt(e8, t2);
|
|
507
|
+
s2 !== e8 && !(s2 in a2) && (a2[s2] = a2[e8], delete a2[e8]), a2[s2] = $e(o2, a2[s2], t2), i2(a2[s2], o2);
|
|
507
508
|
});
|
|
508
509
|
}
|
|
509
510
|
};
|
|
510
511
|
return i2(e6, ``), e6;
|
|
511
512
|
}
|
|
512
|
-
function
|
|
513
|
+
function tt(e6, t2) {
|
|
513
514
|
let n2;
|
|
514
515
|
return n2 = e6.includes(`.`) ? e6.split(`.`).map((e7) => t2[e7] ?? e7).join(`.`) : t2[e6] ?? e6, n2;
|
|
515
516
|
}
|
|
516
517
|
function A(e6, t2 = []) {
|
|
517
|
-
return
|
|
518
|
+
return et(e6, Ke, t2);
|
|
518
519
|
}
|
|
519
520
|
function j(e6, t2 = []) {
|
|
520
|
-
return
|
|
521
|
+
return et(e6, qe, t2);
|
|
521
522
|
}
|
|
522
523
|
function M(e6) {
|
|
523
524
|
return e6 ? new Date(e6) : void 0;
|
|
524
525
|
}
|
|
525
|
-
var
|
|
526
|
-
function
|
|
526
|
+
var nt = /* @__PURE__ */ new WeakMap();
|
|
527
|
+
function rt() {
|
|
527
528
|
return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
|
|
528
529
|
}
|
|
529
|
-
function
|
|
530
|
+
function it(e6, t2) {
|
|
530
531
|
let n2 = e6.get(t2);
|
|
531
|
-
return n2 || (n2 =
|
|
532
|
+
return n2 || (n2 = rt(), e6.set(t2, n2)), n2;
|
|
532
533
|
}
|
|
533
|
-
function
|
|
534
|
-
return t2 === `*` ? (e6.anyField ??=
|
|
534
|
+
function at(e6, t2) {
|
|
535
|
+
return t2 === `*` ? (e6.anyField ??= rt(), e6.anyField) : t2.endsWith(`{}`) ? (e6.mapFields ??= /* @__PURE__ */ new Map(), it(e6.mapFields, t2.slice(0, -2))) : (e6.fields ??= /* @__PURE__ */ new Map(), it(e6.fields, t2));
|
|
535
536
|
}
|
|
536
|
-
function
|
|
537
|
-
let t2 =
|
|
537
|
+
function ot(e6) {
|
|
538
|
+
let t2 = rt();
|
|
538
539
|
for (let n2 of e6) {
|
|
539
|
-
let e7 = n2.path.split(`.`).reduce(
|
|
540
|
+
let e7 = n2.path.split(`.`).reduce(at, t2);
|
|
540
541
|
e7.leaves ??= [], e7.leaves.push(n2);
|
|
541
542
|
}
|
|
542
543
|
return t2;
|
|
543
544
|
}
|
|
544
|
-
function ot(e6) {
|
|
545
|
-
let t2 = tt.get(e6);
|
|
546
|
-
return t2 || (t2 = at(e6), tt.set(e6, t2)), t2;
|
|
547
|
-
}
|
|
548
545
|
function st(e6) {
|
|
549
|
-
|
|
546
|
+
let t2 = nt.get(e6);
|
|
547
|
+
return t2 || (t2 = ot(e6), nt.set(e6, t2)), t2;
|
|
550
548
|
}
|
|
551
|
-
function ct(e6
|
|
552
|
-
return
|
|
549
|
+
function ct(e6) {
|
|
550
|
+
return typeof e6 == `object` && !!e6;
|
|
553
551
|
}
|
|
554
|
-
function lt(e6, t2, n2) {
|
|
555
|
-
|
|
552
|
+
function lt(e6, { isRepeated: t2, isMap: n2 }, r2) {
|
|
553
|
+
return t2 ? Array.isArray(e6) ? e6.map(r2) : e6 : n2 ? ct(e6) ? Object.fromEntries(Object.entries(e6).map(([e7, t3]) => [e7, r2(t3)])) : e6 : r2(e6);
|
|
556
554
|
}
|
|
557
555
|
function ut(e6, t2, n2) {
|
|
556
|
+
ct(e6) && pt(e6, t2, n2);
|
|
557
|
+
}
|
|
558
|
+
function dt(e6, t2, n2) {
|
|
558
559
|
for (let [r2, i2] of t2) {
|
|
559
560
|
if (!(r2 in e6)) continue;
|
|
560
|
-
if (i2.leaves) for (let t4 of i2.leaves) e6[r2] =
|
|
561
|
+
if (i2.leaves) for (let t4 of i2.leaves) e6[r2] = lt(e6[r2], t4, n2);
|
|
561
562
|
let t3 = e6[r2];
|
|
562
|
-
Array.isArray(t3) ? t3.forEach((e7) =>
|
|
563
|
+
Array.isArray(t3) ? t3.forEach((e7) => ut(e7, i2, n2)) : ut(t3, i2, n2);
|
|
563
564
|
}
|
|
564
565
|
}
|
|
565
|
-
function
|
|
566
|
+
function ft(e6, t2, n2) {
|
|
566
567
|
for (let [r2, i2] of t2) {
|
|
567
568
|
let t3 = e6[r2];
|
|
568
|
-
|
|
569
|
+
ct(t3) && Object.values(t3).forEach((e7) => ut(e7, i2, n2));
|
|
569
570
|
}
|
|
570
571
|
}
|
|
571
|
-
function
|
|
572
|
-
t2 &&
|
|
572
|
+
function pt(e6, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
|
|
573
|
+
t2 && dt(e6, t2, i2), n2 && ft(e6, n2, i2), r2 && Object.values(e6).forEach((e7) => ut(e7, r2, i2));
|
|
573
574
|
}
|
|
574
575
|
function N(e6, t2) {
|
|
575
|
-
if (!
|
|
576
|
-
for (let { paths: n2, transformFn: r2 } of t2)
|
|
576
|
+
if (!ct(e6)) return e6;
|
|
577
|
+
for (let { paths: n2, transformFn: r2 } of t2) pt(e6, st(n2), r2);
|
|
577
578
|
return e6;
|
|
578
579
|
}
|
|
579
|
-
function
|
|
580
|
-
return
|
|
580
|
+
function mt(e6) {
|
|
581
|
+
return yt(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
|
|
581
582
|
}
|
|
582
|
-
var
|
|
583
|
-
var
|
|
584
|
-
var
|
|
585
|
-
var
|
|
586
|
-
function
|
|
583
|
+
var ht = /([\p{Ll}\d])(\p{Lu})/gu;
|
|
584
|
+
var gt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
|
|
585
|
+
var _t = `$1\0$2`;
|
|
586
|
+
var vt = /[^\p{L}\d]+/giu;
|
|
587
|
+
function yt(e6) {
|
|
587
588
|
let t2 = e6.trim();
|
|
588
|
-
t2 = t2.replace(
|
|
589
|
+
t2 = t2.replace(ht, _t).replace(gt, _t), t2 = t2.replace(vt, `\0`);
|
|
589
590
|
let n2 = 0, r2 = t2.length;
|
|
590
591
|
for (; t2.charAt(n2) === `\0`; ) n2++;
|
|
591
592
|
if (n2 === r2) return [];
|
|
592
593
|
for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
|
|
593
594
|
return t2.slice(n2, r2).split(/\0/g);
|
|
594
595
|
}
|
|
595
|
-
var
|
|
596
|
-
var
|
|
597
|
-
var
|
|
596
|
+
var bt = (e6) => `validationError` in (e6.response?.data?.details ?? {});
|
|
597
|
+
var xt = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
|
|
598
|
+
var St = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
|
|
598
599
|
function P(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
|
|
599
600
|
if (typeof e6 != `object` || !e6) throw e6;
|
|
600
|
-
if (
|
|
601
|
-
if (
|
|
602
|
-
if (
|
|
603
|
-
let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code:
|
|
604
|
-
return
|
|
601
|
+
if (bt(e6)) return Ct(e6, t2, n2);
|
|
602
|
+
if (xt(e6)) return Tt(e6);
|
|
603
|
+
if (St(e6)) {
|
|
604
|
+
let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: mt(n3), data: {} }, requestId: e6.requestId };
|
|
605
|
+
return wt(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
|
|
605
606
|
}
|
|
606
|
-
return
|
|
607
|
+
return Et(e6);
|
|
607
608
|
}
|
|
608
|
-
var
|
|
609
|
-
let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 =
|
|
610
|
-
return
|
|
609
|
+
var Ct = (e6, t2, n2) => {
|
|
610
|
+
let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Dt(t2, a2, n2)?.sort((e7, t3) => e7.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e7, description: t3 }) => `"${e7}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
|
|
611
|
+
return wt(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
|
|
611
612
|
};
|
|
612
|
-
var
|
|
613
|
-
var
|
|
614
|
-
let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ??
|
|
615
|
-
return
|
|
613
|
+
var wt = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
|
|
614
|
+
var Tt = (e6) => {
|
|
615
|
+
let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ?? mt(n2), o2 = e6.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e6.requestId };
|
|
616
|
+
return wt(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
|
|
616
617
|
};
|
|
617
|
-
var
|
|
618
|
-
var
|
|
618
|
+
var Et = (e6) => wt(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: mt(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
|
|
619
|
+
var Dt = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
|
|
619
620
|
let a2 = { ...e6, ...t2 }, o2 = Object.keys(a2);
|
|
620
621
|
return r2?.filter((e7) => !r2.some((t3) => t3.field.length > e7.field.length && t3.field.startsWith(e7.field) && o2.includes(t3.field))).map((e7) => {
|
|
621
622
|
let r3 = t2[e7.field];
|
|
622
|
-
if (r3) return { ...e7, field:
|
|
623
|
+
if (r3) return { ...e7, field: Ot(r3, i2) };
|
|
623
624
|
let s2 = o2?.sort((e8, t3) => t3.length - e8.length)?.find((t3) => e7.field.startsWith(t3));
|
|
624
625
|
if (s2) {
|
|
625
626
|
let t3 = a2[s2];
|
|
626
|
-
if (t3) return { ...e7, field: e7.field.replace(s2,
|
|
627
|
+
if (t3) return { ...e7, field: e7.field.replace(s2, Ot(t3, i2)) };
|
|
627
628
|
}
|
|
628
629
|
return n2 ? { ...e7, field: `${i2[0]}.${e7.field}` } : e7;
|
|
629
630
|
});
|
|
630
631
|
};
|
|
631
|
-
var
|
|
632
|
-
let n2 =
|
|
632
|
+
var Ot = (e6, t2) => {
|
|
633
|
+
let n2 = kt(e6);
|
|
633
634
|
return n2 == null ? e6 : e6.replace(`$[${n2}]`, t2[n2]);
|
|
634
635
|
};
|
|
635
|
-
var
|
|
636
|
+
var kt = (e6) => {
|
|
636
637
|
let t2 = e6.match(/\$\[(?<argIndex>\d+)\]/);
|
|
637
638
|
return t2 && t2.groups && Number(t2.groups.argIndex);
|
|
638
639
|
};
|
|
639
|
-
function
|
|
640
|
+
function At() {
|
|
640
641
|
let e6 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
|
|
641
642
|
if (e6) return { initWixModules(t3, n3) {
|
|
642
|
-
return
|
|
643
|
+
return jt(() => e6(t3, n3));
|
|
643
644
|
}, fetchWithAuth() {
|
|
644
645
|
throw Error(`fetchWithAuth is not available in this context`);
|
|
645
646
|
}, graphql() {
|
|
646
647
|
throw Error(`graphql is not available in this context`);
|
|
647
648
|
} };
|
|
648
|
-
let t2 = typeof $wixContext < `u` ? $wixContext.client :
|
|
649
|
+
let t2 = typeof $wixContext < `u` ? $wixContext.client : v.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : v.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : v.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : v.elevatedClient;
|
|
649
650
|
if (t2 || n2) return { initWixModules(e7, r2) {
|
|
650
651
|
if (r2) {
|
|
651
652
|
if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
|
|
652
|
-
return
|
|
653
|
+
return jt(() => n2.use(e7));
|
|
653
654
|
}
|
|
654
655
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
655
|
-
return
|
|
656
|
+
return jt(() => t2.use(e7));
|
|
656
657
|
}, fetchWithAuth: (e7, n3) => {
|
|
657
658
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
658
659
|
return t2.fetchWithAuth(e7, n3);
|
|
@@ -664,110 +665,110 @@ function kt() {
|
|
|
664
665
|
return t2.graphql(e7, n3, r2);
|
|
665
666
|
} };
|
|
666
667
|
}
|
|
667
|
-
function
|
|
668
|
-
let t2 = globalThis.__wix_context__, n2 = { client:
|
|
669
|
-
globalThis.__wix_context__ = void 0,
|
|
668
|
+
function jt(e6) {
|
|
669
|
+
let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
|
|
670
|
+
globalThis.__wix_context__ = void 0, v.client = void 0, v.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
|
|
670
671
|
try {
|
|
671
672
|
return e6();
|
|
672
673
|
} finally {
|
|
673
|
-
globalThis.__wix_context__ = t2,
|
|
674
|
+
globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
|
|
674
675
|
}
|
|
675
676
|
}
|
|
676
|
-
function
|
|
677
|
+
function Mt(e6, t2) {
|
|
677
678
|
return (...n2) => {
|
|
678
|
-
let r2 =
|
|
679
|
+
let r2 = At();
|
|
679
680
|
return r2 ? r2.initWixModules(e6, t2).apply(void 0, n2) : e6.apply(void 0, n2);
|
|
680
681
|
};
|
|
681
682
|
}
|
|
682
683
|
function F(e6, t2 = false) {
|
|
683
|
-
return
|
|
684
|
+
return Mt(e6, t2);
|
|
684
685
|
}
|
|
685
686
|
function I(e6, t2) {
|
|
686
|
-
let n2 =
|
|
687
|
-
return t2 && r2 ? new URLSearchParams({ ".r":
|
|
687
|
+
let n2 = Pt(e6), r2 = Object.entries(n2).some(([e7, t3]) => e7.includes(`.`) || Array.isArray(t3) && t3.some((e8) => typeof e8 == `object`));
|
|
688
|
+
return t2 && r2 ? new URLSearchParams({ ".r": It(JSON.stringify(e6)) }) : Object.entries(n2).reduce((e7, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
|
|
688
689
|
r3 == null || Array.isArray(n3) && typeof r3 == `object` || e7.append(t3, r3);
|
|
689
690
|
}), e7), new URLSearchParams());
|
|
690
691
|
}
|
|
691
|
-
function
|
|
692
|
-
let t2 =
|
|
693
|
-
return
|
|
692
|
+
function Nt(e6) {
|
|
693
|
+
let t2 = Yt(qt(e6.host), e6.domainToMappings);
|
|
694
|
+
return an(tn(e6.protoPath, e6.data || {}), t2);
|
|
694
695
|
}
|
|
695
|
-
function
|
|
696
|
+
function Pt(e6, t2 = ``) {
|
|
696
697
|
let n2 = {};
|
|
697
698
|
return Object.entries(e6).forEach(([e7, r2]) => {
|
|
698
|
-
let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 =
|
|
699
|
+
let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Ft(t2, e7);
|
|
699
700
|
if (i2) {
|
|
700
|
-
let e8 =
|
|
701
|
+
let e8 = Pt(r2, a2);
|
|
701
702
|
Object.assign(n2, e8);
|
|
702
703
|
} else n2[a2] = r2;
|
|
703
704
|
}), n2;
|
|
704
705
|
}
|
|
705
|
-
function
|
|
706
|
+
function Ft(e6, t2) {
|
|
706
707
|
return `${e6}${e6 ? `.` : ``}${t2}`;
|
|
707
708
|
}
|
|
708
|
-
var
|
|
709
|
+
var It = (e6) => {
|
|
709
710
|
let t2 = new TextEncoder().encode(e6);
|
|
710
711
|
return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e6, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
|
|
711
712
|
};
|
|
712
|
-
var
|
|
713
|
-
var
|
|
714
|
-
var
|
|
715
|
-
var
|
|
716
|
-
var
|
|
717
|
-
var
|
|
718
|
-
var
|
|
719
|
-
var
|
|
720
|
-
var
|
|
721
|
-
var
|
|
722
|
-
function Kt(e6) {
|
|
723
|
-
return qt(e6).replace(zt, `._base_domain_`).replace(Wt, `._api_base_domain_`).replace(Gt, `*.dev.wix-code.com`);
|
|
724
|
-
}
|
|
713
|
+
var Lt = [`wix.com`, `editorx.com`];
|
|
714
|
+
var Rt = `_`;
|
|
715
|
+
var zt = `*.`;
|
|
716
|
+
var Bt = RegExp(`\\.(${Lt.join(`|`)})$`);
|
|
717
|
+
var Vt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
|
|
718
|
+
var Ht = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
|
|
719
|
+
var Ut = `dev.wix-code.com`;
|
|
720
|
+
var Wt = /{(.*)}/;
|
|
721
|
+
var Gt = RegExp(`\\.(${Vt.join(`|`)})$`);
|
|
722
|
+
var Kt = RegExp(`.*\\.${Ut}$`);
|
|
725
723
|
function qt(e6) {
|
|
726
|
-
return
|
|
724
|
+
return Jt(e6).replace(Bt, `._base_domain_`).replace(Gt, `._api_base_domain_`).replace(Kt, `*.dev.wix-code.com`);
|
|
725
|
+
}
|
|
726
|
+
function Jt(e6) {
|
|
727
|
+
return Ht[e6] ?? e6;
|
|
727
728
|
}
|
|
728
|
-
function
|
|
729
|
+
function Yt(e6, t2) {
|
|
729
730
|
let n2 = t2[e6];
|
|
730
731
|
if (n2) return n2;
|
|
731
|
-
let r2 =
|
|
732
|
+
let r2 = Xt(e6, t2) ?? Zt(e6, t2);
|
|
732
733
|
if (!r2) {
|
|
733
|
-
if (
|
|
734
|
-
let e7 = t2[
|
|
734
|
+
if ($t(e6)) {
|
|
735
|
+
let e7 = t2[en];
|
|
735
736
|
if (e7) return e7;
|
|
736
737
|
}
|
|
737
|
-
let n3 = t2[
|
|
738
|
+
let n3 = t2[Rt];
|
|
738
739
|
if (n3) return n3;
|
|
739
740
|
}
|
|
740
741
|
return r2 ?? [];
|
|
741
742
|
}
|
|
742
|
-
function
|
|
743
|
+
function Xt(e6, t2) {
|
|
743
744
|
return Object.entries(t2).find(([t3]) => {
|
|
744
745
|
let [, ...n2] = e6.split(`.`);
|
|
745
746
|
return n2.join(`.`) === t3;
|
|
746
747
|
})?.[1];
|
|
747
748
|
}
|
|
748
|
-
function
|
|
749
|
-
let [n2] = Object.entries(t2).filter(([t3]) =>
|
|
749
|
+
function Zt(e6, t2) {
|
|
750
|
+
let [n2] = Object.entries(t2).filter(([t3]) => Qt(e6, t3)).sort(([e7], [t3]) => t3.length - e7.length);
|
|
750
751
|
if (!n2) return;
|
|
751
752
|
let [, r2] = n2;
|
|
752
753
|
return r2;
|
|
753
754
|
}
|
|
754
|
-
function
|
|
755
|
-
if (!t2.startsWith(
|
|
755
|
+
function Qt(e6, t2) {
|
|
756
|
+
if (!t2.startsWith(zt)) return false;
|
|
756
757
|
let n2 = t2.slice(1);
|
|
757
758
|
return e6.length > n2.length && e6.endsWith(n2);
|
|
758
759
|
}
|
|
759
|
-
function
|
|
760
|
+
function $t(e6) {
|
|
760
761
|
return !!e6.match(/\._base_domain_$/);
|
|
761
762
|
}
|
|
762
|
-
var
|
|
763
|
-
function en(e6, t2) {
|
|
764
|
-
return e6.split(`/`).map((e7) => tn(e7, t2)).join(`/`);
|
|
765
|
-
}
|
|
763
|
+
var en = `www._base_domain_`;
|
|
766
764
|
function tn(e6, t2) {
|
|
767
|
-
|
|
768
|
-
|
|
765
|
+
return e6.split(`/`).map((e7) => nn(e7, t2)).join(`/`);
|
|
766
|
+
}
|
|
767
|
+
function nn(e6, t2) {
|
|
768
|
+
let n2 = e6.match(Wt) || [], r2 = n2[1];
|
|
769
|
+
return r2 ? rn(t2, r2, e6, e6.replace(n2[0], ``)) : e6;
|
|
769
770
|
}
|
|
770
|
-
function
|
|
771
|
+
function rn(e6, t2, n2, r2) {
|
|
771
772
|
let i2 = e6;
|
|
772
773
|
for (let e7 of t2.split(`.`)) {
|
|
773
774
|
if (!i2) return n2;
|
|
@@ -775,28 +776,28 @@ function nn(e6, t2, n2, r2) {
|
|
|
775
776
|
}
|
|
776
777
|
return `${i2}${r2}`;
|
|
777
778
|
}
|
|
778
|
-
function
|
|
779
|
+
function an(e6, t2) {
|
|
779
780
|
let n2 = t2?.find((t3) => e6.startsWith(t3.destPath));
|
|
780
781
|
return n2 ? n2.srcPath + e6.slice(n2.destPath.length) : e6;
|
|
781
782
|
}
|
|
782
|
-
function
|
|
783
|
+
function on(e6) {
|
|
783
784
|
return isFinite(e6) ? e6 : e6.toString();
|
|
784
785
|
}
|
|
785
786
|
function L(e6) {
|
|
786
787
|
return e6 === `NaN` ? NaN : e6 === `Infinity` ? 1 / 0 : e6 === `-Infinity` ? -1 / 0 : e6;
|
|
787
788
|
}
|
|
788
|
-
function
|
|
789
|
+
function sn(e6) {
|
|
789
790
|
return Uint8Array.from(atob(e6), (e7) => e7.charCodeAt(0));
|
|
790
791
|
}
|
|
791
|
-
var
|
|
792
|
-
var
|
|
792
|
+
var cn = `modulepreload`;
|
|
793
|
+
var ln = function(e6, t2) {
|
|
793
794
|
return new URL(e6, t2).href;
|
|
794
795
|
};
|
|
795
|
-
var
|
|
796
|
-
var
|
|
796
|
+
var un = {};
|
|
797
|
+
var dn = function(e6) {
|
|
797
798
|
return e6.pathname.endsWith(`.css`);
|
|
798
799
|
};
|
|
799
|
-
var
|
|
800
|
+
var fn = function(e6, t2, n2) {
|
|
800
801
|
if (t2 in e6) return e6[t2];
|
|
801
802
|
let r2 = n2();
|
|
802
803
|
if (!r2) {
|
|
@@ -810,7 +811,7 @@ var dn = function(e6, t2, n2) {
|
|
|
810
811
|
});
|
|
811
812
|
return e6[t2] = i2, i2;
|
|
812
813
|
};
|
|
813
|
-
var
|
|
814
|
+
var pn = function(e6, t2, n2) {
|
|
814
815
|
let r2 = Promise.resolve();
|
|
815
816
|
if (t2 && t2.length > 0) {
|
|
816
817
|
let o3 = function(e8) {
|
|
@@ -821,9 +822,9 @@ var fn = function(e6, t2, n2) {
|
|
|
821
822
|
var o2 = o3, s2 = s3;
|
|
822
823
|
let e7, i3 = document.querySelector(`meta[property=csp-nonce]`), a2 = i3?.nonce || i3?.getAttribute(`nonce`);
|
|
823
824
|
r2 = o3(t2.map((t3) => {
|
|
824
|
-
t3 =
|
|
825
|
-
let r3 = s3(t3), i4 =
|
|
826
|
-
return
|
|
825
|
+
t3 = ln(t3, n2);
|
|
826
|
+
let r3 = s3(t3), i4 = dn(r3);
|
|
827
|
+
return fn(un, r3.href, () => {
|
|
827
828
|
if (e7 === void 0) {
|
|
828
829
|
e7 = { all: /* @__PURE__ */ new Set(), styles: /* @__PURE__ */ new Set() };
|
|
829
830
|
let t5 = document.getElementsByTagName(`link`);
|
|
@@ -834,7 +835,7 @@ var fn = function(e6, t2, n2) {
|
|
|
834
835
|
}
|
|
835
836
|
if ((i4 ? e7.styles : e7.all).has(r3.href)) return;
|
|
836
837
|
let t4 = document.createElement(`link`);
|
|
837
|
-
if (t4.rel = i4 ? `stylesheet` :
|
|
838
|
+
if (t4.rel = i4 ? `stylesheet` : cn, i4 || (t4.as = `script`), t4.crossOrigin = ``, t4.href = r3.href, a2 && t4.setAttribute(`nonce`, a2), document.head.appendChild(t4), i4) return new Promise((e8, n3) => {
|
|
838
839
|
t4.addEventListener(`load`, e8), t4.addEventListener(`error`, () => n3(Error(`Unable to preload CSS for ${r3}`)));
|
|
839
840
|
});
|
|
840
841
|
});
|
|
@@ -849,30 +850,30 @@ var fn = function(e6, t2, n2) {
|
|
|
849
850
|
return e6().catch(i2);
|
|
850
851
|
});
|
|
851
852
|
};
|
|
852
|
-
var
|
|
853
|
-
var
|
|
854
|
-
var
|
|
855
|
-
var
|
|
856
|
-
let e6 =
|
|
857
|
-
if (e6) return { [
|
|
853
|
+
var mn = `x-wix-linguist`;
|
|
854
|
+
var hn = `00000000-0000-0000-0000-000000000000`;
|
|
855
|
+
var gn = `false`;
|
|
856
|
+
var _n = () => {
|
|
857
|
+
let e6 = bn(`language`), t2 = bn(`locale`);
|
|
858
|
+
if (e6) return { [mn]: [e6, t2 || e6, gn, hn].join(`|`) };
|
|
858
859
|
};
|
|
859
|
-
function
|
|
860
|
+
function vn() {
|
|
860
861
|
let e6 = null, t2 = null;
|
|
861
862
|
return { promise: new Promise((n2, r2) => {
|
|
862
863
|
e6 = n2, t2 = r2;
|
|
863
864
|
}), resolve: e6, reject: t2 };
|
|
864
865
|
}
|
|
865
|
-
var
|
|
866
|
-
var
|
|
867
|
-
var
|
|
868
|
-
let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 =
|
|
869
|
-
return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language:
|
|
870
|
-
return
|
|
866
|
+
var yn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
|
|
867
|
+
var bn = (e6) => yn()?.[e6];
|
|
868
|
+
var xn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host: (t2) => {
|
|
869
|
+
let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e6(t2), o2 = Cn();
|
|
870
|
+
return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: bn(`language`), locale: bn(`locale`), get passThroughHeaders() {
|
|
871
|
+
return _n();
|
|
871
872
|
} } };
|
|
872
873
|
}, auth: (e7) => {
|
|
873
874
|
let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
|
|
874
|
-
!e7 &&
|
|
875
|
-
let n2 = false, { resolve: r2, promise: i2 } =
|
|
875
|
+
!e7 && Sn() && (e7 = t2?.getAccessTokenFunction?.());
|
|
876
|
+
let n2 = false, { resolve: r2, promise: i2 } = vn();
|
|
876
877
|
return { getAuthHeaders: async () => {
|
|
877
878
|
if (!e7 && n2 && (e7 = await i2), !e7) throw Error(`Failed to resolve auth token`);
|
|
878
879
|
return { headers: { Authorization: await e7() } };
|
|
@@ -880,50 +881,50 @@ var bn = ({ createHost: e6 }) => ({ __type: `host`, create: (e7) => ({}), host:
|
|
|
880
881
|
r2(e8);
|
|
881
882
|
}) };
|
|
882
883
|
} });
|
|
883
|
-
function
|
|
884
|
+
function Sn() {
|
|
884
885
|
return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
|
|
885
886
|
}
|
|
886
|
-
function
|
|
887
|
+
function Cn() {
|
|
887
888
|
let e6 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
|
|
888
889
|
if (!e6) return;
|
|
889
890
|
let t2 = new URL(e6);
|
|
890
891
|
return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
|
|
891
892
|
}
|
|
892
|
-
var
|
|
893
|
+
var wn = ({ clientSdk: e6, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
|
|
893
894
|
if (!e6) throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);
|
|
894
895
|
return e6.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
|
|
895
896
|
}, getAccessToken: () => {
|
|
896
897
|
throw Error(`Not implemented`);
|
|
897
898
|
}, observeState: () => ({ disconnect: () => {
|
|
898
899
|
} }) });
|
|
899
|
-
var
|
|
900
|
+
var Tn = xn({ createHost: function(e6) {
|
|
900
901
|
let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e6?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e6 || {};
|
|
901
902
|
if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
|
|
902
|
-
return { channel:
|
|
903
|
+
return { channel: wn({ clientSdk: t2, applicationId: n2 }), close: () => {
|
|
903
904
|
} };
|
|
904
905
|
} });
|
|
905
|
-
var
|
|
906
|
-
let n2 =
|
|
907
|
-
return
|
|
906
|
+
var En = (e6, t2) => {
|
|
907
|
+
let n2 = Tn.host({ applicationId: e6, componentId: t2 }), r2 = Tn.auth();
|
|
908
|
+
return We({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
|
|
908
909
|
};
|
|
909
|
-
var
|
|
910
|
-
function
|
|
910
|
+
var Dn = (e6) => En(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
|
|
911
|
+
function On() {
|
|
911
912
|
let e6 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
|
|
912
913
|
if (e6) return { initWixModules(t3, n3) {
|
|
913
|
-
return
|
|
914
|
+
return kn(() => e6(t3, n3));
|
|
914
915
|
}, fetchWithAuth() {
|
|
915
916
|
throw Error(`fetchWithAuth is not available in this context`);
|
|
916
917
|
}, graphql() {
|
|
917
918
|
throw Error(`graphql is not available in this context`);
|
|
918
919
|
} };
|
|
919
|
-
let t2 = typeof $wixContext < `u` ? $wixContext.client :
|
|
920
|
+
let t2 = typeof $wixContext < `u` ? $wixContext.client : v.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : v.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : v.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : v.elevatedClient;
|
|
920
921
|
if (t2 || n2) return { initWixModules(e7, r2) {
|
|
921
922
|
if (r2) {
|
|
922
923
|
if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
|
|
923
|
-
return
|
|
924
|
+
return kn(() => n2.use(e7));
|
|
924
925
|
}
|
|
925
926
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
926
|
-
return
|
|
927
|
+
return kn(() => t2.use(e7));
|
|
927
928
|
}, fetchWithAuth: (e7, n3) => {
|
|
928
929
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
929
930
|
return t2.fetchWithAuth(e7, n3);
|
|
@@ -935,26 +936,26 @@ function Dn() {
|
|
|
935
936
|
return t2.graphql(e7, n3, r2);
|
|
936
937
|
} };
|
|
937
938
|
}
|
|
938
|
-
function
|
|
939
|
-
let t2 = globalThis.__wix_context__, n2 = { client:
|
|
940
|
-
globalThis.__wix_context__ = void 0,
|
|
939
|
+
function kn(e6) {
|
|
940
|
+
let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
|
|
941
|
+
globalThis.__wix_context__ = void 0, v.client = void 0, v.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
|
|
941
942
|
try {
|
|
942
943
|
return e6();
|
|
943
944
|
} finally {
|
|
944
|
-
globalThis.__wix_context__ = t2,
|
|
945
|
+
globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
|
|
945
946
|
}
|
|
946
947
|
}
|
|
947
|
-
function
|
|
948
|
+
function An(e6, t2) {
|
|
948
949
|
return { ...e6, ...Object.fromEntries(t2.map((t3) => [t3, (...n2) => {
|
|
949
|
-
let r2 =
|
|
950
|
+
let r2 = On();
|
|
950
951
|
if (!r2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
951
952
|
return r2.initWixModules(e6)[t3].apply(void 0, n2);
|
|
952
953
|
}])) };
|
|
953
954
|
}
|
|
954
|
-
function
|
|
955
|
-
return
|
|
955
|
+
function jn(e6) {
|
|
956
|
+
return An({ __type: `host`, create: (t2) => Object.entries(e6).reduce((e7, [n2, r2]) => ({ ...e7, [n2]: r2(t2) }), {}) }, Object.keys(e6));
|
|
956
957
|
}
|
|
957
|
-
var
|
|
958
|
+
var Mn = class {
|
|
958
959
|
constructor(e6) {
|
|
959
960
|
this.message = e6, this.captureException = () => {
|
|
960
961
|
console.error(this.message);
|
|
@@ -969,13 +970,13 @@ var jn = class {
|
|
|
969
970
|
};
|
|
970
971
|
}
|
|
971
972
|
};
|
|
972
|
-
var
|
|
973
|
-
var
|
|
974
|
-
function
|
|
973
|
+
var Nn = (e6) => new Mn(e6);
|
|
974
|
+
var Pn = jn({ getMonitoringClient: (e6) => () => e6.getMonitoringClient ? e6.getMonitoringClient() : Nn(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
|
|
975
|
+
function Fn(e6) {
|
|
975
976
|
let t2 = Promise.resolve(e6);
|
|
976
977
|
return t2.status = `fulfilled`, t2.value = e6, t2;
|
|
977
978
|
}
|
|
978
|
-
function
|
|
979
|
+
function In(e6) {
|
|
979
980
|
if (e6.status === `fulfilled`) return e6.value;
|
|
980
981
|
throw e6.status === `rejected` ? e6.reason : (e6.status === `pending` || (e6.status = `pending`, e6.then((t2) => {
|
|
981
982
|
e6.status = `fulfilled`, e6.value = t2;
|
|
@@ -983,17 +984,17 @@ function Fn(e6) {
|
|
|
983
984
|
e6.status = `rejected`, e6.reason = t2;
|
|
984
985
|
})), e6);
|
|
985
986
|
}
|
|
986
|
-
var
|
|
987
|
-
function
|
|
988
|
-
let r2 =
|
|
989
|
-
r2 || (r2 = /* @__PURE__ */ new WeakMap(),
|
|
987
|
+
var Ln = /* @__PURE__ */ new WeakMap();
|
|
988
|
+
function Rn(e6, t2, n2) {
|
|
989
|
+
let r2 = Ln.get(e6);
|
|
990
|
+
r2 || (r2 = /* @__PURE__ */ new WeakMap(), Ln.set(e6, r2));
|
|
990
991
|
let i2 = r2.get(t2);
|
|
991
992
|
i2 || (i2 = /* @__PURE__ */ new WeakMap(), r2.set(t2, i2));
|
|
992
993
|
let a2 = i2.get(n2);
|
|
993
994
|
if (!a2) {
|
|
994
|
-
if (e6.status === `fulfilled`) a2 =
|
|
995
|
+
if (e6.status === `fulfilled`) a2 = Fn(t2(e6.value));
|
|
995
996
|
else if (e6.status === `rejected`) try {
|
|
996
|
-
a2 =
|
|
997
|
+
a2 = Fn(n2(e6.reason));
|
|
997
998
|
} catch {
|
|
998
999
|
a2 = e6.then(t2, n2);
|
|
999
1000
|
}
|
|
@@ -1005,86 +1006,86 @@ function Ln(e6, t2, n2) {
|
|
|
1005
1006
|
function R(e6) {
|
|
1006
1007
|
return e6;
|
|
1007
1008
|
}
|
|
1008
|
-
var
|
|
1009
|
-
var
|
|
1010
|
-
var
|
|
1011
|
-
var
|
|
1009
|
+
var zn = R(`@wix/site-service-url`);
|
|
1010
|
+
var Bn = `post`;
|
|
1011
|
+
var Vn = { kind: `all` };
|
|
1012
|
+
var Hn = (e6) => {
|
|
1012
1013
|
let t2 = e6.split(`/`).filter(Boolean);
|
|
1013
|
-
if (t2.length < 2) return
|
|
1014
|
+
if (t2.length < 2) return Vn;
|
|
1014
1015
|
let [n2, r2] = t2.slice(-2), i2;
|
|
1015
1016
|
try {
|
|
1016
1017
|
i2 = decodeURIComponent(r2);
|
|
1017
1018
|
} catch {
|
|
1018
1019
|
i2 = r2;
|
|
1019
1020
|
}
|
|
1020
|
-
return i2 ? n2 === `category` ? { kind: `category`, slug: i2 } : n2 === `tag` ? { kind: `tag`, slug: i2 } :
|
|
1021
|
+
return i2 ? n2 === `category` ? { kind: `category`, slug: i2 } : n2 === `tag` ? { kind: `tag`, slug: i2 } : Vn : Vn;
|
|
1021
1022
|
};
|
|
1022
|
-
var
|
|
1023
|
-
var
|
|
1024
|
-
if (!e6) return
|
|
1023
|
+
var Un = (e6, t2) => e6 ? { kind: `category`, slug: e6 } : t2 ? { kind: `tag`, slug: t2 } : Vn;
|
|
1024
|
+
var Wn = (e6) => {
|
|
1025
|
+
if (!e6) return Vn;
|
|
1025
1026
|
try {
|
|
1026
|
-
return
|
|
1027
|
+
return Hn(new URL(e6).pathname);
|
|
1027
1028
|
} catch {
|
|
1028
|
-
return
|
|
1029
|
+
return Vn;
|
|
1029
1030
|
}
|
|
1030
1031
|
};
|
|
1031
|
-
var
|
|
1032
|
-
var
|
|
1032
|
+
var Gn = { kind: `all` };
|
|
1033
|
+
var Kn = () => {
|
|
1033
1034
|
let e6, t2 = false;
|
|
1034
1035
|
try {
|
|
1035
|
-
e6 = f(
|
|
1036
|
+
e6 = f(zn).currentUrl;
|
|
1036
1037
|
} catch {
|
|
1037
1038
|
t2 = true;
|
|
1038
1039
|
}
|
|
1039
|
-
let n2 = c(() =>
|
|
1040
|
-
return t2 ?
|
|
1041
|
-
};
|
|
1042
|
-
var
|
|
1043
|
-
var
|
|
1044
|
-
var
|
|
1045
|
-
var
|
|
1046
|
-
var
|
|
1047
|
-
var
|
|
1048
|
-
var
|
|
1049
|
-
var
|
|
1040
|
+
let n2 = c(() => Wn(e6), [e6]);
|
|
1041
|
+
return t2 ? Gn : n2;
|
|
1042
|
+
};
|
|
1043
|
+
var qn = R(`seo/seo-service`);
|
|
1044
|
+
var Jn = R(`@wix/site-service-rendering-context`);
|
|
1045
|
+
var Yn = R(`@wix/viewer-service-multilingual`);
|
|
1046
|
+
var Xn = `https://static.wixstatic.com/media/`;
|
|
1047
|
+
var Zn = `wix:image://`;
|
|
1048
|
+
var Qn = 1200;
|
|
1049
|
+
var $n = 800;
|
|
1050
|
+
var er = (e6) => {
|
|
1050
1051
|
if (!e6) return;
|
|
1051
1052
|
let t2 = Number.parseInt(e6, 10);
|
|
1052
1053
|
return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
|
|
1053
1054
|
};
|
|
1054
|
-
var
|
|
1055
|
-
if (!e6.startsWith(
|
|
1055
|
+
var tr = (e6) => {
|
|
1056
|
+
if (!e6.startsWith(Zn)) {
|
|
1056
1057
|
let t3 = e6.split(/[?#]/)[0];
|
|
1057
1058
|
return t3 ? { uri: t3 } : void 0;
|
|
1058
1059
|
}
|
|
1059
1060
|
let [t2, n2] = e6.slice(12).split(`#`), [, r2, i2] = t2.split(`/`).filter(Boolean);
|
|
1060
1061
|
if (!r2) return;
|
|
1061
1062
|
let a2 = new URLSearchParams(n2 ?? ``);
|
|
1062
|
-
return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width:
|
|
1063
|
+
return { uri: decodeURIComponent(r2), name: i2 ? decodeURIComponent(i2) : void 0, width: er(a2.get(`originWidth`)), height: er(a2.get(`originHeight`)) };
|
|
1063
1064
|
};
|
|
1064
|
-
var
|
|
1065
|
+
var nr = (e6, t2) => {
|
|
1065
1066
|
if (!e6) return;
|
|
1066
|
-
let n2 =
|
|
1067
|
+
let n2 = tr(e6);
|
|
1067
1068
|
if (!n2) return;
|
|
1068
1069
|
let r2 = n2.name ?? n2.uri;
|
|
1069
|
-
return { uri: n2.uri, url: `${
|
|
1070
|
+
return { uri: n2.uri, url: `${Xn}${n2.uri}`, name: r2, width: n2.width ?? Qn, height: n2.height ?? $n, alt: t2 ?? r2 };
|
|
1070
1071
|
};
|
|
1071
|
-
var
|
|
1072
|
+
var rr = (e6) => {
|
|
1072
1073
|
let t2 = e6?.media?.wixMedia?.image;
|
|
1073
1074
|
if (!t2) return;
|
|
1074
|
-
let n2 =
|
|
1075
|
+
let n2 = tr(t2);
|
|
1075
1076
|
if (!n2) return;
|
|
1076
1077
|
let r2 = n2.name ?? n2.uri;
|
|
1077
|
-
return { uri: n2.uri, url: `${
|
|
1078
|
+
return { uri: n2.uri, url: `${Xn}${n2.uri}`, name: r2, width: n2.width ?? Qn, height: n2.height ?? $n, alt: e6?.media?.altText ?? e6?.title ?? r2 };
|
|
1078
1079
|
};
|
|
1079
|
-
var
|
|
1080
|
-
var
|
|
1081
|
-
var
|
|
1082
|
-
var
|
|
1080
|
+
var ir = `14bcded7-0066-7c35-14d7-466cb3f09103`;
|
|
1081
|
+
var ar = `builder-post`;
|
|
1082
|
+
var or = `__blog_unknown_section__`;
|
|
1083
|
+
var sr = (e6) => {
|
|
1083
1084
|
let t2;
|
|
1084
1085
|
try {
|
|
1085
|
-
let n3 = e6.appSectionRelativeUrl(
|
|
1086
|
-
if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`,
|
|
1087
|
-
t2 = e6.appSectionRelativeUrl(
|
|
1086
|
+
let n3 = e6.appSectionRelativeUrl(ir, ar);
|
|
1087
|
+
if (n3 === e6.appSectionRelativeUrl(`14bcded7-0066-7c35-14d7-466cb3f09103`, or) && !n3?.endsWith(`/post-page`)) return;
|
|
1088
|
+
t2 = e6.appSectionRelativeUrl(ir, ar, true);
|
|
1088
1089
|
} catch {
|
|
1089
1090
|
return;
|
|
1090
1091
|
}
|
|
@@ -1092,12 +1093,12 @@ var or = (e6) => {
|
|
|
1092
1093
|
let n2 = t2.split(`/`).filter(Boolean);
|
|
1093
1094
|
return n2[n2.length - 1] === `post-page` && n2.pop(), n2.length > 0 ? n2.join(`/`) : void 0;
|
|
1094
1095
|
};
|
|
1095
|
-
var
|
|
1096
|
-
var
|
|
1097
|
-
let t2 =
|
|
1098
|
-
if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${
|
|
1096
|
+
var cr = (e6) => `${e6}/${Bn}`;
|
|
1097
|
+
var lr = (e6) => {
|
|
1098
|
+
let t2 = sr(e6);
|
|
1099
|
+
if (t2 && e6.siteUrl) return `${e6.siteUrl.replace(/\/+$/, ``)}/${cr(t2)}`;
|
|
1099
1100
|
};
|
|
1100
|
-
var
|
|
1101
|
+
var ur = (e6, t2) => {
|
|
1101
1102
|
if (!e6 || !t2) return;
|
|
1102
1103
|
let n2;
|
|
1103
1104
|
try {
|
|
@@ -1111,14 +1112,14 @@ var lr = (e6, t2) => {
|
|
|
1111
1112
|
if (r2.endsWith(t3) && i2.endsWith(`/post`)) return `${n2.origin}${i2}`;
|
|
1112
1113
|
}
|
|
1113
1114
|
};
|
|
1114
|
-
var
|
|
1115
|
+
var dr = (e6) => {
|
|
1115
1116
|
if (!e6) return;
|
|
1116
1117
|
if (typeof e6 == `string`) return e6;
|
|
1117
1118
|
let { base: t2, path: n2 } = e6;
|
|
1118
1119
|
return t2 ? `${t2.replace(/\/+$/, ``)}${n2 ?? ``}` : void 0;
|
|
1119
1120
|
};
|
|
1120
|
-
var
|
|
1121
|
-
let n2 =
|
|
1121
|
+
var fr = (e6, t2) => {
|
|
1122
|
+
let n2 = dr(e6.url), r2 = `/${Bn}`;
|
|
1122
1123
|
if (!n2 || !t2?.endsWith(r2)) return;
|
|
1123
1124
|
let i2, a2;
|
|
1124
1125
|
try {
|
|
@@ -1129,23 +1130,23 @@ var dr = (e6, t2) => {
|
|
|
1129
1130
|
let o2 = a2.slice(0, -r2.length);
|
|
1130
1131
|
return o2 && i2.startsWith(`${o2}/`) && !i2.startsWith(`${a2}/`) ? n2 : void 0;
|
|
1131
1132
|
};
|
|
1132
|
-
var
|
|
1133
|
-
let n2 =
|
|
1133
|
+
var pr = (e6, t2) => {
|
|
1134
|
+
let n2 = fr(e6, t2);
|
|
1134
1135
|
if (n2) return { href: n2, target: `_self` };
|
|
1135
1136
|
if (t2 && e6.slug) return { href: `${t2}/${encodeURIComponent(e6.slug)}`, target: `_self` };
|
|
1136
|
-
let r2 =
|
|
1137
|
+
let r2 = dr(e6.url);
|
|
1137
1138
|
return r2 ? { href: r2, target: `_self` } : void 0;
|
|
1138
1139
|
};
|
|
1139
|
-
var
|
|
1140
|
-
var
|
|
1141
|
-
var
|
|
1140
|
+
var mr = `https://static.wixstatic.com/media/`;
|
|
1141
|
+
var hr = 100;
|
|
1142
|
+
var gr = (e6, t2 = ``) => {
|
|
1142
1143
|
let n2 = e6?.profile?.photo;
|
|
1143
1144
|
if (!n2?.url) return;
|
|
1144
|
-
let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(
|
|
1145
|
-
return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width ||
|
|
1145
|
+
let r2 = e6?.profile?.nickname, { _id: i2 } = n2, a2 = i2 || (n2.url.startsWith(mr) ? n2.url.slice(35).split(/[?#]/)[0] : void 0);
|
|
1146
|
+
return { ...a2 && { uri: a2 }, url: n2.url, name: r2 ?? a2 ?? `author-photo`, width: n2.width || hr, height: n2.height || hr, alt: r2 ?? t2 };
|
|
1146
1147
|
};
|
|
1147
|
-
var
|
|
1148
|
-
var
|
|
1148
|
+
var _r = (e6, t2 = []) => (e6.translations ?? []).flatMap(({ language: e7, url: n2 }) => !e7 || !n2 ? [] : [{ url: n2, langCode: (t2.find(({ id: t3 }) => t3 === e7) ?? t2.find(({ languageCode: t3 }) => t3 === e7))?.regionalFormat || e7 }]);
|
|
1149
|
+
var vr = (e6, t2) => {
|
|
1149
1150
|
try {
|
|
1150
1151
|
let n2 = new URL(t2 ?? ``).searchParams.get(`lang`);
|
|
1151
1152
|
if (!n2) return e6;
|
|
@@ -1155,180 +1156,180 @@ var _r = (e6, t2) => {
|
|
|
1155
1156
|
return e6;
|
|
1156
1157
|
}
|
|
1157
1158
|
};
|
|
1158
|
-
var
|
|
1159
|
-
var
|
|
1159
|
+
var yr = { totalPages: 1, currentPage: 1 };
|
|
1160
|
+
var br = (e6) => {
|
|
1160
1161
|
if (e6) try {
|
|
1161
1162
|
let t2 = new URL(e6);
|
|
1162
|
-
return
|
|
1163
|
+
return vr(`${t2.origin}${t2.pathname.replace(/\/+$/, ``)}`, e6);
|
|
1163
1164
|
} catch {
|
|
1164
1165
|
return;
|
|
1165
1166
|
}
|
|
1166
1167
|
};
|
|
1167
|
-
var
|
|
1168
|
-
let i2 = e6.label ?? ``, a2 =
|
|
1169
|
-
return { category: { ...e6._id && { id: e6._id }, title: e6.title || i2, label: i2, description: e6.description ?? ``, canonicalUrl: t2, items: { numberOfItems: e6.postCount ?? n2.length }, pagination:
|
|
1168
|
+
var xr = (e6, t2, n2, r2) => {
|
|
1169
|
+
let i2 = e6.label ?? ``, a2 = nr(e6.coverImage, i2);
|
|
1170
|
+
return { category: { ...e6._id && { id: e6._id }, title: e6.title || i2, label: i2, description: e6.description ?? ``, canonicalUrl: t2, items: { numberOfItems: e6.postCount ?? n2.length }, pagination: yr, ...a2?.width && a2.height && { mainImage: { url: a2.url, width: a2.width, height: a2.height, hasImage: true } }, ...e6.language && { language: e6.language }, translatedPages: _r(e6, r2) } };
|
|
1170
1171
|
};
|
|
1171
|
-
var
|
|
1172
|
+
var Sr = (e6) => {
|
|
1172
1173
|
if (!e6) return;
|
|
1173
1174
|
let t2 = new Date(e6);
|
|
1174
1175
|
return Number.isNaN(t2.getTime()) ? void 0 : t2.toISOString();
|
|
1175
1176
|
};
|
|
1176
|
-
var
|
|
1177
|
+
var Cr = (e6, t2, n2, r2) => {
|
|
1177
1178
|
let i2 = e6.label ?? ``;
|
|
1178
1179
|
return { tag: { name: i2, title: i2, fullUrl: t2, listItems: n2.flatMap((e7) => {
|
|
1179
|
-
let t3 =
|
|
1180
|
+
let t3 = pr(e7, r2)?.href;
|
|
1180
1181
|
return t3 ? [`${t3.replace(/\/+$/, ``)}/`] : [];
|
|
1181
|
-
}), items: { numberOfItems: n2.length }, created:
|
|
1182
|
+
}), items: { numberOfItems: n2.length }, created: Sr(e6._createdDate), postCount: e6.publishedPostCount ?? e6.postCount, ...e6.slug && { slug: e6.slug }, ...e6.language && { language: e6.language }, pagination: yr } };
|
|
1182
1183
|
};
|
|
1183
|
-
var
|
|
1184
|
-
var
|
|
1184
|
+
var wr = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
|
|
1185
|
+
var Tr = (e6) => {
|
|
1185
1186
|
try {
|
|
1186
1187
|
return e6.getMonitoringClient?.() ?? null;
|
|
1187
1188
|
} catch {
|
|
1188
1189
|
return null;
|
|
1189
1190
|
}
|
|
1190
1191
|
};
|
|
1191
|
-
var
|
|
1192
|
-
function
|
|
1193
|
-
let
|
|
1194
|
-
if (!
|
|
1195
|
-
let
|
|
1196
|
-
|
|
1192
|
+
var Er = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
|
|
1193
|
+
function Dr(e6, t2, { feature: n2, action: r2, level: i2 = `error`, tags: a2, contexts: o2 }) {
|
|
1194
|
+
let s2 = Er(e6, `captureException`);
|
|
1195
|
+
if (!s2) return;
|
|
1196
|
+
let c2 = t2 instanceof Error ? t2 : Error(String(t2));
|
|
1197
|
+
s2.captureException(c2, { level: i2, tags: { feature: n2, action: r2, ...a2 }, ...o2 ? { contexts: o2 } : {} });
|
|
1197
1198
|
}
|
|
1198
|
-
function
|
|
1199
|
-
let a2 =
|
|
1199
|
+
function Or(e6, t2, { feature: n2, tags: r2 }, i2) {
|
|
1200
|
+
let a2 = Er(e6, `startSpanManual`);
|
|
1200
1201
|
if (!a2) return i2;
|
|
1201
1202
|
let o2 = a2.startSpanManual({ name: t2, tags: { feature: n2, ...r2 } });
|
|
1202
1203
|
return i2.then(() => o2.end(), (e7) => o2.fail(e7 instanceof Error ? e7 : Error(String(e7)))), i2;
|
|
1203
1204
|
}
|
|
1204
|
-
var
|
|
1205
|
-
var
|
|
1205
|
+
var kr = /* @__PURE__ */ new WeakSet();
|
|
1206
|
+
var Ar = (e6, t2, n2, r2) => {
|
|
1206
1207
|
let i2;
|
|
1207
1208
|
try {
|
|
1208
|
-
i2 = { seo: f(
|
|
1209
|
+
i2 = { seo: f(qn), url: f(zn), renderingContext: f(Jn) };
|
|
1209
1210
|
} catch {
|
|
1210
1211
|
return;
|
|
1211
1212
|
}
|
|
1212
1213
|
let a2;
|
|
1213
1214
|
try {
|
|
1214
|
-
a2 = f(
|
|
1215
|
+
a2 = f(Yn).locales;
|
|
1215
1216
|
} catch {
|
|
1216
1217
|
}
|
|
1217
|
-
if (
|
|
1218
|
-
let o2 =
|
|
1219
|
-
o2 && (e6.kind === `category` && t2.filterCategory ? (
|
|
1220
|
-
|
|
1221
|
-
})) : e6.kind === `tag` && t2.filterTag && (
|
|
1222
|
-
|
|
1218
|
+
if (kr.has(t2) || e6.kind === `all` || !i2.renderingContext.SSR) return;
|
|
1219
|
+
let o2 = br(i2.url.currentUrl);
|
|
1220
|
+
o2 && (e6.kind === `category` && t2.filterCategory ? (kr.add(t2), i2.seo.setSeoEntity({ itemType: `BLOG_CATEGORY`, itemData: xr(t2.filterCategory, o2, t2.posts, a2), seoData: t2.filterCategory.seoData }).catch((t3) => {
|
|
1221
|
+
Dr(r2, t3, { feature: wr.seo, action: `set-category-seo-entity`, contexts: { seo: { slug: e6.kind === `category` ? e6.slug : void 0 } } });
|
|
1222
|
+
})) : e6.kind === `tag` && t2.filterTag && (kr.add(t2), i2.seo.setSeoEntity({ itemType: `BLOG_TAGS`, itemData: Cr(t2.filterTag, o2, t2.posts, n2), asNewPage: true }).catch((t3) => {
|
|
1223
|
+
Dr(r2, t3, { feature: wr.seo, action: `set-tag-seo-entity`, contexts: { seo: { slug: e6.kind === `tag` ? e6.slug : void 0 } } });
|
|
1223
1224
|
})));
|
|
1224
1225
|
};
|
|
1225
|
-
var
|
|
1226
|
-
function
|
|
1226
|
+
var jr = 1e4;
|
|
1227
|
+
function Mr(e6) {
|
|
1227
1228
|
let [t2, n2] = u(void 0);
|
|
1228
1229
|
return s(() => {
|
|
1229
1230
|
let t3 = Date.now();
|
|
1230
|
-
t3 - e6 >
|
|
1231
|
+
t3 - e6 > jr && i(() => n2(t3));
|
|
1231
1232
|
}, []), t2 ?? e6;
|
|
1232
1233
|
}
|
|
1233
|
-
var
|
|
1234
|
+
var Nr = () => {
|
|
1234
1235
|
try {
|
|
1235
|
-
return f(
|
|
1236
|
+
return f(Jn).SSR;
|
|
1236
1237
|
} catch {
|
|
1237
1238
|
return false;
|
|
1238
1239
|
}
|
|
1239
1240
|
};
|
|
1240
|
-
var
|
|
1241
|
-
function
|
|
1241
|
+
var Pr = (e6, t2) => e6.length === t2.length && e6.every((e7, n2) => Object.is(e7, t2[n2]));
|
|
1242
|
+
function Fr(e6, t2) {
|
|
1242
1243
|
let [n2, r2] = u(() => ({ deps: t2, value: e6() }));
|
|
1243
1244
|
return s(() => {
|
|
1244
|
-
if (
|
|
1245
|
+
if (Pr(n2.deps, t2)) return;
|
|
1245
1246
|
let a2 = e6();
|
|
1246
1247
|
i(() => r2({ deps: t2, value: a2 }));
|
|
1247
1248
|
}, t2), n2.value;
|
|
1248
1249
|
}
|
|
1249
|
-
var
|
|
1250
|
+
var Ir = (e6) => {
|
|
1250
1251
|
let t2;
|
|
1251
1252
|
try {
|
|
1252
|
-
t2 = f(
|
|
1253
|
+
t2 = f(zn);
|
|
1253
1254
|
} catch {
|
|
1254
1255
|
return;
|
|
1255
1256
|
}
|
|
1256
|
-
return
|
|
1257
|
+
return lr(t2) ?? ur(t2.currentUrl, e6);
|
|
1257
1258
|
};
|
|
1258
|
-
var
|
|
1259
|
-
var
|
|
1260
|
-
var
|
|
1259
|
+
var Lr = { categoryHeader: `WixBlog.CategoryHeader`, coverMedia: `WixBlog.PostCoverMedia`, postActions: `WixBlog.PostActionBar`, postCategories: `WixBlog.PostCategoryList`, postCounters: `WixBlog.PostCounterBar`, postMetadata: `WixBlog.PostMetadataBar`, postTags: `WixBlog.PostTagList`, feedProvider: `WixBlog.BlogFeedContextProvider`, postBySlugProvider: `WixBlog.PostBySlugContextProvider`, postByIdProvider: `WixBlog.PostByIdContextProvider`, relatedPostsProvider: `WixBlog.RelatedPostsContextProvider` };
|
|
1260
|
+
var Rr = (e6) => `${e6} rendered`;
|
|
1261
|
+
var zr = (e6, t2, n2) => {
|
|
1261
1262
|
s(() => {
|
|
1262
1263
|
if (t2 !== `loading` && typeof performance < `u` && typeof performance.mark == `function`) try {
|
|
1263
|
-
performance.mark(
|
|
1264
|
+
performance.mark(Rr(e6), { detail: { state: t2, compId: n2 } });
|
|
1264
1265
|
} catch {
|
|
1265
1266
|
}
|
|
1266
1267
|
}, [e6, t2, n2]);
|
|
1267
1268
|
};
|
|
1268
|
-
var
|
|
1269
|
-
var
|
|
1270
|
-
var
|
|
1269
|
+
var Br = R(`@wix/site-service-locale`);
|
|
1270
|
+
var Vr = R(`@wix/site-service-renderer-configuration`);
|
|
1271
|
+
var Hr = () => {
|
|
1271
1272
|
let e6, t2;
|
|
1272
1273
|
try {
|
|
1273
|
-
e6 = f(
|
|
1274
|
+
e6 = f(Vr).languageCode;
|
|
1274
1275
|
} catch {
|
|
1275
1276
|
}
|
|
1276
1277
|
try {
|
|
1277
|
-
t2 = f(
|
|
1278
|
+
t2 = f(Br).language;
|
|
1278
1279
|
} catch {
|
|
1279
1280
|
}
|
|
1280
1281
|
return e6 || t2;
|
|
1281
1282
|
};
|
|
1282
|
-
var
|
|
1283
|
+
var Ur = () => {
|
|
1283
1284
|
try {
|
|
1284
|
-
let { locale: e6, language: t2 } = f(
|
|
1285
|
+
let { locale: e6, language: t2 } = f(Br);
|
|
1285
1286
|
return e6 || t2;
|
|
1286
1287
|
} catch {
|
|
1287
1288
|
return;
|
|
1288
1289
|
}
|
|
1289
1290
|
};
|
|
1290
|
-
var
|
|
1291
|
-
var
|
|
1291
|
+
var Wr = R(`@wix/site-service-editor-context`);
|
|
1292
|
+
var Gr = () => {
|
|
1292
1293
|
try {
|
|
1293
|
-
return !!f(
|
|
1294
|
+
return !!f(Wr).previewMode;
|
|
1294
1295
|
} catch {
|
|
1295
1296
|
return false;
|
|
1296
1297
|
}
|
|
1297
1298
|
};
|
|
1298
|
-
var
|
|
1299
|
-
var
|
|
1300
|
-
var
|
|
1301
|
-
var
|
|
1299
|
+
var Kr = n({ isEditor: false, isPreview: false });
|
|
1300
|
+
var qr = () => o(Kr);
|
|
1301
|
+
var Jr = ({ isEditor: e6, isPreview: t2 }) => e6 && !t2;
|
|
1302
|
+
var Yr = () => {
|
|
1302
1303
|
try {
|
|
1303
|
-
let { SSR: e6, SEO: t2 } = f(
|
|
1304
|
+
let { SSR: e6, SEO: t2 } = f(Jn);
|
|
1304
1305
|
return e6 || t2;
|
|
1305
1306
|
} catch {
|
|
1306
1307
|
return false;
|
|
1307
1308
|
}
|
|
1308
1309
|
};
|
|
1309
|
-
var
|
|
1310
|
-
let e6 =
|
|
1311
|
-
return qr(
|
|
1310
|
+
var Xr = () => {
|
|
1311
|
+
let e6 = Yr();
|
|
1312
|
+
return Jr(qr()) && !e6;
|
|
1312
1313
|
};
|
|
1313
|
-
function
|
|
1314
|
+
function Zr(e6) {
|
|
1314
1315
|
return Object.keys(e6).length === 1 && `$and` in e6 && Array.isArray(e6.$and);
|
|
1315
1316
|
}
|
|
1316
|
-
function
|
|
1317
|
+
function Qr(e6) {
|
|
1317
1318
|
return Object.keys(e6).length === 1 && `$or` in e6 && Array.isArray(e6.$or);
|
|
1318
1319
|
}
|
|
1319
|
-
function
|
|
1320
|
+
function $r(e6) {
|
|
1320
1321
|
return Object.keys(e6).length === 1 && `$not` in e6 && typeof e6.$not == `object`;
|
|
1321
1322
|
}
|
|
1322
1323
|
function z(e6, t2) {
|
|
1323
|
-
return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...
|
|
1324
|
+
return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $and: [...Zr(e6) ? e6.$and : [e6], ...Zr(t2) ? t2.$and : [t2]] };
|
|
1324
1325
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $or: [...
|
|
1326
|
+
function ei(e6, t2) {
|
|
1327
|
+
return e6 === void 0 || Object.keys(e6).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e6 : { $or: [...Qr(e6) ? e6.$or : [e6], ...Qr(t2) ? t2.$or : [t2]] };
|
|
1327
1328
|
}
|
|
1328
|
-
function
|
|
1329
|
-
if (e6 !== void 0 && Object.keys(e6).length !== 0) return
|
|
1329
|
+
function ti(e6) {
|
|
1330
|
+
if (e6 !== void 0 && Object.keys(e6).length !== 0) return $r(e6) ? e6.$not : { $not: e6 };
|
|
1330
1331
|
}
|
|
1331
|
-
var
|
|
1332
|
+
var ni = class {
|
|
1332
1333
|
_items;
|
|
1333
1334
|
_fetchNextPage;
|
|
1334
1335
|
_fetchPrevPage;
|
|
@@ -1358,7 +1359,7 @@ var ti = class {
|
|
|
1358
1359
|
return await this._fetchPrevPage();
|
|
1359
1360
|
}
|
|
1360
1361
|
};
|
|
1361
|
-
var
|
|
1362
|
+
var ri = class extends ni {
|
|
1362
1363
|
_nextCursor;
|
|
1363
1364
|
_prevCursor;
|
|
1364
1365
|
cursors;
|
|
@@ -1372,7 +1373,7 @@ var ni = class extends ti {
|
|
|
1372
1373
|
return !!this._prevCursor;
|
|
1373
1374
|
}
|
|
1374
1375
|
};
|
|
1375
|
-
var
|
|
1376
|
+
var ii = class extends ni {
|
|
1376
1377
|
_totalCount;
|
|
1377
1378
|
_offset;
|
|
1378
1379
|
_tooManyToCount;
|
|
@@ -1395,16 +1396,16 @@ var ri = class extends ti {
|
|
|
1395
1396
|
return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
|
|
1396
1397
|
}
|
|
1397
1398
|
};
|
|
1398
|
-
function
|
|
1399
|
+
function ai(e6) {
|
|
1399
1400
|
let t2 = (n2) => ({ query: n2, async find() {
|
|
1400
1401
|
try {
|
|
1401
|
-
let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [
|
|
1402
|
+
let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [Je]: a2, [Ye]: o2 } = e6.responseTransformer(i2);
|
|
1402
1403
|
if (e6.pagingMethod === `OFFSET`) {
|
|
1403
1404
|
let e7 = n2;
|
|
1404
|
-
return new
|
|
1405
|
+
return new ii({ items: a2 ?? [], fetchNextPage: () => t2({ ...e7, paging: { offset: e7.paging.offset + e7.paging.limit, limit: e7.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e7.paging.offset - e7.paging.limit, 0), limit: e7.paging.limit } }).find(), offset: e7.paging.offset, limit: e7.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
|
|
1405
1406
|
}
|
|
1406
1407
|
let s2 = n2.cursorPaging;
|
|
1407
|
-
return new
|
|
1408
|
+
return new ri({ items: a2 ?? [], limit: s2.limit, originQuery: this, fetchNextPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.next ?? void 0, limit: s2.limit } }).find(), fetchPrevPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.prev ?? void 0, limit: s2.limit } }).find(), prevCursor: o2?.cursors?.prev ?? void 0, nextCursor: o2?.cursors?.next ?? void 0 });
|
|
1408
1409
|
} catch (t3) {
|
|
1409
1410
|
throw e6.errorTransformer(t3);
|
|
1410
1411
|
}
|
|
@@ -1456,11 +1457,11 @@ function ii(e6) {
|
|
|
1456
1457
|
let a2 = { [B(e6.transformationPaths, r2)]: { $exists: i2 } };
|
|
1457
1458
|
return t2({ ...n2, filter: z(n2.filter, a2) });
|
|
1458
1459
|
}, or(e7) {
|
|
1459
|
-
return t2({ ...n2, filter:
|
|
1460
|
+
return t2({ ...n2, filter: ei(n2.filter, e7.query.filter) });
|
|
1460
1461
|
}, and(e7) {
|
|
1461
1462
|
return t2({ ...n2, filter: z(n2.filter, e7.query.filter) });
|
|
1462
1463
|
}, not(e7) {
|
|
1463
|
-
return t2({ ...n2, filter:
|
|
1464
|
+
return t2({ ...n2, filter: ti(e7.query.filter) });
|
|
1464
1465
|
}, ascending(...r2) {
|
|
1465
1466
|
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: B(e6.transformationPaths, t3), order: `ASC` }))] });
|
|
1466
1467
|
}, descending(...r2) {
|
|
@@ -1479,38 +1480,38 @@ function ii(e6) {
|
|
|
1479
1480
|
}
|
|
1480
1481
|
function B(e6, t2) {
|
|
1481
1482
|
let n2 = Object.entries(e6).find(([e7]) => e7 === t2 || t2.startsWith(`${e7}.`))?.[0];
|
|
1482
|
-
return n2 ? t2.replace(n2, e6[n2]) :
|
|
1483
|
-
}
|
|
1484
|
-
var
|
|
1485
|
-
var
|
|
1486
|
-
var
|
|
1487
|
-
var
|
|
1488
|
-
var
|
|
1489
|
-
var
|
|
1490
|
-
function
|
|
1483
|
+
return n2 ? t2.replace(n2, e6[n2]) : Ze(t2, { ...e6, ...Xe });
|
|
1484
|
+
}
|
|
1485
|
+
var oi = `filter`;
|
|
1486
|
+
var si = `sort`;
|
|
1487
|
+
var ci = `cursorPaging`;
|
|
1488
|
+
var li = `paging`;
|
|
1489
|
+
var ui = [oi, si, ci];
|
|
1490
|
+
var di = [oi, si, li];
|
|
1491
|
+
function fi(e6, t2) {
|
|
1491
1492
|
return !e6 || typeof e6 != `object` ? false : t2.some((t3) => e6.hasOwnProperty(t3));
|
|
1492
1493
|
}
|
|
1493
|
-
function fi(e6) {
|
|
1494
|
-
return di(e6, li);
|
|
1495
|
-
}
|
|
1496
1494
|
function pi(e6) {
|
|
1497
|
-
return
|
|
1495
|
+
return fi(e6, ui);
|
|
1498
1496
|
}
|
|
1499
1497
|
function mi(e6) {
|
|
1498
|
+
return fi(e6, di);
|
|
1499
|
+
}
|
|
1500
|
+
function hi(e6) {
|
|
1500
1501
|
let { hasOptionsParameter: t2 } = e6;
|
|
1501
1502
|
return function(...n2) {
|
|
1502
|
-
return t2 ?
|
|
1503
|
+
return t2 ? _i(n2, e6) : gi(n2, e6);
|
|
1503
1504
|
};
|
|
1504
1505
|
}
|
|
1505
|
-
function
|
|
1506
|
+
function gi(e6, t2) {
|
|
1506
1507
|
return e6.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e6[0]);
|
|
1507
1508
|
}
|
|
1508
|
-
function
|
|
1509
|
+
function _i(e6, t2) {
|
|
1509
1510
|
switch (e6.length) {
|
|
1510
1511
|
case 0:
|
|
1511
1512
|
return t2.builderQueryFunction();
|
|
1512
1513
|
case 1:
|
|
1513
|
-
return
|
|
1514
|
+
return pi(e6[0]) || mi(e6[0]) ? t2.typedQueryFunction(e6[0]) : t2.builderQueryFunction(e6[0]);
|
|
1514
1515
|
default:
|
|
1515
1516
|
return t2.typedQueryFunction(e6[0], e6[1]);
|
|
1516
1517
|
}
|
|
@@ -1523,81 +1524,81 @@ function V(e6) {
|
|
|
1523
1524
|
function H(e6) {
|
|
1524
1525
|
if (e6) return [`http://`, `https://`].some((t2) => e6.base?.startsWith(t2)) ? `${e6.base}${e6.path}` : `http://${e6.base}${e6.path}`;
|
|
1525
1526
|
}
|
|
1526
|
-
var
|
|
1527
|
-
var
|
|
1528
|
-
var
|
|
1529
|
-
var
|
|
1530
|
-
var
|
|
1531
|
-
function
|
|
1532
|
-
return
|
|
1527
|
+
var vi = [{ path: `category.updatedDate` }, { path: `category.coverImage.urlExpirationDate` }];
|
|
1528
|
+
var yi = [{ path: `category.coverImage.focalPoint.x` }, { path: `category.coverImage.focalPoint.y` }];
|
|
1529
|
+
var bi = [{ path: `categories.updatedDate` }, { path: `categories.coverImage.urlExpirationDate` }];
|
|
1530
|
+
var xi = [{ path: `categories.coverImage.focalPoint.x` }, { path: `categories.coverImage.focalPoint.y` }];
|
|
1531
|
+
var Si = [{ path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
|
|
1532
|
+
function Ci(e6) {
|
|
1533
|
+
return Nt(Object.assign(e6, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/category`, destPath: `/v3/bulk/category` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/categories`, destPath: `/v3/bulk/categories` }], "*.pub.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], _: [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "www.wixapis.com": [{ srcPath: `/blog/v3/categories`, destPath: `/v3/categories` }, { srcPath: `/v3/categories`, destPath: `/v3/categories` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/categories`, destPath: `/v3/categories` }], "api._api_base_domain_": [{ srcPath: `/category-service-api-proxy`, destPath: `` }] } }));
|
|
1533
1534
|
}
|
|
1534
|
-
var
|
|
1535
|
-
function
|
|
1535
|
+
var wi = `@wix/auto_sdk_blog_categories`;
|
|
1536
|
+
function Ti(e6) {
|
|
1536
1537
|
function t2({ host: t3 }) {
|
|
1537
|
-
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategory`, packageName:
|
|
1538
|
+
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategory`, packageName: wi, migrationOptions: { optInTransformResponse: true }, url: Ci({ protoPath: `/v3/categories/{categoryId}`, data: e6, host: t3 }), params: I(e6), transformResponse: (e7) => N(e7, [{ transformFn: M, paths: vi }, { transformFn: L, paths: yi }]) };
|
|
1538
1539
|
}
|
|
1539
1540
|
return t2;
|
|
1540
1541
|
}
|
|
1541
|
-
function
|
|
1542
|
+
function Ei(e6) {
|
|
1542
1543
|
function t2({ host: t3 }) {
|
|
1543
|
-
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategoryBySlug`, packageName:
|
|
1544
|
+
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategoryBySlug`, packageName: wi, migrationOptions: { optInTransformResponse: true }, url: Ci({ protoPath: `/v3/categories/slugs/{slug}`, data: e6, host: t3 }), params: I(e6), transformResponse: (e7) => N(e7, [{ transformFn: M, paths: vi }, { transformFn: L, paths: yi }]) };
|
|
1544
1545
|
}
|
|
1545
1546
|
return t2;
|
|
1546
1547
|
}
|
|
1547
|
-
function
|
|
1548
|
+
function Di(e6) {
|
|
1548
1549
|
function t2({ host: t3 }) {
|
|
1549
|
-
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName:
|
|
1550
|
+
return { entityFqdn: `wix.blog.v3.category`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories`, packageName: wi, migrationOptions: { optInTransformResponse: true }, url: Ci({ protoPath: `/v3/categories`, data: e6, host: t3 }), params: I(e6), transformResponse: (e7) => N(e7, [{ transformFn: M, paths: bi }, { transformFn: L, paths: xi }]) };
|
|
1550
1551
|
}
|
|
1551
1552
|
return t2;
|
|
1552
1553
|
}
|
|
1553
|
-
function
|
|
1554
|
+
function Oi(e6) {
|
|
1554
1555
|
function t2({ host: t3 }) {
|
|
1555
|
-
let n2 = N(e6, [{ transformFn:
|
|
1556
|
-
return { entityFqdn: `wix.blog.v3.category`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.QueryCategories`, packageName:
|
|
1556
|
+
let n2 = N(e6, [{ transformFn: on, paths: Si }]);
|
|
1557
|
+
return { entityFqdn: `wix.blog.v3.category`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.CategoryService.QueryCategories`, packageName: wi, migrationOptions: { optInTransformResponse: true }, url: Ci({ protoPath: `/v3/categories/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => N(e7, [{ transformFn: M, paths: bi }, { transformFn: L, paths: xi }]) };
|
|
1557
1558
|
}
|
|
1558
1559
|
return t2;
|
|
1559
1560
|
}
|
|
1560
|
-
var
|
|
1561
|
-
var
|
|
1562
|
-
var
|
|
1563
|
-
var
|
|
1564
|
-
async function
|
|
1565
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
1561
|
+
var ki = [{ path: `category.url` }, { path: `category.translations.url` }];
|
|
1562
|
+
var Ai = [{ path: `category.coverImage` }];
|
|
1563
|
+
var ji = [{ path: `categories.url` }, { path: `categories.translations.url` }];
|
|
1564
|
+
var Mi = [{ path: `categories.coverImage` }];
|
|
1565
|
+
async function Ni(e6, t2) {
|
|
1566
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ti(A({ categoryId: e6, fieldsets: t2?.fieldsets }));
|
|
1566
1567
|
r2?.onSiteCall?.();
|
|
1567
1568
|
try {
|
|
1568
1569
|
let e7 = await n2.request(i2);
|
|
1569
|
-
return r2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths:
|
|
1570
|
+
return r2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths: ki }, { transformFn: V, paths: Ai }]));
|
|
1570
1571
|
} catch (e7) {
|
|
1571
1572
|
let t3 = P(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { categoryId: `$[0]`, fieldsets: `$[1].fieldsets` }, singleArgumentUnchanged: false }, [`categoryId`, `options`]);
|
|
1572
1573
|
throw r2?.onError?.(e7), t3;
|
|
1573
1574
|
}
|
|
1574
1575
|
}
|
|
1575
|
-
async function
|
|
1576
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
1576
|
+
async function Pi(e6, t2) {
|
|
1577
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ei(A({ slug: e6, fieldsets: t2?.fieldsets, language: t2?.language }));
|
|
1577
1578
|
r2?.onSiteCall?.();
|
|
1578
1579
|
try {
|
|
1579
1580
|
let e7 = await n2.request(i2);
|
|
1580
|
-
return r2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths:
|
|
1581
|
+
return r2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths: ki }, { transformFn: V, paths: Ai }]));
|
|
1581
1582
|
} catch (e7) {
|
|
1582
1583
|
let t3 = P(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { slug: `$[0]`, fieldsets: `$[1].fieldsets`, language: `$[1].language` }, singleArgumentUnchanged: false }, [`slug`, `options`]);
|
|
1583
1584
|
throw r2?.onError?.(e7), t3;
|
|
1584
1585
|
}
|
|
1585
1586
|
}
|
|
1586
|
-
async function
|
|
1587
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
1587
|
+
async function Fi(e6) {
|
|
1588
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Di(A({ paging: e6?.paging, fieldsets: e6?.fieldsets, language: e6?.language }));
|
|
1588
1589
|
n2?.onSiteCall?.();
|
|
1589
1590
|
try {
|
|
1590
1591
|
let e7 = await t2.request(r2);
|
|
1591
|
-
return n2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths:
|
|
1592
|
+
return n2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths: ji }, { transformFn: V, paths: Mi }]));
|
|
1592
1593
|
} catch (e7) {
|
|
1593
1594
|
let t3 = P(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { paging: `$[0].paging`, fieldsets: `$[0].fieldsets`, language: `$[0].language` }, singleArgumentUnchanged: false }, [`options`]);
|
|
1594
1595
|
throw n2?.onError?.(e7), t3;
|
|
1595
1596
|
}
|
|
1596
1597
|
}
|
|
1597
|
-
function
|
|
1598
|
+
function Ii(e6) {
|
|
1598
1599
|
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
1599
|
-
return
|
|
1600
|
-
let i2 =
|
|
1600
|
+
return ai({ func: async (r2) => {
|
|
1601
|
+
let i2 = Oi({ ...r2, ...e6 ?? {} });
|
|
1601
1602
|
n2?.onSiteCall?.();
|
|
1602
1603
|
try {
|
|
1603
1604
|
let e7 = await t2.request(i2);
|
|
@@ -1609,50 +1610,50 @@ function Fi(e6) {
|
|
|
1609
1610
|
let n3 = [t3, e6];
|
|
1610
1611
|
return A({ ...n3?.[1], query: n3?.[0] });
|
|
1611
1612
|
}, responseTransformer: ({ data: e7 }) => {
|
|
1612
|
-
let t3 = j(N(e7, [{ transformFn: H, paths:
|
|
1613
|
+
let t3 = j(N(e7, [{ transformFn: H, paths: ji }, { transformFn: V, paths: Mi }]));
|
|
1613
1614
|
return { items: t3?.categories, pagingMetadata: t3?.pagingMetadata };
|
|
1614
1615
|
}, errorTransformer: (e7) => {
|
|
1615
1616
|
throw P(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
1616
1617
|
}, pagingMethod: `OFFSET`, transformationPaths: {} });
|
|
1617
1618
|
}
|
|
1618
|
-
async function
|
|
1619
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
1619
|
+
async function Li(e6, t2) {
|
|
1620
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Oi(A({ query: e6, ...t2 }));
|
|
1620
1621
|
r2?.onSiteCall?.();
|
|
1621
1622
|
try {
|
|
1622
1623
|
let e7 = await n2.request(i2);
|
|
1623
|
-
return r2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths:
|
|
1624
|
+
return r2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths: ji }, { transformFn: V, paths: Mi }]));
|
|
1624
1625
|
} catch (e7) {
|
|
1625
1626
|
let t3 = P(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
|
|
1626
1627
|
throw r2?.onError?.(e7), t3;
|
|
1627
1628
|
}
|
|
1628
1629
|
}
|
|
1629
|
-
function Li(e6) {
|
|
1630
|
-
return (t2, n2) => Mi(t2, n2, { httpClient: e6 });
|
|
1631
|
-
}
|
|
1632
1630
|
function Ri(e6) {
|
|
1633
1631
|
return (t2, n2) => Ni(t2, n2, { httpClient: e6 });
|
|
1634
1632
|
}
|
|
1635
1633
|
function zi(e6) {
|
|
1636
|
-
return (t2) => Pi(t2, { httpClient: e6 });
|
|
1634
|
+
return (t2, n2) => Pi(t2, n2, { httpClient: e6 });
|
|
1637
1635
|
}
|
|
1638
1636
|
function Bi(e6) {
|
|
1639
1637
|
return (t2) => Fi(t2, { httpClient: e6 });
|
|
1640
1638
|
}
|
|
1641
1639
|
function Vi(e6) {
|
|
1642
|
-
return (t2
|
|
1640
|
+
return (t2) => Ii(t2, { httpClient: e6 });
|
|
1643
1641
|
}
|
|
1644
1642
|
function Hi(e6) {
|
|
1645
|
-
|
|
1643
|
+
return (t2, n2) => Li(t2, n2, { httpClient: e6 });
|
|
1644
|
+
}
|
|
1645
|
+
function Ui(e6) {
|
|
1646
|
+
let t2 = hi({ builderQueryFunction: (t3) => Vi(e6)(t3), typedQueryFunction: (t3, n3) => Hi(e6)(t3, n3), hasOptionsParameter: true });
|
|
1646
1647
|
function n2(e7, n3) {
|
|
1647
1648
|
return t2(...arguments);
|
|
1648
1649
|
}
|
|
1649
1650
|
return n2;
|
|
1650
1651
|
}
|
|
1651
|
-
var Ui = F(Li);
|
|
1652
1652
|
var Wi = F(Ri);
|
|
1653
1653
|
var Gi = F(zi);
|
|
1654
|
-
var Ki = F(
|
|
1655
|
-
|
|
1654
|
+
var Ki = F(Bi);
|
|
1655
|
+
var qi = F(Ui);
|
|
1656
|
+
function Ji(e6) {
|
|
1656
1657
|
if (!e6) return;
|
|
1657
1658
|
let t2 = ``;
|
|
1658
1659
|
e6?.filename && (t2 = `/${encodeURIComponent(e6.filename)}`);
|
|
@@ -1667,46 +1668,46 @@ function qi(e6) {
|
|
|
1667
1668
|
}
|
|
1668
1669
|
return e6.id ? `wix:video://v1/${e6.id}${t2}${n2}` : e6.url;
|
|
1669
1670
|
}
|
|
1670
|
-
var
|
|
1671
|
-
var
|
|
1672
|
-
var Xi = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
|
|
1673
|
-
var
|
|
1674
|
-
function
|
|
1675
|
-
return
|
|
1671
|
+
var Yi = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.expirationDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
|
|
1672
|
+
var Xi = [{ path: `posts.richContentCompressed` }];
|
|
1673
|
+
var Zi = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
|
|
1674
|
+
var Qi = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
|
|
1675
|
+
function $i(e6) {
|
|
1676
|
+
return Nt(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
|
|
1676
1677
|
}
|
|
1677
|
-
var
|
|
1678
|
-
function
|
|
1678
|
+
var ea = `@wix/auto_sdk_blog_posts`;
|
|
1679
|
+
function ta(e6) {
|
|
1679
1680
|
function t2({ host: t3 }) {
|
|
1680
|
-
return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts`, packageName:
|
|
1681
|
+
return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.ListPosts`, packageName: ea, migrationOptions: { optInTransformResponse: true }, url: $i({ protoPath: `/v3/posts`, data: e6, host: t3 }), params: I(e6), transformResponse: (e7) => N(e7, [{ transformFn: M, paths: Yi }, { transformFn: sn, paths: Xi }, { transformFn: L, paths: Zi }]) };
|
|
1681
1682
|
}
|
|
1682
1683
|
return t2;
|
|
1683
1684
|
}
|
|
1684
|
-
function
|
|
1685
|
+
function na(e6) {
|
|
1685
1686
|
function t2({ host: t3 }) {
|
|
1686
|
-
let n2 = N(e6, [{ transformFn:
|
|
1687
|
-
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName:
|
|
1687
|
+
let n2 = N(e6, [{ transformFn: on, paths: Qi }]);
|
|
1688
|
+
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: ea, migrationOptions: { optInTransformResponse: true }, url: $i({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => N(e7, [{ transformFn: M, paths: Yi }, { transformFn: sn, paths: Xi }, { transformFn: L, paths: Zi }]) };
|
|
1688
1689
|
}
|
|
1689
1690
|
return t2;
|
|
1690
1691
|
}
|
|
1691
|
-
var
|
|
1692
|
-
var
|
|
1693
|
-
var
|
|
1692
|
+
var ra = [{ path: `posts.url` }, { path: `posts.translations.url` }];
|
|
1693
|
+
var ia = [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }];
|
|
1694
|
+
var aa = [{ path: `posts.media.wixMedia.videoV2` }];
|
|
1694
1695
|
var U = ((e6) => (e6.UNKNOWN = `UNKNOWN`, e6.COUNTERS = `COUNTERS`, e6.URL = `URL`, e6.CONTENT_TEXT = `CONTENT_TEXT`, e6.METRICS = `METRICS`, e6.SEO = `SEO`, e6.CONTENT = `CONTENT`, e6.INTERNAL_ID = `INTERNAL_ID`, e6.CONTACT_ID = `CONTACT_ID`, e6.RICH_CONTENT = `RICH_CONTENT`, e6.RICH_CONTENT_STRING = `RICH_CONTENT_STRING`, e6.RICH_CONTENT_COMPRESSED = `RICH_CONTENT_COMPRESSED`, e6.TRANSLATIONS = `TRANSLATIONS`, e6.REFERENCE_ID = `REFERENCE_ID`, e6.EXCLUDE_PAID_CONTENT = `EXCLUDE_PAID_CONTENT`, e6.SEO_DATA = `SEO_DATA`, e6.OWNER = `OWNER`, e6.HAS_UNPUBLISHED_CHANGES = `HAS_UNPUBLISHED_CHANGES`, e6.HEADING = `HEADING`, e6.IMAGE = `IMAGE`, e6))(U || {});
|
|
1695
|
-
async function
|
|
1696
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
1696
|
+
async function oa(e6) {
|
|
1697
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ta(A({ featured: e6?.featured, hashtags: e6?.hashtags, categoryIds: e6?.categoryIds, tagIds: e6?.tagIds, sort: e6?.sort, paging: e6?.paging, language: e6?.language, memberId: e6?.memberId, fieldsets: e6?.fieldsets }, []));
|
|
1697
1698
|
n2?.onSiteCall?.();
|
|
1698
1699
|
try {
|
|
1699
1700
|
let e7 = await t2.request(r2);
|
|
1700
|
-
return n2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths:
|
|
1701
|
+
return n2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths: ra }, { transformFn: V, paths: ia }, { transformFn: Ji, paths: aa }]), [`posts.richContent`, `posts.rich_content`]);
|
|
1701
1702
|
} catch (e7) {
|
|
1702
1703
|
let t3 = P(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { featured: `$[0].featured`, hashtags: `$[0].hashtags`, categoryIds: `$[0].categoryIds`, tagIds: `$[0].tagIds`, sort: `$[0].sort`, paging: `$[0].paging`, language: `$[0].language`, memberId: `$[0].memberId`, fieldsets: `$[0].fieldsets` }, singleArgumentUnchanged: false }, [`options`]);
|
|
1703
1704
|
throw n2?.onError?.(e7), t3;
|
|
1704
1705
|
}
|
|
1705
1706
|
}
|
|
1706
|
-
function
|
|
1707
|
+
function sa(e6) {
|
|
1707
1708
|
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
1708
|
-
return
|
|
1709
|
-
let i2 =
|
|
1709
|
+
return ai({ func: async (r2) => {
|
|
1710
|
+
let i2 = na({ ...r2, ...e6 ?? {} });
|
|
1710
1711
|
n2?.onSiteCall?.();
|
|
1711
1712
|
try {
|
|
1712
1713
|
let e7 = await t2.request(i2);
|
|
@@ -1718,76 +1719,76 @@ function oa(e6) {
|
|
|
1718
1719
|
let n3 = [t3, e6];
|
|
1719
1720
|
return A({ ...n3?.[1], query: n3?.[0] }, []);
|
|
1720
1721
|
}, responseTransformer: ({ data: e7 }) => {
|
|
1721
|
-
let t3 = j(N(e7, [{ transformFn: H, paths:
|
|
1722
|
+
let t3 = j(N(e7, [{ transformFn: H, paths: ra }, { transformFn: V, paths: ia }, { transformFn: Ji, paths: aa }]), [`posts.richContent`, `posts.rich_content`]);
|
|
1722
1723
|
return { items: t3?.posts, pagingMetadata: t3?.pagingMetadata };
|
|
1723
1724
|
}, errorTransformer: (e7) => {
|
|
1724
1725
|
throw P(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
1725
1726
|
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
1726
1727
|
}
|
|
1727
|
-
async function
|
|
1728
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
1728
|
+
async function ca(e6, t2) {
|
|
1729
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = na(A({ query: e6, ...t2 }, []));
|
|
1729
1730
|
r2?.onSiteCall?.();
|
|
1730
1731
|
try {
|
|
1731
1732
|
let e7 = await n2.request(i2);
|
|
1732
|
-
return r2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths:
|
|
1733
|
+
return r2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths: ra }, { transformFn: V, paths: ia }, { transformFn: Ji, paths: aa }]), [`posts.richContent`, `posts.rich_content`]);
|
|
1733
1734
|
} catch (e7) {
|
|
1734
1735
|
let t3 = P(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
|
|
1735
1736
|
throw r2?.onError?.(e7), t3;
|
|
1736
1737
|
}
|
|
1737
1738
|
}
|
|
1738
|
-
function ca(e6) {
|
|
1739
|
-
return (t2) => aa(t2, { httpClient: e6 });
|
|
1740
|
-
}
|
|
1741
1739
|
function la(e6) {
|
|
1742
1740
|
return (t2) => oa(t2, { httpClient: e6 });
|
|
1743
1741
|
}
|
|
1744
1742
|
function ua(e6) {
|
|
1745
|
-
return (t2
|
|
1743
|
+
return (t2) => sa(t2, { httpClient: e6 });
|
|
1746
1744
|
}
|
|
1747
1745
|
function da(e6) {
|
|
1748
|
-
|
|
1746
|
+
return (t2, n2) => ca(t2, n2, { httpClient: e6 });
|
|
1747
|
+
}
|
|
1748
|
+
function fa(e6) {
|
|
1749
|
+
let t2 = hi({ builderQueryFunction: (t3) => ua(e6)(t3), typedQueryFunction: (t3, n3) => da(e6)(t3, n3), hasOptionsParameter: true });
|
|
1749
1750
|
function n2(e7, n3) {
|
|
1750
1751
|
return t2(...arguments);
|
|
1751
1752
|
}
|
|
1752
1753
|
return n2;
|
|
1753
1754
|
}
|
|
1754
|
-
var
|
|
1755
|
-
var
|
|
1756
|
-
var
|
|
1757
|
-
function
|
|
1758
|
-
return
|
|
1755
|
+
var pa = F(la);
|
|
1756
|
+
var ma = F(fa);
|
|
1757
|
+
var ha = [{ path: `tag.createdDate` }, { path: `tag.updatedDate` }];
|
|
1758
|
+
function ga(e6) {
|
|
1759
|
+
return Nt(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "www.wixapis.com": [{ srcPath: `/v3/tags`, destPath: `/v3/tags` }, { srcPath: `/blog/v3/tags`, destPath: `/v3/tags` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v2/tags`, destPath: `/v2/tags` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/tag`, destPath: `/v3/bulk/tag` }, { srcPath: `/_api/communities-blog-node-api/v3/bulk/tags`, destPath: `/v3/bulk/tags` }, { srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "bo._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "wixbo.ai": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "wix-bo.com": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }], "social-blog._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/tags`, destPath: `/v3/tags` }] } }));
|
|
1759
1760
|
}
|
|
1760
|
-
var
|
|
1761
|
-
function
|
|
1761
|
+
var _a = `@wix/auto_sdk_blog_tags`;
|
|
1762
|
+
function va(e6) {
|
|
1762
1763
|
function t2({ host: t3 }) {
|
|
1763
|
-
return { entityFqdn: `wix.blog.v3.tag`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.TagService.GetTagBySlug`, packageName:
|
|
1764
|
+
return { entityFqdn: `wix.blog.v3.tag`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.TagService.GetTagBySlug`, packageName: _a, migrationOptions: { optInTransformResponse: true }, url: ga({ protoPath: `/v3/tags/slugs/{slug}`, data: e6, host: t3 }), params: I(e6), transformResponse: (e7) => N(e7, [{ transformFn: M, paths: ha }]) };
|
|
1764
1765
|
}
|
|
1765
1766
|
return t2;
|
|
1766
1767
|
}
|
|
1767
|
-
var
|
|
1768
|
-
async function
|
|
1769
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
1768
|
+
var ya = [{ path: `tag.url` }];
|
|
1769
|
+
async function ba(e6, t2) {
|
|
1770
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = va(A({ slug: e6, fieldsets: t2?.fieldsets, language: t2?.language }));
|
|
1770
1771
|
r2?.onSiteCall?.();
|
|
1771
1772
|
try {
|
|
1772
1773
|
let e7 = await n2.request(i2);
|
|
1773
|
-
return r2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths:
|
|
1774
|
+
return r2?.onSuccess?.(e7), j(N(e7.data, [{ transformFn: H, paths: ya }]));
|
|
1774
1775
|
} catch (e7) {
|
|
1775
1776
|
let t3 = P(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { slug: `$[0]`, fieldsets: `$[1].fieldsets`, language: `$[1].language` }, singleArgumentUnchanged: false }, [`slug`, `options`]);
|
|
1776
1777
|
throw r2?.onError?.(e7), t3;
|
|
1777
1778
|
}
|
|
1778
1779
|
}
|
|
1779
|
-
function
|
|
1780
|
-
return (t2, n2) =>
|
|
1780
|
+
function xa(e6) {
|
|
1781
|
+
return (t2, n2) => ba(t2, n2, { httpClient: e6 });
|
|
1781
1782
|
}
|
|
1782
|
-
var
|
|
1783
|
-
var
|
|
1783
|
+
var Sa = F(xa);
|
|
1784
|
+
var Ca = () => {
|
|
1784
1785
|
try {
|
|
1785
|
-
return f(
|
|
1786
|
+
return f(zn).currentUrl;
|
|
1786
1787
|
} catch {
|
|
1787
1788
|
return;
|
|
1788
1789
|
}
|
|
1789
1790
|
};
|
|
1790
|
-
var
|
|
1791
|
+
var wa = (e6, t2) => {
|
|
1791
1792
|
let n2;
|
|
1792
1793
|
try {
|
|
1793
1794
|
n2 = new URL(e6);
|
|
@@ -1797,24 +1798,24 @@ var Ca = (e6, t2) => {
|
|
|
1797
1798
|
let r2 = n2.pathname.split(`/`).filter(Boolean);
|
|
1798
1799
|
if (r2.length !== 0) return r2[r2.length - 1] = encodeURIComponent(t2), n2.pathname = `/${r2.join(`/`)}`, n2.toString();
|
|
1799
1800
|
};
|
|
1800
|
-
var
|
|
1801
|
-
let r2 =
|
|
1801
|
+
var Ta = (e6, t2, n2) => {
|
|
1802
|
+
let r2 = Ca(), i2 = Xr(), a2 = Gr(), { language: o2, translationId: c2 } = e6 ?? {}, l2 = !!(t2 && c2 && o2 && o2 !== t2);
|
|
1802
1803
|
s(() => {
|
|
1803
1804
|
if (!l2 || !t2 || !c2 || !r2 || i2 || a2) return;
|
|
1804
1805
|
let e7 = false;
|
|
1805
1806
|
return n2(c2, t2).then((t3) => {
|
|
1806
|
-
let n3 = t3 &&
|
|
1807
|
+
let n3 = t3 && wa(r2, t3);
|
|
1807
1808
|
!e7 && n3 && n3 !== r2 && window.location.assign(n3);
|
|
1808
1809
|
}), () => {
|
|
1809
1810
|
e7 = true;
|
|
1810
1811
|
};
|
|
1811
1812
|
}, [l2, t2, c2, r2, i2, a2, n2]);
|
|
1812
1813
|
};
|
|
1813
|
-
var
|
|
1814
|
-
function
|
|
1815
|
-
let e6 =
|
|
1814
|
+
var Ea = R(`@wix/site-service-warmup-data`);
|
|
1815
|
+
function Da() {
|
|
1816
|
+
let e6 = Nr(), t2 = null;
|
|
1816
1817
|
try {
|
|
1817
|
-
t2 = d()(
|
|
1818
|
+
t2 = d()(Ea);
|
|
1818
1819
|
} catch {
|
|
1819
1820
|
}
|
|
1820
1821
|
return c(() => ({ isServer: e6, scope: t2 ?? void 0, get: async (n2) => {
|
|
@@ -1831,13 +1832,13 @@ function Ea() {
|
|
|
1831
1832
|
}
|
|
1832
1833
|
} }), [e6, t2]);
|
|
1833
1834
|
}
|
|
1834
|
-
var
|
|
1835
|
+
var Oa = () => {
|
|
1835
1836
|
let e6 = /* @__PURE__ */ new Map();
|
|
1836
1837
|
return { getOrInsert: (t2, n2) => (e6.has(t2) || e6.set(t2, n2().finally(() => {
|
|
1837
1838
|
e6.delete(t2);
|
|
1838
1839
|
})), e6.get(t2)) };
|
|
1839
1840
|
};
|
|
1840
|
-
var
|
|
1841
|
+
var ka = async (e6) => {
|
|
1841
1842
|
try {
|
|
1842
1843
|
let { default: t2 } = await e6();
|
|
1843
1844
|
return t2;
|
|
@@ -1845,9 +1846,9 @@ var Oa = async (e6) => {
|
|
|
1845
1846
|
return;
|
|
1846
1847
|
}
|
|
1847
1848
|
};
|
|
1848
|
-
var
|
|
1849
|
-
let r2 =
|
|
1850
|
-
let [i3, a2] = await Promise.all([
|
|
1849
|
+
var Aa = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
|
|
1850
|
+
let r2 = Oa(), i2 = async (r3) => {
|
|
1851
|
+
let [i3, a2] = await Promise.all([ka(() => t2(r3)), !e6 || !n2 ? void 0 : ka(() => n2(r3))]);
|
|
1851
1852
|
if (i3 && a2) return { ...i3, ...a2 };
|
|
1852
1853
|
if (i3) return i3;
|
|
1853
1854
|
if (a2) return a2;
|
|
@@ -1856,60 +1857,60 @@ var ka = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
|
|
|
1856
1857
|
return (e7) => r2.getOrInsert(e7, () => i2(e7));
|
|
1857
1858
|
};
|
|
1858
1859
|
var W = (e6) => typeof e6 == `string`;
|
|
1859
|
-
var
|
|
1860
|
+
var ja = () => {
|
|
1860
1861
|
let e6, t2, n2 = new Promise((n3, r2) => {
|
|
1861
1862
|
e6 = n3, t2 = r2;
|
|
1862
1863
|
});
|
|
1863
1864
|
return n2.resolve = e6, n2.reject = t2, n2;
|
|
1864
1865
|
};
|
|
1865
|
-
var
|
|
1866
|
-
var
|
|
1866
|
+
var Ma = (e6) => e6 == null ? `` : String(e6);
|
|
1867
|
+
var Na = (e6, t2, n2) => {
|
|
1867
1868
|
e6.forEach((e7) => {
|
|
1868
1869
|
t2[e7] && (n2[e7] = t2[e7]);
|
|
1869
1870
|
});
|
|
1870
1871
|
};
|
|
1871
|
-
var
|
|
1872
|
-
var
|
|
1873
|
-
var
|
|
1874
|
-
var
|
|
1872
|
+
var Pa = /###/g;
|
|
1873
|
+
var Fa = (e6) => e6 && e6.includes(`###`) ? e6.replace(Pa, `.`) : e6;
|
|
1874
|
+
var Ia = (e6) => !e6 || W(e6);
|
|
1875
|
+
var La = (e6, t2, n2) => {
|
|
1875
1876
|
let r2 = W(t2) ? t2.split(`.`) : t2, i2 = 0;
|
|
1876
1877
|
for (; i2 < r2.length - 1; ) {
|
|
1877
|
-
if (
|
|
1878
|
-
let t3 =
|
|
1878
|
+
if (Ia(e6)) return {};
|
|
1879
|
+
let t3 = Fa(r2[i2]);
|
|
1879
1880
|
!e6[t3] && n2 && (e6[t3] = new n2()), e6 = Object.prototype.hasOwnProperty.call(e6, t3) ? e6[t3] : {}, ++i2;
|
|
1880
1881
|
}
|
|
1881
|
-
return
|
|
1882
|
+
return Ia(e6) ? {} : { obj: e6, k: Fa(r2[i2]) };
|
|
1882
1883
|
};
|
|
1883
|
-
var
|
|
1884
|
-
let { obj: r2, k: i2 } =
|
|
1884
|
+
var Ra = (e6, t2, n2) => {
|
|
1885
|
+
let { obj: r2, k: i2 } = La(e6, t2, Object);
|
|
1885
1886
|
if (r2 !== void 0 || t2.length === 1) {
|
|
1886
1887
|
r2[i2] = n2;
|
|
1887
1888
|
return;
|
|
1888
1889
|
}
|
|
1889
|
-
let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 =
|
|
1890
|
-
for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 =
|
|
1890
|
+
let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = La(e6, o2, Object);
|
|
1891
|
+
for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = La(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
|
|
1891
1892
|
s2.obj[`${s2.k}.${a2}`] = n2;
|
|
1892
1893
|
};
|
|
1893
|
-
var
|
|
1894
|
-
let { obj: i2, k: a2 } =
|
|
1894
|
+
var za = (e6, t2, n2, r2) => {
|
|
1895
|
+
let { obj: i2, k: a2 } = La(e6, t2, Object);
|
|
1895
1896
|
i2[a2] = i2[a2] || [], i2[a2].push(n2);
|
|
1896
1897
|
};
|
|
1897
|
-
var
|
|
1898
|
-
let { obj: n2, k: r2 } =
|
|
1898
|
+
var Ba = (e6, t2) => {
|
|
1899
|
+
let { obj: n2, k: r2 } = La(e6, t2);
|
|
1899
1900
|
if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
|
|
1900
1901
|
};
|
|
1901
|
-
var Ba = (e6, t2, n2) => {
|
|
1902
|
-
let r2 = za(e6, n2);
|
|
1903
|
-
return r2 === void 0 ? za(t2, n2) : r2;
|
|
1904
|
-
};
|
|
1905
1902
|
var Va = (e6, t2, n2) => {
|
|
1906
|
-
|
|
1903
|
+
let r2 = Ba(e6, n2);
|
|
1904
|
+
return r2 === void 0 ? Ba(t2, n2) : r2;
|
|
1905
|
+
};
|
|
1906
|
+
var Ha = (e6, t2, n2) => {
|
|
1907
|
+
for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? W(e6[r2]) || e6[r2] instanceof String || W(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : Ha(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
|
|
1907
1908
|
return e6;
|
|
1908
1909
|
};
|
|
1909
1910
|
var G = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
|
|
1910
|
-
var
|
|
1911
|
-
var
|
|
1912
|
-
var
|
|
1911
|
+
var Ua = { "&": `&`, "<": `<`, ">": `>`, '"': `"`, "'": `'`, "/": `/` };
|
|
1912
|
+
var Wa = (e6) => W(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => Ua[e7]) : e6;
|
|
1913
|
+
var Ga = class {
|
|
1913
1914
|
constructor(e6) {
|
|
1914
1915
|
this.capacity = e6, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
1915
1916
|
}
|
|
@@ -1920,20 +1921,20 @@ var Wa = class {
|
|
|
1920
1921
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e6, n2), this.regExpQueue.push(e6), n2;
|
|
1921
1922
|
}
|
|
1922
1923
|
};
|
|
1923
|
-
var
|
|
1924
|
-
var
|
|
1925
|
-
var
|
|
1924
|
+
var Ka = [` `, `,`, `?`, `!`, `;`];
|
|
1925
|
+
var qa = new Ga(20);
|
|
1926
|
+
var Ja = (e6, t2, n2) => {
|
|
1926
1927
|
t2 ||= ``, n2 ||= ``;
|
|
1927
|
-
let r2 =
|
|
1928
|
+
let r2 = Ka.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
|
|
1928
1929
|
if (r2.length === 0) return true;
|
|
1929
|
-
let i2 =
|
|
1930
|
+
let i2 = qa.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
|
|
1930
1931
|
if (!a2) {
|
|
1931
1932
|
let t3 = e6.indexOf(n2);
|
|
1932
1933
|
t3 > 0 && !i2.test(e6.substring(0, t3)) && (a2 = true);
|
|
1933
1934
|
}
|
|
1934
1935
|
return a2;
|
|
1935
1936
|
};
|
|
1936
|
-
var
|
|
1937
|
+
var Ya = (e6, t2, n2 = `.`) => {
|
|
1937
1938
|
if (!e6) return;
|
|
1938
1939
|
if (e6[t2]) return Object.prototype.hasOwnProperty.call(e6, t2) ? e6[t2] : void 0;
|
|
1939
1940
|
let r2 = t2.split(n2), i2 = e6;
|
|
@@ -1949,8 +1950,8 @@ var Ja = (e6, t2, n2 = `.`) => {
|
|
|
1949
1950
|
}
|
|
1950
1951
|
return i2;
|
|
1951
1952
|
};
|
|
1952
|
-
var
|
|
1953
|
-
var
|
|
1953
|
+
var Xa = (e6) => e6?.replace(/_/g, `-`);
|
|
1954
|
+
var Za = { type: `logger`, log(e6) {
|
|
1954
1955
|
this.output(`log`, e6);
|
|
1955
1956
|
}, warn(e6) {
|
|
1956
1957
|
this.output(`warn`, e6);
|
|
@@ -1964,7 +1965,7 @@ var K = new class e2 {
|
|
|
1964
1965
|
this.init(e6, t2);
|
|
1965
1966
|
}
|
|
1966
1967
|
init(e6, t2 = {}) {
|
|
1967
|
-
this.prefix = t2.prefix || `i18next:`, this.logger = e6 ||
|
|
1968
|
+
this.prefix = t2.prefix || `i18next:`, this.logger = e6 || Za, this.options = t2, this.debug = t2.debug;
|
|
1968
1969
|
}
|
|
1969
1970
|
log(...e6) {
|
|
1970
1971
|
return this.forward(e6, `log`, ``, true);
|
|
@@ -1988,7 +1989,7 @@ var K = new class e2 {
|
|
|
1988
1989
|
return t2 ||= this.options, t2.prefix = t2.prefix || this.prefix, new e2(this.logger, t2);
|
|
1989
1990
|
}
|
|
1990
1991
|
}();
|
|
1991
|
-
var
|
|
1992
|
+
var Qa = class {
|
|
1992
1993
|
constructor() {
|
|
1993
1994
|
this.observers = {};
|
|
1994
1995
|
}
|
|
@@ -2016,8 +2017,8 @@ var Za = class {
|
|
|
2016
2017
|
});
|
|
2017
2018
|
}
|
|
2018
2019
|
};
|
|
2019
|
-
var
|
|
2020
|
-
var
|
|
2020
|
+
var $a = /* @__PURE__ */ new WeakSet();
|
|
2021
|
+
var eo = class extends Qa {
|
|
2021
2022
|
constructor(e6, t2 = { ns: [`translation`], defaultNS: `translation` }) {
|
|
2022
2023
|
super(), this.data = e6 || {}, this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = true);
|
|
2023
2024
|
}
|
|
@@ -2031,12 +2032,12 @@ var $a = class extends Za {
|
|
|
2031
2032
|
getResource(e6, t2, n2, r2 = {}) {
|
|
2032
2033
|
let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
|
|
2033
2034
|
e6.includes(`.`) ? o2 = e6.split(`.`) : (o2 = [e6, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : W(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
|
|
2034
|
-
let s2 =
|
|
2035
|
-
return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !W(n2) ? s2 :
|
|
2035
|
+
let s2 = Ba(this.data, o2);
|
|
2036
|
+
return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !W(n2) ? s2 : Ya(this.data?.[e6]?.[t2], n2, i2);
|
|
2036
2037
|
}
|
|
2037
2038
|
addResource(e6, t2, n2, r2, i2 = { silent: false }) {
|
|
2038
2039
|
let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e6, t2];
|
|
2039
|
-
n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2),
|
|
2040
|
+
n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Ra(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
|
|
2040
2041
|
}
|
|
2041
2042
|
addResources(e6, t2, n2, r2 = { silent: false }) {
|
|
2042
2043
|
for (let r3 in n2) (W(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
|
|
@@ -2045,8 +2046,8 @@ var $a = class extends Za {
|
|
|
2045
2046
|
addResourceBundle(e6, t2, n2, r2, i2, a2 = { silent: false, skipCopy: false }) {
|
|
2046
2047
|
let o2 = [e6, t2];
|
|
2047
2048
|
e6.includes(`.`) && (o2 = e6.split(`.`), r2 = n2, n2 = t2, t2 = o2[1]), this.addNamespaces(t2);
|
|
2048
|
-
let s2 =
|
|
2049
|
-
a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ?
|
|
2049
|
+
let s2 = Ba(this.data, o2) || {};
|
|
2050
|
+
a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? Ha(s2, n2, i2) : s2 = { ...s2, ...n2 }, Ra(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
|
|
2050
2051
|
}
|
|
2051
2052
|
removeResourceBundle(e6, t2) {
|
|
2052
2053
|
this.hasResourceBundle(e6, t2) && delete this.data[e6][t2], this.removeNamespaces(t2), this.emit(`removed`, e6, t2);
|
|
@@ -2064,37 +2065,37 @@ var $a = class extends Za {
|
|
|
2064
2065
|
let t2 = this.getDataByLanguage(e6);
|
|
2065
2066
|
return !!(t2 && Object.keys(t2) || []).find((e7) => {
|
|
2066
2067
|
let n2 = t2[e7];
|
|
2067
|
-
return
|
|
2068
|
+
return $a.has(n2) ? true : !n2 || Object.keys(n2).length === 0 ? false : (typeof n2 == `object` && $a.add(n2), true);
|
|
2068
2069
|
});
|
|
2069
2070
|
}
|
|
2070
2071
|
toJSON() {
|
|
2071
2072
|
return this.data;
|
|
2072
2073
|
}
|
|
2073
2074
|
};
|
|
2074
|
-
var
|
|
2075
|
+
var to = { processors: {}, addPostProcessor(e6) {
|
|
2075
2076
|
this.processors[e6.name] = e6;
|
|
2076
2077
|
}, handle(e6, t2, n2, r2, i2) {
|
|
2077
2078
|
return e6.forEach((e7) => {
|
|
2078
2079
|
t2 = this.processors[e7]?.process(t2, n2, r2, i2) ?? t2;
|
|
2079
2080
|
}), t2;
|
|
2080
2081
|
} };
|
|
2081
|
-
var
|
|
2082
|
-
function
|
|
2082
|
+
var no = Symbol(`i18next/PATH_KEY`);
|
|
2083
|
+
function ro() {
|
|
2083
2084
|
let e6 = [], t2 = /* @__PURE__ */ Object.create(null), n2;
|
|
2084
|
-
return t2.get = (r2, i2) => (n2?.revoke?.(), i2 ===
|
|
2085
|
+
return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === no ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
|
|
2085
2086
|
}
|
|
2086
|
-
function
|
|
2087
|
-
let { [
|
|
2087
|
+
function io(e6, t2) {
|
|
2088
|
+
let { [no]: n2 } = e6(ro()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
|
|
2088
2089
|
if (n2.length > 1 && i2) {
|
|
2089
2090
|
let e7 = t2?.ns, o2 = a2 ? Array.isArray(e7) ? e7 : e7 ? [e7] : null : Array.isArray(e7) ? e7 : null;
|
|
2090
2091
|
if (o2 && (a2 ? o2 : o2.length > 1 ? o2.slice(1) : []).includes(n2[0])) return `${n2[0]}${i2}${n2.slice(1).join(r2)}`;
|
|
2091
2092
|
}
|
|
2092
2093
|
return n2.join(r2);
|
|
2093
2094
|
}
|
|
2094
|
-
var
|
|
2095
|
-
var
|
|
2095
|
+
var ao = (e6) => !W(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
|
|
2096
|
+
var oo = class e3 extends Qa {
|
|
2096
2097
|
constructor(e6, t2 = {}) {
|
|
2097
|
-
super(),
|
|
2098
|
+
super(), Na([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = K.create(`translator`), this.checkedLoadedFor = {};
|
|
2098
2099
|
}
|
|
2099
2100
|
changeLanguage(e6) {
|
|
2100
2101
|
e6 && (this.language = e6);
|
|
@@ -2104,13 +2105,13 @@ var ao = class e3 extends Za {
|
|
|
2104
2105
|
if (e6 == null) return false;
|
|
2105
2106
|
let r2 = this.resolve(e6, n2);
|
|
2106
2107
|
if (r2?.res === void 0) return false;
|
|
2107
|
-
let i2 =
|
|
2108
|
+
let i2 = ao(r2.res);
|
|
2108
2109
|
return !(n2.returnObjects === false && i2);
|
|
2109
2110
|
}
|
|
2110
2111
|
extractFromKey(e6, t2) {
|
|
2111
2112
|
let n2 = t2.nsSeparator === void 0 ? this.options.nsSeparator : t2.nsSeparator;
|
|
2112
2113
|
n2 === void 0 && (n2 = `:`);
|
|
2113
|
-
let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !
|
|
2114
|
+
let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !Ja(e6, n2, r2);
|
|
2114
2115
|
if (a2 && !o2) {
|
|
2115
2116
|
let t3 = e6.match(this.interpolator.nestingRegexp);
|
|
2116
2117
|
if (t3 && t3.length > 0) return { key: e6, namespaces: W(i2) ? [i2] : i2 };
|
|
@@ -2122,14 +2123,14 @@ var ao = class e3 extends Za {
|
|
|
2122
2123
|
translate(t2, n2, r2) {
|
|
2123
2124
|
let i2 = typeof n2 == `object` ? { ...n2 } : n2;
|
|
2124
2125
|
if (typeof i2 != `object` && this.options.overloadTranslationOptionHandler && (i2 = this.options.overloadTranslationOptionHandler(arguments)), typeof i2 == `object` && (i2 = { ...i2 }), i2 ||= {}, t2 == null) return ``;
|
|
2125
|
-
typeof t2 == `function` && (t2 =
|
|
2126
|
+
typeof t2 == `function` && (t2 = io(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e6) => typeof e6 == `function` ? io(e6, { ...this.options, ...i2 }) : String(e6));
|
|
2126
2127
|
let a2 = i2.returnDetails === void 0 ? this.options.returnDetails : i2.returnDetails, o2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, { key: s2, namespaces: c2 } = this.extractFromKey(t2[t2.length - 1], i2), l2 = c2[c2.length - 1], u2 = i2.nsSeparator === void 0 ? this.options.nsSeparator : i2.nsSeparator;
|
|
2127
2128
|
u2 === void 0 && (u2 = `:`);
|
|
2128
2129
|
let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
2129
2130
|
if (d2?.toLowerCase() === `cimode`) return f2 ? a2 ? { res: `${l2}${u2}${s2}`, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : `${l2}${u2}${s2}` : a2 ? { res: s2, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : s2;
|
|
2130
2131
|
let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !W(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, w2 = b2 && !i2.ordinal && i2.count === 0, T2 = w2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, E2 = m2;
|
|
2131
2132
|
y2 && !m2 && x2 && (E2 = T2);
|
|
2132
|
-
let ee2 =
|
|
2133
|
+
let ee2 = ao(E2), D2 = Object.prototype.toString.apply(E2);
|
|
2133
2134
|
if (y2 && E2 && ee2 && !_2.includes(D2) && !(W(v2) && Array.isArray(E2))) {
|
|
2134
2135
|
if (!i2.returnObjects && !this.options.returnObjects) {
|
|
2135
2136
|
this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
|
|
@@ -2140,7 +2141,7 @@ var ao = class e3 extends Za {
|
|
|
2140
2141
|
let e6 = Array.isArray(E2), t3 = e6 ? [] : {}, n3 = e6 ? g2 : h2;
|
|
2141
2142
|
for (let e7 in E2) if (Object.prototype.hasOwnProperty.call(E2, e7)) {
|
|
2142
2143
|
let r3 = `${n3}${o2}${e7}`;
|
|
2143
|
-
t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue:
|
|
2144
|
+
t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: ao(T2) ? T2[e7] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e7] === r3 && (t3[e7] = E2[e7]);
|
|
2144
2145
|
}
|
|
2145
2146
|
m2 = t3;
|
|
2146
2147
|
}
|
|
@@ -2189,11 +2190,11 @@ var ao = class e3 extends Za {
|
|
|
2189
2190
|
!n2.lng && r2 && r2.res && (n2.lng = this.language || r2.usedLng), n2.nest !== false && (e6 = this.interpolator.nest(e6, (...e7) => i2?.[0] === e7[0] && !n2.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e7[0]} in key: ${t2[0]}`), null) : this.translate(...e7, t2), n2)), n2.interpolation && this.interpolator.reset();
|
|
2190
2191
|
}
|
|
2191
2192
|
let a2 = n2.postProcess || this.options.postProcess, o2 = W(a2) ? [a2] : a2;
|
|
2192
|
-
return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 =
|
|
2193
|
+
return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = to.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
|
|
2193
2194
|
}
|
|
2194
2195
|
resolve(e6, t2 = {}) {
|
|
2195
2196
|
let n2, r2, i2, a2, o2;
|
|
2196
|
-
return W(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ?
|
|
2197
|
+
return W(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? io(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
|
|
2197
2198
|
if (this.isValidLookup(n2)) return;
|
|
2198
2199
|
let s2 = this.extractFromKey(e7, t2), c2 = s2.key;
|
|
2199
2200
|
r2 = c2;
|
|
@@ -2240,7 +2241,7 @@ var ao = class e3 extends Za {
|
|
|
2240
2241
|
return false;
|
|
2241
2242
|
}
|
|
2242
2243
|
};
|
|
2243
|
-
var
|
|
2244
|
+
var so = class {
|
|
2244
2245
|
constructor(e6) {
|
|
2245
2246
|
this.options = e6, this.supportedLngs = this.options.supportedLngs || false, this.logger = K.create(`languageUtils`), this.resolveHierarchyCache = {};
|
|
2246
2247
|
}
|
|
@@ -2248,12 +2249,12 @@ var oo = class {
|
|
|
2248
2249
|
this.resolveHierarchyCache = {};
|
|
2249
2250
|
}
|
|
2250
2251
|
getScriptPartFromCode(e6) {
|
|
2251
|
-
if (e6 =
|
|
2252
|
+
if (e6 = Xa(e6), !e6 || !e6.includes(`-`)) return null;
|
|
2252
2253
|
let t2 = e6.split(`-`);
|
|
2253
2254
|
return t2.length === 2 || (t2.pop(), t2[t2.length - 1].toLowerCase() === `x`) ? null : this.formatLanguageCode(t2.join(`-`));
|
|
2254
2255
|
}
|
|
2255
2256
|
getLanguagePartFromCode(e6) {
|
|
2256
|
-
if (e6 =
|
|
2257
|
+
if (e6 = Xa(e6), !e6 || !e6.includes(`-`)) return e6;
|
|
2257
2258
|
let t2 = e6.split(`-`);
|
|
2258
2259
|
return this.formatLanguageCode(t2[0]);
|
|
2259
2260
|
}
|
|
@@ -2315,9 +2316,9 @@ var oo = class {
|
|
|
2315
2316
|
}), s2 === null ? l2 : (this.resolveHierarchyCache[s2] = l2, l2.slice());
|
|
2316
2317
|
}
|
|
2317
2318
|
};
|
|
2318
|
-
var
|
|
2319
|
-
var
|
|
2320
|
-
var
|
|
2319
|
+
var co = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
|
|
2320
|
+
var lo = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
|
|
2321
|
+
var uo = class {
|
|
2321
2322
|
constructor(e6, t2 = {}) {
|
|
2322
2323
|
this.languageUtils = e6, this.options = t2, this.logger = K.create(`pluralResolver`), this.pluralRulesCache = {};
|
|
2323
2324
|
}
|
|
@@ -2325,14 +2326,14 @@ var lo = class {
|
|
|
2325
2326
|
this.pluralRulesCache = {};
|
|
2326
2327
|
}
|
|
2327
2328
|
getRule(e6, t2 = {}) {
|
|
2328
|
-
let n2 =
|
|
2329
|
+
let n2 = Xa(e6 === `dev` ? `en` : e6), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
|
|
2329
2330
|
if (i2 in this.pluralRulesCache) return this.pluralRulesCache[i2];
|
|
2330
2331
|
let a2;
|
|
2331
2332
|
try {
|
|
2332
2333
|
a2 = new Intl.PluralRules(n2, { type: r2 });
|
|
2333
2334
|
} catch {
|
|
2334
|
-
if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`),
|
|
2335
|
-
if (!e6.match(/-|_/)) return
|
|
2335
|
+
if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), lo;
|
|
2336
|
+
if (!e6.match(/-|_/)) return lo;
|
|
2336
2337
|
let n3 = this.languageUtils.getLanguagePartFromCode(e6);
|
|
2337
2338
|
a2 = this.getRule(n3, t2);
|
|
2338
2339
|
}
|
|
@@ -2347,26 +2348,26 @@ var lo = class {
|
|
|
2347
2348
|
}
|
|
2348
2349
|
getSuffixes(e6, t2 = {}) {
|
|
2349
2350
|
let n2 = this.getRule(e6, t2);
|
|
2350
|
-
return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) =>
|
|
2351
|
+
return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) => co[e7] - co[t3]).map((e7) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e7}`) : [];
|
|
2351
2352
|
}
|
|
2352
2353
|
getSuffix(e6, t2, n2 = {}) {
|
|
2353
2354
|
let r2 = this.getRule(e6, n2);
|
|
2354
2355
|
return r2 ? `${this.options.prepend}${n2.ordinal ? `ordinal${this.options.prepend}` : ``}${r2.select(t2)}` : (this.logger.warn(`no plural rule found for: ${e6}`), this.getSuffix(`dev`, t2, n2));
|
|
2355
2356
|
}
|
|
2356
2357
|
};
|
|
2357
|
-
var
|
|
2358
|
-
let a2 =
|
|
2359
|
-
return !a2 && i2 && W(n2) && (a2 =
|
|
2358
|
+
var fo = (e6, t2, n2, r2 = `.`, i2 = true) => {
|
|
2359
|
+
let a2 = Va(e6, t2, n2);
|
|
2360
|
+
return !a2 && i2 && W(n2) && (a2 = Ya(e6, n2, r2), a2 === void 0 && (a2 = Ya(t2, n2, r2))), a2;
|
|
2360
2361
|
};
|
|
2361
|
-
var
|
|
2362
|
-
var
|
|
2362
|
+
var po = (e6) => e6.replace(/\$/g, `$$$$`);
|
|
2363
|
+
var mo = class {
|
|
2363
2364
|
constructor(e6 = {}) {
|
|
2364
2365
|
this.logger = K.create(`interpolator`), this.options = e6, this.format = e6?.interpolation?.format || ((e7) => e7), this.init(e6);
|
|
2365
2366
|
}
|
|
2366
2367
|
init(e6 = {}) {
|
|
2367
2368
|
e6.interpolation ||= { escapeValue: true };
|
|
2368
2369
|
let { escape: t2, escapeValue: n2, useRawValueToEscape: r2, prefix: i2, prefixEscaped: a2, suffix: o2, suffixEscaped: s2, formatSeparator: c2, unescapeSuffix: l2, unescapePrefix: u2, nestingPrefix: d2, nestingPrefixEscaped: f2, nestingSuffix: p2, nestingSuffixEscaped: m2, nestingOptionsSeparator: h2, maxReplaces: g2, alwaysFormat: _2 } = e6.interpolation;
|
|
2369
|
-
this.escape = t2 === void 0 ?
|
|
2370
|
+
this.escape = t2 === void 0 ? Wa : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? G(i2) : a2 || `{{`, this.suffix = o2 ? G(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? G(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? G(l2) : ``, this.nestingPrefix = d2 ? G(d2) : f2 || G(`$t(`), this.nestingSuffix = p2 ? G(p2) : m2 || G(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
|
|
2370
2371
|
}
|
|
2371
2372
|
reset() {
|
|
2372
2373
|
this.options && this.init(this.options);
|
|
@@ -2378,11 +2379,11 @@ var po = class {
|
|
|
2378
2379
|
interpolate(e6, t2, n2, r2) {
|
|
2379
2380
|
let i2, a2, o2, s2 = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c2 = (e7) => {
|
|
2380
2381
|
if (!e7.includes(this.formatSeparator)) {
|
|
2381
|
-
let i4 =
|
|
2382
|
+
let i4 = fo(t2, s2, e7, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
2382
2383
|
return this.alwaysFormat ? this.format(i4, void 0, n2, { ...r2, ...t2, interpolationkey: e7 }) : i4;
|
|
2383
2384
|
}
|
|
2384
2385
|
let i3 = e7.split(this.formatSeparator), a3 = i3.shift().trim(), o3 = i3.join(this.formatSeparator).trim();
|
|
2385
|
-
return this.format(
|
|
2386
|
+
return this.format(fo(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
|
|
2386
2387
|
};
|
|
2387
2388
|
this.resetRegExp(), !this.escapeValue && typeof e6 == `string` && /\$t\([^)]*\{[^}]*\{\{/.test(e6) && this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false \u2014 if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);
|
|
2388
2389
|
let l2 = r2?.missingInterpolationHandler || this.options.missingInterpolationHandler, u2 = r2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r2.interpolation.skipOnVariables;
|
|
@@ -2398,9 +2399,9 @@ var po = class {
|
|
|
2398
2399
|
a2 = i2[0];
|
|
2399
2400
|
continue;
|
|
2400
2401
|
} else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e6}`), a2 = ``;
|
|
2401
|
-
} else !W(a2) && !this.useRawValueToEscape && (a2 =
|
|
2402
|
+
} else !W(a2) && !this.useRawValueToEscape && (a2 = Ma(a2));
|
|
2402
2403
|
let s3 = t3.safeValue(a2);
|
|
2403
|
-
if (e6 = e6.replace(i2[0],
|
|
2404
|
+
if (e6 = e6.replace(i2[0], po(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
|
|
2404
2405
|
}
|
|
2405
2406
|
}), e6;
|
|
2406
2407
|
}
|
|
@@ -2424,12 +2425,12 @@ var po = class {
|
|
|
2424
2425
|
a2 = { ...n2 }, a2 = a2.replace && !W(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
|
|
2425
2426
|
let d2 = /{.*}/s.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
|
|
2426
2427
|
if (d2 !== -1 && (u2 = r2[1].slice(d2).split(this.formatSeparator).map((e7) => e7.trim()).filter(Boolean), r2[1] = r2[1].slice(0, d2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e6 && !W(i2)) return i2;
|
|
2427
|
-
W(i2) || (i2 =
|
|
2428
|
+
W(i2) || (i2 = Ma(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e6}`), ``), u2.length && (i2 = u2.reduce((e7, t3) => this.format(e7, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), c2 += e6.slice(l2, r2.index) + Ma(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
|
|
2428
2429
|
}
|
|
2429
2430
|
return l2 ? c2 + e6.slice(l2) : e6;
|
|
2430
2431
|
}
|
|
2431
2432
|
};
|
|
2432
|
-
var
|
|
2433
|
+
var ho = (e6) => {
|
|
2433
2434
|
let t2 = e6.toLowerCase().trim(), n2 = {};
|
|
2434
2435
|
if (e6.includes(`(`)) {
|
|
2435
2436
|
let r2 = e6.split(`(`);
|
|
@@ -2444,23 +2445,23 @@ var mo = (e6) => {
|
|
|
2444
2445
|
}
|
|
2445
2446
|
return { formatName: t2, formatOptions: n2 };
|
|
2446
2447
|
};
|
|
2447
|
-
var
|
|
2448
|
+
var go = (e6) => {
|
|
2448
2449
|
let t2 = {};
|
|
2449
2450
|
return (n2, r2, i2) => {
|
|
2450
2451
|
let a2 = i2;
|
|
2451
2452
|
i2 && i2.interpolationkey && i2.formatParams && i2.formatParams[i2.interpolationkey] && i2[i2.interpolationkey] && (a2 = { ...a2, [i2.interpolationkey]: void 0 });
|
|
2452
2453
|
let o2 = r2 + JSON.stringify(a2), s2 = t2[o2];
|
|
2453
|
-
return s2 || (s2 = e6(
|
|
2454
|
+
return s2 || (s2 = e6(Xa(r2), i2), t2[o2] = s2), s2(n2);
|
|
2454
2455
|
};
|
|
2455
2456
|
};
|
|
2456
|
-
var
|
|
2457
|
-
var
|
|
2457
|
+
var _o = (e6) => (t2, n2, r2) => e6(Xa(n2), r2)(t2);
|
|
2458
|
+
var vo = class {
|
|
2458
2459
|
constructor(e6 = {}) {
|
|
2459
2460
|
this.logger = K.create(`formatter`), this.options = e6, this.init(e6);
|
|
2460
2461
|
}
|
|
2461
2462
|
init(e6, t2 = { interpolation: {} }) {
|
|
2462
2463
|
this.formatSeparator = t2.interpolation.formatSeparator || `,`;
|
|
2463
|
-
let n2 = t2.cacheInBuiltFormats ?
|
|
2464
|
+
let n2 = t2.cacheInBuiltFormats ? go : _o;
|
|
2464
2465
|
this.formats = { number: n2((e7, t3) => {
|
|
2465
2466
|
let n3 = new Intl.NumberFormat(e7, { ...t3 });
|
|
2466
2467
|
return (e8) => n3.format(e8);
|
|
@@ -2482,7 +2483,7 @@ var _o = class {
|
|
|
2482
2483
|
this.formats[e6.toLowerCase().trim()] = t2;
|
|
2483
2484
|
}
|
|
2484
2485
|
addCached(e6, t2) {
|
|
2485
|
-
this.formats[e6.toLowerCase().trim()] =
|
|
2486
|
+
this.formats[e6.toLowerCase().trim()] = go(t2);
|
|
2486
2487
|
}
|
|
2487
2488
|
format(e6, t2, n2, r2 = {}) {
|
|
2488
2489
|
if (!t2 || e6 == null) return e6;
|
|
@@ -2493,7 +2494,7 @@ var _o = class {
|
|
|
2493
2494
|
a2.push(t3);
|
|
2494
2495
|
}
|
|
2495
2496
|
return a2.reduce((e7, t3) => {
|
|
2496
|
-
let { formatName: i3, formatOptions: a3 } =
|
|
2497
|
+
let { formatName: i3, formatOptions: a3 } = ho(t3);
|
|
2497
2498
|
if (this.formats[i3]) {
|
|
2498
2499
|
let t4 = e7;
|
|
2499
2500
|
try {
|
|
@@ -2508,10 +2509,10 @@ var _o = class {
|
|
|
2508
2509
|
}, e6);
|
|
2509
2510
|
}
|
|
2510
2511
|
};
|
|
2511
|
-
var
|
|
2512
|
+
var yo = (e6, t2) => {
|
|
2512
2513
|
e6.pending[t2] !== void 0 && (delete e6.pending[t2], e6.pendingCount--);
|
|
2513
2514
|
};
|
|
2514
|
-
var
|
|
2515
|
+
var bo = class extends Qa {
|
|
2515
2516
|
constructor(e6, t2, n2, r2 = {}) {
|
|
2516
2517
|
super(), this.backend = e6, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = K.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
|
|
2517
2518
|
}
|
|
@@ -2530,7 +2531,7 @@ var yo = class extends Za {
|
|
|
2530
2531
|
t2 && this.emit(`failedLoading`, i2, a2, t2), !t2 && n2 && this.store.addResourceBundle(i2, a2, n2, void 0, void 0, { skipCopy: true }), this.state[e6] = t2 ? -1 : 2, t2 && n2 && (this.state[e6] = 0);
|
|
2531
2532
|
let o2 = {};
|
|
2532
2533
|
this.queue.forEach((n3) => {
|
|
2533
|
-
|
|
2534
|
+
za(n3.loaded, [i2], a2), yo(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
|
|
2534
2535
|
o2[e7] || (o2[e7] = {});
|
|
2535
2536
|
let t3 = n3.loaded[e7];
|
|
2536
2537
|
t3.length && t3.forEach((t4) => {
|
|
@@ -2602,7 +2603,7 @@ var yo = class extends Za {
|
|
|
2602
2603
|
}
|
|
2603
2604
|
}
|
|
2604
2605
|
};
|
|
2605
|
-
var
|
|
2606
|
+
var xo = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, enableSelector: false, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e6) => {
|
|
2606
2607
|
let t2 = {};
|
|
2607
2608
|
if (typeof e6[1] == `object` && (t2 = e6[1]), W(e6[1]) && (t2.defaultValue = e6[1]), W(e6[2]) && (t2.tDescription = e6[2]), typeof e6[2] == `object` || typeof e6[3] == `object`) {
|
|
2608
2609
|
let n2 = e6[3] || e6[2];
|
|
@@ -2612,17 +2613,17 @@ var bo = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
|
|
|
2612
2613
|
}
|
|
2613
2614
|
return t2;
|
|
2614
2615
|
}, interpolation: { escapeValue: true, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
|
|
2615
|
-
var
|
|
2616
|
-
var
|
|
2616
|
+
var So = (e6) => (W(e6.ns) && (e6.ns = [e6.ns]), W(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), W(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
|
|
2617
|
+
var Co = () => {
|
|
2617
2618
|
};
|
|
2618
|
-
var
|
|
2619
|
+
var wo = (e6) => {
|
|
2619
2620
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e6)).forEach((t2) => {
|
|
2620
2621
|
typeof e6[t2] == `function` && (e6[t2] = e6[t2].bind(e6));
|
|
2621
2622
|
});
|
|
2622
2623
|
};
|
|
2623
|
-
var q = class e4 extends
|
|
2624
|
+
var q = class e4 extends Qa {
|
|
2624
2625
|
constructor(e6 = {}, t2) {
|
|
2625
|
-
if (super(), this.options =
|
|
2626
|
+
if (super(), this.options = So(e6), this.services = {}, this.logger = K, this.modules = { external: [] }, wo(this), t2 && !this.isInitialized && !e6.isClone) {
|
|
2626
2627
|
if (!this.options.initAsync) return this.init(e6, t2), this;
|
|
2627
2628
|
setTimeout(() => {
|
|
2628
2629
|
this.init(e6, t2);
|
|
@@ -2631,25 +2632,25 @@ var q = class e4 extends Za {
|
|
|
2631
2632
|
}
|
|
2632
2633
|
init(e6 = {}, t2) {
|
|
2633
2634
|
this.isInitializing = true, typeof e6 == `function` && (t2 = e6, e6 = {}), e6.defaultNS == null && e6.ns && (W(e6.ns) ? e6.defaultNS = e6.ns : e6.ns.includes(`translation`) || (e6.defaultNS = e6.ns[0]));
|
|
2634
|
-
let n2 =
|
|
2635
|
-
this.options = { ...n2, ...this.options, ...
|
|
2635
|
+
let n2 = xo();
|
|
2636
|
+
this.options = { ...n2, ...this.options, ...So(e6) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e6.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e6.keySeparator), e6.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e6.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler);
|
|
2636
2637
|
let r2 = (e7) => e7 ? typeof e7 == `function` ? new e7() : e7 : null;
|
|
2637
2638
|
if (!this.options.isClone) {
|
|
2638
2639
|
this.modules.logger ? K.init(r2(this.modules.logger), this.options) : K.init(null, this.options);
|
|
2639
2640
|
let e7;
|
|
2640
|
-
e7 = this.modules.formatter ? this.modules.formatter :
|
|
2641
|
-
let t3 = new
|
|
2642
|
-
this.store = new
|
|
2641
|
+
e7 = this.modules.formatter ? this.modules.formatter : vo;
|
|
2642
|
+
let t3 = new so(this.options);
|
|
2643
|
+
this.store = new eo(this.options.resources, this.options);
|
|
2643
2644
|
let n3 = this.services;
|
|
2644
|
-
n3.logger = K, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new
|
|
2645
|
+
n3.logger = K, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new uo(t3, { prepend: this.options.pluralSeparator }), e7 && (n3.formatter = r2(e7), n3.formatter.init && n3.formatter.init(n3, this.options), this.options.interpolation.format = n3.formatter.format.bind(n3.formatter)), n3.interpolator = new mo(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new bo(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
|
|
2645
2646
|
this.emit(e8, ...t4);
|
|
2646
|
-
}), this.modules.languageDetector && (n3.languageDetector = r2(this.modules.languageDetector), n3.languageDetector.init && n3.languageDetector.init(n3, this.options.detection, this.options)), this.modules.i18nFormat && (n3.i18nFormat = r2(this.modules.i18nFormat), n3.i18nFormat.init && n3.i18nFormat.init(this)), this.translator = new
|
|
2647
|
+
}), this.modules.languageDetector && (n3.languageDetector = r2(this.modules.languageDetector), n3.languageDetector.init && n3.languageDetector.init(n3, this.options.detection, this.options)), this.modules.i18nFormat && (n3.i18nFormat = r2(this.modules.i18nFormat), n3.i18nFormat.init && n3.i18nFormat.init(this)), this.translator = new oo(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
|
|
2647
2648
|
this.emit(e8, ...t4);
|
|
2648
2649
|
}), this.modules.external.forEach((e8) => {
|
|
2649
2650
|
e8.init && e8.init(this);
|
|
2650
2651
|
});
|
|
2651
2652
|
}
|
|
2652
|
-
if (this.format = this.options.interpolation.format, t2 ||=
|
|
2653
|
+
if (this.format = this.options.interpolation.format, t2 ||= Co, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
2653
2654
|
let e7 = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
2654
2655
|
e7.length > 0 && e7[0] !== `dev` && (this.options.lng = e7[0]);
|
|
2655
2656
|
}
|
|
@@ -2658,7 +2659,7 @@ var q = class e4 extends Za {
|
|
|
2658
2659
|
}), [`addResource`, `addResources`, `addResourceBundle`, `removeResourceBundle`].forEach((e7) => {
|
|
2659
2660
|
this[e7] = (...t3) => (this.store[e7](...t3), this);
|
|
2660
2661
|
});
|
|
2661
|
-
let i2 =
|
|
2662
|
+
let i2 = ja(), a2 = () => {
|
|
2662
2663
|
let e7 = (e8, n3) => {
|
|
2663
2664
|
this.isInitializing = false, this.isInitialized && !this.initializedStoreOnce && this.logger.warn(`init: i18next is already initialized. You should call init just once!`), this.isInitialized = true, this.options.isClone || this.logger.log(`initialized`, this.options), this.emit(`initialized`, this.options), i2.resolve(n3), t2(e8, n3);
|
|
2664
2665
|
};
|
|
@@ -2667,7 +2668,7 @@ var q = class e4 extends Za {
|
|
|
2667
2668
|
};
|
|
2668
2669
|
return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
|
|
2669
2670
|
}
|
|
2670
|
-
loadResources(e6, t2 =
|
|
2671
|
+
loadResources(e6, t2 = Co) {
|
|
2671
2672
|
let n2 = t2, r2 = W(e6) ? e6 : this.language;
|
|
2672
2673
|
if (typeof e6 == `function` && (n2 = e6), !this.options.resources || this.options.partialBundledLanguages) {
|
|
2673
2674
|
if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
|
|
@@ -2682,15 +2683,15 @@ var q = class e4 extends Za {
|
|
|
2682
2683
|
} else n2(null);
|
|
2683
2684
|
}
|
|
2684
2685
|
reloadResources(e6, t2, n2) {
|
|
2685
|
-
let r2 =
|
|
2686
|
-
return typeof e6 == `function` && (n2 = e6, e6 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e6 ||= this.languages, t2 ||= this.options.ns, n2 ||=
|
|
2686
|
+
let r2 = ja();
|
|
2687
|
+
return typeof e6 == `function` && (n2 = e6, e6 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e6 ||= this.languages, t2 ||= this.options.ns, n2 ||= Co, this.services.backendConnector.reload(e6, t2, (e7) => {
|
|
2687
2688
|
r2.resolve(), n2(e7);
|
|
2688
2689
|
}), r2;
|
|
2689
2690
|
}
|
|
2690
2691
|
use(e6) {
|
|
2691
2692
|
if (!e6) throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);
|
|
2692
2693
|
if (!e6.type) throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);
|
|
2693
|
-
return e6.type === `backend` && (this.modules.backend = e6), (e6.type === `logger` || e6.log && e6.warn && e6.error) && (this.modules.logger = e6), e6.type === `languageDetector` && (this.modules.languageDetector = e6), e6.type === `i18nFormat` && (this.modules.i18nFormat = e6), e6.type === `postProcessor` &&
|
|
2694
|
+
return e6.type === `backend` && (this.modules.backend = e6), (e6.type === `logger` || e6.log && e6.warn && e6.error) && (this.modules.logger = e6), e6.type === `languageDetector` && (this.modules.languageDetector = e6), e6.type === `i18nFormat` && (this.modules.i18nFormat = e6), e6.type === `postProcessor` && to.addPostProcessor(e6), e6.type === `formatter` && (this.modules.formatter = e6), e6.type === `3rdParty` && this.modules.external.push(e6), this;
|
|
2694
2695
|
}
|
|
2695
2696
|
setResolvedLanguage(e6) {
|
|
2696
2697
|
if (e6 && this.languages && ![`cimode`, `dev`].includes(e6)) {
|
|
@@ -2706,7 +2707,7 @@ var q = class e4 extends Za {
|
|
|
2706
2707
|
}
|
|
2707
2708
|
changeLanguage(e6, t2) {
|
|
2708
2709
|
this.isLanguageChangingTo = e6;
|
|
2709
|
-
let n2 =
|
|
2710
|
+
let n2 = ja();
|
|
2710
2711
|
this.emit(`languageChanging`, e6);
|
|
2711
2712
|
let r2 = (e7) => {
|
|
2712
2713
|
this.language = e7, this.languages = this.services.languageUtils.toResolveHierarchy(e7), this.resolvedLanguage = void 0, this.setResolvedLanguage(e7);
|
|
@@ -2728,9 +2729,9 @@ var q = class e4 extends Za {
|
|
|
2728
2729
|
let s2 = o2.ns !== void 0 && o2.ns !== null;
|
|
2729
2730
|
o2.ns = o2.ns || a2.ns, o2.keyPrefix !== `` && (o2.keyPrefix = o2.keyPrefix || n2 || a2.keyPrefix);
|
|
2730
2731
|
let c2 = { ...this.options, ...o2 };
|
|
2731
|
-
Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix =
|
|
2732
|
+
Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix = io(o2.keyPrefix, c2));
|
|
2732
2733
|
let l2 = this.options.keySeparator || `.`, u2;
|
|
2733
|
-
return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 =
|
|
2734
|
+
return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = io(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = io(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
|
|
2734
2735
|
};
|
|
2735
2736
|
return W(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
|
|
2736
2737
|
}
|
|
@@ -2761,7 +2762,7 @@ var q = class e4 extends Za {
|
|
|
2761
2762
|
return !(s2 && !a2(s2, e6) || r2 && !a2(i2, e6));
|
|
2762
2763
|
}
|
|
2763
2764
|
loadNamespaces(e6, t2) {
|
|
2764
|
-
let n2 =
|
|
2765
|
+
let n2 = ja();
|
|
2765
2766
|
return this.options.ns ? (W(e6) && (e6 = [e6]), e6.forEach((e7) => {
|
|
2766
2767
|
this.options.ns.includes(e7) || this.options.ns.push(e7);
|
|
2767
2768
|
}), this.loadResources((e7) => {
|
|
@@ -2769,7 +2770,7 @@ var q = class e4 extends Za {
|
|
|
2769
2770
|
}), n2) : (t2 && t2(), Promise.resolve());
|
|
2770
2771
|
}
|
|
2771
2772
|
loadLanguages(e6, t2) {
|
|
2772
|
-
let n2 =
|
|
2773
|
+
let n2 = ja();
|
|
2773
2774
|
W(e6) && (e6 = [e6]);
|
|
2774
2775
|
let r2 = this.options.preload || [], i2 = e6.filter((e7) => !r2.includes(e7) && this.services.languageUtils.isSupportedCode(e7));
|
|
2775
2776
|
return i2.length ? (this.options.preload = r2.concat(i2), this.loadResources((e7) => {
|
|
@@ -2786,24 +2787,24 @@ var q = class e4 extends Za {
|
|
|
2786
2787
|
}
|
|
2787
2788
|
} catch {
|
|
2788
2789
|
}
|
|
2789
|
-
let t2 = `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`), n2 = this.services?.languageUtils || new
|
|
2790
|
+
let t2 = `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`), n2 = this.services?.languageUtils || new so(xo());
|
|
2790
2791
|
return e6.toLowerCase().indexOf(`-latn`) > 1 ? `ltr` : t2.includes(n2.getLanguagePartFromCode(e6)) || e6.toLowerCase().indexOf(`-arab`) > 1 ? `rtl` : `ltr`;
|
|
2791
2792
|
}
|
|
2792
2793
|
static createInstance(t2 = {}, n2) {
|
|
2793
2794
|
let r2 = new e4(t2, n2);
|
|
2794
2795
|
return r2.createInstance = e4.createInstance, r2;
|
|
2795
2796
|
}
|
|
2796
|
-
cloneInstance(t2 = {}, n2 =
|
|
2797
|
+
cloneInstance(t2 = {}, n2 = Co) {
|
|
2797
2798
|
let r2 = t2.forkResourceStore;
|
|
2798
2799
|
r2 && delete t2.forkResourceStore;
|
|
2799
2800
|
let i2 = { ...this.options, preload: false, ...t2, isClone: true }, a2 = new e4(i2);
|
|
2800
2801
|
if ((t2.debug !== void 0 || t2.prefix !== void 0) && (a2.logger = a2.logger.clone(t2)), [`store`, `services`, `language`].forEach((e6) => {
|
|
2801
2802
|
a2[e6] = this[e6];
|
|
2802
|
-
}), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new
|
|
2803
|
-
let e6 = { ...
|
|
2804
|
-
a2.services.interpolator = new
|
|
2803
|
+
}), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new eo(Object.keys(this.store.data).reduce((e6, t3) => (e6[t3] = { ...this.store.data[t3] }, e6[t3] = Object.keys(e6[t3]).reduce((n3, r3) => (n3[r3] = { ...e6[t3][r3] }, n3), e6[t3]), e6), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
|
|
2804
|
+
let e6 = { ...xo().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e6 };
|
|
2805
|
+
a2.services.interpolator = new mo(n3);
|
|
2805
2806
|
}
|
|
2806
|
-
return a2.translator = new
|
|
2807
|
+
return a2.translator = new oo(a2.services, i2), a2.translator.on(`*`, (e6, ...t3) => {
|
|
2807
2808
|
a2.emit(e6, ...t3);
|
|
2808
2809
|
}), a2.init(i2, n2), a2.translator.options = i2, a2.translator.backendConnector.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, a2;
|
|
2809
2810
|
}
|
|
@@ -2812,7 +2813,7 @@ var q = class e4 extends Za {
|
|
|
2812
2813
|
}
|
|
2813
2814
|
}.createInstance();
|
|
2814
2815
|
q.createInstance, q.dir, q.init, q.loadResources, q.reloadResources, q.use, q.changeLanguage, q.getFixedT, q.t, q.exists, q.setDefaultNamespace, q.hasLoadedNamespace, q.loadNamespaces, q.loadLanguages;
|
|
2815
|
-
var
|
|
2816
|
+
var To = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
|
|
2816
2817
|
let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = q.createInstance(i2 ? s2 : void 0);
|
|
2817
2818
|
return o2 && c2.use(o2), t2 && c2.use({ type: `backend`, read: async (e7, n3, r3) => {
|
|
2818
2819
|
try {
|
|
@@ -2822,38 +2823,38 @@ var wo = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 =
|
|
|
2822
2823
|
}
|
|
2823
2824
|
} }), n2 && (s2.resources = { [e6]: { translation: n2 } }), i2 || c2.init(s2), c2;
|
|
2824
2825
|
};
|
|
2825
|
-
function
|
|
2826
|
-
let n2 = t2 && t2.cache ? t2.cache :
|
|
2827
|
-
return (t2 && t2.strategy ? t2.strategy :
|
|
2826
|
+
function Eo(e6, t2) {
|
|
2827
|
+
let n2 = t2 && t2.cache ? t2.cache : Io, r2 = t2 && t2.serializer ? t2.serializer : Po;
|
|
2828
|
+
return (t2 && t2.strategy ? t2.strategy : jo)(e6, { cache: n2, serializer: r2 });
|
|
2828
2829
|
}
|
|
2829
|
-
function
|
|
2830
|
+
function Do(e6) {
|
|
2830
2831
|
return e6 == null || typeof e6 == `number` || typeof e6 == `boolean`;
|
|
2831
2832
|
}
|
|
2832
|
-
function
|
|
2833
|
-
let i2 =
|
|
2833
|
+
function Oo(e6, t2, n2, r2) {
|
|
2834
|
+
let i2 = Do(r2) ? r2 : n2(r2), a2 = t2.get(i2);
|
|
2834
2835
|
return a2 === void 0 && (a2 = e6.call(this, r2), t2.set(i2, a2)), a2;
|
|
2835
2836
|
}
|
|
2836
|
-
function
|
|
2837
|
+
function ko(e6, t2, n2) {
|
|
2837
2838
|
let r2 = Array.prototype.slice.call(arguments, 3), i2 = n2(r2), a2 = t2.get(i2);
|
|
2838
2839
|
return a2 === void 0 && (a2 = e6.apply(this, r2), t2.set(i2, a2)), a2;
|
|
2839
2840
|
}
|
|
2840
|
-
function
|
|
2841
|
+
function Ao(e6, t2, n2, r2, i2) {
|
|
2841
2842
|
return n2.bind(t2, e6, r2, i2);
|
|
2842
2843
|
}
|
|
2843
|
-
function Ao(e6, t2) {
|
|
2844
|
-
let n2 = e6.length === 1 ? Do : Oo;
|
|
2845
|
-
return ko(e6, this, n2, t2.cache.create(), t2.serializer);
|
|
2846
|
-
}
|
|
2847
2844
|
function jo(e6, t2) {
|
|
2848
|
-
|
|
2845
|
+
let n2 = e6.length === 1 ? Oo : ko;
|
|
2846
|
+
return Ao(e6, this, n2, t2.cache.create(), t2.serializer);
|
|
2849
2847
|
}
|
|
2850
2848
|
function Mo(e6, t2) {
|
|
2851
|
-
return
|
|
2849
|
+
return Ao(e6, this, ko, t2.cache.create(), t2.serializer);
|
|
2850
|
+
}
|
|
2851
|
+
function No(e6, t2) {
|
|
2852
|
+
return Ao(e6, this, Oo, t2.cache.create(), t2.serializer);
|
|
2852
2853
|
}
|
|
2853
|
-
var
|
|
2854
|
+
var Po = function() {
|
|
2854
2855
|
return JSON.stringify(arguments);
|
|
2855
2856
|
};
|
|
2856
|
-
var
|
|
2857
|
+
var Fo = class {
|
|
2857
2858
|
constructor() {
|
|
2858
2859
|
this.cache = /* @__PURE__ */ Object.create(null);
|
|
2859
2860
|
}
|
|
@@ -2864,14 +2865,14 @@ var Po = class {
|
|
|
2864
2865
|
this.cache[e6] = t2;
|
|
2865
2866
|
}
|
|
2866
2867
|
};
|
|
2867
|
-
var
|
|
2868
|
-
return new
|
|
2868
|
+
var Io = { create: function() {
|
|
2869
|
+
return new Fo();
|
|
2869
2870
|
} };
|
|
2870
|
-
var
|
|
2871
|
-
var
|
|
2872
|
-
function
|
|
2871
|
+
var Lo = { variadic: Mo, monadic: No };
|
|
2872
|
+
var Ro = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
2873
|
+
function zo(e6) {
|
|
2873
2874
|
let t2 = {};
|
|
2874
|
-
return e6.replace(
|
|
2875
|
+
return e6.replace(Ro, (e7) => {
|
|
2875
2876
|
let n2 = e7.length;
|
|
2876
2877
|
switch (e7[0]) {
|
|
2877
2878
|
case `G`:
|
|
@@ -2958,10 +2959,10 @@ function Ro(e6) {
|
|
|
2958
2959
|
return ``;
|
|
2959
2960
|
}), t2;
|
|
2960
2961
|
}
|
|
2961
|
-
var
|
|
2962
|
-
function
|
|
2962
|
+
var Bo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
2963
|
+
function Vo(e6) {
|
|
2963
2964
|
if (e6.length === 0) throw Error(`Number skeleton cannot be empty`);
|
|
2964
|
-
let t2 = e6.split(
|
|
2965
|
+
let t2 = e6.split(Bo).filter((e7) => e7.length > 0), n2 = [];
|
|
2965
2966
|
for (let e7 of t2) {
|
|
2966
2967
|
let t3 = e7.split(`/`);
|
|
2967
2968
|
if (t3.length === 0) throw Error(`Invalid number skeleton`);
|
|
@@ -2971,20 +2972,20 @@ function Bo(e6) {
|
|
|
2971
2972
|
}
|
|
2972
2973
|
return n2;
|
|
2973
2974
|
}
|
|
2974
|
-
function
|
|
2975
|
+
function Ho(e6) {
|
|
2975
2976
|
return e6.replace(/^(.*?)-/, ``);
|
|
2976
2977
|
}
|
|
2977
|
-
var
|
|
2978
|
-
var
|
|
2979
|
-
var
|
|
2980
|
-
var
|
|
2981
|
-
function
|
|
2978
|
+
var Uo = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
|
|
2979
|
+
var Wo = /^(@+)?(\+|#+)?[rs]?$/g;
|
|
2980
|
+
var Go = /(\*)(0+)|(#+)(0+)|(0+)/g;
|
|
2981
|
+
var Ko = /^(0+)$/;
|
|
2982
|
+
function qo(e6) {
|
|
2982
2983
|
let t2 = {};
|
|
2983
|
-
return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(
|
|
2984
|
+
return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(Wo, function(e7, n2, r2) {
|
|
2984
2985
|
return typeof r2 == `string` ? r2 === `+` ? t2.minimumSignificantDigits = n2.length : n2[0] === `#` ? t2.maximumSignificantDigits = n2.length : (t2.minimumSignificantDigits = n2.length, t2.maximumSignificantDigits = n2.length + (typeof r2 == `string` ? r2.length : 0)) : (t2.minimumSignificantDigits = n2.length, t2.maximumSignificantDigits = n2.length), ``;
|
|
2985
2986
|
}), t2;
|
|
2986
2987
|
}
|
|
2987
|
-
function
|
|
2988
|
+
function Jo(e6) {
|
|
2988
2989
|
switch (e6) {
|
|
2989
2990
|
case `sign-auto`:
|
|
2990
2991
|
return { signDisplay: `auto` };
|
|
@@ -3008,19 +3009,19 @@ function qo(e6) {
|
|
|
3008
3009
|
return { signDisplay: `never` };
|
|
3009
3010
|
}
|
|
3010
3011
|
}
|
|
3011
|
-
function
|
|
3012
|
+
function Yo(e6) {
|
|
3012
3013
|
let t2;
|
|
3013
3014
|
if (e6[0] === `E` && e6[1] === `E` ? (t2 = { notation: `engineering` }, e6 = e6.slice(2)) : e6[0] === `E` && (t2 = { notation: `scientific` }, e6 = e6.slice(1)), t2) {
|
|
3014
3015
|
let n2 = e6.slice(0, 2);
|
|
3015
|
-
if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !
|
|
3016
|
+
if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !Ko.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
|
|
3016
3017
|
t2.minimumIntegerDigits = e6.length;
|
|
3017
3018
|
}
|
|
3018
3019
|
return t2;
|
|
3019
3020
|
}
|
|
3020
|
-
function Yo(e6) {
|
|
3021
|
-
return qo(e6) || {};
|
|
3022
|
-
}
|
|
3023
3021
|
function Xo(e6) {
|
|
3022
|
+
return Jo(e6) || {};
|
|
3023
|
+
}
|
|
3024
|
+
function Zo(e6) {
|
|
3024
3025
|
let t2 = {};
|
|
3025
3026
|
for (let n2 of e6) {
|
|
3026
3027
|
switch (n2.stem) {
|
|
@@ -3044,7 +3045,7 @@ function Xo(e6) {
|
|
|
3044
3045
|
continue;
|
|
3045
3046
|
case `measure-unit`:
|
|
3046
3047
|
case `unit`:
|
|
3047
|
-
t2.style = `unit`, t2.unit =
|
|
3048
|
+
t2.style = `unit`, t2.unit = Ho(n2.options[0]);
|
|
3048
3049
|
continue;
|
|
3049
3050
|
case `compact-short`:
|
|
3050
3051
|
case `K`:
|
|
@@ -3055,10 +3056,10 @@ function Xo(e6) {
|
|
|
3055
3056
|
t2.notation = `compact`, t2.compactDisplay = `long`;
|
|
3056
3057
|
continue;
|
|
3057
3058
|
case `scientific`:
|
|
3058
|
-
t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...
|
|
3059
|
+
t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Xo(t3) }), {}) };
|
|
3059
3060
|
continue;
|
|
3060
3061
|
case `engineering`:
|
|
3061
|
-
t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...
|
|
3062
|
+
t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...Xo(t3) }), {}) };
|
|
3062
3063
|
continue;
|
|
3063
3064
|
case `notation-simple`:
|
|
3064
3065
|
t2.notation = `standard`;
|
|
@@ -3101,7 +3102,7 @@ function Xo(e6) {
|
|
|
3101
3102
|
continue;
|
|
3102
3103
|
case `integer-width`:
|
|
3103
3104
|
if (n2.options.length > 1) throw RangeError(`integer-width stems only accept a single optional option`);
|
|
3104
|
-
n2.options[0].replace(
|
|
3105
|
+
n2.options[0].replace(Go, function(e8, n3, r3, i2, a2, o2) {
|
|
3105
3106
|
if (n3) t2.minimumIntegerDigits = r3.length;
|
|
3106
3107
|
else if (i2 && a2) throw Error(`We currently do not support maximum integer digits`);
|
|
3107
3108
|
else if (o2) throw Error(`We currently do not support exact integer digits`);
|
|
@@ -3109,83 +3110,83 @@ function Xo(e6) {
|
|
|
3109
3110
|
});
|
|
3110
3111
|
continue;
|
|
3111
3112
|
}
|
|
3112
|
-
if (
|
|
3113
|
+
if (Ko.test(n2.stem)) {
|
|
3113
3114
|
t2.minimumIntegerDigits = n2.stem.length;
|
|
3114
3115
|
continue;
|
|
3115
3116
|
}
|
|
3116
|
-
if (
|
|
3117
|
+
if (Uo.test(n2.stem)) {
|
|
3117
3118
|
if (n2.options.length > 1) throw RangeError(`Fraction-precision stems only accept a single optional option`);
|
|
3118
|
-
n2.stem.replace(
|
|
3119
|
+
n2.stem.replace(Uo, function(e9, n3, r3, i2, a2, o2) {
|
|
3119
3120
|
return r3 === `*` ? t2.minimumFractionDigits = n3.length : i2 && i2[0] === `#` ? t2.maximumFractionDigits = i2.length : a2 && o2 ? (t2.minimumFractionDigits = a2.length, t2.maximumFractionDigits = a2.length + o2.length) : (t2.minimumFractionDigits = n3.length, t2.maximumFractionDigits = n3.length), ``;
|
|
3120
3121
|
});
|
|
3121
3122
|
let e8 = n2.options[0];
|
|
3122
|
-
e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...
|
|
3123
|
+
e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...qo(e8) });
|
|
3123
3124
|
continue;
|
|
3124
3125
|
}
|
|
3125
|
-
if (
|
|
3126
|
-
t2 = { ...t2, ...
|
|
3126
|
+
if (Wo.test(n2.stem)) {
|
|
3127
|
+
t2 = { ...t2, ...qo(n2.stem) };
|
|
3127
3128
|
continue;
|
|
3128
3129
|
}
|
|
3129
|
-
let e7 =
|
|
3130
|
+
let e7 = Jo(n2.stem);
|
|
3130
3131
|
e7 && (t2 = { ...t2, ...e7 });
|
|
3131
|
-
let r2 =
|
|
3132
|
+
let r2 = Yo(n2.stem);
|
|
3132
3133
|
r2 && (t2 = { ...t2, ...r2 });
|
|
3133
3134
|
}
|
|
3134
3135
|
return t2;
|
|
3135
3136
|
}
|
|
3136
|
-
var
|
|
3137
|
+
var Qo = function(e6) {
|
|
3137
3138
|
return e6[e6.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = `EXPECT_ARGUMENT_CLOSING_BRACE`, e6[e6.EMPTY_ARGUMENT = 2] = `EMPTY_ARGUMENT`, e6[e6.MALFORMED_ARGUMENT = 3] = `MALFORMED_ARGUMENT`, e6[e6.EXPECT_ARGUMENT_TYPE = 4] = `EXPECT_ARGUMENT_TYPE`, e6[e6.INVALID_ARGUMENT_TYPE = 5] = `INVALID_ARGUMENT_TYPE`, e6[e6.EXPECT_ARGUMENT_STYLE = 6] = `EXPECT_ARGUMENT_STYLE`, e6[e6.INVALID_NUMBER_SKELETON = 7] = `INVALID_NUMBER_SKELETON`, e6[e6.INVALID_DATE_TIME_SKELETON = 8] = `INVALID_DATE_TIME_SKELETON`, e6[e6.EXPECT_NUMBER_SKELETON = 9] = `EXPECT_NUMBER_SKELETON`, e6[e6.EXPECT_DATE_TIME_SKELETON = 10] = `EXPECT_DATE_TIME_SKELETON`, e6[e6.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = `UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`, e6[e6.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = `EXPECT_SELECT_ARGUMENT_OPTIONS`, e6[e6.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = `EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`, e6[e6.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = `INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`, e6[e6.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = `EXPECT_SELECT_ARGUMENT_SELECTOR`, e6[e6.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = `EXPECT_PLURAL_ARGUMENT_SELECTOR`, e6[e6.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = `EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`, e6[e6.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = `EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`, e6[e6.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = `INVALID_PLURAL_ARGUMENT_SELECTOR`, e6[e6.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = `DUPLICATE_PLURAL_ARGUMENT_SELECTOR`, e6[e6.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = `DUPLICATE_SELECT_ARGUMENT_SELECTOR`, e6[e6.MISSING_OTHER_CLAUSE = 22] = `MISSING_OTHER_CLAUSE`, e6[e6.INVALID_TAG = 23] = `INVALID_TAG`, e6[e6.INVALID_TAG_NAME = 25] = `INVALID_TAG_NAME`, e6[e6.UNMATCHED_CLOSING_TAG = 26] = `UNMATCHED_CLOSING_TAG`, e6[e6.UNCLOSED_TAG = 27] = `UNCLOSED_TAG`, e6;
|
|
3138
3139
|
}({});
|
|
3139
|
-
function
|
|
3140
|
+
function $o(e6) {
|
|
3140
3141
|
return e6.type === 0;
|
|
3141
3142
|
}
|
|
3142
|
-
function
|
|
3143
|
+
function es(e6) {
|
|
3143
3144
|
return e6.type === 1;
|
|
3144
3145
|
}
|
|
3145
|
-
function
|
|
3146
|
+
function ts(e6) {
|
|
3146
3147
|
return e6.type === 2;
|
|
3147
3148
|
}
|
|
3148
|
-
function
|
|
3149
|
+
function ns(e6) {
|
|
3149
3150
|
return e6.type === 3;
|
|
3150
3151
|
}
|
|
3151
|
-
function
|
|
3152
|
+
function rs(e6) {
|
|
3152
3153
|
return e6.type === 4;
|
|
3153
3154
|
}
|
|
3154
|
-
function
|
|
3155
|
+
function is(e6) {
|
|
3155
3156
|
return e6.type === 5;
|
|
3156
3157
|
}
|
|
3157
|
-
function
|
|
3158
|
+
function as(e6) {
|
|
3158
3159
|
return e6.type === 6;
|
|
3159
3160
|
}
|
|
3160
|
-
function
|
|
3161
|
+
function os(e6) {
|
|
3161
3162
|
return e6.type === 7;
|
|
3162
3163
|
}
|
|
3163
|
-
function
|
|
3164
|
+
function ss(e6) {
|
|
3164
3165
|
return e6.type === 8;
|
|
3165
3166
|
}
|
|
3166
|
-
function
|
|
3167
|
+
function cs(e6) {
|
|
3167
3168
|
return !!(e6 && typeof e6 == `object` && e6.type === 0);
|
|
3168
3169
|
}
|
|
3169
|
-
function
|
|
3170
|
+
function ls(e6) {
|
|
3170
3171
|
return !!(e6 && typeof e6 == `object` && e6.type === 1);
|
|
3171
3172
|
}
|
|
3172
|
-
var
|
|
3173
|
-
var
|
|
3174
|
-
function
|
|
3173
|
+
var us = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
3174
|
+
var ds = { "001": [`H`, `h`], 419: [`h`, `H`, `hB`, `hb`], AC: [`H`, `h`, `hb`, `hB`], AD: [`H`, `hB`], AE: [`h`, `hB`, `hb`, `H`], AF: [`H`, `hb`, `hB`, `h`], AG: [`h`, `hb`, `H`, `hB`], AI: [`H`, `h`, `hb`, `hB`], AL: [`h`, `H`, `hB`], AM: [`H`, `hB`], AO: [`H`, `hB`], AR: [`h`, `H`, `hB`, `hb`], AS: [`h`, `H`], AT: [`H`, `hB`], AU: [`h`, `hb`, `H`, `hB`], AW: [`H`, `hB`], AX: [`H`], AZ: [`H`, `hB`, `h`], BA: [`H`, `hB`, `h`], BB: [`h`, `hb`, `H`, `hB`], BD: [`h`, `hB`, `H`], BE: [`H`, `hB`], BF: [`H`, `hB`], BG: [`H`, `hB`, `h`], BH: [`h`, `hB`, `hb`, `H`], BI: [`H`, `h`], BJ: [`H`, `hB`], BL: [`H`, `hB`], BM: [`h`, `hb`, `H`, `hB`], BN: [`hb`, `hB`, `h`, `H`], BO: [`h`, `H`, `hB`, `hb`], BQ: [`H`], BR: [`H`, `hB`], BS: [`h`, `hb`, `H`, `hB`], BT: [`h`, `H`], BW: [`H`, `h`, `hb`, `hB`], BY: [`H`, `h`], BZ: [`H`, `h`, `hb`, `hB`], CA: [`h`, `hb`, `H`, `hB`], CC: [`H`, `h`, `hb`, `hB`], CD: [`hB`, `H`], CF: [`H`, `h`, `hB`], CG: [`H`, `hB`], CH: [`H`, `hB`, `h`], CI: [`H`, `hB`], CK: [`H`, `h`, `hb`, `hB`], CL: [`h`, `H`, `hB`, `hb`], CM: [`H`, `h`, `hB`], CN: [`H`, `hB`, `hb`, `h`], CO: [`h`, `H`, `hB`, `hb`], CP: [`H`], CR: [`h`, `H`, `hB`, `hb`], CU: [`h`, `H`, `hB`, `hb`], CV: [`H`, `hB`], CW: [`H`, `hB`], CX: [`H`, `h`, `hb`, `hB`], CY: [`h`, `H`, `hb`, `hB`], CZ: [`H`], DE: [`H`, `hB`], DG: [`H`, `h`, `hb`, `hB`], DJ: [`h`, `H`], DK: [`H`], DM: [`h`, `hb`, `H`, `hB`], DO: [`h`, `H`, `hB`, `hb`], DZ: [`h`, `hB`, `hb`, `H`], EA: [`H`, `h`, `hB`, `hb`], EC: [`h`, `H`, `hB`, `hb`], EE: [`H`, `hB`], EG: [`h`, `hB`, `hb`, `H`], EH: [`h`, `hB`, `hb`, `H`], ER: [`h`, `H`], ES: [`H`, `hB`, `h`, `hb`], ET: [`hB`, `hb`, `h`, `H`], FI: [`H`], FJ: [`h`, `hb`, `H`, `hB`], FK: [`H`, `h`, `hb`, `hB`], FM: [`h`, `hb`, `H`, `hB`], FO: [`H`, `h`], FR: [`H`, `hB`], GA: [`H`, `hB`], GB: [`H`, `h`, `hb`, `hB`], GD: [`h`, `hb`, `H`, `hB`], GE: [`H`, `hB`, `h`], GF: [`H`, `hB`], GG: [`H`, `h`, `hb`, `hB`], GH: [`h`, `H`], GI: [`H`, `h`, `hb`, `hB`], GL: [`H`, `h`], GM: [`h`, `hb`, `H`, `hB`], GN: [`H`, `hB`], GP: [`H`, `hB`], GQ: [`H`, `hB`, `h`, `hb`], GR: [`h`, `H`, `hb`, `hB`], GS: [`H`, `h`, `hb`, `hB`], GT: [`h`, `H`, `hB`, `hb`], GU: [`h`, `hb`, `H`, `hB`], GW: [`H`, `hB`], GY: [`h`, `hb`, `H`, `hB`], HK: [`h`, `hB`, `hb`, `H`], HN: [`h`, `H`, `hB`, `hb`], HR: [`H`, `hB`], HU: [`H`, `h`], IC: [`H`, `h`, `hB`, `hb`], ID: [`H`], IE: [`H`, `h`, `hb`, `hB`], IL: [`H`, `hB`], IM: [`H`, `h`, `hb`, `hB`], IN: [`h`, `H`], IO: [`H`, `h`, `hb`, `hB`], IQ: [`h`, `hB`, `hb`, `H`], IR: [`hB`, `H`], IS: [`H`], IT: [`H`, `hB`], JE: [`H`, `h`, `hb`, `hB`], JM: [`h`, `hb`, `H`, `hB`], JO: [`h`, `hB`, `hb`, `H`], JP: [`H`, `K`, `h`], KE: [`hB`, `hb`, `H`, `h`], KG: [`H`, `h`, `hB`, `hb`], KH: [`hB`, `h`, `H`, `hb`], KI: [`h`, `hb`, `H`, `hB`], KM: [`H`, `h`, `hB`, `hb`], KN: [`h`, `hb`, `H`, `hB`], KP: [`h`, `H`, `hB`, `hb`], KR: [`h`, `H`, `hB`, `hb`], KW: [`h`, `hB`, `hb`, `H`], KY: [`h`, `hb`, `H`, `hB`], KZ: [`H`, `hB`], LA: [`H`, `hb`, `hB`, `h`], LB: [`h`, `hB`, `hb`, `H`], LC: [`h`, `hb`, `H`, `hB`], LI: [`H`, `hB`, `h`], LK: [`H`, `h`, `hB`, `hb`], LR: [`h`, `hb`, `H`, `hB`], LS: [`h`, `H`], LT: [`H`, `h`, `hb`, `hB`], LU: [`H`, `h`, `hB`], LV: [`H`, `hB`, `hb`, `h`], LY: [`h`, `hB`, `hb`, `H`], MA: [`H`, `h`, `hB`, `hb`], MC: [`H`, `hB`], MD: [`H`, `hB`], ME: [`H`, `hB`, `h`], MF: [`H`, `hB`], MG: [`H`, `h`], MH: [`h`, `hb`, `H`, `hB`], MK: [`H`, `h`, `hb`, `hB`], ML: [`H`], MM: [`hB`, `hb`, `H`, `h`], MN: [`H`, `h`, `hb`, `hB`], MO: [`h`, `hB`, `hb`, `H`], MP: [`h`, `hb`, `H`, `hB`], MQ: [`H`, `hB`], MR: [`h`, `hB`, `hb`, `H`], MS: [`H`, `h`, `hb`, `hB`], MT: [`H`, `h`], MU: [`H`, `h`], MV: [`H`, `h`], MW: [`h`, `hb`, `H`, `hB`], MX: [`h`, `H`, `hB`, `hb`], MY: [`hb`, `hB`, `h`, `H`], MZ: [`H`, `hB`], NA: [`h`, `H`, `hB`, `hb`], NC: [`H`, `hB`], NE: [`H`], NF: [`H`, `h`, `hb`, `hB`], NG: [`H`, `h`, `hb`, `hB`], NI: [`h`, `H`, `hB`, `hb`], NL: [`H`, `hB`], NO: [`H`, `h`], NP: [`H`, `h`, `hB`], NR: [`H`, `h`, `hb`, `hB`], NU: [`H`, `h`, `hb`, `hB`], NZ: [`h`, `hb`, `H`, `hB`], OM: [`h`, `hB`, `hb`, `H`], PA: [`h`, `H`, `hB`, `hb`], PE: [`h`, `H`, `hB`, `hb`], PF: [`H`, `h`, `hB`], PG: [`h`, `H`], PH: [`h`, `hB`, `hb`, `H`], PK: [`h`, `hB`, `H`], PL: [`H`, `h`], PM: [`H`, `hB`], PN: [`H`, `h`, `hb`, `hB`], PR: [`h`, `H`, `hB`, `hb`], PS: [`h`, `hB`, `hb`, `H`], PT: [`H`, `hB`], PW: [`h`, `H`], PY: [`h`, `H`, `hB`, `hb`], QA: [`h`, `hB`, `hb`, `H`], RE: [`H`, `hB`], RO: [`H`, `hB`], RS: [`H`, `hB`, `h`], RU: [`H`], RW: [`H`, `h`], SA: [`h`, `hB`, `hb`, `H`], SB: [`h`, `hb`, `H`, `hB`], SC: [`H`, `h`, `hB`], SD: [`h`, `hB`, `hb`, `H`], SE: [`H`], SG: [`h`, `hb`, `H`, `hB`], SH: [`H`, `h`, `hb`, `hB`], SI: [`H`, `hB`], SJ: [`H`], SK: [`H`], SL: [`h`, `hb`, `H`, `hB`], SM: [`H`, `h`, `hB`], SN: [`H`, `h`, `hB`], SO: [`h`, `H`], SR: [`H`, `hB`], SS: [`h`, `hb`, `H`, `hB`], ST: [`H`, `hB`], SV: [`h`, `H`, `hB`, `hb`], SX: [`H`, `h`, `hb`, `hB`], SY: [`h`, `hB`, `hb`, `H`], SZ: [`h`, `hb`, `H`, `hB`], TA: [`H`, `h`, `hb`, `hB`], TC: [`h`, `hb`, `H`, `hB`], TD: [`h`, `H`, `hB`], TF: [`H`, `h`, `hB`], TG: [`H`, `hB`], TH: [`H`, `h`], TJ: [`H`, `h`], TL: [`H`, `hB`, `hb`, `h`], TM: [`H`, `h`], TN: [`h`, `hB`, `hb`, `H`], TO: [`h`, `H`], TR: [`H`, `hB`], TT: [`h`, `hb`, `H`, `hB`], TW: [`hB`, `hb`, `h`, `H`], TZ: [`hB`, `hb`, `H`, `h`], UA: [`H`, `hB`, `h`], UG: [`hB`, `hb`, `H`, `h`], UM: [`h`, `hb`, `H`, `hB`], US: [`h`, `hb`, `H`, `hB`], UY: [`h`, `H`, `hB`, `hb`], UZ: [`H`, `hB`, `h`], VA: [`H`, `h`, `hB`], VC: [`h`, `hb`, `H`, `hB`], VE: [`h`, `H`, `hB`, `hb`], VG: [`h`, `hb`, `H`, `hB`], VI: [`h`, `hb`, `H`, `hB`], VN: [`H`, `h`], VU: [`h`, `H`], WF: [`H`, `hB`], WS: [`h`, `H`], XK: [`H`, `hB`, `h`], YE: [`h`, `hB`, `hb`, `H`], YT: [`H`, `hB`], ZA: [`H`, `h`, `hb`, `hB`], ZM: [`h`, `hb`, `H`, `hB`], ZW: [`H`, `h`], "af-ZA": [`H`, `h`, `hB`, `hb`], "ar-001": [`h`, `hB`, `hb`, `H`], "ca-ES": [`H`, `h`, `hB`], "en-001": [`h`, `hb`, `H`, `hB`], "en-HK": [`h`, `hb`, `H`, `hB`], "en-IL": [`H`, `h`, `hb`, `hB`], "en-MY": [`h`, `hb`, `H`, `hB`], "es-BR": [`H`, `h`, `hB`, `hb`], "es-ES": [`H`, `h`, `hB`, `hb`], "es-GQ": [`H`, `h`, `hB`, `hb`], "fr-CA": [`H`, `h`, `hB`], "gl-ES": [`H`, `h`, `hB`], "gu-IN": [`hB`, `hb`, `h`, `H`], "hi-IN": [`hB`, `h`, `H`], "it-CH": [`H`, `h`, `hB`], "it-IT": [`H`, `h`, `hB`], "kn-IN": [`hB`, `h`, `H`], "ku-SY": [`H`, `hB`], "ml-IN": [`hB`, `h`, `H`], "mr-IN": [`hB`, `hb`, `h`, `H`], "pa-IN": [`hB`, `hb`, `h`, `H`], "ta-IN": [`hB`, `h`, `hb`, `H`], "te-IN": [`hB`, `h`, `H`], "zu-ZA": [`H`, `hB`, `hb`, `h`] };
|
|
3175
|
+
function fs(e6, t2) {
|
|
3175
3176
|
let n2 = ``;
|
|
3176
3177
|
for (let r2 = 0; r2 < e6.length; r2++) {
|
|
3177
3178
|
let i2 = e6.charAt(r2);
|
|
3178
3179
|
if (i2 === `j`) {
|
|
3179
3180
|
let a2 = 0;
|
|
3180
3181
|
for (; r2 + 1 < e6.length && e6.charAt(r2 + 1) === i2; ) a2++, r2++;
|
|
3181
|
-
let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 =
|
|
3182
|
+
let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = ps(t2);
|
|
3182
3183
|
for ((c2 == `H` || c2 == `k`) && (s2 = 0); s2-- > 0; ) n2 += `a`;
|
|
3183
3184
|
for (; o2-- > 0; ) n2 = c2 + n2;
|
|
3184
3185
|
} else n2 += i2 === `J` ? `H` : i2;
|
|
3185
3186
|
}
|
|
3186
3187
|
return n2;
|
|
3187
3188
|
}
|
|
3188
|
-
function
|
|
3189
|
+
function ps(e6) {
|
|
3189
3190
|
let t2 = e6.hourCycle;
|
|
3190
3191
|
if (t2 === void 0) {
|
|
3191
3192
|
let n3 = e6;
|
|
@@ -3204,36 +3205,36 @@ function fs(e6) {
|
|
|
3204
3205
|
throw Error(`Invalid hourCycle`);
|
|
3205
3206
|
}
|
|
3206
3207
|
let n2 = e6.language, r2;
|
|
3207
|
-
return n2 !== `root` && (r2 = e6.maximize().region), (
|
|
3208
|
+
return n2 !== `root` && (r2 = e6.maximize().region), (ds[`${n2}-${r2}`] || ds[r2 || ``] || ds[n2 || ``] || ds[`${n2}-001`] || ds[`001`])[0].charAt(0);
|
|
3208
3209
|
}
|
|
3209
|
-
var
|
|
3210
|
-
var
|
|
3210
|
+
var ms = RegExp(`^${us.source}*`);
|
|
3211
|
+
var hs = RegExp(`${us.source}*$`);
|
|
3211
3212
|
function J(e6, t2) {
|
|
3212
3213
|
return { start: e6, end: t2 };
|
|
3213
3214
|
}
|
|
3214
|
-
var
|
|
3215
|
-
var
|
|
3216
|
-
var
|
|
3217
|
-
var
|
|
3215
|
+
var gs = !!Object.fromEntries;
|
|
3216
|
+
var _s = !!String.prototype.trimStart;
|
|
3217
|
+
var vs = !!String.prototype.trimEnd;
|
|
3218
|
+
var ys = gs ? Object.fromEntries : function(e6) {
|
|
3218
3219
|
let t2 = {};
|
|
3219
3220
|
for (let [n2, r2] of e6) t2[n2] = r2;
|
|
3220
3221
|
return t2;
|
|
3221
3222
|
};
|
|
3222
|
-
var
|
|
3223
|
+
var bs = _s ? function(e6) {
|
|
3223
3224
|
return e6.trimStart();
|
|
3224
3225
|
} : function(e6) {
|
|
3225
|
-
return e6.replace(
|
|
3226
|
+
return e6.replace(ms, ``);
|
|
3226
3227
|
};
|
|
3227
|
-
var
|
|
3228
|
+
var xs = vs ? function(e6) {
|
|
3228
3229
|
return e6.trimEnd();
|
|
3229
3230
|
} : function(e6) {
|
|
3230
|
-
return e6.replace(
|
|
3231
|
+
return e6.replace(hs, ``);
|
|
3231
3232
|
};
|
|
3232
|
-
var
|
|
3233
|
-
function
|
|
3234
|
-
return
|
|
3233
|
+
var Ss = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
|
|
3234
|
+
function Cs(e6, t2) {
|
|
3235
|
+
return Ss.lastIndex = t2, Ss.exec(e6)[1] ?? ``;
|
|
3235
3236
|
}
|
|
3236
|
-
function
|
|
3237
|
+
function ws(e6) {
|
|
3237
3238
|
if (e6.length === 0) return null;
|
|
3238
3239
|
let t2 = 1, n2 = 1;
|
|
3239
3240
|
for (let r2 = 0; r2 < e6.length; ) {
|
|
@@ -3254,7 +3255,7 @@ function Cs(e6) {
|
|
|
3254
3255
|
}
|
|
3255
3256
|
return { offset: e6.length, line: t2, column: n2 };
|
|
3256
3257
|
}
|
|
3257
|
-
var
|
|
3258
|
+
var Ts = class {
|
|
3258
3259
|
constructor(e6, t2 = {}) {
|
|
3259
3260
|
this.message = e6, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!t2.ignoreTag, this.locale = t2.locale, this.requiresOtherClause = !!t2.requiresOtherClause, this.shouldParseSkeletons = !!t2.shouldParseSkeletons;
|
|
3260
3261
|
}
|
|
@@ -3263,7 +3264,7 @@ var ws = class {
|
|
|
3263
3264
|
if (this.message.length > 0) {
|
|
3264
3265
|
let e6 = this.message.charCodeAt(0);
|
|
3265
3266
|
if (e6 !== 35 && e6 !== 39 && e6 !== 60 && e6 !== 123 && e6 !== 125) {
|
|
3266
|
-
let e7 =
|
|
3267
|
+
let e7 = ws(this.message);
|
|
3267
3268
|
if (e7) {
|
|
3268
3269
|
let t2 = this.clonePosition();
|
|
3269
3270
|
return this.position = e7, { val: [{ type: 0, value: this.message, location: J(t2, this.clonePosition()) }], err: null };
|
|
@@ -3287,7 +3288,7 @@ var ws = class {
|
|
|
3287
3288
|
} else if (i2 === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3288
3289
|
if (n2) break;
|
|
3289
3290
|
return this.error(26, J(this.clonePosition(), this.clonePosition()));
|
|
3290
|
-
} else if (i2 === 60 && !this.ignoreTag &&
|
|
3291
|
+
} else if (i2 === 60 && !this.ignoreTag && Es(this.peek() || 0)) {
|
|
3291
3292
|
let n3 = this.parseTag(e6, t2);
|
|
3292
3293
|
if (n3.err) return n3;
|
|
3293
3294
|
r2.push(n3.val);
|
|
@@ -3309,7 +3310,7 @@ var ws = class {
|
|
|
3309
3310
|
if (i2.err) return i2;
|
|
3310
3311
|
let a2 = i2.val, o2 = this.clonePosition();
|
|
3311
3312
|
if (this.bumpIf(`</`)) {
|
|
3312
|
-
if (this.isEOF() || !
|
|
3313
|
+
if (this.isEOF() || !Es(this.char())) return this.error(23, J(o2, this.clonePosition()));
|
|
3313
3314
|
let e7 = this.clonePosition();
|
|
3314
3315
|
return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: J(n2, this.clonePosition()) }, err: null } : this.error(23, J(o2, this.clonePosition()))) : this.error(26, J(e7, this.clonePosition()));
|
|
3315
3316
|
}
|
|
@@ -3319,7 +3320,7 @@ var ws = class {
|
|
|
3319
3320
|
}
|
|
3320
3321
|
parseTagName() {
|
|
3321
3322
|
let e6 = this.offset();
|
|
3322
|
-
for (this.bump(); !this.isEOF() &&
|
|
3323
|
+
for (this.bump(); !this.isEOF() && Os(this.char()); ) this.bump();
|
|
3323
3324
|
return this.message.slice(e6, this.offset());
|
|
3324
3325
|
}
|
|
3325
3326
|
parseLiteral(e6, t2) {
|
|
@@ -3343,7 +3344,7 @@ var ws = class {
|
|
|
3343
3344
|
return { val: { type: 0, value: r2, location: i2 }, err: null };
|
|
3344
3345
|
}
|
|
3345
3346
|
tryParseLeftAngleBracket() {
|
|
3346
|
-
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !
|
|
3347
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Ds(this.peek() || 0)) ? (this.bump(), `<`) : null;
|
|
3347
3348
|
}
|
|
3348
3349
|
tryParseQuote(e6) {
|
|
3349
3350
|
if (this.isEOF() || this.char() !== 39) return null;
|
|
@@ -3398,7 +3399,7 @@ var ws = class {
|
|
|
3398
3399
|
}
|
|
3399
3400
|
}
|
|
3400
3401
|
parseIdentifierIfPossible() {
|
|
3401
|
-
let e6 = this.clonePosition(), t2 = this.offset(), n2 =
|
|
3402
|
+
let e6 = this.clonePosition(), t2 = this.offset(), n2 = Cs(this.message, t2), r2 = t2 + n2.length;
|
|
3402
3403
|
return this.bumpTo(r2), { value: n2, location: J(e6, this.clonePosition()) };
|
|
3403
3404
|
}
|
|
3404
3405
|
parseArgumentOptions(e6, t2, n2, r2) {
|
|
@@ -3415,7 +3416,7 @@ var ws = class {
|
|
|
3415
3416
|
this.bumpSpace();
|
|
3416
3417
|
let t4 = this.clonePosition(), n3 = this.parseSimpleArgStyleIfPossible();
|
|
3417
3418
|
if (n3.err) return n3;
|
|
3418
|
-
let r3 =
|
|
3419
|
+
let r3 = xs(n3.val);
|
|
3419
3420
|
if (r3.length === 0) return this.error(6, J(this.clonePosition(), this.clonePosition()));
|
|
3420
3421
|
e7 = { style: r3, styleLocation: J(t4, this.clonePosition()) };
|
|
3421
3422
|
}
|
|
@@ -3423,7 +3424,7 @@ var ws = class {
|
|
|
3423
3424
|
if (t3.err) return t3;
|
|
3424
3425
|
let i3 = J(r2, this.clonePosition());
|
|
3425
3426
|
if (e7 && e7.style.startsWith(`::`)) {
|
|
3426
|
-
let t4 =
|
|
3427
|
+
let t4 = bs(e7.style.slice(2));
|
|
3427
3428
|
if (a2 === `number`) {
|
|
3428
3429
|
let r3 = this.parseNumberSkeletonFromString(t4, e7.styleLocation);
|
|
3429
3430
|
return r3.err ? r3 : { val: { type: 2, value: n2, location: i3, style: r3.val }, err: null };
|
|
@@ -3431,8 +3432,8 @@ var ws = class {
|
|
|
3431
3432
|
{
|
|
3432
3433
|
if (t4.length === 0) return this.error(10, i3);
|
|
3433
3434
|
let r3 = t4;
|
|
3434
|
-
this.locale && (r3 =
|
|
3435
|
-
let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ?
|
|
3435
|
+
this.locale && (r3 = fs(t4, this.locale));
|
|
3436
|
+
let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? zo(r3) : {} };
|
|
3436
3437
|
return { val: { type: a2 === `date` ? 3 : 4, value: n2, location: i3, style: o3 }, err: null };
|
|
3437
3438
|
}
|
|
3438
3439
|
}
|
|
@@ -3457,7 +3458,7 @@ var ws = class {
|
|
|
3457
3458
|
let l2 = this.tryParseArgumentClose(r2);
|
|
3458
3459
|
if (l2.err) return l2;
|
|
3459
3460
|
let u2 = J(r2, this.clonePosition());
|
|
3460
|
-
return a2 === `select` ? { val: { type: 5, value: n2, options:
|
|
3461
|
+
return a2 === `select` ? { val: { type: 5, value: n2, options: ys(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: ys(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
|
|
3461
3462
|
}
|
|
3462
3463
|
default:
|
|
3463
3464
|
return this.error(5, J(i2, o2));
|
|
@@ -3491,11 +3492,11 @@ var ws = class {
|
|
|
3491
3492
|
parseNumberSkeletonFromString(e6, t2) {
|
|
3492
3493
|
let n2 = [];
|
|
3493
3494
|
try {
|
|
3494
|
-
n2 =
|
|
3495
|
+
n2 = Vo(e6);
|
|
3495
3496
|
} catch {
|
|
3496
3497
|
return this.error(7, t2);
|
|
3497
3498
|
}
|
|
3498
|
-
return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ?
|
|
3499
|
+
return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? Zo(n2) : {} }, err: null };
|
|
3499
3500
|
}
|
|
3500
3501
|
tryParsePluralOrSelectOptions(e6, t2, n2, r2) {
|
|
3501
3502
|
let i2 = false, a2 = [], o2 = /* @__PURE__ */ new Set(), { value: s2, location: c2 } = r2;
|
|
@@ -3577,7 +3578,7 @@ var ws = class {
|
|
|
3577
3578
|
}
|
|
3578
3579
|
}
|
|
3579
3580
|
bumpSpace() {
|
|
3580
|
-
for (; !this.isEOF() &&
|
|
3581
|
+
for (; !this.isEOF() && ks(this.char()); ) this.bump();
|
|
3581
3582
|
}
|
|
3582
3583
|
peek() {
|
|
3583
3584
|
if (this.isEOF()) return null;
|
|
@@ -3585,34 +3586,34 @@ var ws = class {
|
|
|
3585
3586
|
return this.message.charCodeAt(t2 + (e6 >= 65536 ? 2 : 1)) ?? null;
|
|
3586
3587
|
}
|
|
3587
3588
|
};
|
|
3588
|
-
function Ts(e6) {
|
|
3589
|
-
return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
|
|
3590
|
-
}
|
|
3591
3589
|
function Es(e6) {
|
|
3592
|
-
return
|
|
3590
|
+
return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
|
|
3593
3591
|
}
|
|
3594
3592
|
function Ds(e6) {
|
|
3595
|
-
return e6
|
|
3593
|
+
return Es(e6) || e6 === 47;
|
|
3596
3594
|
}
|
|
3597
3595
|
function Os(e6) {
|
|
3598
|
-
return e6 >=
|
|
3596
|
+
return e6 === 45 || e6 === 46 || e6 >= 48 && e6 <= 57 || e6 === 95 || e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90 || e6 == 183 || e6 >= 192 && e6 <= 214 || e6 >= 216 && e6 <= 246 || e6 >= 248 && e6 <= 893 || e6 >= 895 && e6 <= 8191 || e6 >= 8204 && e6 <= 8205 || e6 >= 8255 && e6 <= 8256 || e6 >= 8304 && e6 <= 8591 || e6 >= 11264 && e6 <= 12271 || e6 >= 12289 && e6 <= 55295 || e6 >= 63744 && e6 <= 64975 || e6 >= 65008 && e6 <= 65533 || e6 >= 65536 && e6 <= 983039;
|
|
3599
3597
|
}
|
|
3600
3598
|
function ks(e6) {
|
|
3599
|
+
return e6 >= 9 && e6 <= 13 || e6 === 32 || e6 === 133 || e6 >= 8206 && e6 <= 8207 || e6 === 8232 || e6 === 8233;
|
|
3600
|
+
}
|
|
3601
|
+
function As(e6) {
|
|
3601
3602
|
e6.forEach((e7) => {
|
|
3602
|
-
if (delete e7.location,
|
|
3603
|
-
else
|
|
3603
|
+
if (delete e7.location, is(e7) || as(e7)) for (let t2 in e7.options) delete e7.options[t2].location, As(e7.options[t2].value);
|
|
3604
|
+
else ts(e7) && cs(e7.style) || (ns(e7) || rs(e7)) && ls(e7.style) ? delete e7.style.location : ss(e7) && As(e7.children);
|
|
3604
3605
|
});
|
|
3605
3606
|
}
|
|
3606
|
-
function
|
|
3607
|
+
function js(e6, t2 = {}) {
|
|
3607
3608
|
t2 = { shouldParseSkeletons: true, requiresOtherClause: true, ...t2 };
|
|
3608
|
-
let n2 = new
|
|
3609
|
+
let n2 = new Ts(e6, t2).parse();
|
|
3609
3610
|
if (n2.err) {
|
|
3610
|
-
let e7 = SyntaxError(
|
|
3611
|
+
let e7 = SyntaxError(Qo[n2.err.kind]);
|
|
3611
3612
|
throw e7.location = n2.err.location, e7.originalMessage = n2.err.message, e7;
|
|
3612
3613
|
}
|
|
3613
|
-
return t2?.captureLocation ||
|
|
3614
|
+
return t2?.captureLocation || As(n2.val), n2.val;
|
|
3614
3615
|
}
|
|
3615
|
-
var
|
|
3616
|
+
var Ms = class extends Error {
|
|
3616
3617
|
constructor(e6, t2, n2) {
|
|
3617
3618
|
super(e6), this.code = t2, this.originalMessage = n2;
|
|
3618
3619
|
}
|
|
@@ -3620,54 +3621,54 @@ var js = class extends Error {
|
|
|
3620
3621
|
return `[formatjs Error: ${this.code}] ${this.message}`;
|
|
3621
3622
|
}
|
|
3622
3623
|
};
|
|
3623
|
-
var
|
|
3624
|
+
var Ns = class extends Ms {
|
|
3624
3625
|
constructor(e6, t2, n2, r2) {
|
|
3625
3626
|
super(`Invalid values for "${e6}": "${t2}". Options are "${Object.keys(n2).join(`", "`)}"`, `INVALID_VALUE`, r2);
|
|
3626
3627
|
}
|
|
3627
3628
|
};
|
|
3628
|
-
var
|
|
3629
|
+
var Ps = class extends Ms {
|
|
3629
3630
|
constructor(e6, t2, n2) {
|
|
3630
3631
|
super(`Value for "${e6}" must be of type ${t2}`, `INVALID_VALUE`, n2);
|
|
3631
3632
|
}
|
|
3632
3633
|
};
|
|
3633
|
-
var
|
|
3634
|
+
var Fs = class extends Ms {
|
|
3634
3635
|
constructor(e6, t2) {
|
|
3635
3636
|
super(`The intl string context variable "${e6}" was not provided to the string "${t2}"`, `MISSING_VALUE`, t2);
|
|
3636
3637
|
}
|
|
3637
3638
|
};
|
|
3638
|
-
function
|
|
3639
|
+
function Is(e6) {
|
|
3639
3640
|
return e6.length < 2 ? e6 : e6.reduce((e7, t2) => {
|
|
3640
3641
|
let n2 = e7[e7.length - 1];
|
|
3641
3642
|
return !n2 || n2.type !== 0 || t2.type !== 0 ? e7.push(t2) : n2.value += t2.value, e7;
|
|
3642
3643
|
}, []);
|
|
3643
3644
|
}
|
|
3644
|
-
function
|
|
3645
|
+
function Ls(e6) {
|
|
3645
3646
|
return typeof e6 == `function`;
|
|
3646
3647
|
}
|
|
3647
|
-
function
|
|
3648
|
-
if (e6.length === 1 &&
|
|
3648
|
+
function Rs(e6, t2, n2, r2, i2, a2, o2) {
|
|
3649
|
+
if (e6.length === 1 && $o(e6[0])) return [{ type: 0, value: e6[0].value }];
|
|
3649
3650
|
let s2 = [];
|
|
3650
3651
|
for (let c2 of e6) {
|
|
3651
|
-
if (
|
|
3652
|
+
if ($o(c2)) {
|
|
3652
3653
|
s2.push({ type: 0, value: c2.value });
|
|
3653
3654
|
continue;
|
|
3654
3655
|
}
|
|
3655
|
-
if (
|
|
3656
|
+
if (os(c2)) {
|
|
3656
3657
|
typeof a2 == `number` && s2.push({ type: 0, value: n2.getNumberFormat(t2).format(a2) });
|
|
3657
3658
|
continue;
|
|
3658
3659
|
}
|
|
3659
3660
|
let { value: e7 } = c2;
|
|
3660
|
-
if (!(i2 && e7 in i2)) throw new
|
|
3661
|
+
if (!(i2 && e7 in i2)) throw new Fs(e7, o2);
|
|
3661
3662
|
let l2 = i2[e7];
|
|
3662
|
-
if (
|
|
3663
|
-
else if (
|
|
3664
|
-
let e8 = typeof c2.style == `string` ? r2.date[c2.style] :
|
|
3663
|
+
if (es(c2)) (!l2 || typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint`) && (l2 = typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint` ? String(l2) : ``), s2.push({ type: typeof l2 == `string` ? 0 : 1, value: l2 });
|
|
3664
|
+
else if (ns(c2)) {
|
|
3665
|
+
let e8 = typeof c2.style == `string` ? r2.date[c2.style] : ls(c2.style) ? c2.style.parsedOptions : void 0;
|
|
3665
3666
|
s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
|
|
3666
|
-
} else if (
|
|
3667
|
-
let e8 = typeof c2.style == `string` ? r2.time[c2.style] :
|
|
3667
|
+
} else if (rs(c2)) {
|
|
3668
|
+
let e8 = typeof c2.style == `string` ? r2.time[c2.style] : ls(c2.style) ? c2.style.parsedOptions : r2.time.medium;
|
|
3668
3669
|
s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
|
|
3669
|
-
} else if (
|
|
3670
|
-
let e8 = typeof c2.style == `string` ? r2.number[c2.style] :
|
|
3670
|
+
} else if (ts(c2)) {
|
|
3671
|
+
let e8 = typeof c2.style == `string` ? r2.number[c2.style] : cs(c2.style) ? c2.style.parsedOptions : void 0;
|
|
3671
3672
|
if (e8 && e8.scale) {
|
|
3672
3673
|
let t3 = e8.scale || 1;
|
|
3673
3674
|
if (typeof l2 == `bigint`) {
|
|
@@ -3677,40 +3678,40 @@ function Ls(e6, t2, n2, r2, i2, a2, o2) {
|
|
|
3677
3678
|
}
|
|
3678
3679
|
s2.push({ type: 0, value: n2.getNumberFormat(t2, e8).format(l2) });
|
|
3679
3680
|
} else {
|
|
3680
|
-
if (
|
|
3681
|
+
if (ss(c2)) {
|
|
3681
3682
|
let { children: e8, value: l3 } = c2, u2 = i2[l3];
|
|
3682
|
-
if (!
|
|
3683
|
-
let d2 = u2(
|
|
3683
|
+
if (!Ls(u2)) throw new Ps(l3, `function`, o2);
|
|
3684
|
+
let d2 = u2(Rs(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
|
|
3684
3685
|
Array.isArray(d2) || (d2 = [d2]), s2.push(...d2.map((e9) => ({ type: typeof e9 == `string` ? 0 : 1, value: e9 })));
|
|
3685
3686
|
}
|
|
3686
|
-
if (
|
|
3687
|
+
if (is(c2)) {
|
|
3687
3688
|
let e8 = l2, a3 = (Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0) || c2.options.other;
|
|
3688
|
-
if (!a3) throw new
|
|
3689
|
-
s2.push(...
|
|
3690
|
-
} else if (
|
|
3689
|
+
if (!a3) throw new Ns(c2.value, l2, Object.keys(c2.options), o2);
|
|
3690
|
+
s2.push(...Rs(a3.value, t2, n2, r2, i2));
|
|
3691
|
+
} else if (as(c2)) {
|
|
3691
3692
|
let e8 = `=${l2}`, a3 = Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0;
|
|
3692
3693
|
if (!a3) {
|
|
3693
|
-
if (!Intl.PluralRules) throw new
|
|
3694
|
+
if (!Intl.PluralRules) throw new Ms(`Intl.PluralRules is not available in this environment.
|
|
3694
3695
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3695
3696
|
`, `MISSING_INTL_API`, o2);
|
|
3696
3697
|
let e9 = typeof l2 == `bigint` ? Number(l2) : l2, r3 = n2.getPluralRules(t2, { type: c2.pluralType }).select(e9 - (c2.offset || 0));
|
|
3697
3698
|
a3 = (Object.prototype.hasOwnProperty.call(c2.options, r3) ? c2.options[r3] : void 0) || c2.options.other;
|
|
3698
3699
|
}
|
|
3699
|
-
if (!a3) throw new
|
|
3700
|
+
if (!a3) throw new Ns(c2.value, l2, Object.keys(c2.options), o2);
|
|
3700
3701
|
let u2 = typeof l2 == `bigint` ? Number(l2) : l2;
|
|
3701
|
-
s2.push(...
|
|
3702
|
+
s2.push(...Rs(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
|
|
3702
3703
|
}
|
|
3703
3704
|
}
|
|
3704
3705
|
}
|
|
3705
|
-
return
|
|
3706
|
+
return Is(s2);
|
|
3706
3707
|
}
|
|
3707
|
-
function
|
|
3708
|
+
function zs(e6, t2) {
|
|
3708
3709
|
return t2 ? { ...e6, ...t2, ...Object.keys(e6).reduce((n2, r2) => (n2[r2] = { ...e6[r2], ...t2[r2] }, n2), {}) } : e6;
|
|
3709
3710
|
}
|
|
3710
|
-
function
|
|
3711
|
-
return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] =
|
|
3711
|
+
function Bs(e6, t2) {
|
|
3712
|
+
return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = zs(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
|
|
3712
3713
|
}
|
|
3713
|
-
function
|
|
3714
|
+
function Vs(e6) {
|
|
3714
3715
|
return { create() {
|
|
3715
3716
|
return { get(t2) {
|
|
3716
3717
|
return e6[t2];
|
|
@@ -3719,23 +3720,23 @@ function Bs(e6) {
|
|
|
3719
3720
|
} };
|
|
3720
3721
|
} };
|
|
3721
3722
|
}
|
|
3722
|
-
function
|
|
3723
|
-
return { getNumberFormat:
|
|
3723
|
+
function Hs(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
|
|
3724
|
+
return { getNumberFormat: Eo((...e7) => new Intl.NumberFormat(...e7), { cache: Vs(e6.number), strategy: Lo.variadic }), getDateTimeFormat: Eo((...e7) => new Intl.DateTimeFormat(...e7), { cache: Vs(e6.dateTime), strategy: Lo.variadic }), getPluralRules: Eo((...e7) => new Intl.PluralRules(...e7), { cache: Vs(e6.pluralRules), strategy: Lo.variadic }) };
|
|
3724
3725
|
}
|
|
3725
|
-
var
|
|
3726
|
+
var Us = class e5 {
|
|
3726
3727
|
constructor(t2, n2 = e5.defaultLocale, r2, i2) {
|
|
3727
3728
|
if (this.formatterCache = { number: {}, dateTime: {}, pluralRules: {} }, this.format = (e6) => {
|
|
3728
3729
|
let t3 = this.formatToParts(e6);
|
|
3729
3730
|
if (t3.length === 1) return t3[0].value;
|
|
3730
3731
|
let n3 = t3.reduce((e7, t4) => (!e7.length || t4.type !== 0 || typeof e7[e7.length - 1] != `string` ? e7.push(t4.value) : e7[e7.length - 1] += t4.value, e7), []);
|
|
3731
3732
|
return n3.length <= 1 ? n3[0] || `` : n3;
|
|
3732
|
-
}, this.formatToParts = (e6) =>
|
|
3733
|
+
}, this.formatToParts = (e6) => Rs(this.ast, this.locales, this.formatters, this.formats, e6, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n2, this.resolvedLocale = e5.resolveLocale(n2), typeof t2 == `string`) {
|
|
3733
3734
|
if (this.message = t2, !e5.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3734
3735
|
let { ...n3 } = i2 || {};
|
|
3735
3736
|
this.ast = e5.__parse(t2, { ...n3, locale: this.resolvedLocale });
|
|
3736
3737
|
} else this.ast = t2;
|
|
3737
3738
|
if (!Array.isArray(this.ast)) throw TypeError(`A message must be provided as a String or AST.`);
|
|
3738
|
-
this.formats =
|
|
3739
|
+
this.formats = Bs(e5.formats, r2), this.formatters = i2 && i2.formatters || Hs(this.formatterCache);
|
|
3739
3740
|
}
|
|
3740
3741
|
static {
|
|
3741
3742
|
this.memoizedDefaultLocale = null;
|
|
@@ -3751,14 +3752,14 @@ var Hs = class e5 {
|
|
|
3751
3752
|
};
|
|
3752
3753
|
}
|
|
3753
3754
|
static {
|
|
3754
|
-
this.__parse =
|
|
3755
|
+
this.__parse = js;
|
|
3755
3756
|
}
|
|
3756
3757
|
static {
|
|
3757
3758
|
this.formats = { number: { integer: { maximumFractionDigits: 0 }, currency: { style: `currency` }, percent: { style: `percent` } }, date: { short: { month: `numeric`, day: `numeric`, year: `2-digit` }, medium: { month: `short`, day: `numeric`, year: `numeric` }, long: { month: `long`, day: `numeric`, year: `numeric` }, full: { weekday: `long`, month: `long`, day: `numeric`, year: `numeric` } }, time: { short: { hour: `numeric`, minute: `numeric` }, medium: { hour: `numeric`, minute: `numeric`, second: `numeric` }, long: { hour: `numeric`, minute: `numeric`, second: `numeric`, timeZoneName: `short` }, full: { hour: `numeric`, minute: `numeric`, second: `numeric`, timeZoneName: `short` } } };
|
|
3758
3759
|
}
|
|
3759
3760
|
};
|
|
3760
|
-
var
|
|
3761
|
-
function
|
|
3761
|
+
var Ws = [`__proto__`, `constructor`, `prototype`];
|
|
3762
|
+
function Gs(e6, t2, n2) {
|
|
3762
3763
|
function r2(e7) {
|
|
3763
3764
|
return e7 && e7.indexOf(`###`) > -1 ? e7.replace(/###/g, `.`) : e7;
|
|
3764
3765
|
}
|
|
@@ -3768,49 +3769,49 @@ function Ws(e6, t2, n2) {
|
|
|
3768
3769
|
for (var a2 = typeof t2 == `string` ? t2.split(`.`) : [].concat(t2); a2.length > 1; ) {
|
|
3769
3770
|
if (i2()) return {};
|
|
3770
3771
|
var o2 = r2(a2.shift());
|
|
3771
|
-
if (
|
|
3772
|
+
if (Ws.indexOf(o2) > -1) return {};
|
|
3772
3773
|
!e6[o2] && n2 && (e6[o2] = new n2()), e6 = e6[o2];
|
|
3773
3774
|
}
|
|
3774
3775
|
if (i2()) return {};
|
|
3775
3776
|
var s2 = r2(a2.shift());
|
|
3776
|
-
return
|
|
3777
|
+
return Ws.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
|
|
3777
3778
|
}
|
|
3778
|
-
function
|
|
3779
|
-
var r2 =
|
|
3779
|
+
function Ks(e6, t2, n2) {
|
|
3780
|
+
var r2 = Gs(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
|
|
3780
3781
|
i2 !== void 0 && (i2[a2] = n2);
|
|
3781
3782
|
}
|
|
3782
|
-
function
|
|
3783
|
-
var n2 =
|
|
3783
|
+
function qs(e6, t2) {
|
|
3784
|
+
var n2 = Gs(e6, t2), r2 = n2.obj, i2 = n2.k;
|
|
3784
3785
|
if (r2) return r2[i2];
|
|
3785
3786
|
}
|
|
3786
|
-
function
|
|
3787
|
+
function Js(e6) {
|
|
3787
3788
|
return [...arguments].slice(1).forEach(function(t2) {
|
|
3788
3789
|
if (t2) for (var n2 = 0, r2 = Object.keys(t2); n2 < r2.length; n2++) {
|
|
3789
3790
|
var i2 = r2[n2];
|
|
3790
|
-
|
|
3791
|
+
Ws.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
|
|
3791
3792
|
}
|
|
3792
3793
|
}), e6;
|
|
3793
3794
|
}
|
|
3794
|
-
function
|
|
3795
|
-
return
|
|
3795
|
+
function Ys(e6, t2) {
|
|
3796
|
+
return ec(e6) || $s(e6, t2) || Zs(e6, t2) || Xs();
|
|
3796
3797
|
}
|
|
3797
|
-
function
|
|
3798
|
+
function Xs() {
|
|
3798
3799
|
throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3799
3800
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3800
3801
|
}
|
|
3801
|
-
function
|
|
3802
|
+
function Zs(e6, t2) {
|
|
3802
3803
|
if (e6) {
|
|
3803
|
-
if (typeof e6 == `string`) return
|
|
3804
|
+
if (typeof e6 == `string`) return Qs(e6, t2);
|
|
3804
3805
|
var n2 = {}.toString.call(e6).slice(8, -1);
|
|
3805
|
-
return n2 === `Object` && e6.constructor && (n2 = e6.constructor.name), n2 === `Map` || n2 === `Set` ? Array.from(e6) : n2 === `Arguments` || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ?
|
|
3806
|
+
return n2 === `Object` && e6.constructor && (n2 = e6.constructor.name), n2 === `Map` || n2 === `Set` ? Array.from(e6) : n2 === `Arguments` || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? Qs(e6, t2) : void 0;
|
|
3806
3807
|
}
|
|
3807
3808
|
}
|
|
3808
|
-
function
|
|
3809
|
+
function Qs(e6, t2) {
|
|
3809
3810
|
(t2 == null || t2 > e6.length) && (t2 = e6.length);
|
|
3810
3811
|
for (var n2 = 0, r2 = Array(t2); n2 < t2; n2++) r2[n2] = e6[n2];
|
|
3811
3812
|
return r2;
|
|
3812
3813
|
}
|
|
3813
|
-
function
|
|
3814
|
+
function $s(e6, t2) {
|
|
3814
3815
|
var n2 = e6 == null ? null : typeof Symbol < `u` && e6[Symbol.iterator] || e6[`@@iterator`];
|
|
3815
3816
|
if (n2 != null) {
|
|
3816
3817
|
var r2, i2, a2, o2, s2 = [], c2 = true, l2 = false;
|
|
@@ -3831,10 +3832,10 @@ function Qs(e6, t2) {
|
|
|
3831
3832
|
return s2;
|
|
3832
3833
|
}
|
|
3833
3834
|
}
|
|
3834
|
-
function
|
|
3835
|
+
function ec(e6) {
|
|
3835
3836
|
if (Array.isArray(e6)) return e6;
|
|
3836
3837
|
}
|
|
3837
|
-
function
|
|
3838
|
+
function tc(e6, t2) {
|
|
3838
3839
|
var n2 = Object.keys(e6);
|
|
3839
3840
|
if (Object.getOwnPropertySymbols) {
|
|
3840
3841
|
var r2 = Object.getOwnPropertySymbols(e6);
|
|
@@ -3844,37 +3845,37 @@ function ec(e6, t2) {
|
|
|
3844
3845
|
}
|
|
3845
3846
|
return n2;
|
|
3846
3847
|
}
|
|
3847
|
-
function
|
|
3848
|
+
function nc(e6) {
|
|
3848
3849
|
for (var t2 = 1; t2 < arguments.length; t2++) {
|
|
3849
3850
|
var n2 = arguments[t2] == null ? {} : arguments[t2];
|
|
3850
|
-
t2 % 2 ?
|
|
3851
|
-
|
|
3852
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) :
|
|
3851
|
+
t2 % 2 ? tc(Object(n2), true).forEach(function(t3) {
|
|
3852
|
+
rc(e6, t3, n2[t3]);
|
|
3853
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : tc(Object(n2)).forEach(function(t3) {
|
|
3853
3854
|
Object.defineProperty(e6, t3, Object.getOwnPropertyDescriptor(n2, t3));
|
|
3854
3855
|
});
|
|
3855
3856
|
}
|
|
3856
3857
|
return e6;
|
|
3857
3858
|
}
|
|
3858
|
-
function
|
|
3859
|
-
return (t2 =
|
|
3859
|
+
function rc(e6, t2, n2) {
|
|
3860
|
+
return (t2 = sc(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
|
|
3860
3861
|
}
|
|
3861
|
-
function
|
|
3862
|
+
function ic(e6, t2) {
|
|
3862
3863
|
if (!(e6 instanceof t2)) throw TypeError(`Cannot call a class as a function`);
|
|
3863
3864
|
}
|
|
3864
|
-
function
|
|
3865
|
+
function ac(e6, t2) {
|
|
3865
3866
|
for (var n2 = 0; n2 < t2.length; n2++) {
|
|
3866
3867
|
var r2 = t2[n2];
|
|
3867
|
-
r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6,
|
|
3868
|
+
r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, sc(r2.key), r2);
|
|
3868
3869
|
}
|
|
3869
3870
|
}
|
|
3870
|
-
function
|
|
3871
|
-
return t2 &&
|
|
3871
|
+
function oc(e6, t2, n2) {
|
|
3872
|
+
return t2 && ac(e6.prototype, t2), n2 && ac(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
|
|
3872
3873
|
}
|
|
3873
|
-
function
|
|
3874
|
-
var t2 =
|
|
3874
|
+
function sc(e6) {
|
|
3875
|
+
var t2 = cc(e6, `string`);
|
|
3875
3876
|
return Y(t2) == `symbol` ? t2 : t2 + ``;
|
|
3876
3877
|
}
|
|
3877
|
-
function
|
|
3878
|
+
function cc(e6, t2) {
|
|
3878
3879
|
if (Y(e6) != `object` || !e6) return e6;
|
|
3879
3880
|
var n2 = e6[Symbol.toPrimitive];
|
|
3880
3881
|
if (n2 !== void 0) {
|
|
@@ -3892,53 +3893,53 @@ function Y(e6) {
|
|
|
3892
3893
|
return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
|
|
3893
3894
|
}, Y(e6);
|
|
3894
3895
|
}
|
|
3895
|
-
var
|
|
3896
|
-
var
|
|
3897
|
-
function
|
|
3896
|
+
var lc = `https://www.i18next.com/how-to/using-icu-or-mf2`;
|
|
3897
|
+
var uc = [`zero`, `one`, `two`, `few`, `many`, `other`];
|
|
3898
|
+
function dc() {
|
|
3898
3899
|
return { memoize: true, memoizeFallback: false, bindI18n: ``, bindI18nStore: ``, parseErrorHandler: function(e6, t2, n2, r2) {
|
|
3899
3900
|
return n2;
|
|
3900
3901
|
}, parseLngForICU: function(e6) {
|
|
3901
3902
|
return e6;
|
|
3902
3903
|
}, escapeVariables: false };
|
|
3903
3904
|
}
|
|
3904
|
-
function
|
|
3905
|
+
function fc(e6, t2, n2, r2) {
|
|
3905
3906
|
return n2 && t2 && Y(t2) === `object` ? `${r2} resolved to an object or array, but i18next-icu does not support returnObjects or joinArrays and returns the raw value unformatted.` : n2 && typeof t2 == `string` && t2.indexOf(`{{`) > -1 ? `${r2} could not be parsed (${e6.message}). It contains "{{": i18next interpolation like {{name}} does not work with ICU, use {name}.` : `${r2} could not be ${n2 ? `parsed` : `formatted`}: ${e6.message}`;
|
|
3906
3907
|
}
|
|
3907
|
-
var
|
|
3908
|
+
var pc = function() {
|
|
3908
3909
|
function e6(t2) {
|
|
3909
|
-
|
|
3910
|
+
ic(this, e6), this.type = `i18nFormat`, this.mem = {}, this.warned = /* @__PURE__ */ new Set(), this.init(null, t2);
|
|
3910
3911
|
}
|
|
3911
|
-
return
|
|
3912
|
+
return oc(e6, [{ key: `init`, value: function(e7, t2) {
|
|
3912
3913
|
var n2 = this, r2 = e7 && e7.options && e7.options.i18nFormat || {};
|
|
3913
|
-
if (this.options =
|
|
3914
|
+
if (this.options = Js(r2, t2, this.options || {}, dc()), this.formats = this.options.formats, e7) {
|
|
3914
3915
|
var i2 = this.options, a2 = i2.bindI18n, o2 = i2.bindI18nStore, s2 = i2.memoize;
|
|
3915
|
-
e7.IntlMessageFormat =
|
|
3916
|
+
e7.IntlMessageFormat = Us, e7.ICU = this, this.i18next = e7, this.debug = !!(e7.options && e7.options.debug), this.debug && e7.options.interpolation && e7.options.interpolation.escapeValue !== false && !this.options.escapeVariables && this.warn(`interpolation.escapeValue is not applied, values are inserted without HTML escaping. Set the i18next-icu option escapeVariables: true to escape them, or interpolation.escapeValue: false if your output is escaped elsewhere (e.g. by React).`), s2 && (a2 && e7.on(a2, function() {
|
|
3916
3917
|
return n2.clearCache();
|
|
3917
3918
|
}), o2 && e7.store.on(o2, function() {
|
|
3918
3919
|
return n2.clearCache();
|
|
3919
3920
|
}));
|
|
3920
3921
|
}
|
|
3921
3922
|
} }, { key: `addUserDefinedFormats`, value: function(e7) {
|
|
3922
|
-
this.formats = this.formats ?
|
|
3923
|
+
this.formats = this.formats ? nc(nc({}, this.formats), e7) : e7, this.clearCache();
|
|
3923
3924
|
} }, { key: `parse`, value: function(e7, t2, n2, r2, i2, a2) {
|
|
3924
3925
|
var o2 = a2 && a2.resolved && a2.resolved.res, s2 = this.options.memoize && [n2, r2, i2], c2;
|
|
3925
3926
|
if (this.options.memoize) {
|
|
3926
|
-
var l2 =
|
|
3927
|
+
var l2 = qs(this.mem, s2);
|
|
3927
3928
|
l2 && l2.res === e7 && (c2 = l2.fc);
|
|
3928
3929
|
}
|
|
3929
3930
|
try {
|
|
3930
|
-
c2 || (this.debug && typeof e7 == `string` && e7.indexOf(`$t(`) > -1 && this.firstTime(`nesting ${n2} ${r2} ${i2}`) && this.warn(`key "${i2}" (${n2}/${r2}) contains "$t(", but i18next-icu does not support nesting, the text is output as is.`), c2 = new
|
|
3931
|
-
var u2 = t2 && t2.replace && Y(t2.replace) === `object` ?
|
|
3931
|
+
c2 || (this.debug && typeof e7 == `string` && e7.indexOf(`$t(`) > -1 && this.firstTime(`nesting ${n2} ${r2} ${i2}`) && this.warn(`key "${i2}" (${n2}/${r2}) contains "$t(", but i18next-icu does not support nesting, the text is output as is.`), c2 = new Us(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && Ks(this.mem, s2, { res: e7, fc: c2 }));
|
|
3932
|
+
var u2 = t2 && t2.replace && Y(t2.replace) === `object` ? nc(nc({}, t2), t2.replace) : t2;
|
|
3932
3933
|
return c2.format(this.escapeVariableValues(u2));
|
|
3933
3934
|
} catch (a3) {
|
|
3934
|
-
return this.debug && this.firstTime(`error ${n2} ${r2} ${i2}`) && this.warn(
|
|
3935
|
+
return this.debug && this.firstTime(`error ${n2} ${r2} ${i2}`) && this.warn(fc(a3, e7, !c2, `key "${i2}" (${n2}/${r2})`)), this.options.parseErrorHandler(a3, i2, e7, t2);
|
|
3935
3936
|
}
|
|
3936
3937
|
} }, { key: `addLookupKeys`, value: function(e7, t2, n2, r2, i2) {
|
|
3937
3938
|
return this.debug && i2 && this.checkSuffixKeys(t2, n2, r2, i2), e7;
|
|
3938
3939
|
} }, { key: `checkSuffixKeys`, value: function(e7, t2, n2, r2) {
|
|
3939
3940
|
var i2 = r2.count, a2 = r2.context, o2 = this.i18next.options, s2 = o2.pluralSeparator, c2 = s2 === void 0 ? `_` : s2, l2 = o2.contextSeparator, u2 = l2 === void 0 ? `_` : l2, d2 = this.i18next.services.resourceStore, f2 = `key "${e7}" (${t2}/${n2})`;
|
|
3940
3941
|
if (i2 !== void 0 && this.firstTime(`plural ${t2} ${n2} ${e7}`)) {
|
|
3941
|
-
var p2 =
|
|
3942
|
+
var p2 = uc.concat(uc.map(function(e8) {
|
|
3942
3943
|
return `ordinal${c2}${e8}`;
|
|
3943
3944
|
})).map(function(t3) {
|
|
3944
3945
|
return `${e7}${c2}${t3}`;
|
|
@@ -3952,33 +3953,33 @@ var fc = function() {
|
|
|
3952
3953
|
} }, { key: `firstTime`, value: function(e7) {
|
|
3953
3954
|
return !this.warned.has(e7) && (this.warned.add(e7), true);
|
|
3954
3955
|
} }, { key: `warn`, value: function(e7) {
|
|
3955
|
-
this.i18next.services.logger.warn(`i18next-icu: ${e7} See ${
|
|
3956
|
+
this.i18next.services.logger.warn(`i18next-icu: ${e7} See ${lc}`);
|
|
3956
3957
|
} }, { key: `clearCache`, value: function() {
|
|
3957
3958
|
this.mem = {};
|
|
3958
3959
|
} }, { key: `escapeVariableValues`, value: function(e7) {
|
|
3959
3960
|
if (!this.options.escapeVariables || !e7 || Y(e7) !== `object`) return e7;
|
|
3960
3961
|
for (var t2 = {}, n2 = 0, r2 = Object.entries(e7); n2 < r2.length; n2++) {
|
|
3961
|
-
var i2 =
|
|
3962
|
+
var i2 = Ys(r2[n2], 2), a2 = i2[0], o2 = i2[1];
|
|
3962
3963
|
t2[a2] = typeof o2 == `string` ? o2.replace(/&/g, `&`).replace(/</g, `<`).replace(/>/g, `>`).replace(/"/g, `"`).replace(/'/g, `'`) : o2;
|
|
3963
3964
|
}
|
|
3964
3965
|
return t2;
|
|
3965
3966
|
} }]), e6;
|
|
3966
3967
|
}();
|
|
3967
|
-
|
|
3968
|
-
function
|
|
3968
|
+
pc.type = `i18nFormat`;
|
|
3969
|
+
function mc({ icuOptions: e6 = {}, ...t2 }) {
|
|
3969
3970
|
let { parseErrorHandler: n2 = void 0 } = t2;
|
|
3970
|
-
return
|
|
3971
|
+
return To(t2, { icu: new pc({ parseErrorHandler: n2, bindI18n: t2.bindI18n, ...e6 }) });
|
|
3971
3972
|
}
|
|
3972
|
-
var
|
|
3973
|
+
var hc = (e6, t2, n2, r2) => {
|
|
3973
3974
|
let i2 = [n2, { code: t2, ...r2 || {} }];
|
|
3974
3975
|
if (e6?.services?.logger?.forward) return e6.services.logger.forward(i2, `warn`, `react-i18next::`, true);
|
|
3975
3976
|
X(i2[0]) && (i2[0] = `react-i18next:: ${i2[0]}`), e6?.services?.logger?.warn ? e6.services.logger.warn(...i2) : console?.warn && console.warn(...i2);
|
|
3976
3977
|
};
|
|
3977
|
-
var
|
|
3978
|
-
var
|
|
3979
|
-
X(n2) &&
|
|
3978
|
+
var gc = {};
|
|
3979
|
+
var _c = (e6, t2, n2, r2) => {
|
|
3980
|
+
X(n2) && gc[n2] || (X(n2) && (gc[n2] = /* @__PURE__ */ new Date()), hc(e6, t2, n2, r2));
|
|
3980
3981
|
};
|
|
3981
|
-
var
|
|
3982
|
+
var vc = (e6, t2) => () => {
|
|
3982
3983
|
if (e6.isInitialized) t2();
|
|
3983
3984
|
else {
|
|
3984
3985
|
let n2 = () => {
|
|
@@ -3989,29 +3990,29 @@ var _c = (e6, t2) => () => {
|
|
|
3989
3990
|
e6.on(`initialized`, n2);
|
|
3990
3991
|
}
|
|
3991
3992
|
};
|
|
3992
|
-
var
|
|
3993
|
-
e6.loadNamespaces(t2,
|
|
3993
|
+
var yc = (e6, t2, n2) => {
|
|
3994
|
+
e6.loadNamespaces(t2, vc(e6, n2));
|
|
3994
3995
|
};
|
|
3995
|
-
var
|
|
3996
|
-
if (X(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return
|
|
3996
|
+
var bc = (e6, t2, n2, r2) => {
|
|
3997
|
+
if (X(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return yc(e6, n2, r2);
|
|
3997
3998
|
n2.forEach((t3) => {
|
|
3998
3999
|
e6.options.ns.indexOf(t3) < 0 && e6.options.ns.push(t3);
|
|
3999
|
-
}), e6.loadLanguages(t2,
|
|
4000
|
+
}), e6.loadLanguages(t2, vc(e6, r2));
|
|
4000
4001
|
};
|
|
4001
|
-
var
|
|
4002
|
+
var xc = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? (_c(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
|
|
4002
4003
|
if (n2.bindI18n && n2.bindI18n.indexOf(`languageChanging`) > -1 && t3.services.backendConnector.backend && t3.isLanguageChangingTo && !r2(t3.isLanguageChangingTo, e6)) return false;
|
|
4003
4004
|
} });
|
|
4004
4005
|
var X = (e6) => typeof e6 == `string`;
|
|
4005
|
-
var
|
|
4006
|
-
var
|
|
4007
|
-
var
|
|
4008
|
-
var
|
|
4009
|
-
var
|
|
4010
|
-
var
|
|
4011
|
-
var
|
|
4012
|
-
var
|
|
4013
|
-
var
|
|
4014
|
-
var
|
|
4006
|
+
var Sc = (e6) => typeof e6 == `object` && !!e6;
|
|
4007
|
+
var Cc = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
|
4008
|
+
var wc = { "&": `&`, "&": `&`, "<": `<`, "<": `<`, ">": `>`, ">": `>`, "'": `'`, "'": `'`, """: `"`, """: `"`, " ": ` `, " ": ` `, "©": `\xA9`, "©": `\xA9`, "®": `\xAE`, "®": `\xAE`, "…": `\u2026`, "…": `\u2026`, "/": `/`, "/": `/` };
|
|
4009
|
+
var Tc = (e6) => wc[e6];
|
|
4010
|
+
var Ec = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e6) => e6.replace(Cc, Tc) };
|
|
4011
|
+
var Dc = () => Ec;
|
|
4012
|
+
var Oc;
|
|
4013
|
+
var kc = () => Oc;
|
|
4014
|
+
var Ac = n();
|
|
4015
|
+
var jc = class {
|
|
4015
4016
|
constructor() {
|
|
4016
4017
|
this.usedNamespaces = {};
|
|
4017
4018
|
}
|
|
@@ -4024,32 +4025,32 @@ var Ac = class {
|
|
|
4024
4025
|
return Object.keys(this.usedNamespaces);
|
|
4025
4026
|
}
|
|
4026
4027
|
};
|
|
4027
|
-
var
|
|
4028
|
+
var Mc = (e6, t2) => {
|
|
4028
4029
|
let n2 = l();
|
|
4029
4030
|
return s(() => {
|
|
4030
4031
|
n2.current = t2 ? n2.current : e6;
|
|
4031
4032
|
}, [e6, t2]), n2.current;
|
|
4032
4033
|
};
|
|
4033
|
-
var
|
|
4034
|
-
var
|
|
4035
|
-
var
|
|
4036
|
-
let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = o(
|
|
4037
|
-
if (a2 && !a2.reportNamespaces && (a2.reportNamespaces = new
|
|
4038
|
-
|
|
4039
|
-
let e7 = (e8, t4) => X(t4) ? t4 :
|
|
4034
|
+
var Nc = (e6, t2, n2, r2) => e6.getFixedT(t2, n2, r2);
|
|
4035
|
+
var Pc = (e6, t2, n2, r2) => a(Nc(e6, t2, n2, r2), [e6, t2, n2, r2]);
|
|
4036
|
+
var Fc = (e6, t2 = {}) => {
|
|
4037
|
+
let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = o(Ac) || {}, a2 = n2 || r2 || kc();
|
|
4038
|
+
if (a2 && !a2.reportNamespaces && (a2.reportNamespaces = new jc()), !a2) {
|
|
4039
|
+
_c(a2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
|
|
4040
|
+
let e7 = (e8, t4) => X(t4) ? t4 : Sc(t4) && X(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
|
|
4040
4041
|
return t3.t = e7, t3.i18n = {}, t3.ready = false, t3;
|
|
4041
4042
|
}
|
|
4042
|
-
a2.options.react?.wait &&
|
|
4043
|
-
let c2 = { ...
|
|
4043
|
+
a2.options.react?.wait && _c(a2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
|
|
4044
|
+
let c2 = { ...Dc(), ...a2.options.react, ...t2 }, { useSuspense: d2, keyPrefix: f2 } = c2, p2 = e6 || i2 || a2.options?.defaultNS;
|
|
4044
4045
|
p2 = X(p2) ? [p2] : p2 || [`translation`], a2.reportNamespaces.addUsedNamespaces?.(p2);
|
|
4045
|
-
let m2 = (a2.isInitialized || a2.initializedStoreOnce) && p2.every((e7) =>
|
|
4046
|
+
let m2 = (a2.isInitialized || a2.initializedStoreOnce) && p2.every((e7) => xc(e7, a2, c2)), h2 = Pc(a2, t2.lng || null, c2.nsMode === `fallback` ? p2 : p2[0], f2), g2 = () => h2, _2 = () => Nc(a2, t2.lng || null, c2.nsMode === `fallback` ? p2 : p2[0], f2), [v2, y2] = u(g2), b2 = p2.join();
|
|
4046
4047
|
t2.lng && (b2 = `${t2.lng}${b2}`);
|
|
4047
|
-
let x2 =
|
|
4048
|
+
let x2 = Mc(b2), S2 = l(true);
|
|
4048
4049
|
s(() => {
|
|
4049
4050
|
let { bindI18n: e7, bindI18nStore: n3 } = c2;
|
|
4050
|
-
S2.current = true, !m2 && !d2 && (t2.lng ?
|
|
4051
|
+
S2.current = true, !m2 && !d2 && (t2.lng ? bc(a2, t2.lng, p2, () => {
|
|
4051
4052
|
S2.current && y2(_2);
|
|
4052
|
-
}) :
|
|
4053
|
+
}) : yc(a2, p2, () => {
|
|
4053
4054
|
S2.current && y2(_2);
|
|
4054
4055
|
})), m2 && x2 && x2 !== b2 && S2.current && y2(_2);
|
|
4055
4056
|
let r3 = () => {
|
|
@@ -4064,143 +4065,143 @@ var Pc = (e6, t2 = {}) => {
|
|
|
4064
4065
|
let C2 = [v2, a2, m2];
|
|
4065
4066
|
if (C2.t = v2, C2.i18n = a2, C2.ready = m2, m2 || !m2 && !d2) return C2;
|
|
4066
4067
|
throw new Promise((e7) => {
|
|
4067
|
-
t2.lng ?
|
|
4068
|
+
t2.lng ? bc(a2, t2.lng, p2, () => e7()) : yc(a2, p2, () => e7());
|
|
4068
4069
|
});
|
|
4069
4070
|
};
|
|
4070
|
-
function
|
|
4071
|
+
function Ic({ i18n: e6, defaultNS: t2, children: n2 }) {
|
|
4071
4072
|
let i2 = c(() => ({ i18n: e6, defaultNS: t2 }), [e6, t2]);
|
|
4072
|
-
return r(
|
|
4073
|
+
return r(Ac.Provider, { value: i2 }, n2);
|
|
4073
4074
|
}
|
|
4074
|
-
var
|
|
4075
|
-
var
|
|
4076
|
-
function
|
|
4075
|
+
var Lc = `wix-warmup-data`;
|
|
4076
|
+
var Rc = null;
|
|
4077
|
+
function zc(e6) {
|
|
4077
4078
|
if (typeof document < `u`) try {
|
|
4078
|
-
let t2 = document.getElementById(
|
|
4079
|
-
return t2 ? (
|
|
4079
|
+
let t2 = document.getElementById(Lc)?.textContent;
|
|
4080
|
+
return t2 ? (Rc?.text !== t2 && (Rc = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), Rc.data[e6] ?? void 0) : void 0;
|
|
4080
4081
|
} catch {
|
|
4081
4082
|
return;
|
|
4082
4083
|
}
|
|
4083
4084
|
}
|
|
4084
|
-
var
|
|
4085
|
-
var
|
|
4086
|
-
var
|
|
4087
|
-
var
|
|
4088
|
-
var
|
|
4089
|
-
let t2 = e6.scope ??
|
|
4090
|
-
return n2 || (n2 = /* @__PURE__ */ new Map(),
|
|
4085
|
+
var Bc = 5e3;
|
|
4086
|
+
var Vc = 100;
|
|
4087
|
+
var Hc = {};
|
|
4088
|
+
var Uc = /* @__PURE__ */ new WeakMap();
|
|
4089
|
+
var Wc = (e6) => {
|
|
4090
|
+
let t2 = e6.scope ?? Hc, n2 = Uc.get(t2);
|
|
4091
|
+
return n2 || (n2 = /* @__PURE__ */ new Map(), Uc.set(t2, n2)), n2;
|
|
4091
4092
|
};
|
|
4092
|
-
function
|
|
4093
|
+
function Gc({ key: e6, warmupData: t2, fetchData: n2 }) {
|
|
4093
4094
|
if (e6 === null) return n2();
|
|
4094
4095
|
if (t2.isServer) return n2().then((n3) => (t2.set(e6, n3), n3));
|
|
4095
|
-
let r2 =
|
|
4096
|
+
let r2 = Wc(t2), i2 = Date.now();
|
|
4096
4097
|
for (let [e7, t3] of r2) t3.expiresAt <= i2 && r2.delete(e7);
|
|
4097
4098
|
let a2 = r2.get(e6);
|
|
4098
4099
|
if (a2) return a2.promise;
|
|
4099
|
-
let o2 =
|
|
4100
|
+
let o2 = zc(e6);
|
|
4100
4101
|
if (o2 !== void 0) {
|
|
4101
|
-
let t3 =
|
|
4102
|
-
return r2.set(e6, { promise: t3, expiresAt: i2 +
|
|
4102
|
+
let t3 = Fn(o2);
|
|
4103
|
+
return r2.set(e6, { promise: t3, expiresAt: i2 + Bc }), t3;
|
|
4103
4104
|
}
|
|
4104
4105
|
let s2 = (async () => await t2.get(e6) ?? n2())();
|
|
4105
|
-
r2.size >=
|
|
4106
|
+
r2.size >= Vc && r2.delete(r2.keys().next().value);
|
|
4106
4107
|
let c2 = { promise: s2, expiresAt: 1 / 0 };
|
|
4107
4108
|
return r2.set(e6, c2), s2.then(() => {
|
|
4108
|
-
c2.expiresAt = Date.now() +
|
|
4109
|
+
c2.expiresAt = Date.now() + Bc;
|
|
4109
4110
|
}, () => {
|
|
4110
4111
|
r2.get(e6) === c2 && r2.delete(e6);
|
|
4111
4112
|
}), s2;
|
|
4112
4113
|
}
|
|
4113
|
-
var
|
|
4114
|
-
var
|
|
4115
|
-
var
|
|
4116
|
-
var
|
|
4117
|
-
function
|
|
4118
|
-
let n2 =
|
|
4114
|
+
var Kc = `blog-builder:i18n`;
|
|
4115
|
+
var qc = `translation`;
|
|
4116
|
+
var Jc = () => zc(Kc);
|
|
4117
|
+
var Yc = /* @__PURE__ */ new Map();
|
|
4118
|
+
function Xc(e6, t2) {
|
|
4119
|
+
let n2 = Yc.get(e6);
|
|
4119
4120
|
if (n2) return n2;
|
|
4120
|
-
let r2 =
|
|
4121
|
-
return
|
|
4121
|
+
let r2 = Jc(), i2 = r2?.locale === e6 ? r2.messages : void 0, a2 = mc({ locale: e6, useSuspense: true, ...i2 ? { messages: i2 } : { asyncMessagesLoader: t2 } });
|
|
4122
|
+
return Yc.set(e6, a2), a2;
|
|
4122
4123
|
}
|
|
4123
|
-
function
|
|
4124
|
-
let t2 = () => e6.loadNamespaces(
|
|
4124
|
+
function Zc(e6) {
|
|
4125
|
+
let t2 = () => e6.loadNamespaces(qc).then(() => void 0, () => void 0);
|
|
4125
4126
|
return e6.isInitialized ? t2() : new Promise((n2) => {
|
|
4126
4127
|
e6.on(`initialized`, () => void t2().then(n2));
|
|
4127
4128
|
});
|
|
4128
4129
|
}
|
|
4129
|
-
function
|
|
4130
|
+
function Qc(e6, t2) {
|
|
4130
4131
|
return e6.getResourceBundle(t2, `translation`) ?? e6.getResourceBundle(`en`, `translation`);
|
|
4131
4132
|
}
|
|
4132
|
-
var
|
|
4133
|
+
var $c = (e6, t2, n2) => {
|
|
4133
4134
|
let r2 = t2.lastIndexOf(`?`), i2 = e6[r2 === -1 || r2 < t2.lastIndexOf(`/`) ? t2 : t2.slice(0, r2)];
|
|
4134
4135
|
return i2 ? typeof i2 == `function` ? i2() : Promise.resolve(i2) : new Promise((e7, r3) => {
|
|
4135
4136
|
(typeof queueMicrotask == `function` ? queueMicrotask : setTimeout)(r3.bind(null, Error(`Unknown variable dynamic import: ` + t2 + (t2.split(`/`).length === n2 ? `` : `. Note that variables only represent file names one level deep.`))));
|
|
4136
4137
|
});
|
|
4137
4138
|
};
|
|
4138
|
-
var
|
|
4139
|
-
|
|
4140
|
-
var
|
|
4141
|
-
function
|
|
4142
|
-
let t2 =
|
|
4143
|
-
return t2 || (t2 =
|
|
4139
|
+
var el = (e6) => e6.split(`-`)[0] ?? e6;
|
|
4140
|
+
Aa({ isDev: false, loadMessages: (e6) => $c(Object.assign({ "../assets/locale/messages_en.dev.json": () => pn(() => Promise.resolve().then(() => al), void 0, import.meta.url), "../assets/locale/messages_en.json": () => pn(() => Promise.resolve().then(() => sl), void 0, import.meta.url) }), `../assets/locale/messages_${el(e6)}.json`, 4), loadDevMessages: (e6) => $c(Object.assign({ "../assets/locale/messages_en.dev.json": () => pn(() => Promise.resolve().then(() => al), void 0, import.meta.url) }), `../assets/locale/messages_${el(e6)}.dev.json`, 4) });
|
|
4141
|
+
var tl = /* @__PURE__ */ new WeakMap();
|
|
4142
|
+
function nl(e6) {
|
|
4143
|
+
let t2 = tl.get(e6);
|
|
4144
|
+
return t2 || (t2 = Zc(e6).finally(() => tl.delete(e6)), tl.set(e6, t2)), t2;
|
|
4144
4145
|
}
|
|
4145
|
-
function
|
|
4146
|
-
let n2 =
|
|
4146
|
+
function rl({ i18n: e6, locale: t2 }) {
|
|
4147
|
+
let n2 = Nr(), r2 = Da();
|
|
4147
4148
|
if (!n2) return null;
|
|
4148
|
-
if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw
|
|
4149
|
-
let i2 =
|
|
4150
|
-
return i2 && r2.set(
|
|
4151
|
-
}
|
|
4152
|
-
function
|
|
4153
|
-
let t2 =
|
|
4154
|
-
return { i18n:
|
|
4155
|
-
}
|
|
4156
|
-
var
|
|
4157
|
-
var
|
|
4158
|
-
var
|
|
4159
|
-
var
|
|
4160
|
-
var
|
|
4161
|
-
var
|
|
4162
|
-
var
|
|
4163
|
-
let n2 =
|
|
4149
|
+
if (!e6.isInitialized || !e6.hasLoadedNamespace(`translation`)) throw nl(e6);
|
|
4150
|
+
let i2 = Qc(e6, t2);
|
|
4151
|
+
return i2 && r2.set(Kc, { locale: t2, messages: i2 }), null;
|
|
4152
|
+
}
|
|
4153
|
+
function il(e6) {
|
|
4154
|
+
let t2 = Hr(), n2 = Jc()?.locale ?? t2 ?? `en`;
|
|
4155
|
+
return { i18n: Xc(n2, e6), locale: n2 };
|
|
4156
|
+
}
|
|
4157
|
+
var al = _({ default: () => ol });
|
|
4158
|
+
var ol = { "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "post-list.empty-state.title": `No posts yet`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "related-posts.empty-state.title": `No related posts yet`, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "post-actions.like": `Like post`, "post-actions.unlike": `Unlike post`, "post-actions.share": `Share post`, "post-actions.share-dialog": `Share post`, "post-actions.link-copied": `Link copied`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.link-label": `Post link`, "post-actions.copy-link": `Copy link`, "post-actions.close": `Close`, "post-counters.loading-likes": `Loading likes`, "cover-media.play": `Play video`, "cover-media.placeholder-alt": `Post cover image`, "post-comments.loading": `Loading comments\u2026`, "post-comments.no-post": `No post resolved for this URL yet.`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, "canvas.post-title": `Post Title`, "canvas.author-name": `Author Name`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "canvas.category": `Category`, "canvas.category-numbered": `Category {number}`, "canvas.tag-numbered": `Tag {number}`, "canvas.author-photo-alt": `Author photo`, "category-header.all-posts": `All Posts` };
|
|
4159
|
+
var sl = _({ default: () => ll, title: () => cl });
|
|
4160
|
+
var cl = `My App`;
|
|
4161
|
+
var ll = { "canvas.category": `Category`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "canvas.tag-numbered": `Tag {number}`, "cover-media.play": `Play video`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-counters.loading-likes": `Loading likes`, "post-comments.loading": `Loading comments\u2026`, "post-actions.like": `Like post`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "related-posts.empty-state.title": `No related posts yet`, "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post-actions.link-copied": `Link copied`, "category-header.all-posts": `All Posts`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.copy-link": `Copy link`, "cover-media.placeholder-alt": `Post cover image`, "post-actions.link-label": `Post link`, "post-list.empty-state.title": `No posts yet`, "post-actions.share-dialog": `Share post`, "canvas.post-title": `Post Title`, "post-actions.unlike": `Unlike post`, "post-comments.no-post": `No post resolved for this URL yet.`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "canvas.category-numbered": `Category {number}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post-actions.share": `Share post`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post-actions.close": `Close`, "canvas.category-description": `Add a short description of this category so readers know what they will find here. It shows under the category title, above the posts.`, "canvas.author-photo-alt": `Author photo`, "canvas.author-name": `Author Name`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, title: cl, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.` };
|
|
4162
|
+
var ul = Object.assign({ "../assets/locale/messages_en.dev.json": al, "../assets/locale/messages_en.json": sl });
|
|
4163
|
+
var dl = (e6, t2) => {
|
|
4164
|
+
let n2 = ul[`../assets/locale/messages_${el(e6)}${t2}.json`];
|
|
4164
4165
|
return n2 ? Promise.resolve(n2) : Promise.reject(Error(`no messages file`));
|
|
4165
4166
|
};
|
|
4166
|
-
var
|
|
4167
|
-
var
|
|
4167
|
+
var fl = Aa({ isDev: false, loadMessages: (e6) => dl(e6, ``), loadDevMessages: (e6) => dl(e6, `.dev`) });
|
|
4168
|
+
var pl = (e6, t2, n2) => typeof e6 != `number` || !Number.isFinite(e6) || e6 < 0 ? `` : new Intl.NumberFormat(n2, t2 === `compact` ? { notation: `compact`, maximumFractionDigits: 1 } : void 0).format(e6);
|
|
4168
4169
|
var Z = { timeToRead: `post.time-to-read`, viewCount: `post.view-count`, commentCount: `post.comment-count`, likeCount: `post.like-count`, noPostsTitle: `post-list.empty-state.title`, noPostsDescription: `post-list.empty-state.description`, noRelatedPostsTitle: `related-posts.empty-state.title`, noRelatedPostsDescription: `related-posts.empty-state.description`, canvasPostTitle: `canvas.post-title`, canvasAuthorName: `canvas.author-name`, canvasExcerpt: `canvas.excerpt`, canvasContent: `canvas.content`, canvasCategory: `canvas.category`, canvasCategoryNumbered: `canvas.category-numbered`, canvasTagNumbered: `canvas.tag-numbered`, canvasCoverAlt: `cover-media.placeholder-alt`, canvasAuthorPhotoAlt: `canvas.author-photo-alt` };
|
|
4169
|
-
var
|
|
4170
|
-
let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted:
|
|
4170
|
+
var ml = (e6, t2) => {
|
|
4171
|
+
let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: pl(r2, `full`, t2) });
|
|
4171
4172
|
return { timeToRead: (t3) => e6(Z.timeToRead, { count: t3 }), viewCount: n2(Z.viewCount), commentCount: n2(Z.commentCount), likeCount: n2(Z.likeCount), noPostsEmptyState: () => ({ title: e6(Z.noPostsTitle), description: e6(Z.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6(Z.noRelatedPostsTitle), description: e6(Z.noRelatedPostsDescription) }), canvas: { postTitle: () => e6(Z.canvasPostTitle), authorName: () => e6(Z.canvasAuthorName), excerpt: () => e6(Z.canvasExcerpt), content: () => e6(Z.canvasContent), category: () => e6(Z.canvasCategory), categoryNumbered: (t3) => e6(Z.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6(Z.canvasTagNumbered, { number: t3 }), coverAlt: () => e6(Z.canvasCoverAlt), authorPhotoAlt: () => e6(Z.canvasAuthorPhotoAlt) } };
|
|
4172
4173
|
};
|
|
4173
|
-
var
|
|
4174
|
-
var
|
|
4175
|
-
var
|
|
4174
|
+
var hl = (e6) => j(N(e6, [{ transformFn: H, paths: [{ path: `posts.url` }, { path: `posts.translations.url` }] }, { transformFn: V, paths: [{ path: `posts.heroImage` }, { path: `posts.media.wixMedia.image` }] }, { transformFn: Ji, paths: [{ path: `posts.media.wixMedia.videoV2` }] }]), [`posts.richContent`, `posts.rich_content`]).posts ?? [];
|
|
4175
|
+
var gl = `https://blog.wixsite.com/blog-demo-posts`;
|
|
4176
|
+
var _l = F((e6) => async (t2) => {
|
|
4176
4177
|
let n2 = await e6.fetchWithAuth(`${globalThis.location.origin}/_serverless/blog-demo-posts/v3/demo-posts?${I(t2)}`);
|
|
4177
4178
|
if (!n2.ok) throw Error(`ListDemoPosts answered ${n2.status}`);
|
|
4178
|
-
return
|
|
4179
|
+
return hl(await n2.json()).filter((e7) => !e7.url?.startsWith(gl));
|
|
4179
4180
|
});
|
|
4180
|
-
var
|
|
4181
|
+
var vl = async (e6) => {
|
|
4181
4182
|
try {
|
|
4182
|
-
return await
|
|
4183
|
+
return await _l(e6);
|
|
4183
4184
|
} catch (e7) {
|
|
4184
4185
|
return console.info(`[blog demo posts]`, `read failed`, e7), [];
|
|
4185
4186
|
}
|
|
4186
4187
|
};
|
|
4187
|
-
var
|
|
4188
|
-
var
|
|
4189
|
-
function
|
|
4190
|
-
return
|
|
4188
|
+
var yl = [{ path: `members.createdDate` }, { path: `members.updatedDate` }, { path: `members.lastLoginDate` }];
|
|
4189
|
+
var bl = [{ path: `query.sorting.origin.latitude` }, { path: `query.sorting.origin.longitude` }];
|
|
4190
|
+
function xl(e6) {
|
|
4191
|
+
return Nt(Object.assign(e6, { domainToMappings: { "www.wixapis.com": [{ srcPath: `/members/v1/members`, destPath: `/v1/members` }], "api._api_base_domain_": [{ srcPath: `/members-ng-api`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "manage._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "blocks._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "create.editorx": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "editor.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "*.dev.wix-code.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "bo._base_domain_": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wixbo.ai": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "wix-bo.com": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], _: [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }], "members.wixapps.net": [{ srcPath: `/_api/members/v1/members`, destPath: `/v1/members` }] } }));
|
|
4191
4192
|
}
|
|
4192
|
-
var
|
|
4193
|
-
function
|
|
4193
|
+
var Sl = `@wix/auto_sdk_members_members`;
|
|
4194
|
+
function Cl(e6) {
|
|
4194
4195
|
function t2({ host: t3 }) {
|
|
4195
|
-
let n2 = N(e6, [{ transformFn:
|
|
4196
|
-
return { entityFqdn: `wix.members.v1.member`, method: `POST`, methodFqn: `com.wixpress.members.api.Members.QueryMembers`, packageName:
|
|
4196
|
+
let n2 = N(e6, [{ transformFn: on, paths: bl }]);
|
|
4197
|
+
return { entityFqdn: `wix.members.v1.member`, method: `POST`, methodFqn: `com.wixpress.members.api.Members.QueryMembers`, packageName: Sl, migrationOptions: { optInTransformResponse: true }, url: xl({ protoPath: `/v1/members/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => N(e7, [{ transformFn: M, paths: yl }]) };
|
|
4197
4198
|
}
|
|
4198
4199
|
return t2;
|
|
4199
4200
|
}
|
|
4200
|
-
function
|
|
4201
|
+
function wl(e6) {
|
|
4201
4202
|
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
4202
|
-
return
|
|
4203
|
-
let i2 =
|
|
4203
|
+
return ai({ func: async (r2) => {
|
|
4204
|
+
let i2 = Cl({ ...r2, ...e6 ?? {} });
|
|
4204
4205
|
n2?.onSiteCall?.();
|
|
4205
4206
|
try {
|
|
4206
4207
|
let e7 = await t2.request(i2);
|
|
@@ -4218,8 +4219,8 @@ function Cl(e6) {
|
|
|
4218
4219
|
throw P(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
4219
4220
|
}, pagingMethod: `OFFSET`, transformationPaths: {} });
|
|
4220
4221
|
}
|
|
4221
|
-
async function
|
|
4222
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
4222
|
+
async function Tl(e6, t2) {
|
|
4223
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Cl(A({ query: e6, ...t2 }));
|
|
4223
4224
|
r2?.onSiteCall?.();
|
|
4224
4225
|
try {
|
|
4225
4226
|
let e7 = await n2.request(i2);
|
|
@@ -4229,25 +4230,25 @@ async function wl(e6, t2) {
|
|
|
4229
4230
|
throw r2?.onError?.(e7), t3;
|
|
4230
4231
|
}
|
|
4231
4232
|
}
|
|
4232
|
-
function Tl(e6) {
|
|
4233
|
-
return (t2) => Cl(t2, { httpClient: e6 });
|
|
4234
|
-
}
|
|
4235
4233
|
function El(e6) {
|
|
4236
|
-
return (t2
|
|
4234
|
+
return (t2) => wl(t2, { httpClient: e6 });
|
|
4237
4235
|
}
|
|
4238
4236
|
function Dl(e6) {
|
|
4239
|
-
|
|
4237
|
+
return (t2, n2) => Tl(t2, n2, { httpClient: e6 });
|
|
4238
|
+
}
|
|
4239
|
+
function Ol(e6) {
|
|
4240
|
+
let t2 = hi({ builderQueryFunction: (t3) => El(e6)(t3), typedQueryFunction: (t3, n3) => Dl(e6)(t3, n3), hasOptionsParameter: true });
|
|
4240
4241
|
function n2(e7, n3) {
|
|
4241
4242
|
return t2(...arguments);
|
|
4242
4243
|
}
|
|
4243
4244
|
return n2;
|
|
4244
4245
|
}
|
|
4245
|
-
var
|
|
4246
|
-
var
|
|
4246
|
+
var kl = F(Ol);
|
|
4247
|
+
var Al = async (e6) => {
|
|
4247
4248
|
let t2 = [...new Set(e6.filter((e7) => !!e7))];
|
|
4248
4249
|
if (t2.length === 0) return {};
|
|
4249
4250
|
try {
|
|
4250
|
-
let { items: e7 } = await
|
|
4251
|
+
let { items: e7 } = await kl({ fieldsets: [`PUBLIC`] }).in(`_id`, t2).limit(t2.length).find();
|
|
4251
4252
|
return Object.fromEntries(e7.flatMap((e8) => {
|
|
4252
4253
|
let { _id: t3 } = e8;
|
|
4253
4254
|
return t3 ? [[t3, e8]] : [];
|
|
@@ -4256,32 +4257,32 @@ var kl = async (e6) => {
|
|
|
4256
4257
|
return {};
|
|
4257
4258
|
}
|
|
4258
4259
|
};
|
|
4259
|
-
var
|
|
4260
|
-
var
|
|
4261
|
-
var Ml = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
|
|
4262
|
-
var
|
|
4263
|
-
function
|
|
4264
|
-
return
|
|
4260
|
+
var jl = [{ path: `posts.firstPublishedDate` }, { path: `posts.lastPublishedDate` }, { path: `posts.expirationDate` }, { path: `posts.heroImage.urlExpirationDate` }, { path: `posts.richContent.metadata.createdTimestamp` }, { path: `posts.richContent.metadata.updatedTimestamp` }, { path: `posts.moderationDetails.submittedDate` }, { path: `posts.moderationDetails.moderationDate` }, { path: `posts.media.wixMedia.image.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.urlExpirationDate` }, { path: `posts.media.wixMedia.videoV2.posters.urlExpirationDate` }];
|
|
4261
|
+
var Ml = [{ path: `posts.richContentCompressed` }];
|
|
4262
|
+
var Nl = [{ path: `posts.heroImage.focalPoint.x` }, { path: `posts.heroImage.focalPoint.y` }, { path: `posts.media.wixMedia.image.focalPoint.x` }, { path: `posts.media.wixMedia.image.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.resolutions.poster.focalPoint.y` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.x` }, { path: `posts.media.wixMedia.videoV2.posters.focalPoint.y` }, { path: `posts.metrics.averageRating` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `posts.richContent.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `posts.richContent.nodes.galleryData.items.image.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.media.duration` }, { path: `posts.richContent.nodes.galleryData.items.video.thumbnail.duration` }, { path: `posts.richContent.nodes.galleryData.options.item.ratio` }, { path: `posts.richContent.nodes.imageData.image.duration` }, { path: `posts.richContent.nodes.imageData.crop.x` }, { path: `posts.richContent.nodes.imageData.crop.y` }, { path: `posts.richContent.nodes.imageData.crop.width` }, { path: `posts.richContent.nodes.imageData.crop.height` }, { path: `posts.richContent.nodes.mapData.mapSettings.lat` }, { path: `posts.richContent.nodes.mapData.mapSettings.lng` }, { path: `posts.richContent.nodes.pollData.poll.image.duration` }, { path: `posts.richContent.nodes.pollData.poll.options.image.duration` }, { path: `posts.richContent.nodes.pollData.design.poll.background.image.duration` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.nodes.appEmbedData.image.duration` }, { path: `posts.richContent.nodes.videoData.video.duration` }, { path: `posts.richContent.nodes.videoData.thumbnail.duration` }, { path: `posts.richContent.nodes.audioData.audio.duration` }, { path: `posts.richContent.nodes.audioData.coverImage.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdropImage.media.duration` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.background.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerX` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.centerY` }, { path: `posts.richContent.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `posts.richContent.nodes.shapeData.shape.duration` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.background.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.background.gradient.stops.position` }, { path: `posts.richContent.nodes.cardData.backgroundImage.media.duration` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `posts.richContent.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `posts.richContent.nodes.tocData.fontSize` }, { path: `posts.richContent.nodes.tocData.itemSpacing` }, { path: `posts.richContent.nodes.smartBlockCellData.shape.duration` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY` }, { path: `posts.richContent.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position` }];
|
|
4263
|
+
var Pl = [{ path: `sort.origin.latitude` }, { path: `sort.origin.longitude` }, { path: `query.sort.origin.latitude` }, { path: `query.sort.origin.longitude` }];
|
|
4264
|
+
function Fl(e6) {
|
|
4265
|
+
return Nt(Object.assign(e6, { domainToMappings: { _: [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "apps._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "www.wixapis.com": [{ srcPath: `/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/blog/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/v3/posts`, destPath: `/v3/posts` }], "manage._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }, { srcPath: `/_api/post-service-api-proxy/v3/bulk/posts`, destPath: `/v3/bulk/posts` }], "*.dev.wix-code.com": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "blocks._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "create.editorx": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "editor.wixapps.net": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }], "dev._base_domain_": [{ srcPath: `/_api/communities-blog-node-api/v3/posts`, destPath: `/v3/posts` }] } }));
|
|
4265
4266
|
}
|
|
4266
|
-
var
|
|
4267
|
-
function
|
|
4267
|
+
var Il = `@wix/auto_sdk_blog_posts`;
|
|
4268
|
+
function Ll(e6) {
|
|
4268
4269
|
function t2({ host: t3 }) {
|
|
4269
|
-
let n2 = N(e6, [{ transformFn:
|
|
4270
|
-
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName:
|
|
4270
|
+
let n2 = N(e6, [{ transformFn: on, paths: Pl }]);
|
|
4271
|
+
return { entityFqdn: `wix.blog.v3.post`, method: `POST`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.QueryPosts`, packageName: Il, migrationOptions: { optInTransformResponse: true }, url: Fl({ protoPath: `/v3/posts/query`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => N(e7, [{ transformFn: M, paths: jl }, { transformFn: sn, paths: Ml }, { transformFn: L, paths: Nl }]) };
|
|
4271
4272
|
}
|
|
4272
4273
|
return t2;
|
|
4273
4274
|
}
|
|
4274
|
-
function
|
|
4275
|
-
let e6 =
|
|
4275
|
+
function Rl() {
|
|
4276
|
+
let e6 = Ll({});
|
|
4276
4277
|
return { getUrl: (t2) => {
|
|
4277
4278
|
let { url: n2 } = e6(t2);
|
|
4278
4279
|
return n2;
|
|
4279
4280
|
}, httpMethod: `POST`, path: `/v3/posts/query`, pathParams: {}, __requestType: null, __originalRequestType: null, __responseType: null, __originalResponseType: null };
|
|
4280
4281
|
}
|
|
4281
|
-
var
|
|
4282
|
-
var
|
|
4283
|
-
var
|
|
4284
|
-
let { data: n2 } = await e6.request(
|
|
4282
|
+
var zl = Rl();
|
|
4283
|
+
var Bl = (e6) => (t2) => ({ method: `POST`, url: zl.getUrl(t2), data: { query: { filter: { id: { $in: e6 } }, paging: { limit: e6.length } } } });
|
|
4284
|
+
var Vl = F((e6) => async (t2) => {
|
|
4285
|
+
let { data: n2 } = await e6.request(Bl(t2)), r2 = {};
|
|
4285
4286
|
for (let e7 of n2.posts ?? []) {
|
|
4286
4287
|
let { id: t3 } = e7, n3 = e7.media?.wixMedia?.videoV2?.resolutions;
|
|
4287
4288
|
if (!t3 || !n3?.length) continue;
|
|
@@ -4290,141 +4291,168 @@ var Bl = F((e6) => async (t2) => {
|
|
|
4290
4291
|
}
|
|
4291
4292
|
return r2;
|
|
4292
4293
|
});
|
|
4293
|
-
var
|
|
4294
|
+
var Hl = async (e6) => {
|
|
4294
4295
|
if (e6.length === 0) return {};
|
|
4295
4296
|
try {
|
|
4296
|
-
return await
|
|
4297
|
+
return await Vl(e6);
|
|
4297
4298
|
} catch {
|
|
4298
4299
|
return {};
|
|
4299
4300
|
}
|
|
4300
4301
|
};
|
|
4301
|
-
var
|
|
4302
|
+
var Ul = `TRANSLATIONS`;
|
|
4302
4303
|
U.RICH_CONTENT, U.SEO, U.URL, U.CONTENT_TEXT, U.RICH_CONTENT, U.URL;
|
|
4303
|
-
var
|
|
4304
|
-
var
|
|
4304
|
+
var Wl = [U.URL, U.METRICS];
|
|
4305
|
+
var Gl = (e6) => {
|
|
4305
4306
|
let { status: t2, details: n2 } = e6 ?? {};
|
|
4306
4307
|
return t2 === 404 || String(n2?.applicationError?.code ?? ``).includes(`NOT_FOUND`);
|
|
4307
4308
|
};
|
|
4308
|
-
var
|
|
4309
|
-
var
|
|
4310
|
-
var
|
|
4311
|
-
var
|
|
4309
|
+
var Kl = (e6) => Al(e6.map(({ memberId: e7 }) => e7));
|
|
4310
|
+
var ql = (e6) => Hl(e6.filter((e7) => e7.media?.wixMedia?.videoV2).map(({ _id: e7 }) => e7).filter((e7) => !!e7));
|
|
4311
|
+
var Jl = 100;
|
|
4312
|
+
var Yl = async () => {
|
|
4312
4313
|
try {
|
|
4313
|
-
let { categories: e6 } = await
|
|
4314
|
+
let { categories: e6 } = await Ki({ paging: { limit: Jl } });
|
|
4314
4315
|
return e6 ?? [];
|
|
4315
4316
|
} catch {
|
|
4316
4317
|
return [];
|
|
4317
4318
|
}
|
|
4318
4319
|
};
|
|
4319
|
-
var
|
|
4320
|
+
var Xl = (e6, t2) => {
|
|
4320
4321
|
let { categoryIds: n2 } = e6 ?? {};
|
|
4321
4322
|
if (!n2?.length) return [];
|
|
4322
4323
|
let r2 = new Map(t2.map((e7) => [e7._id, e7]));
|
|
4323
4324
|
return n2.map((e7) => r2.get(e7)).filter((e7) => e7 !== void 0);
|
|
4324
4325
|
};
|
|
4325
|
-
var
|
|
4326
|
+
var Zl = (e6, t2) => {
|
|
4326
4327
|
let n2 = {};
|
|
4327
|
-
for (let r2 of e6) for (let { _id: e7, label: i2 } of
|
|
4328
|
+
for (let r2 of e6) for (let { _id: e7, label: i2 } of Xl(r2, t2)) e7 && (n2[e7] = i2 ?? ``);
|
|
4328
4329
|
return n2;
|
|
4329
4330
|
};
|
|
4330
|
-
var
|
|
4331
|
-
let { items: r2 } = await
|
|
4331
|
+
var Ql = async ({ ids: e6, currentPostId: t2, limit: n2 }) => {
|
|
4332
|
+
let { items: r2 } = await ma({ fieldsets: Wl }).in(`_id`, e6).limit(n2).find(), i2 = new Map(r2.map((e7) => {
|
|
4332
4333
|
let { _id: t3 } = e7;
|
|
4333
4334
|
return [t3, e7];
|
|
4334
4335
|
}));
|
|
4335
4336
|
return e6.filter((e7) => e7 !== t2).map((e7) => i2.get(e7)).filter((e7) => e7 !== void 0).slice(0, n2);
|
|
4336
4337
|
};
|
|
4337
|
-
var
|
|
4338
|
-
var $l = /* @__PURE__ */ new Map();
|
|
4338
|
+
var $l = () => ({ posts: [], hasMore: false, authorsByMemberId: {}, categoryLabelsById: {}, videoSourcesByPostId: {} });
|
|
4339
4339
|
var eu = /* @__PURE__ */ new Map();
|
|
4340
|
-
var tu =
|
|
4340
|
+
var tu = /* @__PURE__ */ new Map();
|
|
4341
|
+
var nu = (e6, t2, n2) => {
|
|
4341
4342
|
let r2 = e6.get(t2);
|
|
4342
4343
|
if (r2) return r2;
|
|
4343
4344
|
let i2 = n2().then((e7) => e7 ?? null).catch((n3) => {
|
|
4344
|
-
if (e6.delete(t2),
|
|
4345
|
+
if (e6.delete(t2), Gl(n3)) return null;
|
|
4345
4346
|
throw n3;
|
|
4346
4347
|
});
|
|
4347
4348
|
return e6.set(t2, i2), i2;
|
|
4348
4349
|
};
|
|
4349
|
-
var
|
|
4350
|
-
let { category: n2 } = await
|
|
4350
|
+
var ru = (e6, t2) => nu(eu, `${e6}|${t2 ?? ``}`, async () => {
|
|
4351
|
+
let { category: n2 } = await Gi(e6, { fieldsets: [Ul], ...t2 && { language: t2 } });
|
|
4351
4352
|
return n2;
|
|
4352
4353
|
});
|
|
4353
|
-
var
|
|
4354
|
-
let { items: t2 } = await
|
|
4354
|
+
var iu = (e6) => nu(eu, `${e6}|*`, async () => {
|
|
4355
|
+
let { items: t2 } = await qi().eq(`slug`, e6).limit(1).find();
|
|
4355
4356
|
return t2[0];
|
|
4356
4357
|
});
|
|
4357
|
-
var
|
|
4358
|
-
let { tag: n2 } = await
|
|
4358
|
+
var au = (e6, t2) => nu(tu, `${e6}|${t2 ?? ``}`, async () => {
|
|
4359
|
+
let { tag: n2 } = await Sa(e6, { ...t2 && { language: t2 } });
|
|
4359
4360
|
return n2;
|
|
4360
4361
|
});
|
|
4361
|
-
var
|
|
4362
|
-
var
|
|
4363
|
-
let n2 = `${e6}|${t2 ?? ``}`, r2 =
|
|
4362
|
+
var ou = /* @__PURE__ */ new Map();
|
|
4363
|
+
var su = (e6, t2) => {
|
|
4364
|
+
let n2 = `${e6}|${t2 ?? ``}`, r2 = ou.get(n2);
|
|
4364
4365
|
if (r2) return r2;
|
|
4365
|
-
let i2 =
|
|
4366
|
+
let i2 = Wi(e6).then(async ({ category: e7 }) => {
|
|
4366
4367
|
let { _id: n3, translationId: r3, language: i3 } = e7 ?? {};
|
|
4367
4368
|
if (!n3) return null;
|
|
4368
4369
|
if (!t2 || !r3 || i3 === t2) return n3;
|
|
4369
|
-
let { items: a2 } = await
|
|
4370
|
+
let { items: a2 } = await qi().eq(`translationId`, r3).eq(`language`, t2).limit(1).find();
|
|
4370
4371
|
return a2[0]?._id ?? null;
|
|
4371
4372
|
}).catch((e7) => {
|
|
4372
|
-
if (
|
|
4373
|
-
throw
|
|
4373
|
+
if (Gl(e7)) return null;
|
|
4374
|
+
throw ou.delete(n2), e7;
|
|
4374
4375
|
});
|
|
4375
|
-
return
|
|
4376
|
+
return ou.set(n2, i2), i2;
|
|
4376
4377
|
};
|
|
4377
|
-
var
|
|
4378
|
+
var cu = async (e6, t2) => {
|
|
4378
4379
|
try {
|
|
4379
|
-
let { items: n2 } = await
|
|
4380
|
+
let { items: n2 } = await qi().eq(`translationId`, e6).eq(`language`, t2).limit(1).find();
|
|
4380
4381
|
return n2[0]?.slug ?? void 0;
|
|
4381
4382
|
} catch {
|
|
4382
4383
|
return;
|
|
4383
4384
|
}
|
|
4384
4385
|
};
|
|
4385
|
-
var
|
|
4386
|
-
var
|
|
4387
|
-
var
|
|
4388
|
-
var
|
|
4389
|
-
let u2 =
|
|
4386
|
+
var lu = [`newest`, `oldest`, `titleAsc`, `titleDesc`, `mostViewed`, `mostLiked`];
|
|
4387
|
+
var uu = { newest: `FEED`, oldest: `PUBLISHED_DATE_ASC`, titleAsc: `TITLE_ASC`, titleDesc: `TITLE_DESC`, mostViewed: `VIEW_COUNT`, mostLiked: `LIKE_COUNT` };
|
|
4388
|
+
var du = async (e6, { limit: t2, offset: n2 = 0, language: r2, sortOrder: i2 }) => e6.posts.length > 0 ? e6 : { ...e6, demoPosts: await vl({ paging: { limit: t2, offset: n2 }, fieldsets: Wl, ...r2 && { language: r2 }, ...i2 && { sort: uu[i2] } }) };
|
|
4389
|
+
var fu = async ({ offset: e6, limit: t2, language: n2, categoryId: r2, categorySlug: i2, tagSlug: a2, postIds: o2, sortOrder: s2, featuredOnly: c2, propagateErrors: l2 = false }) => {
|
|
4390
|
+
let u2 = Yl();
|
|
4390
4391
|
try {
|
|
4391
4392
|
let l3, d2, f2, p2, m2;
|
|
4392
4393
|
if (i2) {
|
|
4393
|
-
let e7 = await
|
|
4394
|
+
let e7 = await ru(i2, n2);
|
|
4394
4395
|
if (!e7?._id) {
|
|
4395
|
-
let e8 = n2 ? await
|
|
4396
|
-
return {
|
|
4396
|
+
let e8 = n2 ? await iu(i2) : null;
|
|
4397
|
+
return { ...$l(), ...e8?.translationId && e8.language !== n2 && { mismatchedCategory: e8 } };
|
|
4397
4398
|
}
|
|
4398
4399
|
f2 = e7, l3 = [e7._id];
|
|
4399
4400
|
} else if (a2) {
|
|
4400
|
-
let e7 = await
|
|
4401
|
-
if (!e7?._id) return
|
|
4401
|
+
let e7 = await au(a2, n2);
|
|
4402
|
+
if (!e7?._id) return $l();
|
|
4402
4403
|
p2 = e7, d2 = [e7._id];
|
|
4403
|
-
} else if (o2?.length) m2 = await
|
|
4404
|
+
} else if (o2?.length) m2 = await Ql({ ids: o2, limit: o2.length });
|
|
4404
4405
|
else if (r2) {
|
|
4405
|
-
let e7 = await
|
|
4406
|
-
if (!e7) return
|
|
4406
|
+
let e7 = await su(r2, n2);
|
|
4407
|
+
if (!e7) return $l();
|
|
4407
4408
|
l3 = [e7];
|
|
4408
4409
|
}
|
|
4409
|
-
let h2 = s2 ?
|
|
4410
|
-
return { posts: g2, hasMore: !m2 && g2.length === t2, authorsByMemberId: _2, categoryLabelsById:
|
|
4410
|
+
let h2 = s2 ? uu[s2] : void 0, g2 = m2 ?? (await pa({ paging: { limit: t2, offset: e6 }, fieldsets: Wl, ...n2 && { language: n2 }, ...l3 && { categoryIds: l3 }, ...d2 && { tagIds: d2 }, ...h2 && h2 !== `FEED` && { sort: h2 }, ...c2 && { featured: true } })).posts ?? [], [_2, v2, y2] = await Promise.all([Kl(g2), u2, ql(g2)]);
|
|
4411
|
+
return { posts: g2, hasMore: !m2 && g2.length === t2, authorsByMemberId: _2, categoryLabelsById: Zl(g2, v2), videoSourcesByPostId: y2, ...f2 && { filterCategory: f2 }, ...p2 && { filterTag: p2 } };
|
|
4411
4412
|
} catch (e7) {
|
|
4412
4413
|
if (l2) throw e7;
|
|
4413
|
-
return
|
|
4414
|
+
return $l();
|
|
4414
4415
|
}
|
|
4415
4416
|
};
|
|
4416
|
-
var
|
|
4417
|
-
var
|
|
4418
|
-
var
|
|
4417
|
+
var pu = `categoryId`;
|
|
4418
|
+
var mu = (e6) => hu(e6?.[pu]);
|
|
4419
|
+
var hu = (e6) => {
|
|
4419
4420
|
if (e6 && typeof e6 == `object`) return (typeof e6.$eq == `string` ? e6.$eq : Array.isArray(e6.$in) ? e6.$in.find((e7) => typeof e7 == `string` && e7.trim() !== ``) : void 0)?.trim() || void 0;
|
|
4420
4421
|
};
|
|
4421
|
-
|
|
4422
|
+
g((e6, t2) => {
|
|
4423
|
+
(function() {
|
|
4424
|
+
var e7 = {}.hasOwnProperty;
|
|
4425
|
+
function n2() {
|
|
4426
|
+
for (var e8 = ``, t3 = 0; t3 < arguments.length; t3++) {
|
|
4427
|
+
var n3 = arguments[t3];
|
|
4428
|
+
n3 && (e8 = i2(e8, r2(n3)));
|
|
4429
|
+
}
|
|
4430
|
+
return e8;
|
|
4431
|
+
}
|
|
4432
|
+
function r2(t3) {
|
|
4433
|
+
if (typeof t3 == `string` || typeof t3 == `number`) return t3;
|
|
4434
|
+
if (typeof t3 != `object`) return ``;
|
|
4435
|
+
if (Array.isArray(t3)) return n2.apply(null, t3);
|
|
4436
|
+
if (t3.toString !== Object.prototype.toString && !t3.toString.toString().includes(`[native code]`)) return t3.toString();
|
|
4437
|
+
var r3 = ``;
|
|
4438
|
+
for (var a2 in t3) e7.call(t3, a2) && t3[a2] && (r3 = i2(r3, a2));
|
|
4439
|
+
return r3;
|
|
4440
|
+
}
|
|
4441
|
+
function i2(e8, t3) {
|
|
4442
|
+
return t3 ? e8 ? e8 + ` ` + t3 : e8 + t3 : e8;
|
|
4443
|
+
}
|
|
4444
|
+
t2 !== void 0 && t2.exports ? (n2.default = n2, t2.exports = n2) : typeof define == `function` && typeof define.amd == `object` && define.amd ? define(`classnames`, [], function() {
|
|
4445
|
+
return n2;
|
|
4446
|
+
}) : window.classNames = n2;
|
|
4447
|
+
})();
|
|
4448
|
+
})();
|
|
4449
|
+
var gu = class extends e {
|
|
4422
4450
|
state = { error: void 0 };
|
|
4423
4451
|
static getDerivedStateFromError(e6) {
|
|
4424
4452
|
return { error: e6 ?? Error(`Unknown render error`) };
|
|
4425
4453
|
}
|
|
4426
4454
|
componentDidCatch(e6, t2) {
|
|
4427
|
-
|
|
4455
|
+
Dr(this.props.monitoringClient, e6, { feature: this.props.feature, action: `render`, tags: this.props.component ? { component: this.props.component } : void 0, contexts: { react: { componentStack: t2.componentStack } } });
|
|
4428
4456
|
}
|
|
4429
4457
|
render() {
|
|
4430
4458
|
if (this.state.error === void 0) return this.props.children;
|
|
@@ -4432,104 +4460,104 @@ var hu = class extends e {
|
|
|
4432
4460
|
return this.props.fallback;
|
|
4433
4461
|
}
|
|
4434
4462
|
};
|
|
4435
|
-
var
|
|
4436
|
-
var
|
|
4437
|
-
var
|
|
4438
|
-
let t2 = e6?.[
|
|
4463
|
+
var _u = (e6) => e6.then((e7) => ({ ...e7, fetchedAt: Date.now() }));
|
|
4464
|
+
var vu = `postId`;
|
|
4465
|
+
var yu = (e6) => {
|
|
4466
|
+
let t2 = e6?.[vu];
|
|
4439
4467
|
if (!t2 || typeof t2 != `object`) return [];
|
|
4440
4468
|
let n2 = Array.isArray(t2.$in) ? t2.$in : [t2.$eq];
|
|
4441
4469
|
return [...new Set(n2.flatMap((e7) => typeof e7 == `string` && e7.trim() !== `` ? [e7.trim()] : []))];
|
|
4442
4470
|
};
|
|
4443
|
-
var
|
|
4444
|
-
var
|
|
4445
|
-
var
|
|
4446
|
-
var
|
|
4447
|
-
var
|
|
4448
|
-
var
|
|
4471
|
+
var bu = 6e4;
|
|
4472
|
+
var xu = bu * 60;
|
|
4473
|
+
var Su = xu * 24;
|
|
4474
|
+
var Cu = Su * 7;
|
|
4475
|
+
var wu = (e6) => e6 < bu ? [`second`, e6 / 1e3] : e6 < xu ? [`minute`, e6 / bu] : e6 < Su ? [`hour`, e6 / xu] : [`day`, e6 / Su];
|
|
4476
|
+
var Tu = (e6, t2, n2 = Date.now()) => {
|
|
4449
4477
|
let r2 = e6 instanceof Date ? e6 : new Date(e6), i2 = n2 - r2.getTime();
|
|
4450
|
-
if (i2 >= 0 && i2 <
|
|
4451
|
-
let [e7, n3] =
|
|
4478
|
+
if (i2 >= 0 && i2 < Cu) {
|
|
4479
|
+
let [e7, n3] = wu(i2);
|
|
4452
4480
|
return new Intl.RelativeTimeFormat(t2).format(-Math.round(n3), e7);
|
|
4453
4481
|
}
|
|
4454
4482
|
let a2 = r2.getFullYear() === new Date(n2).getFullYear();
|
|
4455
4483
|
return new Intl.DateTimeFormat(t2, { ...a2 ? {} : { year: `numeric` }, month: `short`, day: `numeric` }).format(r2);
|
|
4456
4484
|
};
|
|
4457
|
-
var
|
|
4458
|
-
var
|
|
4459
|
-
var
|
|
4485
|
+
var Eu = `https://static.wixstatic.com/media/`;
|
|
4486
|
+
var Du = `wix:video://`;
|
|
4487
|
+
var Ou = (e6) => {
|
|
4460
4488
|
if (!e6) return;
|
|
4461
4489
|
let t2 = Number.parseInt(e6, 10);
|
|
4462
4490
|
return Number.isFinite(t2) && t2 > 0 ? t2 : void 0;
|
|
4463
4491
|
};
|
|
4464
|
-
var
|
|
4465
|
-
if (!e6.startsWith(
|
|
4492
|
+
var ku = (e6) => {
|
|
4493
|
+
if (!e6.startsWith(Du)) return;
|
|
4466
4494
|
let [t2, n2] = e6.slice(12).split(`#`), [, r2] = t2.split(`/`).filter(Boolean);
|
|
4467
4495
|
if (!r2) return;
|
|
4468
4496
|
let i2 = new URLSearchParams(n2 ?? ``), a2 = i2.get(`posterUri`);
|
|
4469
|
-
return { id: decodeURIComponent(r2), posterUrl: a2 ? `${
|
|
4497
|
+
return { id: decodeURIComponent(r2), posterUrl: a2 ? `${Eu}${a2}` : void 0, posterWidth: Ou(i2.get(`posterWidth`)), posterHeight: Ou(i2.get(`posterHeight`)) };
|
|
4470
4498
|
};
|
|
4471
|
-
var
|
|
4472
|
-
var
|
|
4473
|
-
var
|
|
4499
|
+
var Au = [/https?:\/\/(?:www\.|m\.)?youtube\.com\/watch\?(?:[^#]*&)?v=([\w-]+)/i, /https?:\/\/(?:www\.)?youtube\.com\/embed\/([\w-]+)/i, /https?:\/\/youtu\.be\/([\w-]+)/i];
|
|
4500
|
+
var ju = [/https?:\/\/player\.vimeo\.com\/video\/(\d+)/i, /https?:\/\/vimeo\.com\/(\d+)/i];
|
|
4501
|
+
var Mu = (e6, t2) => {
|
|
4474
4502
|
for (let n2 of e6) {
|
|
4475
4503
|
let e7 = n2.exec(t2);
|
|
4476
4504
|
if (e7) return e7[1];
|
|
4477
4505
|
}
|
|
4478
4506
|
};
|
|
4479
|
-
var
|
|
4480
|
-
let t2 =
|
|
4507
|
+
var Nu = (e6) => {
|
|
4508
|
+
let t2 = Mu(Au, e6);
|
|
4481
4509
|
if (t2) return { provider: `youtube`, embedUrl: `https://www.youtube.com/embed/${t2}?autoplay=1` };
|
|
4482
|
-
let n2 = ju
|
|
4510
|
+
let n2 = Mu(ju, e6);
|
|
4483
4511
|
return n2 ? { provider: `vimeo`, embedUrl: `https://player.vimeo.com/video/${n2}?autoplay=1` } : { provider: `unknown` };
|
|
4484
4512
|
};
|
|
4485
|
-
var
|
|
4513
|
+
var Pu = (e6, t2 = []) => {
|
|
4486
4514
|
let n2 = e6?.media;
|
|
4487
4515
|
if (!n2 || n2.displayed === false) return;
|
|
4488
|
-
let r2 =
|
|
4516
|
+
let r2 = rr(e6);
|
|
4489
4517
|
if (r2) return { kind: `image`, image: r2 };
|
|
4490
|
-
let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ?
|
|
4518
|
+
let i2 = n2.altText ?? e6?.title ?? ``, a2 = n2.wixMedia?.videoV2 ? ku(n2.wixMedia.videoV2) : void 0;
|
|
4491
4519
|
if (a2) return { kind: `wixVideo`, ...a2, sources: t2, altText: i2 };
|
|
4492
4520
|
let o2 = n2.embedMedia?.video?.url;
|
|
4493
4521
|
if (o2) {
|
|
4494
4522
|
let { thumbnail: e7 } = n2.embedMedia ?? {};
|
|
4495
|
-
return { kind: `embed`, videoUrl: o2, ...
|
|
4523
|
+
return { kind: `embed`, videoUrl: o2, ...Nu(o2), thumbnailUrl: e7?.url, thumbnailWidth: e7?.width, thumbnailHeight: e7?.height, altText: i2 };
|
|
4496
4524
|
}
|
|
4497
4525
|
};
|
|
4498
|
-
var
|
|
4499
|
-
let t2 =
|
|
4526
|
+
var Fu = (e6) => {
|
|
4527
|
+
let t2 = rr(e6), n2 = e6?.media?.wixMedia?.videoV2;
|
|
4500
4528
|
if (t2 || !n2) return t2;
|
|
4501
|
-
let r2 =
|
|
4529
|
+
let r2 = ku(n2), i2 = nr(r2?.posterUrl?.slice(35), e6?.media?.altText ?? e6?.title);
|
|
4502
4530
|
return i2 && { ...i2, width: r2?.posterWidth ?? i2.width, height: r2?.posterHeight ?? i2.height };
|
|
4503
4531
|
};
|
|
4504
|
-
var
|
|
4505
|
-
var
|
|
4506
|
-
var
|
|
4507
|
-
var
|
|
4532
|
+
var Iu = `2026-05-12T12:00:00.000Z`;
|
|
4533
|
+
var Lu = (e6) => ({ href: e6 ?? `#`, target: `_self` });
|
|
4534
|
+
var Ru = (e6) => `https://static.wixstatic.com/media/${e6}/v1/fit/w_1200,h_1200,al_c,q_85/cover.jpg`;
|
|
4535
|
+
var zu = (e6) => {
|
|
4508
4536
|
if (!e6) return;
|
|
4509
4537
|
let t2 = e6 instanceof Date ? e6 : new Date(e6);
|
|
4510
4538
|
return Number.isFinite(t2.getTime()) ? t2.toISOString() : void 0;
|
|
4511
4539
|
};
|
|
4512
|
-
var
|
|
4513
|
-
var
|
|
4514
|
-
var Q = (e6) => ({ text: e6, html: `<p>${
|
|
4540
|
+
var Bu = (e6) => typeof e6 == `number` && e6 > 0 ? e6 : void 0;
|
|
4541
|
+
var Vu = (e6) => e6.replace(/&/g, `&`).replace(/</g, `<`).replace(/>/g, `>`).replace(/"/g, `"`).replace(/'/g, `'`);
|
|
4542
|
+
var Q = (e6) => ({ text: e6, html: `<p>${Vu(e6)}</p>`, linkList: [] });
|
|
4515
4543
|
var $ = { minutesToRead: 5, views: 120, comments: 4 };
|
|
4516
|
-
var
|
|
4544
|
+
var Hu = (e6) => {
|
|
4517
4545
|
let { metrics: t2 } = e6;
|
|
4518
4546
|
return { views: typeof t2?.views == `number` ? t2.views : void 0, comments: typeof t2?.comments == `number` ? t2.comments : void 0 };
|
|
4519
4547
|
};
|
|
4520
|
-
var
|
|
4521
|
-
var
|
|
4548
|
+
var Uu = (e6, t2, n2, r2) => Q(e6 === void 0 ? n2 ? r2(t2) : `` : r2(e6));
|
|
4549
|
+
var Wu = (e6, t2, n2, r2) => {
|
|
4522
4550
|
let i2 = e6.categoryIds?.map((e7) => t2[e7]).find(Boolean);
|
|
4523
4551
|
return Q(i2 ?? (n2 ? r2.canvas.category() : ``));
|
|
4524
4552
|
};
|
|
4525
|
-
var
|
|
4526
|
-
let { _id: l2, memberId: u2 } = e6, d2 = u2 ? i2[u2] : void 0, f2 =
|
|
4527
|
-
return { _id: l2 ?? e6.slug ?? ``, title: e6.title ?? ``, itemTitle: Q(e6.title ?? ``), itemExcerpt: Q(e6.excerpt ?? ``), itemCoverImage:
|
|
4553
|
+
var Gu = (e6, t2, n2, r2, i2 = {}, a2 = {}, o2 = false, s2 = {}, c2 = Date.now()) => {
|
|
4554
|
+
let { _id: l2, memberId: u2 } = e6, d2 = u2 ? i2[u2] : void 0, f2 = Hu(e6);
|
|
4555
|
+
return { _id: l2 ?? e6.slug ?? ``, title: e6.title ?? ``, itemTitle: Q(e6.title ?? ``), itemExcerpt: Q(e6.excerpt ?? ``), itemCoverImage: Fu(e6), itemCoverMedia: Pu(e6, s2[l2 ?? ``] ?? []), itemLink: pr(e6, r2), itemPublishedDate: Q(Tu(e6.firstPublishedDate ?? new Date(c2), n2, c2)), publishedDateValue: zu(e6.firstPublishedDate), clockValue: c2, minutesToReadValue: Bu(e6.minutesToRead), initialViewCount: f2.views ?? (o2 ? $.views : void 0), initialCommentCount: f2.comments ?? (o2 ? $.comments : void 0), authorName: Q(d2?.profile?.nickname ?? ``), authorImage: gr(d2, t2.canvas.authorPhotoAlt()), timeToRead: Q(typeof e6.minutesToRead == `number` && e6.minutesToRead > 0 ? t2.timeToRead(e6.minutesToRead) : ``), viewCount: Uu(f2.views, $.views, o2, t2.viewCount), commentCount: Uu(f2.comments, $.comments, o2, t2.commentCount), itemCategoryLabel: Wu(e6, a2, o2, t2), recentPostItem: { title: e6.title ?? ``, slug: e6.slug ?? `` }, commentingEnabled: e6.commentingEnabled };
|
|
4528
4556
|
};
|
|
4529
|
-
var
|
|
4530
|
-
let r2 =
|
|
4557
|
+
var Ku = (e6, t2, n2 = []) => {
|
|
4558
|
+
let r2 = Pu(e6, n2);
|
|
4531
4559
|
if (!r2) return;
|
|
4532
|
-
let i2 =
|
|
4560
|
+
let i2 = pr(e6, t2), a2 = { slug: e6.slug ?? void 0, title: e6.title ?? ``, description: e6.excerpt ?? ``, ...i2 ? { action: { link: i2 } } : {} };
|
|
4533
4561
|
if (r2.kind === `image`) return r2.image.url ? { ...a2, type: `image`, src: r2.image.url, width: r2.image.width, height: r2.image.height, parameters: { alt: r2.image.alt } } : void 0;
|
|
4534
4562
|
if (r2.kind === `wixVideo`) {
|
|
4535
4563
|
let e7 = r2.sources[0]?.url;
|
|
@@ -4537,78 +4565,78 @@ var Gu = (e6, t2, n2 = []) => {
|
|
|
4537
4565
|
}
|
|
4538
4566
|
if (r2.thumbnailUrl) return { ...a2, type: `image`, src: r2.thumbnailUrl, width: r2.thumbnailWidth, height: r2.thumbnailHeight, parameters: { alt: r2.altText } };
|
|
4539
4567
|
};
|
|
4540
|
-
var
|
|
4541
|
-
var
|
|
4542
|
-
var Ju = (e6, t2) => {
|
|
4543
|
-
let { uri: n2, width: r2, height: i2 } = qu[e6 % qu.length];
|
|
4544
|
-
return { uri: n2, url: Lu(n2), name: n2, width: r2, height: i2, alt: t2 };
|
|
4545
|
-
};
|
|
4568
|
+
var qu = 3;
|
|
4569
|
+
var Ju = [{ uri: `728f9d_a03266fe4a4d4651b9aa06077eef5d9c~mv2.png`, width: 2304, height: 1728 }, { uri: `728f9d_635778e429524b59856cb2a18ed0d4f8~mv2.jpg`, width: 2624, height: 1472 }, { uri: `728f9d_d6071d5e8a0544098238188bae67e5e4~mv2.png`, width: 2304, height: 1728 }];
|
|
4546
4570
|
var Yu = (e6, t2) => {
|
|
4547
|
-
let { uri: n2 } =
|
|
4548
|
-
return { uri: n2, url:
|
|
4571
|
+
let { uri: n2, width: r2, height: i2 } = Ju[e6 % Ju.length];
|
|
4572
|
+
return { uri: n2, url: Ru(n2), name: n2, width: r2, height: i2, alt: t2 };
|
|
4573
|
+
};
|
|
4574
|
+
var Xu = (e6, t2) => {
|
|
4575
|
+
let { uri: n2 } = Ju[(e6 + 1) % Ju.length];
|
|
4576
|
+
return { uri: n2, url: Ru(n2), name: n2, width: 100, height: 100, alt: t2 };
|
|
4549
4577
|
};
|
|
4550
|
-
var
|
|
4551
|
-
let r2 =
|
|
4578
|
+
var Zu = (e6) => Array.from({ length: qu }, (t2, n2) => {
|
|
4579
|
+
let r2 = Yu(n2, e6.canvas.coverAlt());
|
|
4552
4580
|
return { type: `image`, src: r2.url ?? ``, title: e6.canvas.postTitle(), description: e6.canvas.excerpt(), width: r2.width, height: r2.height, parameters: { alt: r2.alt } };
|
|
4553
4581
|
});
|
|
4554
|
-
var
|
|
4555
|
-
let o2 = e6.canvas.postTitle(), s2 =
|
|
4556
|
-
return { _id: `placeholder-${a2}`, title: o2, itemTitle: Q(o2), itemExcerpt: Q(e6.canvas.excerpt()), itemCoverImage: s2, itemCoverMedia: { kind: `image`, image: s2 }, itemLink:
|
|
4582
|
+
var Qu = (e6, t2, n2, r2 = Date.now()) => Array.from({ length: qu }, (i2, a2) => {
|
|
4583
|
+
let o2 = e6.canvas.postTitle(), s2 = Yu(a2, e6.canvas.coverAlt());
|
|
4584
|
+
return { _id: `placeholder-${a2}`, title: o2, itemTitle: Q(o2), itemExcerpt: Q(e6.canvas.excerpt()), itemCoverImage: s2, itemCoverMedia: { kind: `image`, image: s2 }, itemLink: Lu(n2), itemPublishedDate: Q(Tu(new Date(r2), t2, r2)), publishedDateValue: Iu, clockValue: r2, minutesToReadValue: $.minutesToRead, initialViewCount: $.views, initialCommentCount: $.comments, authorName: Q(e6.canvas.authorName()), authorImage: Xu(a2, e6.canvas.authorPhotoAlt()), timeToRead: Q(e6.timeToRead($.minutesToRead)), viewCount: Q(e6.viewCount($.views)), commentCount: Q(e6.commentCount($.comments)), itemCategoryLabel: Q(e6.canvas.category()), recentPostItem: { title: o2, slug: `` }, commentingEnabled: void 0 };
|
|
4557
4585
|
});
|
|
4558
|
-
var
|
|
4559
|
-
function
|
|
4560
|
-
let e6 = o(
|
|
4586
|
+
var $u = n(void 0);
|
|
4587
|
+
function ed() {
|
|
4588
|
+
let e6 = o($u);
|
|
4561
4589
|
if (!e6) throw Error(`useBlogFeedContext must be used within a PostListProvider`);
|
|
4562
4590
|
return e6;
|
|
4563
4591
|
}
|
|
4564
|
-
var
|
|
4565
|
-
var
|
|
4566
|
-
var
|
|
4567
|
-
var
|
|
4568
|
-
var
|
|
4592
|
+
var td = 6;
|
|
4593
|
+
var nd = (e6) => typeof e6 == `number` && Number.isFinite(e6) && e6 >= 1 ? Math.min(Math.floor(e6), 100) : td;
|
|
4594
|
+
var rd = (e6) => typeof e6 == `number` && Number.isFinite(e6) && e6 >= 1 ? Math.floor(e6) : 0;
|
|
4595
|
+
var id = (e6) => lu.includes(e6 ?? ``) ? e6 : `newest`;
|
|
4596
|
+
var ad = { postsList: [], postGalleryItems: [], emptyState: null, hasError: false, hasMorePosts: false, isLoadingPosts: true, loadMorePosts: async () => {
|
|
4569
4597
|
}, filteredView: { kind: `pending` } };
|
|
4570
|
-
var
|
|
4571
|
-
var
|
|
4598
|
+
var od = { ...ad, isLoadingPosts: false, hasError: true };
|
|
4599
|
+
var sd = (e6, t2) => {
|
|
4572
4600
|
if (e6.kind === `category` && t2.filterCategory) {
|
|
4573
4601
|
let { label: e7, description: n2, coverImage: r2 } = t2.filterCategory, i2 = e7 ?? ``;
|
|
4574
|
-
return { kind: `category`, title: i2, description: n2 ?? ``, coverImage:
|
|
4602
|
+
return { kind: `category`, title: i2, description: n2 ?? ``, coverImage: nr(r2, i2) };
|
|
4575
4603
|
}
|
|
4576
4604
|
return e6.kind === `tag` && t2.filterTag ? { kind: `tag`, title: t2.filterTag.label ?? `` } : { kind: `all` };
|
|
4577
4605
|
};
|
|
4578
|
-
var
|
|
4579
|
-
var
|
|
4580
|
-
var
|
|
4606
|
+
var cd = (e6) => ({ page: e6, hasError: false });
|
|
4607
|
+
var ld = () => ({ page: { ...$l(), fetchedAt: Date.now() }, hasError: true });
|
|
4608
|
+
var ud = (e6) => {
|
|
4581
4609
|
throw e6;
|
|
4582
4610
|
};
|
|
4583
|
-
var
|
|
4584
|
-
var
|
|
4585
|
-
let { page: v2, hasError: y2 } =
|
|
4586
|
-
|
|
4587
|
-
let { t: C2 } =
|
|
4588
|
-
if (
|
|
4589
|
-
if (
|
|
4590
|
-
ee2((t3) => [...t3, ...e7.posts]), te2((t3) => ({ ...t3, ...e7.authorsByMemberId })), re2((t3) => ({ ...t3, ...e7.categoryLabelsById })), ae2((t3) => ({ ...t3, ...e7.videoSourcesByPostId })), se2(e7.hasMore),
|
|
4611
|
+
var dd = (e6, t2) => Rn(e6, cd, t2 ? ud : ld);
|
|
4612
|
+
var fd = ({ children: e6, firstPagePromise: t2, monitoringClient: n2, language: r2, route: i2, categoryId: o2, categorySlug: s2, tagSlug: d2, postIds: f2, pageSize: m2, postOffset: h2, sortOrder: g2, featuredOnly: _2 }) => {
|
|
4613
|
+
let { page: v2, hasError: y2 } = In(t2), b2 = Mr(v2.fetchedAt), x2 = Xr(), S2 = Ir();
|
|
4614
|
+
Ar(i2, v2, S2, n2), Ta(i2.kind === `category` ? v2.mismatchedCategory : void 0, r2, cu);
|
|
4615
|
+
let { t: C2 } = Fc(), w2 = Ur(), T2 = c(() => ml(C2, w2), [C2, w2]), [E2, ee2] = u(v2.posts), [D2, te2] = u(v2.authorsByMemberId), [ne2, re2] = u(v2.categoryLabelsById), [ie2, ae2] = u(v2.videoSourcesByPostId), [oe2, se2] = u(v2.hasMore), [ce2, le2] = u(false), [ue2, de2] = u(y2), fe2 = l(h2 + v2.posts.length), pe2 = l(v2.hasMore), O2 = l(null), me2 = a(async () => {
|
|
4616
|
+
if (O2.current) return O2.current;
|
|
4617
|
+
if (pe2.current) return le2(true), O2.current = fu({ offset: fe2.current, limit: m2, language: r2, categoryId: o2, ...s2 && { categorySlug: s2 }, ...d2 && { tagSlug: d2 }, ...f2 && { postIds: f2.split(`,`) }, sortOrder: g2, featuredOnly: _2, propagateErrors: true }).then((e7) => {
|
|
4618
|
+
ee2((t3) => [...t3, ...e7.posts]), te2((t3) => ({ ...t3, ...e7.authorsByMemberId })), re2((t3) => ({ ...t3, ...e7.categoryLabelsById })), ae2((t3) => ({ ...t3, ...e7.videoSourcesByPostId })), se2(e7.hasMore), pe2.current = e7.hasMore, fe2.current += e7.posts.length, de2(false);
|
|
4591
4619
|
}).catch((e7) => {
|
|
4592
|
-
|
|
4620
|
+
de2(true), Dr(n2, e7, { feature: wr.feed, action: `load-more-posts`, contexts: { feed: { offset: fe2.current, pageSize: m2, categoryId: o2, categorySlug: s2, tagSlug: d2 } } });
|
|
4593
4621
|
}).finally(() => {
|
|
4594
|
-
|
|
4595
|
-
}),
|
|
4622
|
+
O2.current = null, le2(false);
|
|
4623
|
+
}), O2.current;
|
|
4596
4624
|
}, [r2, o2, s2, d2, f2, m2, g2, _2, n2]), he2 = c(() => {
|
|
4597
|
-
let e7 = x2 && !_2 && !o2 && !f2 && !s2 && !d2, t3 = E2.length === 0 && e7 ? v2.demoPosts ?? [] : E2, n3 = t3.map((e8) =>
|
|
4598
|
-
return { postsList: n3.length === 0 && e7 ?
|
|
4599
|
-
}, [i2, v2, E2, D2, ne2, ie2, T2, w2, S2, x2, b2,
|
|
4600
|
-
return
|
|
4625
|
+
let e7 = x2 && !_2 && !o2 && !f2 && !s2 && !d2, t3 = E2.length === 0 && e7 ? v2.demoPosts ?? [] : E2, n3 = t3.map((e8) => Gu(e8, T2, w2, S2, D2, ne2, x2, ie2, b2)), r3 = t3.map((e8) => Ku(e8, S2, ie2[e8._id ?? ``] ?? [])).filter((e8) => e8 !== void 0);
|
|
4626
|
+
return { postsList: n3.length === 0 && e7 ? Qu(T2, w2, S2, b2) : n3, postGalleryItems: r3.length === 0 && e7 ? Zu(T2) : r3, emptyState: E2.length === 0 && !ue2 ? T2.noPostsEmptyState() : null, hasError: ue2, hasMorePosts: oe2, isLoadingPosts: ce2, loadMorePosts: me2, filteredView: sd(i2, v2) };
|
|
4627
|
+
}, [i2, v2, E2, D2, ne2, ie2, T2, w2, S2, x2, b2, ue2, _2, o2, f2, s2, d2, oe2, ce2, me2]);
|
|
4628
|
+
return zr(Lr.feedProvider, ue2 ? `error` : E2.length > 0 ? `data` : `empty`), p($u.Provider, { value: he2, children: e6 });
|
|
4601
4629
|
};
|
|
4602
|
-
var
|
|
4603
|
-
function
|
|
4604
|
-
let u2 =
|
|
4605
|
-
return p(
|
|
4630
|
+
var pd = (e6, t2, n2, r2, i2, a2, o2, s2, c2) => `blog-builder:feed:${e6 ?? ``}|${t2 ?? ``}|c:${n2 ?? ``}|t:${r2 ?? ``}|p:${i2}|${a2}|${o2}|${s2}|${+!!c2}`;
|
|
4631
|
+
function md({ children: e6, categoryPicker: n2, postsPicker: r2, pageSize: i2, postOffset: a2, sortOrder: o2, featuredOnly: s2, liveRefreshGeneration: l2 = 0 }) {
|
|
4632
|
+
let u2 = Hr(), d2 = Nr(), f2 = Kn(), h2 = f2.kind === `category` ? f2.slug : void 0, g2 = f2.kind === `tag` ? f2.slug : void 0, _2 = h2 || g2 ? void 0 : mu(n2), v2 = h2 || g2 ? `` : yu(r2).join(`,`), y2 = nd(i2), b2 = rd(a2), x2 = id(o2), S2 = s2 === true, C2 = Xr() && !S2 && !_2 && !v2 && !h2 && !g2, w2 = Da(), T2 = c(() => Tr(Pn), []), { i18n: E2, locale: ee2 } = il(fl), D2 = Fr(() => ({ language: u2, route: Un(h2, g2), filterCategoryId: _2, filterPostIds: v2, categorySlug: h2, tagSlug: g2, pageSize: y2, postOffset: b2, sortOrder: x2, featuredOnly: S2, liveRefreshGeneration: l2, firstPagePromise: dd(Gc({ key: l2 > 0 ? null : pd(u2, _2, h2, g2, v2, y2, b2, x2, S2), warmupData: w2, fetchData: () => _u(Or(T2, `feed-first-page`, { feature: wr.feed, tags: { sortOrder: x2 } }, fu({ offset: b2, limit: y2, language: u2, categoryId: _2, ...h2 && { categorySlug: h2 }, ...g2 && { tagSlug: g2 }, ...v2 && { postIds: v2.split(`,`) }, sortOrder: x2, featuredOnly: S2, propagateErrors: true }).then((e7) => C2 ? du(e7, { limit: y2, offset: b2, language: u2, sortOrder: x2 }) : e7))) }), d2) }), [u2, d2, C2, _2, v2, h2, g2, y2, b2, x2, S2, l2, w2, T2]);
|
|
4633
|
+
return p(Ic, { i18n: E2, children: m(t, { fallback: p($u.Provider, { value: ad, children: e6 }), children: [p(rl, { i18n: E2, locale: ee2 }), p(gu, { fallback: p($u.Provider, { value: od, children: e6 }), feature: wr.feed, monitoringClient: T2, rethrow: d2, children: p(fd, { firstPagePromise: D2.firstPagePromise, monitoringClient: T2, language: D2.language, route: D2.route, categoryId: D2.filterCategoryId, categorySlug: D2.categorySlug, tagSlug: D2.tagSlug, postIds: D2.filterPostIds, pageSize: D2.pageSize, postOffset: D2.postOffset, sortOrder: D2.sortOrder, featuredOnly: D2.featuredOnly, children: e6 }, `${pd(D2.language, D2.filterCategoryId, D2.categorySlug, D2.tagSlug, D2.filterPostIds, D2.pageSize, D2.postOffset, D2.sortOrder, D2.featuredOnly)}#${D2.liveRefreshGeneration}`) })] }) });
|
|
4606
4634
|
}
|
|
4607
|
-
var
|
|
4635
|
+
var hd = Dn(`ada94d8c-4889-444e-b773-f1a875693fdb`);
|
|
4608
4636
|
export {
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4637
|
+
md as PostListProvider,
|
|
4638
|
+
md as default,
|
|
4639
|
+
hd as injectAccessTokenGetter,
|
|
4640
|
+
ed as useBlogFeedContext
|
|
4613
4641
|
};
|
|
4614
4642
|
//# sourceMappingURL=context-blog-feed.mjs.map
|