PageSourceSearch

https://skyvid.ai/_next/static/chunks/app/%5Blocale%5D/layout-eb0584fb9cfb1cf2.js

js skyvid.ai collected 2026-10-05 12:37:43 UTC 5,636 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[382,8450],{324:()=>{},2166:(e,t,n)=>{"use strict";n.d(t,{GoogleOneTap:()=>s});var _=n(4624),i=n(8432),o=n(9285),E=n(9356),a=n(6852);async function r(e){let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}let l=["/auth/login","/auth/callback","/auth/signout","/text-to-video","/image-to-video","/text-to-image","/image-to-image","/lip-sync"];function s(e){let{clientId:t}=e,n=(0,o.usePathname)(),s=n.replace(/^\/(?:en|zh)(?=\/|$)/,"")||"/",[R,c]=(0,E.useState)(!1),d=(0,E.useRef)(!1),u=!t||l.some(e=>s.startsWith(e))||n.startsWith("/app"),I=(0,E.useCallback)(async()=>{var e,_;if(d.current||u||!t||!(null==(_=window.google)||null==(e=_.accounts)?void 0:e.id))return;let i=(0,a.u)(),{data:{user:o}}=await i.auth.getUser();if(o)return;let E=crypto.randomUUID()+crypto.randomUUID(),l=await r(E),s=async e=>{var t;console.log("[GoogleOneTap] received credential, exchanging…");let{data:_,error:o}=await i.auth.signInWithIdToken({provider:"google",token:e,nonce:E});if(o)return void console.error("[GoogleOneTap] signInWithIdToken failed:",o);console.log("[GoogleOneTap] signed in as",null==(t=_.user)?void 0:t.email);let a="/"===n?"/text-to-video":n;window.location.assign(a)};window.google.accounts.id.initialize({client_id:t,callback:e=>{let{credential:t}=e;s(t)},nonce:l,use_fedcm_for_prompt:!0,auto_select:!1,cancel_on_tap_outside:!0,itp_support:!0,context:"signin"}),window.google.accounts.id.prompt(),d.current=!0},[t,n,u]);return((0,E.useEffect)(()=>{R&&I()},[R,I]),(0,E.useEffect)(()=>{var e,t;u&&d.current&&(null==(t=window.google)||null==(e=t.accounts)?void 0:e.id)&&(window.google.accounts.id.cancel(),d.current=!1)},[u,n]),t)?(0,_.jsx)(i.default,{src:"https://accounts.google.com/gsi/client",strategy:"afterInteractive",onLoad:()=>c(!0)}):null}},6655:(e,t,n)=>{Promise.resolve().then(n.bind(n,9965)),Promise.resolve().then(n.bind(n,5266)),Promise.resolve().then(n.t.bind(n,2205,23)),Promise.resolve().then(n.t.bind(n,2823,23)),Promise.resolve().then(n.t.bind(n,7225,23)),Promise.resolve().then(n.bind(n,2166)),Promise.resolve().then(n.t.bind(n,324,23)),Promise.resolve().then(n.t.bind(n,3216,23)),Promise.resolve().then(n.t.bind(n,6785,23)),Promise.resolve().then(n.bind(n,8059))},6852:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var _=n(791),i=n(6232),o=n(735),E=n(6259);let a=(0,i.w)({server:{DATABASE_URL:o.Yj().url(),DIRECT_URL:o.Yj().url(),SUPABASE_SERVICE_ROLE_KEY:o.Yj().min(1),CRON_SECRET:o.Yj().min(16).optional(),STRIPE_SECRET_KEY:o.Yj().startsWith("sk_").optional(),STRIPE_WEBHOOK_SECRET:o.Yj().startsWith("whsec_").optional(),KIE_API_KEY:o.Yj().min(1).optional(),KIE_API_BASE_URL:o.Yj().url().default("https://api.kie.ai/api/v1"),TOPENROUTER_API_KEY:o.Yj().min(1).optional(),TOPENROUTER_API_BASE_URL:o.Yj().url().default("https://tp-api.chinadatapay.com:8000"),R2_ACCOUNT_ID:o.Yj().min(1).optional(),R2_ACCESS_KEY_ID:o.Yj().min(1).optional(),R2_SECRET_ACCESS_KEY:o.Yj().min(1).optional(),R2_BUCKET_NAME:o.Yj().min(1).optional(),R2_PUBLIC_URL:o.Yj().url().optional(),R2_VIDEO_BUCKET_NAME:o.Yj().min(1).optional(),R2_VIDEO_PUBLIC_URL:o.Yj().url().optional(),NODE_ENV:o.k5(["development","test","production"]).default("development")},client:{NEXT_PUBLIC_SUPABASE_URL:o.Yj().url(),NEXT_PUBLIC_SUPABASE_ANON_KEY:o.Yj().min(1),NEXT_PUBLIC_SITE_URL:o.Yj().url().default("https://skyvid.ai"),NEXT_PUBLIC_GOOGLE_CLIENT_ID:o.Yj().optional()},runtimeEnv:{DATABASE_URL:E.env.DATABASE_URL,DIRECT_URL:E.env.DIRECT_URL,SUPABASE_SERVICE_ROLE_KEY:E.env.SUPABASE_SERVICE_ROLE_KEY,CRON_SECRET:E.env.CRON_SECRET,STRIPE_SECRET_KEY:E.env.STRIPE_SECRET_KEY,STRIPE_WEBHOOK_SECRET:E.env.STRIPE_WEBHOOK_SECRET,KIE_API_KEY:E.env.KIE_API_KEY,KIE_API_BASE_URL:E.env.KIE_API_BASE_URL,TOPENROUTER_API_KEY:E.env.TOPENROUTER_API_KEY,TOPENROUTER_API_BASE_URL:E.env.TOPENROUTER_API_BASE_URL,R2_ACCOUNT_ID:E.env.R2_ACCOUNT_ID,R2_ACCESS_KEY_ID:E.env.R2_ACCESS_KEY_ID,R2_SECRET_ACCESS_KEY:E.env.R2_SECRET_ACCESS_KEY,R2_BUCKET_NAME:E.env.R2_BUCKET_NAME,R2_PUBLIC_URL:E.env.R2_PUBLIC_URL,R2_VIDEO_BUCKET_NAME:E.env.R2_VIDEO_BUCKET_NAME,R2_VIDEO_PUBLIC_URL:E.env.R2_VIDEO_PUBLIC_URL,NEXT_PUBLIC_SUPABASE_URL:"https://hsqvnkkvayzdytgvznce.supabase.co",NEXT_PUBLIC_SUPABASE_ANON_KEY:"sb_publishable_jx-xLazdC6QR6ARbLFVO0Q_ZZOeTJjR",NEXT_PUBLIC_SITE_URL:"https://skyvid.ai",NEXT_PUBLIC_GOOGLE_CLIENT_ID:"258208678819-pvkisgcvmn1dq5ptpr042m1eiocuvlot.apps.googleusercontent.com",NODE_ENV:"production"},skipValidation:!!E.env.SKIP_ENV_VALIDATION,emptyStringAsUndefined:!0});function r(){return(0,_.k)(a.NEXT_PUBLIC_SUPABASE_URL,a.NEXT_PUBLIC_SUPABASE_ANON_KEY)}},8059:(e,t,n)=>{"use strict";let _;n.d(t,{TRPCReactProvider:()=>d,F:()=>c});var i=n(4624),o=n(9966),E=n(9288),a=n(1092),r=n(9356),l=n(8568),s=n(7992),R=n(8180);n(6259);let c=(0,a.pY)();function d(e){let t=(null!=_||(_=new s.E({defaultOptions:{queries:{staleTime:3e4},dehydrate:{serializeData:l.Ay.serialize,shouldDehydrateQuery:e=>(0,R.XS)(e)||"pending"===e.state.status},hydrate:{deserializeData:l.Ay.deserialize}}})),_),[n]=(0,r.useState)(()=>c.createClient({links:[(0,E.$H)({enabled:e=>"generation.poll"!==("path"in e?e.path:void 0)&&"down"===e.direction&&e.result instanceof Error}),(0,E.N9)({transformer:l.Ay,url:window.location.origin+"/api/trpc",headers:()=>{let e=new Headers;return e.set("x-trpc-source","nextjs-react"),e}})]}));return(0,i.jsx)(o.Ht,{client:t,children:(0,i.jsx)(c.Provider,{client:n,queryClient:t,children:e.children})})}}},e=>{e.O(0,[8247,2431,7727,472,9793,8560,5379,4933,146,7358],()=>e(e.s=6655)),_N_E=e.O()}]);

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.