import {
PERA_WALLET_MODAL_CLASSNAME,
PERA_WALLET_SIGN_TXN_MODAL_ID
} from "../peraWalletConnectModalUtils";
import styles from "./_pera-wallet-sign-txn-modal.scss";
const peraWalletSignTxnModal = document.createElement("template");
peraWalletSignTxnModal.innerHTML = `
`;
export class PeraWalletSignTxnModal extends HTMLElement {
constructor() {
super();
this.attachShadow({mode: "open"});
if (this.shadowRoot) {
const styleSheet = document.createElement("style");
styleSheet.textContent = styles;
this.shadowRoot.append(peraWalletSignTxnModal.content.cloneNode(true), styleSheet);
const isCompactMode = this.getAttribute("compact-mode") === "true";
if (isCompactMode) {
const signTxnModal = this.shadowRoot.getElementById("pera-wallet-sign-txn-modal");
signTxnModal?.classList.add("pera-wallet-sign-txn-modal--compact");
}
}
}
}