PageSourceSearch

https://omnivideo2.com/_next/static/chunks/0hhyccax-aj6k.js

js omnivideo2.com collected 2026-10-04 02:14:44 UTC 30,552 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,868639,e=>{"use strict";let r=(0,e.i(360229).default)("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,r])},767491,e=>{"use strict";var r=e.i(868639);e.s(["BadgeCheckIcon",()=>r.default])},621639,e=>{"use strict";let r=(0,e.i(360229).default)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,r])},988066,e=>{"use strict";var r=e.i(621639);e.s(["HelpCircle",()=>r.default])},6323,e=>{"use strict";let r=(0,e.i(360229).default)("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);e.s(["default",0,r])},617968,e=>{"use strict";var r=e.i(188421),t=e.i(920932),s=e.i(146485),a=e.i(273381),i=e.i(948699),n=e.i(808562),l=e.i(587249),d=e.i(352318),o=e.i(945228),c=e.i(133713),u=e.i(520133),m=e.i(763943),p=e.i(975157),x=e.i(177227),h=e.i(767491),g=e.i(193336),f=e.i(327473),b=e.i(734453),y=e.i(179837),P=e.i(988066),j=e.i(6323),j=j,N=e.i(804574),v=e.i(936993),I=e.i(792347),C=e.i(93360);e.i(610336);var k=e.i(635875),T=e.i(519455),w=e.i(77607);function M(){if(!o.websiteConfig.credits.enableCredits)return null;let e=(0,v.useTranslations)("Dashboard.settings.credits.packages"),t=(0,c.useCurrentUser)(),[s,a]=(0,I.useState)(!1);(0,I.useEffect)(()=>{a(!0)},[]);let n=Object.values((0,l.useCreditPackages)()).filter(e=>!e.disabled);return 0===n.length?null:(0,r.jsx)(C.CreditPackageCards,{packages:n,popularLabel:e("popular"),getExtraBonusLabel:r=>e("extraBonus",{bonus:r}),renderAction:a=>s?t?(0,r.jsx)(i.CreditCheckoutButton,{userId:t.id,packageId:a.id,packageName:a.name,priceId:a.price.priceId,credits:a.amount,priceAmount:a.price.amount,currency:a.price.currency,className:"w-full cursor-pointer",variant:a.popular?"default":"outline",disabled:!a.price.priceId,children:e("purchase")}):(0,r.jsx)(T.Button,{asChild:!0,className:"w-full cursor-pointer",variant:a.popular?"default":"outline",children:(0,r.jsx)(k.ProgressLink,{href:w.Routes.SettingsCredits,children:e("purchase")})}):(0,r.jsx)(T.Button,{className:"w-full cursor-pointer",variant:a.popular?"default":"outline",disabled:!0,children:e("purchase")})})}var S=e.i(515288),E=e.i(537225),B=e.i(292335),R=e.i(979985),A=e.i(201124),Y=e.i(487486),O=e.i(367692),L=e.i(880749);function z(e){return Math.floor(e/12)}function F(e,r){return e.prices.filter(e=>!e.disabled&&e.type===x.PaymentTypes.SUBSCRIPTION&&e.interval===r&&"number"==typeof e.tierIndex).sort((e,r)=>(e.tierIndex??0)-(r.tierIndex??0)||e.amount-r.amount)}let U={0:1400,1:3200,2:5300,3:7800,4:10200,5:11900},D={0:"Pro Lite",1:"Pro",2:"Pro Plus",3:"Pro Advanced",4:"Pro Max",5:"Pro Ultra"},_=[2990,5990,9990,12990,16990,19900];function V(e){let r=U[e]??U[0],t=Math.floor(r/(0,L.getReferenceCreditsPerVideo)(5));return{proCredits:r,proVideos:t}}function H({tierIndex:e,onTierIndexChange:t,displayPriceTiers:s,currency:a,credits:i,videos:n,defaultTierIndex:l}){let d=(0,v.useTranslations)("PricingPage.PricingCard"),o=D[e[0]]??"Pro";return(0,r.jsxs)("div",{className:"mt-6 rounded-lg border border-dashed border-primary/20 bg-gradient-to-br from-primary/5 to-transparent p-4",children:[(0,r.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,r.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:d("customVolumeTitle")}),(0,r.jsx)("span",{className:"text-sm font-semibold text-primary",children:o})]}),(0,r.jsx)(O.Slider,{defaultValue:[l],max:s.length-1,min:0,step:1,value:e,onValueChange:t,className:"py-4"}),(0,r.jsxs)("div",{className:"flex items-center justify-between text-[11px] text-muted-foreground mb-4",children:[(0,r.jsx)("span",{children:(0,m.formatPrice)(s[0],a)}),(0,r.jsx)("span",{children:(0,m.formatPrice)(s[s.length-1],a)})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3 mt-4",children:[(0,r.jsxs)("div",{className:"rounded-lg border border-primary/10 bg-primary/5 p-3 text-center",children:[(0,r.jsx)("div",{className:"text-2xl font-bold text-primary mb-1",children:i.toLocaleStr
1ing()}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground uppercase tracking-wide",children:d("creditsLabel",{defaultValue:"Credits"})})]}),(0,r.jsxs)("div",{className:"rounded-lg border border-primary/10 bg-primary/5 p-3 text-center",children:[(0,r.jsxs)("div",{className:"text-2xl font-bold text-primary mb-1",children:["~",n.toLocaleString()]}),(0,r.jsx)("div",{className:"text-xs text-muted-foreground uppercase tracking-wide",children:d("videosLabel",{defaultValue:"Videos"})})]})]})]})}function G({plan:e,interval:s,paymentType:i,metadata:n,className:l,isCurrentPlan:d=!1}){let o=(0,v.useTranslations)("PricingPage.PricingCard"),h=(0,v.useTranslations)("PricePlans"),g=(0,c.useCurrentUser)(),f=(0,u.useLocalePathname)(),b=(0,E.useMounted)(),y="pro"===e.id,P=(0,I.useMemo)(()=>e.prices.find(e=>!e.disabled&&e.type===x.PaymentTypes.SUBSCRIPTION&&e.interval===x.PlanIntervals.MONTH&&void 0===e.tierIndex),[e]),j=(0,I.useMemo)(()=>e.prices.find(e=>!e.disabled&&e.type===x.PaymentTypes.SUBSCRIPTION&&e.interval===x.PlanIntervals.YEAR&&void 0===e.tierIndex),[e]),N="starter"===e.id&&!e.isFree&&s===x.PlanIntervals.YEAR&&!!j,C=("pro"===e.id||"scale"===e.id)&&!e.isFree&&s===x.PlanIntervals.YEAR,k=N?Math.round((j.amount??0)/.8):0,w=(0,I.useMemo)(()=>{let r,t,a,i,n,l,d,o,c;return y?(r=F(e,x.PlanIntervals.MONTH),t=F(e,x.PlanIntervals.YEAR),a=r.length>1&&t.length>1,i=r.length>0?r.map(e=>e.amount):_,n=t.length>0?t.map(e=>z(e.amount)):[],d=(l=(e,r)=>{let t=0,s=Math.abs(e[0]-r);return e.forEach((e,a)=>{let i=Math.abs(e-r);i<s&&(s=i,t=a)}),t})(i,5990),o=l(n.length?n:i,2995),c=s===x.PlanIntervals.YEAR?o:d,{proMonthlyPrices:r,proYearlyPrices:t,hasProTierOptions:a,proMonthlyTierCents:i,proYearlyTierCents:n,defaultProTierIndexMonthly:d,defaultProTierIndexYearly:o,resolvedDefaultProTierIndex:c}):null},[y,e,s]),[M,O]=(0,I.useState)(()=>w?[w.resolvedDefaultProTierIndex]:[0]);(0,I.useEffect)(()=>{w&&O([w.resolvedDefaultProTierIndex])},[w?.resolvedDefaultProTierIndex]);let L=(0,I.useMemo)(()=>{if(!y||!w)return null;let e=w.proMonthlyPrices[M[0]],r=w.proYearlyPrices[M[0]],t=e??P,a=r??j,i=t&&a?Math.round((12*t.amount-a.amount)/(12*t.amount)*100):0,n=function(e,r,t,s){if(t===x.PlanIntervals.YEAR){if(r.length>0)return r;if(s>0){let r=s/100;return e.map(e=>Math.floor(e*(1-r)))}}return e}(w.proMonthlyTierCents,w.proYearlyTierCents,s,i),l=w.proMonthlyTierCents[M[0]]??w.proMonthlyTierCents[w.defaultProTierIndexMonthly],d=n[M[0]]??n[w.resolvedDefaultProTierIndex],{proCredits:o,proVideos:c}=V(M[0]),u=s===x.PlanIntervals.YEAR?a:t,m=s===x.PlanIntervals.YEAR?(a?.amount??0)/100/12:(t?.amount??0)/100;return{selectedMonthlyPrice:e,selectedYearlyPrice:r,currentMonthlyPrice:t,currentYearlyPrice:a,planDiscountPercentage:i,proDisplayPriceTiers:n,proTierPriceCents:l,proDisplayPriceCents:d,proCredits:o,proVideos:c,price:u,costPer100Credits:o>0?100*m/o:0}},[y,w,M,P,j,s]),U=(0,I.useMemo)(()=>{if(y&&L)return L.price;if(e.isFree)return;let r=e.prices.filter(e=>i===x.PaymentTypes.ONE_TIME?e.type===x.PaymentTypes.ONE_TIME&&!e.disabled:e.type===x.PaymentTypes.SUBSCRIPTION&&e.interval===s&&!e.disabled);return r[0]},[y,L,e,s,i]),D=U?.currency??P?.currency??"USD",W=(0,I.useMemo)(()=>{let r=y&&L?.currentYearlyPrice?L.currentYearlyPrice:j;return function(e,r,t,s,a,i,n,l,d){let o=r?.currency??s?.currency??"USD",c=function(e,r){if(!e||!r)return 0;let t=12*e.amount;return Math.round((t-r.amount)/t*100)}(s,a),u="",p="",h="",g=0,f=0;if(e.isFree)u=n("freePrice");else if(r&&r.amount>0)if(t===x.PlanIntervals.YEAR)if(i&&s&&a&&l)u=(0,m.formatPrice)(l,o),p=n("perMonth"),h=(0,m.formatPrice)(a.amount,o),g=c,f=12*s.amount-a.amount;else{let e=z(r.amount);u=(0,m.formatPrice)(e,o),p=n("perMonth"),h=(0,m.formatPrice)(r.amount,o),g=c,f=s?12*s.amount-r.amount:0}else u=i&&d?(0,m.formatPrice)(d,o):(0,m.formatPrice)(r.amount,o),t===x.PlanIntervals.MONTH&&(p=n("perMonth"));else u=n("notAvailable");let b=0;return e.isFree?b=0:t===x.PlanIntervals.YEAR?i&&l?b=l:r&&(b=z(r.amount)):i&&d?b=d:r&&(b=r.amount),{formattedPrice:u,priceLabel:p,actualYearlyPrice:h,discountPercentage:g,savingsAmountCents:f,rawPriceCents:b}}(e,U,s,y&&L?.currentMonthlyPrice?L.currentMonthlyPrice:P,r,y,o,L?.proDisplayPriceCents,L?.proTierPriceCents)},[e,U,s,P,j,y,o,L?.proDisplayPriceCents,L?.proTierPriceCents,L?.currentYearlyPrice,L?.currentMonthlyPrice]),q=(0,I.useMemo)(()=>y&&L?{...n??{}
1,quantity:(M[0]+1).toString(),tierPrice:(L.proTierPriceCents/100).toFixed(2),tierCredits:L.proCredits.toString()}:n,[y,L,M,n]),K=(0,I.useMemo)(()=>y&&e.features?.length&&L?[h("pro.features.dynamic-1",{credits:L.proCredits,videos:L.proVideos}),...e.features.slice(1)]:e.credits?.amount!=null&&e.features?.length&&"pro"!==e.id?[h(`${e.id}.features.feature-1`,{credits:e.credits.amount}),...e.features.slice(1)]:e.features??[],[y,e.id,e.credits?.amount,e.features,L,h]),$=(0,I.useMemo)(()=>{if(e.isFree)return null;if(y&&L&&L.proCredits>0)return L.costPer100Credits;if(e.credits?.enable&&e.credits.amount>0&&(P??j)){let r=s===x.PlanIntervals.YEAR&&j?j.amount/100/12:P?P.amount/100:0;return r<=0?null:100*r/e.credits.amount}return null},[e.isFree,e.credits?.enable,e.credits?.amount,y,L?.costPer100Credits,L?.proCredits,s,P,j]),X=W.actualYearlyPrice,Z=(0,I.useMemo)(()=>{if(!C)return{monthlyCents:0,yearlyCents:0};let e=Math.round((y&&L?.currentYearlyPrice?L.currentYearlyPrice.amount:j?.amount??0)/.5);return{monthlyCents:Math.round(e/12),yearlyCents:e}},[C,y,L?.currentYearlyPrice?.amount,j?.amount]),J=!e.isFree&&!!U,Q=U?.trialPeriodDays&&U.trialPeriodDays>0;return(0,r.jsxs)(S.Card,{className:(0,p.cn)("flex flex-col h-full relative",e.popular&&"border-2 border-primary/50 shadow-lg shadow-primary/10",d&&"border-blue-500 shadow-lg shadow-blue-100 dark:shadow-blue-900/20",l),children:[e.popular&&!d&&(0,r.jsx)("div",{className:"absolute -top-3.5 left-1/2 transform -translate-x-1/2 z-10",children:(0,r.jsx)(Y.Badge,{variant:"default",className:"bg-primary text-primary-foreground",children:o("popular")})}),d&&(0,r.jsx)("div",{className:"absolute -top-3.5 left-1/2 transform -translate-x-1/2 z-10",children:(0,r.jsx)(Y.Badge,{variant:"default",className:"bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-100 border-blue-200 dark:border-blue-800",children:o("currentPlan")})}),s===x.PlanIntervals.YEAR&&!e.isFree&&!N&&!C&&(y?L&&L.planDiscountPercentage>0:W.discountPercentage>0)&&(0,r.jsx)("div",{className:"absolute top-4 right-4",children:(0,r.jsx)(Y.Badge,{className:"bg-primary/10 text-primary border-0 text-xs font-semibold px-2 py-1",children:o("discountBadge",{percentage:y?L.planDiscountPercentage:W.discountPercentage})})}),(0,r.jsxs)(S.CardHeader,{children:[(0,r.jsx)(S.CardTitle,{children:(0,r.jsx)("h3",{className:"font-medium",children:e.name})}),(0,r.jsxs)("div",{className:"my-6 text-center space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-baseline justify-center gap-2",children:[N&&P&&(0,r.jsx)("span",{className:"text-lg text-muted-foreground line-through",children:(0,m.formatPrice)(P.amount,D)}),C&&Z.monthlyCents>0&&(0,r.jsx)("span",{className:"text-lg text-muted-foreground line-through",children:(0,m.formatPrice)(Z.monthlyCents,D)}),(0,r.jsx)("span",{className:"text-5xl font-bold",children:W.formattedPrice}),W.priceLabel&&(0,r.jsx)("span",{className:"text-2xl text-muted-foreground",children:W.priceLabel})]}),C&&(0,r.jsxs)(Y.Badge,{className:"bg-gradient-to-r from-orange-500 to-red-500 text-white border-0 text-sm px-3 py-1",children:["🔥 ",50,"% OFF Launch Sale"]}),s===x.PlanIntervals.YEAR&&!e.isFree&&U&&(y?L?.currentMonthlyPrice:P)&&(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 flex-wrap",children:[(0,r.jsx)("span",{className:"text-sm text-muted-foreground",children:o("yearlyPriceLabel")}),N&&(0,r.jsx)("span",{className:"text-sm text-muted-foreground line-through",children:(0,m.formatPrice)(k,D)}),C&&Z.yearlyCents>0&&(0,r.jsx)("span",{className:"text-sm text-muted-foreground line-through",children:(0,m.formatPrice)(Z.yearlyCents,D)}),(0,r.jsx)("span",{className:"text-base font-semibold text-primary",children:X})]}),(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,r.jsx)("span",{className:"text-xs text-muted-foreground",children:o("savingsAmount",{amount:(0,m.formatPrice)(N?k-(j?.amount??0):C?Z.yearlyCents-(y&&L?.currentYearlyPrice?L.currentYearlyPrice.amount:j?.amount??0):W.savingsAmountCents,U.currency)})}),(N||!C&&(y?L&&L.planDiscountPercentage>0:W.discountPercentage>0))&&(0,r.jsx)(Y.Badge,{className:"bg-gradient-to-r from-pink-500 to-red-500 text-white border-0 text-xs px-2 py-0.5",children:o("discountBadge",{percentage:N?20:y?L.planDiscountPercentage:W.discountPercentage})})]})]})]}),(0,r.jsx)(S.CardDescription,{children:(0,r.jsx)("p",{className:"text-sm text-center",children:e.description})}),w?.hasProTierOptions&&L&&(0,r.jsx)(H,{tierIndex:M,onTierIndexChange:O,displayPriceTiers:L.proDisplayPriceTiers,currency:D,credits:L.proCredits,videos:L.proVideos,defaultTierIndex:w.resolvedDefaultProTierIndex}),null!=$&&$>0&&(0,r.jsx)("div",{className:"mt-4 rounded-lg border border-primary/20 bg-primary/10 px-4 py-3",children:(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("span",{className:"text-sm text-muted-foreground",children:o("costPer100CreditsLabel")}),(0,r.jsx)("span",{className:"text-lg font-semibold text-primary",children:(0,m.formatPrice)(Math.round(100*$),D)})]})}),e.isFree?b&&g?(0,r.jsx)(T.Button,{disabled:!0,variant:"outline",className:"mt-4 w-full disabled",children:o("getStartedForFree")}):(0,r.jsx)(t.LoginWrapper,{mode:"modal",asChild:!0,callbackUrl:f,children:(0,r.jsx)(T.Button,{variant:"outline",className:"mt-4 w-full cursor-pointer",children:o("getStartedForFree")})}):d?(0,r.jsx)(T.Button,{disabled:!0,className:"mt-4 w-full bg-blue-100 dar
1k:bg-blue-800\n          text-blue-700 dark:text-blue-100 hover:bg-blue-100 dark:hover:bg-blue-800 border border-blue-200 dark:border-blue-700",children:o("yourCurrentPlan")}):J?b&&g?(0,r.jsx)(a.CheckoutButton,{userId:g.id,planId:e.id,planName:e.name,priceId:U.priceId,metadata:q,className:(0,p.cn)("mt-4 w-full cursor-pointer",e.popular?"bg-primary hover:bg-primary/90 text-primary-foreground":""),variant:e.popular?"default":"outline",children:e.isLifetime?o("getLifetimeAccess"):o("getStarted")}):(0,r.jsx)(t.LoginWrapper,{mode:"modal",asChild:!0,callbackUrl:f,children:(0,r.jsx)(T.Button,{variant:e.popular?"default":"outline",className:"mt-4 w-full cursor-pointer",children:o("getStarted")})}):(0,r.jsx)(T.Button,{disabled:!0,className:"mt-4 w-full",children:o("notAvailable")})]}),(0,r.jsxs)(S.CardContent,{className:"space-y-4",children:[(0,r.jsx)("hr",{className:"border-dashed"}),Q&&(0,r.jsx)("div",{className:"my-4",children:(0,r.jsx)("span",{className:"inline-block px-2.5 py-1.5 text-xs font-medium rounded-md\n            bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 border border-blue-200 dark:border-blue-800 shadow-sm",children:o("daysTrial",{days:U.trialPeriodDays})})}),(0,r.jsx)("ul",{className:"list-outside space-y-4 text-sm",children:K.map((e,t)=>{let s=e.includes("即将")||e.includes("Coming")||e.includes("Próximamente")||e.includes("リリース予定")||e.includes("출시 예정")||e.includes("قريباً"),a=K[t-1],i=a&&(a.includes("即将")||a.includes("Coming")||a.includes("Próximamente")||a.includes("リリース予定")||a.includes("출시 예정")||a.includes("قريباً")),n=s&&!i;return(0,r.jsxs)("li",{className:(0,p.cn)("flex items-start gap-2",s&&"opacity-80",n&&"pt-3 border-t border-dashed border-border"),children:[s?(0,r.jsx)(R.Clock,{className:"size-4 text-orange-500 dark:text-orange-400 flex-shrink-0 mt-0.5"}):(0,r.jsx)(B.CheckCircleIcon,{className:"size-4 text-green-500 dark:text-green-400 flex-shrink-0 mt-0.5"}),(0,r.jsx)("span",{className:(0,p.cn)("flex-1",s&&"text-muted-foreground"),children:e})]},t)})}),(0,r.jsx)("ul",{className:"list-outside space-y-4 text-sm",children:e.limits?.map((e,t)=>(0,r.jsxs)("li",{className:"flex items-center gap-2",children:[(0,r.jsx)(A.XCircleIcon,{className:"size-4 text-gray-500 dark:text-gray-400"}),(0,r.jsx)("span",{children:e})]},t))}),y&&L&&(0,r.jsxs)("div",{className:"flex items-start gap-2 pt-2 text-sm text-muted-foreground",children:[(0,r.jsx)(B.CheckCircleIcon,{className:"size-4 text-green-500 dark:text-green-400 flex-shrink-0 mt-0.5"}),(0,r.jsx)("span",{children:o("maxVideosPerMonthHint",{videos:L.proVideos})})]})]})]})}var W=e.i(340301);function q(e,r){return"pro"===e.id&&"number"==typeof r?V(r).proCredits:e.credits?.amount??0}function K({plans:e,metadata:s}){let n=(0,v.useTranslations)("PricingPage"),d=(0,l.useCreditPackages)(),P=(0,c.useCurrentUser)(),C=(0,u.useLocalePathname)(),[k,T]=(0,I.useState)("subscriptions"),[w,M]=(0,I.useState)(x.PlanIntervals.YEAR),[S,E]=(0,I.useState)(!0),B=(0,I.useRef)(null),R=e.filter(e=>!e.isFree&&!e.disabled).map(e=>{let r=e.prices.filter(e=>!e.disabled&&e.type===x.PaymentTypes.SUBSCRIPTION&&e.interval===w),t=r.find(r=>"pro"===e.id&&1===r.tierIndex)??r[0];return t?{plan:e,price:t,credits:q(e,t.tierIndex)}:null}).filter(e=>!!e),A=Object.values(d).filter(e=>!e.disabled),Y=Math.max(0,R.findIndex(({plan:e})=>"pro"===e.id)),O=Math.max(0,A.findIndex(e=>e.popular)),[L,z]=(0,I.useState)(Y),[F,U]=(0,I.useState)(O),[D,_]=(0,I.useState)(1),V=R[L]??R[0],H=A[F]??A.find(e=>e.popular)??A[0],G=V?.plan.id==="pro"?V.plan.prices.filter(e=>!e.disabled&&e.type===x.PaymentTypes.SUBSCRIPTION&&e.interval===w&&"number"==typeof e.tierIndex).sort((e,r)=>(e.tierIndex??0)-(r.tierIndex??0)):[],W=G.map(e=>e.tierIndex??0).join(","),$=V?.plan.id==="pro"?G.find(e=>e.tierIndex===D)??V.price:V?.price,X=V?q(V.plan,$?.tierIndex):0;if((0,I.useEffect)(()=>{G.length>0&&!G.some(e=>e.tierIndex===D)&&_(G[0].tierIndex??0)},[W,D]),(0,I.useEffect)(()=>{let e=B.current;if(!e||"u"<typeof IntersectionObserver)return;let r=new IntersectionObserver(([e])=>E(e.isIntersecting&&e.intersectionRatio>=.15),{threshold:[0,.15]});return r.observe(e),()=>r.disconnect()},[]),!V&&!H)return null;let Z=$?w===x.PlanIntervals.YEAR?Math.floor($.amount/12):$.amount:0,J="pricing-mobile-gold h-11 rounded-full px-6 text-sm font-semibold",Q="credits"===k&&H?P?(0,r.jsx)(i.CreditCheckoutButton,{userId:P.
1id,packageId:H.id,packageName:H.name,priceId:H.price.priceId,priceAmount:H.price.amount,currency:H.price.currency,credits:H.amount,variant:"ghost",className:J,children:n("MemberPackageModal.common.buyNow")}):(0,r.jsx)(t.LoginWrapper,{mode:"modal",callbackUrl:C,children:(0,r.jsx)("button",{type:"button",className:J,children:n("MemberPackageModal.common.buyNow")})}):V&&$?P?(0,r.jsx)(a.CheckoutButton,{userId:P.id,planId:V.plan.id,planName:V.plan.name,priceId:$.priceId,priceAmount:$.amount,currency:$.currency,metadata:s,variant:"ghost",className:J,children:n("PricingCard.getStarted")}):(0,r.jsx)(t.LoginWrapper,{mode:"modal",callbackUrl:C,children:(0,r.jsx)("button",{type:"button",className:J,children:n("PricingCard.getStarted")})}):null,ee="credits"===k?H?.name:V?.plan.name,er="credits"===k&&H?(0,m.formatPrice)(H.price.amount,H.price.currency):$?(0,m.formatPrice)(Z,$.currency):"";return(0,r.jsxs)("section",{ref:B,className:"-mx-4 min-h-[100dvh] bg-[#070807] px-4 pb-[calc(9.5rem+env(safe-area-inset-bottom))] text-white lg:hidden",children:[(0,r.jsx)("header",{className:"sticky top-0 z-20 -mx-4 bg-[#070807]/90 px-4 pb-3 pt-4 backdrop-blur",children:(0,r.jsx)("h1",{className:"text-center text-xl font-semibold",children:n("mobileExperience.pageTitle")})}),(0,r.jsxs)("div",{className:"relative mt-4 overflow-hidden rounded-2xl border border-[#8b743c]/50 bg-[radial-gradient(circle_at_85%_15%,rgba(255,214,133,0.16),transparent_35%),linear-gradient(145deg,#211b13,#0d0d0c_70%)] p-4",children:[(0,r.jsx)("p",{className:"text-2xl font-semibold leading-tight",children:n("mobileExperience.title")}),(0,r.jsx)("p",{className:"mt-2 text-sm text-zinc-300",children:n("mobileExperience.description")})]}),o.websiteConfig.credits.enableCredits&&A.length>0&&(0,r.jsx)("div",{className:"mt-6 grid grid-cols-2 rounded-full bg-[#181919] p-1",children:["subscriptions","credits"].map(e=>(0,r.jsx)("button",{type:"button","aria-pressed":k===e,onClick:()=>T(e),className:(0,p.cn)("flex h-9 items-center justify-center rounded-full text-sm font-semibold transition-colors",k===e?"bg-white text-black":"text-zinc-400 hover:text-white"),children:"subscriptions"===e?n("subscriptions"):n("credits")},e))}),"subscriptions"===k&&(0,r.jsx)("div",{className:"relative mt-8 inline-grid grid-cols-2 rounded-full border border-zinc-700 bg-[#111212] p-1",children:[x.PlanIntervals.MONTH,x.PlanIntervals.YEAR].map(e=>(0,r.jsx)("button",{type:"button","aria-pressed":w===e,onClick:()=>M(e),className:(0,p.cn)("h-9 rounded-full px-5 text-sm font-semibold transition-colors",w===e?"bg-white text-black":"text-zinc-400"),children:e===x.PlanIntervals.MONTH?n("monthly"):n("yearly")},e))}),(0,r.jsx)("div",{className:(0,p.cn)("mt-4","credits"===k?"grid grid-cols-2 gap-3":"grid gap-3"),children:("subscriptions"===k?R:A).map((e,t)=>{if("credits"===k){let s=t===F;return(0,r.jsxs)("button",{type:"button","aria-pressed":s,onClick:()=>U(t),className:(0,p.cn)("relative flex min-h-[148px] min-w-0 flex-col items-center rounded-2xl border p-3 text-center transition-colors",s?"pricing-mobile-selected-card":"border-white/10 bg-[#121313]"),children:[e.popular&&(0,r.jsx)("span",{className:"pricing-mobile-gold absolute -top-px right-0 rounded-bl-lg rounded-tr-2xl px-2 py-1 text-[10px] font-semibold",children:n("PricingCard.popular")}),(0,r.jsx)(b.CoinsIcon,{className:"mt-1 size-5 text-[#ffd685]"}),(0,r.jsx)("p",{className:"mt-2 text-2xl font-bold tabular-nums",children:e.amount.toLocaleString()}),(0,r.jsx)("p",{className:"max-w-full truncate text-xs text-zinc-400",children:e.name}),(0,r.jsx)("span",{className:(0,p.cn)("mt-3 flex h-9 w-full items-center justify-center rounded-full text-sm font-semibold tabular-nums",s?"pricing-mobile-gold":"bg-[#292a2a] text-white"),children:(0,m.formatPrice)(e.price.amount,e.price.currency)})]},e.id)}let s=t===L,a=s?$:e.price,i=s?X:e.credits;return(0,r.jsxs)(I.Fragment,{children:[(0,r.jsxs)("button",{type:"button","aria-pressed":s,onClick:()=>{z(t),"pro"===e.plan.id&&_(1)},className:(0,p.cn)("w-full rounded-2xl border p-4 text-left transition-colors",s?"pricing-mobile-selected-card":"border-white/10 bg-[#121313]"),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsx)("p",{className:"text-lg font-semibold leading-tight",children:e.plan.name}),e.plan.popular&&(0,r.jsx)("span",{className:"pricing-mobile-gold rounded-full px-2.5 py-1 text-xs font-semibold",children:n("PricingCard.popular")}),"scale"===e.plan.id&&!e.plan.popular&&(0,r.jsx)("span",{className:"rounded-full border border-white/10 bg-white/[0.06] px-2.5 py-1 text-xs font-semibold text-zinc-300",children:n("PricingCard.bestValue")})]}),(0,r.jsxs)("div",{className:"mt-3 grid grid-cols-[minmax(0,1fr)_auto] items-end gap-4",children:[(0,r.jsxs)("p",{className:"text-sm text-zinc-400",children:[i.toLocaleStr
1ing()," ",n("PricingCard.creditsLabel")]}),(0,r.jsxs)("div",{className:"text-right",children:[(0,r.jsxs)("p",{className:(0,p.cn)("whitespace-nowrap text-2xl font-semibold leading-none",s&&"pricing-mobile-gold-text"),children:[a&&(0,m.formatPrice)(w===x.PlanIntervals.YEAR?Math.floor(a.amount/12):a.amount,a.currency),(0,r.jsx)("span",{className:"ml-1 text-sm text-zinc-400",children:n("PricingCard.perMonth")})]}),(0,r.jsx)("p",{className:"mt-2 text-[11px] text-zinc-500",children:w===x.PlanIntervals.YEAR?n("PricingCard.billedYearly"):n("monthly")})]})]})]}),"pro"===e.plan.id&&G.length>1&&(0,r.jsx)("div",{className:"mt-2 flex gap-2 overflow-x-auto pb-1",children:G.map(e=>{let t=e.tierIndex??0;return(0,r.jsx)("button",{type:"button","aria-pressed":D===t,onClick:()=>_(t),className:(0,p.cn)("h-9 shrink-0 rounded-full border px-3 text-xs font-semibold transition-colors",D===t?"pricing-mobile-gold":"border-white/15 bg-[#252626] text-zinc-400"),children:(0,m.formatPrice)(w===x.PlanIntervals.YEAR?Math.floor(e.amount/12):e.amount,e.currency)},e.priceId)})})]},e.plan.id)})}),(0,r.jsxs)("div",{className:"mt-6",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold",children:n("BenefitsSection.membershipBenefits.title")}),(0,r.jsx)("div",{className:"mt-5 grid grid-cols-3 gap-x-2 gap-y-6",children:[{key:"fasterGeneration",icon:y.GaugeIcon},{key:"seedanceModes",icon:f.ClapperboardIcon},{key:"creatorTools",icon:j.default},{key:"agentSupport",icon:g.BotIcon},{key:"hdVideo",icon:N.VideoIcon},{key:"commercialUse",icon:h.BadgeCheckIcon}].map(({key:e,icon:t})=>(0,r.jsxs)("div",{className:"flex min-w-0 flex-col items-center gap-2 text-center",children:[(0,r.jsx)("div",{className:"flex size-14 items-center justify-center rounded-full border border-[#f5d873]/20 bg-[#f5d873]/[0.06] text-[#f5d873]",children:(0,r.jsx)(t,{className:"size-6",strokeWidth:1.8})}),(0,r.jsx)("span",{className:"text-xs leading-5 text-zinc-400",children:n(`BenefitsSection.membershipBenefits.${e}`)})]},e))})]}),S&&(0,r.jsx)("div",{className:"fixed inset-x-0 bottom-[calc(3.5rem+env(safe-area-inset-bottom)+0.5rem)] z-40 border-t border-white/10 bg-[#171817]/95 px-4 pt-3 backdrop-blur","data-testid":"mobile-sticky-checkout",children:(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-2xl border border-[#8b743c]/60 bg-[linear-gradient(145deg,#211b13,#0d0d0c_70%)] p-2 shadow-[0_0_20px_rgba(255,186,107,0.12)]",children:[(0,r.jsxs)("p",{className:"min-w-0 flex-1 truncate px-2 text-2xl font-semibold",children:[(0,r.jsx)("span",{className:"pricing-mobile-gold-text",children:er}),(0,r.jsxs)("span",{className:"ml-1 text-sm text-zinc-400",children:["/ ",ee]})]}),Q]})})]})}e.s(["PricingTable",0,function({metadata:e,currentPlan:t,className:a,enableMobilePricingExperience:i=!1}){let l,c=(0,v.useTranslations)("PricingPage"),u=!1!==o.websiteConfig.price.showSubscriptionPlansInPricing,[m,h]=(0,I.useState)(W.DEFAULT_PRICING_INTERVAL),[g,f]=(0,I.useState)(W.DEFAULT_PRICING_VIEW),b=Object.values((0,d.usePricePlans)()),y=t?.id||null,j=b.filter(e=>e.isFree&&!e.disabled),N=b.filter(e=>!e.isFree&&!e.disabled&&e.prices.some(e=>!e.disabled&&e.type===x.PaymentTypes.SUBSCRIPTION)),C=b.filter(e=>!e.isFree&&!e.disabled&&e.prices.some(e=>!e.disabled&&e.type===x.PaymentTypes.ONE_TIME)),k=N.some(e=>e.prices.some(e=>e.type===x.PaymentTypes.SUBSCRIPTION&&e.interval===x.PlanIntervals.MONTH)),T=N.some(e=>e.prices.some(e=>e.type===x.PaymentTypes.SUBSCRIPTION&&e.interval===x.PlanIntervals.YEAR)),w=o.websiteConfig.credits.enableCredits,S=o.websiteConfig.metadata.social?.discord&&(0,r.jsxs)("a",{href:o.websiteConfig.metadata.social.discord,target:"_blank",rel:"noopener noreferrer",className:"group flex items-center justify-center gap-3 py-4 px-6 bg-gradient-to-r from-indigo-500/10 via-purple-500/10 to-pink-500/10 hover:from-indigo-500/20 hover:via-purple-500/20 hover:to-pink-500/20 rounded-xl border border-border/50 transition-all duration-300",children:[(0,r.jsx)(s.DiscordIcon,{className:"h-5 w-5 text-indigo-500 group-hover:scale-110 transition-transform"}),(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,r.jsx)(P.HelpCircle,{className:"h-4 w-4 text-muted-foreground"}),(0,r.jsx)("span",{className:"text-muted-foreground",children:c("needHelp")}),(0,r.jsx)("span",{className:"font-semibold text-foreground group-hover:text-primary transition-colors",children:c("joinDiscord")})]})]});return!u&&w?(0,r.jsxs)("div",{className:(0,p.cn)("flex flex-col gap-12",a),children:[(0,r.jsx)(M,{}),S]}):(0,r.jsxs)("div",{className:(0,p.cn)("flex flex-col gap-12",a),children:[i&&(0,r.jsx)(K,{plans:b,metadata:e}),(0,r.jsxs)("div",{className:(0,p.cn)("flex flex-col gap-12",i&&"hidden lg:flex"),children:[(k||T||w)&&N.length>0&&(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsxs)(n.ToggleGroup,{size:"sm",type:"single",value:"credits"===g?"credits":m,onValueChange:e=>e&&void("credits"===e?f("credits"):(f("subscriptions"),h(e))),className:"border rounded-lg p-1",children:[k&&(0,r.jsx)(n.ToggleGroupItem,{value:"month",className:(0,p.cn)("flex-none px-4 py-1.5 cursor-pointer text-sm rounded-md","data-[state=on]:bg-primary data-[state=on]:text-primary-foreground"),children:c("monthly")}),T&&(0,r.jsx)(n.ToggleGroupItem,{value:"year",className:(0,p.cn)("flex-none px-4 py-1.5 cursor-pointer text-sm rounded-md relative","data-[state=on]:bg-primary data-[state=on]:text-primary-foreground"),children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{children:c("yearly")}),(0,r.jsxs)("span",{className:"absolute -top-2 left-1/2 -translate-x-1/2 bg-gradient-to-r from-red-500 to-orange-500 text-white text-[10px] font-bold px-2 py-0.5 rounded-full whitespace-nowrap shadow-lg",children:["🔥 ",c("limitedOffer")]})]})}),w&&(0,r.jsx)(n.ToggleGroupItem,{value:"credits",className:(0,p.cn)("flex-none px-4 py-1.5 cursor-pointer text-sm rounded-md","data-[state=on]:bg-primary data-[state=on]:text-primary-foreground"),children:c("credits")})]})}),"credits"===g&&w&&(0,r.jsx)(M,{}),"subscriptions"===g&&(l=j.length+N.length+C.length,(0,r.jsxs)("div",{className:(0,p.cn)("grid gap-6",1===l&&"grid-cols-1 max-w-md mx-auto w-full",2===l&&"grid-cols-1 md:grid-cols-2 max-w-2xl mx-auto w-full",l>=3&&"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"),children:[j.map(t=>(0,r.jsx)(G,{plan:t,metadata:e,isCurrentPlan:y===t.id},t.id)),N.map(t=>(0,r.jsx)(G,{plan:t,interval:m,paymentType:x.PaymentTypes.SUBSCRIPTION,metadata:e,isCurrentPlan:y===t.id},t.id)),C.map(t=>(0,r.jsx)(G,{plan:t,paymentType:x.PaymentTypes.ONE_TIME,metadata:e,isCurrentPlan:y===t.id},t.id))]})),S]})]})}],617968)}]);

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.