PageSourceSearch

https://thinkvelocity.ai/_next/static/chunks/945.ba105ad40cd34398.js

js thinkvelocity.ai collected 2026-10-02 00:46:26 UTC 4,697 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[945],{44726:(e,t,a)=>{a.d(t,{Cy:()=>m,j2:()=>d});var o=a(22043),r=a(52078),n=a(59253),i={apiKey:"AIzaSyA2bH4ZNxrleP_UXsOwGU8CEyDJCFGHRuM",authDomain:"velocity-ai-cbb15.firebaseapp.com",projectId:"velocity-ai-cbb15",storageBucket:"velocity-ai-cbb15.firebasestorage.app",messagingSenderId:"25784508764",appId:"1:25784508764:web:0b64dff9a650823660a199"},l=[["NEXT_PUBLIC_FIREBASE_API_KEY",i.apiKey],["NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN",i.authDomain],["NEXT_PUBLIC_FIREBASE_PROJECT_ID",i.projectId]].filter(function(e){return!(0,o._)(e,2)[1]}).map(function(e){return(0,o._)(e,1)[0]}),s="Firebase configuration missing required environment variables: ".concat(l.join(", ")),c=0===l.length,u=c?(0,r.Dk)().length?(0,r.Sx)():(0,r.Wp)(i):null,d=u?(0,n.xI)(u):null;d&&(0,n.oM)(d,n.F0).then(function(){return console.log("Firebase persistence initialized")}).catch(function(e){return console.error("Firebase persistence error:",e)});var S=c?new n.HF:null;function m(){if(!d)throw Error(s);return d}S&&S.setCustomParameters({prompt:"select_account"})},64640:(e,t,a)=>{a.d(t,{Qb:()=>s,hG:()=>c}),a(61975),a(82732),a(45849),a(71450),a(76066),a(51931);var o=a(63105),r=a(80205),n=a(1115),i=a(66563);function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null==e)return t;var a=String(e);return"null"===a||"undefined"===a?t:a}function s(e){var t,a,s,c,u,d,S,m,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"email";if(!e||!e.userdata)return void console.warn("[applyAuthSuccess] invalid payload, skipping",{hasData:!!e});var I=e.userdata||{},h=l(I.userId);if(!h)return void console.warn("[applyAuthSuccess] missing userId in userdata, skipping");var E=l(null!=(t=I.userEmail)?t:I.email),y=l(null!=(u=null!=(c=null!=(s=null!=(a=I.userName)?a:I.name)?s:I.firstName)?c:E.split("@")[0])?u:"User"),_=l(null!=(S=null!=(d=I.userTutorial)?d:I.tutorial)?S:"false","false"),g=!!I.onboarding_completed,f=l(null!=(m=I.userProfileImgUrl)?m:I.profile_img_url),A=Date.now().toString(),T=(Date.now()+n.D).toString();(0,r.n2)(r.Gk.CONSUMER);try{localStorage.setItem(o.Ay.USER_ID,h),E&&localStorage.setItem(o.Ay.USER_EMAIL,E),y&&localStorage.setItem(o.Ay.USER_NAME,y),f&&localStorage.setItem(o.Ay.USER_PHOTO_URL,f),localStorage.setItem(o.Ay.USER_DATA,JSON.stringify(I)),localStorage.setItem(o.Ay.LOGIN_TIME,A),localStorage.setItem(o.Ay.SESSION_EXPIRY,T),localStorage.setItem(o.Ay.AUTH_METHOD,p)}catch(e){console.warn("[applyAuthSuccess] failed writing centralized keys",e)}try{localStorage.setItem("userId",h),E&&localStorage.setItem("userEmail",E),y&&localStorage.setItem("userName",y),localStorage.setItem("userData",JSON.stringify(I)),localStorage.setItem("authMethod",p),localStorage.setItem("tutorialShown",_),localStorage.setItem("onboardingCompleted",g?"true":"false"),localStorage.setItem("onboarding_completed",g?"true":"false")}catch(e){console.warn("[applyAuthSuccess] failed writing legacy keys",e)}try{if("undefined"!=typeof document&&h&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname)&&!document.cookie.split("; ").some(function(e){return e.startsWith("userId=")})){var w=new Date(Date.now()+n.D).toUTCString();document.cookie="userId=".concat(encodeURIComponent(h),"; path=/; expires=").concat(w,"; SameSite=Lax")}(0,i.Kl)()}catch(e){console.warn("[applyAuthSuccess] failed restarting token refresh service",e)}try{window.dispatchEvent(new CustomEvent("tv-profile-updated",{detail:{userId:h,userEmail:E||null,userName:y||null,method:p}}))}catch(e){}try{window.postMessage({source:"velocity-web-auth",type:"VELOCITY_WEB_LOGIN"},window.location.origin)}catch(e){}}function c(){try{[o.Ay.USER_ID,o.Ay.USER_EMAIL,o.Ay.USER_NAME,o.Ay.USER_DATA,o.Ay.USER_PHOTO_URL,o.Ay.LOGIN_TIME,o.Ay.SESSION_EXPIRY,o.Ay.AUTH_METHOD,"userId","userEmail","userName","userData","authMethod","accessToken","refreshToken","token",o.Ay.ACCESS_TOKEN,o.Ay.AUTH_TOKEN,o.Ay.REFRESH_TOKEN].forEach(function(e){try{localStorage.removeItem(e)}catch(e){}}),"undefined"!=typeof document&&(document.cookie="token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax",document.cookie="userId=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax",document.cookie="token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Strict",document.cookie="userId=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Strict",document.cookie="token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT",document.cookie="userId=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT");try{window.dispatchEvent(new Event("tv-profile-updated"))}catch(e){}}catch(e){console.warn("[clearAuthState] failed",e)}}}}]);

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.