OwlCyberSecurity - MANAGER
Edit File: GoogleSearchConsole.B8DLXXIm.js
import{e}from"./links.w575jfOL.js";const n={data(){return{forceDisconnect:!1,showModal:!1,showAlert:!1,loading:!1,alertMessage:"",returnTo:"search-statistics"}},methods:{connect(){this.loading=!0,e().getAuthUrl({returnTo:this.returnTo}).then(t=>{window.location=t})},reconnect(){this.loading=!0,e().getReauthUrl({returnTo:this.returnTo}).then(t=>{window.location=t})},disconnect(){this.loading=!0,e().deleteAuth({force:this.forceDisconnect}).then(t=>{this.showModal=!1,this.showAlert=!1,t.success||(this.forceDisconnect=!0,this.showAlert=!0,this.alertMessage=t.message)}).finally(()=>{this.loading=!1})}}};export{n as G};