142RED);
try {
await this.ensureScriptLoaded();
let t = this.createWebComponent();
e.innerHTML = "", e.appendChild(t), this.state.container = e, this.state.element = t, this.state.initialized = !0;
} catch (e) {
throw console.error("Failed to render widget:", e), e;
}
}
updateConfig(e) {
if (!this.state.initialized || !this.state.element) throw Error(this.errorMessages.NOT_RENDERED);
let t = this.state.element;
Object.entri
LowAi Review Evidence
Rendering loads the widget from Zerohash CDN hosts; only a script-load failure triggers diagnostic reporting.
dist/index.jsView on unpkg · L142 285TAINER: "Invalid container element provided.",
SCRIPT_LOAD_FAILED: "Failed to load the Connect CryptoDeposits script.",
WEB_COMPONENT_NOT_DEFINED: "Web component is not defined. Script may not be loaded."
};
scriptUrls = h("crypto-deposits-web", "index.js", {
legacyAliases: !0,
eu: !0
});
webComponentTag = "zerohash-crypto-deposits";
render(e) {
return super.render(e);
}
updateConfig(e) {
return super.updateConfig(e);
}
getConfig() {
return super.getCon
LowAi Review Evidence
Rendering loads the widget from Zerohash CDN hosts; only a script-load failure triggers diagnostic reporting.
dist/index.jsView on unpkg · L285 254dev: "https://sdk-cdn.dev.0hash.com",
cert: "https://sdk-cdn.cert.zerohash.com",
prod: "https://sdk-cdn.zerohash.com",
"eu-cert": "https://sdk-cdn.cert.zerohash.eu",
"eu-prod":
LowAi Review Evidence
Rendering loads the widget from Zerohash CDN hosts; only a script-load failure triggers diagnostic reporting.
dist/index.jsView on unpkg · L254 86: c, fallbackScriptUrls: u, collectorUrls: d, env: f, jwt: p, timeoutMs: m = 15e3, onLoad: h, onError: g } = e;
if (typeof document > "u") return o;
let _ = `${t}-script-${f}`;
if (customElements.get(t) || document.getElementById(_)) return o;
let v = r(p), y = e.report ?? ((e) => l(d && a(d, f, p), e, s)), b = !1, x = 0, S, C = () => {
S !== void 0 && clearTimeout(S);
}, w = (e, r, a) => {
if (b) return;
let o = Math.round(performance.now() - x), s = {
webComponentTag: t,
appName: n,
env: f,
scriptUrl: r,
reason: e,
triedFallback: a,
elapsedMs: o,
LowAi Review Evidence
The failure report posts diagnostic metadata to environment-specific Zerohash collectors; the visible payload includes page origin, browser user agent, and selected JWT-derived claims, not a JWT field.
dist/index.jsView on unpkg · L86 72(!e || typeof fetch > "u") return;
let { sessionId: r, payload: i } = c(t, n);
try {
fetch(e, {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-faro-session-id": r
},
body: JSON.stringify(i),
keepalive: !0
}).catch(() => void 0);
} catch {}
}, u = (e) => {
let { webComponentTag: t, appName: n, appVersion: s, scriptUrls: c, fallbackScriptUrls: u, collectorUrls: d, env: f, jwt: p, timeoutMs: m = 15e3, onLoad: h, onError: g } = e;
if (typeof docume
LowAi Review Evidence
The failure report posts diagnostic metadata to environment-specific Zerohash collectors; the visible payload includes page origin, browser user agent, and selected JWT-derived claims, not a JWT field.
dist/index.jsView on unpkg · L72 1var e = {
dev: "https://grafana-faro-collector.dev.0hash.com/collect",
cert: "https://grafana-faro-collector.cert.zerohash.com/collect",
prod: "https://grafana-faro-collector.zerohash.com/collect",
"eu-cert": "https://grafana-faro-collector.cert.zerohash.eu/collect",
"eu-prod": "https://grafana-faro-collector.zerohash.eu/collect",
sandbox: "https://grafana-faro-collector.cert.zerohash.com/collect",
production: "https://grafana-faro-collector.zerohash.com/collect"
}, t = (e) => {
if (!e || typeof e != "string") return null;
let t = e.split(".");
if (t.length < 2) return null
LowAi Review Evidence
The failure report posts diagnostic metadata to environment-specific Zerohash collectors; the visible payload includes page origin, browser user agent, and selected JWT-derived claims, not a JWT field.
dist/index.jsView on unpkg · L1