1import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{i as t}from"./framework-BHVy3lFl.js";import{c as n,n as r}from"./client-B8Gn6IvF.js";var i=e(t(),1);function a(){let{data:e,isPending:t}=n(),[a,o]=(0,i.useState)(null),s=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let e=!1;return fetch(`/api/config/public`).then(e=>e.json()).then(t=>{e||o((t?.data??t)||{})}).catch(()=>{e||o({})}),()=>{e=!0}},[]),(0,i.useEffect)(()=>{s.current||a&&(t||e?.user||a.google_one_tap_enabled!==`true`||!a.google_client_id||(s.current=!0,r(a).oneTap?.({callbackURL:`/`,onPromptNotification:()=>{}}).catch(()=>{})))},[a,e,t]),null}export{a as GoogleOneTap};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.