import ShieldTickIcon from "../../../asset/icon/ShieldTick.svg"; import LayerIcon from "../../../asset/icon/Layer.svg"; import NoteIcon from "../../../asset/icon/Note.svg"; import PeraWalletWithText from "../../../asset/icon/PeraWallet--with-text.svg"; import PeraWalletLogo from "../../../asset/icon/PeraWallet.svg"; import styles from "./_pera-wallet-connect-modal-information-section.scss"; import {isMobile} from "../../../util/device/deviceUtils"; const peraWalletConnectModalInformationSectionTemplate = document.createElement("template"); const informationSectionClassNames = isMobile() ? "pera-wallet-connect-modal-information-section pera-wallet-connect-modal-information-section--mobile" : "pera-wallet-connect-modal-information-section pera-wallet-connect-modal-information-section--desktop"; peraWalletConnectModalInformationSectionTemplate.innerHTML = `
Pera Wallet Logo

Connect to Pera Wallet

Simply the best Algorand wallet.

Features

`; export class PeraWalletConnectModalInformationSection extends HTMLElement { constructor() { super(); this.attachShadow({mode: "open"}); const isCompactMode = document .querySelector("pera-wallet-connect-modal") ?.getAttribute("compact-mode") === "true"; if (this.shadowRoot && ((!isCompactMode && !isMobile()) || isMobile())) { const styleSheet = document.createElement("style"); styleSheet.textContent = styles; this.shadowRoot.append( peraWalletConnectModalInformationSectionTemplate.content.cloneNode(true), styleSheet ); if (isMobile()) { this.shadowRoot .getElementById("pera-wallet-connect-modal-information-section-title") ?.setAttribute("style", "display: none;"); } else { this.shadowRoot .getElementById("pera-wallet-connect-modal-information-section-pera-icon") ?.setAttribute("src", PeraWalletWithText); this.shadowRoot .getElementById( "pera-wallet-connect-modal-information-section-connect-pera-mobile" ) ?.setAttribute("style", "display: none;"); } } } }