@getsoren/shared-module 2.46.1 → 2.46.2
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/dist/main.js +12 -13
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./orval-Bf_zcxLE.js";
|
|
2
2
|
import { Suspense as t, createContext as n, lazy as r, useCallback as i, useContext as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
3
3
|
import { jsx as u } from "react/jsx-runtime";
|
|
4
|
+
import "dayjs/locale/ar";
|
|
5
|
+
import "dayjs/locale/de";
|
|
6
|
+
import "dayjs/locale/en";
|
|
7
|
+
import "dayjs/locale/es";
|
|
8
|
+
import "dayjs/locale/fr";
|
|
9
|
+
import "dayjs/locale/it";
|
|
10
|
+
import "dayjs/locale/pt";
|
|
4
11
|
//#region src/chat/ChatClient.ts
|
|
5
12
|
var d = 3e4, f = 1e3, p = 1e4, m = (e) => Array.isArray(e) ? e.map(m) : typeof e == "object" && e ? Object.fromEntries(Object.entries(e).map(([e, t]) => [e.replace(/_([a-z])/g, (e, t) => t.toUpperCase()), m(t)])) : e, h = (e) => Array.isArray(e) ? e.map(h) : typeof e == "object" && e ? Object.fromEntries(Object.entries(e).map(([e, t]) => [e.replace(/[A-Z]/g, (e) => `_${e.toLowerCase()}`), h(t)])) : e, g = class {
|
|
6
13
|
url;
|
|
@@ -227,19 +234,11 @@ var d = 3e4, f = 1e3, p = 1e4, m = (e) => Array.isArray(e) ? e.map(m) : typeof e
|
|
|
227
234
|
], P = (e) => N.includes(e), F = ({ language: e, ...t }) => {
|
|
228
235
|
let { libraries: n } = a(v), r = t?.dayjs || n?.dayjs, i = t?.plugin || n?.dayjsPlugin;
|
|
229
236
|
if (!r) throw Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig.");
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}), await import("dayjs/locale/ar"), await import("dayjs/locale/de"), await import("dayjs/locale/en"), await import("dayjs/locale/es"), await import("dayjs/locale/fr"), await import("dayjs/locale/it"), await import("dayjs/locale/pt"), r.locale(P(n) ? n : "en");
|
|
236
|
-
})().then();
|
|
237
|
-
}, [
|
|
238
|
-
r,
|
|
239
|
-
i,
|
|
240
|
-
e,
|
|
241
|
-
t.localizedFormat
|
|
242
|
-
]), null;
|
|
237
|
+
r.extend(t.localizedFormat), i && i.forEach((e) => {
|
|
238
|
+
e && r.extend(e);
|
|
239
|
+
});
|
|
240
|
+
let o = e || navigator.language?.slice(0, 2) || "en", s = P(o) ? o : "en";
|
|
241
|
+
return r.locale() !== s && r.locale(s), null;
|
|
243
242
|
}, I = "hubspot-messages-iframe-container", L = "hs-show", R = "data-hs-hidden", ee = ({ hubId: e }) => (o(() => {
|
|
244
243
|
if (!e) return;
|
|
245
244
|
let t = document.createElement("script");
|