@0xsticks/web3modal-angular-sticks
Version:
Web3Modal implementation for Angular
419 lines (410 loc) • 48.9 kB
JavaScript
import * as i0 from '@angular/core';
import { EventEmitter, Injectable, Optional, Component, ViewEncapsulation, Input, NgModule } from '@angular/core';
import { Web3WalletConnector, CONNECT_EVENT, ERROR_EVENT } from '@mindsorg/web3modal-ts';
import { take } from 'rxjs/operators';
import * as i4 from '@angular/common';
import { CommonModule } from '@angular/common';
class Web3ModalService {
constructor(configOptions) {
this.shouldOpen = new EventEmitter();
this.providers = new EventEmitter();
this.web3WalletConnector = new Web3WalletConnector(configOptions);
}
async open() {
this.providers.next(this.web3WalletConnector.providers);
return await new Promise((resolve, reject) => {
this.web3WalletConnector.providerController.on(CONNECT_EVENT, provider => {
resolve(provider);
});
this.web3WalletConnector.providerController.on(ERROR_EVENT, error => {
reject(error);
});
this.shouldOpen.next(true);
this.shouldOpen.pipe(take(1)).subscribe({
next: (open) => {
if (!open) {
reject('Dismissed modal');
}
}
});
}).finally(() => {
this.close();
});
}
setConfiguration(options) {
this.web3WalletConnector.setConfiguration(options);
}
clearCachedProvider() {
this.web3WalletConnector.providerController.clearCachedProvider();
}
setCachedProvider(id) {
this.web3WalletConnector.providerController.setCachedProvider(id);
}
close() {
this.shouldOpen.next(false);
}
}
Web3ModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Web3ModalService, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
Web3ModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Web3ModalService });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Web3ModalService, decorators: [{
type: Injectable
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
type: Optional
}] }]; } });
class Modal {
constructor() {
this.allowClose = true;
this.hidden = true;
this.closed = new EventEmitter();
}
set _hidden(value) {
this.hidden = value;
}
set open(value) {
this.hidden = !value;
}
close(event) {
if (!this.allowClose)
return;
this.hidden = !this.hidden;
this.closed.next(true);
event.stopPropagation();
}
}
Modal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Modal, deps: [], target: i0.ɵɵFactoryTarget.Component });
Modal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: Modal, selector: "m-modal", inputs: { open: "open", allowClose: "allowClose" }, outputs: { closed: "closed" }, host: { properties: { "hidden": "hidden" } }, ngImport: i0, template: "<div class=\"m-modal-bg\" (click)=\"close($event)\"></div>\n<div class=\"m-modal-container\">\n <ng-content></ng-content>\n</div>", styles: ["m-modal .m-modal-bg{width:100%;height:100%;top:0;left:0;position:fixed;cursor:pointer;z-index:99999991;background-color:#000c}m-modal .m-modal-container{position:fixed;margin:auto;z-index:99999995;width:800px;max-width:100%;left:50%;top:50%;max-height:98vh;display:block;box-sizing:border-box;transform:translate(-50%,-50%);padding:32px;outline:0;border-radius:6px;overflow-y:auto;-webkit-overflow-scrolling:touch;font-family:Roboto,sans-serif}m-modal{position:relative;top:0;bottom:0;left:0;right:0;height:100%;width:100%;overflow:overlay;overflow:scroll}\n"], encapsulation: i0.ViewEncapsulation.None });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Modal, decorators: [{
type: Component,
args: [{ selector: 'm-modal', host: {
'[hidden]': 'hidden',
}, inputs: ['open', 'allowClose'], outputs: ['closed'], encapsulation: ViewEncapsulation.None, template: "<div class=\"m-modal-bg\" (click)=\"close($event)\"></div>\n<div class=\"m-modal-container\">\n <ng-content></ng-content>\n</div>", styles: ["m-modal .m-modal-bg{width:100%;height:100%;top:0;left:0;position:fixed;cursor:pointer;z-index:99999991;background-color:#000c}m-modal .m-modal-container{position:fixed;margin:auto;z-index:99999995;width:800px;max-width:100%;left:50%;top:50%;max-height:98vh;display:block;box-sizing:border-box;transform:translate(-50%,-50%);padding:32px;outline:0;border-radius:6px;overflow-y:auto;-webkit-overflow-scrolling:touch;font-family:Roboto,sans-serif}m-modal{position:relative;top:0;bottom:0;left:0;right:0;height:100%;width:100%;overflow:overlay;overflow:scroll}\n"] }]
}] });
/**
* Component wrapper for Metamask logo SVG.
*/
class Web3ModalMetamaskLogoComponent {
}
Web3ModalMetamaskLogoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Web3ModalMetamaskLogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
Web3ModalMetamaskLogoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: Web3ModalMetamaskLogoComponent, selector: "m-web3-modal-metamask-logo", ngImport: i0, template: `
<svg width="345px" height="322px" viewBox="0 0 345 322" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 48.2 (47327) - http://www.bohemiancoding.com/sketch -->
<title>metamask</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="metamask" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g fill-rule="nonzero" id="Shape">
<polygon stroke="#F6851B" fill="#F6851B" points="125.609336 54.7652595 214.004731 52.4943349 190.464604 99.3115951"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="190.464604 99.3115951 141.18833 100.253458 125.609336 54.7652595"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="141.18833 100.253458 18.3981091 10.6018951 125.609336 54.7652595"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="71.4163573 141.226234 15.4535146 127.296088 12.6090885 114.4584"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="17.187184 142.752141 15.4535146 127.296088 71.4163573 141.226234"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="17.187184 142.752141 71.4163573 141.226234 24.7516021 165.079784"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="24.7516021 165.079784 71.4163573 141.226234 93.8508404 145.045596"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="71.3609734 70.3102307 71.4163573 141.226234 12.6090885 114.4584"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="93.8508404 145.045596 71.4163573 141.226234 71.3609734 70.3102307"></polygon>
<polygon stroke="#E2761B" fill="#E2761B" points="118.836084 279.399985 19.5398793 317.895193 92.5830263 289.102142"></polygon>
<polygon stroke="#E2761B" fill="#E2761B" points="92.5830263 289.102142 113.53989 279.852373 118.836084 279.399985"></polygon>
<polygon stroke="#E2761B" fill="#E2761B" points="315.42735 0.938069582 190.464604 99.3115951 214.004731 52.4943349"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="5.30887973 119.190961 12.6090885 114.4584 15.4535146 127.296088"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="17.187184 142.752141 7.16155177 133.026086 15.4535146 127.296088"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="92.5830263 289.102142 19.5398793 317.895193 0.492086977 239.803694"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="12.6090885 114.4584 2.68213692 60.7724764 71.3609734 70.3102307"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="269.169992 138.581129 328.878431 108.955677 325.724354 122.481291"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="24.7516021 165.079784 10.3994778 147.108352 17.187184 142.752141"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="323.656824 138.68867 269.169992 138.581129 325.724354 122.481291"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="323.656824 138.68867 315.532189 162.174839 269.169992 138.581129"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="315.532189 162.174839 242.896561 143.14059 269.169992 138.581129"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="328.878431 108.955677 269.169992 138.581129 263.485955 65.7680278"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="263.485955 65.7680278 269.169992 138.581129 242.896561 143.14059"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="68.2087529 169.187957 0.492086977 239.803694 24.7516021 165.079784"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="0.492086977 239.803694 56.3767556 230.10087 92.5830263 289.102142"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="56.3767556 230.10087 0.492086977 239.803694 68.2087529 169.187957"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="71.3609734 70.3102307 141.18833 100.253458 93.8508404 145.045596"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="24.7516021 165.079784 93.8508404 145.045596 68.2087529 169.187957"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="242.896561 143.14059 190.464604 99.3115951 263.485955 65.7680278"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="71.3609734 70.3102307 2.68213692 60.7724764 18.3981091 10.6018951"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="18.3981091 10.6018951 141.18833 100.253458 71.3609734 70.3102307"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="140.88318 168.733865 68.2087529 169.187957 93.8508404 145.045596"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="93.8508404 145.045596 141.18833 100.253458 140.88318 168.733865"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="344.727811 240.11481 325.429154 321.655026 238.639247 290.271545"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="336.26476 113.655491 325.724354 122.481291 328.878431 108.955677"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="323.656824 138.68867 325.724354 122.481291 334.094917 128.220305"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="315.532189 162.174839 260.670709 167.391844 242.896561 143.14059"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="263.485955 65.7680278 336.615736 52.3326676 328.878431 108.955677"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="315.532189 162.174839 323.656824 138.68867 330.504654 143.063544"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="181.987685 168.351586 190.464604 99.3115951 242.896561 143.14059"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="242.896561 143.14059 260.670709 167.391844 181.987685 168.351586"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="260.670709 167.391844 315.532189 162.174839 344.727811 240.11481"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="260.670709 167.391844 344.727811 240.11481 272.609651 229.990332"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="238.639247 290.271545 272.609651 229.990332 344.727811 240.11481"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="263.485955 65.7680278 190.464604 99.3115951 315.42735 0.938069582"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="315.42735 0.938069582 336.615736 52.3326676 263.485955 65.7680278"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="181.987685 168.351586 140.88318 168.733865 141.18833 100.253458"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="141.18833 100.253458 190.464604 99.3115951 181.987685 168.351586"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="92.5830263 289.102142 56.3767556 230.10087 96.3807076 227.871326"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="96.370437 197.713078 68.2087529 169.187957 140.88318 168.733865"></polygon>
<polygon stroke="#E4751F" fill="#E4751F" points="68.2087529 169.187957 96.370437 197.713078 96.3807076 227.871326"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="68.2087529 169.187957 96.3807076 227.871326 56.3767556 230.10087"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="238.639247 290.271545 227.324291 227.762661 272.609651 229.990332"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="104.934637 297.503234 92.5830263 289.102142 124.671835 291.090408"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="181.987685 168.351586 260.670709 167.391844 228.590352 197.028192"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="272.609651 229.990332 227.324291 227.762661 260.670709 167.391844"></polygon>
<polygon stroke="#E4751F" fill="#E4751F" points="260.670709 167.391844 227.324291 227.762661 228.590352 197.028192"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="140.88318 168.733865 122.978916 184.909564 96.370437 197.713078"></polygon>
<polygon stroke="#D7C1B3" fill="#D7C1B3" points="122.23049 273.872494 124.671835 291.090408 92.5830263 289.102142"></polygon>
<polygon stroke="#D7C1B3" fill="#D7C1B3" points="92.5830263 289.102142 125.800388 242.170799 122.23049 273.872494"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="125.800388 242.170799 92.5830263 289.102142 96.3807076 227.871326"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="96.3807076 227.871326 96.370437 197.713078 132.872444 206.620434"></polygon>
<polygon stroke="#233447" fill="#233447" points="132.872444 206.620434 96.370437 197.713078 122.978916 184.909564"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="122.978916 184.909564 140.88318 168.733865 132.872444 206.620434"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="183.108489 291.572819 238.639247 290.271545 220.687379 298.568451"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="228.590352 197.028192 200.763528 184.365085 181.987685 168.351586"></polygon>
<polygon stroke="#E4751F" fill="#E4751F" points="132.872444 206.620434 140.88318 168.733865 140.75901 190.323956"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="140.75901 190.323956 140.88318 168.733865 181.987685 168.351586"></polygon>
<polygon stroke="#D7C1B3" fill="#D7C1B3" points="181.151849 274.213279 238.639247 290.271545 183.108489 291.572819"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="200.763528 184.365085 188.435181 206.405145 181.987685 168.351586"></polygon>
<polygon stroke="#233447" fill="#233447" points="188.435181 206.405145 200.763528 184.365085 228.590352 197.028192"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="177.024604 242.233677 227.324291 227.762661 238.639247 290.271545"></polygon>
<polygon stroke="#D7C1B3" fill="#D7C1B3" points="238.639247 290.271545 181.151849 274.213279 177.024604 242.233677"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="227.324291 227.762661 188.435181 206.405145 228.590352 197.028192"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="181.987685 168.351586 178.618729 190.089 140.75901 190.323956"></polygon>
<polygon stroke="#E2761B" fill="#E2761B" points="188.435181 206.405145 178.618729 190.089 181.987685 168.351586"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="124.671835 291.090408 126.647198 303.896082 104.934637 297.503234"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="220.687379 298.568451 180.02279 304.43475 183.108489 291.572819"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="125.800388 242.170799 96.3807076 227.871326 132.872444 206.620434"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="132.872444 206.620434 132.389686 237.559341 125.800388 242.170799"></polygon>
<polygon stroke="#E4751F" fill="#E4751F" points="140.75901 190.323956 132.389686 237.559341 132.872444 206.620434"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="188.435181 206.405145 227.324291 227.762661 177.024604 242.233677"></polygon>
<polygon stroke="#E4751F" fill="#E4751F" points="178.618729 190.089 188.435181 206.405145 170.381038 237.580791"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="177.024604 242.233677 170.381038 237.580791 188.435181 206.405145"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="140.75901 190.323956 178.618729 190.089 170.381038 237.580791"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="170.381038 237.580791 132.389686 237.559341 140.75901 190.323956"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="126.647198 303.896082 124.671835 291.090408 122.23049 273.872494"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="181.151849 274.213279 183.108489 291.572819 180.02279 304.43475"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="122.23049 273.872494 124.598522 268.830707 126.647198 303.896082"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="176.647572 269.09395 180.02279 304.43475 126.647198 303.896082"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="126.647198 303.896082 124.598522 268.830707 176.647572 269.09395"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="180.02279 304.43475 176.647572 269.09395 181.151849 274.213279"></polygon>
<polygon stroke="#161616" fill="#161616" points="124.598522 268.830707 122.23049 273.872494 125.800388 242.170799"></polygon>
<polygon stroke="#161616" fill="#161616" points="125.800388 242.170799 132.389686 237.559341 129.905717 240.180259"></polygon>
<polygon stroke="#161616" fill="#161616" points="129.905717 240.180259 125.67841 244.96466 125.800388 242.170799"></polygon>
<polygon stroke="#161616" fill="#161616" points="125.800388 242.170799 125.67841 244.96466 124.598522 268.830707"></polygon>
<polygon stroke="#161616" fill="#161616" points="129.905717 240.180259 132.389686 237.559341 170.381038 237.580791"></polygon>
<polygon stroke="#161616" fill="#161616" points="177.024604 242.233677 181.151849 274.213279 176.647572 269.09395"></polygon>
<polygon stroke="#161616" fill="#161616" points="168.611729 240.216686 170.381038 237.580791 177.024604 242.233677"></polygon>
<polygon stroke="#161616" fill="#161616" points="170.381038 237.580791 168.611729 240.216686 129.905717 240.180259"></polygon>
<polygon stroke="#161616" fill="#161616" points="176.647572 269.09395 172.856575 245.041504 177.024604 242.233677"></polygon>
<polygon stroke="#161616" fill="#161616" points="177.024604 242.233677 172.856575 245.041504 168.611729 240.216686"></polygon>
<polygon stroke="#161616" fill="#161616" points="176.647572 269.09395 124.598522 268.830707 125.67841 244.96466"></polygon>
<polygon stroke="#161616" fill="#161616" points="125.67841 244.96466 172.856575 245.041504 176.647572 269.09395"></polygon>
<polygon stroke="#161616" fill="#161616" points="125.67841 244.96466 129.905717 240.180259 168.611729 240.216686"></polygon>
<polygon stroke="#161616" fill="#161616" points="168.611729 240.216686 172.856575 245.041504 125.67841 244.96466"></polygon>
</g>
</g>
</svg>
`, isInline: true });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Web3ModalMetamaskLogoComponent, decorators: [{
type: Component,
args: [{
selector: 'm-web3-modal-metamask-logo',
template: `
<svg width="345px" height="322px" viewBox="0 0 345 322" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 48.2 (47327) - http://www.bohemiancoding.com/sketch -->
<title>metamask</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="metamask" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g fill-rule="nonzero" id="Shape">
<polygon stroke="#F6851B" fill="#F6851B" points="125.609336 54.7652595 214.004731 52.4943349 190.464604 99.3115951"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="190.464604 99.3115951 141.18833 100.253458 125.609336 54.7652595"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="141.18833 100.253458 18.3981091 10.6018951 125.609336 54.7652595"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="71.4163573 141.226234 15.4535146 127.296088 12.6090885 114.4584"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="17.187184 142.752141 15.4535146 127.296088 71.4163573 141.226234"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="17.187184 142.752141 71.4163573 141.226234 24.7516021 165.079784"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="24.7516021 165.079784 71.4163573 141.226234 93.8508404 145.045596"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="71.3609734 70.3102307 71.4163573 141.226234 12.6090885 114.4584"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="93.8508404 145.045596 71.4163573 141.226234 71.3609734 70.3102307"></polygon>
<polygon stroke="#E2761B" fill="#E2761B" points="118.836084 279.399985 19.5398793 317.895193 92.5830263 289.102142"></polygon>
<polygon stroke="#E2761B" fill="#E2761B" points="92.5830263 289.102142 113.53989 279.852373 118.836084 279.399985"></polygon>
<polygon stroke="#E2761B" fill="#E2761B" points="315.42735 0.938069582 190.464604 99.3115951 214.004731 52.4943349"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="5.30887973 119.190961 12.6090885 114.4584 15.4535146 127.296088"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="17.187184 142.752141 7.16155177 133.026086 15.4535146 127.296088"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="92.5830263 289.102142 19.5398793 317.895193 0.492086977 239.803694"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="12.6090885 114.4584 2.68213692 60.7724764 71.3609734 70.3102307"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="269.169992 138.581129 328.878431 108.955677 325.724354 122.481291"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="24.7516021 165.079784 10.3994778 147.108352 17.187184 142.752141"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="323.656824 138.68867 269.169992 138.581129 325.724354 122.481291"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="323.656824 138.68867 315.532189 162.174839 269.169992 138.581129"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="315.532189 162.174839 242.896561 143.14059 269.169992 138.581129"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="328.878431 108.955677 269.169992 138.581129 263.485955 65.7680278"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="263.485955 65.7680278 269.169992 138.581129 242.896561 143.14059"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="68.2087529 169.187957 0.492086977 239.803694 24.7516021 165.079784"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="0.492086977 239.803694 56.3767556 230.10087 92.5830263 289.102142"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="56.3767556 230.10087 0.492086977 239.803694 68.2087529 169.187957"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="71.3609734 70.3102307 141.18833 100.253458 93.8508404 145.045596"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="24.7516021 165.079784 93.8508404 145.045596 68.2087529 169.187957"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="242.896561 143.14059 190.464604 99.3115951 263.485955 65.7680278"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="71.3609734 70.3102307 2.68213692 60.7724764 18.3981091 10.6018951"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="18.3981091 10.6018951 141.18833 100.253458 71.3609734 70.3102307"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="140.88318 168.733865 68.2087529 169.187957 93.8508404 145.045596"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="93.8508404 145.045596 141.18833 100.253458 140.88318 168.733865"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="344.727811 240.11481 325.429154 321.655026 238.639247 290.271545"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="336.26476 113.655491 325.724354 122.481291 328.878431 108.955677"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="323.656824 138.68867 325.724354 122.481291 334.094917 128.220305"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="315.532189 162.174839 260.670709 167.391844 242.896561 143.14059"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="263.485955 65.7680278 336.615736 52.3326676 328.878431 108.955677"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="315.532189 162.174839 323.656824 138.68867 330.504654 143.063544"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="181.987685 168.351586 190.464604 99.3115951 242.896561 143.14059"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="242.896561 143.14059 260.670709 167.391844 181.987685 168.351586"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="260.670709 167.391844 315.532189 162.174839 344.727811 240.11481"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="260.670709 167.391844 344.727811 240.11481 272.609651 229.990332"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="238.639247 290.271545 272.609651 229.990332 344.727811 240.11481"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="263.485955 65.7680278 190.464604 99.3115951 315.42735 0.938069582"></polygon>
<polygon stroke="#763D16" fill="#763D16" points="315.42735 0.938069582 336.615736 52.3326676 263.485955 65.7680278"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="181.987685 168.351586 140.88318 168.733865 141.18833 100.253458"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="141.18833 100.253458 190.464604 99.3115951 181.987685 168.351586"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="92.5830263 289.102142 56.3767556 230.10087 96.3807076 227.871326"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="96.370437 197.713078 68.2087529 169.187957 140.88318 168.733865"></polygon>
<polygon stroke="#E4751F" fill="#E4751F" points="68.2087529 169.187957 96.370437 197.713078 96.3807076 227.871326"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="68.2087529 169.187957 96.3807076 227.871326 56.3767556 230.10087"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="238.639247 290.271545 227.324291 227.762661 272.609651 229.990332"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="104.934637 297.503234 92.5830263 289.102142 124.671835 291.090408"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="181.987685 168.351586 260.670709 167.391844 228.590352 197.028192"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="272.609651 229.990332 227.324291 227.762661 260.670709 167.391844"></polygon>
<polygon stroke="#E4751F" fill="#E4751F" points="260.670709 167.391844 227.324291 227.762661 228.590352 197.028192"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="140.88318 168.733865 122.978916 184.909564 96.370437 197.713078"></polygon>
<polygon stroke="#D7C1B3" fill="#D7C1B3" points="122.23049 273.872494 124.671835 291.090408 92.5830263 289.102142"></polygon>
<polygon stroke="#D7C1B3" fill="#D7C1B3" points="92.5830263 289.102142 125.800388 242.170799 122.23049 273.872494"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="125.800388 242.170799 92.5830263 289.102142 96.3807076 227.871326"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="96.3807076 227.871326 96.370437 197.713078 132.872444 206.620434"></polygon>
<polygon stroke="#233447" fill="#233447" points="132.872444 206.620434 96.370437 197.713078 122.978916 184.909564"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="122.978916 184.909564 140.88318 168.733865 132.872444 206.620434"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="183.108489 291.572819 238.639247 290.271545 220.687379 298.568451"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="228.590352 197.028192 200.763528 184.365085 181.987685 168.351586"></polygon>
<polygon stroke="#E4751F" fill="#E4751F" points="132.872444 206.620434 140.88318 168.733865 140.75901 190.323956"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="140.75901 190.323956 140.88318 168.733865 181.987685 168.351586"></polygon>
<polygon stroke="#D7C1B3" fill="#D7C1B3" points="181.151849 274.213279 238.639247 290.271545 183.108489 291.572819"></polygon>
<polygon stroke="#CD6116" fill="#CD6116" points="200.763528 184.365085 188.435181 206.405145 181.987685 168.351586"></polygon>
<polygon stroke="#233447" fill="#233447" points="188.435181 206.405145 200.763528 184.365085 228.590352 197.028192"></polygon>
<polygon stroke="#E4761B" fill="#E4761B" points="177.024604 242.233677 227.324291 227.762661 238.639247 290.271545"></polygon>
<polygon stroke="#D7C1B3" fill="#D7C1B3" points="238.639247 290.271545 181.151849 274.213279 177.024604 242.233677"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="227.324291 227.762661 188.435181 206.405145 228.590352 197.028192"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="181.987685 168.351586 178.618729 190.089 140.75901 190.323956"></polygon>
<polygon stroke="#E2761B" fill="#E2761B" points="188.435181 206.405145 178.618729 190.089 181.987685 168.351586"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="124.671835 291.090408 126.647198 303.896082 104.934637 297.503234"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="220.687379 298.568451 180.02279 304.43475 183.108489 291.572819"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="125.800388 242.170799 96.3807076 227.871326 132.872444 206.620434"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="132.872444 206.620434 132.389686 237.559341 125.800388 242.170799"></polygon>
<polygon stroke="#E4751F" fill="#E4751F" points="140.75901 190.323956 132.389686 237.559341 132.872444 206.620434"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="188.435181 206.405145 227.324291 227.762661 177.024604 242.233677"></polygon>
<polygon stroke="#E4751F" fill="#E4751F" points="178.618729 190.089 188.435181 206.405145 170.381038 237.580791"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="177.024604 242.233677 170.381038 237.580791 188.435181 206.405145"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="140.75901 190.323956 178.618729 190.089 170.381038 237.580791"></polygon>
<polygon stroke="#F6851B" fill="#F6851B" points="170.381038 237.580791 132.389686 237.559341 140.75901 190.323956"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="126.647198 303.896082 124.671835 291.090408 122.23049 273.872494"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="181.151849 274.213279 183.108489 291.572819 180.02279 304.43475"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="122.23049 273.872494 124.598522 268.830707 126.647198 303.896082"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="176.647572 269.09395 180.02279 304.43475 126.647198 303.896082"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="126.647198 303.896082 124.598522 268.830707 176.647572 269.09395"></polygon>
<polygon stroke="#C0AD9E" fill="#C0AD9E" points="180.02279 304.43475 176.647572 269.09395 181.151849 274.213279"></polygon>
<polygon stroke="#161616" fill="#161616" points="124.598522 268.830707 122.23049 273.872494 125.800388 242.170799"></polygon>
<polygon stroke="#161616" fill="#161616" points="125.800388 242.170799 132.389686 237.559341 129.905717 240.180259"></polygon>
<polygon stroke="#161616" fill="#161616" points="129.905717 240.180259 125.67841 244.96466 125.800388 242.170799"></polygon>
<polygon stroke="#161616" fill="#161616" points="125.800388 242.170799 125.67841 244.96466 124.598522 268.830707"></polygon>
<polygon stroke="#161616" fill="#161616" points="129.905717 240.180259 132.389686 237.559341 170.381038 237.580791"></polygon>
<polygon stroke="#161616" fill="#161616" points="177.024604 242.233677 181.151849 274.213279 176.647572 269.09395"></polygon>
<polygon stroke="#161616" fill="#161616" points="168.611729 240.216686 170.381038 237.580791 177.024604 242.233677"></polygon>
<polygon stroke="#161616" fill="#161616" points="170.381038 237.580791 168.611729 240.216686 129.905717 240.180259"></polygon>
<polygon stroke="#161616" fill="#161616" points="176.647572 269.09395 172.856575 245.041504 177.024604 242.233677"></polygon>
<polygon stroke="#161616" fill="#161616" points="177.024604 242.233677 172.856575 245.041504 168.611729 240.216686"></polygon>
<polygon stroke="#161616" fill="#161616" points="176.647572 269.09395 124.598522 268.830707 125.67841 244.96466"></polygon>
<polygon stroke="#161616" fill="#161616" points="125.67841 244.96466 172.856575 245.041504 176.647572 269.09395"></polygon>
<polygon stroke="#161616" fill="#161616" points="125.67841 244.96466 129.905717 240.180259 168.611729 240.216686"></polygon>
<polygon stroke="#161616" fill="#161616" points="168.611729 240.216686 172.856575 245.041504 125.67841 244.96466"></polygon>
</g>
</g>
</svg>
`
}]
}] });
class Web3ModalComponent {
constructor(service) {
this.service = service;
this.open = false;
this.providers = [];
this.metamaskShopURL = 'https://metamask.io/download.html';
this.promptMetamaskIfNotInstalled = false;
}
ngOnInit() {
this.openSubscription = this.service.shouldOpen.subscribe({
next: (open) => {
this.open = open;
},
});
this.providersSubscription = this.service.providers.subscribe({
next: (providers) => {
this.showMetamaskDownload =
this.promptMetamaskIfNotInstalled &&
!this.isMetamaskInProviders(providers);
this.providers = providers;
for (let provider of providers) {
let filename = provider.logo
.toString()
.substring(provider.logo.toString().lastIndexOf('/') + 1);
let url = new URL(`/logos/${filename}`, document.baseURI);
provider.logo = url;
}
},
});
}
ngOnDestroy() {
this.openSubscription.unsubscribe();
this.providersSubscription.unsubscribe();
}
close() {
this.service.close();
}
isMetamaskInProviders(providers) {
return providers.some((p) => p.name.toLowerCase() === 'metamask');
}
openMetamaskDownloadPage() {
window.open(this.metamaskShopURL, '_blank');
}
}
Web3ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Web3ModalComponent, deps: [{ token: Web3ModalService }], target: i0.ɵɵFactoryTarget.Component });
Web3ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: Web3ModalComponent, selector: "m-web3-modal", inputs: { title: "title", description: "description", descriptionGray: "descriptionGray", dismissText: "dismissText", promptMetamaskIfNotInstalled: "promptMetamaskIfNotInstalled" }, ngImport: i0, template: "<m-modal [open]=\"open\" (closed)=\"close()\">\n <div class=\"m-web3Modal\">\n <div class=\"m-web3Modal__header\">\n <h3 class=\"m-web3ModalHeader__title\">\n {{ title }}\n </h3>\n <div class=\"m-web3ModalHeader__description\">\n <p class=\"m-web3ModalHeader__text\">\n {{ description }}\n </p>\n <p\n class=\"m-web3ModalHeader__text--gray m-web3ModalHeader__text\"\n >\n {{ descriptionGray }}\n </p>\n </div>\n </div>\n <div class=\"m-web3Modal__body\">\n <div class=\"m-web3ModalBody__provider\">\n <div\n class=\"m-web3ModalProvider__body\"\n *ngIf=\"providers && showMetamaskDownload\"\n (click)=\"openMetamaskDownloadPage()\"\n >\n <div class=\"m-web3ModalProviderBody__icon--custom\">\n <m-web3-modal-metamask-logo></m-web3-modal-metamask-logo>\n </div>\n <div class=\"m-web3ModalProviderBody__name\">MetaMask</div>\n </div>\n <div\n class=\"m-web3ModalProvider__body\"\n *ngFor=\"let provider of providers\"\n (click)=\"provider.onClick()\"\n >\n <div class=\"m-web3ModalProviderBody__icon\">\n <img [src]=\"provider.logo\" [alt]=\"provider.logo\" />\n </div>\n <div class=\"m-web3ModalProviderBody__name\">\n {{ provider.name }}\n </div>\n </div>\n </div>\n </div>\n <div class=\"m-web3Modal__footer\">\n <div class=\"m-web3ModalFooter__description\">\n <p class=\"m-web3ModalFooter__text\" (click)=\"close()\">\n {{ dismissText }}\n </p>\n </div>\n </div>\n </div>\n</m-modal>\n", styles: [".m-web3Modal{position:relative;display:block;width:100%;margin:auto;box-sizing:border-box;background-color:#fff}@media screen and (max-width: 540px){.m-web3Modal{flex:1;display:flex;flex-direction:column;justify-content:space-between;border-radius:0;margin:0}}.m-web3Modal__header{padding:40px 50px 0}.m-web3ModalHeader__title{font-size:30px;font-weight:800;margin:0;color:#4f4f50}.m-web3ModalHeader__text{margin:0;font-weight:600;line-height:22px;font-size:16px;color:#4f4f50}.m-web3ModalHeader__description{display:flex;flex-direction:column;justify-content:center;min-height:70px}.m-web3ModalHeader__text--gray{margin:0;color:#7d7d82}.m-web3Modal__footer{height:100px;margin-top:-40px;display:flex;padding:0 50px;flex-direction:column;justify-content:center}@media screen and (max-width: 768px){.m-web3Modal__footer{margin-top:-20px}}.m-web3ModalFooter__text{text-align:center;font-size:17px;font-weight:600;margin:0;cursor:pointer;color:#7d7d82}.m-web3Modal__body{padding:20px 50px;max-height:420px;overflow-y:auto}.m-web3ModalBody__provider{display:flex;justify-content:space-between;flex-wrap:wrap}@media screen and (max-width: 540px){.m-web3ModalBody__provider{justify-content:center}}.m-web3ModalProvider__body{display:flex;justify-content:center;align-items:center;flex-direction:column;cursor:pointer;width:194px;height:165px;margin-bottom:20px;background-color:#fff;border:1px solid #dce2e4}.m-web3ModalProviderBody__name{margin-top:12px;font-weight:600;font-size:15px;color:#4f4f50}.m-web3ModalProviderBody__icon,.m-web3ModalProviderBody__icon--custom svg{width:60px;height:60px;display:flex;border-radius:50%;overflow:visible;box-shadow:none;justify-content:center;align-items:center}.m-web3ModalProviderBody__icon img,.m-web3ModalProviderBody__icon m-web3-modal-metamask-logo,.m-web3ModalProviderBody__icon--custom svg img,.m-web3ModalProviderBody__icon--custom svg m-web3-modal-metamask-logo{width:100%;height:100%}\n"], components: [{ type: Modal, selector: "m-modal", inputs: ["open", "allowClose"], outputs: ["closed"] }, { type: Web3ModalMetamaskLogoComponent, selector: "m-web3-modal-metamask-logo" }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Web3ModalComponent, decorators: [{
type: Component,
args: [{ selector: 'm-web3-modal', encapsulation: ViewEncapsulation.None, template: "<m-modal [open]=\"open\" (closed)=\"close()\">\n <div class=\"m-web3Modal\">\n <div class=\"m-web3Modal__header\">\n <h3 class=\"m-web3ModalHeader__title\">\n {{ title }}\n </h3>\n <div class=\"m-web3ModalHeader__description\">\n <p class=\"m-web3ModalHeader__text\">\n {{ description }}\n </p>\n <p\n class=\"m-web3ModalHeader__text--gray m-web3ModalHeader__text\"\n >\n {{ descriptionGray }}\n </p>\n </div>\n </div>\n <div class=\"m-web3Modal__body\">\n <div class=\"m-web3ModalBody__provider\">\n <div\n class=\"m-web3ModalProvider__body\"\n *ngIf=\"providers && showMetamaskDownload\"\n (click)=\"openMetamaskDownloadPage()\"\n >\n <div class=\"m-web3ModalProviderBody__icon--custom\">\n <m-web3-modal-metamask-logo></m-web3-modal-metamask-logo>\n </div>\n <div class=\"m-web3ModalProviderBody__name\">MetaMask</div>\n </div>\n <div\n class=\"m-web3ModalProvider__body\"\n *ngFor=\"let provider of providers\"\n (click)=\"provider.onClick()\"\n >\n <div class=\"m-web3ModalProviderBody__icon\">\n <img [src]=\"provider.logo\" [alt]=\"provider.logo\" />\n </div>\n <div class=\"m-web3ModalProviderBody__name\">\n {{ provider.name }}\n </div>\n </div>\n </div>\n </div>\n <div class=\"m-web3Modal__footer\">\n <div class=\"m-web3ModalFooter__description\">\n <p class=\"m-web3ModalFooter__text\" (click)=\"close()\">\n {{ dismissText }}\n </p>\n </div>\n </div>\n </div>\n</m-modal>\n", styles: [".m-web3Modal{position:relative;display:block;width:100%;margin:auto;box-sizing:border-box;background-color:#fff}@media screen and (max-width: 540px){.m-web3Modal{flex:1;display:flex;flex-direction:column;justify-content:space-between;border-radius:0;margin:0}}.m-web3Modal__header{padding:40px 50px 0}.m-web3ModalHeader__title{font-size:30px;font-weight:800;margin:0;color:#4f4f50}.m-web3ModalHeader__text{margin:0;font-weight:600;line-height:22px;font-size:16px;color:#4f4f50}.m-web3ModalHeader__description{display:flex;flex-direction:column;justify-content:center;min-height:70px}.m-web3ModalHeader__text--gray{margin:0;color:#7d7d82}.m-web3Modal__footer{height:100px;margin-top:-40px;display:flex;padding:0 50px;flex-direction:column;justify-content:center}@media screen and (max-width: 768px){.m-web3Modal__footer{margin-top:-20px}}.m-web3ModalFooter__text{text-align:center;font-size:17px;font-weight:600;margin:0;cursor:pointer;color:#7d7d82}.m-web3Modal__body{padding:20px 50px;max-height:420px;overflow-y:auto}.m-web3ModalBody__provider{display:flex;justify-content:space-between;flex-wrap:wrap}@media screen and (max-width: 540px){.m-web3ModalBody__provider{justify-content:center}}.m-web3ModalProvider__body{display:flex;justify-content:center;align-items:center;flex-direction:column;cursor:pointer;width:194px;height:165px;margin-bottom:20px;background-color:#fff;border:1px solid #dce2e4}.m-web3ModalProviderBody__name{margin-top:12px;font-weight:600;font-size:15px;color:#4f4f50}.m-web3ModalProviderBody__icon,.m-web3ModalProviderBody__icon--custom svg{width:60px;height:60px;display:flex;border-radius:50%;overflow:visible;box-shadow:none;justify-content:center;align-items:center}.m-web3ModalProviderBody__icon img,.m-web3ModalProviderBody__icon m-web3-modal-metamask-logo,.m-web3ModalProviderBody__icon--custom svg img,.m-web3ModalProviderBody__icon--custom svg m-web3-modal-metamask-logo{width:100%;height:100%}\n"] }]
}], ctorParameters: function () { return [{ type: Web3ModalService }]; }, propDecorators: { title: [{
type: Input
}], description: [{
type: Input
}], descriptionGray: [{
type: Input
}], dismissText: [{
type: Input
}], promptMetamaskIfNotInstalled: [{
type: Input
}] } });
class Web3ModalModule {
}
Web3ModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Web3ModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
Web3ModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Web3ModalModule, declarations: [Modal, Web3ModalComponent, Web3ModalMetamaskLogoComponent], imports: [CommonModule], exports: [Web3ModalComponent] });
Web3ModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Web3ModalModule, imports: [[CommonModule]] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: Web3ModalModule, decorators: [{
type: NgModule,
args: [{
imports: [CommonModule],
declarations: [Modal, Web3ModalComponent, Web3ModalMetamaskLogoComponent],
exports: [Web3ModalComponent],
}]
}] });
/*
* Public API Surface of web3modal
*/
/**
* Generated bundle index. Do not edit.
*/
export { Web3ModalComponent, Web3ModalModule, Web3ModalService };
//# sourceMappingURL=0xsticks-web3modal-angular-sticks.mjs.map