PageSourceSearch

https://skyvid.ai/_next/static/chunks/3140-f8dbe67a3ff29e7a.js

js skyvid.ai collected 2026-10-05 12:37:49 UTC 16,516 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3140],{1090:(e,n,s)=>{s.d(n,{JZ:()=>o,qL:()=>u,xs:()=>d});var t=s(8573);let a={lite:["All video + image models","No watermark \xb7 commercial license","Credits refresh monthly","AI prompt assist"],pro:["Everything in Lite","Faster generation speed","Priority support","Early access to new models"],max:["Everything in Pro","Priority render queue","Highest concurrency","Dedicated support"]},i={pack_small:"Small",pack_medium:"Medium",pack_large:"Large"};function r(e){return"$".concat((e/100).toFixed(2).replace(/\.00$/,"").replace(/(\.\d)0$/,"$1"))}function l(e){return e.filter(e=>!e.legacy)}function c(e,n){let s=e.find(e=>e.sku===n);if(!s)throw Error("Missing billing catalog entry: ".concat(n));return s}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.P0,n=l(e);return["lite","pro","max"].map(e=>{let s=c(n,"".concat(e,"_monthly")),t=c(n,"".concat(e,"_annual")),i=t.amountCents/12,l=Math.round((1-i/s.amountCents)*100);return{tier:e,name:e.charAt(0).toUpperCase()+e.slice(1),featured:"pro"===e,credits:s.credits,features:a[e],monthly:{sku:s.sku,price:r(s.amountCents),billed:null,previousPrice:null,savings:null},annual:{sku:t.sku,price:r(i),billed:"Billed ".concat(r(t.amountCents)," / year"),previousPrice:r(s.amountCents),savings:"Save ".concat(l,"%")}}})}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.P0;return l(e).filter(e=>"payment"===e.mode).map(e=>{var n;return{sku:e.sku,name:null!=(n=i[e.sku])?n:e.productName,price:r(e.amountCents),credits:e.credits,rate:"$".concat((e.amountCents/e.credits/100).toFixed(4)," / credit"),best:"pack_large"===e.sku}})}function u(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.P0;return l(n).some(n=>n.sku===e)}},3140:(e,n,s)=>{s.d(n,{PricingTabs:()=>m});var t=s(4624),a=s(9285),i=s(9356),r=s(1090),l=s(7606),c=s(8059);let o=(0,r.JZ)(),d=(0,r.xs)(),u=[{name:"Seedance 2.0",hot:!0,badge:"New"},{name:"Nano Banana 2 & Pro"},{name:"Kling 3.0 Pro"},{name:"Seedance 1.5 Pro"},{name:"Seedream 5.0"}];function m(e){var n,s,u,m,g,j,k,y,b;let{isAuthenticated:N,context:f="marketing",source:w="billing"===f?"billing":"pricing",locale:C="en"}=e,P="zh"===C,S=new Intl.NumberFormat((0,l.XG)(C).languageTag),L=(0,a.useSearchParams)(),[F,_]=(0,i.useState)("annual"),[E,A]=(0,i.useState)("annual"),[M,T]=(0,i.useState)(!1),z=(0,i.useRef)(!1),U="boolean"!=typeof N,B=c.F.billing.viewer.useQuery(void 0,{enabled:U,refetchOnWindowFocus:!1,staleTime:3e4}),I=null!=(k=null!=N?N:null==(n=B.data)?void 0:n.authenticated)&&k,R=!U||B.isFetched,H=c.F.billing.mySubscription.useQuery(void 0,{enabled:I,refetchOnWindowFocus:!1,staleTime:3e4}),O=(null==(s=H.data)?void 0:s.status)==="active"||(null==(u=H.data)?void 0:u.status)==="trialing",W=null!=(y=null==(m=H.data)?void 0:m.sku)?y:null,$=R&&(!I||!H.isLoading),q=c.F.billing.checkout.useMutation({onSuccess:e=>{let{url:n}=e;return window.location.assign(n)}}),D=c.F.billing.openPortal.useMutation({onSuccess:e=>{let{url:n}=e;return window.location.assign(n)}}),X=(0,i.useCallback)(e=>{if(R){if(!I){let n="".concat((0,l.dS)("/pricing",C),"?checkout=").concat(encodeURIComponent(e),"&source=").concat(encodeURIComponent(w));window.location.assign("/auth/login?next=".concat(encodeURIComponent(n)));return}q.mutate({sku:e,returnPath:"/app/billing?source=".concat(encodeURIComponent(w)),source:w})}},[R,I,q,C,w]),G=(0,i.useCallback)(()=>{D.mutate({returnPath:"/app/billing?source=".concat(encodeURIComponent(w),"#plans")})},[D,w]);(0,i.useEffect)(()=>{let e=L.get("checkout");if(z.current||!I||H.isLoading||!e||!(0,r.qL)(e))return;z.current=!0;let n=e.startsWith("pack_");(!O||n)&&X(e)},[I,O,L,X,H.isLoading]);let Q=(0,i.useRef)({monthly:null,annual:null,topups:null}),[Z,J]=(0,i.useState)({left:0,width:0}),Y=(0,i.useCallback)(e=>{let n=Q.current[e];n&&J({left:n.offsetLeft,width:n.offsetWidth})},[]);(0,i.useLayoutEffect)(()=>Y(E),[E,Y]),(0,i.useEffect)(()=>{let e=()=>Y(E);return window.addEventListener("resize",e),document.fonts&&document.fonts.ready.then(e),()=>window.removeEventListener("resize",e)},[E,Y]);let K="topups"===F,V=null!=(b=null==(g=q.error)?void 0:g.message)?b:null==(j=D.error)?void 0:j.message;return(0,t.jsx)("section",{id:"billing"===f?"plans":void 0,className:"".concat(M?"svp switching":"svp"," ").concat("billing"===f?"svp-billing":""),children:(0,t.jsxs)("div",{className:"wrap",children:[(0,t.jsx)("div",{className:"eyebrow-wrap",children:(0,t.jsxs)("span",{className:"eyebrow",children:[(0,t.jsx)("span",{className:"dot"}),"billing"===f?P?"套餐与积分":"Plans & credits":P?"定价":"Pricing"]})}),"marketing"===f?(0,t.jsx)("h1",{className:"pricing-title swap",children:K?(0,t.jsx)(t.Fragment,{children:P?"一次性积分包":(0,t.jsxs)(t.Fragment,{children:["One-Time Credit ",(0,t.jsx)("span",{className:"ace",children:"Packs"})]})}):(0,t.jsx)(t.Fragment,{children:P?"选择适合你的套餐":(0,t.jsxs)(t.Fragment,{children:["Pick the plan that works for"," ",(0,t.jsx)("span",{className:"ace",children:"you"})]})})}):(0,t.jsx)("h2",{className:"pricing-title swap",children:K?(0,t.jsx)(t.Fragment,{children:P?"添加永不过期的积分":(0,t.jsxs)(t.Fragment,{children:["Add credits that ",(0,t.jsx)("span",{className:"ace",children:"never expire"})]})}):(0,t.jsx)(t.Fragment,{children:P?"为你的工作选择合适套餐":(0,t.jsxs)(t.Fragment,{children:["Find the right plan for"," ",(0,t.jsx)("span",{className:"ace",children:"your work"})]})})}),(0,t.jsx)("p",{className:"sub swap",children:K?P?"按需购买积分,无需按月订阅。":"Purchase credits as you need them — no monthly commitment.":P?"一个订阅即可使用所有视频和图片模型,专注创作,不必管理多个平台。":"One subscription for every video & image model. No limits, just pure creation."}),"marketing"===f&&O?(0,t.jsx)("div",{className:"account-note",children:P?"你已有生效中的套餐,可以更换套餐或随时购买积分包。":"You already have an active plan. Choose a different plan to manage your subscription, or add a Top-Up anytime."}):null,(0,t.jsx)("div",{className:"toggle-wrap",children:(0,t.jsxs)("div",{className:"toggle",role:"tablist","aria-label":P?"计费周期":"Billing cycle",children:[(0,t.jsx)("span",{className:"knob","aria-hidden":!0,style:{width:Z.width,transform:"translateX(".concat(Z.left,"px)")}}),["monthly","annual","topups"].map(e=>(0,t.jsxs)("button",{ref:n=>{Q.current[e]=n},role:"tab","aria-selected":E===e,className:E===e?"active":"",onClick:()=>{e!==E&&(T(!0),A(e),window.setTimeout(()=>{_(e),T(!1)},160))},children:["monthly"===e?P?"月付":"Monthly":null,"annual"===e?(0,t.jsxs)(t.Fragment,{children:[P?"年付":"Annual"," ",(0,t.jsx)("span",{className:"off",children:P?"最高节省 40%":"Save up to 40%"})]}):null,"topups"===e?P?"积分包":"Top-Ups":null]},e))]})}),K?(0,t.jsxs)("div",{className:"sub-note",children:[(0,t.jsx)(h,{}),P?"积分包可与任何订阅套餐叠加":"Top-ups stack on top of any subscription"]}):null,V?(0,t.jsx)("div",{className:"action-error",role:"alert",children:V}):null,K?(0,t.jsx)("div",{className:"grid-tp grid",children:d.map(e=>{var n;let s=q.isPending&&(null==(n=q.variables)?void 0:n.sku)===e.sku;return(0,t.jsxs)("div",{className:"card tp",children:[(0,t.jsxs)("div",{className:"tier-row",children:[(0,t.jsx)("span",{className:"tier-nm",children:P?v(e.name):e.name}),e.best?(0,t.jsx)("span",{className:"best",children:P?"最优单价":"Best rate"}):null]}),(0,t.jsx)("div",{className:"price-block",children:(0,t.jsxs)("div",{className:"price-line",children:[(0,t.jsx)("span",{className:"amount",children:e.price}),(0,t.jsx)("span",{className:"per",children:P?"一次性":"one-time"})]})}),(0,t.jsx)("div",{className:"credits",children:(0,t.jsxs)("div",{className:"ct",children:[S.format(e.credits)," ",P?"积分":"credits"]})}),(0,t.jsx)("div",{className:"tp-rate",children:P?e.rate.replace(" / credit"," / 积分"):e.rate}),(0,t.jsx)("div",{className:"rule"}),(0,t.jsxs)("ul",{className:"feat-list",children:[(0,t.jsxs)("li",{children:[(0,t.jsx)(p,{})," ",P?"积分永不过期":"Credits never expire"]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(p,{})," ",P?"适用于全部模型":"Works across all models"]}),(0,t.jsxs)("li",{children:[(0,t.jsx)(p,{})," ",P?"可与订阅套餐叠加":"Stacks on top of your plan"]})]}),(0,t.jsx)("button",{type:"button",className:"cta",disabled:!$||s,onClick:()=>X(e.sku),children:$?s?P?"正在打开…":"Opening…":P?"购买".concat(v(e.name),"积分包"):"Buy ".concat(e.name):P?"正在加载…":"Loading…"})]},e.sku)})}):(0,t.jsx)("div",{className:"grid",children:o.map(e=>{var n;let s=e["monthly"===F?"monthly":"annual"],a=W===s.sku,i=q.isPending&&(null==(n=q.variables)?void 0:n.sku)===s.sku||D.isPending,r=$?a?P?"当前套餐":"Current plan":i?P?"正在打开…":"Opening…":O?P?"更换套餐":"Change plan":P?"选择 ".concat(e.name):"Start ".concat(e.name):P?"正在加载…":"Loading…",l=(0,t.jsxs)("div",{className:e.featured?"card featured":"card",children:[(0,t.jsxs)("div",{className:"tier-row",children:[(0,t.jsx)("span",{className:"tier-nm",children:e.name}),(0,t.jsxs)("div",{className:"badges",children:[a?(0,t.jsx)("span",{className:"current-plan",children:P?"当前":"Current"}):null,s.savings?(0,t.jsx)("span",{className:"save swap",children:P?s.savings.replace("Save","节省"):s.savings}):null]})]}),(0,t.jsxs)("div",{className:"price-block",children:[(0,t.jsxs)("div",{className:"price-line",children:[s.previousPrice?(0,t.jsx)("span",{className:"was swap",children:s.previousPrice}):null,(0,t.jsx)("span",{className:"amount swap",children:s.price}),(0,t.jsx)("span",{className:"per",children:P?"/ 月":"/ month"})]}),s.billed?(0,t.jsx)("div",{className:"bill-sub swap",children:P?s.billed.replace("Billed","每年支付").replace(" / year",""):s.billed}):null]}),(0,t.jsx)("div",{className:"credits",children:(0,t.jsxs)("div",{className:"ct",children:[S.format(e.credits)," ",P?"积分 / 月":"credits / month"]})}),(0,t.jsx)(x,{locale:C}),(0,t.jsx)("div",{className:"rule"}),(0,t.jsx)("ul",{className:"feat-list",children:e.features.map(e=>{var n,s;return(0,t.jsxs)("li",{children:[(0,t.jsx)(p,{}),P?null!=(s=({"All video + image models":"全部视频与图片模型","No watermark \xb7 commercial license":"无水印 \xb7 商用许可","Credits refresh monthly":"积分每月刷新","AI prompt assist":"AI 提示词辅助","Everything in Lite":"包含 Lite 全部权益","Faster generation speed":"更快的生成速度","Priority support":"优先客服支持","Early access to new models":"优先体验新模型","Everything in Pro":"包含 Pro 全部权益","Priority render queue":"优先渲染队列","Highest concurrency":"最高并发额度","Dedicated support":"专属客服支持"})[n=e])?s:n:e]},e)})}),(0,t.jsx)("button",{type:"button",className:"cta",disabled:!$||a||i,onClick:()=>O?G():X(s.sku),children:r})]});return e.featured?(0,t.jsxs)("div",{className:"featured-wrap",children:[(0,t.jsx)("div",{className:"popular-banner",children:P?"最受欢迎":"Most Popular"}),l]},e.tier):(0,t.jsx)("div",{children:l},e.tier)})}),(0,t.jsx)("p",{className:"foot",children:P?"价格不含税。可随时取消 \xb7 订阅积分每月刷新 \xb7 积分包永不过期。":"Price
1s exclude tax. Cancel anytime \xb7 subscription credits refresh monthly \xb7 credit packs never expire."})]})})}function p(){return(0,t.jsx)("span",{className:"tick",children:(0,t.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M5 12l5 5L20 7"})})})}function h(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,t.jsx)("path",{d:"M12 8h.01M11 12h1v4h1"})]})}function x(e){let{locale:n}=e,s="zh"===n;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"rule"}),(0,t.jsx)("div",{className:"models-h",children:s?"可使用高级模型":"Access to Advanced Models"}),(0,t.jsx)("ul",{className:"model-list",children:u.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)("span",{className:"mi",children:(0,t.jsx)(g,{})}),(0,t.jsx)("span",{className:e.hot?"hot":void 0,children:e.name}),e.badge?(0,t.jsx)("span",{className:"badge-new",children:s&&"New"===e.badge?"新":e.badge}):null]},e.name))})]})}function g(){return(0,t.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"3",y:"13",width:"4",height:"8",rx:"1"}),(0,t.jsx)("rect",{x:"10",y:"8",width:"4",height:"13",rx:"1"}),(0,t.jsx)("rect",{x:"17",y:"4",width:"4",height:"17",rx:"1"})]})}function v(e){var n;return null!=(n=({Small:"小型",Medium:"中型",Large:"大型"})[e])?n:e}},7606:(e,n,s)=>{s.d(n,{XG:()=>a,dS:()=>i,lU:()=>t});let t={en:{code:"EN",languageTag:"en-US",label:"English",dir:"ltr",ogLocale:"en_US"},zh:{code:"ZH",languageTag:"zh-CN",label:"简体中文",dir:"ltr",ogLocale:"zh_CN"}};function a(e){return e in t?t[e]:t.en}function i(e,n){let s="/"===e?"":"/".concat(e.replace(/^\/+|\/+$/g,""));return"en"===n?s||"/":"/".concat(n).concat(s)}},8059:(e,n,s)=>{let t;s.d(n,{TRPCReactProvider:()=>p,F:()=>m});var a=s(4624),i=s(9966),r=s(9288),l=s(1092),c=s(9356),o=s(8568),d=s(7992),u=s(8180);s(6259);let m=(0,l.pY)();function p(e){let n=(null!=t||(t=new d.E({defaultOptions:{queries:{staleTime:3e4},dehydrate:{serializeData:o.Ay.serialize,shouldDehydrateQuery:e=>(0,u.XS)(e)||"pending"===e.state.status},hydrate:{deserializeData:o.Ay.deserialize}}})),t),[s]=(0,c.useState)(()=>m.createClient({links:[(0,r.$H)({enabled:e=>"generation.poll"!==("path"in e?e.path:void 0)&&"down"===e.direction&&e.result instanceof Error}),(0,r.N9)({transformer:o.Ay,url:window.location.origin+"/api/trpc",headers:()=>{let e=new Headers;return e.set("x-trpc-source","nextjs-react"),e}})]}));return(0,a.jsx)(i.Ht,{client:n,children:(0,a.jsx)(m.Provider,{client:s,queryClient:n,children:e.children})})}},8573:(e,n,s)=>{s.d(n,{P0:()=>t,uc:()=>a});let t=[{sku:"lite_monthly",productName:"Skyvid Lite",description:"1,000 credits per month. Get started with AI video & image creation.",mode:"subscription",amountCents:1490,interval:"month",credits:1e3,bucket:"subscription",tier:"lite"},{sku:"pro_monthly",productName:"Skyvid Pro",description:"2,500 credits per month. Scale your content production.",mode:"subscription",amountCents:2990,interval:"month",credits:2500,bucket:"subscription",tier:"pro"},{sku:"max_monthly",productName:"Skyvid Max",description:"8,000 credits per month. For studios and heavy users.",mode:"subscription",amountCents:8990,interval:"month",credits:8e3,bucket:"subscription",tier:"max"},{sku:"lite_annual",productName:"Skyvid Lite (Annual)",description:"1,000 credits per month, billed yearly. Save 34%.",mode:"subscription",amountCents:11880,interval:"year",credits:1e3,bucket:"subscription",tier:"lite"},{sku:"pro_annual",productName:"Skyvid Pro (Annual)",description:"2,500 credits per month, billed yearly. Save 40%.",mode:"subscription",amountCents:21480,interval:"year",credits:2500,bucket:"subscription",tier:"pro"},{sku:"max_annual",productName:"Skyvid Max (Annual)",description:"8,000 credits per month, billed yearly. Save 33%.",mode:"subscription",amountCents:71880,interval:"year",credits:8e3,bucket:"subscription",tier:"max"},{sku:"pack_small",productName:"Credit Pack — Small",description:"1,000 credits, never expire.",mode:"payment",amountCents:1990,credits:1e3,bucket:"topup"},{sku:"pack_medium",productName:"Credit Pack — Medium",description:"1,800 credits, never expire. Best value for occasional users.",mode:"payment",amountCents:2990,credits:1800,bucket:"topup"},{sku:"pack_large",productName:"Credit Pack — Large",description:"7,000 credits, never expire. Heavy-u
1se stash.",mode:"payment",amountCents:9990,credits:7e3,bucket:"topup"},{sku:"starter_monthly",productName:"Skyvid Starter (legacy)",description:"Legacy plan — 500 credits per month.",mode:"subscription",amountCents:999,interval:"month",credits:500,bucket:"subscription",legacy:!0},{sku:"studio_monthly",productName:"Skyvid Studio (legacy)",description:"Legacy plan — 8,000 credits per month.",mode:"subscription",amountCents:9999,interval:"month",credits:8e3,bucket:"subscription",legacy:!0}];function a(e){return t.find(n=>n.sku===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.