"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[8203],{8203:function(n,e,t){t.r(e),t.d(e,{default:function(){return _}});var i=t(66252),o=t(3577),c=t(79786);const s=n=>((0,i.dD)("data-v-2cf45ba5"),n=n(),(0,i.Cn)(),n),r={class:"Container"},a=s((()=>(0,i._)("div",{class:"g_id_signin",id:"g_id_signin"},null,-1))),d={class:"icon"},l=s((()=>(0,i._)("img",{src:c,alt:""},null,-1)));function u(n,e,t,c,s,u){return(0,i.wg)(),(0,i.iD)("div",r,[a,(0,i._)("div",d,[l,(0,i._)("span",null,(0,o.zw)(n.$props.text),1)])])}var g=t(2262),p=(0,i.aZ)({name:"login",emits:["googelLogin"],props:{text:{type:String,default:"Sign in with Google"}},setup(n,{emit:e}){const t=async n=>{let t=n.credential;e("googelLogin",t),window.isAddGmail=!1};let o=(0,g.qj)({scriptSrc:"https://accounts.google.com/gsi/client",script:null}),c="29310152396-nnsd3h533fld665oguu8ovrt1nukmt46.apps.googleusercontent.com";const s=async()=>{var n=document.querySelector(`script[src="${o.scriptSrc}"]`);window.isAddGmail||(n||(window.isAddGmail=!0,await new Promise(((n,e)=>{const t=document.createElement("script");t.src=o.scriptSrc,t.onload=()=>{n()},document.body.appendChild(t)}))),window.google.accounts.id.initialize({client_id:c,auto_select:!1,callback:t,ux_mode:"popup",itp_support:!0}),window.google.accounts.id.renderButton(document.querySelector(".Container #g_id_signin"),{type:"standard",shape:"circle",theme:"outline",size:"large",logo_alignment:"center"}))};return(0,i.Jd)((()=>{var n=document.querySelector(`script[src="${o.scriptSrc}"]`);n&&(n.remove(),window.isAddGmail=!1)})),s(),{}}}),m=t(83744);const w=(0,m.Z)(p,[["render",u],["__scopeId","data-v-2cf45ba5"]]);var _=w},79786:function(n,e,t){n.exports=t.p+"img/gmailIcon.279881ae.svg"}}]);