ublo-lib 1.39.17 → 1.39.18
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.
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import Button from "dt-design-system/es/button";
|
|
4
3
|
import { useUbloContext } from "ublo/with-ublo";
|
|
5
4
|
import Message, { message } from "./message";
|
|
6
|
-
import { useContext } from "./context";
|
|
7
5
|
import styles from "./connexion.module.css";
|
|
8
6
|
export default function Connexion({ logo }) {
|
|
9
7
|
const { lang } = useUbloContext();
|
|
@@ -11,15 +9,3 @@ export default function Connexion({ logo }) {
|
|
|
11
9
|
__html: message(lang, "partner-space-login-message"),
|
|
12
10
|
} })] })] }));
|
|
13
11
|
}
|
|
14
|
-
function setCookie(name, value, days) {
|
|
15
|
-
let expires = "";
|
|
16
|
-
if (days) {
|
|
17
|
-
const date = new Date();
|
|
18
|
-
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
|
|
19
|
-
expires = "; expires=" + date.toUTCString();
|
|
20
|
-
}
|
|
21
|
-
document.cookie = name + "=" + (value || "") + expires + "; path=/";
|
|
22
|
-
}
|
|
23
|
-
function eraseCookie(name) {
|
|
24
|
-
document.cookie = name + "=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";
|
|
25
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tunnel.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/espace-prive/tunnel.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tunnel.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/espace-prive/tunnel.js"],"names":[],"mappings":"AAUA,0EAkCC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as MseM from "
|
|
3
|
+
import * as MseM from "../../../future/components/msem";
|
|
4
4
|
import { useUbloContext } from "ublo/with-ublo";
|
|
5
|
+
import Information from "dt-design-system/es/information";
|
|
5
6
|
import Loader from "dt-design-system/es/loader";
|
|
6
7
|
import Message from "./message";
|
|
7
8
|
import ClientLinks from "./admin/client-links";
|
|
@@ -12,7 +13,7 @@ export default function Tunnel() {
|
|
|
12
13
|
const { intermediary, error, partnerID } = useContext();
|
|
13
14
|
const showLoader = !intermediary && !error;
|
|
14
15
|
const showError = error && !intermediary;
|
|
15
|
-
return (_jsxs("div", { children: [showLoader && _jsx(Loader, {}), showError && (_jsx(
|
|
16
|
+
return (_jsxs("div", { children: [showLoader && _jsx(Loader, {}), showError && (_jsx(Information, { type: "error", children: _jsx(Message, { id: "intermediary-error" }) })), !showLoader && !showError && (_jsx(MseM.Esf, { options: {
|
|
16
17
|
lang,
|
|
17
18
|
channel: "ESF",
|
|
18
19
|
resort,
|