PageSourceSearch

https://seomaker.ai/_nuxt-v2/BFzmjuuD2.js

js seomaker.ai collected 2026-10-05 12:37:19 UTC 3,154 bytes, 1 lines download raw bytes

1import{At as e,Ct as t,K as n,Mt as r,St as i,Xn as a,_n as o,bt as s,g as c,h as l,ii as u,kt as d,p as f,q as p,xr as m,yt as h}from"./BPsVqlsv.js";import{o as g}from"./DMFpKwy8.js";import{_,g as v,t as y}from"./BdOgpimk.js";import{n as b,o as x,r as S,t as C}from"./DUCE3lsP.js";import{t as w}from"./CtZgbgbi.js";import{a as T,i as E,n as D,o as O,r as k,t as A}from"./BjTG2ARH2.js";var j={key:0,src:g(`/google.svg`),alt:``,"aria-hidden":`true`,class:`size-6`},M={class:`my-5 flex items-center gap-3`},N={class:`text-sm text-ink-500`},P=Object.assign(r({__name:`AuthGoogleButton`,props:{label:{},dividerLabel:{},loading:{type:Boolean,default:!1}},emits:[`click`],setup(n){return(r,c)=>{let l=w;return o(),t(`div`,null,[e(l,{variant:`secondary`,block:``,loading:n.loading,"data-testid":`google-auth`,onClick:c[0]||=e=>r.$emit(`click`)},{default:a(()=>[n.loading?i(``,!0):(o(),t(`img`,j)),d(` `+u(n.label),1)]),_:1},8,[`loading`]),s(`div`,M,[c[1]||=s(`span`,{class:`h-px flex-1 bg-line`},null,-1),s(`span`,N,u(n.dividerLabel),1),c[2]||=s(`span`,{class:`h-px flex-1 bg-line`},null,-1)])])}}}),{__name:`AuthGoogleButton`});function F(){let e=c(),t=n();function r(t){return e.resolve(t).matched.length>0}return{isOwnRoute:r,goTo:async e=>{if(!r(e)){window.location.assign(e);return}await t.runWithContext(()=>f(e))}}}function I(){let e=l(),t=C(),n=x(y()),r=p().public.googleClientId,i=h(()=>E(e.query)),a=m(i.value);function o(t,n={}){if(r===``)return!1;let i=k();return d({state:i,returnTo:typeof t==`string`?t:null,signup:n.signup===!0,remember:n.remember===!0,startedLocale:v(e.path)})?(a.value=!0,window.location.assign(D({clientId:r,origin:window.location.origin,state:i})),!0):!1}async function s(){let t=f(),n=T(e.query,t?.state??null);if(n.kind===`none`)return i.value&&(w(),a.value=!1),null;switch(n.kind!==`state-mismatch`&&g(),w(),a.value=!0,n.kind){case`denied`:return u(`denied`);case`state-mismatch`:return u(`state-mismatch`);case`error`:return u(`exchange-failed`);case`code`:return await c(n.code,t)}}async function c(e,r){let i=r?.returnTo??null,a=r?.remember??!1;t.clear({keepLegacyBridge:!0});try{await n.csrfCookie(),await n.loginWithGoogle(e,a,{skipGlobalErrorHandler:!0}),b(a),S({remember:a})}catch{return u(`exchange-failed`)}try{let e=await t.refresh();return e?{ok:!0,user:e,returnTo:i,justRegistered:r?.signup??!1,startedLocale:r?.startedLocale??`en`}:u(`session-failed`)}catch{return u(`session-failed`)}}function u(e){return a.value=!1,{ok:!1,reason:e}}function d(e){try{return window.sessionStorage.setItem(A,JSON.stringify(e)),!0}catch{return!1}}function f(){try{let e=window.sessionStorage.getItem(A);if(!e)return null;let t=JSON.parse(e);if(typeof t==`object`&&t&&typeof t.state==`string`){let e=t.returnTo;return{state:t.state,returnTo:typeof e==`string`?e:null,signup:t.signup===!0,remember:t.remember===!0,startedLocale:_(t.startedLocale)}}return null}catch{return null}}function g(){try{window.sessionStorage.removeItem(A)}catch{}}function w(){window.history.replaceState(window.history.state,``,O(window.location.href))}return{configured:r!==``,pending:a,hasCallback:i,start:o,complete:s}}export{F as n,P as r,I as t};

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.