2023-02-27 07:03:31 +01:00
|
|
|
import { _ as __vitePreload } from "./preload-helper-f8376bb0.js";
|
2023-05-12 19:22:43 +02:00
|
|
|
import { k, W, a as a$1 } from "./_page-87169cf6.js";
|
2023-02-27 07:03:31 +01:00
|
|
|
var s = Object.defineProperty, a = Object.getOwnPropertySymbols, c = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable, i = (o, e, t) => e in o ? s(o, e, { enumerable: true, configurable: true, writable: true, value: t }) : o[e] = t, b = (o, e) => {
|
|
|
|
for (var t in e || (e = {}))
|
|
|
|
c.call(e, t) && i(o, t, e[t]);
|
|
|
|
if (a)
|
|
|
|
for (var t of a(e))
|
|
|
|
d.call(e, t) && i(o, t, e[t]);
|
|
|
|
return o;
|
|
|
|
};
|
|
|
|
class f {
|
|
|
|
constructor(e) {
|
|
|
|
this.openModal = k.open, this.closeModal = k.close, this.subscribeModal = k.subscribe, this.setTheme = W.setThemeConfig, W.setConfig(b({ enableStandaloneMode: true }, e)), this.initUi();
|
|
|
|
}
|
|
|
|
async initUi() {
|
|
|
|
if (typeof window < "u") {
|
2023-05-12 19:22:43 +02:00
|
|
|
await __vitePreload(() => import("./index-5dfd8024.js"), true ? ["./index-5dfd8024.js","./_page-87169cf6.js","./index-2a025a89.js","./helpers-88229792.js","./singletons-286ffebd.js","./preload-helper-f8376bb0.js","./dijkstra-cb1f074b.js"] : void 0, import.meta.url);
|
2023-02-27 07:03:31 +01:00
|
|
|
const e = document.createElement("w3m-modal");
|
|
|
|
document.body.insertAdjacentElement("beforeend", e), a$1.setIsUiLoaded(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export {
|
|
|
|
f as Web3Modal
|
|
|
|
};
|