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.