PageSourceSearch

https://bith.ai/_next/static/chunks/pages/ai-studio/text-to-video/generating-5b8072d0e861ef09.js

js bith.ai collected 2026-10-05 11:51:59 UTC 2,886 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[47194],{26215:function(e,i,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ai-studio/text-to-video/generating",function(){return o(99981)}])},99981:function(e,i,o){"use strict";o.r(i);var t=o(85893),l=o(87251),n=o(26700),d=o(45220),r=o.n(d),u=o(11163),s=o(67294),a=o(25617),v=o(68419),c=o(90238),p=o(85537),x=o(6627),m=o(84773),_=o(84116);i.default=()=>{var e,i;let o=(0,u.useRouter)(),d=(0,a.I0)(),[g,f]=s.useState(!1),{getVideoStatus:y}=(0,n.Z)(),{trackGeneration:h,trackExport:q}=(0,x.G)("ai shorts"),I=null,N=()=>{var e,i;q("completed",{generation_id:String(null!==(i=null===(e=o.query)||void 0===e?void 0:e.videoId)&&void 0!==i?i:""),export_type:"video"})},w=()=>{var e,i,t;if(null==o?void 0:null===(e=o.query)||void 0===e?void 0:e.exporting)return;let l=String(null!==(t=null===(i=o.query)||void 0===i?void 0:i.videoId)&&void 0!==t?t:"");h("completed",{generation_type:"video",generation_id:l}),c.ZP.incrementUserProperty("total_generations"),(0,p.l5)(l)&&d((0,v.bG)(e=>{d((0,v.Qm)(e)),c.ZP.trackCreditsConsumedAfterRefresh({tool_name:"ai shorts",generation_id:l,userCredits:null==e?void 0:e.credits,generation_type:"video"})}))},j=async()=>{var e,i;let{data:t}=await y({videoId:null===(e=o.query)||void 0===e?void 0:e.videoId}),l=!!(null==o?void 0:null===(i=o.query)||void 0===i?void 0:i.exporting);(null==t?void 0:t.export_status)!=="completed"?r()(null==t?void 0:t.export_status)?(I&&clearTimeout(I),f(!0),l||w()):I=setTimeout(j,15e3):(I&&clearTimeout(I),f(!0),l?N():w())};s.useEffect(()=>{var e;return(null==o?void 0:null===(e=o.query)||void 0===e?void 0:e.videoId)&&j(),()=>{I&&clearTimeout(I)}},[o.query.videoId]);let C=(0,l.Z)("textToVideo.generating"),T=s.useMemo(()=>{var e,i;if((null==o?void 0:null===(e=o.query)||void 0===e?void 0:e.source)==="quote_to_video");else if(null==o?void 0:null===(i=o.query)||void 0===i?void 0:i.exporting)return _.j9;return _.R9},[null==o?void 0:null===(e=o.query)||void 0===e?void 0:e.source,null==o?void 0:null===(i=o.query)||void 0===i?void 0:i.exporting]);return(0,t.jsxs)("div",{className:"flex justify-center items-center flex-col gap-10 h-full max-w-[596px] mx-auto",children:[(0,t.jsx)("div",{className:"grid gap-8 sm:gap-8",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3 items-center text-center",style:{maxWidth:483},children:[(0,t.jsx)("span",{className:"heading-5 text-ph-color",children:C.title}),(0,t.jsx)("span",{className:"text-t-shade-2 text-xs",children:C.exportInfo})]})}),(0,t.jsx)(m.Z,{steps:T,onComplete:()=>{var e;(null==o?void 0:null===(e=o.query)||void 0===e?void 0:e.exporting)?o.replace("/ai-studio/text-to-video/download?videoId=".concat(o.query.videoId)):o.replace("/ai-studio/text-to-video/".concat(o.query.videoId,"/scenes"))},isCompleted:g})]})}}},function(e){e.O(0,[92250,92888,49774,40179],function(){return e(e.s=26215)}),_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.