import{d as i,w as s,o as c,a as r,e as l}from"./index-debd9251.js";const d=["src"],m=i({__name:"GoogleAuth",props:{callbackFunction:String,mode:String},setup(a){const n=a;return window.addEventListener("message",t=>{var o,e;((o=t.data)==null?void 0:o.name)==="GoogleAuth"&&window[n.callbackFunction]((e=t.data)==null?void 0:e.credential)}),(t,o)=>{const e=l("id");return s((c(),r("iframe",{id:"google-auth-iframe",src:`https://app.answerly.io/google-auth.html?mode=${a.mode}`},null,8,d)),[[e,"H99DXI9P"]])}}});export{m as _};
