@orangelogic/design-system 2.141.0 → 2.142.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.BDuHqEN5.js → asset-link-format.Du63EIst.js} +238 -214
- package/library/chunks/{document-viewer.BqZzhJyR.js → document-viewer.DQXvmHvo.js} +1 -1
- package/library/chunks/{endpoints.BlywT4Gl.js → endpoints.ASL1clzd.js} +89 -88
- package/library/chunks/{file-on-demand.Bxq3-Dk1.js → file-on-demand.Bve3SdQJ.js} +39 -39
- package/library/chunks/{folder-select.CpK1RX9O.js → folder-select.BudMvcEM.js} +1 -1
- package/library/chunks/{image.u2nQNoZ8.js → image.B3vsXGrN.js} +1 -1
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +2 -2
- package/library/components/color-picker.js +79 -72
- package/library/components/document-viewer.js +2 -2
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +2 -2
- package/library/components/image.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/molecules.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/types.js +10210 -10194
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +1 -0
- package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +1 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +1 -0
- package/library/packages/services/src/api/asset/asset.d.ts +2 -1
- package/library/packages/services/src/api/endpoints.d.ts +3 -0
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ import { a as ObjectFit } from "./index.Cpamj0jB.js";
|
|
|
33
33
|
import { r as r$1 } from "./state.CSDxrqLd.js";
|
|
34
34
|
import { e } from "./class-map.BiVq-cVR.js";
|
|
35
35
|
import { n as n$1 } from "./when.Dr1es41R.js";
|
|
36
|
-
import { C as CxImage } from "./image.
|
|
36
|
+
import { C as CxImage } from "./image.B3vsXGrN.js";
|
|
37
37
|
var BookReaderMode$1 = /* @__PURE__ */ ((l) => (l.Image = "Image", l.Pdf = "Pdf", l))(BookReaderMode$1 || {}), BookReaderViewMode = /* @__PURE__ */ ((l) => (l.FourPage = "FourPage", l.OnePage = "OnePage", l.TwoPage = "TwoPage", l))(BookReaderViewMode || {});
|
|
38
38
|
function commonjsRequire(l) {
|
|
39
39
|
throw new Error('Could not dynamically require "' + l + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
@@ -28,7 +28,7 @@ const bt = ne("string"), O = ne("function"), He = ne("number"), J = (e) => e !==
|
|
|
28
28
|
} catch {
|
|
29
29
|
return !1;
|
|
30
30
|
}
|
|
31
|
-
}, Et = v("Date"), gt = v("File"), St = v("Blob"), Rt = v("FileList"),
|
|
31
|
+
}, Et = v("Date"), gt = v("File"), St = v("Blob"), Rt = v("FileList"), _t = (e) => J(e) && O(e.pipe), At = (e) => {
|
|
32
32
|
let t;
|
|
33
33
|
return e && (typeof FormData == "function" && e instanceof FormData || O(e.append) && ((t = re(e)) === "formdata" || // detect form-data instance
|
|
34
34
|
t === "object" && O(e.toString) && e.toString() === "[object FormData]"));
|
|
@@ -72,7 +72,7 @@ function ue() {
|
|
|
72
72
|
}
|
|
73
73
|
const Ft = (e, t, r, { allOwnKeys: n } = {}) => (W(t, (s, i) => {
|
|
74
74
|
r && O(s) ? e[i] = Ie(s, r) : e[i] = s;
|
|
75
|
-
}, { allOwnKeys: n }), e),
|
|
75
|
+
}, { allOwnKeys: n }), e), jt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ut = (e, t, r, n) => {
|
|
76
76
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
77
77
|
value: t.prototype
|
|
78
78
|
}), r && Object.assign(e.prototype, r);
|
|
@@ -180,7 +180,7 @@ const $t = (e) => {
|
|
|
180
180
|
isArray: I,
|
|
181
181
|
isArrayBuffer: qe,
|
|
182
182
|
isBuffer: V,
|
|
183
|
-
isFormData:
|
|
183
|
+
isFormData: At,
|
|
184
184
|
isArrayBufferView: mt,
|
|
185
185
|
isString: bt,
|
|
186
186
|
isNumber: He,
|
|
@@ -198,7 +198,7 @@ const $t = (e) => {
|
|
|
198
198
|
isBlob: St,
|
|
199
199
|
isRegExp: Ht,
|
|
200
200
|
isFunction: O,
|
|
201
|
-
isStream:
|
|
201
|
+
isStream: _t,
|
|
202
202
|
isURLSearchParams: Tt,
|
|
203
203
|
isTypedArray: Pt,
|
|
204
204
|
isFileList: Rt,
|
|
@@ -206,8 +206,8 @@ const $t = (e) => {
|
|
|
206
206
|
merge: ue,
|
|
207
207
|
extend: Ft,
|
|
208
208
|
trim: Lt,
|
|
209
|
-
stripBOM:
|
|
210
|
-
inherits:
|
|
209
|
+
stripBOM: jt,
|
|
210
|
+
inherits: Ut,
|
|
211
211
|
toFlatObject: kt,
|
|
212
212
|
kindOf: re,
|
|
213
213
|
kindOfTest: v,
|
|
@@ -293,7 +293,7 @@ function de(e) {
|
|
|
293
293
|
function Ke(e) {
|
|
294
294
|
return c.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function _e(e, t, r) {
|
|
297
297
|
return e ? e.concat(t).map(function(s, i) {
|
|
298
298
|
return s = Ke(s), !r && i ? "[" + s + "]" : s;
|
|
299
299
|
}).join(r ? "." : "") : t;
|
|
@@ -336,12 +336,12 @@ function se(e, t, r) {
|
|
|
336
336
|
return m = Ke(m), E.forEach(function(g, x) {
|
|
337
337
|
!(c.isUndefined(g) || g === null) && t.append(
|
|
338
338
|
// eslint-disable-next-line no-nested-ternary
|
|
339
|
-
a === !0 ?
|
|
339
|
+
a === !0 ? _e([m], x, i) : a === null ? m : m + "[]",
|
|
340
340
|
u(g)
|
|
341
341
|
);
|
|
342
342
|
}), !1;
|
|
343
343
|
}
|
|
344
|
-
return de(f) ? !0 : (t.append(
|
|
344
|
+
return de(f) ? !0 : (t.append(_e(b, m, i), u(f)), !1);
|
|
345
345
|
}
|
|
346
346
|
const h = [], p = Object.assign(tr, {
|
|
347
347
|
defaultVisitor: l,
|
|
@@ -367,7 +367,7 @@ function se(e, t, r) {
|
|
|
367
367
|
throw new TypeError("data must be an object");
|
|
368
368
|
return y(e), t;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Ae(e) {
|
|
371
371
|
const t = {
|
|
372
372
|
"!": "%21",
|
|
373
373
|
"'": "%27",
|
|
@@ -390,8 +390,8 @@ Xe.append = function(t, r) {
|
|
|
390
390
|
};
|
|
391
391
|
Xe.toString = function(t) {
|
|
392
392
|
const r = t ? function(n) {
|
|
393
|
-
return t.call(this, n,
|
|
394
|
-
} :
|
|
393
|
+
return t.call(this, n, Ae);
|
|
394
|
+
} : Ae;
|
|
395
395
|
return this._pairs.map(function(s) {
|
|
396
396
|
return r(s[0]) + "=" + r(s[1]);
|
|
397
397
|
}, "").join("&");
|
|
@@ -853,7 +853,7 @@ function Rr(e, t) {
|
|
|
853
853
|
return y ? Math.round(p * 1e3 / y) : void 0;
|
|
854
854
|
};
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function _r(e, t) {
|
|
857
857
|
let r = 0, n = 1e3 / t, s, i;
|
|
858
858
|
const a = (u, l = Date.now()) => {
|
|
859
859
|
r = l, s = null, i && (clearTimeout(i), i = null), e(...u);
|
|
@@ -868,7 +868,7 @@ function Ar(e, t) {
|
|
|
868
868
|
const Z = (e, t, r = 3) => {
|
|
869
869
|
let n = 0;
|
|
870
870
|
const s = Rr(50, 250);
|
|
871
|
-
return
|
|
871
|
+
return _r((i) => {
|
|
872
872
|
const a = i.loaded, o = i.lengthComputable ? i.total : void 0, d = a - n, u = s(d), l = a <= o;
|
|
873
873
|
n = a;
|
|
874
874
|
const h = {
|
|
@@ -891,7 +891,7 @@ const Z = (e, t, r = 3) => {
|
|
|
891
891
|
total: e,
|
|
892
892
|
loaded: n
|
|
893
893
|
}), t[1]];
|
|
894
|
-
}, xe = (e) => (...t) => c.asap(() => e(...t)),
|
|
894
|
+
}, xe = (e) => (...t) => c.asap(() => e(...t)), Ar = T.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, T.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
895
895
|
new URL(T.origin),
|
|
896
896
|
T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)
|
|
897
897
|
) : () => !0, Tr = T.hasStandardBrowserEnv ? (
|
|
@@ -1012,7 +1012,7 @@ const nt = (e) => {
|
|
|
1012
1012
|
a.setContentType([u || "multipart/form-data", ...l].join("; "));
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
|
-
if (T.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(t)), n || n !== !1 &&
|
|
1015
|
+
if (T.hasStandardBrowserEnv && (n && c.isFunction(n) && (n = n(t)), n || n !== !1 && Ar(t.url))) {
|
|
1016
1016
|
const u = s && i && Tr.read(i);
|
|
1017
1017
|
u && a.set(s, u);
|
|
1018
1018
|
}
|
|
@@ -1033,7 +1033,7 @@ const nt = (e) => {
|
|
|
1033
1033
|
return;
|
|
1034
1034
|
const g = C.from(
|
|
1035
1035
|
"getAllResponseHeaders" in b && b.getAllResponseHeaders()
|
|
1036
|
-
),
|
|
1036
|
+
), _ = {
|
|
1037
1037
|
data: !o || o === "text" || o === "json" ? b.responseText : b.response,
|
|
1038
1038
|
status: b.status,
|
|
1039
1039
|
statusText: b.statusText,
|
|
@@ -1041,11 +1041,11 @@ const nt = (e) => {
|
|
|
1041
1041
|
config: e,
|
|
1042
1042
|
request: b
|
|
1043
1043
|
};
|
|
1044
|
-
tt(function(
|
|
1045
|
-
r(
|
|
1046
|
-
}, function(
|
|
1047
|
-
n(
|
|
1048
|
-
},
|
|
1044
|
+
tt(function(U) {
|
|
1045
|
+
r(U), m();
|
|
1046
|
+
}, function(U) {
|
|
1047
|
+
n(U), m();
|
|
1048
|
+
}, _), b = null;
|
|
1049
1049
|
}
|
|
1050
1050
|
"onloadend" in b ? b.onloadend = E : b.onreadystatechange = function() {
|
|
1051
1051
|
!b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(E);
|
|
@@ -1055,15 +1055,15 @@ const nt = (e) => {
|
|
|
1055
1055
|
n(new w("Network Error", w.ERR_NETWORK, e, b)), b = null;
|
|
1056
1056
|
}, b.ontimeout = function() {
|
|
1057
1057
|
let x = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
1058
|
-
const
|
|
1058
|
+
const _ = s.transitional || Qe;
|
|
1059
1059
|
s.timeoutErrorMessage && (x = s.timeoutErrorMessage), n(new w(
|
|
1060
1060
|
x,
|
|
1061
|
-
|
|
1061
|
+
_.clarifyTimeoutError ? w.ETIMEDOUT : w.ECONNABORTED,
|
|
1062
1062
|
e,
|
|
1063
1063
|
b
|
|
1064
1064
|
)), b = null;
|
|
1065
|
-
}, i === void 0 && a.setContentType(null), "setRequestHeader" in b && c.forEach(a.toJSON(), function(x,
|
|
1066
|
-
b.setRequestHeader(
|
|
1065
|
+
}, i === void 0 && a.setContentType(null), "setRequestHeader" in b && c.forEach(a.toJSON(), function(x, _) {
|
|
1066
|
+
b.setRequestHeader(_, x);
|
|
1067
1067
|
}), c.isUndefined(s.withCredentials) || (b.withCredentials = !!s.withCredentials), o && o !== "json" && (b.responseType = s.responseType), u && ([p, f] = Z(u, !0), b.addEventListener("progress", p)), d && b.upload && ([h, y] = Z(d), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", y)), (s.cancelToken || s.signal) && (l = (g) => {
|
|
1068
1068
|
b && (n(!g || g.type ? new M(null, e, b) : g), b.abort(), b = null);
|
|
1069
1069
|
}, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
|
|
@@ -1106,10 +1106,10 @@ const nt = (e) => {
|
|
|
1106
1106
|
let n = 0, s;
|
|
1107
1107
|
for (; n < r; )
|
|
1108
1108
|
s = n + t, yield e.slice(n, s), n = s;
|
|
1109
|
-
},
|
|
1110
|
-
for await (const r of
|
|
1109
|
+
}, jr = async function* (e, t) {
|
|
1110
|
+
for await (const r of Ur(e))
|
|
1111
1111
|
yield* Fr(r, t);
|
|
1112
|
-
},
|
|
1112
|
+
}, Ur = async function* (e) {
|
|
1113
1113
|
if (e[Symbol.asyncIterator]) {
|
|
1114
1114
|
yield* e;
|
|
1115
1115
|
return;
|
|
@@ -1126,7 +1126,7 @@ const nt = (e) => {
|
|
|
1126
1126
|
await t.cancel();
|
|
1127
1127
|
}
|
|
1128
1128
|
}, Le = (e, t, r, n) => {
|
|
1129
|
-
const s =
|
|
1129
|
+
const s = jr(e, t);
|
|
1130
1130
|
let i = 0, a, o = (d) => {
|
|
1131
1131
|
a || (a = !0, n && n(d));
|
|
1132
1132
|
};
|
|
@@ -1220,17 +1220,17 @@ const Dr = async (e) => {
|
|
|
1220
1220
|
let b;
|
|
1221
1221
|
try {
|
|
1222
1222
|
if (d && Br && r !== "get" && r !== "head" && (b = await Pr(l, n)) !== 0) {
|
|
1223
|
-
let
|
|
1223
|
+
let _ = new Request(t, {
|
|
1224
1224
|
method: "POST",
|
|
1225
1225
|
body: n,
|
|
1226
1226
|
duplex: "half"
|
|
1227
|
-
}),
|
|
1228
|
-
if (c.isFormData(n) && (
|
|
1229
|
-
const [
|
|
1227
|
+
}), j;
|
|
1228
|
+
if (c.isFormData(n) && (j = _.headers.get("content-type")) && l.setContentType(j), _.body) {
|
|
1229
|
+
const [U, $] = Ce(
|
|
1230
1230
|
b,
|
|
1231
1231
|
Z(xe(d))
|
|
1232
1232
|
);
|
|
1233
|
-
n = Le(
|
|
1233
|
+
n = Le(_.body, Fe, U, $);
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
1236
|
c.isString(h) || (h = h ? "include" : "omit");
|
|
@@ -1247,25 +1247,25 @@ const Dr = async (e) => {
|
|
|
1247
1247
|
let S = await fetch(f, p);
|
|
1248
1248
|
const g = he && (u === "stream" || u === "response");
|
|
1249
1249
|
if (he && (o || g && m)) {
|
|
1250
|
-
const
|
|
1250
|
+
const _ = {};
|
|
1251
1251
|
["status", "statusText", "headers"].forEach((Se) => {
|
|
1252
|
-
|
|
1252
|
+
_[Se] = S[Se];
|
|
1253
1253
|
});
|
|
1254
|
-
const
|
|
1255
|
-
|
|
1254
|
+
const j = c.toFiniteNumber(S.headers.get("content-length")), [U, $] = o && Ce(
|
|
1255
|
+
j,
|
|
1256
1256
|
Z(xe(o), !0)
|
|
1257
1257
|
) || [];
|
|
1258
1258
|
S = new Response(
|
|
1259
|
-
Le(S.body, Fe,
|
|
1259
|
+
Le(S.body, Fe, U, () => {
|
|
1260
1260
|
$ && $(), m && m();
|
|
1261
1261
|
}),
|
|
1262
|
-
|
|
1262
|
+
_
|
|
1263
1263
|
);
|
|
1264
1264
|
}
|
|
1265
1265
|
u = u || "text";
|
|
1266
1266
|
let x = await ee[c.findKey(ee, u) || "text"](S, e);
|
|
1267
|
-
return !g && m && m(), await new Promise((
|
|
1268
|
-
tt(
|
|
1267
|
+
return !g && m && m(), await new Promise((_, j) => {
|
|
1268
|
+
tt(_, j, {
|
|
1269
1269
|
data: x,
|
|
1270
1270
|
headers: C.from(S.headers),
|
|
1271
1271
|
status: S.status,
|
|
@@ -1296,7 +1296,7 @@ c.forEach(pe, (e, t) => {
|
|
|
1296
1296
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1297
1297
|
}
|
|
1298
1298
|
});
|
|
1299
|
-
const
|
|
1299
|
+
const je = (e) => `- ${e}`, Ir = (e) => c.isFunction(e) || e === null || e === !1, it = {
|
|
1300
1300
|
getAdapter: (e) => {
|
|
1301
1301
|
e = c.isArray(e) ? e : [e];
|
|
1302
1302
|
const { length: t } = e;
|
|
@@ -1316,8 +1316,8 @@ const Ue = (e) => `- ${e}`, Ir = (e) => c.isFunction(e) || e === null || e === !
|
|
|
1316
1316
|
([o, d]) => `adapter ${o} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1317
1317
|
);
|
|
1318
1318
|
let a = t ? i.length > 1 ? `since :
|
|
1319
|
-
` + i.map(
|
|
1320
|
-
`) : " " +
|
|
1319
|
+
` + i.map(je).join(`
|
|
1320
|
+
`) : " " + je(i[0]) : "as no adapter specified";
|
|
1321
1321
|
throw new w(
|
|
1322
1322
|
"There is no suitable adapter to dispatch the request " + a,
|
|
1323
1323
|
"ERR_NOT_SUPPORT"
|
|
@@ -1331,7 +1331,7 @@ function le(e) {
|
|
|
1331
1331
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1332
1332
|
throw new M(null, e);
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function Ue(e) {
|
|
1335
1335
|
return le(e), e.headers = C.from(e.headers), e.data = ce.call(
|
|
1336
1336
|
e,
|
|
1337
1337
|
e.transformRequest
|
|
@@ -1467,7 +1467,7 @@ let B = class {
|
|
|
1467
1467
|
});
|
|
1468
1468
|
let l, h = 0, p;
|
|
1469
1469
|
if (!d) {
|
|
1470
|
-
const f = [
|
|
1470
|
+
const f = [Ue.bind(this), void 0];
|
|
1471
1471
|
for (f.unshift(...o), f.push(...u), p = f.length, l = Promise.resolve(r); h < p; )
|
|
1472
1472
|
l = l.then(f[h++], f[h++]);
|
|
1473
1473
|
return l;
|
|
@@ -1484,7 +1484,7 @@ let B = class {
|
|
|
1484
1484
|
}
|
|
1485
1485
|
}
|
|
1486
1486
|
try {
|
|
1487
|
-
l =
|
|
1487
|
+
l = Ue.call(this, y);
|
|
1488
1488
|
} catch (f) {
|
|
1489
1489
|
return Promise.reject(f);
|
|
1490
1490
|
}
|
|
@@ -1698,22 +1698,22 @@ R.getAdapter = it.getAdapter;
|
|
|
1698
1698
|
R.HttpStatusCode = me;
|
|
1699
1699
|
R.default = R;
|
|
1700
1700
|
const {
|
|
1701
|
-
Axios:
|
|
1702
|
-
AxiosError:
|
|
1701
|
+
Axios: Rn,
|
|
1702
|
+
AxiosError: _n,
|
|
1703
1703
|
CanceledError: An,
|
|
1704
|
-
isCancel:
|
|
1705
|
-
CancelToken:
|
|
1706
|
-
VERSION:
|
|
1707
|
-
all:
|
|
1708
|
-
Cancel:
|
|
1709
|
-
isAxiosError:
|
|
1710
|
-
spread:
|
|
1711
|
-
toFormData:
|
|
1704
|
+
isCancel: Tn,
|
|
1705
|
+
CancelToken: On,
|
|
1706
|
+
VERSION: Cn,
|
|
1707
|
+
all: xn,
|
|
1708
|
+
Cancel: vn,
|
|
1709
|
+
isAxiosError: Ln,
|
|
1710
|
+
spread: Fn,
|
|
1711
|
+
toFormData: jn,
|
|
1712
1712
|
AxiosHeaders: Un,
|
|
1713
|
-
HttpStatusCode:
|
|
1714
|
-
formToJSON:
|
|
1715
|
-
getAdapter:
|
|
1716
|
-
mergeConfig:
|
|
1713
|
+
HttpStatusCode: kn,
|
|
1714
|
+
formToJSON: Bn,
|
|
1715
|
+
getAdapter: Dn,
|
|
1716
|
+
mergeConfig: Pn
|
|
1717
1717
|
} = R;
|
|
1718
1718
|
var Vr = Symbol("cache-parser");
|
|
1719
1719
|
function Be(e, t) {
|
|
@@ -1738,8 +1738,8 @@ function ut(e) {
|
|
|
1738
1738
|
if (Array.isArray(m) || (E = function(g, x) {
|
|
1739
1739
|
if (g) {
|
|
1740
1740
|
if (typeof g == "string") return Be(g, x);
|
|
1741
|
-
var
|
|
1742
|
-
return
|
|
1741
|
+
var _ = Object.prototype.toString.call(g).slice(8, -1);
|
|
1742
|
+
return _ === "Object" && g.constructor && (_ = g.constructor.name), _ === "Map" || _ === "Set" ? Array.from(g) : _ === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_) ? Be(g, x) : void 0;
|
|
1743
1743
|
}
|
|
1744
1744
|
}(m))) {
|
|
1745
1745
|
E && (m = E);
|
|
@@ -1796,7 +1796,7 @@ function Q(e, t) {
|
|
|
1796
1796
|
* (c) 2021-present Arthur Fiorette & Contributors
|
|
1797
1797
|
* Released under the MIT License.
|
|
1798
1798
|
*/
|
|
1799
|
-
const
|
|
1799
|
+
const A = Object.freeze({
|
|
1800
1800
|
/**
|
|
1801
1801
|
* ```txt
|
|
1802
1802
|
* If-Modified-Since: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT
|
|
@@ -1899,7 +1899,7 @@ const _ = Object.freeze({
|
|
|
1899
1899
|
XAxiosCacheStaleIfError: "x-axios-cache-stale-if-error"
|
|
1900
1900
|
}), $r = (e, t) => {
|
|
1901
1901
|
if (!e) return "not enough headers";
|
|
1902
|
-
const r = e[
|
|
1902
|
+
const r = e[A.CacheControl];
|
|
1903
1903
|
if (r) {
|
|
1904
1904
|
const s = ut(String(r));
|
|
1905
1905
|
if (
|
|
@@ -1913,7 +1913,7 @@ const _ = Object.freeze({
|
|
|
1913
1913
|
cache: 1e3 * 60 * 60 * 24 * 365
|
|
1914
1914
|
};
|
|
1915
1915
|
if (s.maxAge !== void 0) {
|
|
1916
|
-
const i = e[
|
|
1916
|
+
const i = e[A.Age];
|
|
1917
1917
|
return {
|
|
1918
1918
|
cache: i ? (
|
|
1919
1919
|
// If age is present, we must subtract it from maxAge
|
|
@@ -1931,7 +1931,7 @@ const _ = Object.freeze({
|
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
|
-
const n = e[
|
|
1934
|
+
const n = e[A.Expires];
|
|
1935
1935
|
if (n) {
|
|
1936
1936
|
const s = Date.parse(String(n)) - Date.now();
|
|
1937
1937
|
return s >= 0 ? {
|
|
@@ -1988,12 +1988,12 @@ function Yr(e, t) {
|
|
|
1988
1988
|
} = t.cache;
|
|
1989
1989
|
if (r) {
|
|
1990
1990
|
var s;
|
|
1991
|
-
const i = r === !0 ? (s = e.data) == null ? void 0 : s.headers[
|
|
1992
|
-
i && (t.headers[
|
|
1991
|
+
const i = r === !0 ? (s = e.data) == null ? void 0 : s.headers[A.ETag] : r;
|
|
1992
|
+
i && (t.headers[A.IfNoneMatch] = i);
|
|
1993
1993
|
}
|
|
1994
|
-
n && (t.headers[
|
|
1994
|
+
n && (t.headers[A.IfModifiedSince] = n === !0 ? (
|
|
1995
1995
|
// If last-modified is not present, use the createdAt timestamp
|
|
1996
|
-
e.data.headers[
|
|
1996
|
+
e.data.headers[A.LastModified] || new Date(e.createdAt).toUTCString()
|
|
1997
1997
|
) : n.toUTCString());
|
|
1998
1998
|
}
|
|
1999
1999
|
function Qr(e, t) {
|
|
@@ -2025,7 +2025,7 @@ function Zr(e) {
|
|
|
2025
2025
|
}
|
|
2026
2026
|
if (r.cache.cacheTakeover) {
|
|
2027
2027
|
var n, s, i, a, o, d, u, l, h;
|
|
2028
|
-
(i = (n = r.headers)[s =
|
|
2028
|
+
(i = (n = r.headers)[s = A.CacheControl]) != null || (n[s] = "no-cache"), (d = (a = r.headers)[o = A.Pragma]) != null || (a[o] = "no-cache"), (h = (u = r.headers)[l = A.Expires]) != null || (u[l] = "0");
|
|
2029
2029
|
}
|
|
2030
2030
|
if (!be(r.method, r.cache.methods))
|
|
2031
2031
|
return r;
|
|
@@ -2135,7 +2135,7 @@ function tn(e) {
|
|
|
2135
2135
|
return await t(s.id, a, !0), s;
|
|
2136
2136
|
for (const f of Object.keys(s.headers))
|
|
2137
2137
|
f.startsWith("x-axios-cache") && delete s.headers[f];
|
|
2138
|
-
o.etag && o.etag !== !0 && (s.headers[
|
|
2138
|
+
o.etag && o.etag !== !0 && (s.headers[A.XAxiosCacheEtag] = o.etag), o.modifiedSince && (s.headers[A.XAxiosCacheLastModified] = o.modifiedSince === !0 ? "use-cache-timestamp" : o.modifiedSince.toUTCString());
|
|
2139
2139
|
let u = o.ttl || -1, l;
|
|
2140
2140
|
if (o.interpretHeader) {
|
|
2141
2141
|
const f = e.headerInterpreter(s.headers, e.location);
|
|
@@ -2144,7 +2144,7 @@ function tn(e) {
|
|
|
2144
2144
|
f !== "not enough headers" && (typeof f == "number" ? u = f : (u = f.cache, l = f.stale));
|
|
2145
2145
|
}
|
|
2146
2146
|
const h = Qr(s, d.data);
|
|
2147
|
-
typeof u == "function" && (u = await u(s)), o.staleIfError && (s.headers[
|
|
2147
|
+
typeof u == "function" && (u = await u(s)), o.staleIfError && (s.headers[A.XAxiosCacheStaleIfError] = String(u));
|
|
2148
2148
|
const p = {
|
|
2149
2149
|
state: "cached",
|
|
2150
2150
|
ttl: u,
|
|
@@ -2176,7 +2176,7 @@ function tn(e) {
|
|
|
2176
2176
|
s.code !== "ERR_CANCELED" || s.code === "ERR_CANCELED" && u.state !== "cached"
|
|
2177
2177
|
), s;
|
|
2178
2178
|
if (o.staleIfError) {
|
|
2179
|
-
const l = String(d?.headers[
|
|
2179
|
+
const l = String(d?.headers[A.CacheControl]), h = l && ut(l).staleIfError, p = typeof o.staleIfError == "function" ? await o.staleIfError(d, u, s) : o.staleIfError === !0 && h ? h * 1e3 : o.staleIfError;
|
|
2180
2180
|
if (p === !0 || // staleIfError is the number of seconds that stale is allowed to be used
|
|
2181
2181
|
typeof p == "number" && u.createdAt + p > Date.now()) {
|
|
2182
2182
|
await e.storage.set(a, {
|
|
@@ -2204,10 +2204,10 @@ function tn(e) {
|
|
|
2204
2204
|
const rn = (e) => !!e && !!e["is-storage"];
|
|
2205
2205
|
function dt(e) {
|
|
2206
2206
|
const t = e.data.headers;
|
|
2207
|
-
return
|
|
2207
|
+
return A.ETag in t || A.LastModified in t || A.XAxiosCacheEtag in t || A.XAxiosCacheLastModified in t;
|
|
2208
2208
|
}
|
|
2209
2209
|
function nn(e) {
|
|
2210
|
-
return String(e.data.headers[
|
|
2210
|
+
return String(e.data.headers[A.CacheControl]).includes("must-revalidate");
|
|
2211
2211
|
}
|
|
2212
2212
|
function ft(e) {
|
|
2213
2213
|
return dt(e) ? !0 : e.state === "cached" && e.staleTtl !== void 0 && // Only allow stale values after the ttl is already in the past and the staleTtl is in the future.
|
|
@@ -2372,20 +2372,21 @@ ht.interceptors.response.use(
|
|
|
2372
2372
|
})
|
|
2373
2373
|
), Promise.reject(e))
|
|
2374
2374
|
);
|
|
2375
|
-
const
|
|
2376
|
-
var dn = /* @__PURE__ */ ((e) => (e.GET_PAGES_AND_LINKS = "webapi/objectmanagement/teamspaces/pagesandlinks_412Y_v1", e.GET_SPACE_FONT_FAMILY = "webapi/objectmanagement/teamspaces/getspacefonts_41I6_v1", e.GET_SPACE_LIST = "webapi/objectmanagement/teamspaces/getteamspaces_41I3_v1", e.GET_USER_ROLE = "webapi/objectmanagement/teamspaces/getuserroles_41E7_v1", e))(dn || {}), fn = /* @__PURE__ */ ((e) => (e.GET_CROP_ZONE_SUGGESTION = "webapi/mediafile/assettransformation/getcropzonesuggestion_41UP_v1", e.GET_LARGEST_DOWNLOAD_LINK = "webapi/objectmanagement/share/getlargestdownloadlink_46X_v1", e.GET_TRANSFORM_ASSET_LINK = "webapi/mediafile/assettransformation/transformasset_41E6_v1", e.UPLOAD_AND_GET_RESPONSE = "webapi/mediafile/import/upload/uploadimageandgetlargestdownloadlink_4CM_v1", e.UPLOAD_RESPONSE = "api/UploadMedia/v3.0/UploadNewMedia", e))(fn || {}), hn = /* @__PURE__ */ ((e) => (e.GET_AUTOCOMPLETE_ITEMS_WITH_QUERY = "webapi/ui/autocompletion/executequery_4JD_v1-alpha", e.GET_AUTOCOMPLETE_ITEMS_WITH_SERVICE = "webapi/ui/autocompletion/callservice_41s5_v1-alpha", e))(hn || {}), pn = /* @__PURE__ */ ((e) => (e.GET_DASHBOARD_EMBEDDED_URL = "webapi/extensibility/integrations/businessintelligence/getdashboardembededurl_41JJ_v1", e.GET_DASHBOARD_LIST = "webapi/extensibility/integrations/businessintelligence/getlistdashboards_41JI_v1", e))(pn || {}), mn = /* @__PURE__ */ ((e) => (e.GET_SEARCHABLE_FIELDS = "webapi/objectmanagement/metadata/fields/getallobjectfieldsforcurrentuser_4C2_v2", e.GET_SORT_ORDERS = "webapi/objectmanagement/sortorders_49V_v1", e.GET_SUBTYPES_WITH_WILDCARD = "webapi/document/doctype/subtypeswithwildcard_4A5_v1", e))(mn || {}), bn = /* @__PURE__ */ ((e) => (e["4.0"] = "API/Search/v4.0/Search", e))(bn || {}), wn = /* @__PURE__ */ ((e) => (e.CREATE_OR_UPDATE_CHAPTERS = "webapi/mediafile/timebasedasset/createorupdatechapters_4b0_v1", e.GET_CHAPTERS = "webapi/mediafile/timebasedasset/getchapters_41T7_v1", e))(wn || {}), yn = /* @__PURE__ */ ((e) => (e.BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/418g_v1", e.GET_ADHOC_PROPERTIES = "webapi/cms/cms5/blocktemplate/getadhocpropertieslist_419s_v1", e.GET_AVAILABLE_PROXIES = "webapi/cms/cms5/availableproxies_42YX_v1", e.GET_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getblocktemplates_419y_v1", e.GET_BLOCK_TYPES = "webapi/cms/cms5/blocktemplate/getblocktypes_419z_v1", e.GET_CAN_CREATE_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/cancreatenewblocktemplate_41cs_v1", e.GET_DAM_VIEW_ASSET_STATUSES = "webapi/cms/cms5/damview/getassetstatuses_42JQ_v1", e.GET_DAM_VIEW_ASSET_TYPES = "webapi/cms/cms5/damview/getassettypes_42JP_v1", e.GET_DAM_VIEW_AVAILABLE_BUTTONS = "webapi/cms/cms5/damview/getavailablebuttons_42JU_v1", e.GET_DAM_VIEW_AVAILABLE_FORMS = "webapi/cms/cms5/damview/getavailableforms_42JR_v1", e.GET_DAM_VIEW_AVAILABLE_LEVELS_OF_ACCESS = "webapi/cms/cms5/damview/getavailablelevelsofaccess_42JX_v1", e.GET_DAM_VIEW_AVAILABLE_PAGES = "webapi/cms/cms5/damview/getavailablepages_42JV_v1", e.GET_DAM_VIEW_AVAILABLE_PANELS = "webapi/cms/cms5/damview/getavailablepanels_42JT_v1", e.GET_DAM_VIEW_AVAILABLE_SPACES = "webapi/cms/cms5/damview/getavailablespaces_42JW_v1", e.GET_DAM_VIEW_AVAILABLE_TEMPLATES = "webapi/cms/cms5/damview/getavailabletemplates_42JN_v1", e.GET_DAM_VIEW_DISPLAY_MODE_OPTIONS = "webapi/cms/cms5/damview/getdisplaymodeoptions_42JS_v1", e.GET_PAGES_FOR_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/getpagesforblocktemplate_41ig_v1", e.GET_PERMISSION = "webapi/cms/cms5/blocktemplate/getpermission_419r_v1", e.LIST_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getlisttemplates_428o_v1", e.SEARCH_ASSETS = "webapi/cms/cms5/search_42QJ_v1", e))(yn || {});
|
|
2375
|
+
const Nn = ln(ht), In = "webapi/extensibility/integrations/gab/assetbrowser/gethierarchy_41e8", Mn = "webapi/extensibility/integrations/gab/assetbrowser/AvailableProxies_4ea_v3", qn = "webapi/extensibility/integrations/gab/assetbrowser/getallformatcodes_428H";
|
|
2376
|
+
var dn = /* @__PURE__ */ ((e) => (e.GET_PAGES_AND_LINKS = "webapi/objectmanagement/teamspaces/pagesandlinks_412Y_v1", e.GET_SPACE_FONT_FAMILY = "webapi/objectmanagement/teamspaces/getspacefonts_41I6_v1", e.GET_SPACE_LIST = "webapi/objectmanagement/teamspaces/getteamspaces_41I3_v1", e.GET_USER_ROLE = "webapi/objectmanagement/teamspaces/getuserroles_41E7_v1", e))(dn || {}), fn = /* @__PURE__ */ ((e) => (e.GET_CROP_ZONE_SUGGESTION = "webapi/mediafile/assettransformation/getcropzonesuggestion_41UP_v1", e.GET_LARGEST_DOWNLOAD_LINK = "webapi/objectmanagement/share/getlargestdownloadlink_46X_v1", e.GET_TRANSFORM_ASSET_LINK = "webapi/mediafile/assettransformation/transformasset_41E6_v1", e.UPLOAD_AND_GET_RESPONSE = "webapi/mediafile/import/upload/uploadimageandgetlargestdownloadlink_4CM_v1", e.UPLOAD_RESPONSE = "api/UploadMedia/v3.0/UploadNewMedia", e))(fn || {}), hn = /* @__PURE__ */ ((e) => (e.GET_AUTOCOMPLETE_ITEMS_WITH_QUERY = "webapi/ui/autocompletion/executequery_4JD_v1-alpha", e.GET_AUTOCOMPLETE_ITEMS_WITH_SERVICE = "webapi/ui/autocompletion/callservice_41s5_v1-alpha", e))(hn || {}), pn = /* @__PURE__ */ ((e) => (e.GET_DASHBOARD_EMBEDDED_URL = "webapi/extensibility/integrations/businessintelligence/getdashboardembededurl_41JJ_v1", e.GET_DASHBOARD_LIST = "webapi/extensibility/integrations/businessintelligence/getlistdashboards_41JI_v1", e))(pn || {}), mn = /* @__PURE__ */ ((e) => (e.GET_SEARCHABLE_FIELDS = "webapi/objectmanagement/metadata/fields/getallobjectfieldsforcurrentuser_4C2_v2", e.GET_SORT_ORDERS = "webapi/objectmanagement/sortorders_49V_v1", e.GET_SUBTYPES_WITH_WILDCARD = "webapi/document/doctype/subtypeswithwildcard_4A5_v1", e))(mn || {}), bn = /* @__PURE__ */ ((e) => (e["4.0"] = "API/Search/v4.0/Search", e))(bn || {}), wn = /* @__PURE__ */ ((e) => (e.CREATE_OR_UPDATE_CHAPTERS = "webapi/mediafile/timebasedasset/createorupdatechapters_4b0_v1", e.GET_CHAPTERS = "webapi/mediafile/timebasedasset/getchapters_41T7_v1", e))(wn || {}), yn = /* @__PURE__ */ ((e) => (e.BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/418g_v1", e.GET_ADHOC_PROPERTIES = "webapi/cms/cms5/blocktemplate/getadhocpropertieslist_419s_v1", e.GET_AVAILABLE_PROXIES = "webapi/cms/cms5/availableproxies_42YX_v1", e.GET_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getblocktemplates_419y_v1", e.GET_BLOCK_TYPES = "webapi/cms/cms5/blocktemplate/getblocktypes_419z_v1", e.GET_CAN_CREATE_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/cancreatenewblocktemplate_41cs_v1", e.GET_DAM_VIEW_ASSET_STATUSES = "webapi/cms/cms5/damview/getassetstatuses_42JQ_v1", e.GET_DAM_VIEW_ASSET_TYPES = "webapi/cms/cms5/damview/getassettypes_42JP_v1", e.GET_DAM_VIEW_AVAILABLE_BUTTONS = "webapi/cms/cms5/damview/getavailablebuttons_42JU_v1", e.GET_DAM_VIEW_AVAILABLE_FORMS = "webapi/cms/cms5/damview/getavailableforms_42JR_v1", e.GET_DAM_VIEW_AVAILABLE_LEVELS_OF_ACCESS = "webapi/cms/cms5/damview/getavailablelevelsofaccess_42JX_v1", e.GET_DAM_VIEW_AVAILABLE_PAGES = "webapi/cms/cms5/damview/getavailablepages_42JV_v1", e.GET_DAM_VIEW_AVAILABLE_PANELS = "webapi/cms/cms5/damview/getavailablepanels_42JT_v1", e.GET_DAM_VIEW_AVAILABLE_SPACES = "webapi/cms/cms5/damview/getavailablespaces_42JW_v1", e.GET_DAM_VIEW_AVAILABLE_TEMPLATES = "webapi/cms/cms5/damview/getavailabletemplates_42JN_v1", e.GET_DAM_VIEW_DISPLAY_MODE_OPTIONS = "webapi/cms/cms5/damview/getdisplaymodeoptions_42JS_v1", e.GET_PAGES_FOR_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/getpagesforblocktemplate_41ig_v1", e.GET_PERMISSION = "webapi/cms/cms5/blocktemplate/getpermission_419r_v1", e.LIST_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getlisttemplates_428o_v1", e.SEARCH_ASSETS = "webapi/cms/cms5/search_42QJ_v1", e))(yn || {}), En = /* @__PURE__ */ ((e) => (e.GET_AUTHORIZED_OBJECTS = "webapi/objectmanagement/authorization/getauthorizedobjects_44H_v1", e))(En || {});
|
|
2377
2377
|
export {
|
|
2378
|
-
|
|
2378
|
+
_n as A,
|
|
2379
2379
|
yn as C,
|
|
2380
2380
|
pn as D,
|
|
2381
|
-
|
|
2381
|
+
In as F,
|
|
2382
2382
|
mn as M,
|
|
2383
2383
|
bn as S,
|
|
2384
2384
|
dn as T,
|
|
2385
2385
|
fn as a,
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2386
|
+
qn as b,
|
|
2387
|
+
En as c,
|
|
2388
|
+
Mn as d,
|
|
2389
|
+
hn as e,
|
|
2390
|
+
wn as f,
|
|
2391
|
+
Nn as h
|
|
2391
2392
|
};
|