(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[9780],{740764(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=t=>{if(window.removeEventListener("beforeunload",e),!t){chrome.tabs.query({currentWindow:!0,active:!0},e=>{if(e.length<0)return;chrome.tabs.query({index:e[0].index-1},e=>{if(e.length<0)return;chrome.tabs.update(e[0].id,{active:!0})}),chrome.tabs.remove(e[0].id)});return}chrome.tabs.query({url:"*://connect.trezor.io/*/popup.html"},e=>{if(e.length<0)return;chrome.tabs.update(e[0].id,{active:!0})})};window.addEventListener("message",t=>{t.data==="usb-permissions-init"?document.getElementById("trezor-usb-permissions").contentWindow.postMessage({type:"usb-permissions-init",extension:chrome.runtime.id},"*"):t.data==="usb-permissions-close"&&e()}),window.addEventListener("beforeunload",e)}}).call(__webpack_require__._LM_("$root$",{__webpack_require__}))()}}]);