import{_ as o,a5 as a,M as r,bN as i,a9 as c,o as n}from"./app-Cox3Klmm.js";import"./externalHosting.js";const d=""+new URL("logo-DSCW1Dc8.png",import.meta.url).href,u={name:"AuthProcess",methods:{...a(c,["UPDATE_ACCESS_TOKEN","UPDATE_USER_DATA"]),queryString(t){return Object.keys(t).map(e=>e+"="+encodeURIComponent(t[e])).join("&")}},mounted(){this.$axios.post(`/auth/${this.$route.params.provider}/callback?${this.queryString(this.$route.query)}`).then(t=>{const e=t.data.resCode,s=t.data.resMsg;if(!e){this.$q.notify({message:this.$t("general.error"),position:"top",color:"red",icon:"fas fa-exclamation-triangle",caption:this.$t(`components.auth.msg.error.${s}`)}),this.$router.push({name:"auth-login"});return}this.UPDATE_ACCESS_TOKEN(t.data.accessToken),this.UPDATE_USER_DATA(t.data.userData),this.$socket.connect(),this.$router.push({path:"/"})})}},h={class:"auth-page"};function p(t,e,s,l,f,m){return n(),r("div",h,e[0]||(e[0]=[i('<div class="auth-card"><div class="auth-header"><img src="'+d+'" alt="Logo" class="logo"><div class="loading"><div class="effect-1 effects"></div><div class="effect-2 effects"></div><div class="effect-3 effects"></div></div></div></div>',1)]))}const $=o(u,[["render",p]]);export{$ as default};
