@smals-belgium-shared/vidis-diarynote 4.1.1-snapshot.2 → 4.1.1-snapshot.4
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/diarynote.js +4 -4
- package/package.json +1 -1
package/diarynote.js
CHANGED
|
@@ -25631,11 +25631,11 @@ var Zme = (() => {
|
|
|
25631
25631
|
let e = t;
|
|
25632
25632
|
return e;
|
|
25633
25633
|
})(), Qme = (e, t) => {
|
|
25634
|
-
let n = x(Go).getInstance(), i = x(uf), a = x(jo), r = x(cu).getEnvironmentVariable("apiUrl")
|
|
25634
|
+
let n = x(Go).getInstance(), i = x(uf), a = x(jo), r = x(cu).getEnvironmentVariable("apiUrl"), s = e.url.startsWith("/v3/") ? `${r.replace("/REST/vidis", "")}${e.url}` : `${r}${e.url}`;
|
|
25635
25635
|
if (e.url.includes("assets/") || e.url.startsWith("http") || !r) return t(e);
|
|
25636
|
-
if (xa(a.authenticationStatus$.pipe(ct((
|
|
25637
|
-
let
|
|
25638
|
-
return Za(i.getAccessToken()).pipe(Sr((
|
|
25636
|
+
if (xa(a.authenticationStatus$.pipe(ct((d) => d === g0.OFFLINE)))()) return ht();
|
|
25637
|
+
let l = e.headers || new Zn(), c = n.isProfessional;
|
|
25638
|
+
return Za(i.getAccessToken()).pipe(Sr((d) => t(e.clone({ url: s, headers: l.set(oo.authorization, vr.getAuthorizationHeader(d)).set(oo.userType, vr.getUserType({ isProfessional: c })).set(oo.clientType, fw() ? vr.clientType.mobileApp : vr.clientType.webApp) }))));
|
|
25639
25639
|
};
|
|
25640
25640
|
function Jme(e) {
|
|
25641
25641
|
let t = Math.floor(Math.abs(e)), n = e.toString().replace(/^[^.]*\.?/, "").length;
|