`\n );\n });\n });\n return dots;\n }\n};\n\nconst styles$k = css`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;\n\nvar __defProp$o = Object.defineProperty;\nvar __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;\nvar __decorateClass$o = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$o(target, key, result);\n return result;\n};\nlet WcmQrCode = class extends LitElement {\n constructor() {\n super(...arguments);\n this.uri = \"\";\n this.size = 0;\n this.imageId = void 0;\n this.walletId = void 0;\n this.imageUrl = void 0;\n }\n // -- private ------------------------------------------------------ //\n svgTemplate() {\n const isLightMode = ThemeCtrl.state.themeMode === \"light\";\n const size = isLightMode ? this.size : this.size - 18 * 2;\n return svg$1`${QrCodeUtil.generate(this.uri, size, size / 4)} `;\n }\n // -- render ------------------------------------------------------- //\n render() {\n const classes = {\n \"wcm-dark\": ThemeCtrl.state.themeMode === \"dark\"\n };\n return html`${this.walletId || this.imageUrl ? html` ` : SvgUtil.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`;\n }\n};\nWcmQrCode.styles = [ThemeUtil.globalCss, styles$k];\n__decorateClass$o([\n property()\n], WcmQrCode.prototype, \"uri\", 2);\n__decorateClass$o([\n property({ type: Number })\n], WcmQrCode.prototype, \"size\", 2);\n__decorateClass$o([\n property()\n], WcmQrCode.prototype, \"imageId\", 2);\n__decorateClass$o([\n property()\n], WcmQrCode.prototype, \"walletId\", 2);\n__decorateClass$o([\n property()\n], WcmQrCode.prototype, \"imageUrl\", 2);\nWcmQrCode = __decorateClass$o([\n customElement(\"wcm-qrcode\")\n], WcmQrCode);\n\nconst styles$j = css`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;\n\nvar __defProp$n = Object.defineProperty;\nvar __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;\nvar __decorateClass$n = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$n(target, key, result);\n return result;\n};\nlet WcmSearchInput = class extends LitElement {\n constructor() {\n super(...arguments);\n this.onChange = () => null;\n }\n // -- render ------------------------------------------------------- //\n render() {\n return html` ${SvgUtil.SEARCH_ICON}`;\n }\n};\nWcmSearchInput.styles = [ThemeUtil.globalCss, styles$j];\n__decorateClass$n([\n property()\n], WcmSearchInput.prototype, \"onChange\", 2);\nWcmSearchInput = __decorateClass$n([\n customElement(\"wcm-search-input\")\n], WcmSearchInput);\n\nconst styles$i = css`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;\n\nvar __defProp$m = Object.defineProperty;\nvar __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;\nvar __decorateClass$m = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$m(target, key, result);\n return result;\n};\nlet WcmSpinner = class extends LitElement {\n // -- render ------------------------------------------------------- //\n render() {\n return html` `;\n }\n};\nWcmSpinner.styles = [ThemeUtil.globalCss, styles$i];\nWcmSpinner = __decorateClass$m([\n customElement(\"wcm-spinner\")\n], WcmSpinner);\n\nconst styles$h = css`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;\n\nvar __defProp$l = Object.defineProperty;\nvar __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;\nvar __decorateClass$l = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$l(target, key, result);\n return result;\n};\nlet WcmText = class extends LitElement {\n constructor() {\n super(...arguments);\n this.variant = \"medium-regular\";\n this.color = \"primary\";\n }\n // -- render ------------------------------------------------------- //\n render() {\n const classes = {\n \"wcm-big-bold\": this.variant === \"big-bold\",\n \"wcm-medium-regular\": this.variant === \"medium-regular\",\n \"wcm-small-regular\": this.variant === \"small-regular\",\n \"wcm-small-thin\": this.variant === \"small-thin\",\n \"wcm-xsmall-regular\": this.variant === \"xsmall-regular\",\n \"wcm-xsmall-bold\": this.variant === \"xsmall-bold\",\n \"wcm-color-primary\": this.color === \"primary\",\n \"wcm-color-secondary\": this.color === \"secondary\",\n \"wcm-color-tertiary\": this.color === \"tertiary\",\n \"wcm-color-inverse\": this.color === \"inverse\",\n \"wcm-color-accnt\": this.color === \"accent\",\n \"wcm-color-error\": this.color === \"error\"\n };\n return html` `;\n }\n};\nWcmText.styles = [ThemeUtil.globalCss, styles$h];\n__decorateClass$l([\n property()\n], WcmText.prototype, \"variant\", 2);\n__decorateClass$l([\n property()\n], WcmText.prototype, \"color\", 2);\nWcmText = __decorateClass$l([\n customElement(\"wcm-text\")\n], WcmText);\n\nconst styles$g = css`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;\n\nvar __defProp$k = Object.defineProperty;\nvar __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;\nvar __decorateClass$k = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$k(target, key, result);\n return result;\n};\nlet WcmWalletButton = class extends LitElement {\n constructor() {\n super(...arguments);\n this.onClick = () => null;\n this.name = \"\";\n this.walletId = \"\";\n this.label = void 0;\n this.imageId = void 0;\n this.installed = false;\n this.recent = false;\n }\n // -- private ------------------------------------------------------ //\n sublabelTemplate() {\n if (this.recent) {\n return html`RECENT `;\n } else if (this.installed) {\n return html`INSTALLED `;\n }\n return null;\n }\n handleClick() {\n EventsCtrl.click({ name: \"WALLET_BUTTON\", walletId: this.walletId });\n this.onClick();\n }\n // -- render ------------------------------------------------------- //\n render() {\n var _a;\n return html`${(_a = this.label) != null ? _a : UiUtil.getWalletName(this.name, true)} ${this.sublabelTemplate()}
`;\n }\n};\nWcmWalletButton.styles = [ThemeUtil.globalCss, styles$g];\n__decorateClass$k([\n property()\n], WcmWalletButton.prototype, \"onClick\", 2);\n__decorateClass$k([\n property()\n], WcmWalletButton.prototype, \"name\", 2);\n__decorateClass$k([\n property()\n], WcmWalletButton.prototype, \"walletId\", 2);\n__decorateClass$k([\n property()\n], WcmWalletButton.prototype, \"label\", 2);\n__decorateClass$k([\n property()\n], WcmWalletButton.prototype, \"imageId\", 2);\n__decorateClass$k([\n property({ type: Boolean })\n], WcmWalletButton.prototype, \"installed\", 2);\n__decorateClass$k([\n property({ type: Boolean })\n], WcmWalletButton.prototype, \"recent\", 2);\nWcmWalletButton = __decorateClass$k([\n customElement(\"wcm-wallet-button\")\n], WcmWalletButton);\n\nconst styles$f = css`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;\n\nvar __defProp$j = Object.defineProperty;\nvar __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;\nvar __decorateClass$j = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$j(target, key, result);\n return result;\n};\nlet WcmWalletImage = class extends LitElement {\n constructor() {\n super(...arguments);\n this.walletId = \"\";\n this.imageId = void 0;\n this.imageUrl = void 0;\n }\n // -- render ------------------------------------------------------- //\n render() {\n var _a;\n const src = ((_a = this.imageUrl) == null ? void 0 : _a.length) ? this.imageUrl : UiUtil.getWalletIcon({ id: this.walletId, image_id: this.imageId });\n return html`${src.length ? html`` : SvgUtil.WALLET_PLACEHOLDER}`;\n }\n};\nWcmWalletImage.styles = [ThemeUtil.globalCss, styles$f];\n__decorateClass$j([\n property()\n], WcmWalletImage.prototype, \"walletId\", 2);\n__decorateClass$j([\n property()\n], WcmWalletImage.prototype, \"imageId\", 2);\n__decorateClass$j([\n property()\n], WcmWalletImage.prototype, \"imageUrl\", 2);\nWcmWalletImage = __decorateClass$j([\n customElement(\"wcm-wallet-image\")\n], WcmWalletImage);\n\nvar __defProp$i = Object.defineProperty;\nvar __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;\nvar __decorateClass$i = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$i(target, key, result);\n return result;\n};\nlet WcmExplorerContext = class extends LitElement {\n // -- lifecycle ---------------------------------------------------- //\n constructor() {\n super();\n this.preload = true;\n this.preloadData();\n }\n // -- private ------------------------------------------------------ //\n async loadImages(images) {\n try {\n if (images == null ? void 0 : images.length) {\n await Promise.all(images.map(async (url) => UiUtil.preloadImage(url)));\n }\n } catch (e) {\n console.info(\"Unsuccessful attempt at preloading some images\", images);\n }\n }\n async preloadListings() {\n if (ConfigCtrl.state.enableExplorer) {\n await ExplorerCtrl.getRecomendedWallets();\n OptionsCtrl.setIsDataLoaded(true);\n const { recomendedWallets } = ExplorerCtrl.state;\n const walletImgs = recomendedWallets.map((wallet) => UiUtil.getWalletIcon(wallet));\n await this.loadImages(walletImgs);\n } else {\n OptionsCtrl.setIsDataLoaded(true);\n }\n }\n async preloadCustomImages() {\n const images = UiUtil.getCustomImageUrls();\n await this.loadImages(images);\n }\n async preloadData() {\n try {\n if (this.preload) {\n this.preload = false;\n await Promise.all([this.preloadListings(), this.preloadCustomImages()]);\n }\n } catch (err) {\n console.error(err);\n ToastCtrl.openToast(\"Failed preloading\", \"error\");\n }\n }\n};\n__decorateClass$i([\n state()\n], WcmExplorerContext.prototype, \"preload\", 2);\nWcmExplorerContext = __decorateClass$i([\n customElement(\"wcm-explorer-context\")\n], WcmExplorerContext);\n\nvar __defProp$h = Object.defineProperty;\nvar __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;\nvar __decorateClass$h = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$h(target, key, result);\n return result;\n};\nlet WcmThemeContext = class extends LitElement {\n // -- lifecycle ---------------------------------------------------- //\n constructor() {\n super();\n // -- private ------------------------------------------------------ //\n this.unsubscribeTheme = void 0;\n ThemeUtil.setTheme();\n this.unsubscribeTheme = ThemeCtrl.subscribe(ThemeUtil.setTheme);\n }\n disconnectedCallback() {\n var _a;\n (_a = this.unsubscribeTheme) == null ? void 0 : _a.call(this);\n }\n};\nWcmThemeContext = __decorateClass$h([\n customElement(\"wcm-theme-context\")\n], WcmThemeContext);\n\nconst styles$e = css`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;\n\nvar __defProp$g = Object.defineProperty;\nvar __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;\nvar __decorateClass$g = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$g(target, key, result);\n return result;\n};\nlet WcmAndroidWalletSelection = class extends LitElement {\n // -- private ------------------------------------------------------ //\n onGoToQrcode() {\n RouterCtrl.push(\"Qrcode\");\n }\n // -- render ------------------------------------------------------- //\n render() {\n const { recomendedWallets } = ExplorerCtrl.state;\n const wallets = [...recomendedWallets, ...recomendedWallets];\n const recomendedCount = CoreUtil.RECOMMENDED_WALLET_AMOUNT * 2;\n return html`${SvgUtil.MOBILE_ICON}WalletConnect
${[...Array(recomendedCount)].map((_, index) => {\n const wallet = wallets[index % wallets.length];\n return wallet ? html` ` : SvgUtil.WALLET_PLACEHOLDER;\n })}
Select Wallet Choose WalletConnect to see supported apps on your device `;\n }\n};\nWcmAndroidWalletSelection.styles = [ThemeUtil.globalCss, styles$e];\nWcmAndroidWalletSelection = __decorateClass$g([\n customElement(\"wcm-android-wallet-selection\")\n], WcmAndroidWalletSelection);\n\nconst styles$d = css`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;\n\nvar __defProp$f = Object.defineProperty;\nvar __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;\nvar __decorateClass$f = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$f(target, key, result);\n return result;\n};\nlet WcmConnectorWaiting = class extends LitElement {\n constructor() {\n super(...arguments);\n this.walletId = void 0;\n this.imageId = void 0;\n this.isError = false;\n this.isStale = false;\n this.label = \"\";\n }\n // -- private ------------------------------------------------------ //\n svgLoaderTemplate() {\n var _a, _b;\n const ICON_SIZE = 88;\n const DH_ARRAY = 317;\n const DH_OFFSET = 425;\n const radius = (_b = (_a = ThemeCtrl.state.themeVariables) == null ? void 0 : _a[\"--wcm-wallet-icon-large-border-radius\"]) != null ? _b : ThemeUtil.getPreset(\"--wcm-wallet-icon-large-border-radius\");\n let numRadius = 0;\n if (radius.includes(\"%\")) {\n numRadius = ICON_SIZE / 100 * parseInt(radius, 10);\n } else {\n numRadius = parseInt(radius, 10);\n }\n numRadius *= 1.17;\n const dashArray = DH_ARRAY - numRadius * 1.57;\n const dashOffset = DH_OFFSET - numRadius * 1.8;\n return html` `;\n }\n // -- render ------------------------------------------------------- //\n render() {\n const classes = {\n \"wcm-error\": this.isError,\n \"wcm-stale\": this.isStale\n };\n return html`${this.svgLoaderTemplate()}
${this.isError ? \"Connection declined\" : this.label} `;\n }\n};\nWcmConnectorWaiting.styles = [ThemeUtil.globalCss, styles$d];\n__decorateClass$f([\n property()\n], WcmConnectorWaiting.prototype, \"walletId\", 2);\n__decorateClass$f([\n property()\n], WcmConnectorWaiting.prototype, \"imageId\", 2);\n__decorateClass$f([\n property({ type: Boolean })\n], WcmConnectorWaiting.prototype, \"isError\", 2);\n__decorateClass$f([\n property({ type: Boolean })\n], WcmConnectorWaiting.prototype, \"isStale\", 2);\n__decorateClass$f([\n property()\n], WcmConnectorWaiting.prototype, \"label\", 2);\nWcmConnectorWaiting = __decorateClass$f([\n customElement(\"wcm-connector-waiting\")\n], WcmConnectorWaiting);\n\nconst DataUtil = {\n manualWallets() {\n var _a, _b;\n const { mobileWallets, desktopWallets } = ConfigCtrl.state;\n const recentWalletId = (_a = DataUtil.recentWallet()) == null ? void 0 : _a.id;\n const platformWallets = CoreUtil.isMobile() ? mobileWallets : desktopWallets;\n const wallets = platformWallets == null ? void 0 : platformWallets.filter((wallet) => recentWalletId !== wallet.id);\n return (_b = CoreUtil.isMobile() ? wallets == null ? void 0 : wallets.map(({ id, name, links }) => ({ id, name, mobile: links, links })) : wallets == null ? void 0 : wallets.map(({ id, name, links }) => ({ id, name, desktop: links, links }))) != null ? _b : [];\n },\n recentWallet() {\n return UiUtil.getRecentWallet();\n },\n recomendedWallets(skipRecent = false) {\n var _a;\n const recentWalletId = skipRecent ? void 0 : (_a = DataUtil.recentWallet()) == null ? void 0 : _a.id;\n const { recomendedWallets } = ExplorerCtrl.state;\n const wallets = recomendedWallets.filter((wallet) => recentWalletId !== wallet.id);\n return wallets;\n }\n};\n\nconst TemplateUtil = {\n onConnecting(data) {\n UiUtil.goToConnectingView(data);\n },\n manualWalletsTemplate() {\n const wallets = DataUtil.manualWallets();\n return wallets.map(\n (wallet) => html` this.onConnecting(wallet)}\"> `\n );\n },\n recomendedWalletsTemplate(skipRecent = false) {\n const wallets = DataUtil.recomendedWallets(skipRecent);\n return wallets.map(\n (wallet) => html` this.onConnecting(wallet)}\"> `\n );\n },\n recentWalletTemplate() {\n const wallet = DataUtil.recentWallet();\n if (!wallet) {\n return void 0;\n }\n return html` this.onConnecting(wallet)}\"> `;\n }\n};\n\nconst styles$c = css`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;\n\nvar __defProp$e = Object.defineProperty;\nvar __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;\nvar __decorateClass$e = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$e(target, key, result);\n return result;\n};\nlet WcmDesktopWalletSelection = class extends LitElement {\n // -- render ------------------------------------------------------- //\n render() {\n const { explorerExcludedWalletIds, enableExplorer } = ConfigCtrl.state;\n const isExplorerWallets = explorerExcludedWalletIds !== \"ALL\" && enableExplorer;\n const manualTemplate = TemplateUtil.manualWalletsTemplate();\n const recomendedTemplate = TemplateUtil.recomendedWalletsTemplate();\n const recentTemplate = TemplateUtil.recentWalletTemplate();\n let templates = [recentTemplate, ...manualTemplate, ...recomendedTemplate];\n templates = templates.filter(Boolean);\n const isViewAll = templates.length > 4 || isExplorerWallets;\n let wallets = [];\n if (isViewAll) {\n wallets = templates.slice(0, 3);\n } else {\n wallets = templates;\n }\n const isWallets = Boolean(wallets.length);\n return html`${SvgUtil.MOBILE_ICON}Mobile
${SvgUtil.SCAN_ICON}Scan with your wallet
${isWallets ? html`${SvgUtil.DESKTOP_ICON}Desktop
${wallets} ${isViewAll ? html` ` : null}
` : null}`;\n }\n};\nWcmDesktopWalletSelection.styles = [ThemeUtil.globalCss, styles$c];\nWcmDesktopWalletSelection = __decorateClass$e([\n customElement(\"wcm-desktop-wallet-selection\")\n], WcmDesktopWalletSelection);\n\nconst styles$b = css`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;\n\nvar __defProp$d = Object.defineProperty;\nvar __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;\nvar __decorateClass$d = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$d(target, key, result);\n return result;\n};\nlet WcmLegalNotice = class extends LitElement {\n // -- render ------------------------------------------------------- //\n render() {\n const { termsOfServiceUrl, privacyPolicyUrl } = ConfigCtrl.state;\n const isLegal = termsOfServiceUrl != null ? termsOfServiceUrl : privacyPolicyUrl;\n if (!isLegal) {\n return null;\n }\n return html`By connecting your wallet to this app, you agree to the app's ${termsOfServiceUrl ? html`Terms of Service ` : null} ${termsOfServiceUrl && privacyPolicyUrl ? \"and\" : null} ${privacyPolicyUrl ? html`Privacy Policy ` : null} `;\n }\n};\nWcmLegalNotice.styles = [ThemeUtil.globalCss, styles$b];\nWcmLegalNotice = __decorateClass$d([\n customElement(\"wcm-legal-notice\")\n], WcmLegalNotice);\n\nconst styles$a = css`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;\n\nvar __defProp$c = Object.defineProperty;\nvar __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;\nvar __decorateClass$c = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$c(target, key, result);\n return result;\n};\nlet WcmMobileWalletSelection = class extends LitElement {\n // -- private ------------------------------------------------------ //\n onQrcode() {\n RouterCtrl.push(\"Qrcode\");\n }\n // -- render ------------------------------------------------------- //\n render() {\n const { explorerExcludedWalletIds, enableExplorer } = ConfigCtrl.state;\n const isExplorerWallets = explorerExcludedWalletIds !== \"ALL\" && enableExplorer;\n const manualTemplate = TemplateUtil.manualWalletsTemplate();\n const recomendedTemplate = TemplateUtil.recomendedWalletsTemplate();\n const recentTemplate = TemplateUtil.recentWalletTemplate();\n let templates = [recentTemplate, ...manualTemplate, ...recomendedTemplate];\n templates = templates.filter(Boolean);\n const isViewAll = templates.length > 8 || isExplorerWallets;\n let wallets = [];\n if (isViewAll) {\n wallets = templates.slice(0, 7);\n } else {\n wallets = templates;\n }\n const isWallets = Boolean(wallets.length);\n return html` ${isWallets ? html`${wallets} ${isViewAll ? html` ` : null}
` : null}`;\n }\n};\nWcmMobileWalletSelection.styles = [ThemeUtil.globalCss, styles$a];\nWcmMobileWalletSelection = __decorateClass$c([\n customElement(\"wcm-mobile-wallet-selection\")\n], WcmMobileWalletSelection);\n\nconst styles$9 = css`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;\n\nvar __defProp$b = Object.defineProperty;\nvar __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;\nvar __decorateClass$b = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$b(target, key, result);\n return result;\n};\nlet WcmModal = class extends LitElement {\n // -- lifecycle ---------------------------------------------------- //\n constructor() {\n super();\n this.open = false;\n this.active = false;\n // -- private ------------------------------------------------------ //\n this.unsubscribeModal = void 0;\n this.abortController = void 0;\n this.unsubscribeModal = ModalCtrl.subscribe((modalState) => {\n if (modalState.open) {\n this.onOpenModalEvent();\n } else {\n this.onCloseModalEvent();\n }\n });\n }\n disconnectedCallback() {\n var _a;\n (_a = this.unsubscribeModal) == null ? void 0 : _a.call(this);\n }\n get overlayEl() {\n return UiUtil.getShadowRootElement(this, \".wcm-overlay\");\n }\n get containerEl() {\n return UiUtil.getShadowRootElement(this, \".wcm-container\");\n }\n toggleBodyScroll(enabled) {\n const body = document.querySelector(\"body\");\n if (body) {\n if (enabled) {\n const wcmStyles = document.getElementById(\"wcm-styles\");\n wcmStyles == null ? void 0 : wcmStyles.remove();\n } else {\n document.head.insertAdjacentHTML(\n \"beforeend\",\n ``\n );\n }\n }\n }\n onCloseModal(event) {\n if (event.target === event.currentTarget) {\n ModalCtrl.close();\n }\n }\n onOpenModalEvent() {\n this.toggleBodyScroll(false);\n this.addKeyboardEvents();\n this.open = true;\n setTimeout(async () => {\n const animation = UiUtil.isMobileAnimation() ? { y: [\"50vh\", \"0vh\"] } : { scale: [0.98, 1] };\n const delay = 0.1;\n const duration = 0.2;\n await Promise.all([\n animate(this.overlayEl, { opacity: [0, 1] }, { delay, duration }).finished,\n animate(this.containerEl, animation, { delay, duration }).finished\n ]);\n this.active = true;\n }, 0);\n }\n async onCloseModalEvent() {\n this.toggleBodyScroll(true);\n this.removeKeyboardEvents();\n const animation = UiUtil.isMobileAnimation() ? { y: [\"0vh\", \"50vh\"] } : { scale: [1, 0.98] };\n const duration = 0.2;\n await Promise.all([\n animate(this.overlayEl, { opacity: [1, 0] }, { duration }).finished,\n animate(this.containerEl, animation, { duration }).finished\n ]);\n this.containerEl.removeAttribute(\"style\");\n this.active = false;\n this.open = false;\n }\n addKeyboardEvents() {\n this.abortController = new AbortController();\n window.addEventListener(\n \"keydown\",\n (event) => {\n var _a;\n if (event.key === \"Escape\") {\n ModalCtrl.close();\n } else if (event.key === \"Tab\") {\n if (!((_a = event.target) == null ? void 0 : _a.tagName.includes(\"wcm-\"))) {\n this.containerEl.focus();\n }\n }\n },\n this.abortController\n );\n this.containerEl.focus();\n }\n removeKeyboardEvents() {\n var _a;\n (_a = this.abortController) == null ? void 0 : _a.abort();\n this.abortController = void 0;\n }\n // -- render ------------------------------------------------------- //\n render() {\n const classes = {\n \"wcm-overlay\": true,\n \"wcm-active\": this.active\n };\n return html`${this.open ? html`
` : null}
`;\n }\n};\nWcmModal.styles = [ThemeUtil.globalCss, styles$9];\n__decorateClass$b([\n state()\n], WcmModal.prototype, \"open\", 2);\n__decorateClass$b([\n state()\n], WcmModal.prototype, \"active\", 2);\nWcmModal = __decorateClass$b([\n customElement(\"wcm-modal\")\n], WcmModal);\n\nconst styles$8 = css`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;\n\nvar __defProp$a = Object.defineProperty;\nvar __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;\nvar __decorateClass$a = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$a(target, key, result);\n return result;\n};\nlet WcmPlatformSelection = class extends LitElement {\n constructor() {\n super(...arguments);\n this.isMobile = false;\n this.isDesktop = false;\n this.isWeb = false;\n this.isRetry = false;\n }\n // -- private ------------------------------------------------------ //\n onMobile() {\n const isMobile = CoreUtil.isMobile();\n if (isMobile) {\n RouterCtrl.replace(\"MobileConnecting\");\n } else {\n RouterCtrl.replace(\"MobileQrcodeConnecting\");\n }\n }\n onDesktop() {\n RouterCtrl.replace(\"DesktopConnecting\");\n }\n onWeb() {\n RouterCtrl.replace(\"WebConnecting\");\n }\n // -- render ------------------------------------------------------- //\n render() {\n return html`${this.isRetry ? html` ` : null} ${this.isMobile ? html`Mobile ` : null} ${this.isDesktop ? html`Desktop ` : null} ${this.isWeb ? html`Web ` : null}
`;\n }\n};\nWcmPlatformSelection.styles = [ThemeUtil.globalCss, styles$8];\n__decorateClass$a([\n property({ type: Boolean })\n], WcmPlatformSelection.prototype, \"isMobile\", 2);\n__decorateClass$a([\n property({ type: Boolean })\n], WcmPlatformSelection.prototype, \"isDesktop\", 2);\n__decorateClass$a([\n property({ type: Boolean })\n], WcmPlatformSelection.prototype, \"isWeb\", 2);\n__decorateClass$a([\n property({ type: Boolean })\n], WcmPlatformSelection.prototype, \"isRetry\", 2);\nWcmPlatformSelection = __decorateClass$a([\n customElement(\"wcm-platform-selection\")\n], WcmPlatformSelection);\n\nconst styles$7 = css`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;\n\nvar __defProp$9 = Object.defineProperty;\nvar __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$9 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$9(target, key, result);\n return result;\n};\nlet WcmViewAllWalletsButton = class extends LitElement {\n // -- render ------------------------------------------------------- //\n onClick() {\n RouterCtrl.push(\"WalletExplorer\");\n }\n // -- render ------------------------------------------------------- //\n render() {\n const { recomendedWallets } = ExplorerCtrl.state;\n const manualWallets = DataUtil.manualWallets();\n const reversedWallets = [...recomendedWallets, ...manualWallets].reverse().slice(0, 4);\n return html`${reversedWallets.map((wallet) => {\n const explorerImg = UiUtil.getWalletIcon(wallet);\n if (explorerImg) {\n return html`
`;\n }\n const src = UiUtil.getWalletIcon({ id: wallet.id });\n return src ? html`
` : SvgUtil.WALLET_PLACEHOLDER;\n })} ${[...Array(4 - reversedWallets.length)].map(() => SvgUtil.WALLET_PLACEHOLDER)}
View All `;\n }\n};\nWcmViewAllWalletsButton.styles = [ThemeUtil.globalCss, styles$7];\nWcmViewAllWalletsButton = __decorateClass$9([\n customElement(\"wcm-view-all-wallets-button\")\n], WcmViewAllWalletsButton);\n\nconst styles$6 = css`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;\n\nvar __defProp$8 = Object.defineProperty;\nvar __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$8 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$8(target, key, result);\n return result;\n};\nlet WcmWalletConnectQr = class extends LitElement {\n // -- lifecycle ---------------------------------------------------- //\n constructor() {\n super();\n this.walletId = \"\";\n this.imageId = \"\";\n this.uri = \"\";\n setTimeout(() => {\n const { walletConnectUri } = OptionsCtrl.state;\n this.uri = walletConnectUri;\n }, 0);\n }\n // -- private ------------------------------------------------------ //\n get overlayEl() {\n return UiUtil.getShadowRootElement(this, \".wcm-qr-container\");\n }\n // -- render ------------------------------------------------------- //\n render() {\n return html`${this.uri ? html` ` : html` `}
`;\n }\n};\nWcmWalletConnectQr.styles = [ThemeUtil.globalCss, styles$6];\n__decorateClass$8([\n property()\n], WcmWalletConnectQr.prototype, \"walletId\", 2);\n__decorateClass$8([\n property()\n], WcmWalletConnectQr.prototype, \"imageId\", 2);\n__decorateClass$8([\n state()\n], WcmWalletConnectQr.prototype, \"uri\", 2);\nWcmWalletConnectQr = __decorateClass$8([\n customElement(\"wcm-walletconnect-qr\")\n], WcmWalletConnectQr);\n\nvar __defProp$7 = Object.defineProperty;\nvar __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$7 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$7(target, key, result);\n return result;\n};\nlet WcmConnectWalletView = class extends LitElement {\n // -- private ------------------------------------------------------ //\n viewTemplate() {\n if (CoreUtil.isAndroid() && !CoreUtil.isTelegram()) {\n return html` `;\n }\n if (CoreUtil.isMobile()) {\n return html` `;\n }\n return html` `;\n }\n // -- render ------------------------------------------------------- //\n render() {\n return html`${this.viewTemplate()} `;\n }\n};\nWcmConnectWalletView.styles = [ThemeUtil.globalCss];\nWcmConnectWalletView = __decorateClass$7([\n customElement(\"wcm-connect-wallet-view\")\n], WcmConnectWalletView);\n\nconst styles$5 = css`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;\n\nvar __defProp$6 = Object.defineProperty;\nvar __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$6 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$6(target, key, result);\n return result;\n};\nlet WcmDesktopConnectingView = class extends LitElement {\n // -- lifecycle ---------------------------------------------------- //\n constructor() {\n super();\n this.isError = false;\n this.openDesktopApp();\n }\n // -- private ------------------------------------------------------ //\n onFormatAndRedirect(uri) {\n const { desktop, name } = CoreUtil.getWalletRouterData();\n const nativeUrl = desktop == null ? void 0 : desktop.native;\n const universalUrl = desktop == null ? void 0 : desktop.universal;\n if (nativeUrl) {\n const href = CoreUtil.formatNativeUrl(nativeUrl, uri, name);\n CoreUtil.openHref(href, \"_self\");\n } else if (universalUrl) {\n const href = CoreUtil.formatUniversalUrl(universalUrl, uri, name);\n CoreUtil.openHref(href, \"_blank\");\n }\n }\n openDesktopApp() {\n const { walletConnectUri } = OptionsCtrl.state;\n const routerData = CoreUtil.getWalletRouterData();\n UiUtil.setRecentWallet(routerData);\n if (walletConnectUri) {\n this.onFormatAndRedirect(walletConnectUri);\n }\n }\n // -- render ------------------------------------------------------- //\n render() {\n const { name, id, image_id } = CoreUtil.getWalletRouterData();\n const { isMobile, isWeb } = UiUtil.getCachedRouterWalletPlatforms();\n return html`${`Connection can continue loading if ${name} is not installed on your device`} Retry `;\n }\n};\nWcmDesktopConnectingView.styles = [ThemeUtil.globalCss, styles$5];\n__decorateClass$6([\n state()\n], WcmDesktopConnectingView.prototype, \"isError\", 2);\nWcmDesktopConnectingView = __decorateClass$6([\n customElement(\"wcm-desktop-connecting-view\")\n], WcmDesktopConnectingView);\n\nconst styles$4 = css`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;\n\nvar __defProp$5 = Object.defineProperty;\nvar __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$5 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$5(target, key, result);\n return result;\n};\nlet WcmInstallWalletView = class extends LitElement {\n // -- private ------------------------------------------------------ //\n onInstall(uri) {\n if (uri) {\n CoreUtil.openHref(uri, \"_blank\");\n }\n }\n // -- render ------------------------------------------------------- //\n render() {\n const { name, id, image_id, homepage } = CoreUtil.getWalletRouterData();\n return html`${`Download ${name} to continue. If multiple browser extensions are installed, disable non ${name} ones and try again`} this.onInstall(homepage)}\" .iconLeft=\"${SvgUtil.ARROW_DOWN_ICON}\">Download `;\n }\n};\nWcmInstallWalletView.styles = [ThemeUtil.globalCss, styles$4];\nWcmInstallWalletView = __decorateClass$5([\n customElement(\"wcm-install-wallet-view\")\n], WcmInstallWalletView);\n\nconst styles$3 = css`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;\n\nvar __defProp$4 = Object.defineProperty;\nvar __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$4 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$4(target, key, result);\n return result;\n};\nlet WcmMobileConnectingView = class extends LitElement {\n // -- lifecycle ---------------------------------------------------- //\n constructor() {\n super();\n this.isError = false;\n this.openMobileApp();\n }\n // -- private ------------------------------------------------------ //\n onFormatAndRedirect(uri, forceUniversalUrl = false) {\n const { mobile, name } = CoreUtil.getWalletRouterData();\n const nativeUrl = mobile == null ? void 0 : mobile.native;\n const universalUrl = mobile == null ? void 0 : mobile.universal;\n const target = CoreUtil.isTelegram() ? \"_blank\" : \"_self\";\n uri = CoreUtil.isTelegram() && CoreUtil.isAndroid() ? encodeURIComponent(uri) : uri;\n if (nativeUrl && !forceUniversalUrl) {\n const href = CoreUtil.formatNativeUrl(nativeUrl, uri, name);\n CoreUtil.openHref(href, target);\n } else if (universalUrl) {\n const href = CoreUtil.formatUniversalUrl(universalUrl, uri, name);\n CoreUtil.openHref(href, target);\n }\n }\n openMobileApp(forceUniversalUrl = false) {\n const { walletConnectUri } = OptionsCtrl.state;\n const routerData = CoreUtil.getWalletRouterData();\n if (walletConnectUri) {\n this.onFormatAndRedirect(walletConnectUri, forceUniversalUrl);\n }\n UiUtil.setRecentWallet(routerData);\n }\n onGoToAppStore(downloadUrl) {\n if (downloadUrl) {\n CoreUtil.openHref(downloadUrl, \"_blank\");\n }\n }\n // -- render ------------------------------------------------------- //\n render() {\n const { name, id, image_id, app, mobile } = CoreUtil.getWalletRouterData();\n const { isWeb } = UiUtil.getCachedRouterWalletPlatforms();\n const downloadUrl = app == null ? void 0 : app.ios;\n const universalUrl = mobile == null ? void 0 : mobile.universal;\n return html` this.openMobileApp(false)}\" .iconRight=\"${SvgUtil.RETRY_ICON}\">Retry ${universalUrl ? html`Still doesn't work? this.openMobileApp(true)}\">Try this alternate link ` : null}${`Get ${name}`}
this.onGoToAppStore(downloadUrl)}\" variant=\"ghost\">App Store `;\n }\n};\nWcmMobileConnectingView.styles = [ThemeUtil.globalCss, styles$3];\n__decorateClass$4([\n state()\n], WcmMobileConnectingView.prototype, \"isError\", 2);\nWcmMobileConnectingView = __decorateClass$4([\n customElement(\"wcm-mobile-connecting-view\")\n], WcmMobileConnectingView);\n\nconst styles$2 = css`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;\n\nvar __defProp$3 = Object.defineProperty;\nvar __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$3 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$3(target, key, result);\n return result;\n};\nlet WcmMobileQrConnectingView = class extends LitElement {\n // -- render ------------------------------------------------------- //\n render() {\n const { name, id, image_id } = CoreUtil.getWalletRouterData();\n const { isDesktop, isWeb } = UiUtil.getCachedRouterWalletPlatforms();\n return html`${`Scan this QR Code with your phone's camera or inside ${name} app`} `;\n }\n};\nWcmMobileQrConnectingView.styles = [ThemeUtil.globalCss, styles$2];\nWcmMobileQrConnectingView = __decorateClass$3([\n customElement(\"wcm-mobile-qr-connecting-view\")\n], WcmMobileQrConnectingView);\n\nvar __defProp$2 = Object.defineProperty;\nvar __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$2 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$2(target, key, result);\n return result;\n};\nlet WcmQrcodeView = class extends LitElement {\n // -- render ------------------------------------------------------- //\n render() {\n return html` `;\n }\n};\nWcmQrcodeView.styles = [ThemeUtil.globalCss];\nWcmQrcodeView = __decorateClass$2([\n customElement(\"wcm-qrcode-view\")\n], WcmQrcodeView);\n\nconst styles$1 = css`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;\n\nvar __defProp$1 = Object.defineProperty;\nvar __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;\nvar __decorateClass$1 = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp$1(target, key, result);\n return result;\n};\nconst PAGE_ENTRIES = 40;\nlet WcmWalletExplorerView = class extends LitElement {\n constructor() {\n super(...arguments);\n this.loading = !ExplorerCtrl.state.wallets.listings.length;\n this.firstFetch = !ExplorerCtrl.state.wallets.listings.length;\n this.search = \"\";\n this.endReached = false;\n this.intersectionObserver = void 0;\n this.searchDebounce = UiUtil.debounce((value) => {\n if (value.length >= 1) {\n this.firstFetch = true;\n this.endReached = false;\n this.search = value;\n ExplorerCtrl.resetSearch();\n this.fetchWallets();\n } else if (this.search) {\n this.search = \"\";\n this.endReached = this.isLastPage();\n ExplorerCtrl.resetSearch();\n }\n });\n }\n // -- lifecycle ---------------------------------------------------- //\n firstUpdated() {\n this.createPaginationObserver();\n }\n disconnectedCallback() {\n var _a;\n (_a = this.intersectionObserver) == null ? void 0 : _a.disconnect();\n }\n // -- private ------------------------------------------------------ //\n get placeholderEl() {\n return UiUtil.getShadowRootElement(this, \".wcm-placeholder-block\");\n }\n createPaginationObserver() {\n this.intersectionObserver = new IntersectionObserver(([element]) => {\n if (element.isIntersecting && !(this.search && this.firstFetch)) {\n this.fetchWallets();\n }\n });\n this.intersectionObserver.observe(this.placeholderEl);\n }\n isLastPage() {\n const { wallets, search } = ExplorerCtrl.state;\n const { listings, total } = this.search ? search : wallets;\n return total <= PAGE_ENTRIES || listings.length >= total;\n }\n async fetchWallets() {\n var _a;\n const { wallets, search } = ExplorerCtrl.state;\n const { listings, total, page } = this.search ? search : wallets;\n if (!this.endReached && (this.firstFetch || total > PAGE_ENTRIES && listings.length < total)) {\n try {\n this.loading = true;\n const chains = (_a = OptionsCtrl.state.chains) == null ? void 0 : _a.join(\",\");\n const { listings: newListings } = await ExplorerCtrl.getWallets({\n page: this.firstFetch ? 1 : page + 1,\n entries: PAGE_ENTRIES,\n search: this.search,\n version: 2,\n chains\n });\n const explorerImages = newListings.map((wallet) => UiUtil.getWalletIcon(wallet));\n await Promise.all([\n ...explorerImages.map(async (url) => UiUtil.preloadImage(url)),\n CoreUtil.wait(300)\n ]);\n this.endReached = this.isLastPage();\n } catch (err) {\n console.error(err);\n ToastCtrl.openToast(UiUtil.getErrorMessage(err), \"error\");\n } finally {\n this.loading = false;\n this.firstFetch = false;\n }\n }\n }\n onConnect(listing) {\n if (CoreUtil.isAndroid()) {\n UiUtil.handleMobileLinking(listing);\n } else {\n UiUtil.goToConnectingView(listing);\n }\n }\n onSearchChange(event) {\n const { value } = event.target;\n this.searchDebounce(value);\n }\n // -- render ------------------------------------------------------- //\n render() {\n const { wallets, search } = ExplorerCtrl.state;\n const { listings } = this.search ? search : wallets;\n const isLoading = this.loading && !listings.length;\n const isSearch = this.search.length >= 3;\n let manualWallets = TemplateUtil.manualWalletsTemplate();\n let recomendedWallets = TemplateUtil.recomendedWalletsTemplate(true);\n if (isSearch) {\n manualWallets = manualWallets.filter(\n ({ values }) => UiUtil.caseSafeIncludes(values[0], this.search)\n );\n recomendedWallets = recomendedWallets.filter(\n ({ values }) => UiUtil.caseSafeIncludes(values[0], this.search)\n );\n }\n const isEmpty = !this.loading && !listings.length && !recomendedWallets.length;\n const classes = {\n \"wcm-loading\": isLoading,\n \"wcm-end-reached\": this.endReached || !this.loading,\n \"wcm-empty\": isEmpty\n };\n return html`${isLoading ? null : manualWallets} ${isLoading ? null : recomendedWallets} ${isLoading ? null : listings.map(\n (listing) => html`${listing ? html` this.onConnect(listing)}\"> ` : null}`\n )}
${isEmpty ? html`No results found ` : null} ${!isEmpty && this.loading ? html` ` : null}
`;\n }\n};\nWcmWalletExplorerView.styles = [ThemeUtil.globalCss, styles$1];\n__decorateClass$1([\n state()\n], WcmWalletExplorerView.prototype, \"loading\", 2);\n__decorateClass$1([\n state()\n], WcmWalletExplorerView.prototype, \"firstFetch\", 2);\n__decorateClass$1([\n state()\n], WcmWalletExplorerView.prototype, \"search\", 2);\n__decorateClass$1([\n state()\n], WcmWalletExplorerView.prototype, \"endReached\", 2);\nWcmWalletExplorerView = __decorateClass$1([\n customElement(\"wcm-wallet-explorer-view\")\n], WcmWalletExplorerView);\n\nconst styles = css`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;\n\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __decorateClass = (decorators, target, key, kind) => {\n var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;\n for (var i = decorators.length - 1, decorator; i >= 0; i--)\n if (decorator = decorators[i])\n result = (kind ? decorator(target, key, result) : decorator(result)) || result;\n if (kind && result)\n __defProp(target, key, result);\n return result;\n};\nlet WcmWebConnectingView = class extends LitElement {\n // -- lifecycle ---------------------------------------------------- //\n constructor() {\n super();\n this.isError = false;\n this.openWebWallet();\n }\n // -- private ------------------------------------------------------ //\n onFormatAndRedirect(uri) {\n const { desktop, name } = CoreUtil.getWalletRouterData();\n const universalUrl = desktop == null ? void 0 : desktop.universal;\n if (universalUrl) {\n const href = CoreUtil.formatUniversalUrl(universalUrl, uri, name);\n CoreUtil.openHref(href, \"_blank\");\n }\n }\n openWebWallet() {\n const { walletConnectUri } = OptionsCtrl.state;\n const routerData = CoreUtil.getWalletRouterData();\n UiUtil.setRecentWallet(routerData);\n if (walletConnectUri) {\n this.onFormatAndRedirect(walletConnectUri);\n }\n }\n // -- render ------------------------------------------------------- //\n render() {\n const { name, id, image_id } = CoreUtil.getWalletRouterData();\n const { isMobile, isDesktop } = UiUtil.getCachedRouterWalletPlatforms();\n const isMobilePlatform = CoreUtil.isMobile();\n return html`${`${name} web app has opened in a new tab. Go there, accept the connection, and come back`} Retry `;\n }\n};\nWcmWebConnectingView.styles = [ThemeUtil.globalCss, styles];\n__decorateClass([\n state()\n], WcmWebConnectingView.prototype, \"isError\", 2);\nWcmWebConnectingView = __decorateClass([\n customElement(\"wcm-web-connecting-view\")\n], WcmWebConnectingView);\n\nexport { WcmModal, WcmQrCode };\n//# sourceMappingURL=index.js.map\n"],"names":["canPromise","__webpack_require__","QRCode","CanvasRenderer","SvgRenderer","renderCanvas","renderFunc","canvas","text","opts","cb","args","slice","call","arguments","argsNum","length","isLastArgCb","undefined","getContext","Promise","resolve","reject","data","create","e","exports","toCanvas","bind","render","toDataURL","renderToDataURL","toString","_","module","prototype","then","getSymbolSize","getRowColCoords","version","posCount","Math","floor","size","intervals","ceil","positions","i","push","reverse","getPositions","coords","pos","posLength","j","Mode","ALPHA_NUM_CHARS","AlphanumericData","mode","ALPHANUMERIC","getBitsLength","getLength","write","bitBuffer","value","indexOf","put","BitBuffer","buffer","get","index","num","putBit","getLengthInBits","bit","bufIndex","BitMatrix","Uint8Array","reservedBit","set","row","col","reserved","xor","isReserved","encodeUtf8","ByteData","BYTE","l","ECLevel","EC_BLOCKS_TABLE","EC_CODEWORDS_TABLE","getBlocksCount","errorCorrectionLevel","L","M","Q","H","getTotalCodewordsCount","isValid","level","from","defaultValue","fromString","string","toLowerCase","Utils","G15_BCH","getBCHDigit","getEncodedBits","mask","d","G15","EXP_TABLE","LOG_TABLE","x","log","n","exp","mul","y","KanjiData","KANJI","toSJIS","Patterns","PATTERN000","PATTERN001","PATTERN010","PATTERN011","PATTERN100","PATTERN101","PATTERN110","PATTERN111","PenaltyScores","N1","N2","N3","N4","isNaN","parseInt","getPenaltyN1","points","sameCountCol","sameCountRow","lastCol","lastRow","getPenaltyN2","last","getPenaltyN3","bitsCol","bitsRow","getPenaltyN4","darkCount","modulesCount","k","abs","applyMask","pattern","getMaskAt","maskPattern","getBestMask","setupFormatFunc","numPatterns","Object","keys","bestPattern","lowerPenalty","Infinity","p","penalty","VersionCheck","Regex","NUMERIC","id","ccBits","MIXED","getCharCountIndicator","getBestModeForData","dataStr","testNumeric","testAlphanumeric","testKanji","NumericData","substr","remainingNum","GF","p1","p2","coeff","mod","divident","divisor","result","offset","generateECPolynomial","degree","poly","AlignmentPattern","FinderPattern","MaskPattern","ECCode","ReedSolomonEncoder","Version","FormatInfo","Segments","setupFormatInfo","matrix","bits","options","toSJISFunc","setToSJISFunction","createSymbol","segments","Array","isArray","fromArray","estimatedVersion","rawSegments","rawSplit","getBestVersionForData","bestVersion","dataBits","createData","forEach","dataTotalCodewordsBits","totalCodewords","getSymbolTotalCodewords","remainingByte","createCodewords","r","dataTotalCodewords","ecTotalBlocks","blocksInGroup2","blocksInGroup1","totalCodewordsInGroup1","dataCodewordsInGroup1","dataCodewordsInGroup2","ecCount","rs","dcData","ecData","maxDataSize","b","dataSize","encode","max","modules","setupFinderPattern","c","setupTimingPattern","setupAlignmentPattern","setupVersionInfo","setupData","inc","bitIndex","byteIndex","dark","Polynomial","genPoly","initialize","paddedData","remainder","start","buff","numeric","kanji","byte","replace","BYTE_KANJI","TEST_KANJI","TEST_NUMERIC","TEST_ALPHANUMERIC","str","test","dijkstra","getStringByteLength","unescape","encodeURIComponent","getSegments","regex","exec","getSegmentsFromString","byteSegs","kanjiSegs","numSegs","alphaNumSegs","isKanjiModeEnabled","segs","concat","sort","s1","s2","map","obj","getSegmentBitsLength","buildSingleSegment","modesHint","bestMode","array","reduce","acc","seg","graph","buildGraph","nodes","table","prevNodeIds","nodeGroup","currentNodeIds","node","key","lastCount","prevNodeId","end","buildNodes","path","find_path","optimizedSegs","curr","prevSeg","toSJISFunction","CODEWORDS_COUNT","digit","f","G18_BCH","getReservedBitsCount","getCapacity","usableBits","ecl","getBestVersionForMixedData","currentVersion","totalBits","reservedBits","getBestVersionForDataLength","G18","qrData","canvasEl","getCanvasElement","document","createElement","getOptions","getImageWidth","ctx","image","createImageData","qrToImageData","clearRect","width","height","style","putImageData","type","rendererOpts","quality","getColorAttrib","color","attrib","alpha","a","hex","toFixed","svgCmd","cmd","qrcodesize","margin","bg","light","qrToPath","moveBy","newRow","lineLength","svgTag","hex2rgba","hexCode","split","apply","hexValue","join","g","scale","getScale","qrSize","imgData","qr","symbolSize","scaledMargin","palette","posDst","pxColor","iSrc","input","point","charCodeAt","second","t","css_tag_t","window","css_tag_e","ShadowRoot","ShadyCSS","nativeShadow","Document","CSSStyleSheet","s","Symbol","WeakMap","css_tag_o","constructor","_$cssResult$","Error","cssText","styleSheet","o","replaceSync","S","adoptedStyleSheets","litNonce","setAttribute","textContent","appendChild","cssRules","reactive_element_e","reactive_element_r","trustedTypes","h","emptyScript","reactive_element_o","reactiveElementPolyfillSupport","reactive_element_n","toAttribute","Boolean","JSON","stringify","fromAttribute","Number","parse","attribute","String","converter","reflect","hasChanged","u","HTMLElement","_$Ei","Map","isUpdatePending","hasUpdated","_$El","_$Eu","addInitializer","finalize","observedAttributes","elementProperties","_$Ep","_$Ev","createProperty","state","noAccessor","hasOwnProperty","getPropertyDescriptor","defineProperty","requestUpdate","configurable","enumerable","getPropertyOptions","getPrototypeOf","properties","getOwnPropertyNames","getOwnPropertySymbols","elementStyles","finalizeStyles","styles","Set","flat","unshift","_$E_","enableUpdating","_$AL","_$Eg","addController","_$ES","renderRoot","isConnected","hostConnected","removeController","splice","createRenderRoot","shadowRoot","attachShadow","shadowRootOptions","connectedCallback","disconnectedCallback","hostDisconnected","attributeChangedCallback","_$AK","_$EO","removeAttribute","has","_$EC","_$Ej","scheduleUpdate","performUpdate","shouldUpdate","willUpdate","hostUpdate","update","_$Ek","_$AE","hostUpdated","firstUpdated","updated","updateComplete","getUpdateComplete","ReactiveElement","reactive_element_s","reactiveElementVersions","lit_html_i","lit_html_s","lit_html_e","createPolicy","createHTML","lit_html_o","lit_html_n","random","lit_html_l","lit_html_h","lit_html_r","lit_html_u","createComment","lit_html_d","lit_html_c","v","iterator","lit_html_a","m","RegExp","$","w","_$litType$","strings","values","T","for","A","E","C","createTreeWalker","P","V","lastIndex","startsWith","N","parts","el","currentNode","content","firstChild","remove","append","childNodes","nextNode","nodeType","hasAttributes","getAttributeNames","endsWith","getAttribute","name","ctor","z","tagName","innerHTML","lit_html_S","_$Co","_$Cl","_$litDirective$","_$AO","_$AT","_$AS","_$AV","_$AN","_$AD","_$AM","parentNode","_$AU","creationScope","importNode","R","nextSibling","Z","_$AI","_$AH","_$AA","_$AB","_$Cp","startNode","endNode","_$AR","insertBefore","createTextNode","_$AC","_$AP","setConnected","element","fill","I","capture","once","passive","removeEventListener","addEventListener","handleEvent","host","B","litHtmlPolyfillSupport","lit_html_t","litHtmlVersions","D","renderBefore","_$litPart$","lit_element_s","renderOptions","_$Do","finalized","_$litElement$","lit_element_l","globalThis","litElementHydrateSupport","LitElement","lit_element_n","litElementPolyfillSupport","lit_element_o","litElementVersions","custom_element_e","customElements","define","kind","elements","finisher","property_i","descriptor","placement","originalKey","initializer","property_e","property_n","state_t","query_assigned_elements_n","HTMLSlotElement","assignedElements","assignedNodes","filter","Node","ELEMENT_NODE","directive_i","_$Ct","_$Ci","class_map_o","it","nt","add","classList","delete","defaults","duration","delay","endDelay","repeat","easing","time","ms","seconds","milliseconds","noop","noopReturn","stopAnimation","animation","needsCommit","playState","stop","commitStyles","cancel","createAnimation","factory","withControls","animationFactory","Proxy","animations","controls","getActiveAnimation","target","activeAnimation","finished","all","selectFinished","catch","callback","isEasingGenerator","is_number_es_isNumber","isEasingList","mix","min","progress","fillOffset","remaining","offsetProgress","wrap","rangeSize","clamp","calcBezier","a1","a2","cubicBezier","mX1","mY1","mX2","mY2","getTForX","binarySubdivide","lowerBound","upperBound","currentX","currentT","aX","steps","direction","expanded","rounded","isFunction","isCubicBezier","namedEasings","ease","functionArgsRegex","easing_es_getEasingFunction","definition","argsArray","parseFloat","trim","Animation","output","keyframes","initialDuration","startTime","rate","cancelTimestamp","totalDuration","custom","updateDuration","interpolate$1","interpolate","defaultOffset","progressInRange","segmentEasing","tick","_a","pauseTime","timestamp","currentIteration","iterationProgress","iterationIsOdd","latest","frameRequestId","requestAnimationFrame","play","now","performance","pause","finish","cancelAnimationFrame","currentTime","playbackRate","invariant","MotionValue","setAnimation","clearAnimation","generator","getAnimationData","transforms","axes","transformAlias","rotation","syntax","initialValue","toDefaultUnit","baseTransformProperties","translate","rotate","skew","transformDefinitions","asTransformCssVar","order","axis","compareTransformOrder","transformLookup","isTransform","addTransformToElement","item","transform","buildTransformTemplate","transformListToString","template","isCssVar","registeredProperties","testAnimation","animate","featureTests","cssRegisterProperty","CSS","waapi","Element","partialKeyframes","opacity","linearEasing","results","supports","generateLinearEasingPoints","numPoints","round","substring","convertEasing","cubicBezierAsString","keyframesList","getStyleName","getPropertyValue","getComputedStyle","setProperty","isString","assign","option","querySelectorAll","numElements","animationFactories","valueOptions","animateStyle","keyframesDefinition","AnimationPolyfill","motionValues","record","__MOTION_DEV_TOOLS_RECORD","isRecording","persist","allowWebkitAcceleration","valueIsTransform","canAnimateNatively","motionValue","readInitialValue","_b","hydrateKeyframes","toUnit","getUnitConverter","finalKeyframe","unit","match","registerCssVariable","registerProperty","inherits","some","animationOptions","iterations","thisEasing","onfinish","oncancel","animate_es_animate","keyframesOrOptions","if_defined_l","__defProp$y","__getOwnPropSymbols","__hasOwnProp","__propIsEnum","propertyIsEnumerable","__defNormalProp","writable","__spreadValues","prop","themeVariablesPresets","ThemeUtil","getPreset","setTheme","root","querySelector","themeVariables","dist","ThemeCtrl","entries","themeModeVariables","themeModeColors","themeModePresets","foreground","background","overlay","themeMode","val","globalCss","styles$t","__defProp$x","__getOwnPropDesc$x","getOwnPropertyDescriptor","__decorateClass$x","decorators","decorator","WcmButton","disabled","iconLeft","iconRight","onClick","variant","classes","textColor","styles$s","__defProp$w","__getOwnPropDesc$w","__decorateClass$w","WcmButtonBig","styles$r","__defProp$v","__getOwnPropDesc$v","WcmInfoFooter","__decorateClass$v","SvgUtil","CROSS_ICON","WALLET_CONNECT_LOGO","WALLET_CONNECT_ICON","WALLET_CONNECT_ICON_COLORED","BACK_ICON","COPY_ICON","RETRY_ICON","DESKTOP_ICON","MOBILE_ICON","ARROW_DOWN_ICON","ARROW_UP_RIGHT_ICON","ARROW_RIGHT_ICON","QRCODE_ICON","SCAN_ICON","CHECKMARK_ICON","SEARCH_ICON","WALLET_PLACEHOLDER","GLOBE_ICON","styles$q","__defProp$u","__getOwnPropDesc$u","WcmModalBackcard","jb","close","__decorateClass$u","styles$p","__defProp$t","__getOwnPropDesc$t","WcmModalContent","__decorateClass$t","styles$o","__defProp$s","__getOwnPropDesc$s","WcmModalFooter","__decorateClass$s","styles$n","__defProp$r","__getOwnPropDesc$r","__decorateClass$r","WcmModalHeader","title","onAction","actionIcon","border","backBtnTemplate","AV","goBack","actionBtnTemplate","backBtn","history","UiUtil","MOBILE_BREAKPOINT","WCM_RECENT_WALLET_DATA","EXPLORER_WALLET_URL","getShadowRootElement","selector","getWalletIcon","image_id","walletImages","ConfigCtrl","ExplorerCtrl","getWalletImageUrl","getWalletName","short","isMobileAnimation","innerWidth","preloadImage","src","race","Image","onload","onerror","crossOrigin","zv","wait","getErrorMessage","err","message","debounce","func","timeout","timer","clearTimeout","setTimeout","handleMobileLinking","wallet","walletConnectUri","OptionsCtrl","mobile","nativeUrl","native","universalUrl","universal","setRecentWallet","onRedirect","uri","href","formatNativeUrl","openHref","formatUniversalUrl","handleAndroidLinking","setWalletConnectAndroidDeepLink","isTelegram","handleUriCopy","navigator","clipboard","writeText","ToastCtrl","openToast","getCustomImageUrls","truncate","strLen","localStorage","setItem","console","info","getRecentWallet","getItem","caseSafeIncludes","str1","str2","toUpperCase","includes","openWalletExplorerUrl","getCachedRouterWalletPlatforms","desktop","getWalletRouterData","isDesktop","isWeb","isMobile","goToConnectingView","setData","Wallet","isMobileDevice","isAndroid","styles$m","__defProp$q","__getOwnPropDesc$q","__decorateClass$q","WcmModalRouter","view","prevView","unsubscribe","oldHeight","resizeObserver","subscribe","routerState","onChangeRoute","ResizeObserver","conetnt","newHeight","contentRect","routerEl","observe","contentEl","disconnect","viewTemplate","styles$l","__defProp$p","__getOwnPropDesc$p","__decorateClass$p","WcmModalToast","open","newState","closeToast","isAdjecentDots","cy","otherCy","cellSize","diff","QrCodeUtil","generate","logoSize","dotColor","dots","getMatrix","arr","browser","sqrt","rows","qrList","x1","y1","dotSize","QRCODE_MATRIX_MARGIN","clearArenaSize","matrixMiddleStart","matrixMiddleEnd","circles","circlesToConnect","cx","cys","newCys","every","groups","group","find","y2","CIRCLE_SIZE_MODIFIER","styles$k","__defProp$o","__getOwnPropDesc$o","__decorateClass$o","WcmQrCode","imageId","walletId","imageUrl","svgTemplate","isLightMode","styles$j","__defProp$n","__getOwnPropDesc$n","__decorateClass$n","WcmSearchInput","onChange","styles$i","__defProp$m","__getOwnPropDesc$m","WcmSpinner","__decorateClass$m","styles$h","__defProp$l","__getOwnPropDesc$l","__decorateClass$l","WcmText","styles$g","__defProp$k","__getOwnPropDesc$k","__decorateClass$k","WcmWalletButton","label","installed","recent","sublabelTemplate","handleClick","uA","click","styles$f","__defProp$j","__getOwnPropDesc$j","__decorateClass$j","WcmWalletImage","__defProp$i","__getOwnPropDesc$i","__decorateClass$i","WcmExplorerContext","preload","preloadData","loadImages","images","url","preloadListings","enableExplorer","getRecomendedWallets","setIsDataLoaded","recomendedWallets","walletImgs","preloadCustomImages","error","__defProp$h","__getOwnPropDesc$h","WcmThemeContext","unsubscribeTheme","__decorateClass$h","styles$e","__defProp$g","__getOwnPropDesc$g","WcmAndroidWalletSelection","onGoToQrcode","wallets","recomendedCount","RECOMMENDED_WALLET_AMOUNT","__decorateClass$g","styles$d","__defProp$f","__getOwnPropDesc$f","__decorateClass$f","WcmConnectorWaiting","isError","isStale","svgLoaderTemplate","radius","numRadius","dashArray","DH_ARRAY","ICON_SIZE","dashOffset","DH_OFFSET","DataUtil","manualWallets","mobileWallets","desktopWallets","recentWalletId","recentWallet","platformWallets","links","skipRecent","TemplateUtil","onConnecting","manualWalletsTemplate","recomendedWalletsTemplate","recentWalletTemplate","styles$c","__defProp$e","__getOwnPropDesc$e","WcmDesktopWalletSelection","explorerExcludedWalletIds","manualTemplate","recomendedTemplate","templates","isViewAll","isWallets","__decorateClass$e","styles$b","__defProp$d","__getOwnPropDesc$d","WcmLegalNotice","termsOfServiceUrl","privacyPolicyUrl","__decorateClass$d","styles$a","__defProp$c","__getOwnPropDesc$c","WcmMobileWalletSelection","onQrcode","__decorateClass$c","styles$9","__defProp$b","__getOwnPropDesc$b","__decorateClass$b","WcmModal","active","unsubscribeModal","abortController","modalState","onOpenModalEvent","onCloseModalEvent","overlayEl","containerEl","toggleBodyScroll","enabled","wcmStyles","getElementById","head","insertAdjacentHTML","onCloseModal","event","currentTarget","addKeyboardEvents","removeKeyboardEvents","AbortController","focus","abort","styles$8","__defProp$a","__getOwnPropDesc$a","__decorateClass$a","WcmPlatformSelection","isRetry","onMobile","onDesktop","onWeb","styles$7","__defProp$9","__getOwnPropDesc$9","WcmViewAllWalletsButton","reversedWallets","explorerImg","__decorateClass$9","styles$6","__defProp$8","__getOwnPropDesc$8","__decorateClass$8","WcmWalletConnectQr","offsetWidth","__defProp$7","__getOwnPropDesc$7","WcmConnectWalletView","__decorateClass$7","styles$5","__defProp$6","__getOwnPropDesc$6","__decorateClass$6","WcmDesktopConnectingView","openDesktopApp","onFormatAndRedirect","routerData","styles$4","__defProp$5","__getOwnPropDesc$5","WcmInstallWalletView","onInstall","homepage","__decorateClass$5","styles$3","__defProp$4","__getOwnPropDesc$4","__decorateClass$4","WcmMobileConnectingView","openMobileApp","forceUniversalUrl","onGoToAppStore","downloadUrl","app","ios","styles$2","__defProp$3","__getOwnPropDesc$3","WcmMobileQrConnectingView","__decorateClass$3","__defProp$2","__getOwnPropDesc$2","WcmQrcodeView","__decorateClass$2","styles$1","__defProp$1","__getOwnPropDesc$1","__decorateClass$1","WcmWalletExplorerView","loading","listings","firstFetch","search","endReached","intersectionObserver","searchDebounce","resetSearch","fetchWallets","isLastPage","createPaginationObserver","placeholderEl","IntersectionObserver","isIntersecting","total","page","chains","newListings","getWallets","explorerImages","onConnect","listing","onSearchChange","isLoading","isSearch","isEmpty","__defProp","__getOwnPropDesc","__decorateClass","WcmWebConnectingView","openWebWallet","isMobilePlatform"],"sourceRoot":""}