PageSourceSearch

https://www.frogtoon.com/_next/static/chunks/7783.4fb20839179b8f67.js

js frogtoon.com collected 2026-10-02 10:40:39 UTC 3,439 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7783],{97783:(e,t,i)=>{i.r(t),i.d(t,{default:()=>m});var n=i(95155),a=i(68321),r=i(12115),o=i(36489),s=i(20063),l=i(92620);let u="frogtoon:google-one-tap-dismissed-at";function c(e){return!e||e.startsWith("/admin")||e.startsWith("/auth")||e.startsWith("/api")}function d(e){return!!e&&(e.startsWith("/music-video/")||e.startsWith("/music-video-playlist/")||e.startsWith("/music-video-album/")||e.startsWith("/music-video-playlist-mix/")||e.startsWith("/watch/"))}function w(){try{window.localStorage.setItem(u,String(Date.now()))}catch{}}function m({clientId:e}){let{status:t,update:i}=(0,o.useSession)(),m=(0,s.usePathname)(),g=(0,s.useRouter)(),f=(0,r.useRef)(!1),h=(0,r.useRef)(!1),[p,y]=(0,r.useState)(!1),[k,v]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{if("authenticated"===t){f.current=!1;return}"unauthenticated"===t&&(f.current=!1)},[t,m]),(0,r.useEffect)(()=>{if(!e||c(m)||"authenticated"===t||!d(m))return void v(!1);let i=!1,n=null,a=null,r=()=>{n=window.setTimeout(()=>{let e=()=>{i||v(!0)};"requestIdleCallback"in window?a=window.requestIdleCallback(e,{timeout:1500}):e()},4e3)};if("complete"===document.readyState)r();else{let e=()=>r();return window.addEventListener("load",e,{once:!0}),()=>{i=!0,window.removeEventListener("load",e),n&&window.clearTimeout(n),null!==a&&"cancelIdleCallback"in window&&window.cancelIdleCallback(a)}}return()=>{i=!0,n&&window.clearTimeout(n),null!==a&&"cancelIdleCallback"in window&&window.cancelIdleCallback(a)}},[e,m,t]),(0,r.useEffect)(()=>{!(!k||!p||f.current||"unauthenticated"!==t||!e||c(m)||!d(m)||function(){try{let e=window.localStorage.getItem(u);if(!e)return!1;let t=Number(e);return Number.isFinite(t)&&Date.now()-t<432e5}catch{return!1}}())&&window.google?.accounts?.id&&(f.current=!0,window.google.accounts.id.initialize({client_id:e,callback:async e=>{if(e?.credential&&!h.current){h.current=!0;try{let t=function(e){{let e=new URLSearchParams(window.location.search).get("callbackUrl");if(e&&e.startsWith("/"))return e}return e||"/"}(m),n=await (0,o.signIn)("googleonetap",{credential:e.credential,callbackUrl:t,redirect:!1});if(n?.ok){await i();let e=null;for(let t=0;t<8&&(e=await (0,o.getSession)(),!e?.user?.email);t+=1)await new Promise(e=>setTimeout(e,150));try{let i={type:"frogtoon:auth-complete",returnTo:t,ts:Date.now()};localStorage.setItem(l.$h,JSON.stringify(i)),window.dispatchEvent(new CustomEvent("frogtoon:authChanged",{detail:{isLoggedIn:!!e?.user?.email,user:e?.user?.email?{id:e.user.id||e.user.email,name:e.user.name||e.user.email,email:e.user.email,picture:e.user.image||void 0}:null}})),e?.user?.email&&localStorage.setItem(l.$h,JSON.stringify({type:"frogtoon:auth-success",user:{id:e.user.id||e.user.email,name:e.user.name||e.user.email,email:e.user.email,picture:e.user.image||void 0},returnTo:t,ts:Date.now()}))}catch{}g.refresh(),n.url&&g.push(n.url);return}w()}finally{h.current=!1}}},auto_select:!1,cancel_on_tap_outside:!0,context:"signin",use_fedcm_for_prompt:!0}),window.google.accounts.id.prompt(e=>{(e?.isNotDisplayed?.()||e?.isSkippedMoment?.()||e?.isDismissedMoment?.())&&w()}))},[e,m,g,p,k,t,i]),(0,r.useEffect)(()=>{"authenticated"===t&&window.google?.accounts?.id&&window.google.accounts.id.cancel()},[t]),!e||c(m)||!k)?null:(0,n.jsx)(a.default,{id:"google-one-tap",src:"https://accounts.google.com/gsi/client",strategy:"afterInteractive",onLoad:()=>y(!0)})}}}]);

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.