@scmlatam/web-ui 0.1.85 → 0.1.87

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,86 +0,0 @@
1
- import { t as e } from "./extends-CgaxCptn.js";
2
- //#region node_modules/@mui/x-telemetry/esm/context.js
3
- var t = {
4
- config: { isInitialized: !1 },
5
- traits: {}
6
- }, n = "__mui_x_telemetry_";
7
- function r(e) {
8
- return n + btoa(e);
9
- }
10
- function i(e, t, n) {
11
- try {
12
- if (typeof window < "u" && window[e]) return window[e].setItem(r(t), n), !0;
13
- } catch {}
14
- return !1;
15
- }
16
- function a(e, t) {
17
- try {
18
- if (typeof window < "u" && window[e]) return window[e].getItem(r(t));
19
- } catch {}
20
- return null;
21
- }
22
- //#endregion
23
- //#region node_modules/@mui/x-telemetry/esm/runtime/get-context.js
24
- function o(e) {
25
- let t = "", n = 0;
26
- for (; n < e;) t += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(Math.random() * 62)), n += 1;
27
- return t;
28
- }
29
- function s(e, t) {
30
- return t.reduce((t, n) => (t[n] = e[n], t), {});
31
- }
32
- var c = typeof window > "u" || process.env.NODE_ENV === "test" ? () => void 0 : async () => {
33
- let t = "fingerprint";
34
- try {
35
- let n = a("localStorage", t);
36
- if (n) return JSON.parse(n);
37
- let r = await import("./fp.esm-DSN530BW.js"), o = e({}, (await (await r.load({ monitoring: !1 })).get()).components);
38
- delete o.cookiesEnabled;
39
- let c = {
40
- fullHash: r.hashComponents(o),
41
- coreHash: r.hashComponents(e({}, s(o, [
42
- "fonts",
43
- "audio",
44
- "languages",
45
- "deviceMemory",
46
- "timezone",
47
- "sessionStorage",
48
- "localStorage",
49
- "indexedDB",
50
- "openDatabase",
51
- "platform",
52
- "canvas",
53
- "vendor",
54
- "vendorFlavors",
55
- "colorGamut",
56
- "forcedColors",
57
- "monochrome",
58
- "contrast",
59
- "reducedMotion",
60
- "math",
61
- "videoCard",
62
- "architecture"
63
- ])))
64
- };
65
- return i("localStorage", t, JSON.stringify(c)), c;
66
- } catch {
67
- return null;
68
- }
69
- };
70
- function l() {
71
- let e = "anonymous_id", t = a("localStorage", e);
72
- if (t) return t;
73
- let n = `anid_${o(32)}`;
74
- return i("localStorage", e, n) ? n : "";
75
- }
76
- function u() {
77
- let e = "session_id", t = a("sessionStorage", e);
78
- if (t) return t;
79
- let n = `sesid_${o(32)}`;
80
- return i("sessionStorage", e, n) ? n : `sestp_${o(32)}`;
81
- }
82
- async function d() {
83
- return t.traits.sessionId = u(), t.config.isInitialized || (t.traits.anonymousId = l(), t.config.isInitialized = !0), t.traits.fingerprint || (t.traits.fingerprint = await c()), t;
84
- }
85
- //#endregion
86
- export { d as default };