@scmlatam/web-ui 0.1.96 → 0.1.97

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,106 +0,0 @@
1
- import { t as e } from "./extends-9CbO0Z4Q.js";
2
- import t from "./context-CRqFLvGk.js";
3
- //#region node_modules/@mui/x-telemetry/runtime/hash-string.mjs
4
- async function n(e) {
5
- let t = new TextEncoder().encode(e), n = await crypto.subtle.digest("SHA-256", t);
6
- return Array.from(new Uint8Array(n)).map((e) => e.toString(16).padStart(2, "0")).join("");
7
- }
8
- //#endregion
9
- //#region node_modules/@mui/x-telemetry/runtime/window-storage.mjs
10
- var r = "__mui_x_telemetry_";
11
- function i(e) {
12
- return r + btoa(e);
13
- }
14
- function a(e, t, n) {
15
- try {
16
- if (typeof window < "u" && window[e]) return window[e].setItem(i(t), n), !0;
17
- } catch {}
18
- return !1;
19
- }
20
- function o(e, t) {
21
- try {
22
- if (typeof window < "u" && window[e]) return window[e].getItem(i(t));
23
- } catch {}
24
- return null;
25
- }
26
- //#endregion
27
- //#region node_modules/@mui/x-telemetry/runtime/get-context.mjs
28
- function s(e) {
29
- let t = "", n = 0;
30
- for (; n < e;) t += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(Math.random() * 62)), n += 1;
31
- return t;
32
- }
33
- function c(e, t) {
34
- return t.reduce((t, n) => (t[n] = e[n], t), {});
35
- }
36
- var l = typeof window > "u" || process.env.NODE_ENV === "test" ? () => void 0 : async () => {
37
- let t = "fingerprint";
38
- try {
39
- let n = o("localStorage", t);
40
- if (n) return JSON.parse(n);
41
- let r = await import("./fp.esm-BNINKTlV.js"), i = e({}, (await (await r.load({ monitoring: !1 })).get()).components);
42
- delete i.cookiesEnabled;
43
- let s = {
44
- fullHash: r.hashComponents(i),
45
- coreHash: r.hashComponents(e({}, c(i, [
46
- "fonts",
47
- "audio",
48
- "languages",
49
- "deviceMemory",
50
- "timezone",
51
- "sessionStorage",
52
- "localStorage",
53
- "indexedDB",
54
- "openDatabase",
55
- "platform",
56
- "canvas",
57
- "vendor",
58
- "vendorFlavors",
59
- "colorGamut",
60
- "forcedColors",
61
- "monochrome",
62
- "contrast",
63
- "reducedMotion",
64
- "math",
65
- "videoCard",
66
- "architecture"
67
- ])))
68
- };
69
- return a("localStorage", t, JSON.stringify(s)), s;
70
- } catch {
71
- return null;
72
- }
73
- };
74
- function u() {
75
- let e = "anonymous_id", t = o("localStorage", e);
76
- if (t) return t;
77
- let n = `anid_${s(32)}`;
78
- return a("localStorage", e, n) ? n : "";
79
- }
80
- function d() {
81
- let e = "session_id", t = o("sessionStorage", e);
82
- if (t) return t;
83
- let n = `sesid_${s(32)}`;
84
- return a("sessionStorage", e, n) ? n : `sestp_${s(32)}`;
85
- }
86
- async function f() {
87
- if (typeof process < "u" && process.env?.npm_package_name) return n(process.env.npm_package_name);
88
- if (typeof window < "u") try {
89
- let e = await fetch("/package.json");
90
- if (e.ok) {
91
- let t = await e.json();
92
- if (t.name && typeof t.name == "string") return n(t.name);
93
- }
94
- } catch {}
95
- return null;
96
- }
97
- async function p() {
98
- if (t.traits.sessionId = d(), t.config.isInitialized || (t.traits.anonymousId = u(), t.config.isInitialized = !0), !t.traits.runtimePackageNameHash && !t.config.runtimePackageNameHashResolved) {
99
- t.config.runtimePackageNameHashResolved = !0;
100
- let e = await f();
101
- t.traits.runtimePackageNameHash = e, e && (t.traits.projectId = t.traits.repoHash || e || t.traits.postinstallPackageNameHash || t.traits.rootPathHash || t.traits.projectId);
102
- }
103
- return t.traits.fingerprint || (t.traits.fingerprint = await l()), t;
104
- }
105
- //#endregion
106
- export { p as default };