@orangelogic/design-system 2.116.0 → 2.118.0
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/library/chunks/asset-link-format.QzzboHHE.js +6 -0
- package/library/chunks/asset.CIWxY-Aw.js +469 -0
- package/library/chunks/{endpoints.DBlquU2-.js → endpoints.D4h8hp1m.js} +90 -90
- package/library/chunks/{folder-select.Bc9x2hMO.js → folder-select.CrWjwQcw.js} +2 -2
- package/library/chunks/{list-editor.on8VVRn-.js → list-editor.BfpDIsU5.js} +127 -122
- package/library/chunks/{transformation.BlQCWMfI.js → transformation.c-RS37zA.js} +1 -1
- package/library/components/asset-link-format.js +3 -3
- package/library/components/audio.js +165 -103
- package/library/components/cropper.js +1 -1
- package/library/components/folder-select.js +2 -2
- package/library/components/list-editor.js +1 -1
- package/library/components/molecules.js +2 -2
- package/library/components/select.js +107 -107
- package/library/components/types.js +23959 -24121
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +32 -5
- package/library/packages/molecules/src/asset-data-display/asset-data-display.d.ts +2 -1
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
- package/library/packages/molecules/src/index.d.ts +0 -1
- package/library/packages/molecules/src/page-outline/page-outline.d.ts +1 -2
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +4 -1
- package/library/packages/organisms/src/chatbot/chatbot.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/configs/audio.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -0
- package/library/packages/services/src/api/asset/asset.d.ts +6 -3
- package/library/packages/services/src/api/endpoints.d.ts +2 -1
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +6 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +2 -0
- package/library/packages/types/src/asset-link-format.d.ts +1 -0
- package/library/packages/types/src/content-builder.d.ts +4 -0
- package/library/react-web-component.d.ts +741 -721
- package/library/utils.js +1 -1
- package/package.json +1 -1
- package/library/chunks/asset-link-format.B0c92pSs.js +0 -6
- package/library/chunks/asset.D_xAgoOX.js +0 -460
- package/library/packages/molecules/src/timeline/timeline.d.ts +0 -71
- package/library/packages/molecules/src/timeline/timeline.styles.d.ts +0 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var u = /* @__PURE__ */ ((t) => (t.AspectRatio = "%", t.Pixel = "px", t))(u || {}), e = /* @__PURE__ */ ((t) => (t.Album = "Album", t.Audio = "Audio", t.AudioSegment = "Audio segment", t.Image = "Image", t.Multimedia = "Multimedia", t.ProjectDocument = "ProjectDocument", t.Story = "Story", t.Video = "Video", t.Widget = "Widget", t))(e || {}), r = /* @__PURE__ */ ((t) => (t.Crop = "Crop", t.Metadata = "Metadata", t.Proxy = "Proxy", t.Quality = "Quality", t.Resize = "Resize", t.Rotate = "Rotate", t))(r || {});
|
|
2
|
+
export {
|
|
3
|
+
e as M,
|
|
4
|
+
r as T,
|
|
5
|
+
u as U
|
|
6
|
+
};
|
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
import { h as l, C as Z, S as z, A as B, a as X, b as Y } from "./endpoints.D4h8hp1m.js";
|
|
2
|
+
import { M as G } from "./asset-link-format.QzzboHHE.js";
|
|
3
|
+
import "./debounce.CIEhztrj.js";
|
|
4
|
+
import "./lit-element.jLBm65_O.js";
|
|
5
|
+
import "./form.B-5nQJva.js";
|
|
6
|
+
import "./i18n.CH-wak_P.js";
|
|
7
|
+
import { a as Q } from "./string.DUgD4c9f.js";
|
|
8
|
+
import "./date-picker.D0SJADN6.js";
|
|
9
|
+
import "./content-builder.OsUmm8Wu.js";
|
|
10
|
+
import "./unsafe-html.Dff7-rCx.js";
|
|
11
|
+
import { b as J } from "./_baseUniq.HFKneygy.js";
|
|
12
|
+
function ee(e) {
|
|
13
|
+
return e && e.length ? J(e) : [];
|
|
14
|
+
}
|
|
15
|
+
function te(e) {
|
|
16
|
+
return typeof e == "object" && e !== null && "URI" in e;
|
|
17
|
+
}
|
|
18
|
+
const re = {
|
|
19
|
+
artist: "Artist",
|
|
20
|
+
color: "Color",
|
|
21
|
+
createDate: "CreateDate",
|
|
22
|
+
directParentFolderIdentifier: "DirectParentFolderIdentifier",
|
|
23
|
+
docSubType: "DocSubType",
|
|
24
|
+
docType: "DocType",
|
|
25
|
+
editDate: "EditDate",
|
|
26
|
+
fileExtension: "Fileextension",
|
|
27
|
+
keyword: "Keyword",
|
|
28
|
+
mediaDate: "MediaDate",
|
|
29
|
+
mediaNumber: "MediaNumber",
|
|
30
|
+
nativeKeyword: "NativeKeyword",
|
|
31
|
+
orientation: "Orientation",
|
|
32
|
+
parentFolderIdentifier: "ParentFolderIdentifier",
|
|
33
|
+
path: "Path",
|
|
34
|
+
photographer: "Photographer",
|
|
35
|
+
purpose: "Purpose",
|
|
36
|
+
recordId: "RecordID",
|
|
37
|
+
systemIdentifier: "SystemIdentifier",
|
|
38
|
+
text: "Text",
|
|
39
|
+
title: "Title"
|
|
40
|
+
}, oe = /* @__PURE__ */ new Set(["mediaDate", "createDate", "editDate"]);
|
|
41
|
+
function g(e) {
|
|
42
|
+
return !/[\s&+/*"\\:(),'<>~|[\]{}]/.test(e) && !/^(?:OR|AND|NOT)$/.test(e) ? e : `"${e.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
43
|
+
}
|
|
44
|
+
function M(e, t) {
|
|
45
|
+
const r = (Array.isArray(t) ? t : [t]).map((a) => `${e}:${g(a)}`);
|
|
46
|
+
return r.length > 1 ? `(${r.join(" OR ")})` : r[0] ?? "";
|
|
47
|
+
}
|
|
48
|
+
function ne(e, t) {
|
|
49
|
+
return (Array.isArray(t) ? t : [t]).map((r) => `${e}${r.operator}${r.value}`).join(" AND ");
|
|
50
|
+
}
|
|
51
|
+
function se(e) {
|
|
52
|
+
const t = [];
|
|
53
|
+
for (const o of Object.keys(e)) {
|
|
54
|
+
const r = o, a = e[r];
|
|
55
|
+
if (a == null)
|
|
56
|
+
continue;
|
|
57
|
+
if (r === "custom") {
|
|
58
|
+
for (const [n, d] of Object.entries(
|
|
59
|
+
a
|
|
60
|
+
))
|
|
61
|
+
t.push(M(n, d));
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
const u = re[r];
|
|
65
|
+
if (u) {
|
|
66
|
+
if (oe.has(r)) {
|
|
67
|
+
t.push(
|
|
68
|
+
ne(u, a)
|
|
69
|
+
);
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
if (r === "color") {
|
|
73
|
+
t.push(`${u}:${a}`);
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if (r === "parentFolderIdentifier") {
|
|
77
|
+
const n = Array.isArray(a) ? a : [a];
|
|
78
|
+
if (n.length === 0)
|
|
79
|
+
continue;
|
|
80
|
+
const d = [
|
|
81
|
+
...n.map((f) => `ParentFolderIdentifier:${g(String(f))}`),
|
|
82
|
+
...n.map((f) => `ParentAlbumIdentifier:${g(String(f))}`)
|
|
83
|
+
];
|
|
84
|
+
t.push(`(${d.join(" OR ")})`);
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
t.push(M(u, a));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return t.join(" AND ");
|
|
91
|
+
}
|
|
92
|
+
function y(e) {
|
|
93
|
+
if ("and" in e)
|
|
94
|
+
return e.and.map(y).filter(Boolean).join(" AND ");
|
|
95
|
+
if ("or" in e) {
|
|
96
|
+
const t = e.or.map(y).filter(Boolean);
|
|
97
|
+
return t.length > 1 ? `(${t.join(" OR ")})` : t[0] ?? "";
|
|
98
|
+
}
|
|
99
|
+
if ("not" in e) {
|
|
100
|
+
const t = y(e.not);
|
|
101
|
+
return t ? `NOT (${t})` : "";
|
|
102
|
+
}
|
|
103
|
+
return se(e);
|
|
104
|
+
}
|
|
105
|
+
const N = "CoreField.LargeSizePreview", U = "CoreField.DocType", ae = "Document.Title", ie = "Document.CaptionLong", v = "Document.FileExtension", j = "CoreField.FileSize", W = "CoreField.Identifier", H = "CoreField.Keywords", w = "CoreField.MaxHeight", $ = "CoreField.MaxWidth", h = "Document.RecordID", x = "CoreField.DocSubType", K = "CoreField.TitleWithFallback", F = "CoreField.OriginalFileName", S = "CoreField.UpdatedFileName", E = "CoreField.OriginalPreview", C = {
|
|
106
|
+
DEFAULT_VIEW_SIZE: "Document.LargeSizePreview",
|
|
107
|
+
FIELD_TITLE_WITH_FALLBACK: "Document.TitleWithFallback",
|
|
108
|
+
ORIGINAL_VIEW_SIZE: "Document.OriginalPreview"
|
|
109
|
+
}, q = {
|
|
110
|
+
[N]: C.DEFAULT_VIEW_SIZE,
|
|
111
|
+
[K]: C.FIELD_TITLE_WITH_FALLBACK,
|
|
112
|
+
[E]: C.ORIGINAL_VIEW_SIZE
|
|
113
|
+
}, ce = Object.fromEntries(
|
|
114
|
+
Object.entries(q).map(([e, t]) => [
|
|
115
|
+
t,
|
|
116
|
+
e
|
|
117
|
+
])
|
|
118
|
+
);
|
|
119
|
+
function ue(e) {
|
|
120
|
+
return q[e] ?? e;
|
|
121
|
+
}
|
|
122
|
+
function k(e) {
|
|
123
|
+
const t = {};
|
|
124
|
+
for (const [o, r] of Object.entries(e)) {
|
|
125
|
+
const a = ce[o] ?? o;
|
|
126
|
+
t[a] = r;
|
|
127
|
+
}
|
|
128
|
+
return t;
|
|
129
|
+
}
|
|
130
|
+
async function V({
|
|
131
|
+
countPerPage: e,
|
|
132
|
+
fields: t,
|
|
133
|
+
getPermanentAssetsPaths: o,
|
|
134
|
+
isSiteBuilder: r,
|
|
135
|
+
pageNumber: a,
|
|
136
|
+
query: u,
|
|
137
|
+
securityByPassToken: n,
|
|
138
|
+
siteUrl: d,
|
|
139
|
+
sort: f,
|
|
140
|
+
token: m,
|
|
141
|
+
useSession: A
|
|
142
|
+
}) {
|
|
143
|
+
const _ = t?.map(ue);
|
|
144
|
+
try {
|
|
145
|
+
return (await l.request({
|
|
146
|
+
baseURL: d,
|
|
147
|
+
headers: m ? { Authorization: `Bearer ${m}` } : void 0,
|
|
148
|
+
method: "GET",
|
|
149
|
+
params: {
|
|
150
|
+
CountPerPage: e,
|
|
151
|
+
Fields: ee(_),
|
|
152
|
+
Format: "json",
|
|
153
|
+
GetPermanentAssetsPaths: o || void 0,
|
|
154
|
+
PageNumber: a,
|
|
155
|
+
Query: y(u),
|
|
156
|
+
SecurityByPassToken: n || void 0,
|
|
157
|
+
Sort: f || void 0,
|
|
158
|
+
UseSession: A || void 0
|
|
159
|
+
},
|
|
160
|
+
paramsSerializer: { indexes: null },
|
|
161
|
+
responseType: "json",
|
|
162
|
+
transformResponse: [
|
|
163
|
+
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
164
|
+
r ? (s) => ({
|
|
165
|
+
items: (s.results?.Items ?? []).map(k),
|
|
166
|
+
sort: s.results?.GlobalInfo?.Sort ?? "",
|
|
167
|
+
totalCount: s.results?.GlobalInfo?.TotalCount ?? 0
|
|
168
|
+
}) : (s) => ({
|
|
169
|
+
items: (s.APIResponse?.Items ?? []).map(k),
|
|
170
|
+
sort: s.APIResponse?.GlobalInfo?.Sort ?? "",
|
|
171
|
+
totalCount: s.APIResponse?.GlobalInfo?.TotalCount ?? 0
|
|
172
|
+
})
|
|
173
|
+
],
|
|
174
|
+
url: r ? Z.SEARCH_ASSETS : z["4.0"]
|
|
175
|
+
})).data;
|
|
176
|
+
} catch {
|
|
177
|
+
return { items: [], sort: "", totalCount: 0 };
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
async function Fe({
|
|
181
|
+
assetId: e,
|
|
182
|
+
extension: t,
|
|
183
|
+
format: o,
|
|
184
|
+
siteUrl: r,
|
|
185
|
+
token: a,
|
|
186
|
+
transformations: u,
|
|
187
|
+
useSession: n
|
|
188
|
+
}) {
|
|
189
|
+
try {
|
|
190
|
+
return (await l.request({
|
|
191
|
+
baseURL: r,
|
|
192
|
+
method: "GET",
|
|
193
|
+
params: {
|
|
194
|
+
SourceAssetFormat: o,
|
|
195
|
+
SourceAssetRecordID: e,
|
|
196
|
+
TargetExtension: Q(t),
|
|
197
|
+
Token: a || void 0,
|
|
198
|
+
Transformations: u,
|
|
199
|
+
UseSession: n || void 0
|
|
200
|
+
},
|
|
201
|
+
/**
|
|
202
|
+
* https://link.orangelogic.com/Tasks/41S1XH
|
|
203
|
+
*/
|
|
204
|
+
timeout: 3e5,
|
|
205
|
+
// 5 minutes
|
|
206
|
+
url: B.GET_TRANSFORM_ASSET_LINK
|
|
207
|
+
})).data;
|
|
208
|
+
} catch {
|
|
209
|
+
return null;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
const le = 50;
|
|
213
|
+
function de(e, t) {
|
|
214
|
+
const o = [];
|
|
215
|
+
for (let r = 0; r < e.length; r += t)
|
|
216
|
+
o.push(e.slice(r, r + t));
|
|
217
|
+
return o;
|
|
218
|
+
}
|
|
219
|
+
async function Se({
|
|
220
|
+
extraFields: e,
|
|
221
|
+
getPermanentAssetsPaths: t,
|
|
222
|
+
isSiteBuilder: o,
|
|
223
|
+
recordIds: r,
|
|
224
|
+
securityByPassToken: a,
|
|
225
|
+
token: u
|
|
226
|
+
}) {
|
|
227
|
+
if (!Array.isArray(r) || r.length === 0)
|
|
228
|
+
return { facets: [], items: [], totalCount: 0 };
|
|
229
|
+
const n = e?.filter((s) => s && typeof s == "string") ?? [], d = [
|
|
230
|
+
...n,
|
|
231
|
+
E,
|
|
232
|
+
S,
|
|
233
|
+
F,
|
|
234
|
+
ae,
|
|
235
|
+
ie,
|
|
236
|
+
h
|
|
237
|
+
], f = de(r, le), m = await Promise.all(
|
|
238
|
+
f.map(
|
|
239
|
+
(s) => V({
|
|
240
|
+
countPerPage: s.length,
|
|
241
|
+
fields: d,
|
|
242
|
+
getPermanentAssetsPaths: t,
|
|
243
|
+
isSiteBuilder: o,
|
|
244
|
+
pageNumber: 1,
|
|
245
|
+
query: { recordId: s },
|
|
246
|
+
securityByPassToken: a,
|
|
247
|
+
token: u
|
|
248
|
+
})
|
|
249
|
+
)
|
|
250
|
+
), A = new Map(r.map((s, p) => [s, p])), _ = m.flatMap((s) => s.items).map((s) => {
|
|
251
|
+
let p = c(s, S);
|
|
252
|
+
return p === "" && (p = c(s, F)), {
|
|
253
|
+
name: p,
|
|
254
|
+
originalUrl: c(s, E),
|
|
255
|
+
recordId: c(s, h),
|
|
256
|
+
...n.reduce(
|
|
257
|
+
(D, i) => (D[i] = c(s, i), D),
|
|
258
|
+
{}
|
|
259
|
+
)
|
|
260
|
+
};
|
|
261
|
+
}).sort(
|
|
262
|
+
(s, p) => (A.get(s.recordId) ?? 1 / 0) - (A.get(p.recordId) ?? 1 / 0)
|
|
263
|
+
), T = m.reduce(
|
|
264
|
+
(s, p) => s + p.totalCount,
|
|
265
|
+
0
|
|
266
|
+
);
|
|
267
|
+
return { facets: [], items: _, totalCount: T };
|
|
268
|
+
}
|
|
269
|
+
function c(e, t) {
|
|
270
|
+
const o = e[t];
|
|
271
|
+
return o == null ? "" : typeof o == "string" ? o : typeof o == "number" || typeof o == "boolean" ? String(o) : te(o) ? o.URI : "";
|
|
272
|
+
}
|
|
273
|
+
async function Le({
|
|
274
|
+
countPerPage: e,
|
|
275
|
+
directParentFolderIdentifier: t,
|
|
276
|
+
extraFields: o,
|
|
277
|
+
getPermanentAssetsPaths: r,
|
|
278
|
+
isSiteBuilder: a,
|
|
279
|
+
limitedDocTypes: u,
|
|
280
|
+
pageNumber: n,
|
|
281
|
+
parentFolderIdentifier: d,
|
|
282
|
+
searchTerm: f,
|
|
283
|
+
securityByPassToken: m,
|
|
284
|
+
sortOrder: A,
|
|
285
|
+
token: _
|
|
286
|
+
}) {
|
|
287
|
+
if (!t && !d)
|
|
288
|
+
return { facets: [], items: [], totalCount: 0 };
|
|
289
|
+
const T = (o?.filter((i) => i && typeof i == "string") ?? []).map((i) => i.replace("%20", " ")), s = {
|
|
290
|
+
directParentFolderIdentifier: t,
|
|
291
|
+
parentFolderIdentifier: d,
|
|
292
|
+
...u.length > 0 ? { docType: [G.Image, G.Audio] } : {}
|
|
293
|
+
}, p = await V({
|
|
294
|
+
countPerPage: e,
|
|
295
|
+
fields: [
|
|
296
|
+
...T,
|
|
297
|
+
K,
|
|
298
|
+
N,
|
|
299
|
+
E,
|
|
300
|
+
H,
|
|
301
|
+
$,
|
|
302
|
+
w,
|
|
303
|
+
j,
|
|
304
|
+
U,
|
|
305
|
+
x,
|
|
306
|
+
W,
|
|
307
|
+
v,
|
|
308
|
+
h,
|
|
309
|
+
F,
|
|
310
|
+
S
|
|
311
|
+
],
|
|
312
|
+
getPermanentAssetsPaths: r,
|
|
313
|
+
isSiteBuilder: a,
|
|
314
|
+
pageNumber: n,
|
|
315
|
+
query: s,
|
|
316
|
+
securityByPassToken: m,
|
|
317
|
+
sort: void 0,
|
|
318
|
+
token: _
|
|
319
|
+
}), D = p.items.map((i) => {
|
|
320
|
+
let I = c(i, v), L = c(i, S), P = c(i, N);
|
|
321
|
+
I && !I.startsWith(".") && (I = "." + I), L === "" && (L = c(i, F)), I.toLowerCase() === ".gif" && (P = c(i, E));
|
|
322
|
+
const R = c(i, h);
|
|
323
|
+
return {
|
|
324
|
+
docSubType: c(i, x),
|
|
325
|
+
docType: c(i, U) || "",
|
|
326
|
+
extension: I,
|
|
327
|
+
height: c(i, w) || "0",
|
|
328
|
+
id: R,
|
|
329
|
+
identifier: c(i, W),
|
|
330
|
+
imageUrl: P,
|
|
331
|
+
name: L,
|
|
332
|
+
originalUrl: c(i, E),
|
|
333
|
+
recordId: R,
|
|
334
|
+
size: c(i, j) || "0 MB",
|
|
335
|
+
tags: c(i, H),
|
|
336
|
+
width: c(i, $) || "0",
|
|
337
|
+
...T.reduce(
|
|
338
|
+
(O, b) => (O[b] = c(i, b), O),
|
|
339
|
+
{}
|
|
340
|
+
)
|
|
341
|
+
};
|
|
342
|
+
});
|
|
343
|
+
return {
|
|
344
|
+
facets: [],
|
|
345
|
+
items: D,
|
|
346
|
+
totalCount: p.totalCount
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
async function Ce({
|
|
350
|
+
autoCropMode: e,
|
|
351
|
+
cropHeight: t,
|
|
352
|
+
cropWidth: o,
|
|
353
|
+
imageUrl: r,
|
|
354
|
+
useSession: a
|
|
355
|
+
}) {
|
|
356
|
+
try {
|
|
357
|
+
return (await l.request({
|
|
358
|
+
method: "GET",
|
|
359
|
+
params: {
|
|
360
|
+
AutoCropMode: e,
|
|
361
|
+
CropHeight: t,
|
|
362
|
+
CropWidth: o,
|
|
363
|
+
ImageUrl: r && new URL(r, window.location.origin).href,
|
|
364
|
+
UseSession: a || void 0
|
|
365
|
+
},
|
|
366
|
+
responseType: "json",
|
|
367
|
+
timeout: 3e5,
|
|
368
|
+
// 5 minutes
|
|
369
|
+
transformResponse: [
|
|
370
|
+
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
371
|
+
(n) => ({
|
|
372
|
+
height: n.cropHeight,
|
|
373
|
+
width: n.cropWidth,
|
|
374
|
+
x: n.cropX,
|
|
375
|
+
y: n.cropY
|
|
376
|
+
})
|
|
377
|
+
],
|
|
378
|
+
url: B.GET_CROP_ZONE_SUGGESTION
|
|
379
|
+
})).data;
|
|
380
|
+
} catch {
|
|
381
|
+
return null;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
async function ge({
|
|
385
|
+
assetRecordId: e,
|
|
386
|
+
siteUrl: t,
|
|
387
|
+
token: o,
|
|
388
|
+
useSession: r
|
|
389
|
+
}) {
|
|
390
|
+
try {
|
|
391
|
+
return (await l.request({
|
|
392
|
+
baseURL: t,
|
|
393
|
+
method: "GET",
|
|
394
|
+
params: {
|
|
395
|
+
RecordId: e,
|
|
396
|
+
Token: o,
|
|
397
|
+
UseSession: r || void 0
|
|
398
|
+
},
|
|
399
|
+
responseType: "json",
|
|
400
|
+
transformResponse: [
|
|
401
|
+
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
402
|
+
(u) => !u || typeof u != "object" ? [] : u.proxies?.map((n) => ({
|
|
403
|
+
cdnName: n.cdnName,
|
|
404
|
+
extension: n.extension,
|
|
405
|
+
formatHeight: n.formatHeight,
|
|
406
|
+
formatWidth: n.formatWidth,
|
|
407
|
+
height: n.height,
|
|
408
|
+
permanentLink: n.permanentLink,
|
|
409
|
+
proxyLabel: n.proxyLabel,
|
|
410
|
+
proxyName: n.proxyName,
|
|
411
|
+
width: n.width
|
|
412
|
+
})) ?? []
|
|
413
|
+
],
|
|
414
|
+
url: Y
|
|
415
|
+
})).data;
|
|
416
|
+
} catch {
|
|
417
|
+
return [];
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
async function Ne({
|
|
421
|
+
siteUrl: e
|
|
422
|
+
} = {}) {
|
|
423
|
+
try {
|
|
424
|
+
return (await l.request({
|
|
425
|
+
baseURL: e,
|
|
426
|
+
method: "GET",
|
|
427
|
+
responseType: "json",
|
|
428
|
+
transformResponse: [
|
|
429
|
+
...Array.isArray(l.defaults.transformResponse) ? l.defaults.transformResponse : [],
|
|
430
|
+
(o) => !o || typeof o != "object" ? {
|
|
431
|
+
formatsByDocType: {
|
|
432
|
+
Audio: {},
|
|
433
|
+
Image: {},
|
|
434
|
+
Multimedia: {},
|
|
435
|
+
Video: {}
|
|
436
|
+
}
|
|
437
|
+
} : {
|
|
438
|
+
formatsByDocType: o.formatsByDocType ?? {}
|
|
439
|
+
}
|
|
440
|
+
],
|
|
441
|
+
url: X
|
|
442
|
+
})).data;
|
|
443
|
+
} catch {
|
|
444
|
+
return { formatsByDocType: {} };
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
export {
|
|
448
|
+
N as D,
|
|
449
|
+
ae as F,
|
|
450
|
+
E as O,
|
|
451
|
+
Se as a,
|
|
452
|
+
K as b,
|
|
453
|
+
Fe as c,
|
|
454
|
+
Ce as d,
|
|
455
|
+
Ne as e,
|
|
456
|
+
Le as f,
|
|
457
|
+
w as g,
|
|
458
|
+
$ as h,
|
|
459
|
+
U as i,
|
|
460
|
+
v as j,
|
|
461
|
+
ge as k,
|
|
462
|
+
j as l,
|
|
463
|
+
W as m,
|
|
464
|
+
x as n,
|
|
465
|
+
V as o,
|
|
466
|
+
h as p,
|
|
467
|
+
te as q,
|
|
468
|
+
ee as u
|
|
469
|
+
};
|